/* ==========================================================
   EKKO — HOMEPAGE V2 (EXPERIMENT)
   Isolated from the production homepage. Nothing here is loaded
   by index.html, privacy.html or terms.html.

   Tokens, base, typography, buttons, header, phone frame, footer
   and the reveal system are carried over unchanged from V1 so the
   two versions read as the same brand. Everything below the
   "V2 SECTIONS" banner is new.
   ========================================================== */

/* ==========================================================
   TOKENS
   ========================================================== */
:root {
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --bg: #0C0C14;
  --surface: #11131C;
  --surface-soft: #151722;
  --text: #E6EAF2;
  --muted: #969DB0;
  --muted-dim: #7E8699;
  --blue: #7F93FF;
  --blue-bright: #9DACFF;
  --blue-soft: rgba(127, 147, 255, .15);
  --blue-line: rgba(127, 147, 255, .32);
  --line: rgba(230, 234, 242, .12);
  --line-soft: rgba(230, 234, 242, .07);
  --warm-pink: #DFA0C9;
  --warm-peach: #F1B7A6;
  --warm-amber: #F4D69B;

  --maxw: 1200px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --copy-col: minmax(0, 47fr);
  --visual-col: minmax(0, 53fr);
  --headline-measure: 600px;
  --section-y: clamp(5rem, 10vw, 9rem);
  --header-h: 72px;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-phone: 38px;
  --r-pill: 999px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ==========================================================
   BASE
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--blue-soft); color: #fff; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  background: var(--surface);
  border: 1px solid var(--blue-line);
  color: var(--text);
  padding: .7rem 1.1rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  z-index: 100;
  font-size: .9rem;
  text-decoration: none;
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ==========================================================
   TYPOGRAPHY
   ========================================================== */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.06;
  text-wrap: balance;
}

.h-hero {
  font-size: clamp(2.85rem, 5.2vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.026em;
}

.h-section {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.07;
  letter-spacing: -0.024em;
}

.h-step {
  font-size: clamp(1.45rem, 2.3vw, 2.05rem);
  line-height: 1.18;
  letter-spacing: -0.016em;
}

.eyebrow {
  display: block;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow-blue { color: var(--blue); }

.lead {
  font-size: clamp(1.0625rem, 1.35vw, 1.25rem);
  color: var(--muted);
  line-height: 1.6;
  max-width: 34em;
}

.body-copy {
  color: var(--muted);
  max-width: 38em;
}

.soft { color: var(--text); }
.dim { color: var(--muted-dim); }

.section { padding: var(--section-y) 0; }
.section-anchor { scroll-margin-top: calc(var(--header-h) + 24px); }

.rule {
  height: 1px;
  background: var(--line-soft);
  border: 0;
}

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .8rem 1.5rem;
  border-radius: var(--r-pill);
  font-size: .975rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}

.btn-primary {
  background: var(--blue);
  color: #0B0D18;
  font-weight: 600;
}
.btn-primary:hover { background: var(--blue-bright); transform: translateY(-1px); }

.btn-outline {
  border-color: var(--blue-line);
  color: var(--blue-bright);
  background: transparent;
}
.btn-outline:hover { background: var(--blue-soft); border-color: var(--blue); }

.btn-sm { min-height: 44px; padding: .55rem 1.15rem; font-size: .9rem; }

.link-quiet {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
  font-size: .975rem;
  transition: color .25s var(--ease);
}
.link-quiet:hover { color: var(--text); }
.link-quiet .arrow { transition: transform .3s var(--ease); }
.link-quiet:hover .arrow { transform: translateY(3px); }

.link-inline {
  color: var(--blue-bright);
  text-decoration: none;
  border-bottom: 1px solid var(--blue-line);
  padding-bottom: 1px;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.link-inline:hover { color: #fff; border-color: var(--blue); }

.appstore {
  display: inline-block;
  border-radius: 10px;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.appstore:hover { transform: translateY(-1px); opacity: .9; }
.appstore img { height: 52px; width: auto; }

/* ==========================================================
   HEADER
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(12, 12, 20, .72);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line-soft);
}

.site-nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand { display: flex; align-items: center; margin-right: auto; }
.brand img { height: 26px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  font-size: .94rem;
  color: var(--muted);
  transition: color .25s var(--ease);
}
.nav-links a:hover { color: var(--text); }

/* ==========================================================
   SHARED SECTION PARTS
   ========================================================== */
.section-head { max-width: 46rem; }
.section-head .h-section { margin-top: 1.15rem; }
.section-head .lead { margin-top: 1.15rem; }

/* phone frame */
.phone {
  position: relative;
  width: 100%;
  max-width: 300px;
  padding: 9px;
  border-radius: var(--r-phone);
  background: linear-gradient(160deg, rgba(230, 234, 242, .13) 0%, rgba(230, 234, 242, .03) 45%, rgba(230, 234, 242, .09) 100%);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .95);
}
.phone::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--line);
  pointer-events: none;
}
.phone img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--r-phone) - 9px);
  background: var(--surface);
}

/* ==========================================================
   ======================= V2 SECTIONS ======================
   ========================================================== */

/* ----------------------------------------------------------
   HERO
   Same cinematic split as V1, without the orbit diagram: the
   headline now has to carry "every stage", so the column is a
   little wider and the copy gets room to breathe.
   ---------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.hero > .container { width: 100%; }

.hero::before {
  content: '';
  position: absolute;
  top: -24%;
  right: -20%;
  width: min(1000px, 100vw);
  height: min(1000px, 100vw);
  background:
    radial-gradient(circle at 60% 40%, rgba(241, 183, 166, .19) 0%, rgba(223, 160, 201, .12) 30%, rgba(244, 214, 155, .05) 50%, transparent 66%);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  top: 22%;
  right: 4%;
  width: min(560px, 72vw);
  height: min(560px, 72vw);
  background: radial-gradient(circle, rgba(241, 183, 166, .16) 0%, rgba(223, 160, 201, .08) 42%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 50fr) minmax(0, 50fr);
  gap: clamp(2.5rem, 4.5vw, 4rem);
  align-items: center;
}

.hero-copy > * + * { margin-top: 1.5rem; }
.hero-copy .eyebrow + h1 { margin-top: 1.25rem; }
.hero-copy h1 { max-width: var(--headline-measure); }
.hero-sub {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  color: var(--muted);
  max-width: 42ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2.25rem !important;
}

.hero-visual { display: flex; flex-direction: column; align-items: center; }
.hero-photo {
  position: relative;
  margin: 0;
  width: min(100%, 30rem);
  justify-self: center;
  will-change: transform;
}
.hero-photo img {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 40px 90px -32px rgba(0, 0, 0, .88);
}

/* The listening indicator sits inside the figure so it travels with the
   parallax and reads as part of the scene rather than page furniture.
   Deliberately small and dim: a detail you notice second, not a banner. */
.hero-listening {
  position: absolute;
  left: 1.15rem;
  bottom: 1.15rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem .75rem .45rem .65rem;
  border: 1px solid rgba(230, 234, 242, .14);
  border-radius: var(--r-pill);
  background: rgba(12, 12, 20, .62);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  box-shadow: 0 10px 26px -14px rgba(0, 0, 0, .9);
}
.hl-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-bright);
  box-shadow: 0 0 0 0 rgba(127, 147, 255, .5);
  animation: hl-breathe 2.6s var(--ease) infinite;
}
.hl-label {
  font-size: .78rem;
  letter-spacing: .01em;
  color: rgba(230, 234, 242, .82);
}
.hl-time {
  font-variant-numeric: tabular-nums;
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--muted-dim);
}

@keyframes hl-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(127, 147, 255, .45); opacity: 1; }
  50%      { box-shadow: 0 0 0 5px rgba(127, 147, 255, 0); opacity: .55; }
}

/* ----------------------------------------------------------
   CONTEXT — "Ekko already knows who you're talking about"
   The proof that the product works before any recording exists.
   ---------------------------------------------------------- */
.ctx-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.ctx-copy .h-section { margin-top: 1.15rem; max-width: 15ch; }
.ctx-copy .lead { margin-top: 1.35rem; }
.ctx-copy .body-copy { margin-top: 1.35rem; }
.ctx-close {
  margin-top: 1.75rem;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 26em;
}

.ctx-thread {
  display: grid;
  gap: .7rem;
  width: 100%;
  max-width: 33rem;
  justify-self: center;
}
/* the standing context, shown as the app holds it: a few short facts */
.ctx-knows {
  padding: 1.15rem 1.25rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(21, 23, 34, .94) 0%, rgba(17, 19, 28, .94) 100%);
}
.ctx-knows-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-dim);
}
.ctx-knows-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line-soft);
}
.ctx-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .95rem;
}
.ctx-chips li {
  font-size: .8125rem;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-pill);
  padding: .35rem .8rem;
  background: rgba(230, 234, 242, .03);
}
.ctx-chips li:first-child {
  color: var(--text);
  border-color: var(--blue-line);
  background: rgba(127, 147, 255, .07);
}

/* the facts land first, then the picker they get answered from */
.ctx-step {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.ctx-thread.is-playing .ctx-step { opacity: 1; transform: none; }
.ctx-thread.is-playing .ctx-step:nth-child(1) { transition-delay: 0s; }
.ctx-thread.is-playing .ctx-step:nth-child(2) { transition-delay: .45s; }

/* ----------------------------------------------------------
   PROBLEM
   ---------------------------------------------------------- */
/* Panelled so it reads as its own beat between privacy and the final
   close, rather than dissolving into the section above it. */
.problem { position: relative; background: var(--surface); }

.picture-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(2.75rem, 5vw, 4rem);
}

.picture-card {
  padding: clamp(1.25rem, 2.2vw, 1.75rem);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(12, 12, 20, .4);
}

.picture-kicker {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-bright);
}

.picture-card h3 {
  margin-top: .9rem;
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.picture-card p:last-child {
  margin-top: .75rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 32ch;
}

/* ----------------------------------------------------------
   STAGES — before / during / after
   Three columns on one rail. Replaces V1's six-step loop.
   ---------------------------------------------------------- */
.stages { background: var(--surface); }

.stage-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3.5rem);
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.stage-rail::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 5px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230, 234, 242, .18) 14%, rgba(127, 147, 255, .28) 50%, rgba(230, 234, 242, .18) 86%, transparent);
}

.stage-col { position: relative; display: flex; flex-direction: column; }

.stage-dot {
  position: relative;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid var(--blue-line);
  background: var(--surface);
}
.stage-dot::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--blue);
  opacity: .55;
}

.stage-label {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: 1.5rem;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-dim);
}
.stage-label-n { color: var(--blue); }

.stage-opt {
  font-size: .6rem;
  letter-spacing: .14em;
  color: var(--blue-bright);
  border: 1px solid var(--blue-line);
  border-radius: var(--r-pill);
  padding: .15rem .5rem;
  background: rgba(127, 147, 255, .07);
}

.stage-col .h-step { margin-top: 1rem; }
.stage-col .body-copy { margin-top: .9rem; font-size: 1rem; }

/* The auto margin drops the phones to a shared line, so the columns'
   uneven copy lengths don't stagger them. The padding keeps the minimum
   gap once the tallest column has no slack left to give. */
.stage-media {
  margin-top: auto;
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  justify-content: flex-start;
}
.stage-media .phone { max-width: 216px; }

.stage-tie {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: clamp(2rem, 4vw, 2.75rem);
  border-top: 1px solid var(--line-soft);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 34em;
}

/* ----------------------------------------------------------
   SIGNALS — one conversation, more than one signal
   ---------------------------------------------------------- */
.signals-layout {
  margin-top: clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

/* The window the pairs slide through. Overflow is clipped horizontally
   only, so the phone shadows still bleed downward. */
.signals-viewport {
  overflow: hidden;
  padding: 0 2px;
}
.signals-track {
  display: flex;
  will-change: transform;
  transition: transform .7s var(--ease);
}
.signals-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.75rem);
  align-items: start;
  opacity: .25;
  transition: opacity .55s var(--ease);
}
.signals-slide.is-active { opacity: 1; }

.pair-item { margin: 0; display: flex; flex-direction: column; align-items: center; }
.pair-item .phone { max-width: 244px; }
.pair-item figcaption {
  margin-top: .85rem;
  font-size: .66rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

/* The list doubles as the carousel's navigation. */
.signal-list { list-style: none; display: grid; }
.signal-item {
  position: relative;
  border-top: 1px solid var(--line-soft);
}
.signal-item:last-child { border-bottom: 1px solid var(--line-soft); }

.signal-btn {
  display: block;
  width: 100%;
  padding: clamp(1.1rem, 2.1vw, 1.6rem) 0;
  text-align: left;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.signal-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.signal-head {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.2rem, 1.75vw, 1.55rem);
  letter-spacing: -0.026em;
  color: var(--muted);
  transition: color .45s var(--ease);
}
.signal-item.is-active .signal-head { color: var(--text); }

.signal-item::before {
  content: '';
  position: absolute;
  left: -1.25rem;
  top: calc(clamp(1.1rem, 2.1vw, 1.6rem) + .35em);
  width: 2px;
  height: 1.1em;
  border-radius: 2px;
  background: var(--blue);
  opacity: 0;
  transform: scaleY(.4);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.signal-item.is-active::before { opacity: 1; transform: scaleY(1); }

.signal-btn .idx {
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--muted-dim);
  transition: color .45s var(--ease);
}
.signal-item.is-active .idx { color: var(--blue); }

.signal-desc {
  display: block;
  margin-top: .5rem;
  font-size: .95rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 36em;
}

/* Controls sit under the screens, aligned with them rather than centred
   on the section, so they read as belonging to the pair. */
.signals-controls {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.carousel-btn:hover {
  color: var(--text);
  border-color: var(--blue-line);
  background: rgba(127, 147, 255, .07);
}
.carousel-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.carousel-count {
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--muted-dim);
  font-variant-numeric: tabular-nums;
}

.signals-foot {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  font-size: .9rem;
  color: var(--muted-dim);
  max-width: 44em;
}

/* ----------------------------------------------------------
   ASK — the question picker inside the context section
   ---------------------------------------------------------- */
/* The question picker, now living inside the context section rather than
   a section of its own. */
.ask { width: 100%; }
.ask-label {
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-dim);
}
.ask-chips {
  display: grid;
  gap: .5rem;
  margin-top: 1rem;
}

/* written as the things you'd actually type, so they read as your
   words rather than a row of generated suggestions */
.ask-chip {
  display: flex;
  align-items: center;
  gap: .7rem;
  width: 100%;
  padding: .8rem 1rem;
  font-family: inherit;
  font-size: .95rem;
  line-height: 1.4;
  text-align: left;
  color: var(--muted);
  background: rgba(230, 234, 242, .028);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  cursor: pointer;
  transition: color .28s var(--ease), border-color .28s var(--ease), background-color .28s var(--ease);
}
.ask-chip .mark {
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted-dim);
  transition: background-color .28s var(--ease), box-shadow .28s var(--ease);
}
.ask-chip:hover { color: var(--text); border-color: var(--line); }
.ask-chip[aria-pressed="true"] {
  color: var(--text);
  border-color: var(--blue-line);
  background: rgba(127, 147, 255, .06);
}
.ask-chip[aria-pressed="true"] .mark {
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(127, 147, 255, .14);
}

.ask-answer {
  margin-top: 1.1rem;
  padding: 1.05rem 1.15rem;
  min-height: 7.5rem;
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.6;
  background: rgba(127, 147, 255, .07);
  border: 1px solid var(--blue-line);
  border-radius: 16px;
  border-bottom-left-radius: 5px;
  transition: opacity .3s var(--ease);
}
.ask-answer.is-swapping { opacity: 0; }
.ask-answer p strong { color: var(--text); font-weight: 500; }

.ask-note {
  margin-top: .8rem;
  font-size: .75rem;
  color: var(--muted-dim);
}

/* ----------------------------------------------------------
   OVER TIME
   ---------------------------------------------------------- */
.time { background: var(--surface); }
.time-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.time-copy .body-copy { margin-top: 1.35rem; }
.time-close {
  margin-top: 1.75rem;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--text);
  letter-spacing: -0.02em;
  max-width: 26em;
}

.trace {
  display: grid;
  gap: .75rem;
  margin-top: clamp(2.25rem, 4vw, 3rem);
  width: 100%;
  max-width: 440px;
}
.trace-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: rgba(230, 234, 242, .022);
  font-size: .9rem;
  color: var(--muted);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.trace-bar {
  display: block;
  width: clamp(70px, 22vw, 130px);
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(230, 234, 242, .28), rgba(230, 234, 242, .05));
}
.trace-row:nth-child(2) .trace-bar { background: linear-gradient(90deg, rgba(230, 234, 242, .18), rgba(127, 147, 255, .25)); }
.trace-row:nth-child(3) .trace-bar { background: linear-gradient(90deg, rgba(127, 147, 255, .3), rgba(127, 147, 255, .5)); }

.trace-result {
  margin-top: .5rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--blue-line);
  border-radius: var(--r-md);
  background: rgba(127, 147, 255, .07);
  color: var(--blue-bright);
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.trace.is-playing .trace-row,
.trace.is-playing .trace-result { opacity: 1; transform: none; }
.trace.is-playing .trace-row:nth-child(1) { transition-delay: 0s; }
.trace.is-playing .trace-row:nth-child(2) { transition-delay: .35s; }
.trace.is-playing .trace-row:nth-child(3) { transition-delay: .7s; }
.trace.is-playing .trace-result { transition-delay: 1.1s; }

.time-visual { display: flex; justify-content: center; }
.time-visual .phone { max-width: 268px; }

/* ----------------------------------------------------------
   PRIVACY
   ---------------------------------------------------------- */
.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
.privacy-grid .h-section {
  font-size: clamp(1.95rem, 3.4vw, 3.1rem);
  max-width: 26ch;
}
.privacy-grid .lead { margin-top: 1.35rem; }
.privacy-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; }

.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.0625rem;
  color: var(--text);
  transition: color .25s var(--ease);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--blue-bright); }
.qa summary .sign {
  position: relative;
  flex: none;
  width: 13px;
  height: 13px;
  opacity: .75;
}
.qa summary .sign::before,
.qa summary .sign::after {
  content: '';
  position: absolute;
  background: var(--muted);
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.qa summary .sign::before { top: 6px; left: 0; width: 13px; height: 1px; }
.qa summary .sign::after { left: 6px; top: 0; width: 1px; height: 13px; }
.qa details[open] summary .sign::after { transform: scaleY(0); }
.qa details[open] summary .sign::before { background: var(--blue); }
.qa details[open] summary { color: var(--text); }
.qa .answer { padding: 0 0 1.5rem; color: var(--muted); max-width: 42em; }

/* ----------------------------------------------------------
   FINAL CTA
   ---------------------------------------------------------- */
.final {
  position: relative;
  overflow: hidden;
  text-align: center;
}
.final::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -62%;
  transform: translateX(-50%);
  width: min(1150px, 130vw);
  height: min(900px, 105vw);
  background:
    radial-gradient(circle at 50% 58%, rgba(241, 183, 166, .40) 0%, rgba(223, 160, 201, .22) 20%, rgba(244, 214, 155, .09) 34%, transparent 48%);
  pointer-events: none;
}
.final .container { position: relative; z-index: 1; }
.final .h-section { margin: 0 auto; max-width: 18ch; }
.final-echo {
  margin-top: 1.5rem;
  margin-inline: auto;
  max-width: 30ch;
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  line-height: 1.45;
  color: var(--muted);
  letter-spacing: -0.02em;
}
.final-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
}
.final-note { font-size: .85rem; color: var(--muted-dim); }

/* ----------------------------------------------------------
   FOOTER
   ---------------------------------------------------------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2.5rem 3rem;
  align-items: start;
}
.footer-brand img { height: 24px; width: auto; }
.footer-support { margin-top: 1.25rem; color: var(--muted); font-size: .95rem; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 3.5rem;
}
.footer-col h2 {
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-dim);
}
.footer-col ul { list-style: none; margin-top: 1rem; display: grid; gap: .7rem; }
.footer-col a {
  text-decoration: none;
  font-size: .95rem;
  color: var(--muted);
  transition: color .25s var(--ease);
}
.footer-col a:hover { color: var(--text); }

.socials { display: flex; gap: .5rem; margin-top: 1rem; }
.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-soft);
  color: var(--muted);
  transition: color .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease);
}
.socials a:hover { color: var(--text); border-color: var(--line); background: rgba(230, 234, 242, .04); }
.socials svg { width: 17px; height: 17px; fill: currentColor; }

.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  font-size: .85rem;
  color: var(--muted-dim);
}

/* ==========================================================
   REVEALS
   ========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .09s; }
.reveal[data-delay="2"] { transition-delay: .18s; }
.reveal[data-delay="3"] { transition-delay: .27s; }
.reveal[data-delay="4"] { transition-delay: .36s; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1024px) {
  .ctx-grid,
  .time-grid,
  .privacy-grid { grid-template-columns: minmax(0, 1fr); }

  /* Stacked, the proof has to arrive before the explanation, so the
     copy dissolves into the grid and the exchange slots in after the
     lead. Spacing comes from the grid gap once the margins are off. */
  .ctx-grid { gap: 1.15rem; }
  .ctx-copy { display: contents; }
  .ctx-copy .eyebrow { order: 1; }
  .ctx-copy .h-section { order: 2; margin-top: 0; max-width: 18ch; }
  .ctx-copy .lead { order: 3; margin-top: 0; }
  .ctx-thread { order: 4; margin: .75rem 0 .35rem; justify-self: start; }
  .ctx-copy .body-copy { order: 5; margin-top: 0; }
  .ctx-copy .ctx-close { order: 6; margin-top: .4rem; }

  .time-visual { justify-content: flex-start; }
  .trace { max-width: 520px; }

  /* the rail reads as a column: each stage keeps its dot, the line
     between them turns vertical so the sequence still holds */
  .stage-rail { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
  .stage-rail::before { display: none; }
  .stage-col { padding-left: 1.85rem; }
  .stage-col::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 14px;
    bottom: -3rem;
    width: 1px;
    background: var(--line);
  }
  .stage-col:last-child::before { display: none; }
  .stage-dot { position: absolute; left: 0; top: 4px; }
  .stage-label { margin-top: 0; }
  .stage-media .phone { max-width: 232px; }
}

@media (max-width: 900px) {
  .picture-grid { grid-template-columns: minmax(0, 1fr); }

  .nav-links { display: none; }

  .hero { min-height: 0; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2.5rem, 6vw, 3.5rem);
  }
  .hero-photo { justify-self: start; transform: none !important; }
  .hero-sub { max-width: 46ch; }
  .h-hero { font-size: clamp(2.75rem, 6.6vw, 4rem); }

  /* signals: stack the copy under the pair, the carousel stays */
  .signals-layout { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
  .signals-slide { gap: 1rem; }
  .pair-item figcaption { margin-top: .7rem; font-size: .62rem; }
  .signal-item::before { display: none; }
  .signals-controls { justify-content: flex-start; }
}

@media (max-width: 768px) {
  .h-hero { font-size: clamp(2.15rem, 9.6vw, 3rem); }
  .ctx-copy .h-section { max-width: none; }
  .ask-answer { min-height: 0; }
  .stage-media .phone { max-width: 208px; }
  .time-visual .phone { max-width: 240px; }
}

@media (max-width: 640px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { gap: 2rem 2.5rem; }
  .appstore img { height: 48px; }
  .hero-actions { gap: .75rem 1.25rem; }
  .hero-actions .btn,
  .privacy-cta .btn { width: 100%; }
  .hero-actions .link-quiet { width: 100%; justify-content: center; }
  .final::before { bottom: -45%; }
  .hero-listening { left: .8rem; bottom: .8rem; gap: .45rem; padding: .4rem .65rem .4rem .55rem; }
  .hl-label, .hl-time { font-size: .72rem; }
}

@media (max-width: 400px) {
  .brand img { height: 23px; }
}

/* ==========================================================
   REDUCED MOTION
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .ctx-step,
  .trace-row,
  .trace-result { opacity: 1; transform: none; }
  .hero-photo { transform: none !important; }
  .signals-track { transition: none; }
}
