/* ==========================================================================
   Iyal — shared design system
   Single source of truth for every page. Do not duplicate these rules inline.

   Theming: set data-app on <body> to inherit an app's real in-product colour.
     <body data-app="brand">    house / portfolio pages
     <body data-app="pace">     IyalPace   — gold  #F1BD1D
     <body data-app="sip">      IyalSip    — blue  #42A5F5
     <body data-app="garage">   IyalGarage — orange #E76F00
   Accents are pixel-sampled from the shipped app screenshots so the site and
   the product are the same colour, not approximately the same colour.
   ========================================================================== */

/* --- 1. Tokens ----------------------------------------------------------- */

:root {
  color-scheme: dark;

  /* Brand constants — from the Iyal mark. Never themed. */
  --brand-green: #2e5e3e;
  --brand-green-bright: #4a8a5c;
  --brand-terracotta: #c2683d;
  --brand-terracotta-deep: #a0552f;
  --brand-cream: #f5f0e4;

  /* Type */
  --font: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  --font-num: "Inter", ui-sans-serif, -apple-system, sans-serif;

  /* Ink — shared across all themes */
  --text: #f2efe9;
  --text-soft: rgba(242, 239, 233, 0.72);
  --text-mute: rgba(242, 239, 233, 0.52);
  --line: rgba(242, 239, 233, 0.12);
  --line-soft: rgba(242, 239, 233, 0.07);

  /* Layout */
  --w: 1080px;
  --w-narrow: 720px;
  --gut: 24px;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Default (brand) surface + accent — overridden per theme below */
  --bg: #0c120e;
  --surface: #141c16;
  --surface-2: #1b251e;
  --accent: #c2683d;
  --accent-2: #4a8a5c;
  --accent-ink: #1c0e06;
  --glow: rgba(194, 104, 61, 0.3);
}

body[data-app="brand"] {
  --bg: #0c120e;
  --surface: #141c16;
  --surface-2: #1b251e;
  --accent: #c2683d;
  --accent-2: #4a8a5c;
  --accent-ink: #1c0e06;
  --glow: rgba(194, 104, 61, 0.28);
}

body[data-app="pace"] {
  --bg: #0a0908;
  --surface: #121110;
  --surface-2: #1a1712;
  --accent: #f1bd1d;
  --accent-2: #e8b830;
  --accent-ink: #1a1400;
  --glow: rgba(241, 189, 29, 0.24);
}

body[data-app="sip"] {
  --bg: #090e1b;
  --surface: #0f1829;
  --surface-2: #142138;
  --accent: #42a5f5;
  --accent-2: #1565c0;
  --accent-ink: #04121f;
  --glow: rgba(66, 165, 245, 0.26);
}

body[data-app="garage"] {
  --bg: #111111;
  --surface: #1a1a1a;
  --surface-2: #212121;
  --accent: #e76f00;
  --accent-2: #b4560a;
  --accent-ink: #1a0e00;
  --glow: rgba(231, 111, 0, 0.26);
}

/* --- 2. Reset ------------------------------------------------------------ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

input {
  font: inherit;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

/* --- 3. Layout ---------------------------------------------------------- */

.wrap {
  width: min(var(--w), calc(100% - var(--gut) * 2));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(var(--w-narrow), calc(100% - var(--gut) * 2));
  margin-inline: auto;
}

.section {
  padding: clamp(64px, 9vw, 108px) 0;
}

.section-tight {
  padding: clamp(44px, 6vw, 72px) 0;
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--line-soft);
}

.rule {
  height: 1px;
  background: var(--line-soft);
  border: 0;
}

/* --- 4. Typography ------------------------------------------------------ */

h1,
h2,
h3,
h4 {
  font-weight: 760;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}

.h-xl {
  font-size: clamp(38px, 7.2vw, 76px);
  letter-spacing: -0.035em;
}

.h-lg {
  font-size: clamp(30px, 4.6vw, 48px);
}

.h-md {
  font-size: clamp(23px, 3vw, 31px);
}

.h-sm {
  font-size: clamp(18px, 2.1vw, 21px);
  letter-spacing: -0.015em;
}

.lead {
  color: var(--text-soft);
  font-size: clamp(16px, 2.1vw, 19px);
  line-height: 1.68;
  text-wrap: pretty;
}

.small {
  font-size: 14px;
  color: var(--text-mute);
  line-height: 1.6;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  line-height: 1;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  flex: none;
}

.eyebrow-c {
  justify-content: center;
}

.eyebrow-c::after {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  flex: none;
}

.accent {
  color: var(--accent);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head .eyebrow {
  margin-bottom: 18px;
}

.section-head .lead {
  margin-top: 16px;
}

/* --- 5. Header / nav ---------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}

.nav {
  width: min(var(--w), calc(100% - var(--gut) * 2));
  margin-inline: auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
  margin-right: auto;
}

.brand svg {
  flex: none;
}

.brand em {
  font-style: normal;
  color: var(--text-mute);
  font-weight: 600;
}

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

.nav-links a {
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--text-mute);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  transition: color 0.18s, background 0.18s;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav-links a[aria-current="page"] {
  color: var(--accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px !important;
  border-radius: 10px;
  background: var(--accent) !important;
  color: var(--accent-ink) !important;
  font-weight: 750 !important;
  margin-left: 8px;
}

.nav-cta:hover {
  filter: brightness(1.08);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  place-items: center;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

/* --- 6. Buttons --------------------------------------------------------- */

.btn-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 730;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 0.18s var(--ease), filter 0.18s, background 0.18s,
    border-color 0.18s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 26px -10px var(--glow);
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: var(--surface-2);
}

/* App Store badge — real proportions, no fake Play badge anywhere */
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px 11px 18px;
  border-radius: 13px;
  background: var(--text);
  color: #0b0b0b;
  text-decoration: none;
  transition: transform 0.18s var(--ease), filter 0.18s;
}

.btn-store:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.btn-store svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.btn-store .bs-txt {
  display: block;
  line-height: 1.15;
}

.btn-store .bs-txt span {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.66;
}

.btn-store .bs-txt strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Unavailable store link — never a dead <a>, always a labelled state */
.btn-store.is-soon {
  background: transparent;
  color: var(--text-soft);
  border: 1px dashed var(--line);
  cursor: default;
}

.btn-store.is-soon:hover {
  transform: none;
  filter: none;
}

.btn-store.is-soon svg {
  opacity: 0.5;
}

.btn-store.is-soon .bs-txt strong {
  color: var(--text);
}

/* --- 7. Tags & badges --------------------------------------------------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.7;
  white-space: nowrap;
}

.tag-live {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
}

.tag-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.tag-soon {
  background: transparent;
  color: var(--text-soft);
  border: 1px dashed var(--line);
}

.tag-soon::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
}

.tag-planned {
  background: var(--surface-2);
  color: var(--text-mute);
  border: 1px solid var(--line-soft);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
}

.pills li {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  color: var(--text-soft);
  font-size: 12.5px;
  font-weight: 620;
}

/* --- 8. Hero ------------------------------------------------------------ */

.hero {
  position: relative;
  padding: clamp(64px, 9vw, 116px) 0 clamp(56px, 7vw, 88px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% 20% auto -20%;
  height: 620px;
  background: radial-gradient(
    ellipse at 30% 40%,
    var(--glow),
    transparent 62%
  );
  opacity: 0.75;
  pointer-events: none;
}

.hero > * {
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero h1 {
  margin: 20px 0 22px;
}

.hero .lead {
  max-width: 54ch;
}

.hero-facts {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}

.hero-fact strong {
  display: block;
  font-size: 15px;
  font-weight: 720;
  letter-spacing: -0.01em;
}

.hero-fact span {
  display: block;
  font-size: 13.5px;
  color: var(--text-mute);
}

.store-row {
  margin-top: 32px;
}

.store-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-mute);
}

/* --- 9. Screenshot showcase (frameless) --------------------------------- */
/* No device chrome. The screen sits on the page as an object with a hairline
   edge and an accent bloom behind it, so dark app UI melts into a dark page. */

.shot {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 40px 80px -32px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.shot img {
  width: 100%;
  height: auto;
  display: block;
}

.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.09),
    rgba(255, 255, 255, 0) 34%
  );
}

.shot-bloom {
  position: relative;
  isolation: isolate;
}

.shot-bloom::before {
  content: "";
  position: absolute;
  inset: 12% -12% -8% -12%;
  background: radial-gradient(ellipse at center, var(--glow), transparent 68%);
  filter: blur(24px);
  z-index: -1;
  pointer-events: none;
}

.shot-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
}

/* Offset via margin, not transform — [data-reveal] owns transform on these. */
.shot-stack .shot-fig:nth-child(even) {
  margin-top: 34px;
}

.shot-fig {
  margin: 0;
}

.shot-cap {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--text-mute);
  line-height: 1.55;
}

.shot-cap b {
  display: block;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Single hero screen, narrower */
.shot-hero {
  max-width: 320px;
  margin-inline: auto;
}

/* --- 10. Cards ---------------------------------------------------------- */

.grid {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  position: relative;
  padding: 28px 26px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s var(--ease);
}

.card-hover:hover {
  border-color: color-mix(in srgb, var(--card-accent, var(--accent)) 42%, transparent);
  transform: translateY(-3px);
}

.card-num {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 14px;
}

.card h3 {
  font-size: 19px;
  margin-bottom: 9px;
}

.card p {
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.65;
}

/* Portfolio card — themed per app via --card-accent */
.app-card {
  --card-accent: var(--accent);
  display: flex;
  flex-direction: column;
  padding: 28px 26px 26px;
  text-decoration: none;
}

.app-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--card-accent);
}

.app-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--card-accent) 20%, transparent),
    transparent 70%
  );
  pointer-events: none;
}

.app-card > * {
  position: relative;
  z-index: 1;
}

.app-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex: none;
  object-fit: cover;
  border: 1px solid var(--line-soft);
  background: var(--surface-2);
}

.app-icon-ph {
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--card-accent) 20%, var(--surface-2));
}

.app-card h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.app-card .kicker {
  font-size: 13px;
  font-weight: 650;
  color: var(--card-accent);
  margin-bottom: 12px;
}

.app-card p {
  flex: 1;
  margin-bottom: 20px;
}

.app-card .pills {
  margin-bottom: 20px;
}

.app-card .go {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14.5px;
  font-weight: 730;
  color: var(--card-accent);
  text-decoration: none;
  margin-top: auto;
}

.app-card .go svg {
  transition: transform 0.2s var(--ease);
}

.app-card:hover .go svg,
.app-card .go:hover svg {
  transform: translateX(4px);
}

.app-card .go.is-muted {
  color: var(--text-mute);
}

/* Card footer: page link plus a compact store link */
.card-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: auto;
}

.store-mini {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 9px;
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 680;
  text-decoration: none;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}

.store-mini svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.store-mini:hover {
  color: var(--text);
  border-color: var(--card-accent, var(--accent));
  background: var(--surface-2);
}

/* --- 11. Feature list --------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}

.split-flip > *:first-child {
  order: 2;
}

.ticks {
  list-style: none;
  display: grid;
  gap: 13px;
  margin-top: 26px;
}

.ticks li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 15px;
  color: var(--text-soft);
}

.ticks li::before {
  content: "";
  width: 20px;
  height: 20px;
  margin-top: 4px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

.ticks li b {
  color: var(--text);
  font-weight: 680;
}

/* Numbered how-it-works steps */
.steps {
  counter-reset: step;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step {
  padding: 26px 24px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line-soft);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 14px;
}

.step h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-soft);
  font-size: 14.5px;
}

/* Timeline / roadmap */
.timeline {
  display: grid;
  gap: 0;
  border-left: 1px solid var(--line);
  margin-left: 8px;
}

.tl-item {
  position: relative;
  padding: 0 0 34px 30px;
}

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}

.tl-item.is-later::before {
  border-color: var(--text-mute);
}

.tl-when {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 7px;
}

.tl-item.is-later .tl-when {
  color: var(--text-mute);
}

.tl-item h3 {
  font-size: 18px;
  margin-bottom: 7px;
}

.tl-item p {
  color: var(--text-soft);
  font-size: 14.5px;
}

/* --- 12. Motion stage --------------------------------------------------- */

.stage {
  position: relative;
  border-radius: var(--r-lg);
  background: linear-gradient(
    170deg,
    var(--surface-2),
    var(--surface) 62%
  );
  border: 1px solid var(--line-soft);
  padding: clamp(22px, 3vw, 34px);
  overflow: hidden;
}

.stage-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.stage-label span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.stage-figure {
  font-family: var(--font-num);
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.stage svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Draw-on line */
.draw {
  stroke-dasharray: var(--len, 1000);
  stroke-dashoffset: var(--len, 1000);
  animation: draw 2.1s var(--ease-out) forwards;
}

.draw-2 {
  animation-delay: 1.5s;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.pop {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: pop 0.5s var(--ease-out) forwards;
}

@keyframes pop {
  0% {
    opacity: 0;
    transform: scale(0.2);
  }
  70% {
    transform: scale(1.25);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.pulse {
  animation: pulse 2.4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(1.7);
  }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out) forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- 13. Email capture -------------------------------------------------- */

.signup {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 64px) clamp(24px, 4vw, 56px);
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, var(--surface-2), var(--surface) 70%);
  border: 1px solid var(--line);
}

.signup::before {
  content: "";
  position: absolute;
  inset: auto -10% -60% 40%;
  height: 320px;
  background: radial-gradient(ellipse at center, var(--glow), transparent 66%);
  pointer-events: none;
}

.signup > * {
  position: relative;
}

.signup h2 {
  margin: 16px 0 14px;
}

.signup .lead {
  max-width: 52ch;
}

.form {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  max-width: 480px;
  flex-wrap: wrap;
}

.form input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.18s;
}

.form input[type="email"]::placeholder {
  color: var(--text-mute);
}

.form input[type="email"]:focus {
  border-color: var(--accent);
  outline: none;
}

.form button {
  padding: 14px 26px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 15px;
  font-weight: 750;
  transition: filter 0.18s, transform 0.18s var(--ease);
}

.form button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.form-note {
  margin-top: 13px;
  font-size: 13px;
  color: var(--text-mute);
}

.form-note a {
  color: var(--text-soft);
}

/* --- 14. Prose (privacy / support) -------------------------------------- */

.prose {
  max-width: 68ch;
}

.prose > * + * {
  margin-top: 18px;
}

.prose h2 {
  font-size: clamp(22px, 3vw, 28px);
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  scroll-margin-top: 96px;
}

.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose h3 {
  font-size: 18px;
  margin-top: 32px;
}

.prose p,
.prose li {
  color: var(--text-soft);
  font-size: 15.5px;
  line-height: 1.75;
}

.prose strong {
  color: var(--text);
  font-weight: 680;
}

.prose ul,
.prose ol {
  padding-left: 22px;
  display: grid;
  gap: 9px;
}

.prose a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 2px 6px;
}

.callout {
  padding: 20px 22px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--accent);
}

.callout p {
  font-size: 15px;
}

/* Table of contents */
.toc {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 22px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line-soft);
}

.toc strong {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 14px;
}

.toc ol {
  list-style: none;
  display: grid;
  gap: 9px;
  counter-reset: toc;
}

.toc a {
  display: block;
  font-size: 14px;
  color: var(--text-soft);
  text-decoration: none;
  line-height: 1.45;
}

.toc a:hover {
  color: var(--accent);
}

.doc-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

/* FAQ */
.faq {
  display: grid;
  gap: 10px;
  max-width: 760px;
}

.faq details {
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-size: 15.5px;
  font-weight: 680;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.18s;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  width: 16px;
  height: 16px;
  flex: none;
  background: currentColor;
  opacity: 0.5;
  transition: transform 0.22s var(--ease);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.faq summary:hover {
  color: var(--accent);
}

.faq details[open] summary::after {
  transform: rotate(180deg);
}

.faq .faq-body {
  padding: 0 22px 20px;
}

.faq .faq-body p {
  color: var(--text-soft);
  font-size: 15px;
}

.faq .faq-body p + p {
  margin-top: 12px;
}

/* --- 15. Footer --------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--surface);
  margin-top: clamp(56px, 8vw, 96px);
  padding: clamp(44px, 6vw, 64px) 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-brand p {
  margin-top: 14px;
  color: var(--text-mute);
  font-size: 14px;
  max-width: 30ch;
  line-height: 1.6;
}

.footer-col strong {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 15px;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-col a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 14.5px;
  transition: color 0.18s;
}

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

.footer-col .muted {
  color: var(--text-mute);
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-col .muted em {
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px dashed var(--line);
  border-radius: 999px;
  padding: 1px 7px;
}

.footer-base {
  margin-top: clamp(36px, 5vw, 52px);
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-mute);
  font-size: 13.5px;
}

.footer-base a {
  color: var(--text-soft);
  text-decoration: none;
}

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

/* --- 16. Scroll reveal -------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* --- 17. Responsive ----------------------------------------------------- */

@media (max-width: 940px) {
  .grid-3,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .doc-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

@media (max-width: 820px) {
  :root {
    --gut: 18px;
  }

  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .split-flip > *:first-child {
    order: 0;
  }

  .hero-media {
    max-width: 340px;
    margin-inline: auto;
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gut) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .site-header.is-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 12px 14px;
    font-size: 15px;
  }

  .nav-cta {
    margin: 8px 0 0;
    justify-content: center;
  }

  .nav-toggle {
    display: grid;
  }

  .shot-stack .shot-fig:nth-child(even) {
    transform: none;
  }
}

@media (max-width: 620px) {
  .grid-2,
  .grid-3,
  .steps {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .shot-stack {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-inline: auto;
  }

  .hero-facts {
    gap: 18px 24px;
  }
}

/* --- 18. Reduced motion / print ----------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .draw {
    stroke-dashoffset: 0;
  }

  .pop,
  .fade-up {
    opacity: 1;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .signup,
  .stage {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }

  .prose p,
  .prose li {
    color: #333;
  }
}
