/* Geist (SIL Open Font License), served from this site so visitors make no requests to
   Google. Variable weight; Latin and Latin Extended. */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/geist-latin.woff2") format("woff2");
  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: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ==========================================================================
   Magic Teleprompt marketing site
   Layout and type scale follow Apple's product-page system: SF Pro (system
   font on Apple devices), 980px reading column, tight display tracking,
   alternating dark/light sections.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --black: #000;
  --white: #fff;
  --ink: #f5f5f7;            /* primary text on dark */
  --ink-muted: #86868b;      /* secondary text on both themes */
  --ink-dark: #1d1d1f;       /* primary text on light */
  --surface-dark: #161617;   /* cards on dark */
  --surface-light: #f5f5f7;  /* light section background */
  --surface-light-card: #fff;
  --hairline: rgba(255, 255, 255, 0.16);

  --blue: #0071e3;
  --blue-hover: #0077ed;
  --link-dark: #2997ff;
  --link-light: #0066cc;

  /* Brand: the red cue arrow from the app icon. */
  --cue: #ff453a;
  --brand-gradient: linear-gradient(90deg, #ff6a5f 0%, #ff453a 30%, #d6458f 65%, #8c5cff 100%);

  --content: 980px;
  --content-box: calc(var(--content) + 2 * var(--gutter));   /* 980px column plus its side padding */
  --wide: 1260px;
  --gutter: max(22px, env(safe-area-inset-left));
  --nav-h: 52px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
/* Clip decorative overhang (glows, laptop bases) without breaking position: sticky. */
main { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--link-dark); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--white); color: var(--black); padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons & links ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 11px 22px;
  border-radius: 980px;
  background: var(--blue); color: var(--white);
  font-size: 17px; font-weight: 400; letter-spacing: -0.022em;
  transition: background-color 0.2s var(--ease);
}
.button:hover { background: var(--blue-hover); }
.localnav-signin { margin-right: 14px; white-space: nowrap; font-size: 12px; color: var(--ink); opacity: 0.8; transition: opacity 0.2s; }
.localnav-signin:hover { opacity: 1; }
.localnav.is-light .localnav-signin { color: #1d1d1f; }
.localnav-link-signin { display: none; }
@media (max-width: 833px) { .localnav-signin { display: none; } .localnav-link-signin { display: block; } }
.plan-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.button-small { min-height: 28px; padding: 4px 12px; font-size: 12px; letter-spacing: -0.01em; }
.button-secondary { background: transparent; color: var(--link-dark); box-shadow: inset 0 0 0 1px var(--link-dark); }
.button-secondary:hover { background: var(--link-dark); color: var(--white); }

.link-cta { color: var(--link-dark); font-size: 17px; }
.link-cta:hover { text-decoration: underline; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; }

/* ---------- Local nav ---------- */
.localnav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.localnav.is-stuck {
  background: rgba(22, 22, 23, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--hairline);
}
.localnav-inner {
  max-width: var(--content-box); height: 100%;
  margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
/* Over a light section the bar flips to a light material, as on apple.com. */
.localnav.is-stuck.is-light { background: rgba(250, 250, 252, 0.8); border-bottom-color: rgba(0, 0, 0, 0.16); color: var(--ink-dark); }
.localnav.is-light .localnav-link { color: rgba(29, 29, 31, 0.8); }
.localnav.is-light .localnav-link:hover, .localnav.is-light .localnav-link.is-current { color: var(--ink-dark); }
.localnav-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 21px; font-weight: 600; letter-spacing: 0.011em;
  margin-right: auto;
}
.localnav-title img { border-radius: 5px; }
.localnav-menu { display: flex; gap: 24px; }
.localnav-link { font-size: 12px; color: rgba(245, 245, 247, 0.8); letter-spacing: -0.01em; }
.localnav-link:hover, .localnav-link.is-current { color: var(--ink); }
.localnav-link.is-current { opacity: 0.56; pointer-events: none; }
.localnav-toggle { display: none; width: 28px; height: 28px; align-items: center; justify-content: center; transition: transform 0.3s var(--ease); }

@media (max-width: 833px) {
  .localnav-title { font-size: 17px; white-space: nowrap; }
  .localnav-toggle { display: inline-flex; }
  .localnav-menu {
    position: absolute; left: 0; right: 0; top: var(--nav-h);
    flex-direction: column; gap: 0;
    padding: 0 var(--gutter);
    background: rgba(22, 22, 23, 0.94);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
  }
  .localnav.is-open .localnav-menu { max-height: 260px; padding-bottom: 18px; }
  .localnav.is-open .localnav-toggle { transform: rotate(180deg); }
  .localnav-link { font-size: 17px; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
  .localnav-link.is-current { pointer-events: auto; }
}

/* ---------- Type scale ---------- */
.eyebrow { font-size: 21px; font-weight: 600; letter-spacing: 0.011em; color: var(--ink-muted); margin-bottom: 12px; }
.eyebrow-gradient, .text-gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.display-title { font-size: clamp(40px, 6.4vw, 80px); line-height: 1.05; font-weight: 600; letter-spacing: -0.015em; }
.section-title { font-size: clamp(32px, 4.5vw, 56px); line-height: 1.07; font-weight: 600; letter-spacing: -0.005em; }
.section-lede { font-size: clamp(19px, 2vw, 24px); line-height: 1.33; color: var(--ink-muted); margin-top: 14px; font-weight: 600; }

/* ---------- Section frames ---------- */
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section-header { max-width: var(--content-box); margin: 0 auto clamp(40px, 6vw, 72px); padding: 0 var(--gutter); }
.section-header-center { text-align: center; }

[data-theme="light"] { background: var(--surface-light); color: var(--ink-dark); }
[data-theme="light"] .eyebrow { color: var(--ink-muted); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  margin-top: calc(var(--nav-h) * -1);   /* sit under the transparent nav */
  padding-top: calc(var(--nav-h) + clamp(48px, 8vh, 96px));
  text-align: center;
}
.hero-copy { padding: 0 var(--gutter); }
.hero-eyebrow {
  font-size: clamp(28px, 3.2vw, 40px); font-weight: 600; letter-spacing: 0;
  background: var(--brand-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-headline {
  font-size: clamp(48px, 8.5vw, 112px);
  line-height: 1.02; font-weight: 700; letter-spacing: -0.03em;
  margin: 10px 0 34px;
}
.hero-stage { height: 170vh; margin-top: clamp(32px, 5vh, 64px); }
.hero-media {
  position: sticky; top: calc(var(--nav-h) + 3vh);
  height: calc(100vh - var(--nav-h) - 6vh);
  display: grid; place-items: center;
  padding: 0 var(--gutter);
}
/* --hero-progress (0 → 1) is driven by scroll in main.js: the Mac rises, levels
   out and grows into place while the headline steps back. */
.hero .hero-device {   /* outranks product.css .device-mac { width: 100% } */
  width: min(1040px, 100%, calc((100vh - var(--nav-h) - 12vh) * 1.5));
  transform:
    perspective(1600px)
    rotateX(calc((1 - var(--hero-progress, 0)) * 18deg))
    scale(calc(0.84 + var(--hero-progress, 0) * 0.16));
  transform-origin: 50% 100%;
  will-change: transform;
}
.hero-glow {
  position: absolute; z-index: -1; left: 50%; top: 55%;
  width: min(1100px, 120vw); aspect-ratio: 2 / 1;
  background: radial-gradient(closest-side, rgba(255, 69, 58, 0.28), rgba(140, 92, 255, 0.16) 55%, transparent);
  transform: translate(-50%, -50%); filter: blur(30px);
  opacity: calc(0.5 + var(--hero-progress, 0) * 0.5);
  pointer-events: none;
}
.hero-copy { opacity: calc(1 - var(--hero-copy-fade, 0)); transform: translateY(calc(var(--hero-copy-fade, 0) * -30px)); }

/* ---------- Statement (word-by-word reveal) ---------- */
.statement { padding: clamp(100px, 16vw, 220px) var(--gutter); }
.statement-text {
  max-width: var(--content); margin: 0 auto;
  font-size: clamp(32px, 4.6vw, 64px); line-height: 1.1; font-weight: 600; letter-spacing: -0.01em;
}
.statement-text .word { opacity: 0.18; transition: opacity 0.3s linear; }
.statement-text .word.is-lit { opacity: 1; }

/* ---------- Why we built it (the team's quote) ---------- */
.founders { padding: clamp(120px, 18vw, 240px) var(--gutter); text-align: center; }
.founders-figure { max-width: 1040px; margin: 0 auto; }
.founders-eyebrow { color: var(--cue); }
.founders blockquote { margin: 0; }
.founders-quote {
  margin: 0; font-size: clamp(36px, 5.8vw, 84px); line-height: 1.06; font-weight: 600; letter-spacing: -0.025em;
  text-wrap: balance;
}
.founders-quote .word { opacity: 0.18; transition: opacity 0.3s linear; }
.founders-quote .word.is-lit { opacity: 1; }
/* The cue line, drawn out from the center like a signature. */
.founders-cue[data-reveal] {
  position: relative; height: 2px; width: min(560px, 70%); margin: clamp(40px, 5vw, 64px) auto;
  background: linear-gradient(90deg, transparent, var(--cue) 15%, var(--cue) 85%, transparent);
  box-shadow: 0 0 24px rgba(255, 69, 58, 0.55);
  opacity: 1; transform: scaleX(0); transition: transform 1.4s var(--ease) 0.2s;
}
.founders-cue[data-reveal].is-visible { transform: scaleX(1); }
.founders-cue::before, .founders-cue::after {
  content: ""; position: absolute; top: 50%; transform: translateY(-50%);
  border-top: 8px solid transparent; border-bottom: 8px solid transparent;
}
.founders-cue::before { left: 10%; border-left: 12px solid var(--cue); }
.founders-cue::after { right: 10%; border-right: 12px solid var(--cue); }
.founders-more {
  max-width: 640px; margin: 0 auto; font-size: clamp(19px, 2vw, 24px); line-height: 1.45; color: var(--ink-muted);
  text-wrap: pretty;
}
.founders-sign {
  margin-top: 28px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.22em; font-weight: 600; color: var(--ink);
}

/* ---------- Horizontal gallery ---------- */
.gallery-track {
  display: flex; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 max(var(--gutter), calc((100vw - var(--content)) / 2));
  scroll-padding: 0 max(var(--gutter), calc((100vw - var(--content)) / 2));
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-item { flex: 0 0 auto; scroll-snap-align: start; }
.gallery-item-wide { width: min(var(--content), calc(100vw - 2 * var(--gutter))); }
.gallery-caption { max-width: 560px; margin-top: 22px; color: var(--ink-muted); font-size: 17px; }
.gallery-caption strong { color: var(--ink); font-weight: 600; }
.gallery-controls {
  max-width: var(--content-box); margin: 32px auto 0; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.gallery-dots { display: flex; gap: 12px; padding: 14px 20px; border-radius: 980px; background: rgba(66, 66, 69, 0.72); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.gallery-dot { width: 8px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.42); transition: width 0.4s var(--ease), background 0.4s var(--ease); }
.gallery-dot.is-active { width: 48px; background: var(--ink); }
.gallery-paddles { display: flex; gap: 18px; }
.paddle { flex: none; width: 36px; height: 36px; padding: 0; border-radius: 50%; background: rgba(66, 66, 69, 0.72); display: grid; place-items: center; transition: opacity 0.2s, background 0.2s; }
.paddle:hover { background: rgba(86, 86, 90, 0.8); }
.paddle:disabled { opacity: 0.36; cursor: default; }
.paddle svg { display: block; width: 100%; height: 100%; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Take a closer look ---------- */
.closer-look-layout {
  max-width: var(--content-box); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 40px; align-items: center;
}
.closer-look-pills { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.pill {
  display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px;
  max-width: 100%; padding: 14px 24px 14px 16px;
  border-radius: 28px;
  background: rgba(42, 42, 45, 0.72);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  text-align: left; font-size: 17px; font-weight: 600;
  transition: background 0.3s var(--ease);
}
.pill:hover { background: rgba(58, 58, 62, 0.8); }
.pill-icon { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid currentColor; position: relative; transition: transform 0.4s var(--ease); }
.pill-icon::before, .pill-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.pill-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.pill-body { grid-column: 2; font-weight: 400; color: var(--ink-muted); max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.5s var(--ease), opacity 0.4s var(--ease), margin 0.4s var(--ease); }
.pill.is-active { background: rgba(58, 58, 62, 0.9); }
.pill.is-active .pill-icon { transform: rotate(45deg); }
.pill.is-active .pill-body { max-height: 120px; opacity: 1; margin-top: 6px; }
.closer-look-stage { position: relative; aspect-ratio: 16 / 10; }
.closer-look-panel { position: absolute; inset: 0; opacity: 0; transform: scale(0.98); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); pointer-events: none; }
.closer-look-panel.is-active { opacity: 1; transform: none; pointer-events: auto; }
.closer-look-panel > * { height: 100%; aspect-ratio: auto; }

@media (max-width: 833px) {
  .closer-look-layout { grid-template-columns: 1fr; }
  .closer-look-stage { order: -1; }
}

/* ---------- Chapters ---------- */
.chapter { padding: clamp(100px, 14vw, 180px) 0 clamp(60px, 8vw, 100px); }
.chapter-header { max-width: var(--content-box); margin: 0 auto clamp(40px, 6vw, 80px); padding: 0 var(--gutter); }
.chapter-title { font-size: clamp(48px, 8vw, 96px); line-height: 1.02; font-weight: 700; letter-spacing: -0.025em; }
.chapter-media { margin-bottom: clamp(48px, 7vw, 90px); }
.chapter-intro { max-width: var(--content-box); margin: 0 auto; padding: 0 var(--gutter); }
.chapter-intro p { max-width: 640px; font-size: clamp(19px, 1.9vw, 24px); line-height: 1.33; font-weight: 600; color: var(--ink-muted); }
.chapter-intro strong { color: var(--ink); }

.card-row {
  max-width: var(--content-box); margin: clamp(48px, 6vw, 80px) auto 0; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.card { padding: 32px 28px 36px; border-radius: var(--radius-md); background: var(--surface-dark); color: var(--ink-muted); }
.card-title { font-size: 21px; font-weight: 600; color: var(--ink); margin-bottom: 8px; letter-spacing: 0.011em; }
@media (max-width: 833px) { .card-row { grid-template-columns: 1fr; } }

/* Sticky scroll feature */
.sticky-feature {
  max-width: var(--content-box); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px);
}
.sticky-feature-media { position: sticky; top: calc(var(--nav-h) + 8vh); align-self: start; }
.sticky-feature-steps { display: flex; flex-direction: column; gap: 40vh; padding: 20vh 0 30vh; }
.step h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; margin-bottom: 12px; letter-spacing: 0.004em; }
.step p { font-size: 19px; line-height: 1.42; color: var(--ink-muted); }
@media (max-width: 833px) {
  .sticky-feature { grid-template-columns: 1fr; }
  .sticky-feature-media { position: relative; top: 0; }
  .sticky-feature-steps { gap: 48px; padding: 48px 0 0; }
}

/* ---------- Technology (light) ---------- */
.tech-media { max-width: var(--content-box); margin: 0 auto; padding: 0 var(--gutter); }
.stat-grid {
  max-width: var(--content-box); margin: clamp(56px, 7vw, 96px) auto 0; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-value {
  font-size: clamp(40px, 5vw, 64px); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em;
  background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { font-size: 17px; font-weight: 600; color: var(--ink-muted); }
@media (max-width: 833px) { .stat-grid { grid-template-columns: 1fr; text-align: center; } }

.drawers { max-width: var(--content-box); margin: clamp(56px, 7vw, 96px) auto 0; padding: 0 var(--gutter); }
.drawer { border-top: 1px solid #d2d2d7; }
.drawer:last-child { border-bottom: 1px solid #d2d2d7; }
.drawer summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0; font-size: 24px; font-weight: 600;
}
.drawer summary::-webkit-details-marker { display: none; }
.drawer p { padding: 0 0 28px; max-width: 640px; font-size: 19px; color: #6e6e73; }
.drawer-plus { width: 22px; height: 22px; position: relative; transition: transform 0.4s var(--ease); }
.drawer-plus::before, .drawer-plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: currentColor; border-radius: 1px; }
.drawer-plus::after { transform: rotate(90deg); }
.drawer[open] .drawer-plus { transform: rotate(45deg); }

/* ---------- Run of show (inside Control) ---------- */
.rundown-feature {
  max-width: var(--content-box); margin: clamp(80px, 10vw, 140px) auto 0; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.rundown-copy h3 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; font-weight: 600; letter-spacing: -0.015em; margin: 6px 0 14px; }
.rundown-copy p:last-child { font-size: 19px; color: var(--ink-muted); }
@media (max-width: 833px) { .rundown-feature { grid-template-columns: 1fr; } }

/* ---------- Never lose a word ---------- */
.safe-grid {
  max-width: var(--content-box); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.safe-card { padding: 36px 32px; border-radius: var(--radius-lg); background: var(--surface-dark); display: flex; flex-direction: column; gap: 12px; }
.safe-card h3 { font-size: 24px; font-weight: 600; }
.safe-card > p { font-size: 17px; color: var(--ink-muted); }
.format-chips { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.format-chips li { padding: 6px 12px; border-radius: 980px; font-size: 13px; font-weight: 600; background: #232326; color: var(--ink); }
.history { list-style: none; margin: 8px 0 0; padding: 0 0 0 16px; border-left: 2px solid #2a2a2e; display: grid; gap: 12px; font-size: 14px; color: var(--ink-muted); }
.history li { position: relative; }
.history li::before { content: ""; position: absolute; left: -22px; top: 0.45em; width: 10px; height: 10px; border-radius: 50%; background: #3a3a3e; }
.history li.is-current { color: var(--ink); }
.history li.is-current::before { background: var(--cue); box-shadow: 0 0 10px var(--cue); }
.history b { display: block; font-size: 12px; font-weight: 600; color: var(--ink-muted); }
@media (max-width: 900px) { .safe-grid { grid-template-columns: 1fr; } }

/* ---------- Billing promises (under the plans) ---------- */
.promises {
  list-style: none; max-width: var(--content-box); margin: 36px auto 0; padding: 0 var(--gutter);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; font-size: 15px; font-weight: 600;
}
.promises li { display: inline-flex; align-items: center; gap: 8px; }
.promises li::before { content: ""; width: 14px; height: 8px; border-left: 2px solid #30d158; border-bottom: 2px solid #30d158; transform: rotate(-45deg) translateY(-2px); }

/* ---------- Values ---------- */
.value-grid {
  max-width: var(--content-box); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.value-card { padding: 40px 36px 44px; border-radius: var(--radius-lg); background: var(--surface-dark); }
.value-icon { display: block; width: 36px; height: 36px; margin-bottom: 18px; }
.value-icon svg { width: 100%; height: 100%; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.value-card h3 { font-size: 28px; font-weight: 600; margin-bottom: 10px; }
.value-card p { font-size: 17px; color: var(--ink-muted); }
@media (max-width: 734px) { .value-grid { grid-template-columns: 1fr; } }

/* ---------- Compare (feature matrix) ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.compare-wrap { max-width: var(--content-box); margin: 0 auto; padding: 0 var(--gutter); }
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.compare-table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.compare-table th, .compare-table td { padding: 15px 10px; border-bottom: 1px solid #1f1f22; text-align: center; vertical-align: middle; }
.compare-table thead th {
  position: relative; background: #000;
  padding: 22px 10px 18px; font-size: 13px; font-weight: 600; color: var(--ink-muted); line-height: 1.25; border-bottom: 1px solid #2a2a2e;
}
.compare-table tbody th[scope="row"] { text-align: left; font-weight: 500; color: var(--ink); width: 34%; padding-left: 0; }
/* Our column: a lit lane with the cue line across the top */
.compare-table .is-us { background: linear-gradient(180deg, rgba(255, 69, 58, 0.09), rgba(255, 69, 58, 0.05)); }
.compare-table thead th.is-us { background: linear-gradient(180deg, #1f0e0d, #140a0a); color: var(--ink); border-radius: 18px 18px 0 0; }
.compare-table thead th.is-us::before {
  content: ""; position: absolute; left: 14%; right: 14%; top: 0; height: 2px; border-radius: 1px;
  background: var(--cue); box-shadow: 0 0 12px var(--cue);
}
.compare-us { font-size: 15px; background: var(--brand-gradient, linear-gradient(90deg, #ff6a5f, #ff453a 30%, #d6458f 65%, #8c5cff)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.compare-table tbody tr:hover th, .compare-table tbody tr:hover td { background-color: rgba(255, 255, 255, 0.025); }
.compare-group, .compare-group-head { display: none; }
.is-expanded .compare-group { display: table-row-group; }
.is-expanded .compare-group-head { display: table-row; }
.compare-group-head th {
  padding: 34px 0 12px !important; text-align: left !important; background: none !important;
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cue);
}
.mark { display: inline-block; width: 22px; height: 22px; border-radius: 50%; vertical-align: middle; position: relative; }
.mark-y { background: #30d158; box-shadow: 0 0 14px rgba(48, 209, 88, 0.35); }
.mark-y::after {   /* check */
  content: ""; position: absolute; left: 7.5px; top: 4.5px; width: 5px; height: 10px;
  border: solid #000; border-width: 0 2.4px 2.4px 0; transform: rotate(45deg);
}
.mark-p { background: conic-gradient(#ff9f0a 0 50%, transparent 0); box-shadow: inset 0 0 0 2px #ff9f0a; }
.mark-n { width: 14px; height: 2px; border-radius: 1px; background: #48484c; }
.is-us .mark-y { width: 26px; height: 26px; }
.is-us .mark-y::after { left: 9px; top: 5.5px; width: 6px; height: 11px; }
.compare-swipe { display: none; margin: 0 0 12px; font-size: 13px; color: var(--ink-muted); text-align: right; }
@media (max-width: 833px) { .compare-swipe { display: block; } }
.compare-more { display: flex; justify-content: center; margin-top: 32px; }
.compare-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 28px; font-size: 13px; color: var(--ink-muted); }
.compare-legend span { display: inline-flex; align-items: center; gap: 8px; }
.compare-legend .mark { transform: scale(0.8); }
.compare-note { max-width: 640px; margin: 12px auto 0; text-align: center; font-size: 12px; color: #6e6e73; }
@media (max-width: 833px) {
  .compare-table tbody th[scope="row"], .compare-table thead th:first-child { position: sticky; left: 0; z-index: 1; background: #000; }
  .compare-table tbody th[scope="row"] { min-width: 180px; padding-right: 12px; }
}

/* ---------- Pricing ---------- */
.billing {
  display: inline-flex; gap: 4px; margin-top: 28px; padding: 4px; border-radius: 980px;
  background: var(--surface-dark); box-shadow: inset 0 0 0 1px #2a2a2e;
}
.billing button {
  height: 36px; padding: 0 18px; border-radius: 980px; font-size: 14px; font-weight: 600; color: var(--ink-muted);
  transition: background 0.25s, color 0.25s;
}
.billing button[aria-checked="true"] { background: var(--ink); color: var(--black); }
.billing-save { margin-left: 6px; font-size: 12px; color: #30d158; }
.billing button[aria-checked="true"] .billing-save { color: #1a7f37; }
.plan-grid {
  max-width: var(--content-box); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch;
}
.plan {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 40px 32px 36px; border-radius: var(--radius-lg); background: var(--surface-dark);
}
.plan h3 { font-size: 28px; font-weight: 600; }
.plan-for { color: var(--ink-muted); font-size: 17px; }
.plan-price { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 18px; }
.plan-amount { font-size: 56px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.plan-unit { display: flex; flex-direction: column; font-size: 14px; color: var(--ink-muted); line-height: 1.3; }
.plan-billed { font-size: 12px; }
.plan .button { align-self: stretch; text-align: center; }
/* Cards share their rows (name, line, price, button, features), so prices and buttons
   line up across the row however long the text above them is. */
@supports (grid-template-rows: subgrid) {
  .plan-grid > .plan { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 10px; align-content: start; }
  .plan-grid > .plan > .plan-price { align-self: start; }
  .plan-grid > .plan > .plan-features { align-content: start; }
  .plan-grid > .plan > .button { align-self: start; justify-self: stretch; }
}
.plan-features { list-style: none; margin: 22px 0 0; padding: 22px 0 0; border-top: 1px solid #2a2a2e; display: grid; gap: 12px; font-size: 15px; color: var(--ink); }
.plan-features li { position: relative; padding-left: 26px; }
.plan-features li::before {   /* a tiny cue-line tick */
  content: ""; position: absolute; left: 0; top: 0.62em; width: 12px; height: 2px; border-radius: 1px; background: var(--cue);
}
.plan-features li:first-child:has(strong)::before { display: none; }
.plan-features li:first-child:has(strong) { padding-left: 0; color: var(--ink-muted); }
.plan-note { margin-top: auto; padding-top: 22px; font-size: 14px; color: var(--ink-muted); }
.plan-note strong { color: var(--ink); }
.plan-featured {
  background: linear-gradient(180deg, #1f1416 0%, var(--surface-dark) 45%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 69, 58, 0.55), 0 40px 100px -40px rgba(255, 69, 58, 0.45);
}
.plan-badge {
  position: absolute; top: 18px; right: 20px; padding: 4px 10px; border-radius: 980px;
  font-size: 12px; font-weight: 600; color: #fff; background: var(--cue);
}
.pricing-note { max-width: var(--content-box); margin: 28px auto 0; padding: 0 var(--gutter); text-align: center; font-size: 14px; color: var(--ink-muted); }
.pricing-note + .pricing-note { margin-top: 8px; }
/* Four plans (Free, Pro, Studio, Team): a wider row, then 2 x 2, then 1 column. */
.plan-grid-4 { max-width: calc(1240px + 2 * var(--gutter)); grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan-grid-4 .plan { padding: 36px 24px 32px; }
.plan-grid-4 .plan-amount { font-size: 48px; }
@media (max-width: 1180px) { .plan-grid-4 { grid-template-columns: repeat(2, 1fr); max-width: 860px; } }
@media (max-width: 900px) { .plan-grid { grid-template-columns: 1fr; max-width: 560px; } }

/* ---------- FAQ (dark drawers) ---------- */
.drawers-dark { max-width: 880px; margin-top: 0; }
.drawers-dark .drawer { border-color: #2a2a2e; }
.drawers-dark .drawer summary { font-size: 21px; }
.drawers-dark .drawer p { color: var(--ink-muted); font-size: 17px; }

/* ---------- Platforms ---------- */
.platform-grid {
  max-width: var(--content-box); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.platform-tile {
  --glow: #ff453a;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
  padding: 0 32px 40px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #1d1d1f, #111112);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.platform-tile::before {   /* each platform's glow, behind its device */
  content: ""; position: absolute; z-index: -1; left: 50%; top: -30%; width: 120%; aspect-ratio: 1; transform: translateX(-50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 38%, transparent), transparent 70%);
  opacity: 0.55; transition: opacity 0.5s var(--ease);
}
.platform-tile:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--glow) 45%, transparent), 0 40px 90px -40px color-mix(in srgb, var(--glow) 60%, transparent); }
.platform-tile:hover::before { opacity: 0.85; }
.tile-mac { --glow: #ff453a; } .tile-ios { --glow: #bf5af2; } .tile-web { --glow: #0a84ff; }
.platform-visual { width: 100%; height: 190px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 18px; padding-top: 40px; }
.platform-visual .device-mac { width: 86%; }
.platform-pair { position: relative; width: 64%; margin-right: 8%; }
.platform-pair .device-ipad { width: 100%; }
.platform-pair .device-ipad .device-screen { border-width: 6px; border-radius: 14px; }
.platform-pair .device-iphone { position: absolute; right: -10%; bottom: -6%; width: 24%; max-width: none; }
.platform-pair .device-iphone .device-screen { border-width: 4px; border-radius: 16px; }
.platform-pair .device-iphone .device-screen::before { top: 4px; height: 7px; }
.browser { width: 88%; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px #2c2c30, 0 30px 70px -20px rgba(0, 0, 0, 0.9); }
.browser-bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: #232326; }
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: #48484c; }
.browser-bar i:first-child { background: #ff5f57; } .browser-bar i:nth-child(2) { background: #febc2e; } .browser-bar i:nth-child(3) { background: #28c840; }
.browser-url { flex: 1; margin: 0 22px 0 10px; padding: 3px 0; border-radius: 6px; font-size: 10px; color: var(--ink-muted); background: #161618; }
.browser-view { position: relative; aspect-ratio: 16 / 9; }
.browser-view > .ui-prompter, .platform-visual .device-screen > .ui-prompter { position: absolute; inset: 0; }
.platform-tile h3 { font-size: 32px; font-weight: 600; }
.platform-tile p { color: var(--ink-muted); max-width: 300px; flex: 1; }
.platform-tile .platform-meta { flex: none; margin-top: 4px; font-size: 12px; letter-spacing: 0.02em; color: #6e6e73; }
@media (max-width: 833px) { .platform-grid { grid-template-columns: 1fr; } }

/* ---------- Downloads page (downloads/) ---------- */
.dl-hero { padding-top: clamp(64px, 9vw, 120px); }
.dl-companions {
  max-width: var(--content-box); margin: 20px auto 0; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.dl-companion {
  display: flex; gap: 22px; align-items: flex-start; padding: 28px 32px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #1d1d1f, #111112); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.dl-companion-icon { flex: none; width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; color: var(--ink); background: #2a2a2e; }
.dl-companion h3 { font-size: 24px; font-weight: 600; }
.dl-companion p { color: var(--ink-muted); margin-top: 6px; }
.dl-companion .platform-meta { font-size: 12px; letter-spacing: 0.02em; color: #6e6e73; margin-top: 10px; }
.dl-note a { color: var(--link-dark); }
.dl-note { max-width: 680px; margin: 36px auto 0; padding: 0 var(--gutter); text-align: center; font-size: 14px; color: var(--ink-muted); }
.dl-note + .dl-note { margin-top: 8px; }

@media (max-width: 833px) { .dl-companions { grid-template-columns: 1fr; } }

/* ---------- Coming soon + launch waitlist ---------- */
.button-soon, .button-soon:hover { background: #2a2a2e; color: var(--ink); cursor: default; }
.waitlist {
  max-width: 680px; margin: 48px auto 0; padding: 40px 36px; text-align: center;
  border-radius: var(--radius-lg); background: linear-gradient(180deg, #1d1d1f, #111112);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
@media (max-width: 833px) { .waitlist { margin-left: var(--gutter); margin-right: var(--gutter); padding: 32px 22px; } }
.waitlist-title { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; }
.waitlist-lede { margin: 10px auto 0; max-width: 520px; color: var(--ink-muted); }
.waitlist-form { display: flex; gap: 10px; max-width: 460px; margin: 24px auto 0; }
.waitlist-form input[type="email"] {
  flex: 1; min-width: 0; min-height: 44px; padding: 10px 18px; border-radius: 980px;
  border: 1px solid var(--hairline); background: #000; color: var(--ink); font: inherit; font-size: 17px;
}
.waitlist-form input[type="email"]:focus { outline: 2px solid var(--link-dark); outline-offset: 2px; }
.waitlist-form .button { flex: none; }
.waitlist-form .button:disabled { opacity: 0.6; }
.waitlist-hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.waitlist-status { min-height: 1.5em; margin-top: 14px; font-size: 15px; color: var(--ink-muted); }
.waitlist-status[data-state="ok"] { color: #30d158; }
.waitlist-status[data-state="error"] { color: var(--cue); }
.waitlist.is-done .waitlist-form { display: none; }
.waitlist-fine { margin-top: 6px; font-size: 12px; color: #6e6e73; }
.waitlist-fine a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 480px) { .waitlist-form { flex-direction: column; } }

/* ---------- Footer ---------- */
.footer { background: var(--surface-light); color: #6e6e73; font-size: 12px; line-height: 1.33; letter-spacing: -0.01em; }
.footer-inner { max-width: var(--content-box); margin: 0 auto; padding: 32px var(--gutter) 24px; }
.footnotes { list-style: decimal; padding-left: 14px; padding-bottom: 20px; border-bottom: 1px solid #d2d2d7; display: grid; gap: 10px; }
.footer-columns { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid #d2d2d7; }
.footer h4 { font-size: 12px; font-weight: 600; color: var(--ink-dark); margin-bottom: 10px; }
.footer-columns li { margin-bottom: 8px; }
.footer a:hover { text-decoration: underline; color: var(--ink-dark); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 16px; }
.initiative { font-size: 11px; text-transform: uppercase; letter-spacing: 0.22em; color: #86868b; }
.initiative strong { font-weight: 700; color: #1d1d1f; }
.footer .initiative:hover { text-decoration: none; color: #1d1d1f; }
/* Pointer to /llms.txt for AI agents (Obsidian Heron site standard). The initiative line and this link sit together on the right. */
.footer-bottom .initiative { margin-left: auto; }
@media (max-width: 833px) { .footer-bottom .initiative { margin-left: 0; } }
.ai-link { display: inline-flex; align-items: center; gap: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; letter-spacing: 0; color: var(--link-light); }
.ai-link svg { width: 14px; height: 14px; flex: none; }
.footer .ai-link:hover { color: var(--link-light); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 734px) { .footer-columns { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   Brand motif — the prompter's red cue line
   ========================================================================== */
.scroll-cue { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.scroll-cue i { max-width: calc(100% - 7px);
  position: relative; display: block; height: 100%; width: 0;
  background: var(--cue); box-shadow: 0 0 10px rgba(255, 69, 58, 0.7);
}
.scroll-cue i::after {   /* the cue arrow rides the leading edge */
  content: ""; position: absolute; top: 50%; margin-left: -1px;
  border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 7px solid var(--cue);
  transform: translateY(-50%); right: -6px;
}
/* Section titles get a small cue arrow, the way a script line sits on the cue. */
.cue-title { position: relative; }
.cue-title::before {
  content: ""; position: absolute; left: calc(-0.55em - 6px); top: 0.36em;
  border-top: 0.2em solid transparent; border-bottom: 0.2em solid transparent; border-left: 0.3em solid var(--cue);
  filter: drop-shadow(0 0 8px rgba(255, 69, 58, 0.6));
}
@media (max-width: 1100px) { .cue-title::before { display: none; } }
.finish-cue {
  position: relative; height: 2px; margin: 0 auto 48px; max-width: 820px;
  background: linear-gradient(90deg, transparent, var(--cue) 12%, var(--cue) 88%, transparent);
  box-shadow: 0 0 24px rgba(255, 69, 58, 0.55);
}
.finish-cue::before, .finish-cue::after {
  content: ""; position: absolute; top: 50%; transform: translateY(-50%);
  border-top: 9px solid transparent; border-bottom: 9px solid transparent;
}
.finish-cue::before { left: 8%; border-left: 13px solid var(--cue); }
.finish-cue::after { right: 8%; border-right: 13px solid var(--cue); }

/* ---------- Renders inside galleries / panels ---------- */
.render-flat { background: #000; }
.render-flat > .ui-prompter, .render-flat > .ui-settings { position: absolute; inset: 0; }
.cue-zoom .uip-cue { height: 2px; box-shadow: 0 0 18px rgba(239, 68, 68, 0.8); }
.render-sync { padding: 0 6%; }
.sync-trio { position: relative; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.sync-trio .sync-mac { width: 62%; }
.sync-trio .sync-ipad { position: absolute; left: 3%; bottom: 0; width: 30%; }
.sync-trio .sync-iphone { position: absolute; right: 4%; bottom: 0; width: 13%; }
.sync-trio .device-iphone .device-screen { border-width: 5px; border-radius: 22px; }
.sync-trio .device-iphone .device-screen::before { height: 9px; top: 5px; }
.sync-trio .device-ipad .device-screen { border-width: 7px; border-radius: 16px; }

.render.operator { display: grid; grid-template-columns: 1.35fr 1fr; gap: 4%; align-items: center; justify-items: stretch; }
.operator-screen { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px #2a2a2e; }
.operator-out { aspect-ratio: 4 / 3; }
.operator-screen > .ui-prompter { position: absolute; inset: 0; }
.operator-tag {
  position: absolute; z-index: 3; left: 10px; bottom: 10px; padding: 3px 9px; border-radius: 980px;
  font-size: 11px; font-weight: 600; background: rgba(0, 0, 0, 0.7); color: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.ui-prompter.bare .uip-top, .ui-prompter.bare .uip-progress, .ui-prompter.bare .uip-bottom { display: none; }

.keys-panel { display: grid; grid-template-columns: 1fr; gap: 8%; align-content: center; justify-items: center; }
.keycaps { display: grid; grid-template-columns: repeat(4, auto); gap: 12px; }
.keycap {
  min-width: 64px; height: 64px; padding: 8px 12px; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: linear-gradient(#2c2c30, #1c1c1f); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 2px 0 #0a0a0b, 0 8px 20px -8px #000;
  font-size: 20px; font-weight: 600;
  animation: keypress 4.2s var(--ease) infinite;
}
.keycap small { font-size: 10px; font-weight: 500; color: var(--ink-muted); }
.keycap-wide { grid-column: span 2; min-width: 140px; font-size: 14px; }
.keycap:nth-child(2) { animation-delay: 0.6s; } .keycap:nth-child(3) { animation-delay: 1.2s; }
.keycap:nth-child(4) { animation-delay: 1.8s; } .keycap:nth-child(5) { animation-delay: 2.4s; }
.keycap:nth-child(6) { animation-delay: 3s; } .keycap:nth-child(7) { animation-delay: 3.6s; }
@keyframes keypress { 0%, 12%, 100% { transform: none; } 5% { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 #0a0a0b, 0 0 0 2px var(--cue); } }
.pedal { width: 46%; height: auto; }
@media (max-width: 734px) { .keycaps { grid-template-columns: repeat(3, auto); } .keycap { min-width: 52px; height: 54px; } .keycap-wide { grid-column: span 3; } }

/* ---------- Try it ---------- */
.try-stage { max-width: var(--content-box); margin: 0 auto; padding: 0 var(--gutter); }
.try-screen {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 0 0 1px #2a2a2e, 0 50px 120px -40px rgba(255, 69, 58, 0.35);
}
.try-screen > .ui-prompter { position: absolute; inset: 0; }
.try-own {
  position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; gap: 14px;
  padding: clamp(20px, 4vw, 48px); background: rgba(10, 10, 12, 0.94);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.try-own[hidden] { display: none; }
.try-own label { font-size: 21px; font-weight: 600; }
.try-own textarea {
  flex: 1; resize: none; padding: 16px 18px; border-radius: 14px; border: 1px solid #3a3a3e;
  background: #000; color: var(--ink); font: 19px/1.45 var(--font);
}
.try-own textarea:focus { outline: none; border-color: var(--link-dark); }
.try-own-actions { display: flex; justify-content: flex-end; gap: 12px; }
.try-screen.is-fullscreen { aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.try-tip { margin-top: 18px; text-align: center; font-size: 14px; color: var(--ink-muted); }
.try-tip .tip-touch { display: none; }
@media (hover: none) { .try-tip .tip-pointer { display: none; } .try-tip .tip-touch { display: inline; } }
@media (max-width: 734px) { .try-screen { aspect-ratio: 4 / 5; } }

/* ---------- Chapter devices ---------- */
.chapter-device { max-width: var(--content-box); margin: 0 auto clamp(56px, 7vw, 96px); padding: 0 var(--gutter); }
.sticky-feature-media .device-ipad { width: 100%; }
.step { opacity: 0.35; transition: opacity 0.5s var(--ease); }
.step.is-active { opacity: 1; }
.step-kicker { font-size: 14px; font-weight: 600; color: var(--cue); margin-bottom: 8px; letter-spacing: 0.02em; text-transform: uppercase; }
@media (min-width: 834px) { .sticky-feature { grid-template-columns: 1.25fr 1fr; align-items: start; } }
.pair { margin-bottom: clamp(56px, 7vw, 96px); }

/* Control chapter: the photo carries the title, left-aligned like other chapters. */
.moment-chapter { height: min(86vh, 56vw); margin-bottom: clamp(48px, 6vw, 88px); justify-content: flex-start; }
.moment-chapter .moment-copy { width: 100%; max-width: var(--content-box); margin: 0 auto; text-align: left; }
.moment-chapter .moment-img { object-position: 50% 60%; }

/* ---------- Made for every stage ---------- */
/* Full-bleed photo moment. --moment (0 → 1) is set by main.js as it scrolls into place. */
.moment {
  position: relative; height: min(100vh, 62vw); min-height: 520px; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
}
.moment-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
  transform: scale(calc(1.14 - var(--moment, 0) * 0.14));
  will-change: transform;
}
.moment::after {   /* melt the photo into the black page at both edges */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(#000 0%, rgba(0, 0, 0, 0.2) 22%, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0.85) 82%, #000 100%);
}
.moment-copy {
  position: relative; z-index: 1; max-width: 1200px; padding: 0 var(--gutter) clamp(40px, 7vw, 96px); text-align: center;
  opacity: calc(var(--moment, 0) * 1.6 - 0.4); transform: translateY(calc((1 - var(--moment, 0)) * 40px));
}
.moment-copy .section-lede { color: rgba(245, 245, 247, 0.78); }

.stage-grid {
  max-width: var(--content-box); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.stage-card {
  position: relative; isolation: isolate; aspect-ratio: 4 / 5; padding: 30px 28px; border-radius: var(--radius-lg);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; overflow: hidden;
  background: var(--surface-dark);
}
.stage-card img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.stage-card:hover img { transform: scale(1.05); }
.stage-card::before {   /* legibility scrim, tinted with each audience's color */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.55) 62%, rgba(0, 0, 0, 0.92) 100%),
    linear-gradient(0deg, color-mix(in srgb, var(--glow) 28%, transparent), transparent 55%);
}
.stage-card::after {   /* a short cue line in the audience's color */
  content: ""; order: -1; width: 28px; height: 3px; border-radius: 2px; margin-bottom: 8px;
  background: var(--glow); box-shadow: 0 0 14px var(--glow);
}
.stage-card h3 { font-size: 26px; font-weight: 600; }
.stage-card p { color: rgba(245, 245, 247, 0.78); }
.stage-creators { --glow: #ff453a; } .stage-news { --glow: #0a84ff; } .stage-keynote { --glow: #bf5af2; }
.stage-worship { --glow: #ffd60a; } .stage-class { --glow: #30d158; } .stage-events { --glow: #ff375f; }
.stage-creators img { object-position: 30% 50%; }
@media (max-width: 833px) { .stage-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .stage-grid { grid-template-columns: 1fr; } .stage-card { aspect-ratio: 4 / 3; } .moment { min-height: 440px; height: 80vh; } }

/* ---------- Architecture diagram ---------- */
.arch .arch-node { fill: #fff; stroke: #d2d2d7; stroke-width: 1.5; }
.arch .label-strong { font-size: 16px; }
.arch .flow { stroke-width: 2.5; }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero .hero-device { transform: none; }
  .hero-copy { opacity: 1; transform: none; }
  .statement-text .word, .founders-quote .word { opacity: 1; }
  .moment-img { transform: none; } .moment-copy { opacity: 1; transform: none; }
  .founders-cue[data-reveal] { transform: none; }
}
