/* Rare marketing site (landing + support). Tokens mirror brand/tokens.json (Heirloom, L2) and styles.css. */
:root {
  --bg: #F4EEE4;
  --surface: #FFFDF9;
  --ink: #1A1412;
  --muted: #6B5F57;
  --primary: #A51C30;
  --primary-pressed: #7E1222;
  --on-primary: #FBF6EE;
  --blush: #F2E2DE;
  --line: #E3D8CA;
  --brass: #B08D57;
  --link: #A51C30;
  --club: #17120F;
  --club-ink: #F4EEE4;
  --club-muted: #B9ACA2;
  --phone: #1A1412;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17120F; --surface: #231C18; --ink: #F4EEE4; --muted: #B9ACA2; --blush: #2E2420;
    --line: #3A302A; --link: #E7A5A0; --phone: #0D0A08;
  }
}
:root[data-theme="dark"] {
  --bg: #17120F; --surface: #231C18; --ink: #F4EEE4; --muted: #B9ACA2; --blush: #2E2420;
  --line: #3A302A; --link: #E7A5A0; --phone: #0D0A08;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: Inter, -apple-system, system-ui, sans-serif; font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.on-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .on-light { display: none !important; }
  :root:not([data-theme="light"]) .on-dark { display: block !important; }
}
:root[data-theme="dark"] .on-light { display: none !important; }
:root[data-theme="dark"] .on-dark { display: block !important; }

h1, h2, h3 { font-family: Fraunces, Georgia, serif; font-weight: 400; color: var(--ink); margin: 0; }
.overline { font-size: 12px; line-height: 16px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin: 0 0 14px; }
.overline.red { color: var(--primary); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .overline.red { color: var(--link); } }

/* Header */
.site-head { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: saturate(1.2) blur(12px); backdrop-filter: saturate(1.2) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: inline-flex; }
.brand svg { height: 28px; aspect-ratio: 2.3046; display: block; }
.head-nav { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.head-nav a { color: var(--muted); text-decoration: none; }
.head-nav a:hover { color: var(--ink); }
.head-nav .hide-sm { display: none; }
@media (min-width: 720px) { .head-nav .hide-sm { display: inline; } }

/* Buttons + badge */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.btn.primary { background: var(--primary); color: var(--on-primary); }
.btn.primary:hover { background: var(--primary-pressed); }
.btn.ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn.ghost:hover { border-color: var(--ink); }
.store-badge { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 20px 8px 16px; border-radius: 14px; background: var(--ink); color: var(--bg); text-decoration: none; }
.store-badge svg { width: 24px; height: 28px; flex: none; fill: currentColor; }
.store-badge small { display: block; font-size: 11px; line-height: 1.2; letter-spacing: .02em; opacity: .8; }
.store-badge b { display: block; font-size: 18px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
.store-badge[aria-disabled="true"] { cursor: default; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }

/* Hero */
.hero { padding: 28px 0 56px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 56px 0 96px; } .hero .wrap { grid-template-columns: 1.1fr .9fr; gap: 64px; } }
.hero h1 { font-size: clamp(44px, 11.5vw, 84px); line-height: 1.0; letter-spacing: -.02em; margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--primary); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero h1 em { color: var(--link); } }
.hero .lede { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 34em; margin: 0 0 28px; }
@media (min-width: 900px) { .hero .lede { font-size: 20px; } }
.hero .fine { font-size: 14px; color: var(--muted); margin: 18px 0 0; }

/* Phone */
.phone { position: relative; width: min(300px, 78vw); margin: 0 auto; aspect-ratio: 1206 / 2622; border-radius: 48px; padding: 10px; background: var(--phone); box-shadow: 0 40px 80px -30px rgba(26, 20, 18, .45), 0 0 0 1px rgba(255,255,255,.06) inset; }
@media (min-width: 900px) { .phone { width: 320px; } }
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; background: #F4EEE4; }
.phone-wrap { position: relative; }
.phone-wrap::before { content: ""; position: absolute; inset: 8% -6% 4%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--primary) 14%, transparent), transparent); z-index: -1; }
.watch { display: inline-flex; align-items: center; gap: 8px; margin: 20px auto 0; font-size: 14px; font-weight: 600; color: var(--ink); background: none; border: 0; cursor: pointer; padding: 8px 4px; font-family: inherit; }
.watch .play { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); display: grid; place-items: center; }
.watch .play svg { width: 10px; height: 12px; fill: var(--on-primary); margin-left: 2px; }
.phone-col { text-align: center; }

/* Sections */
section { padding: 72px 0; }
@media (min-width: 900px) { section { padding: 112px 0; } }
section.tint { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 40em; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(34px, 7vw, 56px); line-height: 1.04; letter-spacing: -.015em; margin-bottom: 16px; }
.sec-head p { font-size: 18px; color: var(--muted); margin: 0; }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 80px; } .split.flip > :first-child { order: 2; } }

/* Shot (screen still in a soft frame) */
.shot { width: min(300px, 80vw); margin: 0 auto; border-radius: 36px; overflow: hidden; border: 8px solid var(--phone); box-shadow: 0 30px 60px -30px rgba(26,20,18,.4); aspect-ratio: 1206 / 2622; background: #F4EEE4; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shots { display: flex; justify-content: center; gap: 16px; }
.shots .shot { width: min(240px, 44vw); border-width: 6px; border-radius: 30px; }
.shots .shot:nth-child(2) { margin-top: 48px; }

/* Feature list */
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.points li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; }
.points .mark { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--primary); font-family: Fraunces, Georgia, serif; font-size: 15px; }
.points h3 { font-family: Inter, system-ui, sans-serif; font-weight: 600; font-size: 17px; margin: 2px 0 4px; }
.points p { margin: 0; color: var(--muted); }

/* Values chips */
.values { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.values li { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 500; }
section.tint .values li { background: var(--bg); }

/* Calls-first timeline */
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: t; display: grid; gap: 0; }
.timeline li { counter-increment: t; position: relative; padding: 0 0 26px 52px; }
.timeline li::before { content: counter(t); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; font-family: Fraunces, Georgia, serif; font-size: 16px; color: var(--ink); }
.timeline li::after { content: ""; position: absolute; left: 17px; top: 38px; bottom: 4px; width: 1px; background: var(--line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline li.key::before { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.timeline h3 { font-family: Inter, system-ui, sans-serif; font-weight: 600; font-size: 17px; margin: 4px 0 2px; }
.timeline p { margin: 0; color: var(--muted); }

/* Review steps */
.cards3 { display: grid; gap: 16px; }
@media (min-width: 760px) { .cards3 { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
section.tint .card { background: var(--bg); }
.card .n { font-family: Fraunces, Georgia, serif; font-size: 15px; color: var(--primary); margin: 0 0 10px; }
.card h3 { font-size: 24px; line-height: 1.2; margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); }

/* Pricing */
.prices { display: grid; gap: 16px; }
@media (min-width: 760px) { .prices { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.price { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px 24px; display: flex; flex-direction: column; }
.price.club { background: var(--club); border-color: var(--club); color: var(--club-ink); }
.price.club h3, .price.club .amt { color: var(--club-ink); }
.price.club p, .price.club li { color: var(--club-muted); }
.price h3 { font-size: 26px; margin: 0 0 6px; }
.price .amt { font-family: Fraunces, Georgia, serif; font-size: 40px; line-height: 1.1; margin: 8px 0 14px; }
.price .amt small { font-family: Inter, system-ui, sans-serif; font-size: 15px; color: var(--muted); }
.price.club .amt small { color: var(--club-muted); }
.price ul { margin: 0; padding-left: 18px; color: var(--muted); }
.price li { margin: 0 0 6px; }
.price .tag { align-self: flex-start; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--brass); margin: 0 0 12px; }
.note { font-size: 14px; color: var(--muted); margin: 24px 0 0; }

/* Photo band + closing CTA */
.band { position: relative; min-height: 560px; display: grid; align-items: end; color: #F4EEE4; overflow: hidden; padding: 0; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,18,15,0) 20%, rgba(23,18,15,.78) 100%); }
.band .wrap { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 64px; }
.band h2 { color: #F4EEE4; font-size: clamp(44px, 11vw, 88px); line-height: 1; letter-spacing: -.02em; margin-bottom: 14px; }
.band p { font-size: 18px; color: rgba(244,238,228,.86); margin: 0 0 28px; max-width: 32em; }
.band .store-badge { background: #F4EEE4; color: #1A1412; }
.band .btn.ghost { color: #F4EEE4; border-color: rgba(244,238,228,.4); }
.band .btn.ghost:hover { border-color: #F4EEE4; }

/* Photo mosaic */
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 40px; }
.mosaic img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; }
@media (min-width: 760px) { .mosaic { gap: 16px; } .mosaic img { border-radius: 20px; } .mosaic img:nth-child(2) { transform: translateY(32px); } }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14px; color: var(--muted); }
.site-foot .wrap { display: grid; gap: 20px; }
@media (min-width: 760px) { .site-foot .wrap { grid-template-columns: auto 1fr; align-items: start; gap: 48px; } }
.site-foot .brand svg { height: 24px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }
.site-foot p { margin: 10px 0 0; }

/* Video dialog */
dialog.player { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100dvh; }
dialog.player::backdrop { background: rgba(23,18,15,.86); }
dialog.player .inner { position: relative; height: min(84dvh, 900px); aspect-ratio: 1080 / 1920; max-width: 92vw; }
dialog.player video { width: 100%; height: 100%; object-fit: contain; border-radius: 24px; background: #000; }
dialog.player .close { position: absolute; top: -48px; right: 0; background: none; border: 0; color: #F4EEE4; font: 600 15px/1 Inter, system-ui, sans-serif; padding: 12px 4px; cursor: pointer; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* Support / doc pages on the marketing shell */
main.doc { padding: 40px 0 72px; }
main.doc .wrap { max-width: 720px; }
main.doc h1 { font-size: clamp(38px, 9vw, 52px); line-height: 1.05; letter-spacing: -.01em; margin: 0 0 14px; }
main.doc h2 { font-size: 28px; line-height: 1.2; margin: 52px 0 12px; }
main.doc h3 { font-size: 20px; line-height: 1.3; margin: 26px 0 6px; }
main.doc .lede { font-size: 18px; color: var(--muted); margin: 0 0 8px; }
main.doc p, main.doc li { margin: 0 0 12px; }
main.doc ul, main.doc ol { padding-left: 22px; }
main.doc .card { margin: 18px 0; padding: 20px 22px; }
main.doc .card h3 { margin-top: 0; font-size: 20px; }
main.doc .card > :last-child { margin-bottom: 0; }
main.doc .card.blush { background: var(--blush); border-color: transparent; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding-left: 38px; margin-bottom: 14px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-size: 13px; font-weight: 600; display: grid; place-items: center; }
details.faq { border-bottom: 1px solid var(--line); }
details.faq summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; position: relative; font-family: Fraunces, Georgia, serif; font-size: 19px; line-height: 1.35; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-family: Inter, system-ui, sans-serif; font-size: 22px; color: var(--muted); transition: transform .2s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .a { padding: 0 0 18px; color: var(--muted); }
details.faq .a p:last-child { margin-bottom: 0; }
.faq-group { border-top: 1px solid var(--line); margin-top: 8px; }
.toc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 8px; padding: 0; list-style: none; }
.toc-chips a { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--ink); text-decoration: none; background: var(--surface); }
.toc-chips a:hover { border-color: var(--ink); }

/* Calls-first illustration */
.callstack { display: grid; gap: 16px; max-width: 380px; margin: 0 auto; width: 100%; }
.callcard { background: var(--club); color: var(--club-ink); border-radius: 24px; padding: 28px 26px; box-shadow: 0 30px 60px -34px rgba(26,20,18,.55); }
.callcard .cc-over, .notecard .cc-over { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--brass); margin: 0 0 10px; }
.callcard .cc-when { font-family: Fraunces, Georgia, serif; font-size: 34px; line-height: 1.1; margin: 0 0 6px; }
.callcard .cc-meta { color: var(--club-muted); margin: 0 0 24px; font-size: 15px; }
.cc-avatars { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; }
.cc-avatars span:not(.cc-line) { width: 52px; height: 52px; border-radius: 50%; border: 1px solid #3A302A; display: grid; place-items: center; font-family: Fraunces, Georgia, serif; font-size: 22px; color: var(--club-ink); background: #231C18; }
.cc-avatars .cc-line { flex: 1; height: 1px; background: repeating-linear-gradient(90deg, #B08D57 0 6px, transparent 6px 12px); }
.callcard .cc-priv { margin: 0; font-size: 14px; color: var(--club-muted); }
.notecard { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; margin-left: 28px; }
.notecard .nq { font-family: Fraunces, Georgia, serif; font-size: 22px; line-height: 1.25; margin: 0 0 14px; }
.nopts { display: flex; gap: 8px; }
.nopts span { border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-size: 14px; font-weight: 500; }
.nopts span.on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.cc-cap { font-size: 13px; color: var(--muted); margin: 4px 0 0; text-align: center; }

section[id], main.doc [id] { scroll-margin-top: 76px; }

/* Team (renders only when TEAM has real people; see /about) */
.team .people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 8px; }
@media (min-width: 640px) { .team .people { grid-template-columns: repeat(3, 1fr); } }
.team .person { margin: 0; }
.team .person img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; background: var(--surface); }
.team figcaption { margin-top: 8px; font-size: 15px; }
.team figcaption strong { display: block; font-weight: 600; }
.team figcaption span { color: var(--muted); font-size: 14px; }
main.doc .values { margin: 8px 0 16px; }
.head-nav { gap: 16px; }
@media (max-width: 400px) { .head-nav { gap: 12px; font-size: 13.5px; } }
.head-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--primary); text-underline-offset: 6px; }
