/* Forge landing. Brand colors (the wordmark's ink, bone and ember) plus the app's cream,
   field green and plan-phase colors (src/theme/colors.ts). Motion lives in motion.js;
   everything here renders fine without it and under prefers-reduced-motion. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-400.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/inter-500.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/inter-700.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/inter-800.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 800; font-display: swap; src: url("/assets/fonts/inter-800-italic.woff") format("woff"); }

:root {
  --ink: #0A0A0A;
  --ink-2: #121210;
  --ink-3: #1A1916;
  --bone: #F3F1EB;
  --bone-soft: rgba(243, 241, 235, 0.72);
  --bone-faint: rgba(243, 241, 235, 0.48);
  --bone-line: rgba(243, 241, 235, 0.14);
  --bone-fill: rgba(243, 241, 235, 0.07);
  --ember: #D9461D;
  --ember-soft: #F07A52;
  --cream: #F4EFE6;
  --cream-2: #EAE3D6;
  --surface: #FFFFFF;
  --ink-soft: #55524C;
  --hairline: #E2DDD4;
  --field: #16291E;
  --field-2: #1F3A2A;
  --error: #FF8A7A;
  --success: #8FD3A3;
  --plan-base: #5BA572;
  --plan-build: #C8854A;
  --plan-peak: #F2C14E;
  --plan-season: #E5557A;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --gutter: 20px;
  --radius: 14px;
  --radius-lg: 24px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }
em { font-style: italic; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 900px) { :root { --gutter: 40px; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--ember-soft); outline-offset: 3px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bone-faint);
}
.ember-dot { width: 9px; height: 9px; background: var(--ember); flex: none; }

.section-head { margin-bottom: 48px; max-width: 820px; }
.section-title {
  margin: 0;
  font-size: clamp(34px, 6.4vw, 76px);
  line-height: 1.0; letter-spacing: -0.045em; font-weight: 800;
  text-wrap: balance;
}

/* ---------- Reveal (motion.js adds .is-in; without JS everything is visible) ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--ember); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top);
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 10, 10, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--bone-line);
}
.nav-row { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: block; }
.wordmark { width: 104px; height: auto; }
.wordmark-sm { width: 88px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  font: 700 12px/1 var(--font); letter-spacing: 0.1em; color: var(--bone);
  background: var(--bone-fill); border: 1px solid var(--bone-line); border-radius: 999px;
  padding: 10px 13px; cursor: pointer;
}
.lang-toggle:hover { background: rgba(243, 241, 235, 0.14); }
.nav-cta {
  font: 700 14px/1 var(--font); color: var(--ink); background: var(--bone);
  border: 0; border-radius: 999px; padding: 11px 16px; cursor: pointer;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity 0.35s, transform 0.35s var(--ease-out);
}
.nav.is-scrolled .nav-cta { opacity: 1; transform: none; pointer-events: auto; }
.no-js .nav-cta { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--nav-h) + 56px + env(safe-area-inset-top)) 0 96px;
  display: flex; align-items: center;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media picture, .hero-media img {
  position: absolute; inset: -6% 0 0 0; width: 100%; height: 106%;
}
.hero-media img { object-fit: cover; object-position: center 30%; will-change: transform; }
.js .hero-media img { animation: heroZoom 18s var(--ease-out) both; }
@keyframes heroZoom { from { transform: scale(1.14); } to { transform: scale(1); } }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.6) 0%, rgba(10,10,10,0.25) 25%, rgba(10,10,10,0.78) 55%, var(--ink) 92%),
    radial-gradient(120% 70% at 50% 0%, transparent 40%, rgba(10,10,10,0.6) 100%);
}
.hero-glow {
  position: absolute; z-index: 1; width: 60vmax; height: 60vmax; left: var(--mx, 50%); top: var(--my, 30%);
  transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(circle, rgba(217, 70, 29, 0.16) 0%, rgba(217, 70, 29, 0) 60%);
  transition: left 0.6s var(--ease-out), top 0.6s var(--ease-out);
}
.grain {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0.09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.hero-grid { position: relative; z-index: 3; display: grid; gap: 56px; align-items: center; }
.hero-copy { max-width: 640px; }
@media (min-width: 1000px) {
  .hero { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 72px; }
  .hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 32px; }
  .hero-copy { max-width: 720px; }
}

.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 26px; }
.store {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 13px; border-radius: 999px;
  background: var(--bone-fill); border: 1px solid var(--bone-line);
  font-size: 13px; font-weight: 700; letter-spacing: 0.01em; color: var(--bone);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.store-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 0 rgba(217, 70, 29, 0.6); }
.js .store-dot { animation: pulse 2.4s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(217, 70, 29, 0.55); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(217, 70, 29, 0); }
}
.store-soon { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-faint); margin-left: 4px; }

.hero-title {
  margin: 0 0 22px;
  font-size: clamp(44px, 10.5vw, 104px);
  line-height: 0.96; letter-spacing: -0.05em; font-weight: 800;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-title .line > * { display: inline-block; }
.hero-title em { color: var(--ember-soft); font-weight: 800; padding-right: 0.06em; }
/* The hero enters with plain CSS animations: no observer or frame callback has to fire,
   so the headline and the form can never stay hidden. */
.js .hero-title .line > * { animation: lineUp 1.1s var(--ease-out) both; }
.js .hero-title .line:nth-child(2) > * { animation-delay: 0.12s; }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
.js .hero-in { animation: heroIn 0.9s var(--ease-out) both; animation-delay: var(--d, 0s); }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.lede { margin: 0 0 34px; max-width: 560px; color: var(--bone-soft); font-size: clamp(17px, 2vw, 20px); line-height: 1.5; }
/* Desktop: the copy shares the row with the phone, so the headline steps down. */
@media (min-width: 1000px) {
  .hero-title { font-size: clamp(56px, 5.4vw, 84px); }
  .lede { margin-bottom: 28px; }
  .stores { margin-bottom: 22px; }
}

/* ---------- Form ---------- */
.waitlist {
  padding: 20px; border-radius: var(--radius-lg);
  background: rgba(18, 18, 16, 0.62); border: 1px solid var(--bone-line);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.form-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.form-title { margin: 0 0 3px; font-size: 17px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.3; }
.form-sub { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--bone-soft); }
/* The launch discount, as a tilted ember sticker. */
.perk-badge {
  flex: none; display: inline-grid; place-items: center;
  min-width: 66px; height: 58px; padding: 0 10px; border-radius: 16px;
  background: var(--ember); color: var(--ink);
  font-size: 20px; font-weight: 800; letter-spacing: -0.04em; white-space: nowrap;
  transform: rotate(-5deg); box-shadow: 0 12px 28px rgba(217, 70, 29, 0.35);
}
.js .waitlist .perk-badge { animation: stickerIn 0.9s var(--ease-out) 1s both; }
@keyframes stickerIn {
  0% { transform: rotate(-24deg) scale(0.4); opacity: 0; }
  60% { transform: rotate(2deg) scale(1.08); opacity: 1; }
  100% { transform: rotate(-5deg) scale(1); }
}
.perk-badge-sm { min-width: 0; height: 30px; padding: 0 9px; border-radius: 9px; font-size: 13px; transform: rotate(-4deg); box-shadow: none; }
.field-row { display: flex; flex-direction: column; gap: 10px; }
.field-row input {
  width: 100%; height: 56px; padding: 0 18px;
  font: 400 17px var(--font); color: var(--bone);
  background: rgba(243, 241, 235, 0.06); border: 1px solid var(--bone-line); border-radius: var(--radius);
  appearance: none; transition: border-color 0.2s, background 0.2s;
}
.field-row input::placeholder { color: var(--bone-faint); }
.field-row input:focus { outline: none; border-color: var(--ember-soft); background: rgba(243, 241, 235, 0.09); }
.field-row input[aria-invalid="true"] { border-color: var(--error); }
@media (min-width: 520px) {
  .field-row { flex-direction: row; }
  .field-row input { flex: 1; }
}

.btn-primary {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 24px; border: 0; border-radius: var(--radius);
  background: var(--ember); color: var(--ink);
  font: 800 17px var(--font); letter-spacing: -0.01em; white-space: nowrap;
  cursor: pointer; overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, opacity 0.2s;
  box-shadow: 0 10px 30px rgba(217, 70, 29, 0.28);
}
.btn-primary::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.8s var(--ease-out);
}
.btn-primary:hover::before { transform: translateX(120%); }
.btn-primary:hover { box-shadow: 0 14px 40px rgba(217, 70, 29, 0.42); }
.btn-primary[disabled] { opacity: 0.6; cursor: progress; }
.btn-primary > * { position: relative; }
.btn-arrow { width: 18px; height: 18px; transition: transform 0.35s var(--ease-out); }
.btn-primary:hover .btn-arrow { transform: translateX(3px); }
.btn-lg { height: 64px; padding: 0 30px; font-size: 18px; border-radius: 18px; }

.btn-ghost {
  display: inline-flex; align-items: center; min-height: 50px; padding: 0 22px;
  border-radius: var(--radius); background: transparent; color: var(--bone);
  border: 1px solid var(--bone-line); font: 700 16px var(--font); cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn-ghost:hover { background: var(--bone-fill); border-color: var(--bone-faint); }
.btn-light { border-color: rgba(243, 241, 235, 0.3); }

.form-options { display: grid; gap: 14px; margin-top: 16px; }
@media (min-width: 640px) { .form-options { grid-template-columns: auto auto; justify-content: start; column-gap: 24px; } }
.opt { border: 0; margin: 0; padding: 0; min-width: 0; }
.opt legend { padding: 0; margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--bone-faint); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips label {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--bone-line); background: transparent;
  font-size: 14px; font-weight: 500; color: var(--bone-soft);
  cursor: pointer; user-select: none; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chips label:hover { border-color: var(--bone-faint); color: var(--bone); }
.chips input:checked + label { background: var(--bone); border-color: var(--bone); color: var(--ink); font-weight: 700; }
.chips input:focus-visible + label { outline: 2px solid var(--ember-soft); outline-offset: 3px; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:empty { display: none; }
.turnstile { margin-top: 12px; border-radius: 10px; transition: box-shadow 0.3s; }
/* Cloudflare wants a click: ring the box so it is not missed. */
.turnstile.is-interactive { box-shadow: 0 0 0 2px var(--ember-soft); }
.fineprint { margin: 14px 0 0; font-size: 12.5px; color: var(--bone-faint); }
.fineprint a { color: var(--bone-soft); text-underline-offset: 2px; }
.status { margin: 10px 0 0; font-size: 14.5px; color: var(--bone-soft); }
.status:empty { margin: 0; }
.status.is-error { color: var(--error); }

.done {
  padding: 26px; border-radius: var(--radius-lg);
  background: rgba(18, 18, 16, 0.72); border: 1px solid var(--bone-line);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  animation: rise 0.6s var(--ease-out) both;
}
.done:focus { outline: none; }
.done-title { margin: 0 0 8px; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.done-title::before {
  content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 12px;
  background: var(--success); vertical-align: 4px;
}
.done-body { margin: 0 0 20px; color: var(--bone-soft); overflow-wrap: anywhere; }
.done-body strong { color: var(--bone); font-weight: 700; }
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ---------- Phone mockup ---------- */
.phone {
  position: relative; width: 100%; max-width: 300px; aspect-ratio: 620 / 1344;
  padding: 9px; border-radius: 46px;
  background: linear-gradient(145deg, #2a2926, #0e0e0d 60%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 50px 100px -20px rgba(0, 0, 0, 0.7),
    0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.phone::after {
  content: ""; position: absolute; top: 19px; left: 50%; width: 30%; height: 22px;
  transform: translateX(-50%); border-radius: 999px; background: #050505; z-index: 3;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 37px; background: var(--cream); }

.hero-device { position: relative; display: none; justify-content: center; perspective: 1400px; }
@media (min-width: 1000px) { .hero-device { display: flex; } }
.hero-device .phone {
  max-width: 330px;
  transform: rotateX(var(--rx, 4deg)) rotateY(var(--ry, -14deg)) rotateZ(1deg);
  transition: transform 0.8s var(--ease-out);
  transform-style: preserve-3d;
}
.js .hero-device .phone { animation: phoneIn 1.4s var(--ease-out) 0.3s both; }
@keyframes phoneIn { from { opacity: 0; translate: 0 60px; } to { opacity: 1; translate: 0 0; } }
.device-glow {
  position: absolute; width: 420px; height: 420px; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(217, 70, 29, 0.35), rgba(217, 70, 29, 0) 65%);
  filter: blur(30px); pointer-events: none;
}
.float-card {
  position: absolute; z-index: 4; display: grid; gap: 2px;
  padding: 12px 16px; border-radius: 16px;
  background: rgba(20, 19, 16, 0.78); border: 1px solid var(--bone-line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.float-label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone-faint); }
.float-value { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.float-value small { font-size: 13px; font-weight: 700; color: var(--bone-soft); }
.float-a { left: 0; top: 22%; }
.float-b { right: 0; bottom: 18%; }
.js .float-a { animation: floatInA 0.9s var(--ease-out) 0.9s both, bob 6s ease-in-out infinite; }
.js .float-b { animation: floatInB 0.9s var(--ease-out) 1.1s both, bob 6s ease-in-out -3s infinite; }
@keyframes floatInA { from { opacity: 0; translate: -20px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes floatInB { from { opacity: 0; translate: 20px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; z-index: 3; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--bone-faint); text-decoration: none;
}
.scroll-line { width: 1px; height: 40px; background: linear-gradient(var(--bone-faint), transparent); position: relative; overflow: hidden; }
.js .scroll-line::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--bone);
  animation: drip 1.8s var(--ease-out) infinite;
}
@keyframes drip { to { top: 110%; } }
@media (max-height: 700px) { .scroll-cue { display: none; } }

/* ---------- Marquee ---------- */
.marquee {
  padding: 34px 0; overflow: hidden; background: var(--ink);
  border-top: 1px solid var(--bone-line); border-bottom: 1px solid var(--bone-line);
}
.marquee-row { display: flex; white-space: nowrap; }
.marquee-row + .marquee-row { margin-top: 4px; }
.marquee-track { display: flex; align-items: center; flex: none; will-change: transform; }
.marquee-track span {
  font-size: clamp(44px, 9vw, 120px); font-weight: 800; letter-spacing: -0.05em; line-height: 1.04;
  text-transform: uppercase; padding: 0 0.28em;
}
.marquee-track i { width: 0.26em; height: 0.26em; flex: none; background: var(--ember); font-size: clamp(44px, 9vw, 120px); }
.marquee-row.is-outline span { color: transparent; -webkit-text-stroke: 1.5px rgba(243, 241, 235, 0.5); }
.marquee-row.is-outline i { background: transparent; border: 2px solid var(--ember); }

/* ---------- Manifesto ---------- */
.manifesto { padding: 120px 0 110px; }
.manifesto-text {
  margin: 0; max-width: 1080px;
  font-size: clamp(28px, 4.6vw, 60px); line-height: 1.12; letter-spacing: -0.035em; font-weight: 800;
}
.manifesto-text .w { transition: color 0.35s, opacity 0.35s; }
.motion-on .manifesto-text .w { color: rgba(243, 241, 235, 0.16); }
.motion-on .manifesto-text .w.on { color: var(--bone); }
.motion-on .manifesto-text .w.hl.on { color: var(--ember-soft); }
.manifesto-text .hl { color: var(--ember-soft); }

.stats { margin: 80px 0 0; display: grid; gap: 28px; border-top: 1px solid var(--bone-line); padding-top: 36px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.stat dt { font-size: clamp(56px, 8vw, 96px); font-weight: 800; letter-spacing: -0.06em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat dd { margin: 10px 0 0; max-width: 260px; color: var(--bone-soft); font-size: 16px; }

/* ---------- How it works ---------- */
.how { padding: 100px 0 120px; background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); }
.how-grid { display: grid; gap: 40px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 72px; counter-reset: s; }
.step-num {
  display: inline-block; margin-bottom: 14px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.12em; color: var(--ember-soft);
}
.step h3 { margin: 0 0 12px; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.05; letter-spacing: -0.04em; font-weight: 800; }
.step p { margin: 0; color: var(--bone-soft); max-width: 480px; font-size: 17px; }
.phone-inline { margin: 36px auto 0; max-width: 260px; }
.how-device { display: none; }
.motion-on .step { opacity: 0.25; transition: opacity 0.5s var(--ease-out); }
.motion-on .step.is-active { opacity: 1; }
.motion-on .step .phone-inline { transform: translateY(40px) scale(0.96); opacity: 0; transition: transform 1s var(--ease-out), opacity 1s var(--ease-out); }
.motion-on .step.is-active .phone-inline, .motion-on .step.was-active .phone-inline { transform: none; opacity: 1; }

@media (min-width: 1000px) {
  .how-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; }
  .steps { gap: 0; }
  .step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; }
  .step:first-child { min-height: 60vh; justify-content: flex-start; padding-top: 6vh; }
  .phone-inline { display: none; }
  .how-device {
    display: flex; flex-direction: column; align-items: center; gap: 24px;
    position: sticky; top: calc(50vh - 330px); height: 660px; align-self: start; perspective: 1400px;
  }
  .how-device .phone { max-width: 300px; transform: rotateY(var(--hry, -8deg)) rotateX(var(--hrx, 3deg)); transition: transform 0.9s var(--ease-out); }
  .how-device .phone img {
    position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px);
    opacity: 0; transform: scale(1.04); transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out);
  }
  .how-device .phone img.is-active { opacity: 1; transform: none; }
  .how-dots { display: flex; gap: 8px; }
  .how-dots i { width: 22px; height: 3px; border-radius: 2px; background: var(--bone-line); transition: background 0.4s, width 0.4s var(--ease-out); }
  .how-dots i.is-active { width: 40px; background: var(--ember); }
}

/* ---------- Features (bento) ---------- */
.features { padding: 120px 0; background: var(--cream); color: var(--ink); }
.features .eyebrow { color: rgba(10, 10, 10, 0.5); }
.bento { display: grid; gap: 14px; }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(2, 1fr); } .tile-wide { grid-column: span 2; } }
@media (min-width: 1080px) { .bento { grid-template-columns: repeat(3, 1fr); gap: 16px; } .tile-wide { grid-column: span 2; } }
.tile {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 28px;
  padding: 26px; display: flex; flex-direction: column;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
@media (hover: hover) {
  .tile:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(10, 10, 10, 0.25); }
}
.tile h3 { margin: 0 0 10px; font-size: 22px; letter-spacing: -0.03em; font-weight: 800; line-height: 1.15; }
.tile p { margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.55; }
.tile-visual { height: 120px; margin-bottom: 26px; display: flex; align-items: center; }

/* phases: a season timeline, one row per block */
.phases { display: grid; gap: 10px; align-content: center; }
.phases span { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 12px; }
.phases b { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }
.phases i {
  display: block; height: 16px; border-radius: 6px; background: var(--c);
  margin-left: var(--o); width: var(--w); transform-origin: 0 50%;
}
.js .phases i { transform: scaleX(0); transition: transform 1s var(--ease-out); }
.js .phases span:nth-child(2) i { transition-delay: 0.18s; }
.js .phases span:nth-child(3) i { transition-delay: 0.36s; }
.js .phases span:nth-child(4) i { transition-delay: 0.54s; }
.js .tile.is-in .phases i { transform: none; }
@media (min-width: 760px) { .phases span { grid-template-columns: 120px 1fr; } .phases i { height: 20px; } }

/* weight */
.weight { gap: 14px; align-items: baseline; }
.weight-sets { font-size: 34px; font-weight: 800; letter-spacing: -0.04em; color: rgba(10, 10, 10, 0.3); }
.weight-num { font-size: 92px; font-weight: 800; letter-spacing: -0.07em; line-height: 1; font-variant-numeric: tabular-nums; }
.weight-num small { font-size: 26px; letter-spacing: -0.02em; margin-left: 6px; color: var(--ember); }

/* feel */
.feel { flex-wrap: wrap; gap: 8px; align-content: center; }
.feel-chip {
  padding: 9px 14px; border-radius: 999px; border: 1px solid var(--hairline);
  font-size: 14px; font-weight: 700; color: var(--ink-soft); background: #FAF8F4;
  transition: background 0.4s, color 0.4s, border-color 0.4s;
}
.feel-chip.is-picked { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.feel-result { flex-basis: 100%; margin-top: 10px; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; color: rgba(10, 10, 10, 0.4); font-variant-numeric: tabular-nums; }
.feel-result strong { color: var(--ink); }
.feel-arrow { color: var(--ember); display: inline-block; }

/* week */
.week { gap: 6px; position: relative; }
.week span {
  flex: 1; aspect-ratio: 1; max-width: 46px; border-radius: 12px; display: grid; place-items: center;
  font-size: 15px; font-weight: 800; color: var(--ink-soft); background: #F4F1EA;
}
.week span.is-match { background: var(--ember); color: var(--ink); }
.js .tile.is-in .week span.is-match { animation: matchPop 0.8s var(--ease-out) 0.4s both; }
@keyframes matchPop { 0% { transform: scale(0.6); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
.week-tag {
  position: absolute; top: 4px; right: 0; font-style: normal;
  font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ember);
}

/* signal */
.signal { gap: 6px; align-items: flex-end; height: 120px; position: relative; width: 120px; }
.signal span { width: 16px; border-radius: 4px; background: var(--ink); }
.signal span:nth-child(1) { height: 25%; }
.signal span:nth-child(2) { height: 45%; }
.signal span:nth-child(3) { height: 65%; opacity: 0.18; }
.signal span:nth-child(4) { height: 85%; opacity: 0.18; }
.signal i {
  position: absolute; left: -6px; bottom: 44%; width: 104px; height: 4px; border-radius: 2px;
  background: var(--ember); transform: rotate(-38deg) scaleX(0); transform-origin: 0 50%;
  transition: transform 0.7s var(--ease-out) 0.3s;
}
.no-js .signal i, .tile.is-in .signal i { transform: rotate(-38deg) scaleX(1); }

/* sparkline */
.spark svg { width: 100%; height: 100%; overflow: visible; }
.spark path { fill: none; stroke: var(--ember); stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.js .spark path { stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.8s var(--ease-out) 0.2s; }
.js .tile.is-in .spark path { stroke-dashoffset: 0; }

/* routines */
.routine { gap: 10px; flex-wrap: wrap; align-content: center; height: auto; min-height: 120px; }
.routine span {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px;
  background: #F4F1EA; border: 1px solid var(--hairline);
}
.routine b { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.routine i { font-style: normal; font-size: 14px; font-weight: 700; color: var(--ember); font-variant-numeric: tabular-nums; }
.js .routine span { opacity: 0; transform: translateX(-16px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.js .routine span:nth-child(2) { transition-delay: 0.12s; }
.js .routine span:nth-child(3) { transition-delay: 0.24s; }
.js .tile.is-in .routine span { opacity: 1; transform: none; }

/* dark tiles for rhythm */
.tile-weight, .tile-offline { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.tile-weight p, .tile-offline p { color: var(--bone-soft); }
.tile-weight .weight-sets { color: rgba(243, 241, 235, 0.3); }
.tile-offline .signal span { background: var(--bone); }

/* ---------- Clubs ---------- */
.clubs { position: relative; padding: 120px 0; background: radial-gradient(120% 90% at 100% 0%, var(--field-2) 0%, var(--field) 55%, #0E1A13 100%); overflow: hidden; }
.clubs-grid { display: grid; gap: 56px; }
@media (min-width: 1000px) { .clubs-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: start; } .clubs-head { position: sticky; top: 120px; } }
.clubs .section-title { margin-bottom: 32px; }
.club-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.club-list li {
  display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 28px 0;
  border-top: 1px solid rgba(243, 241, 235, 0.16);
}
.club-list li:last-child { border-bottom: 1px solid rgba(243, 241, 235, 0.16); }
.club-num { font-size: 14px; font-weight: 800; letter-spacing: 0.1em; color: var(--ember-soft); padding-top: 4px; }
.club-list p { margin: 0; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.35; letter-spacing: -0.02em; font-weight: 500; color: var(--bone); }

/* ---------- Final CTA ---------- */
.final { position: relative; padding: 140px 0 120px; overflow: hidden; text-align: center; }
.final::before {
  content: ""; position: absolute; left: 50%; top: 55%; width: 900px; height: 900px; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(217, 70, 29, 0.22) 0%, rgba(217, 70, 29, 0) 60%);
  pointer-events: none;
}
.final-inner { position: relative; display: grid; justify-items: center; }
.final-title {
  margin: 0 0 40px; font-size: clamp(42px, 8.6vw, 112px); line-height: 0.95; letter-spacing: -0.055em; font-weight: 800;
  text-wrap: balance;
}
.final-title span, .final-title em { display: block; }
.final-title em { color: var(--ember-soft); }
.final-actions { display: grid; justify-items: center; gap: 24px; }
.final-perk { display: flex; align-items: center; justify-content: center; gap: 10px; margin: -6px 0 0; max-width: 420px; font-size: 15px; color: var(--bone-soft); text-align: left; }
.final .stores { margin: 0; justify-content: center; }

/* ---------- Footer ---------- */
.foot { padding: 40px 0 max(40px, env(safe-area-inset-bottom)); border-top: 1px solid var(--bone-line); font-size: 14px; color: var(--bone-faint); }
.foot-row { display: flex; flex-direction: column; gap: 18px; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--bone-soft); text-decoration: none; }
.foot-links a:hover { color: var(--bone); }
.foot-meta { margin: 0; overflow-wrap: anywhere; }
.foot-meta a { text-decoration: none; }
@media (min-width: 820px) { .foot-row { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js .hero-in, .js .hero-title .line > *, .js .hero-device .phone, .js .float-card,
  .motion-on .step, .motion-on .step .phone-inline, .js .phases i, .js .routine span {
    opacity: 1 !important; transform: none !important; translate: none !important;
  }
  .motion-on .manifesto-text .w { color: var(--bone) !important; }
  .motion-on .manifesto-text .w.hl { color: var(--ember-soft) !important; }
  .js .spark path { stroke-dashoffset: 0 !important; }
  .signal i { transform: rotate(-38deg) scaleX(1) !important; }
}
