/* ============================================================
   RAMMENTA — landing (productivity system)
   SoftRiver: Atomic Black, white type, red signal. Geist.
   Scroll-staged demo scenes; theme-aware; mobile-first perf.
   ============================================================ */

:root {
  /* SoftRiver palette */
  --light-red: #FF3B30;
  --brand-red: #C90000;
  --red:   var(--light-red);
  --ember: var(--brand-red);
  --ink:   #0F0F10;
  --white: #FFFFFF;
  --bone:  #EDEFF7;
  --ash:   #6E7180;
  --space: #9DA2B3;

  /* Atomic Black surface stack */
  --bg:     #0F0F10;
  --bg-2:   #141416;
  --surface:#1A1A1D;
  --raised: #222226;
  --hair:   color-mix(in srgb, var(--bone) 14%, transparent);
  --hair-2: color-mix(in srgb, var(--bone) 8%, transparent);

  --fg:     #FFFFFF;
  --fg-dim: #9DA2B3;
  --fg-mute:color-mix(in srgb, var(--space) 82%, transparent);

  --glow:   color-mix(in srgb, var(--red) 60%, var(--ember));
  --accent: var(--red);

  --ui: "Geist", "Geist Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Menlo", monospace;

  --maxw: 1200px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --r-card: 16px;
  --r-lg: 24px;

  --expo: cubic-bezier(0.16, 1, 0.3, 1);
  --quint: cubic-bezier(0.22, 1, 0.36, 1);

  /* Shot chrome */
  --shot-radius: clamp(8px, 1vw, 14px);
  --shot-shadow: 0 40px 90px -18px rgba(0, 0, 0, 0.55), 0 12px 30px -12px rgba(0, 0, 0, 0.4);
}

html[data-theme="light"] {
  --red: var(--brand-red);
  --ember: var(--brand-red);
  --bg: var(--white);
  --bg-2: color-mix(in srgb, var(--bone) 62%, #FBF8F2);
  --surface: color-mix(in srgb, var(--bone) 58%, var(--white));
  --raised: var(--white);
  --hair: color-mix(in srgb, var(--ash) 32%, transparent);
  --hair-2: color-mix(in srgb, var(--ash) 18%, transparent);
  --fg: var(--ink);
  --fg-dim: color-mix(in srgb, var(--ash) 82%, var(--ink));
  --fg-mute: color-mix(in srgb, var(--ash) 88%, var(--ink));
  --glow: color-mix(in srgb, var(--brand-red) 72%, var(--light-red));
  --accent: var(--brand-red);
  --shot-shadow: 0 40px 90px -18px rgba(15, 15, 16, 0.28), 0 12px 30px -12px rgba(15, 15, 16, 0.18);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: var(--bg);
  /* Do not overflow-x:clip <html>: that + backdrop-filter isolates a white
     backdrop root and punches a halo out of the hero glow. Body still clips. */
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

:where(a, button, input):focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 6px;
  box-shadow: 0 0 0 5px rgba(255, 59, 48, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--ui);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color 0.45s var(--expo), color 0.35s ease;
}

img { display: block; max-width: 100%; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--red); color: #fff; padding: 0.7rem 1.1rem;
  border-radius: 0 0 12px 0; font-weight: 600; text-decoration: none;
}
.skip:focus { left: 0; }

kbd {
  font-family: var(--mono);
  font-size: 0.82em;
  padding: 0.1em 0.42em;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--hair);
  box-shadow: 0 1px 0 var(--hair-2);
  white-space: nowrap;
}

/* ---------------- Theme-aware logo swap ---------------- */
.theme-logo { display: none; }
html[data-theme="dark"] .theme-logo--dark { display: block; }
html[data-theme="light"] .theme-logo--light { display: block; }

/* ---------------- NAV ---------------- */
/* Chrome matches styles.css .nav.is-scrolled. Frost lives on ::before so
   isolation/overflow-x clip cannot flatten the backdrop into a white halo. */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.85rem var(--gutter);
  overflow: visible;
  isolation: auto;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease;
  view-transition-name: site-nav;
}
.nav::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--hair-2);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
}
.nav.is-scrolled { border-bottom-color: var(--hair-2); }
html[data-theme="light"] .nav::before {
  background: color-mix(in srgb, var(--white) 88%, transparent);
}
.brandlock { display: inline-flex; align-items: center; text-decoration: none; }
.nav__links { display: flex; gap: 1.4rem; margin-left: auto; }
.nav__links a {
  color: var(--fg-dim); text-decoration: none; font-size: 0.92rem; font-weight: 500;
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--fg); }
.nav__actions { display: flex; align-items: center; gap: 0.9rem; }

.themetoggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface); color: var(--fg-dim);
  border: 1px solid var(--hair-2); cursor: pointer;
  transition: color 0.2s ease, transform 0.2s var(--expo);
}
.themetoggle:hover { color: var(--fg); transform: translateY(-1px); }
html[data-theme="dark"] .themetoggle__moon { display: none; }
html[data-theme="light"] .themetoggle__sun { display: none; }

/* ---------------- Pills ---------------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.55rem 1.15rem; border-radius: 999px;
  font-size: 0.94rem; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--expo), box-shadow 0.25s var(--expo), background-color 0.2s ease, color 0.2s ease;
}
.pill--accent {
  background: var(--red); color: #fff;
  box-shadow: 0 6px 22px -8px color-mix(in srgb, var(--glow) 70%, transparent);
}
.pill--accent:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--glow) 85%, transparent); }
.pill--ghost {
  background: transparent; color: var(--fg);
  border-color: var(--hair);
}
.pill--ghost:hover { transform: translateY(-2px); border-color: var(--fg-dim); }
.pill--lg { padding: 0.8rem 1.7rem; font-size: 1.02rem; }

/* ---------------- Type primitives ---------------- */
.h2 {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  font-weight: 650; letter-spacing: -0.03em; line-height: 1.08;
}
.h2 em, .hero__title em, .cap__title em { font-style: normal; color: var(--red); }
.lede {
  margin-top: 1rem;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--fg-dim); max-width: 38em;
}

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--expo), transform 0.7s var(--expo); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------------- HERO ---------------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 6.4rem var(--gutter) 3.2rem;
  position: relative;
  background:
    radial-gradient(58% 42% at 50% -6%, color-mix(in srgb, var(--glow) 13%, transparent), transparent 70%),
    var(--bg);
}
.hero-lockup {
  position: relative;
  width: clamp(220px, 38vw, 420px);
  aspect-ratio: 1601.41 / 311.75;
  margin: 0 auto clamp(1.6rem, 3.6vw, 2.6rem);
  flex: none;
}
.hero-lockup img {
  position: absolute; inset: 0;
  width: 100%; height: auto; display: block;
  transform-origin: 10% 50%;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-lockup img {
    clip-path: inset(0 80% 0 0);
    transform: translateX(40%) scale(0.06);
  }
  .hero.is-lit .hero-lockup img {
    animation: brandReveal 2.7s var(--expo) both;
  }
}
@keyframes brandReveal {
  0%   { clip-path: inset(0 80% 0 0); transform: translateX(40%) scale(0.06); }
  38%  { clip-path: inset(0 80% 0 0); transform: translateX(40%) scale(1); }
  56%  { clip-path: inset(0 80% 0 0); transform: translateX(40%) scale(1); }
  100% { clip-path: inset(0); transform: none; }
}
.hero__kicker {
  font-size: 0.86rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-mute);
}
.hero.is-lit .hero__kicker.reveal,
.hero.is-lit .hero__title.reveal,
.hero.is-lit .hero__sub.reveal,
.hero.is-lit .hero__cta.reveal,
.hero.is-lit .hero__proof.reveal {
  transition-delay: 1.55s;
}
.hero__title {
  margin-top: 1.1rem;
  font-size: clamp(2.5rem, 7.4vw, 5.4rem);
  font-weight: 680; letter-spacing: -0.04em; line-height: 1.0;
}
.hero__sub {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  color: var(--fg-dim);
  max-width: 42em;
  text-wrap: pretty;
}
.hero__cta { margin-top: 2.2rem; display: flex; gap: 0.9rem; flex-wrap: wrap; justify-content: center; }
.hero__proof { margin-top: 1.1rem; font-size: 0.88rem; color: var(--fg-mute); }
.hero__cue {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border-radius: 999px;
  border: 1.5px solid var(--hair); display: block;
}
.hero__cuedot {
  position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; border-radius: 3px;
  background: var(--red); transform: translateX(-50%);
  animation: cue 1.8s var(--expo) infinite;
}
@keyframes cue { 0% { opacity: 0; top: 7px; } 30% { opacity: 1; } 100% { opacity: 0; top: 22px; } }

/* ---------------- THE NAME ---------------- */
.namedef {
  text-align: center;
  max-width: 720px; margin: 0 auto;
  padding: clamp(1.2rem, 4vh, 2.4rem) var(--gutter) clamp(3.5rem, 9vh, 6rem);
}
.namedef__kicker {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-mute); margin-bottom: 1rem;
}
.namedef__lead {
  display: inline-flex; align-items: baseline; gap: 0.5rem 0.9rem;
  flex-wrap: wrap; justify-content: center;
}
.namedef__word { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1; font-weight: 650; letter-spacing: -0.03em; }
.namedef__meta { font-size: clamp(0.82rem, 1.2vw, 0.95rem); color: var(--fg-mute); }
.namedef__ipa { font-family: var(--mono); color: var(--fg-dim); }
.namedef__def {
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.5;
  color: var(--fg-dim); margin-top: 0.7rem;
}
.namedef__def b { font-style: normal; font-weight: 600; color: var(--red); }

/* ---------------- SCENES (pinned, scroll-staged) ---------------- */
.scene { position: relative; }
/* JS sets the exact height: (stages + 1) * 100vh. Fallback here. */
.scene--demo { height: 700vh; }
.scene--days { height: 400vh; }

.scene__pin {
  position: sticky; top: 0; height: 100vh;
  overflow: clip;
  display: grid; place-items: center;
}
.scene__frame {
  width: min(100%, 1560px);
  height: 100%;
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 400px);
  align-items: center;
  gap: clamp(1rem, 3vw, 3.5rem);
  padding: clamp(3.4rem, 6vh, 5rem) var(--gutter) 0;
}

/* Shot stack */
.shotbox {
  position: relative;
  width: 100%;
  aspect-ratio: 2760 / 1760;
  max-height: 78vh;
  align-self: center;
}
.stagefig {
  position: absolute; inset: 0;
  opacity: 0;
  will-change: opacity, transform;
  border-radius: var(--shot-radius);
  overflow: hidden;
  box-shadow: var(--shot-shadow);
  background: #1a1a1d;
}
.stagefig img { width: 100%; height: 100%; object-fit: cover; }

/* Cursor overlay */
.democursor {
  position: absolute; z-index: 5;
  left: 0; top: 0;
  opacity: 0;
  transform: translate(-4px, -2px);
  pointer-events: none;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}
.democursor .kbdpop {
  position: absolute; left: 22px; top: 18px;
  font-family: var(--mono); font-size: 0.8rem; font-weight: 600;
  color: #fff; background: rgba(20, 20, 23, 0.92);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 0.18rem 0.5rem; border-radius: 7px;
  white-space: nowrap;
  opacity: 0; transform: translateY(4px) scale(0.94);
  transition: opacity 0.25s var(--expo), transform 0.25s var(--expo);
}
.democursor.has-kbd .kbdpop { opacity: 1; transform: none; }
.clickring {
  position: absolute; left: -9px; top: -7px;
  width: 40px; height: 40px; border-radius: 50%;
  border: 2.5px solid var(--red);
  opacity: 0; transform: scale(0.4);
  pointer-events: none;
}
.democursor.is-click .clickring { animation: clickring 0.7s var(--expo) forwards; }
@keyframes clickring {
  0% { opacity: 0.9; transform: scale(0.35); }
  100% { opacity: 0; transform: scale(1.25); }
}

/* Captions column */
.scene__caps { position: relative; min-height: 16rem; }
.cap {
  position: absolute; inset: auto 0 auto 0; top: 50%;
  transform: translateY(calc(-50% + 26px));
  opacity: 0;
  transition: opacity 0.45s var(--expo), transform 0.55s var(--expo);
  pointer-events: none;
}
.cap.is-on { opacity: 1; transform: translateY(-50%); }
.cap__kicker {
  font-size: 0.8rem; font-weight: 650; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--red);
}
.cap__title {
  margin-top: 0.6rem;
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  font-weight: 650; letter-spacing: -0.03em; line-height: 1.12;
  text-wrap: balance;
}
.cap__body { margin-top: 0.85rem; color: var(--fg-dim); font-size: clamp(0.98rem, 1.3vw, 1.08rem); max-width: 34em; }

/* Stage dots */
.scene__dots {
  position: absolute; right: clamp(0.6rem, 1.6vw, 1.6rem); top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 8px;
}
.scene__dots i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--hair);
  transition: background-color 0.3s ease, transform 0.3s var(--expo);
}
.scene__dots i.is-on { background: var(--red); transform: scale(1.35); }

/* ---------------- FUNNEL GRID ---------------- */
.funnel { padding: clamp(5rem, 12vh, 9rem) var(--gutter); max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; }
.funnel__head { max-width: 46em; }
.funnel__grid {
  margin-top: 3rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem;
}
.fcard {
  background: var(--bg-2);
  border: 1px solid var(--hair-2);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: transform 0.35s var(--expo), border-color 0.3s ease;
}
.fcard:hover { transform: translateY(-4px); border-color: var(--hair); }
.fcard__shot { aspect-ratio: 16 / 10; overflow: hidden; background: #1a1a1d; border-bottom: 1px solid var(--hair-2); }
.fcard__shot img { width: 100%; height: 100%; object-fit: cover; }
.fcard__shot--kbd {
  display: grid; place-items: center;
  background:
    radial-gradient(70% 90% at 50% 110%, color-mix(in srgb, #FF3B30 12%, transparent), transparent 70%),
    #1a1a1d;
}
.kbdflow { display: inline-flex; align-items: center; gap: 0.7rem; font-size: 1.05rem; }
.kbdflow kbd {
  font-size: 1rem; padding: 0.34em 0.6em; border-radius: 9px;
  background: #232327; border-color: rgba(237, 239, 247, 0.16);
  color: #fff; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
}
.kbdflow__arrow { color: #6E7180; }
.kbdflow__issue {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--mono); font-size: 0.86rem; font-weight: 600;
  color: #fff; background: #2C2C33;
  border: 1px solid rgba(237, 239, 247, 0.14);
  padding: 0.38em 0.7em; border-radius: 999px;
}
.kbdflow__issue svg { color: #FF3B30; }
.fcard__title { font-size: 1.06rem; font-weight: 650; letter-spacing: -0.01em; margin: 1.1rem 1.2rem 0; }
.fcard__body { margin: 0.45rem 1.2rem 1.25rem; font-size: 0.93rem; color: var(--fg-dim); }

/* ---------------- DEVICES ---------------- */
.devices { padding: clamp(5rem, 12vh, 9rem) var(--gutter); max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; text-align: center; }
.devices__head { max-width: 46em; margin: 0 auto; }
.devices__row {
  margin-top: 3rem;
  display: flex; gap: clamp(0.7rem, 2vw, 1.6rem); justify-content: center; align-items: flex-end; flex-wrap: wrap;
}
.phone { width: clamp(168px, 20vw, 236px); }
.phone--hero { width: clamp(180px, 22vw, 258px); }
.phone__bezel {
  position: relative;
  background: linear-gradient(165deg, #2c2c30, #0b0b0d);
  border-radius: clamp(28px, 3.4vw, 42px);
  padding: 7px;
  box-shadow:
    var(--shot-shadow),
    inset 0 0 0 1.5px color-mix(in srgb, var(--bone) 16%, transparent),
    inset 0 0 0 6px #070708;
}
.phone__bezel img {
  display: block; width: 100%; height: auto;
  border-radius: clamp(22px, 2.8vw, 36px);
}
.phone figcaption { margin-top: 0.95rem; font-size: 0.9rem; color: var(--fg-dim); }
.watchrow {
  margin-top: 3.4rem;
  display: flex; gap: clamp(1.4rem, 3vw, 2.6rem); justify-content: center; align-items: flex-end; flex-wrap: wrap;
}
.watchface { width: clamp(92px, 12vw, 132px); }
.watchface img {
  width: 100%; height: auto; display: block;
  border-radius: 28%;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,0.45));
}
.devices__soon {
  margin-top: 1.8rem; display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.92rem; color: var(--fg-mute);
  border: 1px solid var(--hair-2); border-radius: 999px; padding: 0.45rem 1.05rem;
}

/* ---------------- MAC KIT (feature lists) ---------------- */
.kit {
  padding: clamp(5rem, 12vh, 9rem) var(--gutter);
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin: 0 auto;
  border-top: 1px solid var(--hair-2);
}
.kit__head { max-width: 46em; }
.kitflag {
  margin-top: 3rem;
  background: var(--bg-2);
  border: 1px solid var(--hair-2);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem);
}
.kitflag__kicker {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.kitflag__title {
  margin-top: 0.35rem;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 650;
  letter-spacing: -0.03em;
}
.kitflag__lead {
  margin-top: 0.85rem;
  max-width: 48em;
  color: var(--fg-dim);
}
.kitflag__lead em { font-style: italic; color: var(--fg); }
.kitflag__cols {
  margin-top: 2.1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem 2rem;
}
.kitcol__h {
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-bottom: 0.7rem;
}
.kitcol__h--follow { margin-top: 1.5rem; }
.kitlist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.kitlist li {
  position: relative;
  padding-left: 0.95rem;
  font-size: 0.93rem;
  line-height: 1.45;
  color: var(--fg-dim);
}
.kitlist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
}
.kitlist em { font-style: italic; color: var(--fg); }
.kitspec {
  margin-top: 0.4rem;
  border-top: 1px solid var(--hair-2);
}
.kitspec__row {
  display: grid;
  grid-template-columns: minmax(12rem, 17.5rem) 1fr;
  gap: 1.2rem 2.4rem;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--hair-2);
}
.kitspec__title {
  font-size: 1.18rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.kitspec__keys {
  margin-top: 0.45rem;
  font-size: 0.84rem;
  color: var(--fg-mute);
  line-height: 1.55;
}
.soon-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: soon 2.4s ease-in-out infinite; }
@keyframes soon { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

/* ---------------- YOURS ---------------- */
.yours {
  padding: clamp(5rem, 12vh, 9rem) var(--gutter);
  background:
    radial-gradient(50% 40% at 50% 0%, color-mix(in srgb, var(--glow) 7%, transparent), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--hair-2);
  border-bottom: 1px solid var(--hair-2);
}
.yours__head { max-width: 46em; margin: 0 auto; text-align: center; }
.yours__grid {
  margin: 3rem auto 0; max-width: var(--maxw);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem;
}
.ycard {
  background: var(--raised);
  border: 1px solid var(--hair-2);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem);
}
.ycard__icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  color: var(--red);
  background: color-mix(in srgb, var(--red) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--red) 22%, transparent);
}
.ycard__title { margin-top: 1.3rem; font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 650; letter-spacing: -0.02em; }
.ycard__body { margin-top: 0.8rem; color: var(--fg-dim); }
.ycard__fine { margin-top: 1rem; font-size: 0.84rem; color: var(--fg-mute); }
.ycard__term {
  margin-top: 1.2rem;
  font-family: var(--mono); font-size: 0.88rem;
  background: var(--ink); color: var(--bone);
  border: 1px solid var(--hair-2);
  border-radius: 12px; padding: 0.85rem 1.05rem;
  overflow-x: auto; white-space: nowrap;
}
html[data-theme="light"] .ycard__term { background: var(--ink); }
.term__prompt { color: var(--red); margin-right: 0.5ch; }
.term__note { color: var(--fg-mute); margin-left: 1.2ch; }

/* ---------------- ACCESS ---------------- */
.access { padding: clamp(5.5rem, 14vh, 10rem) var(--gutter); text-align: center; }
.access__inner { max-width: 44em; margin: 0 auto; }
.access__cta { margin-top: 2rem; }
.access__form {
  margin: 1.6rem auto 0; display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap;
}
.access__input {
  font: inherit; color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 0.72rem 1.2rem;
  min-width: min(21rem, 72vw);
}
.access__input::placeholder { color: var(--fg-mute); }
.access__note { margin-top: 0.9rem; font-size: 0.9rem; color: var(--fg-mute); min-height: 1.4em; }
.access__note:focus { outline: none; }
.access.is-sent .access__form { display: none; }
.access__or {
  margin: 1.5rem auto 0; max-width: 16rem;
  display: flex; align-items: center; gap: 0.8rem;
  color: var(--fg-mute); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em;
}
.access__or::before, .access__or::after { content: ""; flex: 1; height: 1px; background: var(--hair-2); }
.access__nojs { display: none; margin-top: 1rem; color: var(--fg-dim); }
.access__nojs a { color: var(--red); }

/* Plain-text integrations / OAuth disclosure */
.integrations {
  border-top: 1px solid var(--hair-2);
  padding: 2rem var(--gutter);
  max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto;
}
.integrations p { font-size: 0.86rem; color: var(--fg-dim); max-width: 72em; }
.integrations a { color: inherit; }

/* ---------------- FOOTER ---------------- */
.footer {
  border-top: 1px solid var(--hair-2);
  padding: 2.6rem var(--gutter) 2.2rem;
  max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto;
}
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; flex-wrap: wrap; }
.footer__links { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.footer__links a { color: var(--fg-dim); text-decoration: none; font-size: 0.9rem; }
.footer__links a:hover { color: var(--fg); }
.footer__tag { margin-top: 1.6rem; font-size: 0.92rem; color: var(--fg-mute); }
.footer__legal { margin-top: 0.9rem; font-size: 0.78rem; color: var(--fg-mute); max-width: 56em; }
.footer__legal a { color: inherit; }

/* Film grain — same overlay as the live site */
.grain {
  position: fixed; inset: -15%; z-index: 9990; pointer-events: none;
  opacity: 0.04; mix-blend-mode: overlay; will-change: transform;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 0.7s steps(5) infinite;
}
@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-4%, 3%); }
  40%  { transform: translate(3%, -4%); }
  60%  { transform: translate(-3%, -2%); }
  80%  { transform: translate(4%, 3%); }
  100% { transform: translate(0, 0); }
}
html[data-theme="light"] .grain { display: none; }

@view-transition { navigation: auto; }

/* ================= MOBILE ================= */
@media (max-width: 860px) {
  .nav { gap: 0.9rem; padding: 0.7rem 1rem; }
  .nav__links { display: none; }
  .hero { padding-top: 5.6rem; min-height: auto; }
  .hero-lockup { width: clamp(200px, 62vw, 300px); margin-bottom: 1.3rem; }
  .hero__cue { display: none; }
  .phone, .phone--hero { width: min(240px, 72vw); }
  .watchface { width: 88px; }
  .kitflag__cols { grid-template-columns: 1fr; gap: 1.6rem; }
  .kitspec__row { grid-template-columns: 1fr; gap: 0.7rem; padding: 1.4rem 0; }
  .scene__frame {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-content: center;
    gap: 1.6rem;
    padding-top: 4.2rem;
  }
  .scene__caps { order: 0; min-height: 11.5rem; }
  .shotbox { order: 1; max-height: 52vh; align-self: start; }
  .cap { top: 0; transform: translateY(26px); }
  .cap.is-on { transform: translateY(0); }
  .cap__body { font-size: 0.94rem; }
  .scene__dots { right: 0.5rem; top: auto; bottom: 1.2rem; transform: none; flex-direction: row; left: 50%; right: auto; transform: translateX(-50%); }

  /* Mobile focus-crop: zoom each shot toward its story region so the Mac
     window stays legible on a phone. Percent origins tuned per shot. */
  .shotbox .stagefig img { transform: scale(var(--mz, 1.85)); transform-origin: var(--mo, 42% 38%); }
  .stagefig[data-shot="home"] img,
  .stagefig[data-shot="note"] img { --mz: 1.7; --mo: 36% 32%; }
  .stagefig[data-shot="select"] img,
  .stagefig[data-shot="picker"] img,
  .stagefig[data-shot="receipt"] img { --mz: 1.95; --mo: 33% 30%; }
  .stagefig[data-shot="tasks"] img { --mz: 1.7; --mo: 40% 32%; }
  .stagefig[data-shot="read"] img { --mz: 1.45; --mo: 52% 40%; }
  .stagefig[data-shot="past"] img { --mz: 1.9; --mo: 32% 32%; }
  .stagefig[data-shot="month"] img { --mz: 1.35; --mo: 50% 45%; }

  .democursor { display: none; }
}

/* ============ Reduced motion / no-JS static fallback ============ */
@media (prefers-reduced-motion: reduce) {
  .grain { display: none; }
  .hero-lockup img { clip-path: none !important; transform: none !important; animation: none !important; }
  .scene { height: auto !important; }
  .scene__pin { position: static; height: auto; overflow: visible; display: block; padding: 3rem 0; }
  .scene__frame { grid-template-columns: 1fr; height: auto; }
  .shotbox { position: static; aspect-ratio: auto; max-height: none; }
  .stagefig { position: static; opacity: 1; margin: 1.4rem 0; }
  .stagefig img { transform: none !important; }
  .scene__caps { min-height: 0; }
  .cap { position: static; opacity: 1; transform: none; margin: 2rem 0 0.5rem; }
  .democursor, .scene__dots, .hero__cuedot { display: none; }
}
