/* LiveAsk site. Palette and radii mirror the app's asset catalog and Theme.swift (dark appearance). */
:root {
  --base: #07070C;
  --raised: #13131C;
  --sunken: #030308;
  --card: #181824;
  --hairline: rgba(255, 255, 255, 0.10);
  --hairline-strong: rgba(255, 255, 255, 0.20);
  --ink: #F5F5FA;
  --ink2: rgba(245, 245, 250, 0.70);
  --ink3: rgba(245, 245, 250, 0.52);
  --accent: #7C8BFF;
  --accent-alt: #59E3D8;
  --hot: #FF7A9C;
  --good: #5BE09B;
  --aurora: linear-gradient(135deg, #7C8BFF, #59E3D8);
  --r-card: 22px;
  --r-panel: 18px;
  --r-control: 14px;
  --max: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--base); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent-alt); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--base); padding: 8px 14px; border-radius: 999px; font-weight: 700; z-index: 50; }
.skip:focus { left: 12px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* Ambient field, like AmbientBackground in the app */
.ambient { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ambient::before, .ambient::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.30; }
.ambient::before { width: 720px; height: 720px; left: -240px; top: -260px; background: radial-gradient(closest-side, rgba(124, 139, 255, 0.8), transparent); }
.ambient::after { width: 640px; height: 640px; right: -200px; bottom: -300px; background: radial-gradient(closest-side, rgba(89, 227, 216, 0.7), transparent); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(7, 7, 12, 0.78); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid var(--hairline); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 18px; letter-spacing: -0.2px; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--ink2); font-size: 15px; font-weight: 600; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a.btn { color: var(--base); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 16px; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--aurora); color: var(--base); border-color: rgba(255, 255, 255, 0.14); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: rgba(19, 19, 28, 0.7); color: var(--ink); border-color: var(--hairline-strong); }
.btn-ghost:hover { background: var(--card); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }

/* Type */
.label { font-size: 11px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; font-stretch: expanded; color: var(--accent-alt); margin: 0 0 14px; }
h1 { font-size: clamp(44px, 7vw, 78px); line-height: 1.02; letter-spacing: -2.4px; font-weight: 700; margin: 18px 0 18px; }
.grad { background: var(--aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.06; letter-spacing: -1.4px; font-weight: 700; margin: 0 0 16px; }
h3 { font-size: 19px; letter-spacing: -0.2px; font-weight: 600; margin: 0 0 8px; }
.lede { font-size: clamp(18px, 2.1vw, 21px); color: var(--ink2); max-width: 32em; margin: 0 0 32px; }
.section-lede { color: var(--ink2); font-size: 19px; max-width: 40em; margin: 0 0 48px; }
.fine { color: var(--ink3); font-size: 14px; margin-top: 18px; }
section { padding: 96px 0; position: relative; }
.divider { border-top: 1px solid var(--hairline); }

/* Hero */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }
.hero-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 0 0 1px var(--hairline-strong), 0 18px 50px rgba(124, 139, 255, 0.35); margin-bottom: 26px; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(89, 227, 216, 0.10); border: 1px solid rgba(89, 227, 216, 0.28); color: var(--accent-alt); font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-alt); box-shadow: 0 0 10px var(--accent-alt); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Orb, after Orb.swift: a ring, not a disc */
.orb { position: relative; width: 168px; height: 168px; margin: 0 auto; }
.orb::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, #7C8BFF, #59E3D8, #FF7A9C, #7C8BFF); filter: blur(34px); opacity: 0.6; }
.orb .ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, #7C8BFF, #59E3D8, #FF7A9C, #7C8BFF); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 11px), #000 calc(100% - 10px)); mask: radial-gradient(farthest-side, transparent calc(100% - 11px), #000 calc(100% - 10px)); }
.orb .edge { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.16); }
.orb.small { width: 54px; height: 54px; flex: none; margin: 0; }
.orb.small::before { filter: blur(12px); opacity: 0.5; }
.orb.small .ring { -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); }
.orb.idle .ring, .orb.idle::before { background: linear-gradient(135deg, #7C8BFF, #59E3D8); }
.orb.idle::before { opacity: 0.35; }
@media (prefers-reduced-motion: no-preference) {
  .orb.live { animation: breathe 3.2s ease-in-out infinite; }
  @keyframes breathe { 0%, 100% { transform: scale(0.985); } 50% { transform: scale(1.03); } }
}

/* Phone illustration */
.phone-col { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.phone { width: 340px; max-width: 100%; border-radius: 48px; padding: 11px; background: linear-gradient(160deg, #2A2A36, #0E0E15); box-shadow: 0 0 0 1px var(--hairline-strong), 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 100px rgba(124, 139, 255, 0.18); }
.screen { position: relative; border-radius: 38px; background: var(--base); overflow: hidden; padding: 52px 16px 16px; height: 660px; display: flex; flex-direction: column; }
.screen::before { content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 108px; height: 30px; border-radius: 20px; background: #000; z-index: 3; }
.screen .ambient::before { width: 420px; height: 420px; left: -200px; top: -120px; }
.screen .ambient::after { width: 380px; height: 380px; right: -160px; bottom: -140px; }
.s-top { position: relative; display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.s-top .t { text-align: center; }
.s-top .t b { display: block; font-size: 16px; font-weight: 600; }
.s-top .t span { font-size: 11px; color: var(--ink3); }
.s-icon { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--hairline); background: rgba(255, 255, 255, 0.05); display: grid; place-items: center; color: var(--ink2); }
.s-icon svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.s-body { position: relative; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.xcard { position: relative; background: rgba(19, 19, 28, 0.72); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 16px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.xcard .q { display: flex; gap: 10px; font-weight: 600; font-size: 15px; line-height: 1.35; }
.xcard .q::before { content: ""; flex: none; width: 3px; border-radius: 3px; background: var(--aurora); }
.xcard .a { font-size: 15px; line-height: 1.5; margin: 10px 0 10px; color: var(--ink); }
.xcard .f { display: flex; gap: 8px; font-size: 11px; font-weight: 500; color: var(--ink3); align-items: center; }
.xcard .f svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.xcard .f .sp { flex: 1; }
.thinking { display: flex; gap: 5px; margin: 12px 0 6px; }
.thinking i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: 0.8; }
.thinking i:nth-child(2) { background: #6AB7EC; }
.thinking i:nth-child(3) { background: var(--accent-alt); }
.strip { display: flex; gap: 8px; align-items: flex-start; background: rgba(19, 19, 28, 0.8); border: 1px solid var(--hairline); border-radius: var(--r-panel); padding: 10px 14px; font-size: 13px; color: var(--ink2); }
.strip::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--hot); margin-top: 7px; }
.s-controls { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.pill { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; padding: 14px; font-weight: 600; font-size: 15px; border: 1px solid rgba(255, 255, 255, 0.14); }
.pill.hot { background: var(--hot); color: #1A0710; }
.pill svg { width: 14px; height: 14px; fill: currentColor; }
.round { width: 50px; height: 50px; border-radius: 50%; background: var(--aurora); display: grid; place-items: center; color: var(--base); flex: none; }
.round svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.illus { color: var(--ink3); font-size: 11px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; }

/* Detector demo */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.panel { background: var(--raised); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 26px; }
.panel label, .field-label { display: block; font-size: 11px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink3); margin: 0 0 10px; }
textarea { width: 100%; min-height: 128px; resize: vertical; font: inherit; font-size: 19px; line-height: 1.5; color: var(--ink); background: var(--sunken); border: 1px solid var(--hairline-strong); border-radius: var(--r-panel); padding: 14px 16px; }
textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124, 139, 255, 0.25); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { font: inherit; font-size: 14px; font-weight: 500; color: var(--ink2); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--hairline); border-radius: 999px; padding: 7px 13px; cursor: pointer; }
.chip:hover { color: var(--ink); border-color: var(--hairline-strong); }
.toggle { display: flex; align-items: center; gap: 12px; margin-top: 20px; cursor: pointer; font-size: 15px; color: var(--ink2); }
.toggle input { appearance: none; -webkit-appearance: none; width: 46px; height: 28px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); position: relative; cursor: pointer; margin: 0; flex: none; transition: background .2s; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.toggle input:checked { background: var(--good); }
.toggle input:checked::after { transform: translateX(18px); }
.toggle input:focus-visible { outline: 2px solid var(--accent-alt); outline-offset: 3px; }
.results { display: grid; gap: 10px; }
.result { display: flex; gap: 12px; align-items: flex-start; background: var(--raised); border: 1px solid var(--hairline); border-radius: var(--r-panel); padding: 14px 16px; }
.result .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 8px; background: var(--ink3); }
.result.yes .dot { background: var(--good); box-shadow: 0 0 10px rgba(91, 224, 155, 0.6); }
.result .txt { flex: 1; min-width: 0; }
.result .s { display: block; color: var(--ink2); font-size: 15px; }
.result .v { display: block; font-weight: 600; font-size: 16px; margin-top: 2px; }
.result.yes .v { color: var(--good); }
.result .why { display: block; color: var(--ink3); font-size: 13px; margin-top: 2px; }
.empty-note { color: var(--ink3); font-size: 15px; padding: 14px 2px; }

/* Steps / cards */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: rgba(19, 19, 28, 0.72); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 26px; }
.card p { color: var(--ink2); margin: 0; font-size: 16px; }
.n { width: 38px; height: 38px; border-radius: 50%; background: rgba(124, 139, 255, 0.14); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-family: var(--rounded); margin-bottom: 18px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ic { width: 44px; height: 44px; border-radius: var(--r-control); background: rgba(124, 139, 255, 0.12); border: 1px solid rgba(124, 139, 255, 0.22); display: grid; place-items: center; margin-bottom: 18px; color: var(--accent); }
.ic svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ic.teal { background: rgba(89, 227, 216, 0.10); border-color: rgba(89, 227, 216, 0.22); color: var(--accent-alt); }
.ic.hot { background: rgba(255, 122, 156, 0.10); border-color: rgba(255, 122, 156, 0.22); color: var(--hot); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.rules { display: grid; gap: 12px; }
.rule { background: rgba(19, 19, 28, 0.72); border: 1px solid var(--hairline); border-radius: var(--r-panel); padding: 16px 18px; }
.rule b { display: block; font-weight: 600; }
.rule span { display: block; color: var(--ink2); font-size: 15px; }
.rule em { color: var(--accent-alt); font-style: normal; }
.rule.no em { color: var(--hot); }

/* Privacy rows, after "Where your words go" */
.where { background: var(--raised); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 8px 24px; }
.where div { padding: 16px 0; border-top: 1px solid var(--hairline); }
.where div:first-child { border-top: 0; }
.where small { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0.8px; text-transform: uppercase; color: var(--ink3); }
.where span { color: var(--ink2); }

/* Closing */
.closing { text-align: center; overflow: hidden; }
.closing .wrap { position: relative; }
.closing img { width: 88px; height: 88px; border-radius: 20px; margin: 0 auto 24px; box-shadow: 0 0 0 1px var(--hairline-strong), 0 18px 50px rgba(124, 139, 255, 0.35); }
.closing .cta-row { justify-content: center; }
.closing .section-lede { margin-left: auto; margin-right: auto; }

footer { border-top: 1px solid var(--hairline); padding: 36px 0 48px; color: var(--ink3); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
footer a { color: var(--ink2); }
footer a:hover { color: var(--ink); }

/* Doc pages */
.doc { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; position: relative; }
.doc h1 { font-size: clamp(38px, 6vw, 56px); letter-spacing: -1.6px; margin: 0 0 8px; }
.doc .updated { color: var(--ink3); font-size: 15px; margin: 0 0 40px; }
.doc h2 { font-size: 24px; letter-spacing: -0.4px; margin: 44px 0 10px; }
.doc p, .doc li { color: rgba(245, 245, 250, 0.82); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.faq details { background: var(--raised); border: 1px solid var(--hairline); border-radius: var(--r-panel); padding: 18px 22px; margin: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-alt); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; }
.contact-card { background: var(--raised); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 26px; margin: 8px 0 32px; }
.contact-card p { margin: 0 0 16px; }
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 16px; position: relative; }
.notfound .big { font-size: clamp(80px, 16vw, 140px); font-weight: 700; letter-spacing: -4px; line-height: 1; font-family: var(--rounded); }

/* Phone menu */
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hairline-strong); background: rgba(19, 19, 28, 0.8); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; padding: 0; }
.menu-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.menu-btn[aria-expanded="true"] { color: var(--accent-alt); border-color: rgba(89, 227, 216, 0.5); }
.menu-panel { position: absolute; left: 12px; right: 12px; top: 70px; background: #13131C; border: 1px solid var(--hairline-strong); border-radius: var(--r-card); padding: 10px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6); }
.menu-panel a:not(.btn) { display: block; padding: 14px 16px; border-radius: var(--r-control); color: var(--ink); font-weight: 600; font-size: 17px; }
.menu-panel a:not(.btn):hover { background: rgba(255, 255, 255, 0.06); text-decoration: none; }
.menu-panel .btn { width: 100%; margin-top: 8px; }
@media (max-width: 760px) { .menu-btn { display: inline-flex; } .nav-links { display: none; } }
@media (min-width: 761px) { .menu-panel { display: none !important; } }

/* Jump button */
.jump { position: fixed; right: calc(16px + env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 30; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--hairline-strong); background: rgba(19, 19, 28, 0.9); color: var(--accent-alt); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), 0 0 22px rgba(124, 139, 255, 0.25); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s, transform .2s, visibility 0s .2s; padding: 0; }
.jump.show { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s; }
.jump svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.jump:hover { background: var(--card); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .jump, .jump.show { transition: none; transform: none; } }

@media (max-width: 980px) {
  .hero .wrap, .split, .demo { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 48px 0 64px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  section { padding: 72px 0; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .hero-icon { width: 80px; height: 80px; border-radius: 18px; }
  h1 { letter-spacing: -1.6px; }
  .panel { padding: 20px; }
  .cta-row .btn { flex: 1 1 auto; }
  .where { padding: 4px 18px; }
}
@media (max-width: 380px) { .phone { width: 100%; } }
.panel label.toggle { display: flex; text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 500; color: var(--ink2); margin: 20px 0 0; }
