/* Mobile-first, no web fonts, no images: the page should paint in one round trip. */
:root {
  --ink: #14211f;
  --muted: #55625f;
  --bg: #f6f7f4;
  --card: #fff;
  --line: #dde2dc;
  --brand: #0f3d3e;
  --brand-2: #1d6b5e;
  --accent: #e8f3ee;
  --zero: #1d6b5e;
  --low: #2f855a;
  --moderate: #b7791f;
  --high: #c05621;
  --very-high: #b42318;
  --radius: 12px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; }
h1, h2 { line-height: 1.2; margin: 0 0 .6rem; }
h1 { font-size: 1.85rem; letter-spacing: -.01em; }
h2 { font-size: 1.35rem; }
p { margin: 0 0 .9rem; }
a { color: var(--brand-2); }
abbr { text-decoration: none; }

.top { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem; background: var(--brand); }
.brand { color: #fff; font-weight: 700; text-decoration: none; }
main { max-width: 760px; margin: 0 auto; padding: 0 1rem 2rem; }

.hero { padding: 2rem 0 1.25rem; }
.eyebrow { color: var(--brand-2); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .5rem; }
.lede { font-size: 1.08rem; color: #2b3836; }
.cta-row { display: flex; gap: .6rem; flex-wrap: wrap; }

.btn { display: inline-block; border: 0; border-radius: 999px; padding: .75rem 1.25rem; background: var(--brand-2);
  color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; min-height: 44px; }
.btn:hover { background: var(--brand); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-small { padding: .45rem .9rem; min-height: 36px; font-size: .9rem; }
.top .btn-small { background: #fff; color: var(--brand); }
.btn-ghost { background: transparent; color: var(--brand-2); box-shadow: inset 0 0 0 2px var(--brand-2); }
.btn-ghost:hover { background: var(--accent); }
.btn-link { background: none; color: var(--brand-2); padding: .45rem .5rem; text-decoration: underline; min-height: 36px; }
.btn-link:hover { background: none; color: var(--brand); }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1rem; margin: 1rem 0; }
.panel-accent { background: var(--accent); border-color: #c7e0d5; }
.privacy { background: var(--accent); border-left: 4px solid var(--brand-2); padding: .6rem .8rem; border-radius: 6px; font-size: .95rem; }
.fine, .hint { font-size: .85rem; color: var(--muted); }

/* card rows: 2-column grid on phones, one line on wider screens */
.card-row { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem .6rem; padding: .8rem 2.2rem .8rem .8rem;
  border: 1px solid var(--line); border-radius: 10px; margin-bottom: .6rem; background: #fbfcfa; }
.f { display: flex; flex-direction: column; }
.f-name { grid-column: 1 / -1; }
.f label { font-size: .78rem; color: var(--muted); margin-bottom: .15rem; }
input, select { font: inherit; font-size: 16px; /* no iOS zoom */ padding: .55rem .6rem; border: 1px solid #c3cbc4;
  border-radius: 8px; background: #fff; color: var(--ink); width: 100%; min-height: 44px; }
input:focus, select:focus, .btn:focus-visible, button:focus-visible { outline: 3px solid #8cc7b4; outline-offset: 1px; }
.remove { position: absolute; top: .35rem; right: .35rem; width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted); font-size: 1.3rem; cursor: pointer; }
.remove:hover { background: #eef0ec; }
.row-actions { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; margin-bottom: .8rem; }

.strategy { border: 0; padding: 0; margin: 0 0 .6rem; display: flex; flex-direction: column; gap: .35rem; }
.strategy legend { font-weight: 600; margin-bottom: .3rem; padding: 0; }
.strategy label { display: flex; gap: .5rem; align-items: center; }
.strategy input { width: auto; min-height: 0; }

.errors { color: var(--very-high); font-size: .9rem; }
.results { border-top: 1px solid var(--line); margin-top: .8rem; padding-top: 1rem; }
.summary { display: grid; grid-template-columns: 1fr auto 1fr; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.stat { display: flex; flex-direction: column; padding: .8rem; border-radius: 10px; background: #f3f5f2; border-top: 4px solid var(--line); }
.stat-label { font-size: .8rem; color: var(--muted); }
.stat-num { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.stat-sub { font-size: .8rem; color: var(--muted); }
.arrow { font-size: 1.4rem; color: var(--muted); }
.stat.band-zero, .stat.band-low { border-top-color: var(--low); }
.stat.band-moderate { border-top-color: var(--moderate); }
.stat.band-high { border-top-color: var(--high); }
.stat.band-very-high { border-top-color: var(--very-high); }

.per-card { list-style: none; padding: 0; margin: 0 0 1rem; }
.per-card li { border: 1px solid var(--line); border-radius: 10px; padding: .7rem .8rem; margin-bottom: .5rem; }
.pc-head { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; font-weight: 600; }
.pc-close { color: var(--muted); font-weight: 500; font-size: .9rem; }
.pc-util { margin: .3rem 0; }
.pc-bal { color: var(--muted); font-size: .85rem; }
.pc-due { font-size: .8rem; color: var(--muted); }
.pill { display: inline-block; padding: .05rem .5rem; border-radius: 999px; color: #fff; font-weight: 700; font-size: .9rem; background: var(--muted); }
.pill.band-zero { background: var(--zero); }
.pill.band-low { background: var(--low); }
.pill.band-moderate { background: var(--moderate); }
.pill.band-high { background: var(--high); }
.pill.band-very-high { background: var(--very-high); }
.ok { color: var(--low); }
.warn { color: var(--high); font-size: .9rem; }
.total { font-size: 1rem; }
.nudge { background: var(--accent); padding: .6rem .8rem; border-radius: 8px; }

.timeline { list-style: none; padding: 0 0 0 1.1rem; margin: 0 0 1rem; border-left: 3px solid var(--line); }
.timeline li { position: relative; padding: 0 0 .9rem .6rem; display: flex; flex-direction: column; }
.timeline li::before { content: ""; position: absolute; left: -1.62rem; top: .35rem; width: 13px; height: 13px; border-radius: 50%; background: var(--line); }
.timeline .t-key::before { background: var(--brand-2); }
.t-when { font-weight: 700; }
.t-key .t-when { color: var(--brand-2); }
.steps { padding-left: 1.2rem; }
.steps li { margin-bottom: .5rem; }

#waitlist-form { display: flex; flex-direction: column; gap: .35rem; max-width: 460px; }
#waitlist-form label { font-weight: 600; margin-top: .5rem; }
#waitlist-form .btn { margin-top: .8rem; align-self: flex-start; }
.opt { font-weight: 400; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wl-status { font-weight: 600; min-height: 1.5em; }

.foot { max-width: 760px; margin: 0 auto; padding: 1rem 1rem 3rem; font-size: .82rem; color: var(--muted); }

@media (min-width: 640px) {
  h1 { font-size: 2.4rem; }
  .panel { padding: 1.5rem; }
  .card-row { grid-template-columns: 1.4fr 1fr 1fr .8fr; padding-right: 2.4rem; }
  .f-name { grid-column: auto; }
  .strategy { flex-direction: row; flex-wrap: wrap; gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
html { scroll-behavior: smooth; }
