/* ============================================================
   Catalyst — marketing site
   Warm, candlelit, ember. Cream daylight world.
   ============================================================ */

:root {
  /* canvas */
  --cream:        #FDF8EC;
  --cream-2:      #F7EDD9;
  --cream-3:      #F1E2C4;
  --surface:      #FFFDF7;

  /* ink */
  --ink:          #2A1B0B;
  --ink-soft:     rgba(42, 27, 11, 0.62);
  --ink-faint:    rgba(42, 27, 11, 0.40);
  --line:         rgba(42, 27, 11, 0.12);
  --line-strong:  rgba(42, 27, 11, 0.20);

  /* ember accent */
  --accent:       #E89A3C;
  --accent-2:     #D8812A;
  --accent-deep:  #C8701E;
  --grad:         linear-gradient(135deg, #E89A3C, #D8812A);
  --on-accent:    #2A1B0B;
  --accent-tint:  rgba(216, 129, 42, 0.10);

  /* type */
  --font-wordmark: "Space Grotesk", system-ui, sans-serif;
  --font-display:  "EB Garamond", Georgia, serif;
  --font-ui:       "Public Sans", system-ui, sans-serif;

  /* shape */
  --radius:       22px;
  --radius-sm:    14px;
  --shadow-card:  0 30px 56px -28px rgba(130, 75, 18, 0.42), 0 8px 20px -12px rgba(130, 75, 18, 0.24);
  --shadow-soft:  0 14px 34px -18px rgba(130, 75, 18, 0.30);

  /* layout */
  --maxw:         1140px;
  --gutter:       clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  overflow-x: hidden;
}

::selection { background: rgba(216, 129, 42, 0.24); color: var(--ink); }

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

/* ---- candle grain: a faint warm vignette on the whole page ---- */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(232, 154, 60, 0.10) 0%, transparent 55%),
    radial-gradient(90% 60% at 100% 0%, rgba(216, 129, 42, 0.05) 0%, transparent 50%);
}

/* ============================================================
   Spark mark + wordmark
   ============================================================ */
.spark { display: inline-block; flex-shrink: 0; }

.wordmark {
  display: inline-flex; align-items: center; gap: 0.42em;
  font-family: var(--font-wordmark);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
.wordmark .mark { color: var(--accent-2); }
.wordmark .name { font-size: 1em; }
.wordmark .pro {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.5em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-accent);
  background: var(--grad);
  padding: 0.34em 0.62em;
  border-radius: 100px;
  margin-left: 0.1em;
  align-self: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow .spark { color: var(--accent-2); }

/* ============================================================
   App Store badge (official-style)
   ============================================================ */
.appstore {
  display: inline-flex; align-items: center; gap: 12px;
  background: #1B130A;
  color: #FBF3E4;
  text-decoration: none;
  padding: 12px 20px 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(251, 243, 228, 0.14);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.appstore:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -18px rgba(130, 75, 18, 0.45); }
.appstore.soon { cursor: default; opacity: 0.92; }
.appstore.soon:hover { transform: none; box-shadow: var(--shadow-soft); }
.appstore .as-tag { font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; }
.appstore svg { width: 26px; height: 26px; flex-shrink: 0; }
.appstore .as-text { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.appstore .as-small { font-family: var(--font-ui); font-size: 11px; letter-spacing: 0.02em; opacity: 0.82; }
.appstore .as-big { font-family: var(--font-wordmark); font-weight: 500; font-size: 19px; letter-spacing: 0.01em; }

/* ============================================================
   Buttons / links
   ============================================================ */
.text-link {
  font-family: var(--font-ui); font-weight: 600; font-size: 0.95rem;
  color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: 7px;
  transition: gap 0.18s ease, color 0.18s ease;
}
.text-link:hover { gap: 11px; color: var(--accent-deep); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.site-header .wordmark { font-size: 23px; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; padding-top: clamp(40px, 7vw, 84px); padding-bottom: clamp(48px, 7vw, 96px); }

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy { max-width: 560px; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(46px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 22px 0 0;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--accent-deep); }
.hero .subhead {
  font-family: var(--font-ui);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 30px 0 0;
  max-width: 31em;
}
.hero-actions {
  margin-top: 34px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.hero-note {
  font-family: var(--font-ui); font-size: 13.5px; color: var(--ink-faint);
  display: flex; align-items: center; gap: 8px;
}

/* phone stage */
.hero-stage {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hero-glow {
  position: absolute; width: 100%; max-width: 100vw; height: 124%; left: 0; top: -10%;
  background: radial-gradient(closest-side, rgba(232, 154, 60, 0.26) 0%, rgba(232, 154, 60, 0.08) 52%, transparent 74%);
  pointer-events: none; z-index: 0;
}
.hero-phone { position: relative; z-index: 1; width: clamp(224px, 27vw, 272px); }
.hero-phone img {
  width: 100%; height: auto;
  filter: drop-shadow(0 34px 46px rgba(120, 68, 16, 0.30)) drop-shadow(0 10px 18px rgba(120, 68, 16, 0.16));
}
@media (prefers-reduced-motion: no-preference) {
  .hero-phone { animation: phoneFloat 6.5s ease-in-out infinite; }
}
@keyframes phoneFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* floating spark ornaments */
.float-spark { position: absolute; color: var(--accent); opacity: 0.5; z-index: 2; }

/* ---- Hero variant switching (A = split, B = centered fan) ---- */
.hero-b-only { display: none; }
body.hero-b .hero-a-only { display: none; }
body.hero-b .hero-b-only { display: revert; }

/* Hero B — centered, fanned trio */
body.hero-b .hero { text-align: center; padding-bottom: clamp(20px, 4vw, 48px); }
body.hero-b .hero-center { max-width: 880px; margin: 0 auto; }
body.hero-b .hero-center .eyebrow { justify-content: center; }
body.hero-b .hero h1 { font-size: clamp(48px, 8.4vw, 100px); }
body.hero-b .hero .subhead { margin-inline: auto; }
body.hero-b .hero-actions { justify-content: center; }
.hero-fan {
  position: relative;
  height: clamp(360px, 44vw, 540px);
  margin-top: clamp(20px, 3vw, 36px);
  display: flex; align-items: flex-start; justify-content: center;
}
.hero-fan .fan-glow {
  position: absolute; top: -6%; left: 50%; transform: translateX(-50%);
  width: min(760px, 92vw); height: 120%;
  background: radial-gradient(closest-side, rgba(232, 154, 60, 0.20) 0%, rgba(232, 154, 60, 0.06) 55%, transparent 76%);
  pointer-events: none;
}
.hero-fan figure { position: absolute; top: 0; margin: 0; width: clamp(178px, 22vw, 244px); }
.hero-fan img {
  width: 100%; height: auto;
  filter: drop-shadow(0 34px 48px rgba(120, 68, 16, 0.30)) drop-shadow(0 10px 18px rgba(120, 68, 16, 0.16));
}
.hero-fan .f-left  { transform: translateX(-64%) translateY(40px) rotate(-9deg); z-index: 1; }
.hero-fan .f-right { transform: translateX(64%) translateY(40px) rotate(9deg); z-index: 1; }
.hero-fan .f-mid   { transform: translateY(-4px); z-index: 2; }

@media (max-width: 720px) {
  .hero-fan .f-left  { transform: translateX(-50%) translateY(54px) rotate(-8deg); opacity: 0.92; }
  .hero-fan .f-right { transform: translateX(50%) translateY(54px) rotate(8deg); opacity: 0.92; }
}

/* compare switcher (dev affordance — remove before deploy) */
.variant-switch {
  position: fixed; z-index: 80; right: 18px; bottom: 18px;
  display: flex; align-items: center; gap: 6px;
  background: rgba(27, 19, 10, 0.92); color: #FBF3E4;
  padding: 7px 9px 7px 14px; border-radius: 100px;
  font-family: var(--font-ui); font-size: 12.5px; font-weight: 600;
  box-shadow: 0 14px 30px -12px rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
}
.variant-switch .lbl { opacity: 0.62; letter-spacing: 0.04em; margin-right: 4px; }
.variant-switch button {
  border: none; cursor: pointer; font: inherit;
  background: transparent; color: rgba(251, 243, 228, 0.7);
  padding: 6px 13px; border-radius: 100px; transition: all 0.18s ease;
}
.variant-switch button.on { background: var(--grad); color: var(--on-accent); }

/* ============================================================
   Section scaffold
   ============================================================ */
section { position: relative; }
.section-pad { padding-block: clamp(64px, 9vw, 128px); }
.section-head { max-width: 640px; }
.section-head h2 {
  font-family: var(--font-wordmark);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 16px 0 0;
  text-wrap: balance;
}
.section-head p {
  font-family: var(--font-ui);
  font-size: clamp(16px, 1.3vw, 18.5px);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 18px 0 0;
}

/* ============================================================
   The deal — three steps, each shown on a phone
   ============================================================ */
.steps { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
.steps .section-head { max-width: 660px; margin: 0 auto; text-align: center; }
.steps .section-head .eyebrow { justify-content: center; }
.steps .section-head h2 { margin-top: 18px; }
.steps .lead {
  font-family: var(--font-ui); font-size: clamp(16px, 1.3vw, 18.5px); line-height: 1.6;
  color: var(--ink-soft); margin: 18px auto 0; max-width: 48ch;
}
.steps-grid {
  margin-top: clamp(48px, 6.5vw, 84px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 60px);
  position: relative;
}
/* faint thread connecting the three phones */
.steps-grid::before {
  content: ""; position: absolute; top: 128px; left: 16.66%; right: 16.66%; height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 7px, transparent 7px 16px);
  z-index: 0;
}
.step-col { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.step-col .ph { width: clamp(184px, 19vw, 222px); }
.step-col .ph img {
  width: 100%; height: auto;
  filter: drop-shadow(0 28px 42px rgba(120, 68, 16, 0.26)) drop-shadow(0 8px 16px rgba(120, 68, 16, 0.14));
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.step-col:hover .ph img { transform: translateY(-9px); }
.step-col .idx {
  margin-top: 34px;
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-ui); font-weight: 700; font-size: 11.5px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-deep);
}
.step-col .idx::before, .step-col .idx::after { content: ""; width: 16px; height: 1px; background: color-mix(in srgb, var(--accent-deep) 40%, transparent); }
.step-col h3 {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 2.5vw, 30px);
  letter-spacing: -0.005em; line-height: 1.12; margin: 14px 0 0;
}
.step-col p {
  font-family: var(--font-ui); font-size: 15.5px; line-height: 1.55;
  color: var(--ink-soft); margin: 11px auto 0; max-width: 30ch;
}

/* ============================================================
   Decks feature
   ============================================================ */
.feature-inner {
  display: grid; grid-template-columns: 1.04fr 0.96fr; gap: clamp(28px, 4vw, 64px); align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: clamp(24px, 3vw, 36px);
  padding: clamp(36px, 5vw, 72px);
  box-shadow: var(--shadow-card);
  position: relative; overflow: hidden;
}
.feature-inner::before {
  content: ""; position: absolute; right: -8%; top: -30%; width: 60%; height: 160%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(232, 154, 60, 0.16) 0%, transparent 72%);
}
.feature-copy { position: relative; z-index: 1; }
.feature-copy h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(32px, 4vw, 50px); line-height: 1.06; letter-spacing: -0.01em;
  margin: 18px 0 0; text-wrap: balance;
}
.feature-copy h2 em { font-style: italic; color: var(--accent-deep); }
.feature-copy p {
  font-family: var(--font-ui); font-size: clamp(15.5px, 1.2vw, 17px); line-height: 1.6;
  color: var(--ink-soft); margin: 18px 0 0; max-width: 42ch;
}
.deck-chips { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  font-family: var(--font-ui); font-weight: 600; font-size: 13px; white-space: nowrap;
  color: var(--ink-soft); background: var(--accent-tint);
  border: 1px solid var(--line); border-radius: 100px; padding: 7px 15px;
}
.chip.on { color: var(--on-accent); background: var(--grad); border-color: transparent; }
.feature-ph { position: relative; z-index: 1; display: flex; justify-content: center; }
.feature-ph img {
  width: clamp(204px, 23vw, 250px); height: auto;
  filter: drop-shadow(0 34px 48px rgba(120, 68, 16, 0.30)) drop-shadow(0 10px 18px rgba(120, 68, 16, 0.16));
}

/* ============================================================
   Recolor — make it yours
   ============================================================ */
.recolor { background: linear-gradient(180deg, var(--cream-2) 0%, var(--cream) 100%); --sel-a: #E89A3C; --sel-b: #D8812A; }
.recolor-inner {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: center;
}
.recolor-stage { position: relative; display: flex; align-items: center; justify-content: center; }
.recolor-glow {
  position: absolute; width: 100%; max-width: 100vw; height: 122%; left: 0; top: -10%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--sel-a) 38%, transparent) 0%, color-mix(in srgb, var(--sel-a) 10%, transparent) 52%, transparent 74%);
  transition: background 0.5s ease;
}
.recolor-phone {
  position: relative; z-index: 1; width: clamp(210px, 24vw, 262px); height: auto;
  filter: drop-shadow(0 34px 48px rgba(120, 68, 16, 0.30)) drop-shadow(0 10px 18px rgba(120, 68, 16, 0.16));
  transition: opacity 0.28s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.recolor-copy { max-width: 520px; }
.recolor-copy h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(32px, 4.2vw, 52px); line-height: 1.05; letter-spacing: -0.01em;
  margin: 18px 0 0; text-wrap: balance;
}
.recolor-copy h2 em { font-style: italic; color: var(--accent-deep); }
.recolor-copy p {
  font-family: var(--font-ui); font-size: clamp(15.5px, 1.2vw, 17.5px); line-height: 1.6;
  color: var(--ink-soft); margin: 18px 0 0; max-width: 42ch;
}
.picker { margin-top: 30px; }
.picker .picker-label {
  font-family: var(--font-ui); font-weight: 700; font-size: 11.5px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint);
}
.palette-row { margin-top: 14px; display: flex; gap: 14px; flex-wrap: wrap; }
.sw {
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer; padding: 0;
  border: 2px solid var(--surface);
  background: linear-gradient(135deg, var(--a), var(--b));
  box-shadow: 0 0 0 1px var(--line), 0 6px 14px -6px rgba(120, 68, 16, 0.4);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.sw:hover { transform: translateY(-2px) scale(1.04); }
.sw.on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink), 0 6px 14px -6px rgba(120, 68, 16, 0.4); }
.mode-row { margin-top: 26px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.mode-toggle {
  display: inline-flex; gap: 4px; padding: 5px; border-radius: 100px;
  background: var(--accent-tint); border: 1px solid var(--line);
}
.mode-toggle button {
  border: none; cursor: pointer; font-family: var(--font-ui); font-weight: 600; font-size: 14px;
  color: var(--ink-soft); background: transparent; padding: 9px 20px; border-radius: 100px;
  transition: all 0.2s ease;
}
.mode-toggle button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-soft); }
.picker-name {
  font-family: var(--font-ui); font-weight: 600; font-size: 13.5px; color: var(--ink-soft);
}
.picker-name strong { color: var(--ink); font-weight: 700; }

/* ============================================================
   By the numbers
   ============================================================ */
.numbers { background: var(--ink); color: var(--cream-2); position: relative; overflow: hidden; }
.numbers::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(70% 50% at 18% 0%, rgba(232, 154, 60, 0.20) 0%, transparent 60%),
    radial-gradient(60% 60% at 100% 100%, rgba(216, 129, 42, 0.14) 0%, transparent 55%);
}
.numbers .section-head h2 { color: var(--cream); }
.numbers .section-head .eyebrow { color: rgba(243, 232, 210, 0.6); }
.numbers .section-head .eyebrow .spark { color: var(--accent); }
.num-grid {
  position: relative; z-index: 1;
  margin-top: clamp(40px, 6vw, 68px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.num { border-top: 1px solid rgba(243, 232, 210, 0.18); padding-top: 22px; }
.num .n {
  font-family: var(--font-display); font-weight: 400; line-height: 0.92;
  letter-spacing: -0.01em;
  font-size: clamp(48px, 6vw, 76px);
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.num.word .n { font-size: clamp(34px, 4vw, 50px); line-height: 1.04; }
.num .k {
  font-family: var(--font-ui); font-weight: 700; font-size: 16px;
  color: var(--cream); margin-top: 12px;
}
.num .s {
  font-family: var(--font-ui); font-size: 14px; line-height: 1.45;
  color: rgba(243, 232, 210, 0.6); margin-top: 5px;
}

/* ============================================================
   Final CTA
   ============================================================ */
.final { text-align: center; }
.final .card {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, var(--cream) 0%, var(--cream-2) 60%, var(--cream-3) 100%);
  border: 1px solid var(--line);
  border-radius: clamp(24px, 3vw, 36px);
  padding: clamp(48px, 7vw, 92px) var(--gutter);
  box-shadow: var(--shadow-card);
}
.final .card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 50% 0%, rgba(232, 154, 60, 0.16) 0%, transparent 60%);
}
.final h2 {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(34px, 5.4vw, 64px); line-height: 1.05; letter-spacing: -0.01em;
  margin: 20px auto 0; max-width: 16ch; text-wrap: balance;
}
.final h2 em { font-style: italic; color: var(--accent-deep); }
.final .actions { position: relative; z-index: 1; margin-top: 36px; display: flex; justify-content: center; }
.final .micro {
  position: relative; z-index: 1;
  margin-top: 20px; font-family: var(--font-ui); font-size: 13.5px; color: var(--ink-faint);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(40px, 5vw, 64px); }
.footer-grid { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.site-footer .wordmark { font-size: 21px; }
.footer-tag { font-family: var(--font-ui); font-size: 14px; color: var(--ink-soft); margin: 16px 0 0; max-width: 26ch; }
.footer-links { display: flex; gap: 30px; flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--font-ui); font-weight: 700; font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint);
  margin: 0 0 14px;
}
.footer-col a, .footer-col span {
  display: block; font-family: var(--font-ui); font-size: 14.5px;
  color: var(--ink-soft); text-decoration: none; margin-bottom: 9px;
  transition: color 0.16s ease;
}
.footer-col a:hover { color: var(--accent-deep); }
.footer-bottom {
  margin-top: clamp(36px, 5vw, 56px); padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-ui); font-size: 13px; color: var(--ink-faint);
}

/* ============================================================
   Legal pages
   ============================================================ */
.legal { padding-block: clamp(48px, 7vw, 88px); }
.legal-wrap { max-width: 760px; margin: 0 auto; padding-inline: var(--gutter); }
.legal h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(38px, 6vw, 58px); line-height: 1.04; letter-spacing: -0.015em; margin: 18px 0 0;
}
.legal .eff {
  font-family: var(--font-ui); font-size: 14px; color: var(--ink-faint);
  margin: 14px 0 0; padding-bottom: 28px; border-bottom: 1px solid var(--line);
}
.legal-body { margin-top: 34px; }
.legal-body h2 {
  font-family: var(--font-wordmark); font-weight: 600; font-size: 21px;
  letter-spacing: -0.01em; color: var(--ink); margin: 40px 0 0;
}
.legal-body p, .legal-body li {
  font-family: var(--font-ui); font-size: 16px; line-height: 1.68; color: rgba(42, 27, 11, 0.82);
}
.legal-body p { margin: 14px 0 0; }
.legal-body ul { margin: 14px 0 0; padding-left: 22px; }
.legal-body li { margin: 7px 0; }
.legal-body strong { color: var(--ink); font-weight: 700; }
.legal-body a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }
.legal-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-weight: 600; font-size: 14px; color: var(--ink-soft);
  text-decoration: none; transition: gap 0.16s ease, color 0.16s ease;
}
.legal-back:hover { gap: 12px; color: var(--accent-deep); }

/* ============================================================
   Reveal on scroll
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 12px; text-align: center; }
  .hero-copy { max-width: none; margin-inline: auto; }
  .hero .subhead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-stage { margin-top: 20px; }
  .hero-phone { width: clamp(238px, 56vw, 280px); }
  .steps-grid { grid-template-columns: 1fr; gap: 48px; max-width: 420px; margin-inline: auto; }
  .steps-grid::before { display: none; }
  .feature-inner { grid-template-columns: 1fr; text-align: center; }
  .feature-copy .eyebrow { justify-content: center; }
  .feature-copy p { margin-inline: auto; }
  .deck-chips { justify-content: center; }
  .feature-ph { margin-top: 8px; order: -1; }
  .recolor-inner { grid-template-columns: 1fr; gap: 18px; text-align: center; }
  .recolor-copy { max-width: none; margin-inline: auto; }
  .recolor-copy .eyebrow { justify-content: center; }
  .recolor-copy p { margin-inline: auto; }
  .palette-row, .mode-row, .picker .picker-label { justify-content: center; }
  .palette-row { justify-content: center; }
  .recolor-stage { order: -1; }
  .num-grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
}
@media (max-width: 540px) {
  .site-header .wrap { height: 64px; }
  .site-header .wordmark { font-size: 20px; }
  .num-grid { grid-template-columns: 1fr; }
  .hero-actions { gap: 16px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}


/* ============================================================
   Motion / life (scroll)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal-l { opacity: 0; transform: translateX(-46px); transition: opacity .7s ease, transform .85s cubic-bezier(.2,.8,.2,1); }
  .reveal-r { opacity: 0; transform: translateX(46px); transition: opacity .7s ease, transform .85s cubic-bezier(.2,.8,.2,1); }
  .reveal-l.in, .reveal-r.in { opacity: 1; transform: none; }
  .steps-grid .step-col:nth-child(2) { transition-delay: .12s; }
  .steps-grid .step-col:nth-child(3) { transition-delay: .24s; }
  .num-grid .num:nth-child(2) { transition-delay: .09s; }
  .num-grid .num:nth-child(3) { transition-delay: .18s; }
  .num-grid .num:nth-child(4) { transition-delay: .27s; }
  [data-parallax] { will-change: transform; }
  .feature-ph img { animation: floatY 7.4s ease-in-out infinite; }
  .recolor-phone { animation: floatY 7s ease-in-out infinite .3s; }
  @keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }
}


/* ============================================================
   Mobile — tighter, less wasted vertical space
   ============================================================ */
@media (max-width: 600px) {
  .section-pad { padding-block: clamp(38px, 9vw, 62px); }
  .hero { padding-top: 22px; padding-bottom: 34px; }
  .hero h1 { font-size: clamp(42px, 12vw, 60px); margin-top: 16px; }
  .hero .subhead { font-size: 15px; margin-top: 16px; }
  .hero-actions { margin-top: 20px; }
  .hero-stage { margin-top: 10px; }
  .hero-phone { width: clamp(178px, 50vw, 216px); }
  .steps .section-head h2 { font-size: clamp(28px, 8vw, 38px); }
  .steps .lead { margin-top: 12px; }
  .steps-grid { gap: 30px; margin-top: 34px; max-width: 350px; }
  .step-col .ph { width: clamp(146px, 42vw, 174px); }
  .step-col .idx { margin-top: 18px; }
  .step-col h3 { margin-top: 8px; }
  .step-col p { margin-top: 7px; }
  .feature-inner { padding: 28px 22px; gap: 18px; }
  .feature-copy h2 { margin-top: 14px; }
  .feature-ph img { width: clamp(166px, 46vw, 194px); }
  .recolor-inner { gap: 12px; }
  .recolor-copy h2 { margin-top: 14px; }
  .recolor-phone { width: clamp(178px, 48vw, 210px); }
  .num-grid { grid-template-columns: 1fr 1fr; gap: 20px 16px; margin-top: 30px; }
  .num .n { font-size: clamp(38px, 11vw, 54px); }
  .num.word .n { font-size: clamp(26px, 7.5vw, 38px); }
  .num .k { font-size: 15px; margin-top: 7px; }
  .num .s { font-size: 12.5px; }
  .final .card { padding: 44px 22px; }
  .final h2 { font-size: clamp(30px, 8.5vw, 46px); }
}


/* ============================================================
   Steps — horizontal swipe carousel on mobile (vs vertical stack)
   ============================================================ */
@media (max-width: 600px) {
  .steps-grid {
    display: flex; grid-template-columns: none; flex-wrap: nowrap;
    overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 14px; max-width: none;
    margin: 28px calc(var(--gutter) * -1) 0;
    padding: 6px var(--gutter) 12px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .steps-grid::-webkit-scrollbar { display: none; }
  .steps-grid::before { display: none; }          /* hide the desktop connector thread */
  .step-col { flex: 0 0 76%; max-width: 300px; scroll-snap-align: center; }
  .step-col .ph { width: clamp(150px, 42vw, 188px); }
  /* a small "swipe" cue under the heading */
  .steps .lead::after { content: " — swipe ›"; color: var(--accent-deep); font-weight: 600; white-space: nowrap; }
}
