/* Hers AI — after-hours.
   Near-black ground, crimson-rose brand heat, per-companion atmosphere.
   One accent variable (an RGB triplet) drives companion identity everywhere:
   set data-accent on a container (body, .chat-shell, a card) and every
   surface tints. Modern sans only; the women carry the page, not the prose. */

:root {
  color-scheme: dark;
  --bg: #0b0709;
  --bg-2: #120b0f;
  --panel: #171017;
  --panel-2: #1e141c;
  --ink: #f4edf1;
  --muted: #a8949f;
  --muted-2: #776671;
  --line: rgba(244, 237, 241, .08);
  --line-2: rgba(244, 237, 241, .16);
  --danger: #f27d7d;
  --accent: 240, 66, 110;             /* brand crimson-rose */
  --on-accent: #1c060d;
  --radius: 20px;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Display", "Segoe UI", Roboto, sans-serif;
  font-family: var(--sans);
}
[data-accent="luna"] { --accent: 255, 106, 130; --on-accent: #240a0e; }
[data-accent="sage"] { --accent: 70, 210, 180;  --on-accent: #04201a; }
[data-accent="jen"]  { --accent: 178, 148, 255; --on-accent: #150c2a; }

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100dvh; color: var(--ink);
  background:
    radial-gradient(1200px 600px at 75% -10%, rgba(var(--accent), .14), transparent 60%),
    radial-gradient(800px 560px at -12% 35%, rgba(var(--accent), .06), transparent 55%),
    var(--bg);
}
button, textarea, input, select { font: inherit; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, textarea:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(var(--accent), .6); outline-offset: 3px;
}
[hidden] { display: none !important; }
.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; }

.eyebrow { margin: 0 0 12px; color: rgba(var(--accent), .95); font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.fine-print { color: var(--muted-2); font-size: .75rem; line-height: 1.6; }
.inline-link, .footer-button { padding: 0; border: 0; color: var(--muted); background: transparent; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.inline-link:hover, .footer-button:hover { color: var(--ink); }

.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 0 24px; cursor: pointer; font-weight: 800; letter-spacing: .01em; text-decoration: none; }
.button-primary { color: var(--on-accent); background: rgb(var(--accent)); box-shadow: 0 8px 30px rgba(var(--accent), .35); }
.button-primary:hover { filter: brightness(1.08); }
.button-quiet { color: var(--ink); background: transparent; border: 1px solid var(--line-2); }
.button-quiet:hover { border-color: rgba(var(--accent), .5); }
.button:disabled { opacity: .45; cursor: default; filter: none; }
.full { width: 100%; }

/* ---------- age gate ---------- */
.age-gate { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.age-card { position: relative; width: min(560px, 100%); padding: clamp(30px, 6vw, 56px); background: linear-gradient(180deg, rgba(var(--accent), .07), transparent 45%), var(--panel); border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 40px 120px rgba(0,0,0,.55); }
.age-brand { margin: 0 0 24px; font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; }
.age-brand em { font-style: normal; color: rgb(var(--accent)); }
.age-badge { position: absolute; top: 30px; right: 30px; margin: 0; padding: 5px 11px; border: 1px solid rgba(var(--accent), .5); border-radius: 999px; color: rgb(var(--accent)); font-size: .8rem; font-weight: 800; letter-spacing: .06em; }
.age-card h1 { margin: 0 0 14px; font-weight: 800; font-size: clamp(1.8rem, 6vw, 2.5rem); line-height: 1.05; letter-spacing: -.03em; }
.age-lede { margin: 0 0 6px; color: var(--muted); line-height: 1.7; }
.age-actions { display: grid; gap: 10px; margin: 30px 0 20px; }

/* ---------- landing ---------- */
.landing { width: min(1180px, 100%); margin: 0 auto; padding: 0 clamp(18px, 4vw, 44px) 48px; }
.topbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { text-decoration: none; font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; }
.wordmark em { font-style: normal; color: rgb(var(--accent)); }
.account-actions { display: flex; align-items: center; gap: 12px; }
.adult-mark { color: var(--muted-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 9px; font-size: .68rem; font-weight: 800; letter-spacing: .06em; }
.status-pill { padding: 5px 10px; color: rgb(var(--accent)); border: 1px solid rgba(var(--accent), .35); border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .06em; }
.text-button { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 8px; font-weight: 700; }
.text-button:hover { color: var(--ink); }

.hero { padding: clamp(30px, 6vw, 64px) 0 clamp(24px, 4vw, 40px); }
.hero h1 { margin: 0; max-width: 820px; font-weight: 800; font-size: clamp(2.3rem, 6.4vw, 4.4rem); line-height: 1.0; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: rgb(var(--accent)); }
.hero-lede { margin: 16px 0 0; color: var(--ink); font-size: clamp(1.1rem, 2.4vw, 1.4rem); font-weight: 600; }
.hero-note { margin: 8px 0 0; color: var(--muted-2); font-size: .85rem; font-weight: 600; letter-spacing: .04em; }

/* companions: three tall panels, the women dominate */
.companion-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 14px; }
.companion-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 0;
  min-height: 480px; padding: clamp(22px, 3vw, 32px) 20px 24px; text-align: center; color: var(--ink); cursor: pointer;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(var(--accent), .18), transparent 65%),
    linear-gradient(180deg, var(--panel-2), var(--panel) 70%);
  border: 1px solid var(--line); border-radius: 26px; overflow: hidden;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.companion-card:hover { transform: translateY(-4px); border-color: rgba(var(--accent), .5); box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 60px rgba(var(--accent), .12); }
.cc-portrait { position: relative; width: min(240px, 70%); aspect-ratio: 1; border-radius: 50%; overflow: hidden; flex: 0 0 auto; box-shadow: 0 0 0 1px rgba(var(--accent), .35), 0 0 70px rgba(var(--accent), .3), 0 18px 50px rgba(0,0,0,.5); background: radial-gradient(circle at 50% 35%, rgba(var(--accent), .4), rgba(var(--accent), .08)); display: grid; place-items: center; }
.cc-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cc-portrait .initial { font-size: 4.4rem; font-weight: 800; color: rgba(var(--accent), .9); }
.cc-name { margin-top: 20px; font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; line-height: 1; text-transform: uppercase; }
.cc-tag { margin-top: 9px; color: rgba(var(--accent), .95); font-size: .78rem; font-weight: 700; letter-spacing: .08em; }
.cc-line { margin-top: 14px; max-width: 30ch; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.cc-cues { margin-top: 10px; color: var(--muted-2); font-size: .72rem; letter-spacing: .03em; }
.cc-cta { margin-top: auto; padding: 12px 26px; margin-top: 22px; border-radius: 999px; color: var(--on-accent); background: rgb(var(--accent)); font-size: .85rem; font-weight: 800; box-shadow: 0 8px 26px rgba(var(--accent), .3); transition: filter .2s ease; }
.companion-card:hover .cc-cta { filter: brightness(1.1); }
.pro-tag { position: absolute; top: 16px; right: 16px; padding: 4px 10px; border: 1px solid rgba(var(--accent), .45); border-radius: 999px; color: rgb(var(--accent)); background: rgba(11, 7, 9, .7); font-size: .66rem; font-weight: 800; letter-spacing: .1em; }
.companion-card.is-locked .cc-portrait { filter: saturate(.55) brightness(.85); }
.companion-card.is-locked .cc-cta { background: transparent; color: rgb(var(--accent)); border: 1px solid rgba(var(--accent), .5); box-shadow: none; }

.section-title { margin: 0 0 10px; font-weight: 800; font-size: clamp(1.6rem, 3.6vw, 2.3rem); letter-spacing: -.03em; line-height: 1.05; }
.section-sub { margin: 0 0 12px; color: var(--muted); font-size: .95rem; max-width: 46ch; line-height: 1.7; }
.section-sub.quiet { color: var(--muted-2); font-size: .85rem; }

/* memory proof: shown as chat, not explained as architecture */
.memory-proof { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 60px); align-items: center; margin-top: clamp(64px, 10vw, 110px); }
.demo-thread { display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 3vw, 30px); border: 1px solid var(--line); border-radius: 24px; background: radial-gradient(120% 90% at 80% 0%, rgba(var(--accent), .1), transparent 60%), var(--panel); }
.demo-day { margin: 4px 0 0; align-self: center; color: var(--muted-2); font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.demo-msg { margin: 0; max-width: 85%; padding: 11px 15px; border-radius: 18px; font-size: .92rem; line-height: 1.5; }
.demo-you { align-self: flex-end; color: var(--on-accent); background: rgba(var(--accent), .92); border-bottom-right-radius: 5px; }
.demo-her { align-self: flex-start; background: var(--panel-2); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.demo-note { margin: 6px 0 0; align-self: center; color: var(--muted-2); font-size: .7rem; font-style: italic; }

/* secondary edges: visual, concise */
.edge-row { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-top: clamp(56px, 9vw, 90px); }
.edge { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.edge h3 { margin: 0 0 6px; font-size: .95rem; font-weight: 800; letter-spacing: -.01em; color: rgb(var(--accent)); }
.edge p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.6; }

.pro-section { margin-top: clamp(56px, 9vw, 90px); padding: clamp(26px, 5vw, 48px); border: 1px solid rgba(var(--accent), .3); border-radius: 28px; background: radial-gradient(110% 130% at 15% 0%, rgba(var(--accent), .13), transparent 60%), var(--panel); display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(22px, 4vw, 48px); align-items: start; }
.pro-section h2 { margin: 0 0 12px; font-weight: 800; font-size: clamp(1.7rem, 3.8vw, 2.5rem); letter-spacing: -.03em; line-height: 1.02; }
.pro-section h2 em { font-style: normal; color: rgb(var(--accent)); }
.pro-section > div > p { margin: 0; color: var(--muted); line-height: 1.7; }
.pro-benefits { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.pro-benefits li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; color: var(--muted); font-size: .93rem; line-height: 1.55; }
.pro-benefits li::before { content: '+'; color: rgb(var(--accent)); font-weight: 800; }
.pro-price { margin: 20px 0 16px; font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; }
.pro-price small { color: var(--muted-2); font-size: .85rem; font-weight: 500; }

.landing-footer { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: clamp(48px, 8vw, 72px); padding-top: 22px; border-top: 1px solid var(--line); }
.landing-footer a, .landing-footer .footer-button { color: var(--muted-2); text-decoration: none; font-size: .78rem; }
.landing-footer a:hover { color: var(--ink); }
.footer-note { margin-left: auto; color: var(--muted-2); font-size: .74rem; }

/* ---------- chat: the interface gets out of her way ---------- */
.chat-shell {
  min-height: 100dvh; height: 100dvh; display: grid; grid-template-rows: auto 1fr auto;
  max-width: 880px; margin: 0 auto;
  background:
    radial-gradient(900px 420px at 50% -8%, rgba(var(--accent), .12), transparent 65%),
    var(--bg-2);
}
.chat-header { min-height: 66px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.icon-button { min-width: 40px; height: 40px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 12px; color: var(--muted); background: transparent; cursor: pointer; font-size: .82rem; }
.icon-button:hover { color: var(--ink); background: rgba(var(--accent), .12); }
.chat-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: rgba(var(--accent), .2); box-shadow: 0 0 0 1px rgba(var(--accent), .4), 0 0 24px rgba(var(--accent), .25); }
.chat-identity { min-width: 0; flex: 1; }
.chat-identity h1 { margin: 0; font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; }
.chat-identity span { display: block; color: var(--muted-2); font-size: .72rem; margin-top: 1px; }
.chat-tools { display: flex; gap: 4px; }

.chat-log { min-height: 0; overflow-y: auto; padding: clamp(18px, 4vw, 32px); display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; }

.chat-intro { align-self: center; max-width: 440px; text-align: center; padding: 10px 16px 22px; }
.chat-intro .intro-name { margin: 16px 0 4px; font-weight: 800; font-size: 1.6rem; letter-spacing: -.02em; text-transform: uppercase; }
.chat-intro .intro-meta { margin: 0 0 10px; color: rgba(var(--accent), .9); font-size: .78rem; font-weight: 700; letter-spacing: .08em; }
.chat-intro p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.65; }
.chat-intro img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(var(--accent), .4), 0 0 44px rgba(var(--accent), .3); }

.history-divider { align-self: center; display: flex; align-items: center; gap: 12px; width: 100%; max-width: 320px; color: var(--muted-2); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.history-divider::before, .history-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.message { position: relative; width: fit-content; max-width: min(76%, 600px); padding: 11px 15px; border-radius: 18px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-user { align-self: flex-end; color: var(--on-accent); background: rgba(var(--accent), .92); border-bottom-right-radius: 5px; }
.message-assistant { align-self: flex-start; background: var(--panel-2); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.message-system { align-self: center; max-width: 100%; padding: 6px 11px; color: var(--muted); background: transparent; font-size: .82rem; text-align: center; }
.inline-action { border: 0; background: transparent; color: rgb(var(--accent)); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.voice-button { position: absolute; right: -34px; bottom: 2px; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); color: var(--muted); cursor: pointer; font-size: .7rem; opacity: 0; transition: opacity .15s ease; }
.message-assistant:hover .voice-button, .message-assistant:focus-within .voice-button, .voice-button.is-playing { opacity: 1; }
.voice-button.is-playing { color: rgb(var(--accent)); border-color: rgba(var(--accent), .5); }
@media (hover: none) { .voice-button { opacity: .8; } }

.upgrade-card { align-self: stretch; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 8px 0; padding: 16px 18px; border: 1px solid rgba(var(--accent), .3); border-radius: 16px; background: linear-gradient(135deg, rgba(var(--accent), .12), transparent 70%); }
.upgrade-card div { display: grid; gap: 3px; }
.upgrade-card strong { font-weight: 800; font-size: 1rem; letter-spacing: -.01em; }
.upgrade-card span { color: var(--muted); font-size: .8rem; line-height: 1.5; }
.primary-link { flex: 0 0 auto; padding: 10px 16px; border-radius: 999px; background: rgb(var(--accent)); color: var(--on-accent); text-decoration: none; font-size: .8rem; font-weight: 800; }

.typing { padding: 0 32px 8px; gap: 4px; align-items: center; }
.typing:not([hidden]) { display: flex; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: rgba(var(--accent), .8); animation: pulse 1s infinite alternate; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }

.composer-wrap { padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); }
.quick-replies { display: flex; gap: 7px; overflow-x: auto; padding: 0 0 9px; scrollbar-width: none; }
.quick-replies::-webkit-scrollbar { display: none; }
.quick-replies button { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; color: var(--muted); background: transparent; cursor: pointer; font-size: .74rem; }
.quick-replies button:hover { border-color: rgba(var(--accent), .5); color: var(--ink); }
.composer { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; padding: 7px; border: 1px solid var(--line-2); border-radius: 22px; background: var(--panel); }
.composer:focus-within { border-color: rgba(var(--accent), .5); box-shadow: 0 0 30px rgba(var(--accent), .1); }
.composer textarea { min-height: 42px; max-height: 130px; padding: 10px 11px; resize: none; border: 0; outline: 0; color: var(--ink); background: transparent; line-height: 1.5; }
.composer textarea::placeholder { color: var(--muted-2); }
.send-button { width: 42px; height: 42px; border: 0; border-radius: 50%; color: var(--on-accent); background: rgb(var(--accent)); font-size: 1.2rem; font-weight: 800; cursor: pointer; }
.send-button:disabled { opacity: .35; cursor: default; }
.composer-meta { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 9px; color: var(--muted-2); font-size: .72rem; }
.remaining-note { color: var(--muted); }

/* ---------- dialogs ---------- */
.modal { width: min(540px, calc(100% - 32px)); max-height: min(780px, calc(100dvh - 32px)); overflow: auto; padding: 26px; color: var(--ink); background: var(--panel); border: 1px solid var(--line-2); border-radius: 24px; box-shadow: 0 40px 120px rgba(0,0,0,.6); }
.modal::backdrop { background: rgba(6, 3, 5, .78); backdrop-filter: blur(6px); }
.dialog-close-row { display: flex; justify-content: flex-end; margin: 0; }
.dialog-close { border: 0; background: transparent; color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 4px 8px; }
.dialog-close:hover { color: var(--ink); }
.dialog-copy h2 { margin: 0 0 8px; font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; }
.dialog-copy > p { color: var(--muted); line-height: 1.6; margin: 0 0 4px; }
.modal label { display: block; margin: 20px 0 8px; color: var(--muted); font-size: .78rem; font-weight: 700; }
.modal input[type="email"], .modal input[type="text"], .modal input[type="number"] { width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 12px; color: var(--ink); background: var(--bg); }
.form-message { min-height: 20px; margin: 8px 0; color: rgb(var(--accent)); font-size: .78rem; line-height: 1.5; }

/* account sections (utilitarian by design; the world stays outside) */
.account-sections { display: grid; gap: 8px; margin: 18px 0 8px; }
.account-sections details { border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.account-sections summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; cursor: pointer; font-weight: 700; font-size: .92rem; list-style: none; }
.account-sections summary::-webkit-details-marker { display: none; }
.account-sections summary::after { content: '+'; color: var(--muted-2); font-size: 1.1rem; }
.account-sections details[open] summary::after { content: '–'; }
.account-sections .section-body { padding: 2px 16px 16px; display: grid; gap: 10px; }
.account-sections .section-body p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.6; }
.kv-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.kv-row:last-child { border-bottom: 0; }
.kv-row .k { color: var(--muted-2); }
.device-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .84rem; }
.device-row:last-child { border-bottom: 0; }
.device-row .d-meta { color: var(--muted-2); font-size: .74rem; }
.mini-button { border: 1px solid var(--line-2); border-radius: 9px; background: transparent; color: var(--muted); padding: 6px 10px; cursor: pointer; font-size: .76rem; }
.mini-button:hover { color: var(--ink); border-color: rgba(var(--accent), .5); }
.mini-button.danger { color: var(--danger); border-color: rgba(242, 125, 125, .3); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .86rem; }
.toggle-row input { width: 18px; height: 18px; accent-color: rgb(var(--accent)); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-grid label { margin: 0 0 6px; }
.modal select { width: 100%; min-height: 42px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 10px; color: var(--ink); background: var(--bg); }

/* memory drawer */
.memory-dialog { width: min(620px, calc(100% - 32px)); }
.memory-list { display: grid; gap: 10px; margin-top: 18px; }
.memory-item { padding: 13px 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); display: grid; gap: 8px; }
.memory-item .m-content { font-size: .9rem; line-height: 1.55; }
.memory-item .m-row { display: flex; align-items: center; gap: 8px; }
.memory-item .m-when { color: var(--muted-2); font-size: .72rem; margin-right: auto; }
.memory-item textarea { width: 100%; min-height: 60px; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 10px; color: var(--ink); background: var(--bg); resize: vertical; }
.memory-empty { margin-top: 20px; color: var(--muted); font-size: .88rem; line-height: 1.65; }

.terms-dialog { width: min(680px, calc(100% - 32px)); }
.terms-copy h3 { margin: 22px 0 7px; font-weight: 800; font-size: 1rem; }
.terms-copy p { margin: 0 0 10px; color: var(--muted); line-height: 1.7; font-size: .9rem; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 20; transform: translateX(-50%); max-width: min(440px, calc(100% - 32px)); padding: 12px 16px; border: 1px solid var(--line-2); border-radius: 12px; color: var(--ink); background: var(--panel-2); box-shadow: 0 14px 40px rgba(0,0,0,.45); font-size: .84rem; }
.noscript { padding: 24px; color: var(--muted); text-align: center; }

@keyframes pulse { from { opacity: .35; transform: translateY(0); } to { opacity: 1; transform: translateY(-3px); } }

/* mobile: she shows up immediately; cards become a swipeable rail */
@media (max-width: 860px) {
  .companion-list { display: flex; gap: 12px; margin-inline: calc(-1 * clamp(18px, 4vw, 44px)); padding-inline: clamp(18px, 4vw, 44px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .companion-list::-webkit-scrollbar { display: none; }
  .companion-card { flex: 0 0 82%; scroll-snap-align: center; min-height: 440px; }
  .memory-proof { grid-template-columns: 1fr; }
  .edge-row { grid-template-columns: 1fr 1fr; }
  .pro-section { grid-template-columns: 1fr; }
  .message { max-width: 88%; }
  .voice-button { right: auto; left: 2px; bottom: -30px; position: absolute; }
  .message-assistant:has(.voice-button) { margin-bottom: 26px; }
  .upgrade-card { flex-direction: column; align-items: flex-start; }
  .chat-tools .tool-label { display: none; }
  .field-grid { grid-template-columns: 1fr; }
  .footer-note { margin-left: 0; }
}
@media (max-width: 480px) {
  .topbar { min-height: 62px; }
  .hero { padding-top: 12px; }
  .account-actions .status-pill { display: none; }
  .edge-row { grid-template-columns: 1fr; }
  .chat-header { padding-inline: 10px; gap: 8px; }
  .composer-wrap { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
