
:root{--bg:#FFFCF8;--bg2:#FFF4EA;--card:#fff;--ink:#1C1712;--muted:#6B5E52;--line:#EADFD2;--accent:#E4572E;--accent2:#B93A1E;--gold:#C98A1B;--sage:#2F5D50;--radius:20px;--shadow:0 20px 50px rgba(28,23,18,.10)}
@media(prefers-color-scheme:dark){:root{--bg:#141110;--bg2:#1E1916;--card:#201B18;--ink:#F7EDE3;--muted:#C4B2A3;--line:#3A2F28;--accent:#FF7A52;--accent2:#FF9A7A;--shadow:0 20px 50px rgba(0,0,0,.4)}}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Manrope,system-ui,sans-serif;background:var(--bg);color:var(--ink);line-height:1.6}
a{color:inherit}button{font:inherit;cursor:pointer}
.topbar{position:sticky;top:0;z-index:50;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.nav{max-width:1180px;margin:0 auto;padding:14px 20px;display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.logo{font-family:"DM Serif Display",serif;font-size:32px;letter-spacing:-.02em;text-decoration:none}.logo span{color:var(--accent)}
.navlinks{display:flex;gap:6px;flex-wrap:wrap;margin-left:auto}
.navlinks button,.navlinks a{background:none;border:0;padding:9px 12px;border-radius:999px;font-weight:700;font-size:14px;color:var(--muted);text-decoration:none}
.navlinks button.active,.navlinks button:hover{background:var(--bg2);color:var(--ink)}
.btn{display:inline-flex;align-items:center;justify-content:center;padding:12px 20px;border-radius:999px;border:1px solid var(--line);background:var(--card);font-weight:800;text-decoration:none}
.btn.primary{background:var(--ink);color:var(--bg);border-color:var(--ink)}.btn.accent{background:var(--accent);color:#fff;border-color:var(--accent)}
.beta{font-size:11px;letter-spacing:.14em;text-transform:uppercase;font-weight:800;background:#FFF0D6;color:#7A4A00;border:1px solid #F2D492;padding:6px 10px;border-radius:999px}
@media(prefers-color-scheme:dark){.beta{background:#33270f;color:#FFD88A;border-color:#5a451a}}
.wrap{max-width:1180px;margin:0 auto;padding:0 20px}
.view{display:none}.view.active{display:block;animation:fade .35s ease}@keyframes fade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.view.active{animation:none}}
.hero{padding:56px 0 28px;display:grid;grid-template-columns:1.05fr .95fr;gap:36px;align-items:center}
h1,h2{font-family:"DM Serif Display",serif;font-weight:400;line-height:.95;letter-spacing:-.02em}
h1{font-size:clamp(44px,7vw,78px);margin:14px 0}h1 em{color:var(--accent);font-style:italic}
h2{font-size:clamp(34px,5vw,52px);margin:0 0 14px}h3{font-size:20px;margin:0 0 8px}
.lead{font-size:19px;color:var(--muted);max-width:620px}
.heroimg{border-radius:28px;overflow:hidden;box-shadow:var(--shadow);border:1px solid var(--line)}.heroimg img{width:100%;height:100%;object-fit:cover;display:block;aspect-ratio:4/3}
.pillrow{display:flex;gap:10px;flex-wrap:wrap;margin:22px 0}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:24px}
.card p{color:var(--muted)}
.section{padding:52px 0}.section.alt{background:var(--bg2);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.chat{background:var(--card);border:1px solid var(--line);border-radius:24px;overflow:hidden;box-shadow:var(--shadow)}
.chathead{padding:16px 20px;border-bottom:1px solid var(--line);display:flex;gap:12px;align-items:center}
.avatar{width:44px;height:44px;border-radius:50%;background:var(--accent);color:#fff;display:grid;place-items:center;font-family:"DM Serif Display",serif;font-size:22px}
.bubble{background:var(--bg2);border:1px solid var(--line);border-radius:18px 18px 18px 6px;padding:16px 18px;margin:18px;max-width:88%}
.bubble.user{background:var(--ink);color:var(--bg);margin-left:auto;border-radius:18px 18px 6px 18px}
.persbtns{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}
.persbtns button{padding:10px 16px;border-radius:999px;border:1px solid var(--line);background:var(--card);font-weight:800}
.persbtns button.active{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.pricegrid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.price{position:relative}.price.pop{border:2px solid var(--accent)}
.price .amt{font-family:"DM Serif Display",serif;font-size:42px}.price ul{padding-left:18px;color:var(--muted)}
.tag{position:absolute;top:-12px;right:16px;background:var(--accent);color:#fff;font-size:12px;font-weight:800;padding:5px 10px;border-radius:999px}
.faq{border:1px solid var(--line);border-radius:16px;background:var(--card);margin-bottom:10px;overflow:hidden}
.faq button{width:100%;text-align:left;background:none;border:0;padding:18px 20px;font-weight:800;display:flex;justify-content:space-between;gap:12px}
.faq .ans{display:none;padding:0 20px 18px;color:var(--muted)}.faq.open .ans{display:block}
.policy{max-width:820px}.policy h3{margin-top:28px}.policy p,.policy li{color:var(--muted)}
.draftline{margin-top:36px;padding:16px;border:1px dashed var(--gold);border-radius:12px;font-weight:700;background:var(--bg2)}
input,select,textarea{width:100%;padding:13px 14px;border-radius:12px;border:1px solid var(--line);background:var(--card);color:var(--ink);font:inherit}
label{font-weight:700;font-size:14px;display:block;margin:14px 0 6px}
footer{border-top:1px solid var(--line);padding:36px 0 28px;margin-top:20px;background:var(--bg2)}
.footlinks{display:flex;gap:14px;flex-wrap:wrap}.footlinks button{background:none;border:0;color:var(--muted);font-weight:700;padding:0;text-decoration:underline}
.small{font-size:13px;color:var(--muted)}
.calc{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.calc div{flex:1;min-width:160px}
@media(max-width:900px){.hero,.grid2,.grid3,.pricegrid{grid-template-columns:1fr}.navlinks{margin-left:0}}

.ref-style-0{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}
.ref-style-1{font-size:26px}
.ref-style-2{max-width:340px}
.ref-style-3{margin-top:10px;flex-direction:column;align-items:flex-start}
.ref-style-4{margin-top:24px}
.ref-style-5{margin-top:12px}
.ref-style-6{align-items:start}
.ref-style-7{margin-left:auto}
.ref-style-8{padding:8px 0}
.ref-style-9{margin-top:16px}
.ref-style-10{margin-top:20px}
.ref-style-11{margin-top:18px}
.ref-style-12{margin-top:22px}
/* Production accessibility, truthful asset fallbacks and responsive refinements. */
:root { --personality: #F2785C; }
.btn.accent { background: var(--accent2); border-color: var(--accent2); color: #fff; }
body { overflow-wrap: break-word; }
main { min-height: 60vh; }
main:focus { outline: none; }
a { text-underline-offset: .2em; }
h1 { line-height: 1.04; }
.section > h1 { max-width: 900px; font-size: clamp(40px, 6vw, 64px); }
h2 { line-height: 1.08; }
h3 { line-height: 1.3; }
button, input, select, summary, .btn, .navlinks a { min-height: 44px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
[hidden] { display: none !important; }
fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
fieldset:disabled { opacity: .7; }
button:disabled { cursor: wait; opacity: .6; }
input, select, textarea { font-size: 16px; min-width: 0; }
.navlinks a[aria-current="page"], .navlinks a:hover { color: var(--ink); background: var(--bg2); }
.footlinks a { color: var(--muted); font-size: 14px; padding: 8px 0; min-height: 44px; }
.skip-link { position: absolute; left: 20px; top: -100px; padding: 12px 20px; background: var(--ink); color: var(--bg); z-index: 100; border-radius: 10px; }
.skip-link:focus { top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.preview-note { font-size: 13px; color: var(--muted); margin: 24px 0 0; }
.asset-slot { margin: 0; width: 100%; aspect-ratio: 4 / 3; min-width: 0; display: grid; place-items: center; background: var(--bg2); color: var(--muted); border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.asset-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.asset-slot figcaption { text-align: center; padding: 24px; font-family: Georgia, serif; font-size: 28px; line-height: 1.2; }
.asset-slot figcaption span { display: block; font-family: system-ui, sans-serif; font-size: 13px; margin-top: 12px; line-height: 1.5; }
.heroimg .asset-slot { border: 0; }
.lifestyle { max-width: 800px; margin: 0 auto 48px; }
.character-controls { display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: end; gap: 16px; margin: 28px 0 20px; }
.companion-avatar { overflow: hidden; }
.companion-avatar img { width: 100%; height: 100%; object-fit: cover; }
.personality-choice { margin: 0; position: relative; }
.personality-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.personality-choice span { display: inline-flex; align-items: center; min-height: 44px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 10px 16px; cursor: pointer; font-weight: 800; }
.personality-choice input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); box-shadow: inset 0 -4px var(--personality); }
.personality-choice input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 4px; }
[data-personality="formal"] { --personality: #22354E; }
[data-personality="friendly"] { --personality: #F2785C; }
[data-personality="lovely"] { --personality: #EB9AA5; }
[data-personality="flirty"] { --personality: #7E2A52; }
[data-personality="efficient"] { --personality: #14555A; }
.chat { border-top: 5px solid var(--personality); }
.avatar { color: var(--ink); background: var(--bg2); border: 3px solid var(--personality); flex-shrink: 0; }
.chathead > div:nth-child(2) { min-width: 0; }
.chathead strong { overflow-wrap: anywhere; }
.portrait-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.portrait-card { border-radius: 22px; border: 3px solid transparent; padding: 5px; }
.portrait-card.is-active { border-color: var(--personality); }
.portrait-card .asset-slot { aspect-ratio: 3 / 4; }
.portrait-card figcaption { font-size: 20px; padding: 10px; }
.portrait-card > p { text-align: center; font-weight: 700; margin: 10px 0 4px; }
.price-period { font-family: system-ui, sans-serif; font-size: 16px; }
.price { display: flex; flex-direction: column; }
.price ul { flex: 1; }
.full-width { width: 100%; }
.payg { margin: 24px 0; }
.payg h2, .allowance h2, .invite-section .card h2 { font-family: Manrope, system-ui, sans-serif; font-size: 24px; font-weight: 700; }
.allowance { margin-top: 18px; }
.faq summary { cursor: pointer; padding: 18px 20px; font-weight: 800; }
.faq[open] summary { border-bottom: 1px solid var(--line); }
.faq .answer { padding: 18px 20px; color: var(--muted); }
.invite-section { max-width: 640px; margin: 0 auto; }
.contact-section { max-width: 1000px; margin: 0 auto; }
.contact-section > .lead { max-width: 640px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; margin-top: 32px; }
.contact-card { border-top: 4px solid var(--accent); }
.contact-grid h2, .contact-notes h2 { font-family: Manrope, system-ui, sans-serif; font-size: 24px; font-weight: 700; line-height: 1.3; }
.contact-email { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; font-size: clamp(21px, 3vw, 30px); font-weight: 800; overflow-wrap: anywhere; }
.contact-beta { background: var(--bg2); }
.contact-notes { max-width: 720px; margin-top: 32px; }
.contact-notes p { color: var(--muted); }
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }
#inviteStatus { padding: 12px; background: var(--bg2); border-radius: 10px; }
.policy .draftline { margin-bottom: 0; }
@media (max-width: 1050px) { .nav { gap: 10px; } .navlinks { order: 3; width: 100%; margin-left: 0; } .nav > .btn { margin-left: auto; } }
@media (max-width: 900px) { .pricegrid { grid-template-columns: repeat(2, 1fr); } .hero { gap: 24px; padding-top: 28px; } .portrait-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .topbar { position: static; } .nav { padding: 12px 16px; } .nav .beta { font-size: 9px; } .navlinks { gap: 0; } .navlinks a { padding: 9px 10px; } .nav > .btn { width: 100%; order: 4; } .wrap { padding: 0 16px; } .section { padding: 36px 0; } .section.alt { padding-left: 16px; padding-right: 16px; } .pricegrid { grid-template-columns: 1fr; } .character-controls { grid-template-columns: 1fr; } .portrait-grid { grid-template-columns: repeat(2, 1fr); } .lead { font-size: 17px; } .card { padding: 20px; } .chathead { padding: 14px; flex-wrap: wrap; } .bubble { margin: 14px; padding: 14px; max-width: calc(100% - 28px); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }


/* Brand lockup: spark mark beside the header wordmark (integration 2026-11-07). */
.nav .logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 32px; height: 32px; border-radius: 9px; display: block; flex-shrink: 0; }

/* Accent buttons carry cocoa text in BOTH schemes (matches the app design
   system: dark text on ember). White on the light-scheme ember measured
   3.68:1 — below AA for button text; cocoa measures 4.83:1 / 6.91:1. */
.btn.accent { color: #1C1712; }


/* Design application round (2026-11-07): one shared Ember token set, site + app.
   Light: Deep Ember fills + white button text (4.90:1 / 5.90:1 hover).
   Dark: canvas one step deeper than cocoa (#241B16) with the surface ladder
   #241B16 -> #2B201B -> #33281F -> #3E3026; Ember fill + cocoa button text
   (6.54:1). Retires #FFFCF8 / #141110 / #E4572E / #FF7A52. */
@font-face { font-family: 'DM Serif Display'; src: url('/fonts/DMSerifDisplay-400-latin.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Serif Display'; src: url('/fonts/DMSerifDisplay-400i-latin.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: Manrope; src: url('/fonts/Manrope-400-latin.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Manrope; src: url('/fonts/Manrope-500-latin.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: Manrope; src: url('/fonts/Manrope-600-latin.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: Manrope; src: url('/fonts/Manrope-700-latin.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: Manrope; src: url('/fonts/Manrope-800-latin.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }
:root { --bg: #FAF4EC; --bg2: #F3E9DB; --card: #FFFDF9; --ink: #2B201B; --muted: #6E5B4D; --line: #E4D9CD; --accent: #B65427; --accent2: #A34A1F; --gold: #E8933A; --sage: #476B3F; }
.logo-mark { width: 36px; height: 36px; }
.nav .logo { gap: 11px; }
.btn.accent { background: #B65427; border-color: #B65427; color: #FFFFFF; }
.btn.accent:hover { background: #A34A1F; border-color: #A34A1F; color: #FFFFFF; }
.asset-slot figcaption { font-family: 'DM Serif Display', Georgia, serif; }
/* Dark scheme is now an explicit visitor choice (see the 2026-11-22 layer below). */

/* Use the same approved mark in the public footer and header. */
footer .logo { display: inline-flex; align-items: center; gap: 11px; }

/* Shared website chrome only; preserve the existing palette and body layout. */
.site-footer .wrap > div { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: 32px 48px; align-items: start; }
.site-footer .logo { line-height: 1.2; margin-bottom: 12px; }
.site-footer .logo-mark { display: block; flex: none; }
.site-footer .footlinks { gap: 8px; }
.site-footer .wrap > p { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 600px) { .site-footer .wrap > div { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } .site-footer .wrap > div > div:first-child { grid-column: 1 / -1; } }

/* ==========================================================================
   Redesign (2026-11-22, approved by Shawn): Ink & Spark.
   Porcelain and ink, monochrome buttons; the only colour is the orange
   of the logo spark (#E8933A), used sparingly.
   Looks only. Light is the default; Dark is a visitor choice remembered
   by /theme.js. Logo files, wordmark and footer text are unchanged.
   ========================================================================== */
:root, :root[data-theme="light"] {
  --ivory: #F7F7F5; --paper: #FFFFFF; --sand: #ECEBE7; --sand-2: #E2E0DB;
  --line: #E1DFDA; --line-2: #CCC9C3;
  --ink: #18181B; --ink-2: #46464D; --ink-3: #5F5F67;
  --logo-ink: var(--ink); /* wordmark in palette ink (approved Nov 22) */
  --rust: #18181B; --cta: #18181B; --cta-hi: #303036; --on-cta: #FFFFFF; --rust-soft: #FCEFE3;
  --gold: #5F5F67; --gold-hi: #E8933A; --gold-soft: #FCF0E5;
  --spark: #E8933A; /* the logo spark: the only colour */
  --spark-text: #18181B; /* orange on porcelain is too faint to read, so light-theme accent words are ink */
  --esp: #2A2A30; --esp-2: #33333A; --esp-3: #38383F; --on-esp: #F5F4F1; --on-esp-2: #D2D1D5; --on-esp-3: #ACABB2;
  --band-edge: rgba(245,244,241,.08);
  --f-d: 'DM Serif Display', Georgia, serif;
  --f-b: Manrope, 'Segoe UI', system-ui, sans-serif;
  --sh-1: 0 1px 2px rgba(24,24,27,.06), 0 14px 34px -16px rgba(24,24,27,.22);
  --sh-2: 0 2px 6px rgba(24,24,27,.07), 0 40px 80px -34px rgba(24,24,27,.38);
  --bg: var(--ivory); --bg2: var(--sand); --card: var(--paper); --muted: var(--ink-2);
  --accent: var(--rust); --accent2: var(--cta); --sage: #46464D; --shadow: var(--sh-2); --radius: 24px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --ivory: #1E1E23; --paper: #27272D; --sand: #232328; --sand-2: #303037;
  --line: #36363E; --line-2: #46464F;
  --ink: #F3F2EF; --ink-2: #CACAD0; --ink-3: #A6A6AE;
  --logo-ink: var(--ink); /* wordmark in palette ink (approved Nov 22) */
  --rust: #F3F2EF; --cta: #F3F2EF; --cta-hi: #FFFFFF; --on-cta: #18181B; --rust-soft: #303037;
  --gold: #CACAD0; --gold-hi: #E8933A; --gold-soft: #303037;
  --spark: #E8933A; --spark-text: #E8933A;
  --esp: #2B2B32; --esp-2: #34343C; --esp-3: #39393F;
  --band-edge: rgba(245,244,241,.10);
  --sh-1: 0 1px 2px rgba(0,0,0,.25), 0 10px 28px -14px rgba(0,0,0,.5);
  --sh-2: 0 2px 6px rgba(0,0,0,.25), 0 40px 80px -34px rgba(0,0,0,.65);
  --sage: #CACAD0;
  color-scheme: dark;
}
html { scroll-padding-top: 88px; }
body { background: var(--ivory); color: var(--ink); font-family: var(--f-b); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2 { font-family: var(--f-d); font-weight: 400; letter-spacing: -.015em; line-height: 1.04; text-wrap: balance; }
h3 { font-family: var(--f-b); font-weight: 700; letter-spacing: -.01em; }
h1 em, .ital { font-style: italic; color: var(--spark-text); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }
.small { color: var(--ink-3); }
.lead { color: var(--ink-2); font-size: 19px; line-height: 1.6; }
.skip-link { background: var(--ink); color: var(--ivory); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--rust); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--spark); }
.beta { display: inline-flex; align-items: center; gap: 12px; background: transparent; border: 0; padding: 0; border-radius: 0; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--rust); }
.beta::before { content: ""; width: 28px; height: 1px; background: var(--spark); }
.seal { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
.seal i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold-hi) 25%, transparent); }

/* Buttons */
.btn { min-height: 48px; padding: 0 24px; gap: 10px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); font-weight: 700; font-size: 15px; white-space: nowrap; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.btn:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.btn.accent, .btn.accent:hover { background: var(--cta); border-color: var(--cta); color: var(--on-cta); box-shadow: 0 14px 30px -16px rgba(0,0,0,.45); }
.btn.accent:hover { background: var(--cta-hi); border-color: var(--cta-hi); }
.btn.gold, .btn.gold:hover { background: #E8933A; border-color: #E8933A; color: #111113; box-shadow: 0 14px 36px -16px rgba(232,147,58,.55); }
.btn .arr { transition: transform .18s ease; }
.btn:hover .arr { transform: translateX(3px); }
.lnk { display: inline-flex; align-items: center; min-height: 44px; color: var(--rust); font-weight: 700; font-size: 15px; text-decoration: none; }
.lnk:hover { text-decoration: underline; }

/* Header */
.topbar { position: sticky; top: 0; background: color-mix(in srgb, var(--ivory) 88%, transparent); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.nav { max-width: 1200px; padding: 0 24px; min-height: 72px; gap: 20px; }
.nav .logo { color: var(--logo-ink); }
.nav .beta { font-size: 11.5px; letter-spacing: .12em; color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); border-radius: 999px; padding: 6px 12px; gap: 8px; white-space: nowrap; }
.nav .beta::before { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold-hi) 25%, transparent); }
.navlinks { gap: 4px; align-items: center; }
.navlinks a { display: inline-flex; align-items: center; padding: 0 11px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); background: none; }
.navlinks a:hover { color: var(--ink); background: none; }
.navlinks a[aria-current="page"] { color: var(--ink); background: none; box-shadow: inset 0 -2px 0 var(--rust); border-radius: 0; }
.navlinks a[data-nav="signin"] { color: var(--ink); font-weight: 800; margin-left: 6px; border: 1px solid var(--line-2); border-radius: 999px; padding: 0 18px; }
.navlinks a[data-nav="signin"]:hover { border-color: var(--ink); }
.thm, .menu { width: 44px; height: 44px; min-height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; flex: none; padding: 0; }
.thm:hover, .menu:hover { color: var(--ink); border-color: var(--ink); }
.thm .moon, :root[data-theme="dark"] .thm .sun { display: none; }
:root[data-theme="dark"] .thm .moon { display: block; }
.menu { display: none; }

/* Footer (markup and text unchanged) */
footer.site-footer { background: var(--ivory); border-top: 1px solid var(--line); margin-top: 0; padding: 72px 0 36px; color: var(--ink-2); font-size: 15px; }
.site-footer .wrap { max-width: 1200px; padding: 0 24px; }
.site-footer .logo { color: var(--logo-ink); }
.site-footer .small { color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.site-footer strong { font-size: 11.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.site-footer .footlinks a { color: var(--ink-2); font-weight: 600; text-decoration: none; padding: 6px 0; min-height: 40px; display: inline-flex; align-items: center; }
.site-footer .footlinks a:hover { color: var(--rust); }
.site-footer .wrap > p { margin-top: 56px; padding-top: 22px; color: var(--ink-3); font-size: 13.5px; }

/* Inner pages */
main.wrap { max-width: 1200px; padding: 0 24px; }
.section { padding: 80px 0; }
.section > h1, .section > h2:first-child, .section > .beta + h1 { margin: 18px 0 18px; font-size: clamp(42px, 5.6vw, 76px); max-width: 15em; }
.section > .beta + h1 { margin-top: 20px; }
.section h2 { font-size: clamp(32px, 3.6vw, 48px); }
.section > .lead { max-width: 40em; }
.section.alt { background: var(--sand); border-color: var(--line); }
.grid3, .grid2 { gap: 20px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 30px; box-shadow: none; }
.card h3 { font-size: 20px; color: var(--ink); }
.card p { color: var(--ink-2); font-size: 15.5px; }
.card .btn { margin-top: 8px; }
input, select, textarea { background: var(--paper); color: var(--ink); border: 1px solid var(--line-2); border-radius: 12px; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); }
label { color: var(--ink-2); font-size: 13.5px; }
#inviteStatus { background: var(--sand); color: var(--ink-2); }
.invite-section .card + .card { margin-top: 20px; }
.contact-card { border-top: 3px solid var(--rust); }
.contact-beta { background: var(--sand); }
.contact-email { color: var(--ink); }
.contact-grid h2 { font-family: var(--f-d); font-weight: 400; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.1; margin-bottom: 14px; }
.contact-notes h2 { font-family: var(--f-d); font-weight: 400; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.08; margin-top: 56px; }
.contact-grid .card p, .contact-notes p { font-size: 15.5px; }
.policy h3 { font-size: 18px; margin-top: 32px; }
.draftline { border-color: var(--gold); background: var(--sand); color: var(--ink-2); border-radius: 14px; }
.asset-slot { background: var(--sand); border-color: var(--line); border-radius: 26px; }
.lifestyle { margin-bottom: 72px; box-shadow: var(--sh-2); }

/* Personality demo on the Personalities page */
.chat { background: var(--paper); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--sh-2); border-top: 4px solid var(--personality); }
.chathead { border-bottom-color: var(--line); }
.chathead .beta { flex: none; white-space: nowrap; font-size: 11px; letter-spacing: .12em; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 11px; }
.chathead .beta::before { display: none; }
.avatar { border-color: var(--personality); background: var(--sand); color: var(--ink); }
.bubble { background: var(--sand); border: 0; color: var(--ink); border-radius: 20px 20px 20px 6px; font-size: 15.5px; }
.bubble.user { background: var(--ink); color: var(--ivory); border-radius: 20px 20px 6px 20px; font-weight: 600; }
.personality-choice span { background: var(--paper); border-color: var(--line-2); color: var(--ink-2); font-weight: 700; font-size: 14.5px; }
.personality-choice input:checked + span { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.personality-choice input:focus-visible + span { outline: 2px solid var(--rust); }
.portrait-card { border-radius: 26px; }
.portrait-card .asset-slot { border-radius: 999px 999px 18px 18px; }
.preview-note { color: var(--ink-3); }

/* FAQ (FAQ page and home) */
#faqList, .hm-faq { max-width: 860px; margin: 28px auto 0; border-top: 1px solid var(--line); }
details.faq { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; margin: 0; }
details.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-family: var(--f-b); font-weight: 600; font-size: 19px; line-height: 1.35; color: var(--ink); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 20px; font-weight: 400; line-height: 1; color: var(--ink); transition: transform .2s ease; }
details.faq[open] summary { border-bottom: 0; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .answer { padding: 0 56px 26px 0; color: var(--ink-2); max-width: 44em; }

/* Pricing (Pricing page and home) */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.plans .plan { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 28px 24px; display: flex; flex-direction: column; gap: 18px; box-shadow: none; }
.plans .plan.hi { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--sh-1); }
.plan .nm { margin: 0; font-family: var(--f-b); font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.plan .pr { font-family: var(--f-d); font-weight: 400; font-size: 50px; line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.plan .pr small, .plan .price-period { font-family: var(--f-b); font-size: 15px; color: var(--ink-3); font-weight: 600; margin-left: 3px; letter-spacing: 0; }
.plan .cr { margin: 0; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--gold-soft); font-size: 15px; color: var(--ink); }
.plan .cr::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }
.plan .cr b, .plan .cr strong { font-weight: 800; }
.plan .pick { position: absolute; top: -12px; left: 22px; border: 1px solid var(--gold); background: var(--esp); color: var(--gold-hi); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 14.5px; color: var(--ink-2); flex: 1; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.plan li svg { margin-top: 6px; color: var(--rust); }
.plan .btn { min-height: 46px; font-size: 14.5px; padding: 0 16px; margin-top: 0; }
.pricing-page .eyebrow + h1 { margin-top: 20px; }
.pricing-page .plans { margin-top: 44px; }
.card.payg { margin: 16px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; padding: 32px 36px; border-radius: 26px; background: var(--esp); border-color: var(--band-edge); color: var(--on-esp); box-shadow: var(--sh-2); }
.card.payg > div:first-child { flex: 1 1 320px; }
.payg .lbl { display: block; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-hi); }
.card.payg h2 { margin: 6px 0 0; font-family: var(--f-b); font-weight: 700; font-size: 26px; line-height: 1.25; color: var(--on-esp); }
.card.payg p { margin: 8px 0 0; color: var(--on-esp-2); font-size: 15px; max-width: 34em; }
.card.payg a { color: var(--gold-hi); }
.payg-amt { margin-left: auto; text-align: right; }
.payg-amt strong { display: block; font-family: var(--f-d); font-weight: 400; font-size: 64px; line-height: 1; }
.payg-amt span { font-size: 14px; color: var(--gold-hi); font-weight: 700; }
.card.payg .packs { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--on-esp-2); }
.card.payg .packs strong { color: var(--on-esp); font-weight: 700; }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.rules .card.allowance { margin: 0; }
.rules .card h2 { font-family: var(--f-b); font-size: 18px; font-weight: 800; color: var(--ink); }
.pfine { margin-top: 26px; max-width: 60em; }

/* Home */
main[data-page="home"] { max-width: none; padding: 0; }
main[data-page="home"] .wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
main[data-page="home"] ul, main[data-page="home"] ol { list-style: none; margin: 0; padding: 0; }
:where(main[data-page="home"]) :is(p, h3) { margin: 0; }
.hm-hero { position: relative; overflow: hidden; }
.hm-hero::before { content: ""; position: absolute; right: -20%; top: -30%; width: 900px; height: 900px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--spark) 16%, transparent), transparent); pointer-events: none; }
main[data-page="home"] .hm-hero > .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 64px; align-items: center; padding-top: 72px; padding-bottom: 96px; }
.hm-hero h1 { margin: 30px 0 0; font-size: clamp(50px, 6.6vw, 100px); line-height: .98; letter-spacing: -.02em; }
.hm-hero h1 span { display: block; }
.hm-hero h1 .ital { margin-top: .04em; }
.lede { margin-top: 30px; max-width: 31em; font-size: 19.5px; line-height: 1.6; color: var(--ink-2); }
.lede b { color: var(--ink); font-weight: 700; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.cta .btn { min-height: 52px; padding: 0 28px; font-size: 15.5px; }
.stage { position: relative; justify-self: center; width: min(460px, 100%); }
.archwrap { position: relative; }
.arch { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 28px 28px; overflow: hidden; background: #F2785C; box-shadow: var(--sh-2); }
.arch::before { content: ""; position: absolute; inset: 10px; border-radius: 999px 999px 20px 20px; border: 1px solid rgba(255,255,255,.45); z-index: 2; pointer-events: none; }
.arch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hm-bubble { position: absolute; left: -44px; bottom: 26px; width: min(330px, 88%); background: var(--paper); border: 1px solid var(--line); border-radius: 22px 22px 22px 8px; padding: 16px 18px; box-shadow: var(--sh-2); z-index: 3; }
.who { display: flex; align-items: center; gap: 10px; }
.who .av { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: #F2785C; flex: none; box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--gold-hi); }
.who .av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.who b { display: block; font-size: 14px; }
.who small { display: block; font-size: 12px; color: var(--ink-3); }
.hm-bubble p { margin-top: 10px; font-size: 14.5px; line-height: 1.5; }
.cap { margin-top: 16px; text-align: center; font-size: 12.5px; color: var(--ink-3); }
.pillars { border-block: 1px solid var(--line); background: var(--sand); }
main[data-page="home"] .pillars ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pillars li { display: flex; gap: 14px; align-items: center; padding: 26px 22px; font-weight: 700; font-size: 15.5px; }
.pillars li + li { border-left: 1px solid var(--line); }
.pillars svg { flex: none; color: var(--gold); }
.pillars small { display: block; font-weight: 500; color: var(--ink-3); font-size: 13.5px; }
.band { padding-block: 128px; }
.band-flush { padding-top: 0; }
.head { max-width: 780px; margin-bottom: 60px; }
.head h2 { margin: 20px 0 0; font-size: clamp(36px, 4.6vw, 66px); }
.head p { margin-top: 22px; max-width: 36em; font-size: 18.5px; color: var(--ink-2); }
.head.c { text-align: center; margin-inline: auto; }
.head.c p { margin-inline: auto; }
.priceband .head h2 .ital, .pricing-page h1 .ital { display: block; }
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.why article { padding: 38px 34px 6px 0; }
.why article + article { padding-left: 34px; border-left: 1px solid var(--line); }
.why .ic { width: 48px; height: 48px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent); display: flex; align-items: center; justify-content: center; color: var(--rust); }
.why h3 { margin-top: 26px; font-size: 22px; line-height: 1.25; }
.why p { margin-top: 12px; color: var(--ink-2); font-size: 16px; }

/* Home: personality studio (scripted demo; same controls and wiring as before) */
.studio { background: var(--esp); color: var(--on-esp); position: relative; overflow: hidden; color-scheme: dark; border-block: 1px solid var(--band-edge); }
.studio::before { content: ""; position: absolute; left: 50%; top: -10%; width: 1300px; height: 900px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255,255,255,.045), transparent); transition: background .6s ease; pointer-events: none; }
.studio .wrap { position: relative; }
.studio .eyebrow { color: var(--gold-hi); }
.studio .ital { color: var(--gold-hi); }
.studio .head p { color: var(--on-esp-2); }
.room { display: grid; grid-template-columns: 300px minmax(0, 1fr); border: 1px solid rgba(242,241,236,.12); border-radius: 30px; overflow: hidden; background: var(--esp-2); box-shadow: 0 60px 120px -50px rgba(0,0,0,.9); }
.ctrl { padding: 26px; border-right: 1px solid rgba(242,241,236,.08); display: flex; flex-direction: column; gap: 18px; background: rgba(0,0,0,.14); }
.ctrl .character-controls { display: contents; }
.ctrl .character-controls > div:nth-child(1) { order: 1; }
.ctrl .character-controls > div:nth-child(2) { order: 2; }
.ctrl .character-controls > div:nth-child(3) { order: 3; }
.ctrl .persbtns { order: 4; }
.ctrl #demoReset { order: 5; }
.ctrl #lookPreviewStatus { order: 6; }
.ctrl .preview-note { order: 7; }
.ctrl noscript { order: 8; }
.ctrl label { margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--on-esp-3); }
.ctrl select, .ctrl input { min-height: 44px; border-radius: 12px; background: rgba(242,241,236,.06); border: 1px solid rgba(242,241,236,.18); color: var(--on-esp); font: 700 15px var(--f-b); padding: 0 14px; }
.ctrl select option { color: #111113; background: #FFFFFF; }
.ctrl input { background: transparent; border: 0; border-bottom: 1px solid rgba(242,241,236,.25); border-radius: 0; padding: 2px 0 6px; font-size: 22px; }
.ctrl input:focus { border-bottom-color: var(--gold-hi); }
.ctrl #demoReset { align-self: flex-start; background: transparent; color: var(--on-esp); border: 1px solid rgba(242,241,236,.25); border-radius: 12px; min-height: 44px; padding: 0 18px; font-size: 14px; }
.ctrl #demoReset:hover { border-color: var(--gold-hi); color: var(--gold-hi); }
.ctrl .preview-note, .ctrl #lookPreviewStatus { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--on-esp-3); }
.ctrl .persbtns { display: grid; gap: 4px; margin: 0; }
.ctrl .personality-choice span { display: flex; align-items: center; gap: 12px; width: 100%; justify-content: flex-start; background: transparent; border: 1px solid transparent; border-radius: 14px; padding: 10px 12px; color: var(--on-esp-2); font-size: 15px; font-weight: 700; box-shadow: none; }
.ctrl .personality-choice span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--c, #F2785C); box-shadow: 0 0 0 1.5px rgba(242,241,236,.28); }
.ctrl .personality-choice span:hover { background: rgba(242,241,236,.05); color: var(--on-esp); }
.ctrl .personality-choice input:checked + span { background: rgba(242,241,236,.08); border-color: rgba(242,241,236,.16); color: var(--on-esp); box-shadow: none; }
.ctrl .personality-choice input:focus-visible + span { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.ctrl .personality-choice input:disabled + span { cursor: default; }
.ctrl input[value="formal"] + span { --c: #22354E; }
.ctrl input[value="friendly"] + span { --c: #F2785C; }
.ctrl input[value="lovely"] + span { --c: #EB9AA5; }
.ctrl input[value="flirty"] + span { --c: #7E2A52; }
.ctrl input[value="efficient"] + span { --c: #14555A; }
.scene { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); min-width: 0; }
.portrait { position: relative; background: var(--personality); transition: background .6s ease; min-height: 460px; overflow: hidden; }
.portrait .avatar { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; background: transparent; color: rgba(255,255,255,.6); font-family: var(--f-d); font-size: 120px; display: grid; place-items: center; }
.portrait .avatar img { object-position: 50% 25%; }
.ptag { position: absolute; left: 18px; bottom: 18px; right: 18px; z-index: 2; background: rgba(10,10,12,.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(242,241,236,.14); border-radius: 16px; padding: 12px 14px; }
.ptag strong { display: block; font-size: 19px; font-weight: 700; color: var(--on-esp); }
.ptag .small { font-size: 12.5px; color: var(--on-esp-2); line-height: 1.45; }
.convo { display: flex; flex-direction: column; min-width: 0; }
.convo .top { display: flex; align-items: center; gap: 10px; padding: 18px 24px; border-bottom: 1px solid rgba(242,241,236,.08); font-size: 13px; color: var(--on-esp-3); }
.convo .top b { color: var(--on-esp); font-size: 14.5px; }
.demo-tag { margin-left: auto; border: 1px solid rgba(242,241,236,.16); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.thread { flex: 1; display: grid; gap: 16px; align-content: start; padding: 26px 24px; }
.studio .bubble { margin: 0; max-width: 88%; padding: 14px 17px; border: 0; border-radius: 20px 20px 20px 6px; background: var(--esp-3); color: var(--on-esp); font-size: 15.5px; line-height: 1.55; }
.studio .bubble.user { justify-self: end; background: var(--on-esp); color: #111113; border-radius: 20px 20px 6px 20px; font-weight: 600; margin-left: 0; }
.compose { margin: 0 24px 22px; display: flex; align-items: center; border: 1px solid rgba(242,241,236,.14); border-radius: 999px; padding: 7px 7px 7px 18px; font-size: 14.5px; color: var(--on-esp-3); }
.compose b { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; background: var(--on-esp); display: flex; align-items: center; justify-content: center; color: #111113; box-shadow: 0 0 0 2px rgba(242,241,236,.35); }
.snote { display: flex; justify-content: flex-end; margin-top: 18px; }
.studio .lnk { color: var(--gold-hi); }
.flirty-note { margin-top: 20px !important; max-width: 760px; border-left: 1px solid var(--gold); padding-left: 20px; font-size: 15px; color: var(--on-esp-2); }
.flirty-note b { color: var(--on-esp); }

/* Home: capabilities, duo, memory, steps, trust, final */
.caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; background: var(--paper); }
.caps article { padding: 34px 32px 36px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.caps article:nth-child(3n) { border-right: 0; }
.caps article:nth-last-child(-n+3) { border-bottom: 0; }
.caps svg { color: var(--rust); }
.caps h3 { font-size: 19px; font-weight: 800; }
.caps p { font-size: 15.5px; color: var(--ink-2); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.duo figure { position: relative; margin: 0; border-radius: 30px; overflow: hidden; min-height: 540px; display: flex; align-items: flex-end; background: var(--esp); color: #F2F1EC; }
.duo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.duo img.duo-evening { object-position: 30% 50%; }
.duo figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,12,0) 35%, rgba(10,10,12,.86)); }
.duo figcaption { position: relative; z-index: 1; padding: 40px; }
.duo .eyebrow { color: var(--gold-hi); }
.duo h3 { margin-top: 14px; font-family: var(--f-d); font-weight: 400; font-size: clamp(30px, 3vw, 42px); line-height: 1.08; letter-spacing: -.01em; }
.duo p { margin-top: 12px; max-width: 28em; font-size: 16.5px; color: #D9D8D2; }
.mem { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.mem-title { margin-top: 20px; font-size: clamp(40px, 5vw, 68px); }
.mem-lede { margin-top: 22px !important; font-size: 18.5px; color: var(--ink-2); max-width: 32em; }
.ticks { margin-top: 30px !important; display: grid; border-top: 1px solid var(--line); }
.ticks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.ticks svg { color: var(--rust); margin-top: 5px; }
.mem-card { background: var(--paper); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--sh-2); padding: 28px; }
.mem-card h3 { font-size: 22px; }
.mem-card .muted { color: var(--ink-3); font-size: 14.5px; margin-top: 4px; }
.toggle { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 14px 16px; border-radius: 14px; background: var(--sand); font-weight: 700; font-size: 14.5px; }
.sw { position: relative; width: 42px; height: 24px; border-radius: 999px; background: var(--cta); flex: none; }
.sw::after { content: ""; position: absolute; right: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--on-cta); }
.mitem { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.mitem p { flex: 1; min-width: 0; }
.mb { border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; min-height: 36px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 700; }
.mb.del { border-color: transparent; color: var(--rust); }
.mcap { margin-top: 14px !important; font-size: 12.5px; color: var(--ink-3); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.steps li { counter-increment: s; padding: 30px; border-radius: 24px; background: var(--paper); border: 1px solid var(--line); }
.steps li::before { content: counter(s); font-family: var(--f-d); font-size: 50px; line-height: 1; color: var(--spark-text); }
.steps h3 { margin-top: 18px; font-size: 19px; font-weight: 800; }
.steps p { margin-top: 8px; font-size: 15.5px; color: var(--ink-2); }
.priceband { background: var(--sand); border-block: 1px solid var(--line); padding-bottom: 96px; }
.tease { margin-top: 26px !important; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.tease span { font-size: 14.5px; color: var(--ink-3); }
.plan.slim { gap: 16px; }
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.trust article { padding: 32px; border-radius: 24px; border: 1px solid var(--line); background: var(--paper); display: flex; flex-direction: column; align-items: flex-start; }
.trust h3 { font-size: 22px; line-height: 1.25; }
.trust p { margin-top: 12px; font-size: 15.5px; color: var(--ink-2); flex: 1; }
.trust .lnk { margin-top: 10px; }
.hm-faq-more { text-align: center; margin-top: 20px !important; }
.final { position: relative; overflow: hidden; background: var(--esp); color: var(--on-esp); border-top: 1px solid var(--band-edge); }
.final::before { content: ""; position: absolute; right: -200px; top: -200px; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.05), transparent); }
main[data-page="home"] .final > .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: 110px; padding-bottom: 110px; }
.final h2 { margin: 0; font-size: clamp(44px, 5.8vw, 86px); line-height: 1; }
.final h2 .ital { color: var(--gold-hi); }
.final p { margin-top: 22px; font-size: 18px; color: var(--on-esp-2); max-width: 30em; }
.final .btn { margin-top: 34px; min-height: 52px; padding: 0 28px; }
.final small { display: block; margin-top: 18px; font-size: 13.5px; color: var(--on-esp-3); }
.faces { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.faces img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 25%; border-radius: 999px 999px 16px 16px; box-shadow: 0 0 0 1px rgba(232,147,58,.35), 0 18px 40px -18px rgba(0,0,0,.6); }
.faces .f-formal { background: #1D3149; }
.faces .f-friendly { background: #D15740; transform: translateY(22px); }
.faces .f-lovely { background: #EC9A9C; }
.faces .f-efficient { background: #06383F; transform: translateY(22px); }
.faces .f-flirty { background: #79274B; }

/* Responsive */
@media (max-width: 1100px) {
  .nav .beta { display: none; }
  .nav .thm { margin-left: auto; }
  .js .menu { display: inline-flex; }
  .js .navlinks { display: none; }
  .js.menu-open .topbar { background: var(--ivory); box-shadow: var(--sh-2); }
  .js.menu-open .navlinks { display: flex; order: 5; width: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 0 0 14px; padding-top: 6px; border-top: 1px solid var(--line); }
  .js.menu-open .navlinks a { padding: 13px 0; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--ink); box-shadow: none; }
  .js.menu-open .navlinks a[data-nav="signin"] { margin: 0; border: 0; padding: 13px 0; color: var(--rust); }
  .navlinks a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--rust); }
  main[data-page="home"] .hm-hero > .wrap { grid-template-columns: minmax(0, 1fr); gap: 56px; padding-top: 52px; padding-bottom: 84px; }
  main[data-page="home"] .pillars ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars li:nth-child(3) { border-left: 0; }
  .pillars li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .room { grid-template-columns: minmax(0, 1fr); }
  .ctrl { border-right: 0; border-bottom: 1px solid rgba(242,241,236,.08); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 20px; }
  .ctrl .character-controls > div:nth-child(3), .ctrl .persbtns, .ctrl #lookPreviewStatus, .ctrl .preview-note { grid-column: 1 / -1; }
  .ctrl .persbtns { display: flex; flex-wrap: wrap; gap: 8px; }
  .ctrl .personality-choice span { width: auto; border-color: rgba(242,241,236,.14); border-radius: 999px; padding: 6px 14px; }
  .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .caps article, .caps article:nth-child(3n), .caps article:nth-last-child(-n+3) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .caps article:nth-child(2n) { border-right: 0; }
  .caps article:nth-last-child(-n+2) { border-bottom: 0; }
  .mem { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  main[data-page="home"] .final > .wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) { .pricegrid.plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .why, .steps, .trust, .duo, .rules { grid-template-columns: minmax(0, 1fr); }
  .why article, .why article + article { padding: 30px 0 26px; border-left: 0; }
  .why article + article { border-top: 1px solid var(--line); }
  .scene { grid-template-columns: minmax(0, 1fr); }
  .portrait { min-height: 380px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav { padding: 0 16px; min-height: 64px; gap: 10px; }
  .nav > .btn { display: none; }
  main.wrap:not([data-page="home"]), main[data-page="home"] .wrap, .site-footer .wrap { padding: 0 16px; }
  .section { padding: 48px 0; }
  .band { padding-block: 84px; }
  .band-flush { padding-top: 0; }
  .head { margin-bottom: 40px; }
  .head p { font-size: 17px; }
  .lede { font-size: 17.5px; }
  .hm-hero h1 { font-size: 44px; }
  .cta .btn { flex: 1 1 100%; }
  .hm-bubble { left: -8px; bottom: 18px; width: 86%; }
  .pillars li { flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px 12px 20px 0; font-size: 14.5px; }
  .pillars li + li { border-left: 0; }
  .pillars li:nth-child(even) { border-left: 1px solid var(--line); padding-left: 16px; }
  .ctrl { grid-template-columns: minmax(0, 1fr); }
  .caps { grid-template-columns: minmax(0, 1fr); }
  .caps article, .caps article:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--line); padding: 26px 24px; }
  .caps article:last-child { border-bottom: 0; }
  .duo figure { min-height: 460px; }
  .duo figure::after { background: linear-gradient(180deg, rgba(10,10,12,0) 18%, rgba(10,10,12,.55) 45%, rgba(10,10,12,.92)); }
  .duo figcaption { padding: 26px 22px; }
  .card.payg { padding: 26px 24px; }
  .payg-amt { margin-left: 0; text-align: left; }
  .plans, .pricegrid.plans { grid-template-columns: minmax(0, 1fr); }
  details.faq summary { font-size: 18px; }
  details.faq .answer { padding-right: 0; }
  .faces { gap: 6px; }
  .mem-card { padding: 22px; }
  .mitem { flex-wrap: wrap; }
  .mitem p { flex-basis: 100%; }
  .thread { padding: 22px 16px; }
  .compose { margin: 0 16px 18px; }
  .convo .top { padding: 16px; }
  .card { padding: 22px; }
  footer.site-footer { padding-top: 56px; }
}

/* Ink & Spark (2026-11-22): dark logo tile gets a hairline ring so the ink square reads on the dark page. */
:root[data-theme="dark"] .nav .logo img, :root[data-theme="dark"] .site-footer .logo img { border-radius: 23.4%; box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 4px 14px -6px rgba(0,0,0,.6); }

/* ==========================================================================
   Ink & Spark v2 (2026-11-22, approved by Shawn): layered stone neutrals in
   light, soft graphite in dark. Dark: neutral hero glow. Light: white, stone
   and pale-spark bands; white cards with soft shadows; the logo orange for
   primary buttons and highlights. One orange only (#E8933A). Looks only.
   ========================================================================== */
:root[data-theme="dark"] .hm-hero::before { background: radial-gradient(closest-side, rgba(255,255,255,.05), transparent); }
:root[data-theme="light"] { --tint: #FDF5ED; --tint-line: rgba(232,147,58,.34); }
:root[data-theme="light"] .topbar { background: color-mix(in srgb, #FFFFFF 86%, transparent); }
:root[data-theme="light"] .hm-hero { background: linear-gradient(180deg, #FFFFFF 0%, var(--ivory) 100%); }
:root[data-theme="light"] .hm-hero::before { background: radial-gradient(closest-side, rgba(232,147,58,.24), rgba(232,147,58,.07) 55%, transparent); }
:root[data-theme="light"] .hm-hero::after { content: ""; position: absolute; left: -260px; bottom: -320px; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(closest-side, rgba(232,147,58,.10), transparent); pointer-events: none; }
:root[data-theme="light"] .ital { text-decoration-line: underline; text-decoration-color: rgba(232,147,58,.45); text-decoration-thickness: .2em; text-underline-offset: -.05em; text-decoration-skip-ink: none; }
:root[data-theme="light"] :is(.studio, .final, .duo, .payg) .ital { text-decoration: none; }
:root[data-theme="light"] .seal { background: var(--tint); border-color: var(--tint-line); color: var(--ink-2); }
:root[data-theme="light"] .btn.accent { background: #E8933A; border-color: #E8933A; color: #18181B; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 14px 30px -14px rgba(232,147,58,.75); }
:root[data-theme="light"] .btn.accent:hover { background: #E8933A; border-color: #E8933A; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 18px 36px -14px rgba(232,147,58,.9); }
:root[data-theme="light"] .btn:not(.accent):not(.gold):not(.primary) { background: var(--paper); box-shadow: 0 1px 2px rgba(24,24,27,.06); }
:root[data-theme="light"] .pillars { background: var(--paper); }
:root[data-theme="light"] .pillars svg { color: #E8933A; }
:root[data-theme="light"] .band:has(.why) { background: var(--sand); border-bottom: 1px solid var(--line); }
:root[data-theme="light"] .why .ic { background: var(--paper); border-color: var(--tint-line); color: var(--ink); box-shadow: var(--sh-1); }
:root[data-theme="light"] .caps { box-shadow: var(--sh-1); }
:root[data-theme="light"] .caps svg { box-sizing: content-box; padding: 9px; border-radius: 12px; background: var(--tint); color: var(--ink); }
:root[data-theme="light"] .band:has(.mem), :root[data-theme="light"] .band:has(.steps) { background: var(--tint); }
:root[data-theme="light"] .band:has(.mem) { border-top: 1px solid rgba(232,147,58,.18); }
:root[data-theme="light"] .band:has(.steps) { border-bottom: 1px solid rgba(232,147,58,.18); }
:root[data-theme="light"] .mem-card { border-color: var(--line); }
:root[data-theme="light"] .steps li, :root[data-theme="light"] .trust article, :root[data-theme="light"] .plans .plan { box-shadow: var(--sh-1); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
:root[data-theme="light"] .steps li:hover, :root[data-theme="light"] .trust article:hover, :root[data-theme="light"] .plans .plan:not(.hi):hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--tint-line); }
:root[data-theme="light"] .plans .plan.hi { box-shadow: 0 0 0 1px var(--ink), var(--sh-2); }
:root[data-theme="light"] footer.site-footer { background: var(--sand); border-top: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { :root[data-theme="light"] :is(.steps li, .trust article, .plans .plan):hover { transform: none; } }
/* Header invite button and hero personality chips (from the approved preview). */
.nav > .hdr-cta { min-height: 44px; padding: 0 20px; font-size: 14.5px; margin-left: 4px; }
@media (max-width: 1100px) { .nav > .hdr-cta { display: none; } }
/* Header as the approved preview: no beta pill, no Home link, plain bold Sign in after Contact, all on one line. */
.nav .beta { display: none; }
.navlinks a[data-nav="home"] { display: none; }
.navlinks .nav-invite { display: none; }
.navlinks a[data-nav="contact"] { order: 1; }
.navlinks a[data-nav="signin"] { order: 2; }
.navlinks .nav-invite { order: 3; }
@media (min-width: 1101px) {
  .navlinks { gap: 0; margin-left: auto; }
  .navlinks a[data-nav="signin"] { border: 0; border-radius: 0; margin-left: 8px; padding: 0 0 0 11px; font-size: 15px; font-weight: 700; color: var(--ink); }
  .navlinks a[data-nav="signin"]:hover { box-shadow: inset 0 -2px 0 var(--ink); }
}
@media (max-width: 1100px) { .navlinks .nav-invite { display: flex; } }
.arch img { transition: opacity .45s ease; }
.arch img.out { opacity: 0; }
.arch, .who .av { transition: background .6s ease; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 24px -28px 0; }
.chips:empty { display: none; }
.chip { border: 1px solid var(--line-2); background: var(--paper); border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--ink-2); display: inline-flex; align-items: center; gap: 7px; min-height: 36px; cursor: pointer; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--ink) 22%, transparent); }
.chip[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); background: var(--sand); }
:root[data-theme="light"] .chips .chip[aria-pressed="true"] { background: var(--tint); border-color: var(--ink); }
@media (max-width: 820px) { .chips { margin-inline: 0; } }
@media (prefers-reduced-motion: reduce) { .arch img, .arch, .who .av { transition: none; } }

/* Bug hunt 2026-11-23 (looks only). */
/* Keyboard focus shows on the dark bands in the light theme (the ink outline vanished on them). */
:root[data-theme="light"] :is(.studio, .final, .card.payg) :focus-visible, :root[data-theme="light"] :is(.studio, .final, .card.payg) .personality-choice input:focus-visible + span { outline-color: var(--gold-hi); }
/* The open phone menu scrolls inside itself, so its last links are reachable in landscape. */
@media (max-width: 1100px) { .js.menu-open .navlinks { max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain; } }
/* Next-fix round (hunt lows). The demo's "switcher unavailable" note keeps
   the page's side margins (it sits above the full-width home hero). */
main[data-page="home"] > .demo-warning { max-width: 1200px; margin: 16px auto 0; padding: 0 24px; }
@media (max-width: 600px) { main[data-page="home"] > .demo-warning { padding: 0 16px; } }
/* The FAQ title lines up with the question list under it. */
main[data-page="faq"] > .section > h1 { max-width: 860px; margin-left: auto; margin-right: auto; }
/* About's two closing buttons get the same gap as every other button pair. */
.about-cta { display: flex; flex-wrap: wrap; gap: 12px; }
/* The 404 page. */
.notfound { padding-bottom: 40px; }
.notfound .cta { margin-top: 28px; }
/* A long companion name in the demo ends in "…"; the tag and the send button always stay on the card. */
.convo .top { min-width: 0; }
.convo .top b, .convo .top > span:not(.demo-tag) { min-width: 0; flex: 0 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo .top .demo-tag { flex-shrink: 0; }
.compose [data-demo-compose] { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 10px; }
.compose b { flex-shrink: 0; }

/* Legal center and FAQ (policy rewrite, November 25, 2026): the owner-approved
   layout. Short summary, numbered sections, a side list of sections, tabs
   across all legal pages, and a searchable FAQ grouped by topic. */
/* Legal center + FAQ layout (2026-11-25) */
.legal-hero { padding: 64px 0 28px; border-bottom: 1px solid var(--line); }
.legal-hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.legal-hero .eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--spark); }
.legal-hero h1 { font-family: var(--f-d); font-weight: 400; font-size: clamp(40px, 6vw, 60px); margin: 14px 0 12px; }
.legal-hero .lead { color: var(--ink-2); max-width: 46em; margin: 0; font-size: 18px; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.legal-meta span { font-size: 13px; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.legal-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 18px 0 2px; scrollbar-width: none; }
.legal-tabs::-webkit-scrollbar { display: none; }
.legal-tabs a { flex: none; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; padding: 9px 14px; border-radius: 999px; border: 1px solid transparent; min-height: 40px; display: inline-flex; align-items: center; }
.legal-tabs a:hover { background: var(--sand); color: var(--ink); }
.legal-tabs a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding: 40px 0 80px; align-items: start; }
.legal-toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; font-size: 14px; }
.legal-toc > p, .legal-toc summary { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.legal-toc li a { display: flex; gap: 10px; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.35; min-height: 0; }
.legal-toc li a span { color: var(--ink-3); font-variant-numeric: tabular-nums; min-width: 1.5em; }
.legal-toc li a:hover { color: var(--ink); }
.legal-toc li a.is-active { color: var(--ink); border-left-color: var(--spark); font-weight: 600; }
.legal-toc details { display: none; }
.legal-body { max-width: 760px; min-width: 0; }
.legal-summary { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 26px 28px; margin-bottom: 40px; box-shadow: var(--sh-1); }
.legal-summary h2 { font-family: var(--f-b); font-size: 18px; font-weight: 700; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.legal-summary h2 svg { flex: none; width: 24px; height: 24px; padding: 5px; border-radius: 7px; background: var(--gold-soft); color: var(--spark); }
.legal-summary ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.legal-summary li { position: relative; padding-left: 22px; color: var(--ink-2); line-height: 1.55; }
.legal-summary li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--spark); }
.legal-summary p.small { margin: 16px 0 0; color: var(--ink-3); font-size: 13px; }
.legal-section { padding-top: 8px; margin-bottom: 40px; scroll-margin-top: 96px; }
.legal-section + .legal-section { border-top: 1px solid var(--line); padding-top: 36px; }
.legal-section h2 { font-family: var(--f-b); font-weight: 700; font-size: 24px; line-height: 1.25; margin: 0 0 16px; display: flex; gap: 14px; align-items: baseline; }
.legal-section h2 .num { flex: none; font-size: 14px; font-weight: 700; color: var(--ink-3); background: var(--sand); border-radius: 8px; padding: 3px 9px; font-variant-numeric: tabular-nums; }
.legal-section h3 { font-family: var(--f-b); font-weight: 700; font-size: 17px; margin: 26px 0 8px; color: var(--ink); }
.legal-section p, .legal-section li { color: var(--ink-2); line-height: 1.7; font-size: 16.5px; }
.legal-section ul, .legal-section ol { padding-left: 22px; margin: 10px 0 14px; }
.legal-section li { margin: 6px 0; }
.legal-section li::marker { color: var(--ink-3); }
.legal-section strong { color: var(--ink); }
.legal-section a { color: var(--ink); }
.legal-note { border: 1px solid var(--line-2); border-left: 4px solid var(--spark); background: var(--paper); border-radius: 14px; padding: 16px 20px; margin: 18px 0; }
.legal-note p { margin: 0; }
.legal-note p + p { margin-top: 8px; }
.legal-note .label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: 6px; }
.legal-note.caps p { text-transform: none; }
.legal-table { width: 100%; border-collapse: collapse; margin: 14px 0 18px; font-size: 15px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.legal-table th { color: var(--ink); font-weight: 700; background: var(--sand); }
.legal-table tr:first-child th:first-child { border-top-left-radius: 10px; }
.legal-table tr:first-child th:last-child { border-top-right-radius: 10px; }
.legal-scroll { overflow-x: auto; }
.legal-contact { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; background: var(--esp); color: var(--on-esp); border-radius: 22px; padding: 28px 30px; margin-top: 48px; }
.legal-contact h2 { font-family: var(--f-d); font-weight: 400; font-size: 28px; margin: 0 0 6px; color: var(--on-esp); }
.legal-contact p { margin: 0; color: var(--on-esp-2); }
.legal-contact .btn { background: var(--on-esp); color: var(--esp); border-color: var(--on-esp); }
:root[data-theme="dark"] .legal-contact { background: var(--paper); border: 1px solid var(--line-2); }
:root[data-theme="dark"] .legal-contact .btn { background: var(--cta); color: var(--on-cta); border-color: var(--cta); }
.legal-operator { margin-top: 18px; font-size: 13px; color: var(--ink-3); }
.legal-address { margin-top: 4px; font-size: 13px; color: var(--ink-3); }
.legal-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 40px 0 80px; }
.legal-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 22px; color: var(--ink); transition: border-color .15s, transform .15s; }
.legal-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.legal-card h2 { font-family: var(--f-b); font-weight: 700; font-size: 18px; margin: 0; }
.legal-card p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.legal-card span { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }

/* FAQ */
.faq-hero { text-align: center; padding: 64px 0 8px; }
.faq-hero h1 { font-family: var(--f-d); font-weight: 400; font-size: clamp(40px, 6vw, 64px); margin: 12px 0 12px; }
.faq-hero .lead { color: var(--ink-2); margin: 0 auto; max-width: 40em; font-size: 18px; }
.faq-search { max-width: 620px; margin: 28px auto 0; position: relative; }
.faq-search input { width: 100%; height: 56px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); padding: 0 22px 0 52px; font: 500 16px var(--f-b); box-shadow: var(--sh-1); }
.faq-search svg { position: absolute; left: 20px; top: 18px; color: var(--ink-3); }
.faq-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 900px; margin: 22px auto 0; }
.faq-chips a { white-space: nowrap; flex: none; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); min-height: 40px; display: inline-flex; align-items: center; }
.faq-chips a:hover { border-color: var(--line-2); color: var(--ink); }
.faq-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; padding: 48px 0 80px; align-items: start; }
.faq-group { scroll-margin-top: 96px; margin-bottom: 44px; }
.faq-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.faq-group-head h2 { font-family: var(--f-d); font-weight: 400; font-size: 32px; margin: 0; }
.faq-group-head span { font-size: 13px; color: var(--ink-3); }
.faq-group details.faq summary { font-size: 17px; padding: 20px 0; }
.faq-group details.faq .answer { font-size: 16px; line-height: 1.7; }
.faq-group details.faq .answer p { margin: 0 0 10px; }
.faq-group details.faq .answer ul { margin: 0 0 10px; padding-left: 20px; }
.faq-empty { text-align: center; color: var(--ink-2); padding: 40px 0; }

@media (max-width: 920px) {
  .legal-layout, .faq-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .legal-toc { position: static; max-height: none; }
  .legal-toc > p, .legal-toc > ol { display: none; }
  .legal-toc details { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 4px 16px; }
  .legal-toc details summary { padding: 12px 0; margin: 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
  .legal-toc details summary::after { content: "+"; font-size: 18px; color: var(--ink); }
  .legal-toc details[open] summary::after { content: "−"; }
  .legal-toc details ol { border-left: 0; padding-bottom: 8px; }
  .legal-toc details li a { padding-left: 0; border-left: 0; }
  .faq-layout .legal-toc { display: none; }
  .legal-cards { grid-template-columns: 1fr; }
  .legal-contact { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .legal-hero { padding-top: 40px; }
  .legal-summary { padding: 20px; }
  .legal-section h2 { font-size: 21px; }
  .legal-section p, .legal-section li { font-size: 16px; }
  .faq-hero { padding-top: 40px; }
  .faq-chips { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 0 16px; scrollbar-width: none; }
  .faq-group-head h2 { font-size: 26px; }
}
