/* ─────────────────────────────────────────────────────────────
   Levia — marketing site
   One continuous aurora sky (WebGL, #sky) runs behind everything;
   sections are transparent and the page scrolls through a day.
   Brand tokens are 1:1 from the Levia brand kit.
   ───────────────────────────────────────────────────────────── */

/* Self-hosted variable fonts (latin subset, covers German umlauts).
   Downloaded from Google Fonts; SOFT axis baked at 100 for Fraunces. */
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand */
  --accent: #6B5CE7;
  --accent-soft: rgba(107, 92, 231, 0.14);
  --m1: #E8836B; --m2: #E0A05C; --m3: #D9C25E; --m4: #8FC97F; --m5: #5EC2A6;

  /* Ink on light ground */
  --ink: #12101d;
  --ink-2: rgba(42, 38, 58, 0.78);
  --ink-3: rgba(24, 18, 48, 0.66);

  /* Glass */
  --glass: rgba(255, 255, 255, 0.30);
  --glass-strong: rgba(255, 255, 255, 0.44);
  --hairline: rgba(255, 255, 255, 0.5);
  --shadow: 0 24px 70px rgba(60, 40, 90, 0.16);

  /* Type */
  --f-serif: "Fraunces", "Lora", Georgia, serif;
  --f-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;

  --r-lg: 26px;
  --r-md: 18px;
  --wide: 1120px;
}

/* Night sections flip the ink and quiet the glass */
.night {
  --ink: #F3F0FB;
  --ink-2: rgba(233, 229, 246, 0.72);
  --ink-3: rgba(233, 229, 246, 0.62);
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.12);
  --hairline: rgba(255, 255, 255, 0.16);
  --shadow: 0 24px 70px rgba(0, 0, 10, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--f-sans);
  font-optical-sizing: auto;
  color: var(--ink);
  background: #C9BCE0; /* under the canvas while it boots */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(107, 92, 231, 0.28); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Skip link — visually hidden until keyboard focus */
.skip-link {
  position: fixed;
  top: -100px; left: 16px;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 640;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 99px;
  box-shadow: 0 12px 30px rgba(107, 92, 231, 0.45);
  transition: top 0.2s ease;
}
.skip-link:focus-visible { top: 16px; }

/* ── Sky & grain ─────────────────────────────────────────── */
#sky {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
/* CSS fallback when WebGL is unavailable / reduced motion */
.no-webgl #sky { display: none; }
.no-webgl body, body.no-webgl {
  background:
    radial-gradient(90rem 60rem at 80% -10%, rgba(169, 204, 248, 0.9), transparent 60%),
    radial-gradient(80rem 55rem at 10% 40%, rgba(204, 180, 218, 0.9), transparent 60%),
    radial-gradient(90rem 60rem at 70% 100%, rgba(246, 184, 172, 0.95), transparent 65%),
    linear-gradient(180deg, #A9CCF8 0%, #B8C2EB 18%, #C2BBE3 38%, #CCB4DA 55%, #D8B3CB 72%, #E5B3BD 88%, #F6B8AC 100%);
  background-attachment: fixed;
}

.grain {
  position: fixed; inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, .nav, .footer { position: relative; z-index: 2; }

/* ── Type scale ──────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--f-serif); font-variation-settings: "SOFT" 100, "opsz" 60; margin: 0; }
p { margin: 0; }

.eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  font-weight: 560;
  letter-spacing: -0.015em;
  line-height: 1.08;
  color: var(--ink);
  text-wrap: balance;
}

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

/* Word-by-word reveal */
[data-words] .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em);
  filter: blur(7px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.2, 1),
              transform 0.7s cubic-bezier(0.22, 0.61, 0.2, 1),
              filter 0.7s cubic-bezier(0.22, 0.61, 0.2, 1);
  transition-delay: calc(var(--i) * 72ms);
  will-change: transform, filter;
}
[data-words].in .w { opacity: 1; transform: none; filter: blur(0); }

/* Block reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  transition: opacity 0.9s cubic-bezier(0.22, 0.61, 0.2, 1),
              transform 0.9s cubic-bezier(0.22, 0.61, 0.2, 1),
              filter 0.9s cubic-bezier(0.22, 0.61, 0.2, 1);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; filter: blur(0); }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: min(var(--wide), calc(100% - 32px));
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 10px 12px 10px 18px;
  border-radius: 999px;
  transition: background 0.45s ease, box-shadow 0.45s ease, backdrop-filter 0.45s ease;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: 0 12px 40px rgba(60, 40, 90, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: #12101d; }
.spark { width: 19px; height: 19px; fill: var(--accent); }
.spark.big { width: 34px; height: 34px; margin-bottom: 18px; }
.brand-name {
  font-family: var(--f-serif);
  font-variation-settings: "SOFT" 100;
  font-weight: 620;
  font-size: 21px;
  letter-spacing: -0.01em;
}

.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  color: rgba(28, 24, 44, 0.78);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 530;
  transition: color 0.25s ease;
}
.nav-links a:hover { color: #12101d; }

.lang-switch {
  font-size: 12.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 99px;
  box-shadow: inset 0 0 0 1.5px rgba(28, 24, 44, 0.28);
}

.nav-cta {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(107, 92, 231, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(107, 92, 231, 0.45); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 130px 24px 80px;
  position: relative;
}
.hero-inner {
  width: min(var(--wide), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}

.hero-title {
  font-size: clamp(2.7rem, 6.2vw, 5rem);
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.03;
  color: var(--ink);
  margin: 0 0 26px;
}
.hero-title em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--accent);
}
.hero-sub {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 30em;
  margin-bottom: 38px;
}

.hero-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #12101d;
  color: #fff;
  text-decoration: none;
  padding: 13px 26px 13px 22px;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(18, 16, 29, 0.32);
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.2, 1), box-shadow 0.35s ease;
}
.btn-store:hover { transform: translateY(-2px); box-shadow: 0 22px 50px rgba(18, 16, 29, 0.4); }
.btn-store svg { width: 24px; height: 24px; fill: #fff; }
.btn-store span { display: flex; flex-direction: column; line-height: 1.15; }
.btn-store small { font-size: 11px; font-weight: 500; opacity: 0.8; }
.btn-store strong { font-size: 18px; font-weight: 600; letter-spacing: 0.01em; }

.trial-hint { font-size: 13.5px; color: var(--ink-3); font-weight: 530; }

/* The signature: mood card that tints the sky */
.hero-mood { perspective: 1100px; }
.mood-card {
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(1.35);
  -webkit-backdrop-filter: blur(24px) saturate(1.35);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--hairline);
  padding: 34px 30px 26px;
  transform: rotateY(-7deg) rotateX(2deg);
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.2, 1);
  max-width: 420px;
  margin-left: auto;
}
.mood-spark {
  position: absolute;
  top: -17px; left: 50%;
  transform: translateX(-50%);
  width: 34px; height: 34px;
  fill: var(--accent);
  filter: drop-shadow(0 4px 14px rgba(107, 92, 231, 0.55));
}
.mood-q {
  font-family: var(--f-serif);
  font-variation-settings: "SOFT" 100;
  font-size: 22px;
  font-weight: 580;
  text-align: center;
  color: var(--ink);
  margin-bottom: 22px;
}

/* The app's own mood row: emoji faces, unselected desaturated (1:1 MoodSlider) */
.mood-faces { display: flex; justify-content: space-between; padding: 0 4px; margin-bottom: 12px; }
.face {
  font-size: 30px;
  line-height: 1;
  opacity: 0.4;
  filter: grayscale(0.75) saturate(0.7);
  transform: scale(0.88);
  transition: opacity 0.35s ease, filter 0.35s ease, transform 0.45s cubic-bezier(0.22, 0.61, 0.2, 1);
}
.face.on { opacity: 1; filter: none; transform: scale(1.22); }

#moodRange {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 30px;
  background: transparent;
  cursor: grab;
  margin: 0 0 6px;
}
#moodRange:active { cursor: grabbing; }
/* Track fills with the mood color up to the thumb — the app's MoodSlider */
#moodRange::-webkit-slider-runnable-track {
  height: 9px;
  border-radius: 99px;
  background: linear-gradient(to right,
    var(--mc, #8FC97F) var(--pct, 65%),
    rgba(255, 255, 255, 0.55) var(--pct, 65%));
  box-shadow: inset 0 1px 3px rgba(20, 10, 50, 0.08);
}
#moodRange::-moz-range-track {
  height: 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.55);
}
#moodRange::-moz-range-progress {
  height: 9px;
  border-radius: 99px;
  background: var(--mc, #8FC97F);
}
#moodRange::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--mc, #8FC97F) 0 5.5px, #fff 6px);
  border: none;
  box-shadow: 0 4px 14px rgba(20, 10, 50, 0.28);
  margin-top: -8.5px;
  transition: transform 0.2s ease;
}
#moodRange::-webkit-slider-thumb:hover { transform: scale(1.1); }
#moodRange::-moz-range-thumb {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--mc, #8FC97F) 0 5.5px, #fff 6px);
  border: none;
  box-shadow: 0 4px 14px rgba(20, 10, 50, 0.28);
}

.mood-reply-wrap { min-height: 74px; display: flex; align-items: flex-start; margin-top: 12px; }
.mood-reply {
  position: relative;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 16px 16px 16px 5px;
  padding: 12px 16px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(60, 40, 90, 0.10);
  opacity: 1;
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.mood-reply.swap { opacity: 0; transform: translateY(4px); }
.mood-reply::before { content: "✦ "; color: var(--accent); }
.mood-note {
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 16px;
  font-weight: 530;
}

.scroll-hint {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid rgba(20, 16, 40, 0.35);
  border-radius: 99px;
  display: block;
}
.scroll-hint span {
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 99px;
  background: rgba(20, 16, 40, 0.45);
  animation: drip 2.4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes drip {
  0%, 15% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ── Journey ─────────────────────────────────────────────── */
.journey { padding: 16vh 24px 2vh; }
.j-head { width: min(var(--wide), 100%); margin: 0 auto 9vh; max-width: 720px; text-align: left; }

.j-grid {
  width: min(var(--wide), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}

.j-phone-wrap {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
}

.phone {
  /* Third clamp: on short viewports the phone must still fit under the
     fixed nav (~90px) with breathing room — width follows height via the
     frame's aspect ratio (1206/2622 ≈ 0.46). */
  width: min(310px, 72vw, calc((100svh - 160px) * 0.46));
  aspect-ratio: 1206 / 2622;
  transform-style: preserve-3d;
  transform: rotateY(var(--ry, -12deg)) rotateX(var(--rx, 3deg));
  will-change: transform;
}
.phone-frame {
  position: absolute; inset: 0;
  border-radius: 52px;
  background: #17151f;
  box-shadow:
    inset 0 0 0 2px #3a3744,
    0 60px 120px -20px rgba(30, 15, 60, 0.5),
    0 24px 48px rgba(30, 15, 60, 0.28);
  padding: 9px;
  overflow: hidden;
}
.phone-island {
  position: absolute;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  width: 86px; height: 25px;
  background: #000;
  border-radius: 99px;
  z-index: 4;
}
.screens {
  position: absolute; inset: 9px;
  border-radius: 44px;
  overflow: hidden;
  background: linear-gradient(180deg, #A9CCF8 0%, #B8C2EB 18%, #C2BBE3 38%, #CCB4DA 55%, #D8B3CB 72%, #E5B3BD 88%, #F6B8AC 100%);
}
.phone-glare {
  position: absolute; inset: 0;
  border-radius: 52px;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 34%);
  transform: translateX(calc(var(--gl, 0) * 1px));
  pointer-events: none;
  z-index: 5;
}

.screen {
  position: absolute; inset: 0;
  opacity: 0;
  visibility: hidden; /* hard-hide: backdrop-filter children ghost through pure opacity */
  transform: translateY(16px) scale(0.985);
  transition: opacity 0.5s cubic-bezier(0.22, 0.61, 0.2, 1),
              transform 0.5s cubic-bezier(0.22, 0.61, 0.2, 1),
              visibility 0s linear 0.5s;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.screen.s-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

.screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Steps column */
.j-steps { display: flex; flex-direction: column; gap: 4vh; padding: 10vh 0 8vh; }
.j-step {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.28;
  transform: translateY(6px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.j-step.is-active { opacity: 1; transform: none; }
.j-time {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.j-step h3 {
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  font-weight: 570;
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin-bottom: 16px;
  color: var(--ink);
}
.j-step p { font-size: 1.06rem; line-height: 1.65; color: var(--ink-2); max-width: 26em; }

/* ── Privacy (night) ─────────────────────────────────────── */
.privacy {
  position: relative;
  padding: 20vh 24px 22vh;
  color: var(--ink);
}
.privacy-inner { width: min(820px, 100%); margin: 0 auto; position: relative; }
.privacy .lead { margin-top: 20px; }

.stars { position: absolute; inset: 0; pointer-events: none; }
.stars i {
  position: absolute;
  width: calc(14px * var(--s, 1));
  height: calc(14px * var(--s, 1));
  background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 65%),
              conic-gradient(from 0deg, transparent 0 40deg, rgba(255,255,255,0.85) 45deg, transparent 50deg 130deg, rgba(255,255,255,0.85) 135deg, transparent 140deg 220deg, rgba(255,255,255,0.85) 225deg, transparent 230deg 310deg, rgba(255,255,255,0.85) 315deg, transparent 320deg);
  border-radius: 50%;
  opacity: 0;
  animation: twinkle 5.5s ease-in-out infinite;
  animation-delay: calc(var(--s, 1) * -4s);
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.7); }
  50% { opacity: 0.9; transform: scale(1); }
}

.priv-rows { display: flex; flex-direction: column; gap: 18px; margin-top: 7vh; }
.priv-row {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: var(--glass);
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--hairline);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 26px 28px;
}
.priv-row svg {
  width: 30px; height: 30px;
  flex: none;
  stroke: #B7ACF7;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 3px;
}
.priv-row h3 { font-size: 1.25rem; font-weight: 580; margin-bottom: 7px; color: var(--ink); }
.priv-row p { font-size: 0.98rem; line-height: 1.6; color: var(--ink-2); }

.priv-fine {
  margin-top: 34px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 44em;
}

/* ── Science ─────────────────────────────────────────────── */
.science { padding: 20vh 24px 8vh; }
.science > .eyebrow, .science > h2 { width: min(var(--wide), 100%); margin-left: auto; margin-right: auto; }
.science > h2 { max-width: min(var(--wide), 100%); margin-bottom: 8vh; }
.sci-grid {
  width: min(var(--wide), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
}
.sci-item { margin: 0; padding-top: 26px; border-top: 1px solid var(--hairline); }
.sci-item blockquote {
  margin: 0 0 18px;
  font-family: var(--f-serif);
  font-variation-settings: "SOFT" 100;
  font-style: italic;
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  line-height: 1.45;
  font-weight: 480;
  color: var(--ink);
}
.sci-item figcaption {
  font-size: 12px;
  font-weight: 620;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.sci-item figcaption a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.sci-item figcaption a:hover { color: var(--ink-2); }

/* ── Extras bento ────────────────────────────────────────── */
.extras { padding: 24vh 24px 10vh; }
.extras > .eyebrow, .extras > h2 { width: min(var(--wide), 100%); margin-left: auto; margin-right: auto; }
.extras > h2 { margin-bottom: 7vh; }
.bento {
  width: min(var(--wide), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.b-card {
  background: var(--glass);
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--hairline), 0 14px 40px rgba(60, 40, 90, 0.10);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  padding: 30px 28px;
  transform: perspective(700px) rotateX(var(--bx, 0)) rotateY(var(--by, 0));
  transition: box-shadow 0.4s ease;
}
.b-card:hover { box-shadow: inset 0 0 0 1px var(--hairline), 0 22px 54px rgba(60, 40, 90, 0.16); }
.b-card svg {
  width: 28px; height: 28px;
  stroke: var(--accent);
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 18px;
}
.b-card h3 { font-size: 1.2rem; font-weight: 580; margin-bottom: 9px; color: var(--ink); }
.b-card p { font-size: 0.95rem; line-height: 1.6; color: var(--ink-2); }

/* ── Watch (promo film) ──────────────────────────────────── */
.watch { padding: 10vh 24px 6vh; text-align: center; }
.watch-frame {
  width: min(320px, 78vw);
  margin: 6vh auto 0;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(40, 20, 80, 0.30), inset 0 0 0 1px var(--hairline);
  background: #17151f;
  line-height: 0;
}
.watch-frame video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
  cursor: pointer;
}
.watch-sound {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 13.5px;
  font-weight: 620;
  color: var(--ink);
  background: var(--glass-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 10px 18px;
  border-radius: 99px;
  box-shadow: inset 0 0 0 1px var(--hairline), 0 10px 26px rgba(60, 40, 90, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.watch-sound:hover { transform: translateY(-1px); }
.watch-sound svg {
  width: 16px; height: 16px;
  stroke: var(--accent);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Pricing ─────────────────────────────────────────────── */
.pricing { padding: 16vh 24px 14vh; text-align: center; }
.pricing-inner { width: min(560px, 100%); margin: 0 auto; }
.pricing .lead { margin: 18px auto 0; }

.pay-card {
  margin-top: 6vh;
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border-radius: 30px;
  box-shadow: var(--shadow), inset 0 0 0 1px var(--hairline);
  padding: 34px clamp(20px, 5vw, 38px) 30px;
  text-align: left;
}
.pay-feats { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.pay-feats li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 530;
  color: var(--ink);
}
.pay-feats svg {
  width: 21px; height: 21px;
  flex: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plans { display: flex; flex-direction: column; gap: 12px; }
.plan {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.38);
  border-radius: 20px;
  padding: 15px 18px;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.plan:hover { transform: translateY(-1px); }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan .radio {
  width: 21px; height: 21px;
  border-radius: 50%;
  border: 2px solid rgba(20, 16, 40, 0.3);
  display: inline-block;
  position: relative;
  flex: none;
  transition: border-color 0.25s ease;
}
.plan .radio::after {
  content: "";
  position: absolute;
  inset: 3.5px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.2, 1);
}
.plan:has(input:checked) { box-shadow: inset 0 0 0 2px var(--accent), 0 10px 30px rgba(107, 92, 231, 0.18); }
.plan:has(input:checked) .radio { border-color: var(--accent); }
.plan:has(input:checked) .radio::after { transform: scale(1); }
.plan:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.plan-name { display: flex; flex-direction: column; font-weight: 640; font-size: 16px; color: var(--ink); }
.plan-name em { font-style: normal; font-size: 12.5px; font-weight: 520; color: var(--ink-3); margin-top: 2px; }
.plan-price { margin-left: auto; font-weight: 660; font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }

.btn-cta {
  display: block;
  margin-top: 24px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-size: 16.5px;
  font-weight: 640;
  padding: 16px;
  border-radius: 99px;
  box-shadow: 0 16px 40px rgba(107, 92, 231, 0.42);
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.2, 1), box-shadow 0.35s ease;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 22px 52px rgba(107, 92, 231, 0.5); }
.pay-after { text-align: center; font-size: 13px; font-weight: 550; color: var(--ink-3); margin-top: 12px; }
.pay-fine { font-size: 12.5px; line-height: 1.55; color: var(--ink-3); margin-top: 20px; text-align: center; }

/* ── Waitlist ────────────────────────────────────────────── */
.waitlist { padding: 2vh 24px 12vh; text-align: center; }
.wl-inner { width: min(560px, 100%); margin: 0 auto; }
.waitlist .lead { margin: 18px auto 0; }
.wl-points {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  padding: 0;
  margin: 24px auto 0;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 560;
}
.wl-points li::before { content: "✓"; color: var(--accent); margin-right: 6px; font-weight: 750; }
.wl-form { margin-top: 4.5vh; display: flex; gap: 12px; }
.wl-input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 16px;
  font-weight: 530;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.38);
  border: none;
  border-radius: 99px;
  padding: 15px 22px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  outline: none;
  transition: box-shadow 0.3s ease;
}
.wl-input::placeholder { color: var(--ink-3); }
.wl-input:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.wl-btn {
  display: inline-block;
  margin-top: 0;
  flex: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 640;
  padding: 15px 26px;
}
.wl-btn:disabled { opacity: 0.6; cursor: default; transform: none; }
/* Honeypot: off-screen, not display:none — some bots skip invisible-by-display fields */
.wl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wl-msg { min-height: 1.5em; margin-top: 16px; font-size: 14.5px; font-weight: 570; color: var(--ink-2); }
.wl-msg.ok { color: var(--accent); }
.wl-msg.err { color: #b4364b; }
.wl-share {
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.hero-wl-cta { display: inline-block; margin-top: 0; min-width: 230px; }
.wl-fine { margin-top: 12px; }
.wl-fine a { color: var(--ink-2); }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 560px) {
  .wl-form { flex-direction: column; }
  .wl-btn { width: 100%; }
}

/* ── Under the hood + FAQ ────────────────────────────────── */
.know { padding: 6vh 24px 12vh; }
.know-inner { width: min(820px, 100%); margin: 0 auto; }

.hood { margin-top: 6vh; }
.hood-title {
  font-size: 1.35rem;
  font-weight: 580;
  margin-bottom: 22px;
  color: var(--ink);
}
.hood-list { margin: 0; }
.hood-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 10px 34px;
  padding: 20px 0;
  border-top: 1px solid rgba(20, 16, 40, 0.14);
}
.hood-row dt {
  font-weight: 640;
  font-size: 15px;
  color: var(--ink);
}
.hood-row dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-2);
}

.faq { margin-top: 9vh; }
.faq details {
  border-top: 1px solid rgba(20, 16, 40, 0.14);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 2px;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--f-serif);
  font-size: 22px;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.2, 1);
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  padding: 0 2px 20px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 60em;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer { padding: 60px 24px 44px; }
.foot-inner {
  width: min(var(--wide), 100%);
  margin: 0 auto;
  border-top: 1px solid rgba(20, 16, 40, 0.16);
  padding-top: 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 40px;
  align-items: center;
}
.foot-brand { display: flex; align-items: center; gap: 9px; }
.foot-tag { font-size: 13.5px; color: var(--ink-3); margin-left: 10px; font-weight: 520; }
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; }
.foot-links a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 550;
}
.foot-links a:hover { color: var(--ink); }
.foot-legal { font-size: 12.5px; color: var(--ink-3); }
.foot-seo { font-size: 12.5px; line-height: 1.55; color: var(--ink-3); max-width: 52em; grid-column: 1 / -1; }
.foot-seo a { color: var(--ink-2); }
.foot-crisis { font-size: 12.5px; line-height: 1.55; color: var(--ink-3); max-width: 52em; grid-column: 1 / -1; }
.foot-crisis a { color: var(--ink-2); }

/* ── Sub pages (privacy · terms · support) ───────────────── */
/* No WebGL on these pages — a fixed CSS aurora carries the brand. */
body.subpage {
  background:
    radial-gradient(90rem 60rem at 80% -10%, rgba(169, 204, 248, 0.85), transparent 60%),
    radial-gradient(80rem 55rem at 10% 40%, rgba(204, 180, 218, 0.85), transparent 60%),
    radial-gradient(90rem 60rem at 70% 100%, rgba(246, 184, 172, 0.9), transparent 65%),
    linear-gradient(180deg, #A9CCF8 0%, #B8C2EB 18%, #C2BBE3 38%, #CCB4DA 55%, #D8B3CB 72%, #E5B3BD 88%, #F6B8AC 100%);
  background-attachment: fixed;
}
.page {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 150px 24px 90px;
}
.page h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 560;
  letter-spacing: -0.015em;
  line-height: 1.08;
}
.page .updated { font-size: 13px; color: var(--ink-3); margin-top: 12px; margin-bottom: 34px; }
.page h2 {
  font-family: var(--f-sans);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: 0;
  color: var(--ink);
  margin-top: 2.2em;
  margin-bottom: 0.4em;
}
.page h3 {
  font-family: var(--f-sans);
  font-size: 1rem;
  font-weight: 650;
  color: var(--ink);
  margin-top: 1.7em;
  margin-bottom: 0.35em;
}
.page p { line-height: 1.7; color: var(--ink-2); font-size: 0.98rem; margin-bottom: 0.7em; }
.page a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.page .lead-in { font-size: 1.08rem; color: var(--ink); }
.page ul, .page ol { line-height: 1.7; color: var(--ink-2); font-size: 0.98rem; padding-left: 1.3em; margin: 0.4em 0 1em; }
.page li { margin-bottom: 0.35em; }
.page li::marker { color: var(--accent); }

/* ── Guides / articles ───────────────────────────────────── */
.byline { font-size: 13px; color: var(--ink-3); margin: 12px 0 30px; }
.byline a { color: var(--ink-2); }
.article h2 {
  font-family: var(--f-serif);
  font-variation-settings: "SOFT" 100;
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  font-weight: 570;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-top: 2em;
  margin-bottom: 0.5em;
}
.article h3 {
  font-family: var(--f-sans);
  font-size: 1.02rem;
  font-weight: 650;
  margin-top: 1.6em;
  margin-bottom: 0.4em;
  color: var(--ink);
}
.answer {
  background: var(--glass-strong);
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--hairline);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 18px 22px;
  margin: 0 0 1.4em;
}
.answer p { margin: 0; font-size: 1.02rem; color: var(--ink); }
.takeaways {
  background: var(--accent-soft);
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px rgba(107, 92, 231, 0.22);
  padding: 22px 24px 16px;
  margin: 2.2em 0 0;
}
.takeaways h2 { margin-top: 0; font-size: 1.15rem; }
.article-cta {
  margin-top: 2.6em;
  padding: 24px 26px;
  background: var(--glass);
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--hairline);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.article-cta p { margin-bottom: 0.2em; }
.article-cta .btn-cta { display: inline-block; margin-top: 14px; padding: 13px 26px; font-size: 15px; }
/* .page a would paint CTA text accent-on-accent — keep buttons white */
.page .btn-cta { color: #fff; text-decoration: none; }
.related { margin-top: 2.6em; padding-top: 22px; border-top: 1px solid rgba(20, 16, 40, 0.14); }
.related h2 { font-size: 1.05rem; font-family: var(--f-sans); font-weight: 650; margin: 0 0 10px; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { margin-bottom: 6px; }

/* Comparison tables */
.cmp-wrap { overflow-x: auto; margin: 1.2em 0 1.6em; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--hairline); background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.cmp { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.92rem; }
.cmp th, .cmp td { text-align: left; padding: 12px 16px; border-bottom: 1px solid rgba(20, 16, 40, 0.10); color: var(--ink-2); vertical-align: top; line-height: 1.5; }
.cmp th { font-weight: 650; color: var(--ink); font-size: 0.88rem; }
.cmp thead th { border-bottom: 1px solid rgba(20, 16, 40, 0.18); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp .this { color: var(--accent); font-weight: 650; }
.disclosure { font-size: 0.85rem; color: var(--ink-3); background: rgba(255, 255, 255, 0.28); border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--hairline); padding: 12px 16px; margin: 0 0 1.4em; line-height: 1.55; }

/* Guides index cards */
.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 30px;
  padding: 0;
  list-style: none;
}
.guide-card {
  display: block;
  background: var(--glass);
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--hairline), 0 12px 32px rgba(60, 40, 90, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 22px 24px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.guide-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--hairline), 0 18px 44px rgba(60, 40, 90, 0.14); }
.guide-card h2 {
  font-family: var(--f-serif);
  font-variation-settings: "SOFT" 100;
  font-size: 1.18rem;
  font-weight: 580;
  margin: 0 0 8px;
  color: var(--ink);
}
.guide-card p { font-size: 0.9rem; line-height: 1.55; color: var(--ink-2); margin: 0; }
@media (max-width: 600px) {
  .guide-grid { grid-template-columns: 1fr; }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-mood { order: 2; }
  .mood-card { margin: 0 auto; transform: none; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }

  .sci-grid { grid-template-columns: 1fr; gap: 36px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .foot-inner { grid-template-columns: 1fr; align-items: start; }
  .hood-row { grid-template-columns: 1fr; gap: 6px; }
}

/* Journey collapses later — the two-column layout still fits at ~900px */
@media (max-width: 820px) {
  .j-grid { grid-template-columns: 1fr; gap: 0; }
  .j-phone-wrap {
    position: sticky;
    top: 0;
    height: auto;
    padding: 64px 0 0;
    z-index: 3;
    pointer-events: none;
  }
  /* Keep the phone at design size and scale it as a whole, so the
     screens inside keep their proportions. Reclaim the scaled-away
     height with a negative margin (655px × (1 − 0.62) ≈ 249px). */
  .phone {
    width: 310px;
    transform: scale(0.62) rotateY(var(--ry, -12deg)) rotateX(var(--rx, 3deg));
    transform-origin: top center;
    margin-bottom: -256px; /* 674px × (1 − 0.62) */
  }
  .j-steps { padding: 0 0 8vh; }
  .j-step { min-height: 46vh; text-align: center; align-items: center; opacity: 0.12; }
  .j-step.is-active { opacity: 1; }
  .j-step h3 { font-size: 1.5rem; }
  .j-step p { font-size: 0.98rem; }
}

@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .btn-store { width: 100%; justify-content: center; }
  .trial-hint { width: 100%; text-align: center; }
  .nav { gap: 12px; }
  .priv-row { flex-direction: column; gap: 14px; }
}

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  [data-words] .w, .reveal { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .scroll-hint span, .stars i { animation: none !important; }
  .stars i { opacity: 0.6; }
  .screen, .j-step, .mood-reply, .face { transition: none !important; }
  .p-bubble .ww { opacity: 1 !important; }
  .phone { transform: none !important; }
  .mood-card { transform: none !important; }
}
