/* Register My Photos: shared styles for the site and the app. */
@font-face { font-family: 'Inter'; src: url('/fonts/inter-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
:root {
  --ink: #1c1a17; --ink-2: #4a443d; --muted: #6b645c; --line: #e6e0d7; --paper: #f7f4ef; --white: #ffffff;
  --dark: #161412; --dark-2: #23201c; --on-dark: #f3eee7; --on-dark-muted: #b3aaa0;
  --accent: #c4421a; --accent-hover: #a8360f; --accent-soft: #fbe9e1; --accent-on-dark: #f08c5a;
  --ok: #1f6f43; --ok-soft: #e3f2e8; --warn: #8a5a00; --warn-soft: #fdf1d8; --bad: #a3261b; --bad-soft: #fbe4e1;
  --radius: 14px; --shadow: 0 1px 2px rgba(28,26,23,.06), 0 8px 24px rgba(28,26,23,.08);
  --max: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); font-feature-settings: 'cv11', 'ss01'; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 750; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: .8em; }
.dark .eyebrow { color: var(--accent-on-dark); }

/* header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(247,244,239,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; font-size: 1.05rem; }
.logo svg { width: 30px; height: 30px; flex: none; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: .95rem; font-weight: 550; }
.nav a:hover, .nav a[aria-current=page] { color: var(--ink); background: rgba(28,26,23,.05); }
.nav .btn { margin-left: 6px; }
@media (max-width: 760px) { .nav > a:not(.btn) { display: none; } .nav .menu { display: inline-block; } }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: 8px 10px; border-radius: 8px; font-weight: 600; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] .menu-list { position: absolute; right: 0; top: 44px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; display: grid; min-width: 200px; }
.menu-list a { display: block !important; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: inherit; font-weight: 650; font-size: .98rem; padding: 11px 20px; border-radius: 999px; text-decoration: none; cursor: pointer; line-height: 1.2; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--ink); color: var(--white); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--white); }
.btn.ghost { border-color: var(--line); }
.btn.small { padding: 6px 12px; font-size: .85rem; }
.btn.big { padding: 15px 28px; font-size: 1.05rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn[disabled]:hover { background: transparent; color: var(--ink); }
.btn.primary[disabled]:hover { background: var(--accent); color: var(--white); }
.dark .btn, .hero .btn { border-color: var(--on-dark); color: var(--on-dark); }
.dark .btn:hover, .hero .btn:hover { background: var(--on-dark); color: var(--dark); }
.dark .btn.primary, .hero .btn.primary { border-color: var(--accent); color: var(--white); }

/* sections */
section { padding: 72px 0; }
.dark { background: var(--dark); color: var(--on-dark); }
.dark .muted, .dark p.lead { color: var(--on-dark-muted); }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 46rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 20px; }
@media (min-width: 760px) { .grid.c2 { grid-template-columns: 1fr 1fr; } .grid.c3 { grid-template-columns: repeat(3, 1fr); } }

/* hero */
.hero { position: relative; padding: 0; background: var(--dark); color: var(--on-dark); overflow: hidden; }
.hero .bg { position: absolute; inset: 0; }
.hero .bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero .bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22,20,18,.92) 0%, rgba(22,20,18,.65) 50%, rgba(22,20,18,.2) 100%); }
.hero .wrap { position: relative; padding-top: 96px; padding-bottom: 96px; }
.hero h1 { max-width: 13em; }
.hero .lead { color: #ddd5cb; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero .assure { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .92rem; color: #d3cabf; list-style: none; padding: 0; margin: 0; }
.hero .assure li::before { content: '\2713'; color: var(--accent-on-dark); margin-right: 8px; font-weight: 800; }
.credit { position: absolute; right: 12px; bottom: 8px; font-size: .7rem; color: #9d958b; }
.credit a { color: #b9b0a5; }

/* worries, steps, compare */
.worry h3 { margin-top: .2em; }
.num { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; align-items: center; justify-content: center; margin-bottom: 10px; }
.shot { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; background: var(--white); }
.shot figcaption { font-size: .85rem; color: var(--muted); padding: 10px 14px; border-top: 1px solid var(--line); }
.ba { display: grid; gap: 20px; align-items: stretch; }
@media (min-width: 860px) { .ba { grid-template-columns: 1fr auto 1fr; } }
.ba .arrow { align-self: center; justify-self: center; font-size: 2rem; color: var(--accent); }
.folder { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; line-height: 1.7; color: var(--ink-2); }
.folder .bad { color: var(--bad); }
.folder .good { color: var(--ok); }
.price-card { max-width: 440px; }
.price { font-size: 3.4rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.price small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.ticks { list-style: none; padding: 0; margin: 1.2em 0; }
.ticks li { padding-left: 28px; position: relative; margin: .45em 0; }
.ticks li::before { content: '\2713'; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 1.05rem; }
.faq details p { margin: .8em 0 0; color: var(--ink-2); }
.note { background: var(--white); border-left: 4px solid var(--accent); padding: 14px 18px; border-radius: 8px; }
.legal { font-size: .88rem; color: var(--muted); }
.doc { max-width: 760px; }
.doc h2 { font-size: 1.5rem; margin-top: 1.6em; }
.page-head { padding: 64px 0 24px; }

/* footer */
.site-footer { background: var(--dark); color: var(--on-dark-muted); padding: 48px 0 32px; font-size: .92rem; }
.site-footer a { color: var(--on-dark); }
.site-footer .cols { display: grid; gap: 24px; }
@media (min-width: 760px) { .site-footer .cols { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .35em 0; }
.site-footer .logo { color: var(--on-dark); }
.site-footer .disclaim { border-top: 1px solid #36312b; margin-top: 32px; padding-top: 20px; font-size: .82rem; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

[hidden] { display: none !important; }
@media (max-width: 440px) { .logo span { font-size: 1rem; white-space: nowrap; } .nav > .btn.small { display: none; } }
.logo span { white-space: nowrap; }
.dark .card, .dark .card h2, .dark .card h3 { color: var(--ink); }

/* Withdrawal consent box on /pricing: must be ticked before Buy opens checkout */
.consent { margin: 0 0 14px; padding: 12px 14px; background: var(--white); border: 2px solid rgba(0,0,0,.15); border-radius: 10px; }
.consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; cursor: pointer; min-height: 44px; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--accent); }
.consent p { margin: 6px 0 0 32px; font-size: 14px; }
.consent.needed { border-color: #b42318; background: #fff6f5; }
.btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
