/* ==========================================================================
   Wander — Landing page styles
   "The Open Field": vast, calm, editorial. Light mode only.
   ========================================================================== */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--w-surface);
  color: var(--w-on-surface);
  font-family: var(--w-font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* ── Layout shell ───────────────────────────────────────────────────────── */
.shell {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .shell { padding: 0 40px; }
}
@media (min-width: 1100px) {
  .shell { padding: 0 56px; }
}

/* ── Top nav ────────────────────────────────────────────────────────────── */
.nav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 0;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--w-on-surface);
}
.nav-logo img { height: 30px; width: auto; display: block; }
.nav-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  border-radius: var(--w-radius-full);
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--w-outline-variant);
  font-family: var(--w-font-mono);
  font-size: 11px;
  letter-spacing: 1.2px;
  color: var(--w-on-surface-variant);
}
.nav-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--w-secondary);
  box-shadow: 0 0 0 4px rgba(0,184,148,0.18);
}
@media (max-width: 600px) {
  .nav-eyebrow span.long { display: none; }
}

/* ── Section primitives ────────────────────────────────────────────────── */
section {
  position: relative;
  padding: 96px 0;
}
@media (min-width: 768px) {
  section { padding: 128px 0; }
}
.section-label {
  font-family: var(--w-font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--w-on-surface-variant);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
}
.section-label::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--w-on-surface-variant);
  opacity: 0.5;
}
.section-title {
  font-family: var(--w-font-heading);
  font-weight: 500;
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--w-on-surface);
  margin: 0;
  text-wrap: balance;
}
.section-title em {
  font-style: normal;
  color: var(--w-primary);
  background: linear-gradient(105deg, var(--w-primary) 0%, #8e82ec 60%, var(--w-tertiary) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0 0.08em 0.06em 0.04em;
  margin-left: -0.04em;
  display: inline-block;
}
.section-sub {
  font-family: var(--w-font-body);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--w-on-surface-variant);
  margin: 22px 0 0;
  max-width: 56ch;
  text-wrap: pretty;
}

/* ── HERO ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 56px 0 96px;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) {
  .hero { padding: 28px 0 120px; min-height: 100vh; }
}

/* Ambient gradient sky — vast, full-bleed, drifts very slowly */
.sky {
  position: absolute;
  inset: -10% -10% -20% -10%;
  z-index: 0;
  pointer-events: none;
  filter: saturate(1.05);
}
.sky::before, .sky::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.85;
}
.sky::before {
  width: 70vw; height: 70vw;
  left: -10vw; top: -20vw;
  background: radial-gradient(circle at 30% 30%,
    rgba(108, 92, 231, 0.32) 0%,
    rgba(108, 92, 231, 0.12) 40%,
    rgba(108, 92, 231, 0) 70%);
  animation: drift1 24s ease-in-out infinite alternate;
}
.sky::after {
  width: 60vw; height: 60vw;
  right: -15vw; top: 10vw;
  background: radial-gradient(circle at 60% 50%,
    rgba(253, 203, 110, 0.28) 0%,
    rgba(253, 203, 110, 0.10) 40%,
    rgba(253, 203, 110, 0) 70%);
  animation: drift2 30s ease-in-out infinite alternate;
}
.sky-third {
  position: absolute;
  width: 55vw; height: 55vw;
  left: 25vw; bottom: -25vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.65;
  background: radial-gradient(circle at 50% 50%,
    rgba(0, 184, 148, 0.22) 0%,
    rgba(0, 184, 148, 0.08) 40%,
    rgba(0, 184, 148, 0) 70%);
  animation: drift3 36s ease-in-out infinite alternate;
}
@keyframes drift1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(6vw, 4vw) scale(1.08); }
}
@keyframes drift2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-5vw, 6vw) scale(1.12); }
}
@keyframes drift3 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-4vw, -5vw) scale(1.05); }
}

/* Faint star/dot field — subtle texture without slop */
.stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 13% 18%, rgba(108,92,231,0.55), transparent 60%),
    radial-gradient(1px 1px at 78% 8%, rgba(108,92,231,0.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 42% 72%, rgba(253,203,110,0.5), transparent 60%),
    radial-gradient(1px 1px at 88% 62%, rgba(0,184,148,0.5), transparent 60%),
    radial-gradient(1px 1px at 22% 88%, rgba(108,92,231,0.4), transparent 60%),
    radial-gradient(1px 1px at 62% 28%, rgba(108,92,231,0.4), transparent 60%),
    radial-gradient(1px 1px at 7% 56%, rgba(108,92,231,0.35), transparent 60%),
    radial-gradient(1px 1px at 92% 36%, rgba(253,203,110,0.4), transparent 60%);
  opacity: 0.8;
}

.hero-body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 64px;
  padding-top: 56px;
}
@media (min-width: 980px) {
  .hero-body {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 80px;
    padding-top: 48px;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--w-font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--w-on-surface-variant);
  margin: 0 0 28px;
}
.hero-eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.hero-title {
  font-family: var(--w-font-heading);
  font-weight: 500;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--w-on-surface);
  margin: 0;
  text-wrap: balance;
}
.hero-title .has {
  display: inline-block;
}
.hero-title .gradient {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(100deg, var(--w-primary) 0%, #8e82ec 40%, var(--w-tertiary) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* italic glyphs lean past their box — pad right so trailing glyph isn't clipped */
  padding: 0 0.08em 0.06em 0;
}
.hero-title .nowrap { white-space: nowrap; }
.hero-sub {
  font-family: var(--w-font-body);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  color: var(--w-on-surface-variant);
  margin: 28px 0 0;
  max-width: 52ch;
  text-wrap: pretty;
}

/* Email capture — big, primary CTA in hero */
.signup {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 520px;
}
.signup-form {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 8px;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--w-outline-variant);
  border-radius: var(--w-radius-full);
  box-shadow: var(--w-shadow-ambient);
}
.signup-form:focus-within {
  box-shadow: var(--w-shadow-primary);
  border-color: rgba(108,92,231,0.35);
}
.signup-form input[type="email"] {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 8px 0 16px;
  font-family: var(--w-font-body);
  font-size: 16px;
  color: var(--w-on-surface);
}
.signup-form input[type="email"]::placeholder {
  color: var(--w-on-surface-variant);
  opacity: 0.7;
}
.btn-primary {
  border: 0;
  border-radius: var(--w-radius-full);
  background: var(--w-primary);
  color: var(--w-on-primary);
  padding: 14px 22px;
  font-family: var(--w-font-heading);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 200ms var(--w-ease-standard),
              background 200ms var(--w-ease-standard),
              box-shadow 200ms var(--w-ease-standard);
  box-shadow: var(--w-shadow-primary);
}
.btn-primary:hover { background: var(--w-primary-dim); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-primary svg { width: 16px; height: 16px; }

.signup-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--w-font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--w-on-surface-variant);
  padding-left: 20px;
}
.signup-foot svg { width: 12px; height: 12px; opacity: 0.7; }
.signup-foot.error { color: var(--w-status-failed); }
.signup-foot.error svg { display: none; }
.signup.done .signup-form {
  background: rgba(0, 184, 148, 0.08);
  border-color: rgba(0, 184, 148, 0.30);
}

/* Right column: live product portal */
.hero-portal {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
@media (max-width: 979px) {
  .hero-portal { margin-top: 8px; }
}

/* The "ask anything..." mock input — floats above the cover */
.ask-mock {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 420px;
  padding: 18px 22px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--w-outline-variant);
  border-radius: var(--w-radius-5);
  box-shadow: var(--w-shadow-elevated);
  display: flex;
  align-items: center;
  gap: 14px;
}
.ask-mock .ask-icon {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--w-primary-soft);
  display: grid; place-items: center;
  color: var(--w-primary);
  flex-shrink: 0;
}
.ask-mock .ask-icon svg { width: 18px; height: 18px; }
.ask-mock .ask-text {
  flex: 1;
  min-width: 0;
  font-family: var(--w-font-heading);
  font-weight: 500;
  font-size: 16px;
  color: var(--w-on-surface);
  white-space: nowrap;
  overflow: hidden;
}
.ask-mock .ask-text .caret {
  display: inline-block;
  width: 2px; height: 1.05em;
  background: var(--w-primary);
  margin-left: 2px;
  vertical-align: -2px;
  animation: blink 1.05s steps(2, start) infinite;
}
@keyframes blink {
  0%, 50%   { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}
.ask-mock .ask-go {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--w-primary);
  color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(108,92,231,0.35);
}
.ask-mock .ask-go svg { width: 14px; height: 14px; }

/* Now-playing portal — the cover art moment */
.portal {
  position: relative;
  padding: 24px;
  background: rgba(255,255,255,0.70);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--w-outline-variant);
  border-radius: var(--w-radius-6);
  box-shadow: 0 24px 64px rgba(108,92,231,0.18), 0 4px 16px rgba(15,23,41,0.05);
  width: 100%;
  max-width: 460px;
}
.portal-cover {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--w-radius-5);
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(15, 23, 41, 0.25),
              0 0 0 1px rgba(255,255,255,0.4) inset;
}
.portal-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.02);
}
.portal-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,41,0.35), rgba(15,23,41,0) 40%);
}
.portal-meta {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #fff;
}
.portal-meta .now {
  font-family: var(--w-font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.85);
  display: inline-flex; align-items: center; gap: 8px;
}
.portal-meta .now .pulse {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--w-secondary);
  box-shadow: 0 0 0 0 rgba(0,184,148,0.6);
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,184,148,0.55); }
  100% { box-shadow: 0 0 0 10px rgba(0,184,148,0); }
}
.portal-meta .title {
  font-family: var(--w-font-heading);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 4px 0 0;
}
.portal-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}
.portal-play {
  width: 52px; height: 52px;
  border-radius: 999px;
  background: var(--w-primary);
  color: #fff;
  border: 0;
  display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(108,92,231,0.35);
  flex-shrink: 0;
}
.portal-play svg { width: 18px; height: 18px; }
.waveform {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 3px;
  height: 36px;
}
.waveform .bar {
  flex: 1;
  background: var(--w-primary);
  border-radius: 99px;
  opacity: 0.85;
  transform-origin: center;
  animation: wave 1.2s ease-in-out infinite;
}
.waveform .bar.dim { opacity: 0.25; background: var(--w-on-surface-variant); }
@keyframes wave {
  0%, 100% { transform: scaleY(0.22); }
  50%      { transform: scaleY(1); }
}
.portal-time {
  font-family: var(--w-font-mono);
  font-size: 11px;
  color: var(--w-on-surface-variant);
  letter-spacing: 0.5px;
}

/* ── iPhone hero frame ─────────────────────────────────────────────────── */
.iphone {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 9 / 19.5;
  background: #0a0e16;
  border-radius: 52px;
  padding: 12px;
  box-shadow:
    /* outer bezel highlight */
    inset 0 0 0 2px rgba(255,255,255,0.06),
    inset 0 0 0 4px rgba(0,0,0,0.6),
    /* drop shadow lifts the device off the page */
    0 30px 60px rgba(15, 23, 41, 0.22),
    0 60px 120px rgba(108, 92, 231, 0.18),
    0 0 0 1px rgba(15, 23, 41, 0.5);
}
.iphone::before {
  /* subtle side-button on right edge */
  content: "";
  position: absolute;
  right: -2px; top: 28%;
  width: 3px; height: 64px;
  background: linear-gradient(90deg, #2a2f3a, #0a0e16);
  border-radius: 2px;
}
.iphone::after {
  /* volume buttons on left edge */
  content: "";
  position: absolute;
  left: -2px; top: 22%;
  width: 3px; height: 120px;
  background:
    linear-gradient(90deg, #0a0e16, #2a2f3a) 0 0 / 100% 36px no-repeat,
    linear-gradient(90deg, #0a0e16, #2a2f3a) 0 50px / 100% 36px no-repeat,
    transparent;
  border-radius: 2px;
}
/* Silver / titanium variant — lighter, thinner rail instead of the heavy black bezel */
.iphone.silver {
  background: linear-gradient(
    135deg,
    #fdfdfe 0%,
    #d3d5da 18%,
    #aeb1b8 38%,
    #c8cad0 52%,
    #a1a4ab 68%,
    #d9dbe0 84%,
    #f3f4f6 100%
  );
  /* slightly thinner bezel than the black frame (was 12px) */
  padding: 9px;
  box-shadow:
    /* bright polished outer edge */
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.85),
    /* soft inner channel where the rail meets the screen */
    inset 0 0 0 3.5px rgba(120, 124, 132, 0.32),
    /* drop shadows lift the device off the page */
    0 30px 60px rgba(15, 23, 41, 0.18),
    0 60px 120px rgba(108, 92, 231, 0.14),
    0 0 0 1px rgba(160, 163, 170, 0.55);
}
.iphone.silver::before {
  /* side-button on right edge, silver-toned */
  background: linear-gradient(90deg, #c4c6cc, #9a9da4);
}
.iphone.silver::after {
  /* volume buttons on left edge, silver-toned */
  background:
    linear-gradient(90deg, #9a9da4, #c4c6cc) 0 0 / 100% 36px no-repeat,
    linear-gradient(90deg, #9a9da4, #c4c6cc) 0 50px / 100% 36px no-repeat,
    transparent;
}

.iphone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--w-surface);
  border-radius: 42px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.iphone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.iphone-island {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 32px;
  background: #000;
  border-radius: 999px;
  z-index: 10;
}
.iphone-status {
  position: relative;
  z-index: 5;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 28px 0 28px;
  font-family: var(--w-font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--w-on-surface);
  letter-spacing: -0.01em;
}
.iphone-status .right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--w-on-surface);
}
.iphone-status .right svg { width: 16px; height: 11px; }

/* The player view itself */
.player {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 4px 0 0;
  overflow: hidden;
}
.player::before {
  content: "";
  position: absolute;
  inset: -10% 0 50% 0;
  background: radial-gradient(ellipse 100% 60% at 50% 0%,
    rgba(108,92,231,0.14), transparent 70%);
  pointer-events: none;
}

.player-head {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  gap: 8px;
  padding: 4px 20px 14px;
}
.player-head .ic {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  color: var(--w-on-surface);
}
.player-head .ic svg { width: 22px; height: 22px; }
.player-head .label {
  text-align: center;
  font-family: var(--w-font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--w-on-surface-variant);
}

.player-body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 24px 0;
  overflow: hidden;
}
.player-cover {
  width: 78%;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 16px 40px rgba(108, 92, 231, 0.22),
    0 0 0 1px rgba(255,255,255,0.4) inset;
}
.player-cover img { width: 100%; height: 100%; object-fit: cover; }

.player-title {
  font-family: var(--w-font-heading);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.18;
  letter-spacing: -0.45px;
  color: var(--w-on-surface);
  text-align: center;
  margin: 20px 4px 0;
  text-wrap: balance;
}
.player-meta {
  font-family: var(--w-font-mono);
  font-size: 11px;
  letter-spacing: 1.2px;
  color: var(--w-on-surface-variant);
  margin-top: 8px;
  display: inline-flex; align-items: center; gap: 8px;
}
.player-meta .pulse {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--w-secondary);
  box-shadow: 0 0 0 0 rgba(0,184,148,0.55);
  animation: pulse 1.6s ease-out infinite;
}

.player-progress {
  width: 100%;
  margin-top: 18px;
}
.player-progress .bar {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: var(--w-surface-container-high);
  overflow: visible;
}
.player-progress .fill {
  height: 100%;
  width: 28%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--w-primary), #8e82ec);
  position: relative;
}
.player-progress .fill::after {
  content: "";
  position: absolute;
  right: -5px; top: 50%;
  transform: translateY(-50%);
  width: 12px; height: 12px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(108,92,231,0.5),
              0 0 0 1px rgba(108,92,231,0.15);
}
.player-progress .times {
  display: flex; justify-content: space-between;
  margin-top: 8px;
  font-family: var(--w-font-mono);
  font-size: 11px;
  color: var(--w-on-surface-variant);
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 18px;
}
.player-controls .ic-btn {
  width: 44px; height: 44px;
  border-radius: 999px;
  display: grid; place-items: center;
  color: var(--w-on-surface);
  background: transparent;
  border: 0;
}
.player-controls .ic-btn svg { width: 22px; height: 22px; }
.player-controls .play-btn {
  width: 60px; height: 60px;
  border-radius: 999px;
  background: var(--w-primary);
  color: #fff;
  border: 0;
  display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(108, 92, 231, 0.35);
}
.player-controls .play-btn svg { width: 24px; height: 24px; }

.player-transcript {
  margin-top: 22px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 20px;
}
.player-transcript .lab {
  font-family: var(--w-font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--w-on-surface-variant);
}
.player-transcript .line {
  display: flex; gap: 10px; align-items: flex-start;
}
.player-transcript .line .who {
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--w-host-text);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--w-font-heading);
  font-weight: 700;
  font-size: 10px;
  flex-shrink: 0;
  margin-top: 1px;
}
.player-transcript .line.guest .who { background: var(--w-guest-text); }
.player-transcript .line .text {
  flex: 1;
  font-family: var(--w-font-body);
  font-size: 12px;
  line-height: 1.45;
  color: var(--w-on-surface);
}
.player-transcript .line .text .name {
  display: block;
  font-family: var(--w-font-heading);
  font-weight: 600;
  font-size: 11px;
  color: var(--w-host-text);
  margin-bottom: 1px;
}
.player-transcript .line.guest .text .name { color: var(--w-guest-text); }

/* center the iphone in its column */
.hero-portal { width: 100%; }
.iphone-stage {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
}
.iphone-stage::after {
  /* subtle ground glow */
  content: "";
  position: absolute;
  left: 50%; bottom: -40px;
  transform: translateX(-50%);
  width: 90%; height: 60px;
  background: radial-gradient(ellipse at center,
    rgba(108,92,231,0.25), transparent 70%);
  filter: blur(20px);
  z-index: -1;
}
@media (max-width: 979px) {
  .iphone { max-width: 320px; }
}

/* Hero footer mini stats — three little proofs of speed */
.hero-foot {
  position: relative;
  z-index: 2;
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 600px) {
  .hero-foot { grid-template-columns: 1fr; gap: 12px; margin-top: 56px; }
}
.stat-card {
  position: relative;
  padding: 26px 26px 22px;
  border-radius: var(--w-radius-5);
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--w-outline-variant);
  box-shadow: var(--w-shadow-ambient);
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  transition: transform 300ms var(--w-ease-standard), box-shadow 300ms var(--w-ease-standard);
}
.stat-card::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent, var(--w-primary-soft)) 0%, transparent 65%);
  opacity: 0.55;
  pointer-events: none;
  filter: blur(20px);
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--w-shadow-elevated);
}
.stat-card .stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.stat-card .stat-icon {
  width: 36px; height: 36px;
  border-radius: 12px;
  display: grid; place-items: center;
  color: var(--stat-fg, var(--w-primary));
  background: var(--stat-bg, var(--w-primary-soft));
  flex-shrink: 0;
}
.stat-card .stat-icon svg { width: 18px; height: 18px; }
.stat-card .stat-tag {
  font-family: var(--w-font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--stat-fg, var(--w-primary));
  opacity: 0.85;
}
.stat-card .stat-num {
  font-family: var(--w-font-heading);
  font-weight: 500;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--w-on-surface);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat-card .stat-num .unit {
  font-family: var(--w-font-mono);
  font-size: 13px;
  letter-spacing: 1.2px;
  color: var(--w-on-surface-variant);
  font-weight: 400;
  letter-spacing: 1px;
  align-self: center;
  margin-left: 4px;
  margin-bottom: 2px;
}
.stat-card .stat-lab {
  font-family: var(--w-font-body);
  font-size: 14px;
  line-height: 1.4;
  color: var(--w-on-surface-variant);
  max-width: 28ch;
}

/* ── How it works ───────────────────────────────────────────────────────── */
.how {
  position: relative;
}
.how-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 760px) {
  .how-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}
.how-step {
  position: relative;
  padding: 32px 28px 36px;
  border-radius: var(--w-radius-6);
  background: var(--w-surface-container-lowest);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 320px;
  overflow: hidden;
}
.how-step .num {
  font-family: var(--w-font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--w-on-surface-variant);
}
.how-step h3 {
  font-family: var(--w-font-heading);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.018em;
  color: var(--w-on-surface);
  margin: 0;
}
.how-step p {
  font-family: var(--w-font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--w-on-surface-variant);
  margin: 0;
  max-width: 36ch;
}
.how-visual {
  margin-top: auto;
  height: 120px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Step 1 — Ask: morphing prompt chip */
.how-step.ask .how-visual {
  justify-content: flex-start;
}
.how-ask-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--w-radius-full);
  background: #fff;
  border: 1px solid var(--w-outline-variant);
  box-shadow: var(--w-shadow-ambient);
  font-family: var(--w-font-heading);
  font-weight: 500;
  font-size: 14px;
  color: var(--w-on-surface);
  max-width: 100%;
}
.how-ask-line .dot-icon {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--w-primary);
  box-shadow: 0 0 0 4px rgba(108,92,231,0.18);
  flex-shrink: 0;
}
.how-ask-line .typed { white-space: nowrap; overflow: hidden; }
.how-ask-line .typed .caret {
  display: inline-block;
  width: 2px; height: 1em;
  background: var(--w-primary);
  margin-left: 2px;
  vertical-align: -1px;
  animation: blink 1.05s steps(2, start) infinite;
}

/* Step 2 — Personalize: three option pills */
.how-options {
  display: flex; flex-wrap: wrap; gap: 8px;
  width: 100%;
}
.opt-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--w-radius-full);
  background: var(--w-surface);
  border: 1px solid var(--w-outline-variant);
  font-family: var(--w-font-heading);
  font-size: 13px;
  font-weight: 500;
  color: var(--w-on-surface-variant);
}
.opt-pill svg { width: 14px; height: 14px; }
.opt-pill.on {
  background: var(--w-primary-soft);
  border-color: rgba(108,92,231,0.35);
  color: var(--w-primary);
}
.opt-pill .label-mono {
  font-family: var(--w-font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  opacity: 0.7;
}

/* Step 3 — Listen: cover + waveform mini */
.how-listen {
  display: flex; align-items: center; gap: 14px; width: 100%;
}
.how-listen .cover-mini {
  width: 64px; height: 64px; border-radius: 12px;
  overflow: hidden; flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(15,23,41,0.18);
}
.how-listen .cover-mini img { width: 100%; height: 100%; object-fit: cover; }
.how-listen .waveform-mini {
  flex: 1;
  height: 36px;
  display: flex; align-items: center; gap: 3px;
}
.how-listen .waveform-mini .bar {
  flex: 1; background: var(--w-primary); border-radius: 99px;
  animation: wave 1.4s ease-in-out infinite;
}
.how-listen .play-mini {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--w-primary);
  color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.how-listen .play-mini svg { width: 15px; height: 15px; }

/* ── Example questions marquee ─────────────────────────────────────────── */
.questions {
  padding: 96px 0;
  overflow: hidden;
}
.questions-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.questions-head .section-title { max-width: 30ch; }
.questions-head .section-sub { margin-left: auto; margin-right: auto; }
.marquee-stack {
  position: relative;
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
/* Edge fades as overlays. A solid-to-transparent wash over the page surface
   reproduces the old -webkit-mask fade on this flat background. */
.marquee-stack::before,
.marquee-stack::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 7%;
  z-index: 2;
  pointer-events: none;
}
.marquee-stack::before {
  left: 0;
  background: linear-gradient(90deg, var(--w-surface), transparent);
}
.marquee-stack::after {
  right: 0;
  background: linear-gradient(270deg, var(--w-surface), transparent);
}
/* Each row is a native horizontal scroller driven by JS (scrollLeft) rather
   than a CSS transform animation. iOS WebKit reliably paints scrolled content,
   but would intermittently drop the paint of a giant (~1870px) continuously
   transformed layer — the row would freeze and then vanish. */
.marquee {
  display: flex;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: auto;
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* legacy Edge */
  touch-action: pan-x;          /* vertical swipes still scroll the page */
  overscroll-behavior-x: contain;
}
.marquee::-webkit-scrollbar { width: 0; height: 0; display: none; }
.marquee-track {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
  padding-right: 14px;
}
/* Reusable circular play button (promoted from the how-listen widget) */
.play-mini {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--w-primary);
  color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.play-mini svg { width: 15px; height: 15px; }

/* Playable episode mini-players */
.ep-card {
  display: flex; align-items: center; gap: 12px;
  width: 360px; flex-shrink: 0;
  padding: 10px 12px;
  border-radius: var(--w-radius-4);
  background: #fff;
  border: 1px solid var(--w-outline-variant);
  box-shadow: 0 4px 14px rgba(15,23,41,0.05);
  cursor: pointer;
}
.ep-cover {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: var(--w-radius-3);
  overflow: hidden; background: var(--w-primary-soft);
}
.ep-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ep-body { flex: 1; min-width: 0; }
.ep-title {
  margin: 0;
  font-family: var(--w-font-heading); font-weight: 600;
  font-size: 14px; line-height: 1.2; color: var(--w-on-surface);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ep-meta {
  margin: 2px 0 0;
  font-family: var(--w-font-mono); font-size: 11px; letter-spacing: 0.3px;
  color: var(--w-on-surface-variant);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ep-toggle { border: 0; padding: 0; cursor: pointer; appearance: none; -webkit-appearance: none; }
.ep-toggle:focus-visible { outline: 2px solid var(--w-primary); outline-offset: 2px; }
.ep-card.is-playing .ep-toggle,
.ep-card.is-loading .ep-toggle { background: var(--w-primary-dim); }

/* App-style star spinner — shown while an episode buffers before playback */
.star-spin { animation: spin 1.2s linear infinite; transform-origin: center; }

/* ── Hands-free (who it's for) cards ────────────────────────────────────── */
.hf-cards {
  margin-top: 56px;
  display: flex;
  gap: 1px;
  border: 1px solid var(--w-outline-variant);
  background: var(--w-outline-variant);   /* shows through 1px gaps as dividers */
  border-radius: var(--w-radius-5);
  overflow: hidden;
}
.hf-card {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; gap: 12px;
  padding: 22px 20px 24px;
  background: var(--w-surface);
}
.hf-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--w-primary-soft);
  color: var(--w-primary);
}
.hf-icon svg { width: 18px; height: 18px; }
.hf-name {
  font-family: var(--w-font-heading); font-weight: 600;
  font-size: 17px; letter-spacing: -0.01em; color: var(--w-on-surface);
}
.hf-body {
  margin: 0;
  font-family: var(--w-font-body); font-size: 13.5px; line-height: 1.45;
  color: var(--w-on-surface-variant);
}
@media (max-width: 900px) {
  .hf-cards { flex-wrap: wrap; }
  .hf-card { flex: 1 1 45%; }
}
@media (max-width: 560px) {
  .hf-card { flex: 1 1 100%; }
}

/* ── App showcase (alternating rows) ────────────────────────────────────── */
.showcase .shell { display: flex; flex-direction: column; gap: 88px; }
.showcase-row { display: flex; align-items: center; gap: 56px; }
.showcase-row.reverse { flex-direction: row-reverse; }
.showcase-copy { flex: 1; min-width: 0; }
.showcase-num {
  font-family: var(--w-font-mono); font-size: 13px; letter-spacing: 1.5px;
  color: var(--w-primary); display: block; margin-bottom: 14px;
}
.showcase-title {
  font-family: var(--w-font-heading); font-weight: 500;
  font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -0.025em;
  color: var(--w-on-surface); margin: 0;
}
.showcase-body {
  margin: 18px 0 0;
  font-family: var(--w-font-body); font-size: clamp(15px, 1.3vw, 18px); line-height: 1.55;
  color: var(--w-on-surface-variant); max-width: 42ch;
}
.showcase-phone { flex: 1; display: flex; justify-content: center; }
.showcase-phone .iphone { max-width: 290px; }
@media (max-width: 860px) {
  .showcase .shell { gap: 56px; }
  .showcase-row, .showcase-row.reverse { flex-direction: column; gap: 28px; text-align: center; }
  .showcase-body { margin-left: auto; margin-right: auto; }
  .showcase-phone .iphone { max-width: 250px; }
}

/* ── Feature showcase grid (6 tiles) ───────────────────────────────────── */
.features {
  background: var(--w-surface-container-lowest);
}
.features-head {
  max-width: 760px;
}
.feature-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--w-outline-variant);
  border-radius: var(--w-radius-6);
  overflow: hidden;
  border: 1px solid var(--w-outline-variant);
}
@media (min-width: 720px)  { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-tile {
  background: var(--w-surface);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
}
.feature-tile .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--w-primary-soft);
  color: var(--w-primary);
  display: grid; place-items: center;
}
.feature-tile .icon svg { width: 22px; height: 22px; }
.feature-tile.alt .icon { background: var(--w-tertiary-soft); color: #c08300; }
.feature-tile.alt2 .icon { background: var(--w-secondary-soft); color: #007a63; }
.feature-tile h4 {
  font-family: var(--w-font-heading);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--w-on-surface);
  margin: 4px 0 0;
  text-wrap: balance;
}
.feature-tile p {
  font-family: var(--w-font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--w-on-surface-variant);
  margin: 0;
  max-width: 36ch;
}

/* ── Cover-art moment (portals) ────────────────────────────────────────── */
.covers {
  position: relative;
  overflow: hidden;
}
.covers-head { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 900px) {
  .covers-head { grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: end; }
}
.covers-stage {
  margin-top: 72px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  min-height: 420px;
}
@media (max-width: 720px) {
  .covers-stage {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(140px, auto);
    min-height: auto;
  }
}
.cover-tile {
  position: relative;
  border-radius: var(--w-radius-5);
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(15,23,41,0.20),
              0 0 0 1px rgba(255,255,255,0.4) inset;
  background: #0e1a35;
  transition: transform 400ms var(--w-ease-standard), box-shadow 400ms var(--w-ease-standard);
}
.cover-tile:hover { transform: translateY(-4px); box-shadow: 0 30px 60px rgba(15,23,41,0.28); }
.cover-tile .cover-title {
  position: absolute;
  inset: auto 14px 12px 14px;
  z-index: 2;
  color: #fff;
  font-family: var(--w-font-heading);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.45);
}
.cover-tile .cover-domain {
  position: absolute;
  top: 12px; left: 12px; z-index: 2;
  font-family: var(--w-font-mono);
  font-size: 9.5px;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.85);
  padding: 4px 8px;
  background: rgba(15,23,41,0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 999px;
}
.cover-tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,23,41,0.55), rgba(15,23,41,0) 50%);
}
.cover-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
}

/* Atmospheric placeholder covers — surrealist gradient washes */
.cover-art {
  position: absolute;
  inset: 0;
  background-color: #0a1228;
}
.cover-art.a1 {
  background:
    radial-gradient(circle at 30% 35%, rgba(157,143,255,0.65), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(253,203,110,0.45), transparent 60%),
    radial-gradient(circle at 50% 50%, rgba(108,92,231,0.5) 0%, rgba(10,18,40,1) 70%),
    #060e20;
}
.cover-art.a2 {
  background:
    radial-gradient(ellipse at 20% 70%, rgba(0,184,148,0.55), transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(157,143,255,0.45), transparent 55%),
    linear-gradient(135deg, #0a1228 0%, #131f3d 100%);
}
.cover-art.a3 {
  background:
    radial-gradient(circle at 50% 30%, rgba(253,203,110,0.7), transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(225,122,0,0.55), transparent 55%),
    linear-gradient(180deg, #1a0d2a 0%, #060e20 100%);
}
.cover-art.a4 {
  background:
    radial-gradient(circle at 25% 25%, rgba(108,92,231,0.55), transparent 50%),
    radial-gradient(circle at 75% 80%, rgba(0,184,148,0.4), transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(15,23,41,0) 0%, rgba(6,14,32,0.9) 80%),
    #0a1228;
}
.cover-art.a5 {
  background:
    radial-gradient(circle at 60% 40%, rgba(157,143,255,0.6), transparent 55%),
    radial-gradient(circle at 30% 70%, rgba(253,203,110,0.4), transparent 50%),
    linear-gradient(160deg, #060e20 0%, #1a2847 100%);
}

/* Cover layout positions (desktop) */
@media (min-width: 721px) {
  .cover-tile.t-1 { grid-column: 1 / span 2; grid-row: 1 / span 2; min-height: 420px; }
  .cover-tile.t-2 { grid-column: 3 / span 2; grid-row: 1 / span 1; min-height: 200px; }
  .cover-tile.t-3 { grid-column: 3 / span 2; grid-row: 2 / span 1; min-height: 200px; }
  .cover-tile.t-4 { grid-column: 5 / span 2; grid-row: 1 / span 1; min-height: 200px; }
  .cover-tile.t-5 { grid-column: 5 / span 2; grid-row: 2 / span 1; min-height: 200px; }
}

/* Generating cover state — shimmer */
.cover-art.generating::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(110deg,
    transparent 35%, rgba(255,255,255,0.10) 50%, transparent 65%);
  animation: shimmer 2.6s linear infinite;
}
@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.cover-tile.gen .cover-title {
  font-family: var(--w-font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.9);
}
.cover-tile.gen .cover-title .ring {
  width: 8px; height: 8px;
  border-radius: 999px;
  border: 1.5px solid var(--w-tertiary);
  border-right-color: transparent;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Moments ───────────────────────────────────────────────────────────── */
.moments {
  background: var(--w-surface-container-lowest);
  position: relative;
  overflow: hidden;
}
.moments-head { max-width: 760px; }
.moments-list {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--w-outline-variant);
  border-radius: var(--w-radius-5);
  overflow: hidden;
  border: 1px solid var(--w-outline-variant);
}
@media (max-width: 900px) {
  .moments-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .moments-list { grid-template-columns: 1fr; }
}
.moment-row {
  background: var(--w-surface);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px 24px;
  transition: background 200ms var(--w-ease-standard);
}
.moment-row:hover {
  background: var(--w-surface-container-lowest);
}
.moment-row .icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--w-primary-soft);
  color: var(--w-primary);
  display: grid; place-items: center;
}
.moment-row .icon svg { width: 18px; height: 18px; }
.moment-row .num { display: none; }
.moment-row .body {
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0;
}
.moment-row .name {
  font-family: var(--w-font-heading);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--w-on-surface);
}
.moment-row .when {
  font-family: var(--w-font-body);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--w-on-surface-variant);
}
.moment-row:hover .icon {
  background: var(--w-primary);
  color: #fff;
}

/* ── Big CTA block ─────────────────────────────────────────────────────── */
.cta {
  position: relative;
  padding: 120px 0 140px;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 1200px; height: 1200px;
  max-width: 140vw; max-height: 140vw;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(108,92,231,0.18) 0%,
    rgba(108,92,231,0.05) 35%,
    rgba(108,92,231,0) 60%);
  z-index: 0;
  pointer-events: none;
}
.cta-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.cta-eyebrow {
  font-family: var(--w-font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--w-primary);
  margin: 0 0 28px;
  display: inline-flex; align-items: center; gap: 10px;
}
.cta-eyebrow::before, .cta-eyebrow::after {
  content: "";
  width: 24px; height: 1px;
  background: currentColor; opacity: 0.5;
}
.cta-title {
  font-family: var(--w-font-heading);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0;
}
/* A trailing period lives inside the emphasized word so it hugs the text,
   but stays neutral instead of inheriting the gradient — consistent across
   every heading (hero, section titles, CTA). */
.period {
  font-style: normal;
  color: var(--w-on-surface);
  -webkit-text-fill-color: var(--w-on-surface);
}
.cta-title em {
  font-style: italic;
  background: linear-gradient(110deg, var(--w-primary), #8e82ec 50%, var(--w-tertiary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0 0.12em 0.06em 0.04em;
  margin-left: -0.04em;
  /* Flow as inline (not inline-block) so the whole title wraps as one text
     run — otherwise the emphasized phrase is an atomic box that can't sit
     beside a short trailing word ("to"), orphaning it on its own line.
     box-decoration-break: clone re-applies the right padding to every wrapped
     line so the gradient paint area covers each line's italic overhang —
     without it, a line ending mid-phrase (e.g. "…mind") clips the slanted
     final glyph, which falls outside the fragment's background-clip box. */
  display: inline;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.cta-sub {
  margin: 24px 0 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--w-on-surface-variant);
  max-width: 52ch;
}
.cta .signup { margin: 40px auto 0; align-items: center; width: 100%; }
.cta .signup-form { width: 100%; max-width: 520px; }
.cta .signup-foot { justify-content: center; padding-left: 0; }

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq {
  background: var(--w-surface);
  border-top: 1px solid var(--w-outline-variant);
}
.faq-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (max-width: 759px) {
  /* Single-column on mobile — give the heading breathing room before the first FAQ */
  .faq-head { margin-bottom: 32px; }
}
@media (min-width: 760px) {
  .faq-grid { grid-template-columns: 320px 1fr; gap: 64px; }
  .faq-head { position: sticky; top: 24px; }
}
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-top: 1px solid var(--w-outline-variant);
  padding: 16px 0;
  cursor: pointer;
}
.faq-item:last-child { border-bottom: 1px solid var(--w-outline-variant); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.faq-q .q {
  font-family: var(--w-font-heading);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--w-on-surface);
  margin: 0;
}
.faq-q .toggle {
  width: 26px; height: 26px;
  border-radius: 999px;
  background: var(--w-surface-container-lowest);
  color: var(--w-on-surface-variant);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: transform 200ms var(--w-ease-standard), background 200ms;
}
.faq-q .toggle svg { width: 12px; height: 12px; }
.faq-item[open] .toggle { transform: rotate(45deg); background: var(--w-primary-soft); color: var(--w-primary); }
.faq-a {
  font-family: var(--w-font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--w-on-surface-variant);
  margin: 8px 0 0;
  max-width: 60ch;
}
.faq-item summary { list-style: none; outline: none; }
.faq-item summary::-webkit-details-marker { display: none; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer {
  background: var(--w-surface);
  border-top: 1px solid var(--w-outline-variant);
  padding: 22px 0;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 32px;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--w-on-surface);
}
.footer-logo img { height: 24px; width: auto; display: block; }
.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-links a {
  font-family: var(--w-font-mono);
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--w-on-surface-variant);
  transition: color 200ms;
}
.footer-links a:hover { color: var(--w-primary); }
.footer-links a + a::before {
  content: "·";
  display: inline-block;
  margin-right: 14px;
  color: var(--w-on-surface-variant);
  opacity: 0.5;
  pointer-events: none;
}
.footer-copy {
  font-family: var(--w-font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--w-on-surface-variant);
}
/* Space Mono renders © as a tiny superscript — use a normal glyph at text size */
.footer-copy .cmark { font-family: ui-sans-serif, system-ui, -apple-system, sans-serif; }
@media (max-width: 600px) {
  .footer-row { justify-content: flex-start; }
}

/* ── Utility ───────────────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--w-outline-variant);
  border: 0;
  margin: 0;
}


/* ── Scroll-pin carousel ───────────────────────────────────────────────── */
.scroll-carousel {
  position: relative;
  /* Three viewport-heights of scroll: ~one per panel.
     The inner stage is sticky, so the page "locks" while
     the user scrolls through panels 1 → 2 → 3, then releases. */
  height: 300vh;
  background: var(--w-surface-container-lowest);
}
.sc-track {
  position: relative;
  height: 100%;
}
.sc-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.sc-shell {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 980px) {
  .sc-shell {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 80px;
  }
}

/* Left column — title stack */
.sc-titles {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.sc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--w-font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--w-on-surface-variant);
}
.sc-eyebrow .sc-count { color: var(--w-on-surface); }
.sc-eyebrow .sc-count .sc-i { color: var(--w-primary); }
.sc-eyebrow .sc-label::before {
  content: "";
  display: inline-block;
  width: 16px; height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 10px;
  opacity: 0.4;
}

.sc-title-stack {
  position: relative;
  /* Lock height so cards can stack absolutely without jump */
  min-height: 280px;
}
.sc-title-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 420ms var(--w-ease-standard),
    transform 520ms var(--w-ease-standard);
  pointer-events: none;
}
.sc-stage[data-active="0"] .sc-title-card[data-i="0"],
.sc-stage[data-active="1"] .sc-title-card[data-i="1"],
.sc-stage[data-active="2"] .sc-title-card[data-i="2"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.sc-title {
  font-family: var(--w-font-heading);
  font-weight: 700;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--w-on-surface);
  text-wrap: balance;
  margin: 0;
}
.sc-title em {
  font-style: normal;
  background: linear-gradient(96deg, var(--w-primary), var(--w-primary-gradient-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sc-sub {
  font-family: var(--w-font-body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--w-on-surface-variant);
  max-width: 520px;
  text-wrap: pretty;
  margin: 0;
}

/* Dots */
.sc-dots {
  display: inline-flex;
  gap: 8px;
  margin-top: 8px;
}
.sc-dot {
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: var(--w-outline-variant);
  transition: background 320ms var(--w-ease-standard), width 320ms var(--w-ease-standard);
}
.sc-stage[data-active="0"] .sc-dot[data-i="0"],
.sc-stage[data-active="1"] .sc-dot[data-i="1"],
.sc-stage[data-active="2"] .sc-dot[data-i="2"] {
  background: var(--w-primary);
  width: 44px;
}

/* Right column — screen stack */
.sc-screens {
  position: relative;
  display: flex;
  justify-content: center;
}
.sc-screen-stack {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  aspect-ratio: 9 / 19.5;
}
.sc-screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  transition:
    opacity 480ms var(--w-ease-standard),
    transform 620ms var(--w-ease-standard);
  pointer-events: none;
}
.sc-stage[data-active="0"] .sc-screen[data-i="0"],
.sc-stage[data-active="1"] .sc-screen[data-i="1"],
.sc-stage[data-active="2"] .sc-screen[data-i="2"] {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Real app screenshots, framed in a device shell */
.sc-phone {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  background: #0a0e16;
  border-radius: 48px;
  padding: 11px;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.06),
    inset 0 0 0 4px rgba(0, 0, 0, 0.6),
    0 30px 60px rgba(15, 23, 41, 0.22),
    0 60px 120px rgba(108, 92, 231, 0.18),
    0 0 0 1px rgba(15, 23, 41, 0.5);
}
.sc-phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 37px;
  overflow: hidden;
  background: var(--w-surface);
}
.sc-phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* On narrow screens, drop the pin behavior — let it scroll like a normal section */
@media (max-width: 979px) {
  .scroll-carousel { height: auto; }
  .sc-track { height: auto; }
  .sc-stage {
    position: relative;
    height: auto;
    min-height: 0;
    padding: 80px 0;
  }
  .sc-title-stack { min-height: 0; }
  .sc-title-card {
    position: relative;
    inset: auto;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    margin-bottom: 56px;
  }
  .sc-screen-stack { aspect-ratio: auto; max-width: 270px; }
  .sc-screen {
    position: relative;
    inset: auto;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    margin-bottom: 48px;
  }
  .sc-screen:last-child { margin-bottom: 0; }
  .sc-dots { display: none; }
}
