/* HypnoApp marketing site — Deep Aurora, ported from the app's tailwind.config.js.
   Design system is binding (docs/design/brand.md): no em dashes in copy, benefit
   first, warm not cute. Taste-skill dials for this site: VARIANCE 6 / MOTION 4 /
   DENSITY 3. One locked accent (brand violet), one radius scale, one type scale.
   Buttons are full-pill, cards are 16px, inputs are 10px. Do not mix. */

/* ---- Tokens (light) ---- */
:root {
  --bg: #f5f3f8;
  --bgSoft: #ffffff;
  --bgCard: #ebe7f2;
  --primary: #6c5ec2;
  --primarySoft: #5141a0;
  --secondary: #2c7e95;
  --tertiary: #7d6a48;
  --ink: #1a1d28;
  --inkSoft: #5e6478;
  --inkMute: #8a8f9e;
  --line: #d8d4e0;
  --ok: #4a8a73;
  --warn: #b0853e;
  --danger: #a05870;

  /* Button fill meets WCAG AA against white text (primarySoft ~6.5:1). */
  --btn-bg: #5141a0;
  --btn-fg: #ffffff;

  /* Aurora field (the literal Deep Aurora, our on-brand hero device). */
  --aurora-1: rgba(108, 94, 194, 0.42);
  --aurora-2: rgba(44, 126, 149, 0.30);
  --aurora-3: rgba(125, 106, 72, 0.18);

  --r-card: 16px;
  --r-sm: 10px;
  --shadow: 0 18px 50px -20px rgba(81, 65, 160, 0.35);
  --shadow-sm: 0 6px 20px -12px rgba(81, 65, 160, 0.30);
  --maxw: 1120px;

  --step--1: clamp(0.83rem, 0.79rem + 0.2vw, 0.94rem);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.13rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3.2rem);
  --step-4: clamp(2.6rem, 2rem + 3vw, 4.4rem);
}

/* ---- Tokens (dark) ---- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0e14;
    --bgSoft: #141921;
    --bgCard: #1c2330;
    --primary: #c2b8e0;
    --primarySoft: #9d8fc8;
    --secondary: #7fb8c4;
    --tertiary: #d4c4a8;
    --ink: #f0eef8;
    --inkSoft: #a8aebc;
    --inkMute: #6a7080;
    --line: #2a3142;
    --ok: #9bcdb6;
    --warn: #e6c79c;
    --danger: #d49ba6;

    /* Deeper violet keeps white label text at AA on dark. */
    --btn-bg: #5a4ba6;
    --btn-fg: #ffffff;

    --aurora-1: rgba(108, 94, 194, 0.34);
    --aurora-2: rgba(44, 126, 149, 0.24);
    --aurora-3: rgba(125, 106, 72, 0.12);

    --shadow: 0 22px 60px -22px rgba(0, 0, 0, 0.7);
    --shadow-sm: 0 8px 24px -14px rgba(0, 0, 0, 0.6);
  }
}

/* ---- Reset + base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 { line-height: 1.08; letter-spacing: -0.02em; margin: 0; font-weight: 680; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(3.5rem, 2rem + 8vw, 6.5rem); }
.lede { color: var(--inkSoft); font-size: var(--step-1); max-width: 60ch; }
.muted { color: var(--inkSoft); }
.tiny { font-size: var(--step--1); }

/* ---- Buttons (full-pill, one intent per label) ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.4rem; border-radius: 999px;
  font-weight: 620; font-size: var(--step-0); text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.32, 0.72, 0, 1),
    box-shadow 0.18s ease, background 0.18s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); box-shadow: var(--shadow-sm); }
.btn-primary:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); }
.btn .arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.4rem; height: 1.4rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  transition: transform 0.18s cubic-bezier(0.32, 0.72, 0, 1);
}
.btn-primary:hover .arrow { transform: translate(2px, -1px); }

/* ---- Nav (single line, floating, <= 72px) ---- */
.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; }
.brand .mark { width: 26px; height: 26px; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
/* :not(.btn) so the CTA keeps its white button label (a plain `.nav-links a`
   rule would out-specify `.btn-primary` and wash the label to inkSoft). */
.nav-links a:not(.btn) { text-decoration: none; color: var(--inkSoft); font-size: var(--step-0); }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-cta { display: inline-flex; align-items: center; }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; position: absolute; left: 0; right: 0; top: 66px;
    flex-direction: column; align-items: flex-start; gap: 1.1rem;
    padding: 1.2rem 20px 1.6rem; background: var(--bgSoft);
    border-bottom: 1px solid var(--line);
  }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 12px;
    border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer;
  }
}

/* ---- Aurora hero ---- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 130%;
  background:
    radial-gradient(40% 55% at 78% 18%, var(--aurora-1), transparent 70%),
    radial-gradient(45% 50% at 20% 30%, var(--aurora-2), transparent 72%),
    radial-gradient(60% 60% at 60% 90%, var(--aurora-3), transparent 75%);
  filter: blur(6px);
  animation: drift 22s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-2%, 1.5%, 0) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) { .hero::before { animation: none; } }

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: center;
  padding-block: clamp(3rem, 1.5rem + 7vw, 5.5rem);
}
.hero h1 { max-width: 15ch; }
.hero .lede { margin-top: 1.1rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.hero-card {
  background: color-mix(in srgb, var(--bgSoft) 86%, transparent);
  border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow); padding: 1.5rem;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero h1 { max-width: 100%; }
}

/* ---- Pillars (bento, real tinted variation, not white-on-white) ---- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.pillar {
  border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.5rem;
  min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end;
}
.pillar h3 { margin-bottom: 0.4rem; }
.pillar .kicker { font-size: var(--step--1); font-weight: 640; margin-bottom: auto; }
.pillar-1 { background: linear-gradient(160deg, color-mix(in srgb, var(--primary) 18%, var(--bgCard)), var(--bgCard)); }
.pillar-1 .kicker { color: var(--primarySoft); }
.pillar-2 { background: linear-gradient(160deg, color-mix(in srgb, var(--secondary) 16%, var(--bgCard)), var(--bgCard)); }
.pillar-2 .kicker { color: var(--secondary); }
.pillar-3 { background: linear-gradient(160deg, color-mix(in srgb, var(--tertiary) 20%, var(--bgCard)), var(--bgCard)); }
.pillar-3 .kicker { color: var(--tertiary); }
@media (max-width: 780px) { .pillars { grid-template-columns: 1fr; } }

/* ---- Step strip (the real-technique arc) ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; counter-reset: step; }
.step {
  border-top: 2px solid var(--line); padding-top: 0.9rem;
}
.step .n { font-size: var(--step--1); color: var(--primarySoft); font-weight: 680; }
.step h3 { font-size: var(--step-0); margin: 0.3rem 0 0.2rem; }
@media (max-width: 780px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ---- Full-width statement band (Stargate hook) ---- */
.band {
  position: relative; overflow: hidden; border-radius: 28px;
  background: radial-gradient(80% 120% at 15% 0%, color-mix(in srgb, var(--primary) 30%, var(--bgCard)), var(--bgCard));
  border: 1px solid var(--line); padding: clamp(2rem, 1rem + 5vw, 3.5rem);
}
.band h2 { max-width: 18ch; }
.band .lede { margin-top: 1rem; }
.band .btn { margin-top: 1.6rem; }

/* ---- Stat row (real, catalog-grounded numbers) ---- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; text-align: left; }
.stat .num { font-size: var(--step-3); font-weight: 700; letter-spacing: -0.02em; }
.stat .lab { color: var(--inkSoft); }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; gap: 1.4rem; } }

/* ---- Email capture ---- */
.capture { background: var(--bgCard); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(1.5rem, 1rem + 3vw, 2.5rem); }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: var(--step--1); font-weight: 620; }
.field input[type="email"] {
  width: 100%; padding: 0.85rem 1rem; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--bgSoft); color: var(--ink); font-size: var(--step-0);
}
.field input::placeholder { color: var(--inkMute); }
.field input:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.capture-row { display: flex; gap: 0.7rem; align-items: flex-end; flex-wrap: wrap; }
.capture-row .field { flex: 1 1 240px; }
.form-note { color: var(--inkSoft); font-size: var(--step--1); margin-top: 0.7rem; }
.form-status { margin-top: 0.8rem; font-size: var(--step-0); }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--danger); }

/* ---- Prose (legal + docs) ---- */
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--step-2); margin-top: 2.4rem; }
.prose h3 { margin-top: 1.6rem; }
.prose p, .prose li { color: var(--inkSoft); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: var(--primarySoft); }
@media (prefers-color-scheme: dark) { .prose a { color: var(--primary); } }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--line); background: var(--bgSoft); }
.footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-block: 3rem; }
.footer h4 { font-size: var(--step--1); text-transform: none; color: var(--inkMute); margin: 0 0 0.8rem; font-weight: 640; }
.footer a { display: block; text-decoration: none; color: var(--inkSoft); padding: 0.25rem 0; }
.footer a:hover { color: var(--ink); }
.footer .fine { color: var(--inkMute); font-size: var(--step--1); margin-top: 0.6rem; }
@media (max-width: 720px) { .footer-in { grid-template-columns: 1fr; gap: 1.4rem; } }

/* ---- Shared section header ---- */
.eyebrow { font-size: var(--step--1); font-weight: 660; color: var(--primarySoft); letter-spacing: 0.02em; }
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--primary); } }
.section-head { max-width: 52ch; margin-bottom: 2rem; }
.section-head .lede { margin-top: 0.8rem; }

/* ---- Scroll reveal (MOTION 4: gentle, motivated, reduced-motion safe) ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- Pricing plans ---- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; align-items: start; }
.plan { border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.8rem; background: var(--bgSoft); }
.plan.featured { border-color: var(--primary); box-shadow: var(--shadow); background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 10%, var(--bgSoft)), var(--bgSoft)); }
.plan .price { font-size: var(--step-3); font-weight: 700; letter-spacing: -0.02em; margin: 0.4rem 0 0.2rem; }
.plan .price small { font-size: var(--step-0); font-weight: 500; color: var(--inkSoft); }
.plan ul { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.plan li { display: flex; gap: 0.6rem; padding: 0.4rem 0; color: var(--inkSoft); }
.plan li svg { flex: 0 0 auto; margin-top: 0.28rem; color: var(--ok); }
.plan .btn { width: 100%; justify-content: center; margin-top: 1.4rem; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }

/* ---- Hero platform line (iPhone / Android / Web) ---- */
.hero-platform { margin-top: 1.1rem; }

/* ---- Problem band turn line (visually distinct closing line) ---- */
.band-turn {
  margin-top: 1.2rem; font-size: var(--step-1); font-weight: 640;
  letter-spacing: -0.01em; color: var(--primarySoft);
}
@media (prefers-color-scheme: dark) { .band-turn { color: var(--primary); } }

/* ---- Prompt-example chips (quoted asks, speech-bubble outlines) ---- */
.asks {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 0.7rem;
}
.ask {
  position: relative;
  border: 1px solid color-mix(in srgb, var(--primary) 45%, var(--line));
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  background: color-mix(in srgb, var(--primary) 8%, var(--bgSoft));
  color: var(--ink); font-size: var(--step-0); font-weight: 560;
}
.ask::before { content: "\201C"; color: var(--primarySoft); margin-right: 0.15rem; }
.ask::after { content: "\201D"; color: var(--primarySoft); margin-left: 0.15rem; }
@media (prefers-color-scheme: dark) {
  .ask::before, .ask::after { color: var(--primary); }
}

/* ---- Topic chip cloud (plain tinted chips) ---- */
.topics {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 0.6rem;
}
.topic {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.5rem 0.95rem;
  background: var(--bgCard); color: var(--inkSoft);
  font-size: var(--step--1); font-weight: 600;
}

/* ---- App + Web device duo (abstract, pure CSS/SVG stylization) ---- */
.duo {
  display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 1.6rem; align-items: end;
}
.device { margin: 0; }
.device-label {
  margin-top: 0.9rem; text-align: center;
  font-size: var(--step--1); font-weight: 640; color: var(--inkSoft);
}
.device-screen {
  position: relative; overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(70% 60% at 50% 0%, color-mix(in srgb, var(--primary) 22%, var(--bgCard)), var(--bgCard));
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center;
}
.device-rings {
  width: 46px; height: 46px; color: var(--primarySoft);
  margin-bottom: 1.1rem;
}
@media (prefers-color-scheme: dark) { .device-rings { color: var(--primary); } }
.device .bar {
  display: block; height: 9px; border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 20%, var(--line));
  margin-top: 0.55rem;
}
.device .bar-lg { width: 78%; }
.device .bar-md { width: 60%; }
.device .bar-sm { width: 42%; }
/* Phone: tall rounded slab. */
.device-phone .device-screen {
  border-radius: 26px; padding: 2rem 1.3rem;
  aspect-ratio: 9 / 17; justify-content: center;
}
/* Web: browser window with a title bar and three dots. */
.device-web .device-screen {
  border-radius: 0 0 var(--r-card) var(--r-card); border-top: 0;
  padding: 2.4rem 2rem; aspect-ratio: 16 / 10; justify-content: center;
}
.device-chrome {
  display: flex; align-items: center; gap: 0.45rem;
  height: 34px; padding: 0 0.9rem;
  border: 1px solid var(--line); border-radius: var(--r-card) var(--r-card) 0 0;
  background: var(--bgSoft);
}
.device-chrome span {
  width: 9px; height: 9px; border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 30%, var(--line));
}
@media (max-width: 640px) {
  .duo { grid-template-columns: 1fr; gap: 2rem; justify-items: center; }
  .device { width: 100%; max-width: 320px; }
}

/* ---- FAQ (native details/summary, minimal) ---- */
.faq { border-top: 1px solid var(--line); max-width: 68ch; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 0; font-size: var(--step-1); font-weight: 620;
  letter-spacing: -0.01em; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 auto; width: 12px; height: 12px;
  border-right: 2px solid var(--inkMute); border-bottom: 2px solid var(--inkMute);
  transform: rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); }
.faq summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: var(--r-sm); }
.faq details p { padding: 0 0 1.2rem; max-width: 60ch; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

.stack { display: flex; flex-direction: column; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.center { text-align: center; }
