:root {
  --bg: #f2f3f7;
  --surface: #ffffff;
  --inset: #eef0f4;
  --line: #e3e6ec;
  --text: #0f172a;
  --muted: #5b6475;
  --faint: #9aa2b1;
  --accent: #1d4ed8;
  --accent-ink: #ffffff;
  --money: #15803d;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  --radius: 14px;
  --max: 1120px;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", "Avenir Next", "Segoe UI", sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0b0d12;
  --surface: #171a21;
  --inset: #252a33;
  --line: #2a2f39;
  --text: #f3f5f8;
  --muted: #a0a8b6;
  --faint: #6b7380;
  --accent: #4f80ff;
  --accent-ink: #0b0d12;
  --money: #34c77b;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 80% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.011em;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck { border-bottom-color: var(--line); }
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.wordmark {
  font-weight: 650;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--accent);
}
.nav-links {
  display: flex;
  gap: 22px;
  margin-right: auto;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.theme-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: inset -5px -2px 0 0 var(--surface);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: 12px;
  padding: 14px 18px;
  border: 0;
}
:root[data-theme="dark"] .btn { color: #0b0d12; }
.btn:hover { filter: brightness(1.08); }
.btn-small { padding: 8px 12px; font-size: 0.9rem; border-radius: 10px; }
.btn-quiet {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 24px 40px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 650;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1, h2, h3 { font-weight: 560; letter-spacing: -0.035em; }
h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.2rem, 6vw, 5.4rem);
  line-height: 0.92;
}
h1 em { font-style: italic; color: var(--accent); }
.lede {
  margin: 22px 0 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.12rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.fine { margin: 14px 0 0; color: var(--faint); font-size: 0.88rem; }

.stage {
  position: relative;
  height: 680px;
}
.phone {
  position: absolute;
  width: 300px;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  background: #0f172a;
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow);
}
.screen {
  background: var(--bg);
  color: var(--text);
  border-radius: 28px;
  min-height: 560px;
  padding: 18px 16px 20px;
  overflow: hidden;
}
.statusbar, .goal-row, .delta, .card-label, .when, .screen-sub, .load-list small, .pay small {
  color: var(--muted);
  font-size: 11px;
}
.statusbar { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 18px; }
.brand { margin: 0; color: var(--accent); font-weight: 700; font-size: 13px; }
.when { margin: 2px 0 0; }
.hello {
  margin: 2px 0 14px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.card, .paper, .panel, .plan {
  background: var(--surface);
  border-radius: var(--radius);
}
.card { padding: 14px; }
.card-label { margin: 0; font-weight: 600; }
.figure {
  margin: 2px 0 0;
  font-size: 34px;
  font-weight: 720;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.delta { margin: 6px 0 0; }
.up { color: var(--money); font-weight: 700; }
.bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  align-items: end;
  height: 92px;
  margin-top: 16px;
}
.bars span {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: var(--h);
  background: color-mix(in srgb, var(--accent) 78%, white);
  border-radius: 5px 5px 3px 3px;
  position: relative;
  transform-origin: bottom;
  animation: rise 0.8s ease both;
}
.bars span:nth-child(2) { animation-delay: 0.05s; }
.bars span:nth-child(3) { animation-delay: 0.1s; }
.bars span:nth-child(4) { animation-delay: 0.15s; }
.bars span:nth-child(5) { animation-delay: 0.2s; }
.bars span:nth-child(6) { animation-delay: 0.25s; }
.bars span:nth-child(7) { animation-delay: 0.3s; }
.bars .today { background: var(--money); }
.bars i {
  position: absolute;
  bottom: -16px;
  font-style: normal;
  font-size: 10px;
  color: var(--faint);
}
.goal { margin-top: 26px; }
.goal-row { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.track {
  margin-top: 6px;
  height: 6px;
  background: var(--inset);
  border-radius: 99px;
  overflow: hidden;
}
.fill {
  width: 82%;
  height: 100%;
  background: var(--money);
  border-radius: inherit;
  animation: fill 1.1s ease both;
}
.log-btn {
  margin-top: 16px;
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-weight: 700;
  border-radius: 14px;
  padding: 13px 10px;
}
:root[data-theme="dark"] .log-btn { color: #0b0d12; }

.screen-title { margin: 8px 0 0; font-size: 26px; font-weight: 720; letter-spacing: -0.04em; }
.screen-sub { margin: 0 0 12px; }
.load-list { list-style: none; margin: 0; padding: 0; }
.load-list li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.load-list strong, .pay { display: block; font-size: 12.5px; }
.load-list small, .pay small { display: block; }
.pay { text-align: right; color: var(--money); font-weight: 700; font-variant-numeric: tabular-nums; }
.tile {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--inset);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
}

.strip {
  max-width: var(--max);
  margin: 10px auto 0;
  padding: 0 24px 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.strip div { padding: 22px 18px 22px 0; }
.strip strong { display: block; font-size: 0.95rem; }
.strip span { color: var(--muted); font-size: 0.92rem; }

.section { max-width: var(--max); margin: 0 auto; padding: 88px 24px 0; }
.section-head { max-width: 40rem; margin-bottom: 28px; }
h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.05;
}
.section-head p:last-child { color: var(--muted); margin: 12px 0 0; }

.bento {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
}
.panel { padding: 22px; border: 1px solid var(--line); }
.panel h3 { margin: 0 0 8px; font-size: 1.25rem; }
.panel p { margin: 0; color: var(--muted); }
.panel-wide {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  background:
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 7%, var(--surface))),
    var(--surface);
}
.math { margin: 0; }
.math div {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.math dt { color: var(--muted); }
.math dd { margin: 0; font-weight: 650; }
.math .sum dt, .math .sum dd { color: var(--text); font-size: 1.15rem; }
.math .sum dd { color: var(--money); }
.paper {
  margin-top: 18px;
  padding: 16px;
  background: var(--inset);
  display: grid;
  gap: 2px;
}
.paper span, .paper em { color: var(--muted); font-size: 0.85rem; font-style: normal; }
.paper strong { font-size: 1.2rem; letter-spacing: -0.03em; }

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: auto;
  background: var(--surface);
}
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 650; }
.num { text-align: right; }
.total td { font-weight: 700; border-bottom: 0; }
.total .num { color: var(--money); }
.table-note { color: var(--faint); font-size: 0.88rem; }

.steps ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.steps li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.steps span {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.85rem;
}
.steps h3 { margin: 10px 0 6px; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: stretch;
}
.plan {
  border: 1px solid var(--line);
  padding: 20px 18px 22px;
  display: flex;
  flex-direction: column;
}
.plan h3 { margin: 0; font-size: 1.05rem; }
.price { margin: 14px 0 0; display: flex; align-items: baseline; gap: 4px; }
.price span {
  font-family: var(--serif);
  font-size: 2.6rem;
  letter-spacing: -0.04em;
  line-height: 1;
}
.price small, .plan-note { color: var(--muted); }
.plan-note { margin: 8px 0 0; font-size: 0.9rem; }
.plan ul { margin: 16px 0 0; padding: 0; list-style: none; color: var(--text); }
.plan li { padding: 7px 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
.plan-mark {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.plan-mark .plan-note, .plan-mark .price small { color: color-mix(in srgb, var(--bg) 70%, var(--text)); }
.plan-mark li { border-top-color: color-mix(in srgb, var(--bg) 18%, transparent); }
.badge {
  margin: 0 0 10px;
  color: var(--money);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.redeem {
  margin: 22px 0 0;
  color: var(--muted);
  max-width: 46rem;
}

.faq { display: grid; gap: 8px; }
details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 16px;
}
summary {
  cursor: pointer;
  font-weight: 620;
  padding: 14px 0;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--faint); font-weight: 500; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 14px; color: var(--muted); }

.close {
  max-width: var(--max);
  margin: 72px auto 0;
  padding: 64px 24px;
  text-align: left;
}
.close h2 { max-width: 16ch; }

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 24px 40px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--faint);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}

@keyframes rise {
  from { transform: scaleY(0.2); opacity: 0; }
  to { transform: scaleY(1); opacity: 1; }
}
@keyframes fill {
  from { width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bars span, .fill { animation: none; }
}

@media (max-width: 980px) {
  .hero, .bento, .steps ol, .plans, .strip { grid-template-columns: 1fr 1fr; }
  .panel-wide { grid-row: auto; }
  .stage { height: 680px; }
  .nav-links { display: none; }
}
@media (max-width: 720px) {
  .hero, .bento, .steps ol, .plans, .strip, .footer { grid-template-columns: 1fr; display: grid; }
  .hero { padding-top: 36px; }
  .stage { height: auto; }
  .phone { position: relative; left: auto; top: auto; transform: none; width: min(100%, 320px); margin: 8px auto 0; }
  .strip div { padding: 14px 0; border-bottom: 1px solid var(--line); }
  h1 { font-size: 3.1rem; }
}
