/* ==========================================================================
   Percy website
   One stylesheet, no build step. Palette mirrors the app's redesign:
   navy #0B1830 / card navy #152A4D / mint #2ED9A7.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: #d2d2d7;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;

  --navy: #0b1830;
  --navy-2: #152a4d;
  --navy-3: #21304b;
  --on-dark: #f5f5f7;
  --on-dark-2: #a1a8b8;
  --line-dark: rgba(255, 255, 255, 0.12);

  --mint: #2ed9a7;
  --mint-ink: #07875f;       /* mint that holds contrast on white */
  --gold: #f5b82e;
  --indigo: #3040a8;

  --radius-l: 32px;
  --radius-m: 22px;
  --radius-s: 14px;

  --pad: max(22px, env(safe-area-inset-left));
  --max: 1080px;
  --max-wide: 1260px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --nav-h: 52px;

  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  color: var(--ink);
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); overflow-x: clip; font-size: 17px; line-height: 1.47; letter-spacing: -0.012em; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: rgba(46, 217, 167, 0.35); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff;
  transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid rgba(46, 217, 167, 0.7); outline-offset: 3px; border-radius: 6px; }

/* ---------- Typography ---------- */

.eyebrow {
  font-size: 19px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--mint-ink); margin-bottom: 14px;
}
.eyebrow--mint { color: var(--mint); }

.headline {
  font-size: clamp(40px, 6.4vw, 80px);
  line-height: 1.05; font-weight: 700; letter-spacing: -0.035em;
  text-wrap: balance;
}

.lede {
  font-size: clamp(19px, 1.9vw, 24px);
  line-height: 1.38; font-weight: 500; letter-spacing: -0.02em;
  color: var(--ink-2); max-width: 680px; margin: 22px auto 0;
  text-wrap: pretty;
}

.section-head { text-align: center; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

.dark { background: var(--navy); color: var(--on-dark); }
.dark .lede { color: var(--on-dark-2); }

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translate3d(0, 44px, 0);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Navigation ---------- */

.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.nav.scrolled { border-bottom-color: rgba(0, 0, 0, 0.08); }
.nav.on-dark { background: rgba(11, 24, 48, 0.72); color: var(--on-dark); }
.nav.on-dark.scrolled { border-bottom-color: var(--line-dark); }

.nav__inner {
  height: 100%; max-width: var(--max-wide); margin: 0 auto; padding: 0 var(--pad);
  display: flex; align-items: center; gap: 28px;
}
.nav__brand { display: flex; align-items: center; gap: 9px; font-weight: 650; font-size: 19px; letter-spacing: -0.02em; }
.nav__logo { height: 30px; width: auto; }
/* Navy badge on the light bar, mint badge while the bar sits over a dark section. */
.nav__logo--on-dark { display: none; }
.nav.on-dark .nav__logo { display: none; }
.nav.on-dark .nav__logo--on-dark { display: block; }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-size: 13px; }
.nav__links a { opacity: 0.8; transition: opacity .2s; }
.nav__links a:hover { opacity: 1; }
.nav__cta {
  font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px;
  background: var(--ink); color: #fff; transition: transform .2s var(--ease), background .2s;
}
.nav.on-dark .nav__cta { background: var(--mint); color: var(--navy); }
.nav__cta:hover { transform: scale(1.04); }
.nav__toggle { display: none; width: 36px; height: 36px; position: relative; }
.nav__toggle span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.nav__toggle span:first-child { top: 14px; }
.nav__toggle span:last-child { top: 21px; }

@media (max-width: 820px) {
  .nav__toggle { display: block; margin-left: 6px; }
  .nav__cta { margin-left: auto; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h));
    margin: 0; flex-direction: column; gap: 0; padding: 12px calc(var(--pad) + 8px) 26px;
    background: #fff;
    font-size: 28px; font-weight: 650; letter-spacing: -0.025em;
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .5s var(--ease), visibility 0s .5s;
  }
  .nav.open { background: #fff; }
  .nav.on-dark.open, .nav.on-dark .nav__links { background: var(--navy); }
  .nav__links a { padding: 10px 0; opacity: 0; transform: translateY(-8px); transition: opacity .4s, transform .5s var(--ease); }
  .nav.open .nav__links { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .5s var(--ease); }
  .nav.open .nav__links a { opacity: 1; transform: none; }
  .nav.open .nav__links a:nth-child(2) { transition-delay: .04s; }
  .nav.open .nav__links a:nth-child(3) { transition-delay: .08s; }
  .nav.open .nav__links a:nth-child(4) { transition-delay: .12s; }
  .nav.open .nav__links a:nth-child(5) { transition-delay: .16s; }
  .nav.open .nav__toggle span:first-child { top: 17.5px; transform: rotate(45deg); }
  .nav.open .nav__toggle span:last-child { top: 17.5px; transform: rotate(-45deg); }
}

/* ---------- Store buttons ---------- */

.store-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.store-row--center { justify-content: center; }
.store-btn {
  display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center;
  min-width: 168px; height: 56px; padding: 0 22px; border-radius: 14px;
  background: var(--ink); color: #fff; line-height: 1.1;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(0,0,0,.35); }
.store-btn__small { font-size: 11px; opacity: .75; letter-spacing: 0; }
.store-btn__big { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.store-btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.store-btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink), 0 10px 24px -12px rgba(0,0,0,.25); }

/* ---------- Phone frame ---------- */

/* Screenshots are 555 x 1202 (app captures, cropped); the frame adds the bezel. */
.phone {
  position: relative; aspect-ratio: 555 / 1202; border-radius: 16% / 7.4%;
  padding: 3.2%; background: #0d0f14;
  box-shadow:
    inset 0 0 0 1.5px #3a3d45,
    inset 0 0 0 5px #15171c,
    0 50px 100px -30px rgba(11, 24, 48, 0.45),
    0 30px 60px -40px rgba(0, 0, 0, 0.5);
}
.phone::after { /* dynamic island */
  content: ""; position: absolute; top: 4.1%; left: 50%; width: 27%; height: 3.3%;
  transform: translateX(-50%); background: #000; border-radius: 999px; z-index: 3;
}
.phone__screen {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: 13.2% / 6.1%; background: var(--navy);
}
.phone__screen img, .story__screen img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}

/* ---------- Hero ---------- */

.hero {
  position: relative; padding: calc(var(--nav-h) + clamp(56px, 9vh, 110px)) var(--pad) 0;
  text-align: center; overflow: hidden;
}
.hero__eyebrow { font-size: clamp(19px, 2vw, 24px); color: var(--ink); font-weight: 650; margin-bottom: 10px; }
.hero__title {
  font-size: clamp(52px, 10vw, 128px); line-height: 1.0; font-weight: 750; letter-spacing: -0.045em;
}
.hero__title > span { display: block; text-wrap: balance; }
.nowrap { white-space: nowrap; }
.hero__title-accent {
  background: linear-gradient(95deg, #0a9d70 0%, var(--mint) 45%, #19b7c9 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 0.08em;
}
.hero__sub {
  max-width: 620px; margin: 26px auto 0;
  font-size: clamp(19px, 2vw, 24px); line-height: 1.38; font-weight: 500; letter-spacing: -0.02em; color: var(--ink-2);
  text-wrap: pretty;
}
.hero .store-row { justify-content: center; }

[data-intro] { opacity: 0; transform: translateY(26px); }
.loaded [data-intro] { animation: intro 1.2s var(--ease) forwards; }
.loaded [data-intro]:nth-child(2) { animation-delay: .1s; }
.loaded [data-intro]:nth-child(3) { animation-delay: .22s; }
.loaded [data-intro]:nth-child(4) { animation-delay: .34s; }
.no-js [data-intro] { opacity: 1; transform: none; }
@keyframes intro { to { opacity: 1; transform: none; } }

.hero__stage {
  position: relative; width: min(330px, 60vw); margin: clamp(56px, 8vh, 90px) auto 0;
  transform-origin: 50% 0;
  will-change: transform;
}
.phone--hero { z-index: 2; }
.phone--side {
  position: absolute; top: 11%; width: 86%; z-index: 1;
  translate: var(--spread-x, 0px) 0;
}
.phone--left { right: 58%; --spread-x: calc(var(--spread, 0px) * -1); }
.phone--right { left: 58%; --spread-x: var(--spread, 0px); }

.hero .phone { opacity: 0; transform: translateY(80px); }
.loaded .hero .phone--hero { animation: intro 1.5s .35s var(--ease) forwards; }
.hero .phone--left { transform: translateX(40%) scale(.92); }
.hero .phone--right { transform: translateX(-40%) scale(.92); }
.loaded .hero .phone--side { animation: fan-out 1.6s .75s var(--ease) forwards; }
@keyframes fan-out { to { opacity: 1; transform: none; } }

.hero__glow {
  position: absolute; left: 50%; top: 35%; width: 300%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(46,217,167,.2), rgba(48,64,168,.07) 55%, transparent 75%);
  pointer-events: none; z-index: -1;
}
@media (max-width: 640px) {
  .hero__stage { width: min(250px, 58vw); }
  .phone--side { width: 80%; top: 13%; }
  .phone--left { right: 62%; }
  .phone--right { left: 62%; }
}

/* ---------- Statement (word-by-word scroll reveal) ---------- */

.statement { height: 260vh; background: var(--navy); color: var(--on-dark); position: relative; margin-top: -1px; }
.statement__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; align-items: center; justify-content: center; padding: 0 var(--pad);
}
.statement__text {
  max-width: 980px; font-size: clamp(30px, 4.6vw, 60px); line-height: 1.14; font-weight: 700; letter-spacing: -0.03em;
  text-wrap: balance;
}
.statement__text .w { opacity: .16; transition: opacity .35s linear; }
.statement__text .w.on { opacity: 1; }
.statement__text .w.hl.on { color: var(--mint); }
.no-js .statement { height: auto; padding: 140px 0; }
.no-js .statement__sticky { position: static; height: auto; }

/* ---------- Story (sticky phone) ---------- */

.story { background: var(--bg-alt); padding: clamp(110px, 14vw, 170px) 0 60px; }
.story__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
}
.story__stage {
  position: sticky; top: calc(var(--nav-h) + 4vh); height: calc(100vh - var(--nav-h) - 8vh);
  display: flex; align-items: center; justify-content: center;
}
.phone--story { height: min(100%, 680px); width: auto; }
.story__screen {
  position: absolute; inset: 0;
  opacity: 0; transform: scale(1.04);
  transition: opacity .7s var(--ease), transform .9s var(--ease);
}
.story__screen.is-active { opacity: 1; transform: none; }

.story__steps { padding: 18vh 0 22vh; }
.story__step {
  min-height: 72vh; display: flex; flex-direction: column; justify-content: center;
  opacity: .22; transition: opacity .6s var(--ease);
}
.story__step.is-active { opacity: 1; }
.story__num { font-size: 15px; font-weight: 600; color: var(--mint-ink); font-variant-numeric: tabular-nums; margin-bottom: 14px; }
.story__step h3 { font-size: clamp(32px, 3.8vw, 48px); line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; }
.story__step p { margin-top: 18px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; color: var(--ink-2); font-weight: 450; max-width: 460px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips button {
  font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px;
  background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line);
  transition: background .3s, color .3s, box-shadow .3s;
}
.chips button:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.chips button[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: none; }

@media (max-width: 820px) {
  .story__grid { grid-template-columns: 1fr; gap: 0; }
  .story__stage {
    top: var(--nav-h); height: 46vh; z-index: 2; padding: 2vh 0 3vh;
    background: linear-gradient(180deg, var(--bg-alt) 85%, rgba(245,245,247,0));
  }
  .story__steps { padding: 2vh 0 10vh; }
  .story__step { min-height: 78vh; justify-content: flex-start; padding-top: 2vh; text-align: center; align-items: center; }
  .story__step p { font-size: 17px; }
  .chips { justify-content: center; }
}

/* ---------- Numbers ---------- */

.numbers { background: var(--bg-alt); padding: 40px var(--pad) clamp(110px, 14vw, 170px); }
.numbers__grid {
  max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  border-top: 1px solid var(--line); padding-top: 56px;
}
.numbers__grid li { display: flex; flex-direction: column; gap: 6px; }
.numbers__grid strong {
  font-size: clamp(44px, 5.4vw, 72px); font-weight: 700; letter-spacing: -0.04em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.numbers__grid span { color: var(--ink-2); font-size: 17px; font-weight: 500; }
@media (max-width: 720px) { .numbers__grid { grid-template-columns: 1fr 1fr; row-gap: 44px; } }

/* ---------- Curriculum gallery ---------- */

.curriculum { padding: clamp(110px, 14vw, 170px) 0; overflow: hidden; }
.gallery { margin-top: 64px; }
.gallery__track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px max(var(--pad), calc((100vw - var(--max)) / 2)) 30px;
  scroll-padding-inline: max(var(--pad), calc((100vw - var(--max)) / 2));
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.gallery__track::-webkit-scrollbar { display: none; }
.course {
  flex: 0 0 min(372px, 82vw); scroll-snap-align: start;
  display: flex; flex-direction: column;
  padding: 34px 32px 30px; border-radius: var(--radius-l);
  background: linear-gradient(180deg, var(--navy-2), #11223f);
  border: 1px solid rgba(255,255,255,.1);
}
.course__index { font-size: 14px; font-weight: 600; color: var(--mint); }
.course__head h3 { margin-top: 8px; font-size: 30px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; }
.course__list { margin-top: 26px; counter-reset: l; display: flex; flex-direction: column; }
.course__list li {
  counter-increment: l; display: flex; gap: 14px; align-items: baseline;
  padding: 11px 0; border-top: 1px solid var(--line-dark); font-size: 16px; color: #dfe3ec; font-weight: 500;
}
.course__list li::before {
  content: counter(l, decimal-leading-zero); font-size: 12px; font-weight: 600; color: var(--on-dark-2);
  font-variant-numeric: tabular-nums; min-width: 18px;
}
.course__quiz { margin-top: auto; padding-top: 18px; font-size: 15px; font-weight: 600; color: var(--gold); }
.course--next { justify-content: flex-end; background: linear-gradient(180deg, #13284a, #0e1d38); }
.course--next img { width: 78%; margin: 0 auto auto; }
.course--next h3 { font-size: 28px; line-height: 1.12; letter-spacing: -0.03em; }
.course--next p { margin-top: 12px; color: var(--on-dark-2); font-size: 16px; }

.gallery__controls {
  display: flex; justify-content: flex-end; gap: 12px;
  max-width: var(--max); margin: 8px auto 0; padding: 0 var(--pad);
}
.round-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.1); transition: background .2s, opacity .2s, transform .2s var(--ease);
}
.round-btn:hover { background: rgba(255,255,255,.18); }
.round-btn:active { transform: scale(.94); }
.round-btn:disabled { opacity: .35; cursor: default; }
.round-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Calculator ---------- */

.calc-section { padding: clamp(110px, 14vw, 170px) 0; }
.calc {
  max-width: var(--max); margin: 64px auto 0; padding: clamp(28px, 4vw, 56px);
  border-radius: var(--radius-l); background: var(--bg-alt);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px);
  width: calc(100% - 2 * var(--pad));
}
.calc__controls { display: flex; flex-direction: column; gap: 34px; justify-content: center; }
.field { display: flex; flex-direction: column; gap: 14px; }
.field__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.field output { font-size: 19px; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; white-space: nowrap; }

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; cursor: pointer;
  --p: 50%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 99px;
  background: linear-gradient(90deg, var(--mint) var(--p), #dcdce1 var(--p));
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 99px; background: #dcdce1; }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--mint); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.04), 0 3px 8px rgba(0,0,0,.15), 0 1px 1px rgba(0,0,0,.16);
  transition: transform .2s var(--ease);
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb {
  width: 28px; height: 28px; border: 0; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.04), 0 3px 8px rgba(0,0,0,.15), 0 1px 1px rgba(0,0,0,.16);
}

.calc__result { display: flex; flex-direction: column; min-width: 0; }
.calc__label { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.calc__total {
  font-size: clamp(44px, 6vw, 76px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.05; margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.calc__legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.calc__legend span { display: inline-flex; align-items: center; gap: 8px; }
.calc__legend b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sw--paid { background: var(--navy-2); }
.sw--gain { background: var(--mint); }

.chart {
  margin-top: 28px; flex: 1; min-height: 220px;
  display: flex; align-items: flex-end; gap: clamp(2px, .5vw, 6px);
}
.bar {
  flex: 1 1 0; display: flex; flex-direction: column-reverse; min-width: 0;
  height: var(--h, 0%); transition: height .7s var(--ease);
}
.bar__paid { background: var(--navy-2); border-radius: 0 0 3px 3px; height: var(--paid, 100%); transition: height .7s var(--ease); }
.bar__gain { background: var(--mint); border-radius: 3px 3px 0 0; flex: 1; }
.calc__note { grid-column: 1 / -1; font-size: 13px; line-height: 1.5; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 20px; }

@media (max-width: 820px) {
  .calc { grid-template-columns: 1fr; }
  .chart { min-height: 180px; }
}

.tools {
  max-width: var(--max); margin: clamp(100px, 12vw, 150px) auto 0; padding: 0 var(--pad);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 100px); align-items: center;
}
.tools__phone { display: flex; justify-content: center; }
.phone--tools { width: min(320px, 70vw); }
.tools__title { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; }
.tools__title span { color: var(--ink-3); }
.tools__list { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.tools__list li { display: flex; gap: 14px; align-items: flex-start; }
.tools__list svg { flex-shrink: 0; width: 26px; height: 26px; margin-top: 1px; fill: none; stroke: var(--mint-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tools__list h4 { font-size: 17px; font-weight: 650; letter-spacing: -0.02em; }
.tools__list p { margin-top: 4px; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
@media (max-width: 860px) {
  .tools { grid-template-columns: 1fr; }
  .tools__title { text-align: center; }
  .tools__phone { order: 2; }
}
@media (max-width: 520px) { .tools__list { grid-template-columns: 1fr; gap: 22px; } }

/* ---------- Habit bento ---------- */

.habit { background: var(--bg-alt); padding: clamp(110px, 14vw, 170px) 0; }
.bento {
  max-width: var(--max); margin: 64px auto 0; padding: 0 var(--pad);
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
}
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius-l); background: #fff;
  padding: clamp(28px, 3vw, 40px);
}
.tile__kicker { font-size: 14px; font-weight: 600; color: var(--mint-ink); margin-bottom: 8px; }
.tile h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 700; }
.tile p { margin-top: 10px; color: var(--ink-2); font-size: 16px; line-height: 1.45; }
.tile--streak { grid-column: span 4; background: var(--navy); color: var(--on-dark); min-height: 440px; display: flex; flex-direction: column; }
.tile--streak .tile__kicker { color: var(--mint); }
.tile--streak p { color: var(--on-dark-2); max-width: 340px; }
.tile--streak .tile__copy { max-width: 54%; position: relative; z-index: 2; }
.tile--streak img { position: absolute; right: -2%; top: 50%; transform: translateY(-50%); width: 46%; max-width: 380px; }
.week { display: flex; gap: 8px; margin-top: auto; position: relative; z-index: 2; }
.week span {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 600; color: var(--on-dark-2); background: rgba(255,255,255,.07);
}
.week span.on { background: var(--mint); color: var(--navy); }
.week span.today { box-shadow: inset 0 0 0 2px var(--mint); color: #fff; }
.in .week span.on { animation: pop .6s var(--ease) both; }
.in .week span.on:nth-child(2) { animation-delay: .08s; }
.in .week span.on:nth-child(3) { animation-delay: .16s; }
.in .week span.on:nth-child(4) { animation-delay: .24s; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

.tile--xp { grid-column: span 2; display: flex; flex-direction: column; }
.xpbar { margin-top: auto; height: 10px; border-radius: 99px; background: #e8e8ed; overflow: hidden; }
.xpbar__fill { height: 100%; width: 0; border-radius: inherit; background: var(--mint); transition: width 1.6s .3s var(--ease); }
.in .xpbar__fill { width: 72%; }
.xpbar__meta { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.tile--xp p { margin-bottom: 30px; }

.tile--remind { grid-column: span 3; }
.remind { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 30px; flex-wrap: wrap; }
.remind__days { display: flex; gap: 6px; }
.remind__days span {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600;
  background: var(--bg-alt); color: var(--ink-3);
}
.remind__days span.on { background: var(--navy); color: #fff; }
.remind__time { font-size: 40px; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }

.tile--quiz { grid-column: span 3; display: grid; grid-template-columns: 1fr auto; column-gap: 24px; align-items: center; }
.tile--quiz .tile__kicker, .tile--quiz h3 { grid-column: 1; }
.tile--quiz p { grid-column: 1; }
.ring { grid-column: 2; grid-row: 1 / span 3; width: 124px; height: 124px; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.ring__bg { stroke: #e8e8ed; }
.ring__fg { stroke: var(--mint); stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.6s .3s var(--ease); }
.in .ring__fg { stroke-dashoffset: 20; }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--streak { grid-column: span 2; }
  .tile--xp, .tile--remind, .tile--quiz { grid-column: span 2; }
}
@media (max-width: 560px) {
  .tile--streak { min-height: 520px; }
  .tile--streak .tile__copy { max-width: none; }
  .tile--streak img { width: 62%; right: -4%; top: auto; bottom: 64px; transform: none; }
  .week { gap: 5px; }
  .week span { width: 36px; height: 36px; }
  .tile--quiz { grid-template-columns: 1fr; }
  .ring { grid-column: 1; grid-row: auto; margin: 20px 0 6px; }
}

/* ---------- Privacy ---------- */

.privacy { padding: clamp(110px, 14vw, 170px) 0; }
.privacy__inner { max-width: var(--max); margin: 0 auto; }
.privacy__lock { width: 64px; height: 64px; margin: 0 auto 28px; fill: none; stroke: var(--mint); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.privacy__grid { margin-top: 72px; padding: 0 var(--pad); display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.privacy__grid svg { width: 30px; height: 30px; fill: none; stroke: var(--mint); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.privacy__grid h3 { font-size: 19px; font-weight: 650; letter-spacing: -0.02em; }
.privacy__grid p { margin-top: 8px; color: var(--on-dark-2); font-size: 15px; line-height: 1.5; }
.privacy__foot {
  margin: 64px var(--pad) 0; padding-top: 28px; border-top: 1px solid var(--line-dark);
  font-size: 14px; color: var(--on-dark-2); text-align: center;
}
.privacy__foot a { color: var(--mint); white-space: nowrap; }
.privacy__foot a::after { content: " ›"; }
@media (max-width: 900px) { .privacy__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .privacy__grid { grid-template-columns: 1fr; } }

/* ---------- Note (not financial advice) ---------- */

.note { padding: clamp(90px, 10vw, 130px) var(--pad) 0; }
.note__inner {
  max-width: 860px; margin: 0 auto; display: flex; gap: 36px; align-items: center;
  padding: 36px 40px; border-radius: var(--radius-l); background: var(--bg-alt);
}
.note__inner img { width: 150px; flex-shrink: 0; margin: -20px -10px -20px -20px; }
.note h2 { font-size: 28px; letter-spacing: -0.03em; font-weight: 700; line-height: 1.15; }
.note p { margin-top: 10px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
@media (max-width: 600px) {
  .note__inner { flex-direction: column; text-align: center; padding: 28px 24px 32px; gap: 10px; }
  .note__inner img { margin: -10px auto 0; width: 130px; }
}

/* ---------- FAQ ---------- */

.faq { padding: clamp(110px, 14vw, 170px) 0; }
.faq__list { max-width: 820px; margin: 56px auto 0; padding: 0 var(--pad); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; font-size: clamp(18px, 1.8vw, 21px); font-weight: 600; letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 12px; height: 12px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: translateY(-3px) rotate(45deg); transition: transform .4s var(--ease);
}
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq__a { overflow: hidden; }
.faq__a p { padding: 0 40px 26px 0; color: var(--ink-2); font-size: 17px; line-height: 1.55; }
.faq__a a { color: var(--mint-ink); }

/* ---------- Final CTA ---------- */

.final { padding: clamp(40px, 6vw, 80px) var(--pad) clamp(110px, 14vw, 170px); text-align: center; }
.final__icon {
  width: 128px; height: 128px; margin: 0 auto 36px; border-radius: 22.5%;
  box-shadow: 0 30px 60px -24px rgba(11,24,48,.45), 0 0 0 1px rgba(0,0,0,.04);
}
.final .in .final__icon, .final__inner.in .final__icon { animation: icon-in 1.4s var(--ease) both; }
@keyframes icon-in { from { transform: scale(.7) rotate(-8deg); } }

/* ---------- Footer ---------- */

.footer { background: var(--bg-alt); color: var(--ink-2); font-size: 12px; line-height: 1.5; }
.footer__inner { max-width: var(--max); margin: 0 auto; padding: 20px var(--pad) calc(24px + env(safe-area-inset-bottom)); }
.footer__brand { display: inline-block; margin-top: 22px; }
.footer__brand img { height: 52px; width: auto; }
.footer__tagline { padding: 8px 0 20px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--ink-2); }
.footer__disclaimer { padding: 14px 0 18px; border-bottom: 1px solid var(--line); }
.footer__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding-top: 16px; }
.footer__bar nav { display: flex; flex-wrap: wrap; gap: 4px 0; }
.footer__bar nav a { color: var(--ink); padding: 0 12px; border-left: 1px solid var(--line); }
.footer__bar nav a:first-child { padding-left: 0; border-left: 0; }
.footer__bar nav a:hover { text-decoration: underline; }

/* ---------- Legal pages ---------- */

.legal { padding: calc(var(--nav-h) + clamp(60px, 9vw, 110px)) var(--pad) clamp(90px, 10vw, 130px); }
.legal__inner { max-width: 720px; margin: 0 auto; }
.legal__head { padding-bottom: 36px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.legal__head h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.05; font-weight: 700; letter-spacing: -0.04em; }
.legal__head p { margin-top: 14px; color: var(--ink-2); font-size: 15px; }
.legal__toc { margin: 28px 0 8px; padding: 22px 24px; background: var(--bg-alt); border-radius: var(--radius-s); }
.legal__toc p { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.legal__toc ol { list-style: decimal; padding-left: 20px; columns: 2; column-gap: 28px; font-size: 15px; }
.legal__toc li { padding: 3px 0; break-inside: avoid; }
.legal__toc a { color: var(--mint-ink); }
.legal__toc a:hover { text-decoration: underline; }
@media (max-width: 600px) { .legal__toc ol { columns: 1; } }
.legal h2 { font-size: 24px; letter-spacing: -0.025em; font-weight: 700; margin-top: 48px; line-height: 1.2; }
.legal h3 { font-size: 18px; letter-spacing: -0.015em; font-weight: 650; margin-top: 28px; }
.legal p, .legal ul { margin-top: 14px; color: #3a3a3c; font-size: 17px; line-height: 1.6; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--mint-ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.legal address { font-style: normal; }
.legal .todo { background: #fff4d6; border-radius: 4px; padding: 0 4px; color: #7a5200; }
.legal .callout {
  margin-top: 20px; padding: 18px 20px; border-radius: var(--radius-s); background: var(--bg-alt); font-size: 16px;
}
.legal .callout p { margin: 0; font-size: 16px; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { font-weight: 600; color: var(--ink); }
.legal td { color: #3a3a3c; }

/* ---------- 404 ---------- */

.lost { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 100px var(--pad); }
.lost img { width: min(300px, 70vw); }
.lost h1 { font-size: clamp(40px, 6vw, 64px); letter-spacing: -0.04em; margin-top: 10px; }
.lost p { color: var(--ink-2); margin-top: 12px; font-size: 19px; }
.lost a { margin-top: 30px; display: inline-block; padding: 12px 22px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .reveal, [data-intro], .hero .phone { opacity: 1 !important; transform: none !important; }
  .statement { height: auto; padding: 140px 0; }
  .statement__sticky { position: static; height: auto; }
  .statement__text .w { opacity: 1; }
  .hero__stage { transform: none !important; }
}
