/* Ariadne landing — mirrors the app's 2026-09 visual redesign: a
   warm cream page, deep-navy headlines, and an amethyst-purple accent,
   in place of the old dark-navy/gold theme.
     bg          #F8F1EA   (warm cream, app screen background)
     surface     #FFFFFF + soft ink borders (app cards/rows)
     amethyst    #8C7CD6   (accent) with #6C5CC4 deeper end (button gradients)
     text        #1B1A33   (deep navy/ink headline + body text)
     muted       #6B6785   (muted slate-violet, secondary text) */

:root {
  --bg: #F8F1EA;
  --bg-glow-1: #EFE6F7;
  --bg-glow-2: #F8F1EA;
  --surface: #FFFFFF;
  --surface-hover: #FCF8FF;
  --border: rgba(27, 26, 51, 0.1);
  --purple: #8C7CD6;
  --purple-deep: #6C5CC4;
  --purple-soft: rgba(140, 124, 214, 0.14);
  --purple-border: rgba(140, 124, 214, 0.45);
  --text: #1B1A33;
  --text-on-accent: #FFFFFF;
  --muted: #6B6785;
  --muted-on-accent: #E6E1F7;

  --maxw: 1080px;
  --radius: 20px;
  --radius-pill: 999px;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  /* A soft radial glow sits behind everything — see .bg-glow. */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- Background layers (fixed, non-interactive) ---- */
.bg-layers {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.bg-glow {
  position: absolute;
  inset: 0;
  /* A soft lavender-to-cream glow at the top, echoing the sunrise-through-
     the-archway art in the app's own screens, in place of the old dark
     radial glow + maze tile (both tied to the retired dark theme). */
  background:
    radial-gradient(60% 45% at 50% -4%, var(--bg-glow-1) 0%, var(--bg-glow-2) 55%, var(--bg) 85%);
}

/* ---- Layout primitives ---- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  position: relative;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple-deep);
  font-weight: 600;
  margin: 0 0 16px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: var(--purple-deep);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ---- Header / nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(248, 241, 234, 0.78);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--text);
}
.brand:hover {
  text-decoration: none;
}
.brand svg {
  display: block;
}
.brand-mark {
  display: block;
  border-radius: 7px;
  border: 1px solid var(--border);
  object-fit: cover;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: var(--purple-soft);
  border: 1px solid var(--purple-border);
  color: var(--purple-deep);
  font-size: 14px;
  font-weight: 600;
}
.nav-cta:hover {
  text-decoration: none;
  background: rgba(140, 124, 214, 0.24);
}

/* ---- Hero ---- */
.hero {
  padding: clamp(40px, 8vw, 96px) 0 clamp(48px, 8vw, 96px);
  text-align: center;
}

/* Stacked and centred on phones (the scene first, then the copy); two
   columns from 920px up, copy left, scene right. */
.hero-grid {
  display: grid;
  gap: clamp(20px, 4vw, 48px);
  justify-items: center;
  align-items: center;
}
.hero-visual {
  width: min(100%, 560px);
}

.hero h1 {
  font-size: clamp(34px, 6.5vw, 60px);
  max-width: 16ch;
  margin: 0 auto;
}

.hero .lede {
  color: var(--muted);
  font-size: clamp(17px, 2.4vw, 20px);
  max-width: 46ch;
  margin: 22px auto 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 36px;
}

/* App store buttons (placeholder — swap the hrefs when listings are live) */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 22px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text); /* apple glyph uses fill="currentColor", picks this up */
  min-width: 200px;
  box-shadow: 0 2px 10px -6px rgba(27, 26, 51, 0.2);
}
.store-badge:hover {
  text-decoration: none;
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.16);
}
.store-badge svg {
  flex: none;
}
.store-badge .store-badge-text {
  text-align: left;
  line-height: 1.15;
}
.store-badge .store-badge-small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.store-badge .store-badge-large {
  display: block;
  font-size: 18px;
  font-family: var(--serif);
}
.store-badge[aria-disabled="true"] {
  opacity: 0.55;
  cursor: default;
}
.store-badge[aria-disabled="true"]:hover {
  background: var(--surface);
  border-color: var(--border);
}

.hero-note {
  margin-top: 22px;
  font-size: 13px;
  color: var(--muted);
}

/* ---- Generic section spacing ---- */
.band {
  padding: clamp(56px, 9vw, 104px) 0;
}
.band-sep {
  border-top: 1px solid var(--border);
}

.section-head {
  max-width: 40ch;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(28px, 4.5vw, 42px);
}
.section-head p {
  color: var(--muted);
  margin-top: 18px;
  font-size: clamp(16px, 2.2vw, 19px);
}

/* ---- Feature / trust rows ---- */
.features {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
}

.feature {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.feature .feature-icon {
  flex: none;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--purple-soft);
  border: 1px solid var(--border);
}
.feature h3 {
  font-size: 18px;
  margin-bottom: 6px;
}
.feature p {
  color: var(--muted);
  font-size: 15px;
}

/* ---- Origin story (scroll-told chapters hanging off a thread) ---- */
.story-thread {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  padding-left: 34px;
}
/* The single vertical "thread" the chapters hang from. */
.story-thread::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--purple-border) 8%,
    var(--purple-border) 92%,
    transparent
  );
}

.chapter {
  position: relative;
  margin: 0 0 clamp(36px, 6vw, 54px);
}
.chapter:last-child {
  margin-bottom: 0;
}
/* A small accent node where each chapter meets the thread, lined up with
   the heading's first line. */
.chapter::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 8px;
  width: 10px;
  height: 10px;
  margin-left: 2px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 0 4px rgba(140, 124, 214, 0.16);
}

.chapter h3 {
  font-size: clamp(20px, 2.8vw, 25px);
  color: var(--text);
  margin-bottom: 10px;
}

.chapter p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
}

/* Opening chapter — the emotional hook, set a touch larger. */
.chapter-lede {
  font-size: clamp(17px, 2.3vw, 19px);
}
/* Closing chapter — the payoff, gently accent-lit. */
.chapter-close p {
  color: var(--text);
}
.chapter-close::before {
  box-shadow: 0 0 0 5px rgba(140, 124, 214, 0.28);
}

/* Scroll reveal: each chapter fades and rises in as it enters view. The
   .is-visible class is added by main.js (IntersectionObserver). */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---- Origin story: three value props under the myth (Made for
   overthinkers / 5 minutes that matter / Clarity you can carry) ---- */
.values {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
  max-width: 780px;
  margin: clamp(48px, 7vw, 72px) auto 0;
}
.value {
  text-align: center;
  padding: 6px 10px;
}
.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--purple-soft);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.value h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.value p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ---- Quote / story band ---- */
.story {
  text-align: center;
}
.story blockquote {
  margin: 0 auto;
  max-width: 34ch;
  font-family: var(--serif);
  font-size: clamp(22px, 3.6vw, 32px);
  line-height: 1.35;
  color: var(--text);
}
.story .story-body {
  color: var(--muted);
  max-width: 52ch;
  margin: 28px auto 0;
  font-size: clamp(16px, 2.2vw, 18px);
}

/* ---- Mascot scenes ----
   Each .scene is one of the app's illustrations, pre-split into layers
   (tools/build_scenes.py writes the markup). Every layer sits at its exact
   spot in the original picture, so at rest the scene is simply the
   illustration; the motion below only ever moves pieces away from, and
   back to, that pose. Two wrappers per layer keep the two kinds of motion
   from fighting over `transform`:
     .layer  - the entrance (in-pop, in-wipe), played once when the scene
               scrolls into view (main.js adds .is-visible)
     .idle   - the loop afterwards (i-float, i-breathe, i-walk...)
   Distances use cqw (1% of the scene's width) so the motion scales with
   the scene at any size. */
.scene {
  position: relative;
  width: 100%;
  container-type: inline-size;
}
.scene .layer {
  position: absolute;
}
.scene .idle {
  position: relative;
  width: 100%;
}
.scene img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

/* Entrances: hidden until the scene is on screen, then played once. */
.scene .layer.in-pop,
.scene .layer.in-wipe {
  opacity: 0;
}
.scene.is-visible .layer.in-pop {
  animation: scene-pop var(--in-dur, 0.6s) cubic-bezier(0.34, 1.5, 0.64, 1) var(--in, 0s) both;
}
.scene.is-visible .layer.in-wipe {
  animation: scene-wipe var(--in-dur, 0.7s) cubic-bezier(0.33, 1, 0.68, 1) var(--in, 0s) both;
}
@keyframes scene-pop {
  from {
    opacity: 0;
    transform: translate(var(--dx, 0), var(--dy, 0)) scale(var(--s0, 0.3));
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes scene-wipe {
  from {
    opacity: 1;
    clip-path: inset(0 100% 0 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

/* Idle loops (only while the scene has been seen, to save work). */
.scene.is-visible .i-float {
  animation: scene-float var(--fd, 7s) ease-in-out var(--fdl, 0s) infinite;
}
@keyframes scene-float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(var(--fx, 0.6cqw), var(--fy, -0.8cqw)) rotate(var(--fr, 0deg)); }
}
.scene.is-visible .i-float-slow {
  animation: scene-float-slow 7s ease-in-out infinite;
}
@keyframes scene-float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-0.9cqw) rotate(0.6deg); }
}
.scene .i-breathe {
  transform-origin: 50% 100%;
}
.scene.is-visible .i-breathe {
  animation: scene-breathe 4.8s ease-in-out infinite;
}
@keyframes scene-breathe {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.016); }
}
.scene .i-fidget {
  transform-origin: 50% 100%;
}
.scene.is-visible .i-fidget {
  animation: scene-fidget 1.9s ease-in-out infinite alternate;
}
@keyframes scene-fidget {
  from { transform: rotate(-1.3deg) translateX(-0.2cqw); }
  to { transform: rotate(1.3deg) translateX(0.2cqw); }
}
.scene .i-walk {
  transform-origin: 50% 100%;
}
.scene.is-visible .i-walk {
  animation: scene-walk 1.2s ease-in-out infinite;
}
@keyframes scene-walk {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  25% { transform: translateY(-1.3cqw) rotate(0deg); }
  50% { transform: translateY(0) rotate(2deg); }
  75% { transform: translateY(-1.3cqw) rotate(0deg); }
}
.scene .i-hop {
  transform-origin: 50% 100%;
}
.scene.is-visible .i-hop {
  animation: scene-hop 1.5s ease-in-out 0.9s infinite;
}
@keyframes scene-hop {
  0%, 100% { transform: translateY(0) scale(1.03, 0.96); }
  12% { transform: translateY(0) scale(1, 1); }
  50% { transform: translateY(-2.4cqw) rotate(2deg); }
  88% { transform: translateY(0) scale(1, 1); }
}
.scene.is-visible .i-spin {
  animation: scene-spin 7s ease-in-out infinite alternate;
}
@keyframes scene-spin {
  from { transform: rotate(-14deg); }
  to { transform: rotate(14deg); }
}
.scene.is-visible .i-twinkle {
  animation: scene-twinkle 1.8s ease-in-out infinite;
}
@keyframes scene-twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.18) rotate(10deg); }
}
.scene.is-visible .i-pulse {
  animation: scene-pulse 1.6s ease-in-out infinite;
}
@keyframes scene-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* Blinking eyes: a skin-coloured lid over each eye that drops shut for a
   moment every few seconds, with a thin line where the lashes would be. */
.scene .lid {
  position: absolute;
  border-radius: 50%;
  border-bottom: 2px solid #7A5245;
  transform: scaleY(0);
  transform-origin: 50% 0;
}
.scene.is-visible .lid {
  animation: scene-blink 4.6s ease-in-out 1.4s infinite;
}
@keyframes scene-blink {
  0%, 92%, 100% { transform: scaleY(0); }
  95% { transform: scaleY(1); }
}

/* The labyrinth scene: points of light circling the maze's rings, and a
   slow glow at its centre ("they loop again and again"). */
.scene .maze-glow {
  position: absolute;
  width: 16%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 217, 196, 0.9), rgba(255, 217, 196, 0) 70%);
}
.scene.is-visible .maze-glow {
  animation: scene-glow 3s ease-in-out infinite;
}
@keyframes scene-glow {
  0%, 100% { opacity: 0.45; transform: translate(-50%, -50%) scale(0.9); }
  50% { opacity: 0.95; transform: translate(-50%, -50%) scale(1.15); }
}
.scene .orbit {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  translate: -50% -50%;
}
.scene.is-visible .orbit {
  animation: scene-orbit var(--od, 20s) linear var(--odl, 0s) infinite;
}
.scene.is-visible .orbit-rev {
  animation-direction: reverse;
}
@keyframes scene-orbit {
  to { transform: rotate(360deg); }
}
.scene .orbit-dot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2.2cqw;
  aspect-ratio: 1;
  border-radius: 50%;
  translate: -50% -50%;
}
.dot-peach {
  background: #F2B79B;
  box-shadow: 0 0 1.4cqw 0.5cqw rgba(242, 183, 155, 0.65);
}
.dot-lavender {
  background: #B7A2E0;
  box-shadow: 0 0 1.4cqw 0.5cqw rgba(183, 162, 224, 0.65);
}

/* ---- How it works: four beats, scene and words side by side ---- */
.beats {
  display: grid;
  gap: clamp(40px, 7vw, 88px);
}
.beat {
  display: grid;
  gap: 18px;
  align-items: center;
  justify-items: center;
  text-align: center;
}
.beat-visual {
  width: min(100%, 400px);
}
.beat-copy {
  max-width: 460px;
}
.beat-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--purple-soft);
  border: 1px solid var(--purple-border);
  color: var(--purple-deep);
  font-family: var(--serif);
  font-size: 17px;
  margin-bottom: 16px;
}
.beat h3 {
  font-size: clamp(23px, 3.2vw, 30px);
  margin-bottom: 12px;
}
.beat p {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
}

/* ---- Two ways in: the app's two Home cards ---- */
.modes {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
  max-width: 880px;
  margin: 0 auto;
}
.mode {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 28px 28px 32px;
  border: 1px solid var(--border);
}
.mode-quiet {
  background: #F6E8DC;
}
.mode-clarity {
  background: var(--bg-glow-1);
}
.mode-art {
  display: block;
  width: min(78%, 280px);
  height: auto;
  margin: -6px auto 10px;
  animation: mode-drift 7s ease-in-out infinite;
}
.mode-clarity .mode-art {
  animation-delay: -3.5s;
}
@keyframes mode-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.mode h3 {
  font-size: 26px;
  margin-bottom: 8px;
}
.mode p {
  color: var(--muted);
  font-size: 16px;
}

/* ---- Origin story: the labyrinth scene beside the thread of chapters ---- */
.origin-grid {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  justify-items: center;
}
.origin-visual {
  width: min(100%, 360px);
}

/* ---- Final CTA mascot ---- */
.cta-visual {
  width: min(58%, 220px);
  margin: 0 auto 18px;
}

/* The one filled store badge on the page. */
.store-badge-primary {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}
.store-badge-primary .store-badge-small {
  color: rgba(255, 255, 255, 0.7);
}
.store-badge-primary:hover {
  background: #2A2850;
  border-color: #2A2850;
}

/* ---- Final CTA ---- */
.cta {
  text-align: center;
}
.cta h2 {
  font-size: clamp(28px, 4.5vw, 44px);
  max-width: 18ch;
  margin: 0 auto;
}
.cta p {
  color: var(--muted);
  margin: 20px auto 36px;
  max-width: 44ch;
}

/* ---- Email list signup ---- */
.signup {
  max-width: 480px;
  margin: 40px auto 0;
  text-align: left;
}

.signup-label {
  display: block;
  text-align: center;
  color: var(--text);
  font-size: 15px;
  margin-bottom: 14px;
}

.signup-row {
  display: flex;
  gap: 10px;
}

.signup-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 13px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 16px; /* 16px keeps iOS Safari from zooming on focus */
}
.signup-input::placeholder {
  color: var(--muted);
}
.signup-input:focus {
  outline: none;
  border-color: var(--purple-border);
  background: var(--surface-hover);
}

.signup-btn {
  flex: none;
  padding: 13px 22px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--purple), var(--purple-deep));
  border: 1px solid var(--purple-border);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.signup-btn:hover {
  background: linear-gradient(180deg, #9689DE, var(--purple-deep));
}
.signup-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Honeypot — off-screen rather than display:none, which some bots skip. */
.signup-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.signup-note {
  margin-top: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.signup-note.is-ok {
  color: var(--purple-deep);
}
.signup-note.is-error {
  color: #C4573F;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 56px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  align-items: center;
  justify-content: space-between;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
}
.footer-links a {
  color: var(--muted);
  font-size: 14px;
}
.footer-links a:hover {
  color: var(--text);
}
.footer-fine {
  color: var(--muted);
  font-size: 13px;
  margin-top: 20px;
  max-width: 70ch;
}
.disclaimer {
  color: var(--muted);
  font-size: 12.5px;
  opacity: 0.85;
  margin-top: 10px;
}

/* ---- Legal pages (privacy / terms) ---- */
.legal {
  padding: clamp(48px, 8vw, 88px) 0 96px;
}
.legal .container {
  max-width: 760px;
}
.legal h1 {
  font-size: clamp(30px, 5vw, 44px);
  margin-bottom: 12px;
}
.legal .updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 40px;
}
.legal h2 {
  font-size: 22px;
  margin: 40px 0 12px;
}
.legal p,
.legal li {
  color: var(--muted);
  font-size: 16px;
}
.legal ul {
  padding-left: 22px;
}
.legal li {
  margin: 8px 0;
}
.back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 32px;
}

/* ---- Support page ---- */
/* The FAQ questions sit a level below the section headings, and .legal only
   styled h1/h2 — without this they'd fall back to the browser default. */
.legal h3 {
  color: var(--text);
  font-size: 17px;
  margin: 28px 0 8px;
}

/* The form deliberately reuses .signup-input / .signup-btn / .signup-note so
   both forms on the site look identical. Only what genuinely differs is new:
   the signup is one field in a flex row, this one is stacked fields with a
   textarea, and its note reads left-aligned under a left-aligned form rather
   than centred under a centred one. Mobile full-width button comes free from
   the existing .signup-btn rule in the 560px block below. */
.support-form {
  max-width: 560px;
  margin-top: 8px;
}
.support-field {
  margin-bottom: 18px;
}
.support-field label {
  display: block;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 8px;
}
.support-field .signup-input {
  width: 100%;
}
.support-textarea {
  min-height: 170px;
  line-height: 1.6;
  resize: vertical;
}
.support-note {
  text-align: left;
}

/* ---- Responsive ---- */
/* Hero goes two-column once there's room for the figure beside the copy.
   Below this it stays stacked and centred, which is the base state above. */
@media (min-width: 920px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    justify-items: stretch;
  }
  .hero-visual {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }
  .hero-copy {
    grid-column: 1;
    grid-row: 1;
    text-align: left;
  }
  .hero-copy h1,
  .hero-copy .lede {
    margin-left: 0;
    margin-right: 0;
  }
  .hero-copy .hero-actions {
    justify-content: flex-start;
  }
  /* Beats alternate: scene left / words right, then the other way round. */
  .beat {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    text-align: left;
    justify-items: stretch;
  }
  .beat-visual {
    justify-self: center;
  }
  .beat-flip .beat-visual {
    order: 2;
  }
  .origin-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
}

@media (max-width: 860px) {
  .modes {
    grid-template-columns: 1fr;
    max-width: 440px;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .values {
    grid-template-columns: 1fr;
    max-width: 340px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  .container {
    padding: 0 20px;
  }
  .nav-cta {
    padding: 8px 14px;
  }
  .store-badge {
    width: 100%;
    justify-content: center;
  }
  .hero-actions {
    flex-direction: column;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .signup-row {
    flex-direction: column;
  }
  .signup-btn {
    width: 100%;
  }
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  /* No fade/rise — show every story chapter straight away. */
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  /* Scenes sit still at their resting pose: every piece in place, nothing
     entering or looping. */
  .scene *,
  .mode-art {
    animation: none !important;
  }
  .scene .layer.in-pop,
  .scene .layer.in-wipe {
    opacity: 1;
  }
}
