/* ============ Tokens ============ */
:root {
  --bg: #14100b;          /* ember-tinted near-black, from the app's own screens */
  --surface: #1e1811;
  --line: rgba(245, 239, 230, 0.1);
  --text: #f5efe6;        /* warm chalk white */
  --muted: #a99e90;
  --brand: #f4562a;       /* the icon orange */
  --ember: #ff8a3d;
  --lime: #cef24e;
  --purple: #8b5cf6;
  --cyan: #38d6f5;
  --magenta: #f543ec;

  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --measure: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.3rem); }

h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.06rem;
  margin-bottom: 0.4rem;
}

section {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(4rem, 9vh, 7rem) 24px 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ember);
  margin-bottom: 1rem;
}

/* ============ Nav ============ */
.nav {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.02rem;
}

.nav-brand img { border-radius: 9px; }

.nav-links { display: flex; gap: 10px; }

.nav-store {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  transition: color 0.2s, border-color 0.2s;
}

.nav-store:hover { color: var(--text); border-color: var(--ember); }

/* ============ Hero ============ */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-top: clamp(2rem, 4vh, 4rem);
  padding-bottom: clamp(2.5rem, 5vh, 4rem);
}

.hero-copy .lede {
  color: var(--muted);
  max-width: 46ch;
  margin-top: 1.2rem;
  font-size: 1.06rem;
}

.hero-shot { position: relative; }

.hero-shot::before {
  /* the ember glow behind the phone, echoing the app's neon art */
  content: "";
  position: absolute;
  inset: 8% 2%;
  background: radial-gradient(closest-side, rgba(244, 86, 42, 0.32), transparent 72%);
  filter: blur(14px);
  z-index: 0;
}

.hero-shot img {
  position: relative;
  z-index: 1;
  width: auto;
  max-height: min(74vh, 640px);
  margin-inline: auto;
  border-radius: 26px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

/* ---- Signature: exchange ticker ---- */
.ticker {
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
  margin-top: 1.8rem;
  padding: 1rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.ticker-cell { display: flex; flex-direction: column; }

.ticker-num {
  font-family: var(--font-mono);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 500;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.ticker-num.accent { color: var(--brand); }

.ticker-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.ticker-eq {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--muted);
}

.ticker-lock { margin-left: 0.2rem; }

.ticker-lock .lock-body {
  fill: var(--brand);
  transition: fill 0.3s;
}

.ticker-lock .lock-shackle {
  stroke: var(--brand);
  stroke-width: 2.2;
  stroke-linecap: round;
  transform-origin: 8px 10px;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), stroke 0.3s;
}

.ticker.unlocked .lock-shackle { transform: rotate(-38deg) translateY(-1.5px); }
.ticker.unlocked .lock-body,
.ticker.unlocked .lock-shackle { fill-opacity: 1; }
.ticker.unlocked .lock-body { fill: #58c472; }
.ticker.unlocked .lock-shackle { stroke: #58c472; }

.hero-exercises {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.hero-exercises li { display: inline-flex; align-items: center; gap: 7px; }

/* ---- Store badges ---- */
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 1.9rem;
}

.store-row.center { justify-content: center; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  background: #000;
  border: 1px solid rgba(245, 239, 230, 0.22);
  border-radius: 12px;
  padding: 10px 20px 10px 16px;
  transition: transform 0.18s, border-color 0.18s;
}

.badge:hover { transform: translateY(-2px); border-color: var(--ember); }

.badge span { display: flex; flex-direction: column; line-height: 1.25; }
.badge small { font-size: 0.68rem; color: var(--muted); }
.badge strong { font-size: 1.02rem; font-weight: 600; }

.trust-line {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 1.1rem;
}

/* ============ Cost: year grid ============ */
.cost h2 { max-width: 22ch; }

.year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14px, 1fr));
  gap: 6px;
  margin-top: 2.6rem;
  max-width: 880px;
}

.year-dot {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
}

.year-dot.burned {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 0 8px rgba(244, 86, 42, 0.55);
  transform: scale(1.05);
}

.year-grid.lit .year-dot.will-burn {
  transition: background 0.35s ease, border-color 0.35s ease,
    box-shadow 0.35s ease, transform 0.35s ease;
}

.year-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.year-legend > span { display: inline-flex; align-items: center; gap: 8px; }

.dot-ember { background: var(--brand); box-shadow: 0 0 6px rgba(244, 86, 42, 0.6); }
.dot-dim { background: var(--surface); border: 1px solid var(--line); }

/* ============ How: screenshot-led steps ============ */
.how h2 { max-width: 24ch; }

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 2.6rem;
}

.step figure { margin-bottom: 1.2rem; }

.step figure img {
  border-radius: 20px;
  border: 1px solid var(--line);
  width: 100%;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--brand);
  display: block;
  margin-bottom: 0.4rem;
}

.step p { color: var(--muted); font-size: 0.92rem; }

/* ============ Results: icon one-liners ============ */
.results h2 { max-width: 24ch; }

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 2.4rem;
}

.result-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem 1.4rem;
}

.result-card svg { margin-bottom: 0.9rem; }

.result-card h3 { font-size: 0.98rem; }

.result-card p { color: var(--muted); font-size: 0.88rem; }

/* ============ Feature band ============ */
.feature-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 380px));
  justify-content: center;
  gap: 28px;
  margin-top: 2.6rem;
}

.feature-band img {
  border-radius: 22px;
  border: 1px solid var(--line);
}

.feature-band figcaption {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.8rem;
  text-align: center;
}

.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-lime { background: var(--lime); }
.dot-purple { background: var(--purple); }
.dot-cyan { background: var(--cyan); }
.dot-magenta { background: var(--magenta); }
.dot-orange { background: var(--ember); }

/* ============ CTA ============ */
.cta {
  text-align: center;
  padding-bottom: clamp(3rem, 7vh, 5rem);
}

.cta h2 { max-width: 18ch; margin: 0 auto; }

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--line);
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2.4rem 24px 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-brand img { border-radius: 7px; }

.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
}

.footer-links a:hover { color: var(--text); }

.footer-note { color: var(--muted); font-size: 0.8rem; }

/* ============ Reveal on scroll ============ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .results-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; }
  .hero-shot { max-width: 340px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; max-width: 360px; }
  .feature-band { grid-template-columns: minmax(0, 380px); }
  .ticker { gap: 1rem; padding: 0.9rem 1.1rem; }
  .year-grid { gap: 4px; grid-template-columns: repeat(auto-fill, minmax(11px, 1fr)); }
}

@media (max-width: 560px) {
  .results-grid { grid-template-columns: 1fr; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .badge, .ticker-lock .lock-shackle { transition: none; }
}
