/* FitCash landing — fitcash-theme tokens, matched to src/constants/brand.ts */

/* Manrope variable font, latin subset, self-hosted (was Google Fonts). */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --green: #0aec95;
  --green-bright: #5cffc0;
  --green-tint: rgba(10, 236, 149, 0.12);
  --purple: #7c4dff;
  --blue: #29acfc;
  --red: #ff4d5e;
  --orange: #ff8a1f;
  --gold: #fdc20b;
  --ink: #06231a;
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Dark is the brand default. The hero card, the phone
   mockup and the photo tile stay dark in both themes, so they re-declare
   the dark palette for their subtree. */
:root,
.hero__grid,
.phone__screen,
.tile--photo {
  --bg: #01120f;
  --card: #0b1d20;
  --card-alt: #122a2e;
  --card-deep: #0e2326;
  --green-ink: var(--green);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.68);
  --faint: rgba(255, 255, 255, 0.42);
  --hairline: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.14);
  --chip-line: rgba(255, 255, 255, 0.2);
  --track: rgba(255, 255, 255, 0.1);
  --dot-off: rgba(255, 255, 255, 0.12);
  --soft: rgba(255, 255, 255, 0.04);
  --inset: rgba(0, 0, 0, 0.18);
  --overlay: rgba(1, 18, 15, 0.72);
  --glass: rgba(11, 29, 32, 0.78);
  --shadow: rgba(0, 0, 0, 0.4);
  --text-glow: 0 0 28px rgba(10, 236, 149, 0.55);
  --glow: 0 0 24px rgba(10, 236, 149, 0.45);
  --glow-strong: 0 0 40px rgba(10, 236, 149, 0.55), 0 0 90px rgba(10, 236, 149, 0.2);
  color-scheme: dark;
}
.hero__grid,
.phone__screen,
.tile--photo { color: var(--text); }

:root[data-theme="light"] {
  --bg: #e9f0ed;
  --card: #ffffff;
  --card-alt: #eaf3ef;
  --card-deep: #f6faf8;
  /* Neon green washes out on a pale ground at small sizes, so small green
     text uses a deeper green; big headline words keep the neon (.text-green). */
  --green-ink: #067a52;
  --text: #06231a;
  --muted: rgba(6, 35, 26, 0.7);
  --faint: rgba(6, 35, 26, 0.52);
  --hairline: rgba(6, 35, 26, 0.1);
  --line: rgba(6, 35, 26, 0.16);
  --chip-line: rgba(6, 35, 26, 0.2);
  --track: rgba(6, 35, 26, 0.1);
  --dot-off: rgba(6, 35, 26, 0.14);
  --soft: rgba(6, 35, 26, 0.03);
  --inset: rgba(6, 35, 26, 0.04);
  --overlay: rgba(233, 240, 237, 0.8);
  --glass: rgba(255, 255, 255, 0.86);
  --shadow: rgba(6, 35, 26, 0.12);
  --text-glow: 0 0 24px rgba(10, 236, 149, 0.35);
  --glow: 0 0 20px rgba(10, 236, 149, 0.35);
  --glow-strong: 0 0 32px rgba(10, 236, 149, 0.45), 0 0 70px rgba(10, 236, 149, 0.15);
  color-scheme: light;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--green); color: var(--ink); }

.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 85% -10%, rgba(10, 236, 149, 0.12), transparent 70%),
    radial-gradient(50vw 50vh at -10% 40%, rgba(10, 236, 149, 0.06), transparent 70%),
    radial-gradient(70vw 60vh at 50% 120%, rgba(10, 236, 149, 0.08), transparent 70%);
}

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 40px); }

.text-green { color: var(--green-ink); }
:root[data-theme="light"] .text-green { color: var(--green); }
.glow-text { text-shadow: var(--text-glow); }

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow--muted { color: var(--muted); margin: 0; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 16px;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}
.btn--sm { height: 42px; padding: 0 20px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--primary {
  background: linear-gradient(180deg, var(--green-bright), var(--green));
  color: var(--ink);
  box-shadow: var(--glow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--glow-strong); }
.btn--primary span { transition: transform 0.25s var(--ease); }
.btn--primary:hover span { transform: translateX(4px); }
.btn--ghost {
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--green); color: var(--green-ink); }
.btn--outline { background: rgba(1, 18, 15, 0.35); border: 2px solid var(--green); color: var(--text); backdrop-filter: blur(8px); }

/* ─── Nav ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: var(--overlay);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-color: var(--hairline);
}
.nav__inner {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: 25px; letter-spacing: -0.02em; }
/* Manrope tops out at 800, so a hairline stroke in the text colour takes the wordmark a notch heavier. */
.brand span { -webkit-text-stroke: 1px currentColor; }
.brand img { border-radius: 22%; filter: drop-shadow(0 0 10px rgba(10, 236, 149, 0.45)); }
/* The app icon follows the theme: the green tile on light, the dark tile on dark. */
:root:not([data-theme="light"]) .logo--light,
:root[data-theme="light"] .logo--dark { display: none; }
.brand b { color: var(--green); font-weight: 800; }
.nav__links { display: flex; gap: 32px; font-weight: 600; font-size: 15px; color: var(--muted); }
.nav__links a { position: relative; transition: color 0.2s; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.theme-toggle:hover { border-color: var(--green); color: var(--green-ink); }
.theme-toggle:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.theme-toggle svg {
  grid-area: 1 / 1;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
/* Shows the theme you'd switch to: a sun in dark mode, a moon in light. */
.theme-toggle__moon { opacity: 0; transform: rotate(-90deg) scale(0.6); }
:root[data-theme="light"] .theme-toggle__sun { opacity: 0; transform: rotate(90deg) scale(0.6); }
:root[data-theme="light"] .theme-toggle__moon { opacity: 1; transform: none; }

/* Light-only touches that don't reduce to a token swap. */
/* Light mode: the hero sits in a dark rounded card rather than full-bleed. */
:root[data-theme="light"] .hero { padding-top: 96px; }
:root[data-theme="light"] .hero__grid {
  padding: 64px 56px;
  border-radius: 36px;
  background:
    radial-gradient(60vw 50vh at 85% -10%, rgba(10, 236, 149, 0.14), transparent 70%),
    radial-gradient(50vw 60vh at -10% 60%, rgba(10, 236, 149, 0.07), transparent 70%),
    var(--bg);
  box-shadow: 0 30px 80px rgba(6, 35, 26, 0.18);
}
:root[data-theme="light"] .summary li::before { background-color: var(--green); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306231a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E"); }
:root.theme-anim body,
:root.theme-anim body * { transition: background-color 0.35s, border-color 0.35s, color 0.35s !important; }

/* ─── Hero ─── */
.hero { padding: 132px 0 72px; position: relative; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero__title {
  margin: 0;
  font-size: clamp(48px, 7.4vw, 96px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.045em;
}
.hero__lede { margin: 26px 0 34px; max-width: 520px; font-size: 18px; color: var(--muted); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__trust { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; font-weight: 600; color: var(--muted); }
.hero__trust li { display: flex; align-items: center; gap: 8px; }
.hero__trust svg,
.hud__sub svg { width: 18px; height: 18px; fill: none; stroke: var(--green-ink); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }

.hero__visual { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.hero__visual::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 236, 149, 0.28), transparent 65%);
  filter: blur(20px);
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.1); opacity: 0.7; } }

.phone {
  position: relative;
  width: min(330px, 78vw);
  aspect-ratio: 0.54;
  padding: 10px;
  border-radius: 48px;
  background: linear-gradient(160deg, #1d3a38, #07120f 40%, #0d2421);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(10, 236, 149, 0.18);
  transform: perspective(1400px) rotateY(-8deg) rotateX(3deg);
  transition: transform 0.6s var(--ease);
  will-change: transform;
}
.phone__screen { position: relative; width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: #000; }
.phone__photo,
.pose { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pose .pose__bones line { stroke: var(--green); stroke-width: 6; stroke-linecap: round; opacity: 0.85; filter: drop-shadow(0 0 6px var(--green)); }
.pose .pose__joints circle { fill: var(--green); filter: drop-shadow(0 0 10px var(--green)); animation: joint 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.pose .pose__joints circle:nth-child(2n) { animation-delay: 0.2s; }
.pose .pose__joints circle:nth-child(3n) { animation-delay: 0.45s; }
@keyframes joint { 50% { transform: scale(1.35); } }
.pose__bones line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.6s var(--ease) 0.4s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.phone__scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 30%;
  top: -30%;
  background: linear-gradient(180deg, transparent, rgba(10, 236, 149, 0.14) 80%, rgba(10, 236, 149, 0.5));
  border-bottom: 1px solid rgba(10, 236, 149, 0.7);
  animation: scan 3.6s linear infinite;
  mix-blend-mode: screen;
}
@keyframes scan { to { top: 100%; } }
.phone__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, transparent 22%, transparent 55%, rgba(1, 18, 15, 0.95) 100%); }

.hud { position: absolute; left: 16px; right: 16px; }
.hud--top { top: 18px; display: flex; justify-content: space-between; align-items: flex-start; }
.hud__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(1, 18, 15, 0.6);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(10px);
}
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
.hud__ring { position: relative; width: 76px; height: 76px; border-radius: 50%; background: rgba(1, 18, 15, 0.6); backdrop-filter: blur(10px); }
.hud__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: var(--track); stroke-width: 6; }
.ring-fill {
  fill: none;
  stroke: var(--green);
  stroke-width: 6;
  stroke-linecap: round;
  filter: drop-shadow(0 0 5px rgba(10, 236, 149, 0.8));
  transition: stroke-dashoffset 0.5s var(--ease);
}
.hud__ring-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1; }
.hud__ring-num b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.hud__ring-num span { font-size: 10px; color: var(--muted); font-weight: 700; margin-top: 2px; }
.hud__ring-num b.bump { animation: bump 0.4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.3); color: var(--green-ink); } }

.hud--bottom { bottom: 18px; }
.hud__title { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.hud__sub { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); margin: 2px 0 12px; }
.hud__bar { height: 6px; border-radius: 6px; background: var(--track); overflow: hidden; margin-bottom: 14px; }
.hud__bar i { display: block; height: 100%; width: 48%; border-radius: inherit; background: var(--green); box-shadow: var(--glow); transition: width 0.5s var(--ease); }
.hud__pause { width: 100%; }

.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.float-card__label { font-size: 12px; font-weight: 700; color: var(--muted); }
.float-card__value { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.float-card__meta { font-size: 12px; color: var(--faint); font-weight: 600; }
.float-card--pot { top: 12%; left: -2%; }
.float-card--win { bottom: 20%; right: -4%; flex-direction: row; align-items: center; gap: 12px; animation-delay: -2s; border-color: rgba(10, 236, 149, 0.35); box-shadow: 0 20px 40px var(--shadow), var(--glow); }
.float-card--streak { bottom: 4%; left: 2%; gap: 8px; animation-delay: -4s; }
.float-card__icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; }
.float-card__icon--gold { background: rgba(253, 194, 11, 0.14); }
.float-card__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes float { 50% { transform: translateY(-12px); } }

.chips { display: flex; gap: 6px; }
.chip { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--chip-line); display: grid; place-items: center; }
.chip--done { background: var(--green); border-color: var(--green); box-shadow: 0 0 10px rgba(10, 236, 149, 0.5); }
.chip--done::after { content: ""; width: 8px; height: 4px; border: solid var(--ink); border-width: 0 0 2.4px 2.4px; transform: translateY(-1px) rotate(-45deg); }
.chip--today { border-color: var(--green); animation: pulse-ring 1.8s infinite; }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(10, 236, 149, 0.6); } 100% { box-shadow: 0 0 0 10px rgba(10, 236, 149, 0); } }

/* ─── Ticker ─── */
.ticker {
  overflow: hidden;
  border-block: 1px solid var(--hairline);
  background: linear-gradient(90deg, rgba(10, 236, 149, 0.06), rgba(10, 236, 149, 0.02), rgba(10, 236, 149, 0.06));
  padding: 20px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track { display: flex; gap: 28px; width: max-content; animation: marquee 34s linear infinite; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; text-transform: uppercase; }
.ticker__track span:nth-of-type(4n + 1) { color: var(--green-ink); }
.ticker__track i { color: var(--green-ink); font-style: normal; opacity: 0.6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─── Sections ─── */
.section { padding: 120px 0; position: relative; }
.section__head { text-align: center; margin-bottom: 64px; }
.section__title { margin: 0; font-size: clamp(36px, 5vw, 60px); line-height: 1.04; font-weight: 800; letter-spacing: -0.035em; }
.section__lede { max-width: 600px; margin: 20px auto 0; color: var(--muted); font-size: 18px; }

/* ─── Steps ─── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.steps::before {
  content: "";
  position: absolute;
  top: 214px;
  left: 16%;
  right: 16%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), var(--green), transparent);
  opacity: 0.5;
  box-shadow: var(--glow);
}
.step {
  position: relative;
  text-align: center;
  padding: 28px 28px 36px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, color-mix(in srgb, var(--card) 90%, transparent), color-mix(in srgb, var(--card) 50%, transparent));
  border: 1px solid var(--hairline);
  transition: border-color 0.3s, transform 0.4s var(--ease), box-shadow 0.3s;
}
.step:hover { transform: translateY(-6px); border-color: rgba(10, 236, 149, 0.45); box-shadow: 0 0 40px rgba(10, 236, 149, 0.12); }
.step__art { width: 190px; height: 190px; margin: 0 auto 8px; transition: transform 0.5s var(--ease); }
.step:hover .step__art { transform: scale(1.06) rotate(-2deg); }
.step__num {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: var(--ink);
  font-weight: 800;
  font-size: 18px;
  box-shadow: var(--glow);
  margin-bottom: 14px;
}
.step h3 { margin: 0 0 10px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.step p { margin: 0; color: var(--muted); }

/* ─── Calculator ─── */
.section--calc::before {
  content: "";
  position: absolute;
  inset: 10% 0;
  background: radial-gradient(50% 50% at 50% 50%, rgba(10, 236, 149, 0.1), transparent 70%);
  pointer-events: none;
}
.calc {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border-radius: 30px;
  background: var(--card);
  border: 1px solid rgba(10, 236, 149, 0.28);
  box-shadow: 0 0 0 1px rgba(10, 236, 149, 0.05), 0 0 80px rgba(10, 236, 149, 0.12);
  overflow: hidden;
}
.calc__controls { padding: 40px; display: flex; flex-direction: column; gap: 32px; }
.calc__result { padding: 40px; background: linear-gradient(180deg, var(--card-alt), var(--card-deep)); border-left: 1px solid var(--hairline); display: flex; flex-direction: column; }

.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field__label { display: block; padding: 0; font-weight: 700; font-size: 17px; margin-bottom: 14px; }
.field__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.field__row .field__label { margin: 0; }
.field__aside { font-size: 14px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.field__scale { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--faint); font-weight: 600; }
.field__scale span:nth-child(2):not(:last-child) { color: var(--muted); }

.fee-chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.fee-chip {
  height: 52px;
  border-radius: 16px;
  border: 1px solid var(--hairline);
  background: var(--card-alt);
  font-weight: 800;
  font-size: 17px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.fee-chip:hover { border-color: rgba(10, 236, 149, 0.4); }
.fee-chip.is-active { border: 2px solid var(--green); background: var(--green-tint); color: var(--green-ink); box-shadow: var(--glow); }

.num-input input {
  width: 120px;
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card-alt);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  font-size: 20px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.num-input input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(10, 236, 149, 0.15); }

.range {
  --p: 30%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  background: transparent;
  cursor: pointer;
  margin: 0;
}
.range::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--green) var(--p), var(--track) var(--p)); }
.range::-moz-range-track { height: 8px; border-radius: 8px; background: var(--track); }
.range::-moz-range-progress { height: 8px; border-radius: 8px; background: var(--green); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  margin-top: -10px;
  border-radius: 50%;
  background: #fff;
  border: 6px solid var(--green);
  box-shadow: 0 0 18px rgba(10, 236, 149, 0.7);
  transition: transform 0.2s var(--ease);
}
.range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 6px solid var(--green); box-shadow: 0 0 18px rgba(10, 236, 149, 0.7); }
.range:active::-webkit-slider-thumb { transform: scale(1.15); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(10, 236, 149, 0.25), 0 0 18px rgba(10, 236, 149, 0.7); }

.crowd { padding: 20px; border-radius: 18px; background: var(--inset); border: 1px solid var(--hairline); }
.crowd__grid { display: grid; grid-template-columns: repeat(20, 1fr); gap: 6px; }
.crowd__grid i {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(10, 236, 149, 0.55);
  transition: background 0.35s var(--ease), box-shadow 0.35s, transform 0.35s var(--ease);
}
.crowd__grid i.out { background: var(--dot-off); box-shadow: none; transform: scale(0.72); }
.crowd__grid i.you { background: #fff; box-shadow: 0 0 0 2px var(--green), 0 0 12px var(--green); }
.crowd__legend { display: flex; gap: 18px; margin-top: 14px; font-size: 12px; font-weight: 600; color: var(--muted); }
.crowd__legend span { display: flex; align-items: center; gap: 6px; }
.lg { width: 10px; height: 10px; border-radius: 50%; }
.lg--win { background: var(--green); }
.lg--lose { background: var(--chip-line); }
.lg--you { background: #fff; box-shadow: 0 0 0 2px var(--green); }

.result__head { display: flex; align-items: center; justify-content: space-between; }
.return-pill { padding: 6px 12px; border-radius: 999px; background: var(--green-tint); color: var(--green-ink); font-weight: 800; font-size: 14px; border: 1px solid rgba(10, 236, 149, 0.35); font-variant-numeric: tabular-nums; }
.result__amount {
  margin: 10px 0 4px;
  font-size: clamp(56px, 7vw, 84px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 40px rgba(10, 236, 149, 0.3);
}
.result__split { margin: 0 0 28px; color: var(--muted); font-weight: 600; }

.rows { margin: 0 0 28px; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; }
.row dt { font-weight: 600; }
.row dt small { display: block; font-size: 12px; color: var(--faint); font-weight: 600; margin-top: 1px; }
.row dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row--divider { border-top: 1px solid var(--hairline); margin-top: 6px; padding-top: 18px; }
.row--em dt { font-weight: 800; font-size: 18px; }
.row--em dd { font-size: 22px; }
.calc__result .btn { margin-top: auto; }
.footnote { margin: 16px 0 0; font-size: 12px; color: var(--faint); line-height: 1.5; }

/* ─── Moves ─── */
.moves { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.moves .move { padding: 24px; }
.move {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--hairline);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.3s;
  isolation: isolate;
}
.move::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 60%);
  opacity: 0.5;
  transition: opacity 0.3s;
}
.move:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 0 36px color-mix(in srgb, var(--c) 30%, transparent); }
.move:hover::before { opacity: 1; }
.move__fig {
  position: relative;
  height: 150px;
  margin: -6px -8px 18px;
  display: grid;
  place-items: center;
}
/* Soft category-colour floor glow under the figure. */
.move__fig::after {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: 6px;
  height: 18px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 45%, transparent);
  filter: blur(14px);
  z-index: -1;
}
.move__fig svg { max-height: 150px; opacity: 0; transition: opacity 0.5s var(--ease); }
.move__fig.is-ready svg { opacity: 1; }
.move h3 { margin: 0 0 8px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.move p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.move__tag { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }

/* ─── Bento ─── */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(250px, auto); gap: 20px; }
.tile {
  position: relative;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--hairline);
  overflow: hidden;
  transition: border-color 0.3s;
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(10, 236, 149, 0.1), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s;
}
.tile:hover { border-color: rgba(10, 236, 149, 0.3); }
.tile:hover::after { opacity: 1; }
.tile h3 { margin: 0 0 8px; font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; }
.tile__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--green); box-shadow: var(--glow); margin-bottom: 22px; }
.tile__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile--wide { grid-column: span 2; }
.tile__split { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; height: 100%; }

.tile--photo { grid-row: span 2; padding: 0; display: flex; flex-direction: column; justify-content: flex-end; min-height: 540px; }
.tile--photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile--photo:hover > img { transform: scale(1.05); }
.tile--photo__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(1, 18, 15, 0.97) 88%); }
.tile--photo .tile__body { position: relative; padding: 30px; }
.notif {
  position: absolute;
  top: 22px;
  left: 18px;
  right: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(18, 42, 46, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 13px;
  line-height: 1.35;
  animation: float 7s ease-in-out infinite;
}
.notif b { display: block; font-size: 13px; }
.notif span { color: var(--muted); }
.notif__icon { flex: none; width: 38px; height: 38px; }
.notif__icon img { width: 100%; }

.week { display: flex; gap: 10px; }
.week__day { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--faint); }
.week .chip { width: 38px; height: 38px; }
.week .chip--done::after { width: 12px; height: 6px; border-width: 0 0 3px 3px; }

.mini-ring { position: relative; width: 120px; height: 120px; margin-bottom: 20px; }
.mini-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.mini-ring .ring-track,
.mini-ring .ring-fill { stroke-width: 11; }
.mini-ring .ring-fill--anim { stroke-dasharray: 314.16; stroke-dashoffset: 314.16; transition: stroke-dashoffset 1.6s var(--ease); }
.mini-ring.is-in .ring-fill--anim { stroke-dashoffset: 125.66; }
.mini-ring__num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.mini-ring__num b { font-size: 32px; font-weight: 800; }
.mini-ring__num span { font-size: 11px; color: var(--muted); font-weight: 700; }

/* ─── FAQ ─── */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { border-radius: 18px; background: var(--card); border: 1px solid var(--hairline); transition: border-color 0.3s, background 0.3s; }
.faq details[open] { border-color: rgba(10, 236, 149, 0.4); background: linear-gradient(180deg, rgba(10, 236, 149, 0.05), var(--card)); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 64px 22px 24px;
  font-weight: 700;
  font-size: 18px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  translate: 0 -50%;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 600;
  color: var(--green-ink);
  background: var(--green-tint);
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--green); color: var(--ink); text-shadow: none; }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--muted); }
.faq details p a,
.faq__more a { color: var(--green-ink); text-decoration: underline; text-decoration-color: rgba(10, 236, 149, 0.4); text-underline-offset: 3px; }
.faq__more { margin: 28px 0 0; text-align: center; color: var(--faint); font-size: 14px; }

/* ─── CTA ─── */
.cta__card {
  position: relative;
  text-align: center;
  padding: 80px 32px;
  border-radius: 36px;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(10, 236, 149, 0.22), transparent 70%),
    linear-gradient(180deg, var(--card-alt), var(--card));
  border: 1px solid rgba(10, 236, 149, 0.3);
  overflow: hidden;
}
.cta__logo { width: 120px; margin: 0 auto 26px; filter: drop-shadow(0 0 30px rgba(10, 236, 149, 0.6)); animation: float 5s ease-in-out infinite; }
.store-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
/* The official store badges: black, white type, grey hairline edge. */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  min-width: 216px;
  padding: 0 22px 0 18px;
  border-radius: 12px;
  border: 1px solid #a6a6a6;
  background: #000;
  color: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 500;
  font-size: 27px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-align: left;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px var(--shadow); }
.store-btn__logo { flex: none; width: 36px; height: 36px; }
.store-btn small { display: block; font-size: 14px; font-weight: 500; letter-spacing: 0; }
.store-btn__caps { text-transform: uppercase; }

.footer { border-top: 1px solid var(--hairline); padding: 32px 0 48px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; font-size: 14px; color: var(--faint); }
.footer__links { display: flex; gap: 24px; font-size: 14px; font-weight: 600; color: var(--muted); }
.footer__links a { transition: color 0.2s; }
.footer__links a:hover,
.footer__links a[aria-current="page"] { color: var(--green-ink); }

/* ─── Legal pages ─── */
.nav--solid {
  background: var(--overlay);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-color: var(--hairline);
}
.legal { padding: 136px 0 96px; }
.legal__head { max-width: 760px; margin-bottom: 48px; }
.legal__title { margin: 0 0 16px; font-size: clamp(40px, 6vw, 64px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; }
.legal__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; color: var(--faint); font-size: 14px; font-weight: 600; }
.legal__grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 64px; align-items: start; }

.toc { position: sticky; top: 104px; max-height: calc(100vh - 128px); overflow-y: auto; padding-right: 8px; }
.toc__label { margin: 0 0 12px; color: var(--faint); font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; border-left: 1px solid var(--hairline); }
.toc li { counter-increment: toc; }
.toc a {
  display: block;
  margin-left: -1px;
  padding: 6px 0 6px 16px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  transition: color 0.2s, border-color 0.2s;
}
.toc a::before { content: counter(toc) ". "; color: var(--faint); }
.toc a:hover { color: var(--text); }
.toc a.is-active { color: var(--green-ink); border-left-color: var(--green); }

.summary {
  margin-bottom: 56px;
  padding: 28px 30px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(10, 236, 149, 0.08), rgba(10, 236, 149, 0.02));
  border: 1px solid rgba(10, 236, 149, 0.22);
}
.summary h2 { margin: 0 0 6px; font-size: 20px; letter-spacing: -0.01em; }
.summary > p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.summary ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.summary li { position: relative; padding-left: 30px; color: var(--text); }
.summary li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230aec95' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.prose { color: var(--muted); font-size: 16px; line-height: 1.7; }
.prose section { scroll-margin-top: 104px; }
.prose section + section { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--hairline); scroll-margin-top: 48px; }
.prose h2 { margin: 0 0 18px; color: var(--text); font-size: clamp(24px, 3vw, 30px); line-height: 1.2; letter-spacing: -0.02em; }
.prose h2 span { color: var(--green-ink); margin-right: 10px; }
.prose h3 { margin: 32px 0 10px; color: var(--text); font-size: 18px; letter-spacing: -0.01em; }
.prose p { margin: 0 0 16px; }
.prose ul,
.prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--green-ink); }
.prose strong { color: var(--text); font-weight: 700; }
.prose a { color: var(--green-ink); text-decoration: underline; text-decoration-color: rgba(10, 236, 149, 0.4); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--green); }
.prose dl { margin: 0 0 16px; display: grid; gap: 12px; }
.prose dt { color: var(--text); font-weight: 700; }
.prose dd { margin: 2px 0 0; }

.callout {
  margin: 20px 0;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--green);
}
.callout--warn { border-left-color: var(--gold); }
.callout p:last-child,
.callout ul:last-child { margin-bottom: 0; }

.caps { text-transform: uppercase; font-size: 14px; letter-spacing: 0.01em; }

.table-wrap { margin: 0 0 16px; overflow-x: auto; border: 1px solid var(--hairline); border-radius: 16px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.prose th,
.prose td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hairline); }
.prose th { color: var(--text); background: var(--card); font-weight: 700; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { color: var(--text); font-weight: 600; }
.prose td.num { color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }

/* ─── Reveal ─── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
/* Above the fold: same entrance, but CSS-only so the hero paints without waiting for JS. */
.intro { animation: intro 0.9s var(--ease) backwards; }
.hero__copy .intro:nth-child(2) { animation-delay: 60ms; }
.hero__copy .intro:nth-child(3) { animation-delay: 120ms; }
.hero__copy .intro:nth-child(4) { animation-delay: 180ms; }
.hero__copy .intro:nth-child(5) { animation-delay: 240ms; }
@keyframes intro { from { opacity: 0; transform: translateY(28px); } }

/* ─── Responsive ─── */
@media (max-width: 1020px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__lede { margin-inline: auto; }
  .hero__ctas,
  .hero__trust { justify-content: center; }
  .calc { grid-template-columns: 1fr; }
  .calc__result { border-left: 0; border-top: 1px solid var(--hairline); }
  .moves { grid-template-columns: repeat(2, 1fr); }
  .move:last-child { grid-column: span 2; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--photo { grid-row: span 1; grid-column: span 2; min-height: 480px; }
}
@media (max-width: 900px) {
  .legal__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .toc { position: static; max-height: none; padding: 22px 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--hairline); }
  .toc ol { border-left: 0; columns: 2 200px; column-gap: 24px; }
  .toc li { break-inside: avoid; }
  .toc a { padding-left: 0; border-left: 0; }
}
@media (max-width: 760px) {
  .nav__links { display: none; }
  :root[data-theme="light"] .hero { padding-top: 88px; }
  :root[data-theme="light"] .hero__grid { width: calc(100% - 24px); padding: 40px 20px; border-radius: 28px; }
  .hero { padding: 108px 0 56px; }
  .section { padding: 84px 0; }
  .section__head { margin-bottom: 44px; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .calc__controls,
  .calc__result { padding: 26px 20px; }
  .fee-chips { gap: 6px; }
  .fee-chip { height: 46px; font-size: 15px; border-radius: 14px; }
  .crowd__grid { gap: 4px; }
  .moves { grid-template-columns: 1fr; }
  .move:last-child { grid-column: auto; }
  .bento { grid-template-columns: 1fr; }
  .tile--photo,
  .tile--wide { grid-column: span 1; }
  .tile__split { grid-template-columns: 1fr; }
  .week { gap: 6px; justify-content: space-between; }
  .week .chip { width: 34px; height: 34px; }
  .float-card--pot { left: 0; top: 4%; }
  .float-card--win { right: 0; }
  .float-card--streak { display: none; }
  .float-card { padding: 10px 14px; }
  .float-card__value { font-size: 20px; }
  .phone { transform: none; }
  .cta__card { padding: 56px 20px; }
  .footer__inner { justify-content: center; text-align: center; flex-direction: column; }
  .legal { padding: 108px 0 72px; }
  .summary { padding: 22px 20px; }
  .prose section + section { margin-top: 44px; padding-top: 44px; scroll-margin-top: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .pose__bones line { stroke-dashoffset: 0; }
}
