/* STATULA — Draft 5: Impeccable Refinement
   Craft floor compliant: verified contrast, neutral elevation, natural letterforms.
   Fonts are loaded via <link rel="stylesheet"> + preconnect in the HTML heads
   (faster than a render-blocking @import, especially on mobile). */

:root {
  --bg: #07080f;
  --bg2: #0c0d18;
  --cream: #faf8ff;
  --text: #f0edf7;
  --text-secondary: #c9c7dc;
  --muted: #9e9db6;
  --muted2: #8e8cae;
  --iris: #7c6fcd;
  --lagoon: #14c9b5;
  --line: rgba(214, 211, 255, 0.12);
  --glass: rgba(242, 237, 228, 0.035);
  --gb: rgba(242, 237, 228, 0.1);
  --gb2: rgba(242, 237, 228, 0.18);
}

[data-theme="light"] {
  --bg: #faf8ff;
  --bg2: #f3f0fa;
  --cream: #181a2f;
  --text: #181a2f;
  --text-secondary: #50566f;
  --muted: #5e6480;
  --muted2: #7b8199;
  --iris: #6e5ecc;
  --lagoon: #0b9b8b;
  --line: rgba(20, 19, 36, 0.08);
  --glass: rgba(255, 255, 255, 0.78);
  --gb: rgba(20, 19, 36, 0.1);
  --gb2: rgba(20, 19, 36, 0.16);
}

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

html {
  scroll-behavior: smooth;
  /* The parallax layers and lazy media must not fight the browser's scroll
     anchoring — a shifting anchor visually breaks the depth planes. */
  overflow-anchor: none;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
  min-height: 100vh;
  line-height: 1.65;
  -webkit-tap-highlight-color: transparent;
}

/* Kill the legacy tap/hold delays and tap flash on touch devices */
a, button, input, label {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Browser surface customization */
::selection {
  background: rgba(20, 201, 181, 0.3);
  color: #ffffff;
}

::-webkit-scrollbar {
  width: 3px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--iris);
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--lagoon);
}

:focus-visible {
  outline: 2px solid var(--lagoon);
  outline-offset: 3px;
}

/* Custom Glowing Magnetic Cursor from teaser_web.html */
#cur {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lagoon);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  transition: transform 0.15s ease;
}

#cur-ring {
  position: fixed;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(20, 201, 181, 0.35);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.25s;
}

@media (pointer: coarse) {
  body {
    cursor: auto;
  }
  #cur,
  #cur-ring {
    display: none;
  }
}

a, button, input {
  font: inherit;
  color: inherit;
}

a {
  text-decoration: none;
}

.shell {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

/* Typography elements */
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--lagoon);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(214, 211, 255, 0.22);
  background: rgba(12, 13, 24, 0.88);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: #f0edf7;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.status-pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lagoon);
  display: inline-block;
  flex-shrink: 0;
}

/* Page Navigation (Hidden in Hero, Reveals on Scroll with HTML5 Background Animation) */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translate(-50%, -100px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1160px, calc(100% - 40px));
  padding: 10px 24px;
  border-radius: 100px;
  background: rgba(7, 8, 15, 0.78);
  border: 1px solid rgba(214, 211, 255, 0.16);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.nav.nav-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}

.nav-shell {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.brand-link:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.brand-logo {
  height: 24px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: brightness(1.22) contrast(1.05);
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: color 0.2s;
  padding: 4px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--lagoon);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Dark/Light mode switch in the nav bar */
.theme-toggle {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--gb2);
  border-radius: 999px;
  background: rgba(242, 237, 228, 0.04);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.02rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease;
}

.theme-toggle:hover {
  border-color: var(--iris);
  background: rgba(124, 111, 205, 0.12);
  transform: translateY(-1px);
}

/* Solar duotone icons (stroke + 0.5-opacity fill layers) inherit color */
.ic {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.14em;
  fill: currentColor;
}

.theme-toggle .ic {
  width: 19px;
  height: 19px;
  display: block;
}

.theme-status-pill .ic {
  width: 12px;
  height: 12px;
  vertical-align: -1.5px;
}

.ic-arrow {
  width: 0.85em;
  height: 0.85em;
  vertical-align: -0.06em;
  opacity: 0.85;
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--lagoon);
  outline-offset: 3px;
}

.nav-scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.nav-scroll-bar {
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--iris), var(--lagoon), var(--cream));
  transition: transform 0.08s linear;
  will-change: transform;
}

/* Button system */
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.45rem;
  min-height: 44px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s, opacity 0.2s;
  text-decoration: none;
}

.button:not(.button-secondary):not(.button-waitlist) {
  background: linear-gradient(110deg, var(--iris), var(--lagoon));
  color: #07080f;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.button:not(.button-secondary):not(.button-waitlist):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  opacity: 0.98;
}

.button-secondary {
  background: rgba(242, 237, 228, 0.04);
  border: 1px solid var(--gb2);
  color: var(--text);
  box-shadow: none;
}

.button-secondary:hover {
  background: rgba(242, 237, 228, 0.08);
  border-color: rgba(242, 237, 228, 0.28);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.button-waitlist {
  background: rgba(124, 111, 205, 0.12);
  border: 1px solid rgba(124, 111, 205, 0.38);
  color: var(--text);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.button-waitlist:hover {
  background: rgba(124, 111, 205, 0.25);
  border-color: var(--iris);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  transform: translateY(-2px);
}

/* HERO SECTION */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 130px 24px 80px;
  overflow: hidden;
  background: #07080f;
  isolation: isolate;
}

.wave-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  display: block;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 48%, transparent 0 24%, rgba(7, 8, 15, 0.28) 55%, rgba(7, 8, 15, 0.88) 100%);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
  z-index: 2;
}

.submerge-title {
  display: flex;
  justify-content: center;
  align-items: baseline;
  user-select: none;
  pointer-events: none;
  margin: 1.6rem 0 2rem;
  font-size: clamp(48px, 17vw, 230px);
}

.sl {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(48px, 17vw, 230px);
  line-height: 0.88;
  letter-spacing: -0.025em;
  color: rgba(255, 255, 255, 0.65);
  display: inline-block;
  will-change: transform, opacity, filter;
}

/* Hero scroll indicator from teaser_web.html */
.sc2 {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: fu 1s 1.2s both;
  pointer-events: none;
}

.sc2-t {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}

.sc2-l {
  width: 1px;
  height: 36px;
  background: linear-gradient(var(--iris), transparent);
  animation: sl2 2s ease infinite;
}

@keyframes sl2 {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

@keyframes fu {
  from {
    opacity: 0;
    transform: translate(-50%, 16px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.hero-mission {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 52ch;
  margin: 0 auto 2.4rem;
  font-weight: 300;
  letter-spacing: 0;
}

.hero-mission strong {
  font-weight: 600;
  color: #ffffff;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}

.hero-incentive-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(124, 111, 205, 0.1);
  border: 1px solid rgba(124, 111, 205, 0.3);
  font-size: 0.82rem;
  color: #dfdcf7;
  max-width: 52ch;
  margin: 0 auto;
  line-height: 1.5;
  text-align: left;
}

.hero-incentive-pill strong {
  color: #ffffff;
}

.incentive-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--lagoon);
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(20, 201, 181, 0.12);
  border: 1px solid rgba(20, 201, 181, 0.3);
  flex-shrink: 0;
}

/* SECTION BASE */
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px;
}

.section-head h2 {
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 14px 0 18px;
  color: var(--cream);
}

.section-head h2 em {
  font-style: normal;
  color: var(--lagoon);
}

.section-head p {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 44ch;
  margin: 0 auto;
}

/* RESEARCH SHOWCASE */
.market-showcase {
  padding: 110px 24px;
  background: var(--bg2);
  border-top: 1px solid var(--line);
}

.survey-item {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  margin-bottom: 104px;
}

.survey-item:last-child {
  margin-bottom: 0;
}

/* nth-of-type (not nth-child) so the alternating layout survives interleaved
   narrative beats between the survey items */
.survey-item:nth-of-type(even) {
  grid-template-columns: 0.95fr 1.05fr;
}

.survey-item:nth-of-type(even) .survey-copy {
  order: 2;
}

.survey-item:nth-of-type(even) .phone-card-wrap {
  order: 1;
}

.survey-copy {
  max-width: 600px;
}

/* One heading scale across the entire narrative — no size drift between
   items, beats, or the vision panel. */
.survey-copy h3,
.survey-copy h4,
.narrative-beat h3,
.narrative-beat h4,
.whatif-beat h3 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.survey-copy h4 {
  margin-bottom: 16px;
}

.survey-copy .narrative-lines p {
  margin-bottom: 7px;
}

.research-topic-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--lagoon);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.survey-copy h3 {
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: var(--cream);
}

.survey-copy p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 18px;
  letter-spacing: 0;
}

/* ════════════════════════════════════════════════
   NARRATIVE STORY BEATS
   Short-line storytelling blocks between the phone items.
   ════════════════════════════════════════════════ */
.narrative-intro {
  max-width: 640px;
  margin: 0 auto;
}

.narrative-intro p {
  color: var(--text-secondary);
  font-size: 1.06rem;
  line-height: 1.7;
  margin-bottom: 10px;
}

.narrative-stat {
  max-width: 640px;
  margin: 22px auto 0;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.65;
}

.narrative-h3 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--cream);
  text-align: center;
  margin: 110px 0 40px;
}

.narrative-beat {
  max-width: 760px;
  margin: 0 auto 100px;
  text-align: center;
}

.narrative-beat h3,
.narrative-beat h4 {
  margin-bottom: 20px;
}

.narrative-beat p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 10px;
}

/* ════════════════════════════════════════════════
   FRICTION PAIN VISUALS — editorial scene frames
   (the generated lab scenes; no product UI in the problem section)
   ════════════════════════════════════════════════ */
/* ════════════════════════════════════════════════
   CARD SURFACES — pain points and showcase items are tangible objects:
   a raised surface, a hairline edge, an offset shadow, and a lift when
   the visitor gives them attention. The whole card is the parallax plane.
   ════════════════════════════════════════════════ */
.pain-item,
.showcase-item {
  background: rgba(242, 237, 228, 0.03);
  border: 1px solid var(--gb);
  border-radius: 28px;
  padding: clamp(22px, 3.2vw, 40px);
  margin-bottom: 56px;
  gap: clamp(1.5rem, 3vw, 3rem);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
  will-change: transform;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.pain-item:hover,
.showcase-item:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 111, 205, 0.32);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.36);
}

[data-theme="light"] .pain-item,
[data-theme="light"] .showcase-item {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(20, 19, 36, 0.08);
  box-shadow: 0 20px 44px rgba(20, 19, 36, 0.08);
}

[data-theme="light"] .pain-item:hover,
[data-theme="light"] .showcase-item:hover {
  border-color: rgba(110, 94, 204, 0.30);
  box-shadow: 0 30px 60px rgba(20, 19, 36, 0.12);
}

.pain-visual {
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 3;
}

/* Media on a card surface: the card is the frame, so the image carries no
   competing border or shadow */
.pain-visual .pimg {
  border-radius: 16px;
}

/* Hardening: grid children may shrink below content size without blowing
   the card layout open */
.pain-item .survey-copy,
.pain-item .pain-visual,
.showcase-item .survey-copy,
.showcase-item .phone-card-wrap,
.showcase-item .trio-phones {
  min-width: 0;
  min-height: 0;
}

/* One authored reveal per scene: a soft curtain lift on first view.
   Gated behind .js so a script failure never hides content. */
.js .pain-visual .pimg {
  opacity: 0;
  clip-path: inset(12% 6% 12% 6% round 16px);
  transform: scale(1.03);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    clip-path 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.js .pain-visual.revealed .pimg {
  opacity: 1;
  clip-path: inset(0 0 0 0 round 16px);
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .js .pain-visual .pimg {
    opacity: 1;
    clip-path: none;
    transform: none;
    transition: none;
  }
}

/* Survey benchmark block — the consistent anchor at the foot of each
   pain point, with the figures set in measurement mono */
.pain-stat {
  margin-top: 4px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(124, 111, 205, 0.07);
  border: 1px solid rgba(124, 111, 205, 0.22);
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.65;
}

.pain-stat strong {
  color: var(--text);
}

.pain-stat .stat-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--lagoon);
  line-height: 1;
  letter-spacing: -0.02em;
  vertical-align: -0.08em;
  margin-right: 2px;
}

[data-theme="light"] .pain-stat {
  background: rgba(110, 94, 204, 0.06);
  border-color: rgba(110, 94, 204, 0.20);
}

/* ════════════════════════════════════════════════
   STATULA SHOWCASE — artistic phone compositions
   Post-reveal items: gentle scroll-driven rotations on the mockups.
   ════════════════════════════════════════════════ */
.showcase-phone {
  will-change: transform;
}

/* Three-phone fan for "One experiment. One connected workflow." —
   the side phones lean outward behind the upright center screen.
   Dimensions are locked (flex: none + fixed --phone-w) so the mockups
   keep their exact proportions at every viewport. */
.trio-phones {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 14px;
}

.trio-phones .phone-card-wrap {
  --phone-w: 236px;
  flex: none;
  width: var(--phone-w);
  max-width: none;
  margin: 0 -34px;
  position: relative;
}

.trio-phones .trio-l,
.trio-phones .trio-r {
  --phone-w: 224px;
  margin-top: 34px;
  z-index: 1;
}

.trio-phones .trio-c {
  --phone-w: 258px;
  z-index: 3;
}

.trio-phones .pimg {
  filter: brightness(0.96);
}

.trio-phones .trio-l .pimg,
.trio-phones .trio-r .pimg {
  filter: brightness(0.88) saturate(0.92);
}

.narrative-close {
  max-width: 640px;
  margin: 110px auto 0;
  padding: 56px 32px;
  border-radius: 28px;
  background: var(--glass);
  border: 1px solid var(--gb);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: center;
}

.narrative-close h3 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--cream);
  margin-bottom: 10px;
}

.narrative-tagline {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

.narrative-close .button {
  min-width: 240px;
}

.narrative-note {
  margin: 18px 0 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* ════════════════════════════════════════════════
   VOLUMETRIC 2.5D DEPTH SYSTEM
   Layered parallax planes: phone cards lead slightly, their ambient glows
   trail behind, text beats drift gently, and soft background orbs lag
   furthest back — a tactile, multi-planar environment. All motion is
   GPU translate3d driven by site.js; disabled under prefers-reduced-motion.
   ════════════════════════════════════════════════ */
.market-showcase,
.theme-showcase {
  position: relative;
  overflow: hidden;
}

.market-showcase .shell,
.theme-showcase .shell {
  position: relative;
  z-index: 1;
}

.depth-layer {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.depth-layer.dl-iris {
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(124, 111, 205, 0.16) 0%, rgba(124, 111, 205, 0.05) 42%, transparent 68%);
}

.depth-layer.dl-lagoon {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(20, 201, 181, 0.13) 0%, rgba(20, 201, 181, 0.04) 42%, transparent 68%);
}

/* Deliberate placement: orbs are spread through each tall section so their
   slow plane is clearly visible against the faster cards. */
.market-showcase .dl-iris {
  top: 5%;
  left: -240px;
}

.market-showcase .dl-lagoon {
  top: 46%;
  right: -280px;
}

.theme-showcase .dl-lagoon {
  top: 2%;
  right: -260px;
}

.theme-showcase .dl-iris {
  bottom: -160px;
  left: -220px;
}

[data-theme="light"] .depth-layer.dl-iris {
  background: radial-gradient(circle, rgba(110, 94, 204, 0.12) 0%, rgba(110, 94, 204, 0.04) 42%, transparent 68%);
}

[data-theme="light"] .depth-layer.dl-lagoon {
  background: radial-gradient(circle, rgba(11, 155, 139, 0.10) 0%, rgba(11, 155, 139, 0.03) 42%, transparent 68%);
}

.phone-card-wrap,
.phone-ambient,
.narrative-beat,
.narrative-h3 {
  will-change: transform;
}

/* ── The "What if" vision panel — the pivot of the narrative.
   Words brighten line by line as the block scrolls through the viewport
   (scroll highlight), with brand-keyed strong phrases. ── */
.whatif-beat {
  width: 100%;
  max-width: none;
  margin: 0 auto 110px;
  padding: clamp(30px, 3.6vw, 54px) clamp(24px, 3.6vw, 56px);
  border-radius: 32px;
  text-align: center;
  background:
    radial-gradient(ellipse at 18% 0%, rgba(124, 111, 205, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 100%, rgba(20, 201, 181, 0.16) 0%, transparent 55%),
    var(--glass);
  border: 1px solid rgba(124, 111, 205, 0.38);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.42);
}

/* The pivot question carries the same voice as the reel headline */
.whatif-beat h3 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 34px;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .whatif-beat h3 {
    background: linear-gradient(110deg, var(--iris) 15%, var(--lagoon) 85%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.whatif-beat p {
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 12px;
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
}

.whatif-beat p:last-child {
  margin-bottom: 0;
}

.whatif-beat strong {
  color: var(--text);
  font-weight: 600;
}

/* Scroll highlight: un-lit words stay readable (≥ ~4:1 once lit), the
   progression is a cue, not a legibility gate */
.whatif-beat .hl-w {
  opacity: 0.45;
  transition: opacity 0.4s ease;
}

.whatif-beat .hl-w.lit {
  opacity: 1;
}

[data-theme="light"] .whatif-beat {
  background:
    radial-gradient(ellipse at 18% 0%, rgba(110, 94, 204, 0.13) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 100%, rgba(11, 155, 139, 0.11) 0%, transparent 55%),
    rgba(255, 255, 255, 0.92);
  border-color: rgba(110, 94, 204, 0.28);
  box-shadow: 0 40px 90px rgba(20, 19, 36, 0.12);
}

[data-theme="light"] .whatif-beat strong {
  color: var(--cream);
}



/* Phone Mockup Frame */
/* iPhone 18 Pro Max Frame - Concentric Precision Bezel
   Every dimension derives from --phone-w so a mockup keeps its exact
   proportions at any size; contexts set --phone-w and the frame locks to it. */
.phone-card-wrap {
  --phone-w: 372px;
  position: relative;
  max-width: var(--phone-w);
  width: 100%;
  margin: 0 auto;
}

.phone-ambient {
  position: absolute;
  inset: 0;
  border-radius: calc(var(--phone-w) * 0.172);
  background: rgba(20, 201, 181, 0.02);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 0;
}

.phone-frame {
  position: relative;
  z-index: 1;
  background: #000000;
  border: 2px solid rgba(214, 211, 255, 0.28);
  border-radius: calc(var(--phone-w) * 0.172);
  padding: calc(var(--phone-w) * 0.0215);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.22);
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
}

.phone-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.65);
}

.phone-island {
  position: absolute;
  top: calc(var(--phone-w) * 0.0591);
  left: 50%;
  transform: translateX(-50%);
  width: calc(var(--phone-w) * 0.2823);
  height: calc(var(--phone-w) * 0.0753);
  background: #000000;
  border-radius: calc(var(--phone-w) * 0.0376);
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.phone-island::after {
  content: '';
  position: absolute;
  right: calc(var(--phone-w) * 0.0376);
  top: 50%;
  transform: translateY(-50%);
  width: calc(var(--phone-w) * 0.0242);
  height: calc(var(--phone-w) * 0.0242);
  border-radius: 50%;
  background: #0d1726;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.phone-screen {
  border-radius: calc(var(--phone-w) * 0.1452);
  overflow: hidden;
  position: relative;
  background: #000000;
  aspect-ratio: 1206 / 2622;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Shielded media: images render as CSS backgrounds loaded from data-bg
   (never a src attribute in the DOM); the overlay swallows drag,
   long-press, and right-click on the picture. */
.pimg {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.pimg-shield {
  position: absolute;
  inset: 0;
  z-index: 5;
  -webkit-user-drag: none;
  user-select: none;
}

.reel-shield {
  z-index: 6;
  cursor: default;
}

/* Autoplay refused (mobile Low Power Mode / Auto-Play off): surface a Solar
   play affordance instead of a silent black card. Hidden via [hidden] until
   site.js removes it — the button only ever shows on refusal. */
.reel-card .reel-tap[hidden] {
  display: none;
}

.reel-card .reel-tap:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  z-index: 7;
  border: 0;
  background: rgba(7, 8, 15, 0.32);
  cursor: pointer;
  -webkit-user-drag: none;
  user-select: none;
}

.reel-tap-ring {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 8, 15, 0.6);
  border: 1px solid rgba(20, 201, 181, 0.55);
  color: var(--lagoon);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.reel-tap .ic {
  width: 36px;
  height: 36px;
}



/* DUAL THEME SHOWCASE */
.theme-showcase {
  padding: 100px 24px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.theme-pair-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 820px;
  margin: 0 auto;
}

.theme-card {
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 28px;
  padding: 24px 24px 28px;
  background: var(--glass);
  border: 1px solid var(--gb);
  text-align: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
  position: relative;
  outline: none;
}

.theme-card:hover {
  transform: translateY(-4px);
  border-color: var(--iris);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.theme-card:focus-visible {
  outline: 2px solid var(--lagoon);
  outline-offset: 4px;
}

.theme-card.dark-card {
  background: rgba(13, 14, 26, 0.85);
  border-color: rgba(124, 111, 205, 0.25);
}

.theme-card.active-theme {
  border-color: var(--lagoon);
  box-shadow: 0 0 0 1px var(--lagoon), 0 6px 16px rgba(0, 0, 0, 0.35);
}

.theme-caption {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--lagoon);
  margin-top: 18px;
  display: block;
}

.theme-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-top: 6px;
  line-height: 1.5;
}

.theme-pill-wrap {
  margin-top: 18px;
}

.theme-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(214, 211, 255, 0.08);
  border: 1px solid var(--gb);
  color: var(--muted);
  transition: all 0.25s ease;
}

.theme-card:hover .theme-status-pill {
  color: var(--text);
  border-color: var(--iris);
  background: rgba(124, 111, 205, 0.14);
}

.theme-card.active-theme .theme-status-pill {
  background: rgba(20, 201, 181, 0.12);
  border-color: var(--lagoon);
  color: var(--lagoon);
}

/* INTERACTIVE LAB FRICTION SCANNER */
.friction-scanner-section {
  padding: 100px 24px;
  background: var(--bg2);
  border-top: 1px solid var(--line);
}

.scanner-card {
  max-width: 860px;
  margin: 0 auto;
  background: rgba(13, 14, 26, 0.88);
  border: 1px solid rgba(214, 211, 255, 0.16);
  border-radius: 28px;
  padding: 32px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.scanner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.friction-toggle {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(242, 237, 228, 0.03);
  border: 1px solid rgba(214, 211, 255, 0.12);
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text);
  font: inherit;
  width: 100%;
}

.friction-toggle:hover {
  background: rgba(242, 237, 228, 0.06);
  border-color: rgba(214, 211, 255, 0.24);
  transform: translateY(-2px);
}

.friction-toggle[aria-pressed="true"] {
  background: rgba(20, 201, 181, 0.08);
  border-color: var(--lagoon);
}

.toggle-box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid rgba(214, 211, 255, 0.3);
  background: rgba(7, 8, 15, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: background-color 0.2s, border-color 0.2s;
}

.friction-toggle[aria-pressed="true"] .toggle-box {
  background: var(--lagoon);
  border-color: var(--lagoon);
}

.friction-toggle[aria-pressed="true"] .toggle-box::after {
  content: '✓';
  color: #07080f;
  font-size: 0.78rem;
  font-weight: 800;
}

.toggle-text strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 4px;
}

.toggle-text span {
  display: block;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.scanner-result {
  border-top: 1px solid rgba(214, 211, 255, 0.1);
  padding-top: 22px;
}

.result-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.result-pip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lagoon);
  flex-shrink: 0;
}

.result-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--lagoon);
  letter-spacing: 0.02em;
}

.result-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 60ch;
}

/* ════════════════════════════════════════════════
   THIS IS STATULA — Apple-style reel card
   ════════════════════════════════════════════════ */
.reel-section {
  padding: 80px 24px 110px;
  background: var(--bg);
}

.reel-heading {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--cream);
  text-align: center;
}

.reel-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  text-align: center;
  margin: 14px auto 44px;
}

.reel-card {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  border-radius: 36px;
  overflow: hidden;
  background: #000000;
  border: 1px solid var(--gb);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
  aspect-ratio: 16 / 9;
}

/* Two stacked <video> elements double-buffer the playlist: the next clip is
   already loaded and decoded on the hidden element when the current one ends,
   so playback continues with no loading gap between clips. */
.reel-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.reel-card video.reel-active {
  opacity: 1;
}

/* ════════════════════════════════════════════════
   JOIN & SURVEY — DUAL CTA CARDS
   ════════════════════════════════════════════════ */
.cta-section {
  padding: 100px 24px;
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 860px;
  height: 320px;
  background: radial-gradient(ellipse at center, rgba(124, 111, 205, 0.14) 0%, rgba(20, 201, 181, 0.06) 50%, transparent 75%);
  pointer-events: none;
  filter: blur(40px);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
  position: relative;
  z-index: 2;
}

.cta-card {
  padding: 40px 36px;
  border-radius: 24px;
  background: var(--glass);
  border: 1px solid var(--gb);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cta-card .button {
  width: 100%;
}

/* Full-width waitlist band: everything centered; the injected MailerLite form
   keeps a comfortable 520px column. */
#waitlist .ml-embedded {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.waitlist-header {
  margin-bottom: 28px;
}

.waitlist-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--cream);
  line-height: 1.1;
  margin: 12px 0 14px;
}

.waitlist-sub {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 48ch;
  margin: 0 auto;
}

/* MailerLite Embed Integration — neutralize default ML wrapper within STATULA card */
#mlb2-46368046.ml-form-embedContainer .ml-form-embedWrapper {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

#mlb2-46368046.ml-form-embedContainer .ml-form-embedBody {
  padding: 0 !important;
}

#mlb2-46368046.ml-form-embedContainer form {
  margin: 0;
  width: 100%;
}

/* reCAPTCHA centering */
.ml-form-recaptcha {
  display: flex;
  justify-content: center;
  margin: 14px 0 16px;
}

.ml-form-recaptcha.ml-error iframe {
  border: 1px solid #ff5c5c !important;
  border-radius: 4px;
}

/* sr-only utility (for loading spinner label) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* MailerLite Loader spinner */
.ml-form-embedSubmitLoad {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: ml-spin 0.8s linear infinite;
}

@keyframes ml-spin {
  to { transform: rotate(360deg); }
}

/* MailerLite embed harmonization — match STATULA typography, center everything.
   With the official ml-embed, MailerLite injects its own heading block — hidden;
   the card carries its own copy above the form. #waitlist prefix (extra id)
   beats MailerLite's injected boilerplate styles. */
#waitlist #mlb2-46368046 .ml-form-embedHeader {
  display: none !important;
}

#waitlist #mlb2-46368046 .ml-form-embedContent {
  display: none !important;
}

.waitlist-heading-block h3 {
  color: var(--cream);
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-align: center;
  margin: 0 0 12px;
}

.waitlist-heading-block .waitlist-sub {
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.65;
  text-align: center;
  max-width: 46ch;
  margin: 0 auto 22px;
}

#waitlist #mlb2-46368046.ml-form-embedContainer .ml-form-embedWrapper .ml-form-successBody .ml-form-successContent {
  text-align: center !important;
}

#waitlist #mlb2-46368046.ml-form-embedContainer .ml-form-embedWrapper .ml-form-successBody .ml-form-successContent h4 {
  color: var(--cream) !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  line-height: 1.12 !important;
  text-align: center !important;
  word-break: normal !important;
  margin: 0 0 12px !important;
}

#waitlist #mlb2-46368046.ml-form-embedContainer .ml-form-embedWrapper .ml-form-successBody .ml-form-successContent p {
  color: var(--text-secondary) !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 0.98rem !important;
  font-weight: 300;
  line-height: 1.65 !important;
  text-align: center !important;
  max-width: 46ch;
  margin: 0 auto 18px !important;
}

#waitlist #mlb2-46368046.ml-form-embedContainer .ml-form-embedWrapper .ml-block-form .ml-field-group {
  text-align: center !important;
}

#waitlist #mlb2-46368046.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow {
  float: none !important;
}

#waitlist #mlb2-46368046.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow input {
  background: rgba(242, 237, 228, 0.05) !important;
  color: var(--text) !important;
  border: 1px solid var(--gb2) !important;
  border-radius: 999px !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 0.95rem !important;
  line-height: 1.4 !important;
  padding: 13px 22px !important;
  height: auto !important;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#waitlist #mlb2-46368046.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow input::placeholder {
  color: var(--muted) !important;
  opacity: 1;
}

#waitlist #mlb2-46368046.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow input:focus {
  border-color: var(--lagoon) !important;
  box-shadow: 0 0 0 3px rgba(20, 201, 181, 0.16);
}

#waitlist #mlb2-46368046.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedPermissions {
  float: none !important;
  width: 100% !important;
  text-align: center !important;
}

#waitlist #mlb2-46368046.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedPermissions .ml-form-embedPermissionsContent {
  text-align: center !important;
}

#waitlist #mlb2-46368046.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedPermissions .ml-form-embedPermissionsContent p,
#waitlist #mlb2-46368046.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedPermissions .ml-form-embedPermissionsContent.privacy-policy p a {
  color: var(--muted) !important;
  font-family: 'Outfit', sans-serif !important;
  text-align: center !important;
}

#waitlist #mlb2-46368046.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedPermissions .ml-form-embedPermissionsContent.privacy-policy p a {
  color: var(--lagoon) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Fallback centering for the ml-embedded wrapper injected by MailerLite */
#waitlist .ml-embedded {
  width: 100%;
}

#waitlist .ml-embedded .ml-form-embedContainer .ml-form-embedWrapper {
  margin: 0 auto !important;
}

#waitlist #mlb2-46368046.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-recaptcha {
  float: none !important;
  display: flex !important;
  justify-content: center;
  margin: 14px auto 16px !important;
}

#waitlist #mlb2-46368046.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit {
  float: none !important;
  width: 100% !important;
  margin: 0 0 4px !important;
}

#waitlist #mlb2-46368046.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button.primary {
  background: linear-gradient(110deg, var(--iris), var(--lagoon)) !important;
  border: none !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
  color: #07080f !important;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  line-height: 1.4 !important;
  height: auto !important;
  min-height: 44px;
  padding: 0.75rem 1.45rem !important;
  width: 100% !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s, opacity 0.2s;
}

#waitlist #mlb2-46368046.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button.primary:hover {
  background: linear-gradient(110deg, var(--iris), var(--lagoon)) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
}

/* Light theme: same gradient uses lighter brand tones, so the label flips to white
   to match every other CTA button. */
[data-theme="light"] #waitlist #mlb2-46368046.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button.primary {
  color: #ffffff !important;
}

[data-theme="light"] #waitlist #mlb2-46368046.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button.primary:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18) !important;
}

/* MailerLite scales the reCAPTCHA to 0.78 below 480px with origin 0 0, which
   pulls the shrunken widget off-center — re-center it. */
@media (max-width: 480px) {
  #waitlist #mlb2-46368046 .g-recaptcha {
    transform: scale(0.78) !important;
    -webkit-transform: scale(0.78) !important;
    transform-origin: center center !important;
    -webkit-transform-origin: center center !important;
  }
}

/* ════════════════════════════════════════════════
   FORMULATION FRICTION BENCHMARK & STUDY MODULE
   ════════════════════════════════════════════════ */
.research-study-section {
  padding: 100px 24px;
  background: var(--bg2);
  border-top: 1px solid var(--line);
  position: relative;
}

.study-shell {
  max-width: 960px;
  margin: 0 auto;
}

.study-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 36px;
}

.study-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--cream);
  line-height: 1.12;
  margin-bottom: 14px;
}

.study-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Compact survey card (right column of the dual CTA grid) */
.survey-band h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.9rem, 3.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--cream);
  line-height: 1.12;
  margin-bottom: 16px;
}

.survey-band-lead {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 46ch;
  margin: 0 auto 28px;
}

.survey-band-note {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 48ch;
  margin: 18px auto 14px;
}

.survey-band .study-meta {
  font-size: 0.8rem;
}

/* 4 Bottleneck Tiles */
.friction-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.friction-tile {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--gb);
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text);
  font: inherit;
  width: 100%;
}

.friction-tile:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(214, 211, 255, 0.24);
  transform: translateY(-2px);
}

.friction-tile[aria-pressed="true"] {
  background: rgba(20, 201, 181, 0.07);
  border-color: var(--lagoon);
}

.tile-check {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1px solid rgba(214, 211, 255, 0.28);
  background: rgba(7, 8, 15, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.friction-tile[aria-pressed="true"] .tile-check {
  background: var(--lagoon);
  border-color: var(--lagoon);
}

.friction-tile[aria-pressed="true"] .tile-check::after {
  content: '✓';
  color: #07080f;
  font-size: 0.82rem;
  font-weight: 800;
}

.tile-body h3 {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.tile-body p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* Action & Deliverables Panel */
.study-action-panel {
  border-radius: 24px;
  background: rgba(7, 8, 15, 0.85);
  border: 1px solid rgba(214, 211, 255, 0.16);
  padding: 32px 36px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.study-diagnosis {
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(214, 211, 255, 0.1);
  margin-bottom: 24px;
}

.diagnosis-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.diagnosis-pip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lagoon);
  flex-shrink: 0;
}

.diagnosis-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--lagoon);
  letter-spacing: 0.02em;
}

.diagnosis-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* Handoff Grid */
.study-handoff {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  align-items: center;
}

.study-deliverables {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.deliverable-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.deliverable-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--iris);
  background: rgba(124, 111, 205, 0.12);
  border: 1px solid rgba(124, 111, 205, 0.28);
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
  margin-top: 2px;
}

.deliverable-item strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 2px;
}

.deliverable-item span {
  display: block;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.study-cta-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.study-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--muted);
}

/* FOOTER */
.footer {
  padding: 36px 0;
  border-top: 1px solid rgba(214, 211, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.footer a {
  color: var(--muted);
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--lagoon);
}

/* RESPONSIVE DESIGN */
@media (max-width: 700px) {
  /* Keep the pill nav to brand + survey CTA; links overflow the pill on phones */
  .nav-links {
    display: none;
  }
  .nav {
    padding: 10px 14px;
  }
  .nav-actions .button {
    padding: 0.55rem 0.95rem;
    font-size: 0.72rem;
    white-space: nowrap;
  }
}

@media (max-width: 860px) {
  .nav {
    padding: 10px 18px;
  }
  .nav-survey-link {
    display: none;
  }
  .survey-item, .survey-item:nth-of-type(even) {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .survey-item:nth-of-type(even) .survey-copy {
    order: 1;
  }
  .survey-item:nth-of-type(even) .phone-card-wrap {
    order: 2;
  }
  .theme-pair-grid {
    grid-template-columns: 1fr;
  }
  .whatif-beat {
    grid-template-columns: 1fr;
  }
  .cta-grid {
    grid-template-columns: 1fr;
  }
  .friction-grid,
  .scanner-grid {
    grid-template-columns: 1fr;
  }
  .study-handoff {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .study-action-panel {
    padding: 24px 20px;
  }
  .study-btn {
    width: 100%;
  }
  .footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 580px) {
  .waitlist-input-group {
    flex-direction: column;
  }
  .waitlist-submit-btn,
  .waitlist-loading-btn {
    width: 100% !important;
  }
  .waitlist-card {
    padding: 32px 20px;
  }
}

/* ════════════════════════════════════════════════
   LEGAL & PRIVACY POLICY PAGE STYLES
   ════════════════════════════════════════════════ */

.legal-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.legal-main {
  padding: 120px 24px 80px;
  position: relative;
  z-index: 2;
}

.legal-shell {
  max-width: 860px;
  margin: 0 auto;
}

.legal-header {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--gb);
}

.legal-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.legal-breadcrumbs a {
  color: var(--lagoon);
  text-decoration: none;
  transition: opacity 0.2s;
}

.legal-breadcrumbs a:hover {
  text-decoration: underline;
}

.legal-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--cream);
  margin: 12px 0 16px;
}

.legal-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--muted);
}

.legal-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(20, 201, 181, 0.1);
  border: 1px solid rgba(20, 201, 181, 0.25);
  color: var(--lagoon);
  font-size: 0.75rem;
  font-weight: 600;
}

.legal-card {
  background: var(--glass);
  border: 1px solid var(--gb);
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.legal-card-highlight {
  border-color: rgba(124, 111, 205, 0.35);
  background: linear-gradient(160deg, rgba(124, 111, 205, 0.08), rgba(20, 201, 181, 0.04));
}

.legal-card h2,
.legal-card h3 {
  color: var(--cream);
  margin-bottom: 14px;
}

.legal-card h2 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.legal-card h3 {
  font-size: 1.05rem;
  margin-top: 20px;
}

.legal-toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.legal-toc-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(242, 237, 228, 0.02);
  border: 1px solid rgba(242, 237, 228, 0.06);
  color: var(--text-secondary);
  font-size: 0.86rem;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.legal-toc-link:hover {
  background: rgba(20, 201, 181, 0.08);
  border-color: rgba(20, 201, 181, 0.3);
  color: #ffffff;
  transform: translateX(3px);
}

.legal-toc-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--lagoon);
  flex-shrink: 0;
}

.legal-section {
  margin-bottom: 44px;
  scroll-margin-top: 100px;
}

.legal-section h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.015em;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-section h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--cream);
  margin: 24px 0 10px;
}

.legal-section p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.legal-section strong {
  color: #ffffff;
  font-weight: 600;
}

.legal-section em {
  font-style: italic;
  color: var(--cream);
}

.legal-section ul,
.legal-section ol {
  margin: 12px 0 20px 24px;
  color: var(--text-secondary);
}

.legal-section li {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 8px;
}

.legal-section a {
  color: var(--lagoon);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.legal-section a:hover {
  color: #ffffff;
}

.legal-callout {
  padding: 18px 22px;
  border-radius: 12px;
  background: rgba(124, 111, 205, 0.06);
  border: 1px solid rgba(124, 111, 205, 0.25);
  margin: 20px 0;
}

.legal-callout p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--gb);
  background: var(--glass);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.legal-table th,
.legal-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(242, 237, 228, 0.06);
  vertical-align: top;
}

.legal-table th {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(12, 13, 24, 0.85);
}

.legal-table tr:hover td {
  background: rgba(255, 255, 255, 0.015);
}

.legal-table td:first-child {
  font-weight: 600;
  color: var(--cream);
  min-width: 140px;
}

.legal-tag-yes {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(20, 201, 181, 0.15);
  color: var(--lagoon);
  border: 1px solid rgba(20, 201, 181, 0.3);
}

.legal-tag-no {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(158, 157, 182, 0.1);
  color: var(--muted);
  border: 1px solid rgba(158, 157, 182, 0.2);
}

.legal-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.legal-contact-item {
  padding: 18px;
  border-radius: 12px;
  background: rgba(242, 237, 228, 0.03);
  border: 1px solid var(--gb);
}

.legal-contact-item strong {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--lagoon);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.legal-attribution {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--gb);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

.legal-attribution a {
  color: var(--muted);
}

/* ─── Light Mode Refinements & Component Harmonization ───
   Note: the hero is intentionally identical in both themes (dark animated
   mesh), so no light-mode overrides for .hero / .hero-vignette / .submerge-title. */
[data-theme="light"] body {
  background: var(--bg);
  color: var(--text);
}

[data-theme="light"] .nav {
  background: rgba(250, 248, 255, 0.9);
  border-bottom: 1px solid rgba(20, 19, 36, 0.08);
}

[data-theme="light"] .brand-logo {
  filter: none;
}

[data-theme="light"] .nav-links a {
  color: var(--muted);
}

[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a.active {
  color: var(--lagoon);
}

[data-theme="light"] .button:not(.button-secondary):not(.button-waitlist) {
  background: linear-gradient(110deg, var(--iris), var(--lagoon));
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .button:not(.button-secondary):not(.button-waitlist):hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .button-secondary {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(20, 19, 36, 0.12);
  color: var(--text);
  box-shadow: 0 2px 6px rgba(20, 19, 36, 0.04);
}

[data-theme="light"] .button-secondary:hover {
  background: #ffffff;
  border-color: rgba(20, 19, 36, 0.22);
  box-shadow: 0 4px 14px rgba(20, 19, 36, 0.08);
}

/* .button-waitlist keeps its dark-hero styling in both themes (hero never switches). */

[data-theme="light"] .theme-toggle {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(20, 19, 36, 0.12);
  color: var(--text);
}

/* The custom cursor uses screen blending to glow over the dark hero; on the
   light surface that washes it out — switch to solid iris with a visible ring. */
[data-theme="light"] #cur {
  mix-blend-mode: normal;
  background: var(--iris);
}

[data-theme="light"] #cur-ring {
  border-color: rgba(110, 94, 204, 0.55);
}

[data-theme="light"] .theme-toggle:hover {
  background: #ffffff;
  border-color: rgba(110, 94, 204, 0.35);
}

[data-theme="light"] .narrative-close {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(110, 94, 204, 0.18);
  box-shadow: 0 20px 48px rgba(20, 19, 36, 0.06);
}

[data-theme="light"] .narrative-stat {
  color: var(--text);
}

/* Legal page: these were authored against the dark base; white text is
   unreadable on the light background. */
[data-theme="light"] .legal-section strong {
  color: var(--cream);
}

[data-theme="light"] .legal-section a:hover {
  color: var(--iris);
}

[data-theme="light"] .legal-toc-link:hover {
  color: var(--iris);
}

[data-theme="light"] .legal-card h2,
[data-theme="light"] .legal-card h3,
[data-theme="light"] .legal-section h2,
[data-theme="light"] .legal-section h3 {
  color: var(--cream);
}

[data-theme="light"] .market-showcase,
[data-theme="light"] .friction-scanner-section {
  background: var(--bg2);
}

[data-theme="light"] .phone-ambient {
  background: rgba(11, 155, 139, 0.04);
  box-shadow: 0 16px 36px rgba(20, 19, 36, 0.08);
}

[data-theme="light"] .theme-card {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(110, 94, 204, 0.16);
}

[data-theme="light"] .theme-card.dark-card {
  background: rgba(20, 22, 38, 0.94);
  border-color: rgba(110, 94, 204, 0.3);
}

[data-theme="light"] .theme-card.dark-card p {
  color: #c9c7dc;
}

[data-theme="light"] .theme-card:hover {
  box-shadow: 0 16px 36px rgba(20, 19, 36, 0.1);
}

[data-theme="light"] .theme-card.active-theme {
  border-color: var(--lagoon);
  box-shadow: 0 0 0 1px var(--lagoon), 0 12px 28px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .scanner-card,
[data-theme="light"] .waitlist-card,
[data-theme="light"] .survey-band {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(110, 94, 204, 0.18);
  box-shadow: 0 20px 48px rgba(20, 19, 36, 0.06);
}

[data-theme="light"] .friction-tile {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(110, 94, 204, 0.14);
}

[data-theme="light"] .friction-tile:hover {
  border-color: rgba(110, 94, 204, 0.3);
}

[data-theme="light"] .friction-tile[aria-pressed="true"] {
  background: rgba(11, 155, 139, 0.08);
  border-color: var(--lagoon);
}

[data-theme="light"] .tile-check {
  background: rgba(240, 237, 250, 0.9);
  border-color: rgba(110, 94, 204, 0.22);
}

[data-theme="light"] .friction-tile[aria-pressed="true"] .tile-check {
  background: var(--lagoon);
  border-color: var(--lagoon);
}

[data-theme="light"] .friction-tile[aria-pressed="true"] .tile-check::after {
  color: #ffffff;
}

[data-theme="light"] .study-action-panel,
[data-theme="light"] .survey-band {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(110, 94, 204, 0.16);
  box-shadow: 0 8px 20px rgba(20, 19, 36, 0.05);
}

[data-theme="light"] .study-diagnosis {
  border-bottom-color: rgba(110, 94, 204, 0.12);
}

[data-theme="light"] .deliverables-list li {
  border-bottom-color: rgba(110, 94, 204, 0.08);
}

[data-theme="light"] .deliverable-pip {
  background: var(--iris);
}

[data-theme="light"] .friction-tag-badge {
  background: rgba(11, 155, 139, 0.1);
  border-color: rgba(11, 155, 139, 0.25);
  color: var(--lagoon);
}

[data-theme="light"] .waitlist-input {
  background: #ffffff;
  border-color: rgba(110, 94, 204, 0.25);
  color: var(--text);
}

[data-theme="light"] .waitlist-input:focus {
  border-color: var(--iris);
  box-shadow: 0 0 0 3px rgba(110, 94, 204, 0.15);
}

[data-theme="light"] .waitlist-pill {
  background: rgba(110, 94, 204, 0.08);
  border-color: rgba(110, 94, 204, 0.18);
  color: var(--iris);
}

[data-theme="light"] .footer {
  background: var(--bg);
  border-top-color: var(--line);
}

[data-theme="light"] .footer-copy {
  color: var(--muted);
}

[data-theme="light"] .footer-nav a {
  color: var(--muted);
}

[data-theme="light"] .footer-nav a:hover {
  color: var(--lagoon);
}

[data-theme="light"] ::-webkit-scrollbar-track {
  background: var(--bg);
}

/* MOBILE-FIRST TIGHTENING — most traffic is phones; compress vertical rhythm
   and chrome so screens fold-sized content, not desktop spacing. */
@media (max-width: 640px) {
  .shell {
    width: calc(100% - 40px);
  }
  .market-showcase,
  .theme-showcase,
  .friction-scanner-section,
  .reel-section,
  .cta-section,
  .research-study-section {
    padding: 68px 20px;
  }
  .section-head {
    margin-bottom: 44px;
  }
  .section-head h2 {
    margin: 10px 0 14px;
  }
  .survey-item {
    margin-bottom: 64px;
    gap: 30px;
  }
  .pain-item,
  .showcase-item {
    margin-bottom: 40px;
    padding: 18px 16px;
  }
  .narrative-intro p,
  .narrative-beat p,
  .narrative-stat {
    font-size: 1rem;
  }
  .narrative-h3 {
    margin: 64px 0 22px;
  }
  .narrative-beat {
    margin-bottom: 64px;
  }
  .whatif-beat {
    padding: 24px 18px;
    margin-bottom: 72px;
  }
  .whatif-beat p {
    font-size: 1rem;
  }
  /* Single mockups shrink slightly on phones; the fan collapses into a
     stacked deck — side phones tuck behind the upright center screen so
     all three stay visible without shrinking below readable proportions. */
  .phone-card-wrap {
    --phone-w: 314px;
  }
  .trio-phones {
    padding-top: 8px;
  }
  .trio-phones .phone-card-wrap {
    --phone-w: 148px;
    margin: 0 -58px;
  }
  .trio-phones .trio-c {
    --phone-w: 178px;
    margin: 0;
  }
  .trio-phones .trio-l,
  .trio-phones .trio-r {
    --phone-w: 142px;
    margin-top: 26px;
  }
  .narrative-close {
    margin-top: 72px;
    padding: 40px 22px;
  }
  .reel-card {
    border-radius: 22px;
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.45);
  }
  .reel-sub {
    margin-bottom: 34px;
  }
  .hero-cta-group {
    gap: 12px;
  }
  .hero-cta-group .button {
    width: 100%;
  }
  .footer {
    font-size: 0.72rem;
    letter-spacing: 0.01em;
  }
  /* Nav: tighter so brand + theme toggle + survey CTA fit small phones */
  .nav {
    width: calc(100% - 32px);
    gap: 8px;
  }
  .nav-shell {
    gap: 10px;
  }
  .nav-actions {
    gap: 8px;
  }
  .brand-logo {
    height: 20px;
  }
  .nav-actions .button {
    padding: 0.55rem 0.8rem;
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  #cur, #cur-ring {
    display: none !important;
  }
  .phone-frame {
    transition: none !important;
  }
}
