:root {
  --text: #0b0f0d;
  --muted: #5e6662;
  --faint: #9ca3a0;
  --bg: #f5f6f5;
  --card: #ffffff;
  --border: #e6e9e7;
  --tint: #059669;
  --tint-strong: #047857;
  --tint-soft: #e7f6ef;
  --dining: #d9932f;
  --rise: #e5484d;
  --rise-soft: #fcebe7;
}
@media (prefers-color-scheme: dark) {
  :root {
    --text: #f2f4f3;
    --muted: #a3aba6;
    --faint: #6e7671;
    --bg: #0a0c0b;
    --card: #141716;
    --border: #232826;
    --tint: #34d399;
    --tint-strong: #6ee7b7;
    --tint-soft: #0f2a1f;
    --dining: #e7a94a;
    --rise: #ff6369;
    --rise-soft: #3a1e18;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--tint); }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* header */
header.top { padding: 20px 0; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.brand svg { width: 32px; height: 32px; }
nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; margin-left: 20px; }
nav a:hover { color: var(--text); }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 48px 0 72px; }
.hero h1 { font-size: clamp(40px, 6vw, 60px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; margin: 0 0 18px; }
.hero p.lead { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 30ch; }
.badge-soon {
  display: inline-flex; align-items: center; gap: 10px; background: var(--text); color: var(--bg);
  border-radius: 14px; padding: 12px 18px; font-weight: 700; font-size: 15px;
}
.badge-soon svg { width: 20px; height: 20px; fill: currentColor; }
.hero small { display: block; color: var(--faint); margin-top: 12px; font-size: 14px; }

/* phone mock: the report card */
.phone {
  background: var(--card); border: 1px solid var(--border); border-radius: 36px; padding: 22px;
  box-shadow: 0 30px 60px -30px rgba(17, 24, 20, 0.25); max-width: 360px; margin-left: auto; width: 100%;
}
.card { border: 1px solid var(--border); border-radius: 20px; padding: 16px; background: var(--card); }
.card + .card { margin-top: 12px; }
.row { display: flex; align-items: center; gap: 14px; }
.grade {
  flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 28px; background: var(--tint-soft); color: var(--tint);
}
.label { text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; font-weight: 700; color: var(--muted); }
.reason { font-weight: 700; color: var(--tint); line-height: 1.35; }
.bucket { margin-top: 14px; }
.bucket .row { justify-content: space-between; font-size: 14px; }
.bucket .row span:last-child { color: var(--muted); }
.bar { height: 8px; border-radius: 8px; background: var(--border); overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; border-radius: 8px; background: var(--tint); }
.bar i.over { background: var(--rise); }
.tip { background: var(--tint-soft); border-color: transparent; }
.tip .label { color: var(--tint); }
.tip p { margin: 6px 0 0; font-weight: 700; line-height: 1.35; }

/* how it works */
section.how { padding: 24px 0 80px; }
section.how h2 { font-size: 30px; letter-spacing: -0.01em; margin: 0 0 24px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 22px; }
.step .n {
  width: 30px; height: 30px; border-radius: 9px; background: var(--text); color: var(--bg);
  display: grid; place-items: center; font-weight: 600; font-size: 14px; margin-bottom: 12px;
}
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }

/* text pages */
.doc { padding-top: 24px; padding-bottom: 72px; }
.doc h1 { font-size: 38px; letter-spacing: -0.01em; margin: 0 0 6px; }
.doc .meta { color: var(--faint); margin: 0 0 32px; font-size: 15px; }
.doc h2 { font-size: 21px; margin: 36px 0 8px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.callout { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 18px 20px; }

footer { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; margin-left: 18px; }
footer a:first-child { margin-left: 0; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 24px 0 56px; }
  .phone { margin: 0 auto; }
  .steps { grid-template-columns: 1fr; }
  nav a { margin-left: 14px; }
}
