/* School Cost Lab — single-page validation site */
:root {
  --ink: #1b2a41;
  --muted: #5c6b84;
  --navy: #16283f;
  --navy-dark: #0f1d30;
  --gold: #b07d2b;
  --gold-dark: #8f6420;
  --bg: #fdfcF8;
  --card: #ffffff;
  --line: #e3e0d5;
  --accent-bg: #f4f1e6;
  --green: #1e7a46;
  --green-bg: #e9f5ee;
  --amber: #92610a;
  --amber-bg: #fbf3df;
  --red: #a83232;
  --red-bg: #fbecec;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
  font-size: 1.05rem;
}
.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1.25rem; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--card);
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0.7rem; padding-bottom: 0.7rem;
}
.brand { font-weight: 800; font-size: 1.1rem; color: var(--navy); text-decoration: none; }
.brand .dot { color: var(--gold); }
.site-nav a { margin-left: 1rem; text-decoration: none; color: var(--muted); font-size: 0.93rem; }
.site-nav a:hover { color: var(--navy); }
.site-nav a.cta {
  background: var(--gold); color: #fff; padding: 0.4rem 0.9rem; border-radius: 0.35rem; font-weight: 600;
}
.site-nav a.cta:hover { background: var(--gold-dark); color: #fff; }

main.wrap { padding-top: 2rem; padding-bottom: 3rem; }
h1, h2, h3 { line-height: 1.3; color: var(--navy); }
h1 { font-size: 2.1rem; margin-top: 0; }
h2 { font-size: 1.45rem; margin-top: 2.5rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
h3 { font-size: 1.12rem; }
a { color: var(--gold-dark); }
a:hover { color: var(--navy); }
.lede { font-size: 1.22rem; color: var(--muted); }
.meta { color: var(--muted); font-size: 0.88rem; margin-top: -0.4rem; }
.hero { padding: 1.5rem 0 0.5rem; }
.hero .kicker {
  display: inline-block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold-dark); margin-bottom: 0.6rem;
}

.callout {
  background: var(--accent-bg); border-left: 4px solid var(--gold);
  padding: 1rem 1.25rem; margin: 1.5rem 0; border-radius: 0 0.4rem 0.4rem 0;
}
.callout p { margin: 0.4rem 0; }
.callout .label { font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold-dark); }

.disclaimer {
  background: #f2f4f7; border: 1px solid var(--line); border-radius: 0.4rem;
  padding: 1rem 1.25rem; margin: 2rem 0; font-size: 0.92rem; color: var(--muted);
}
.disclaimer .label { font-weight: 700; color: var(--navy); }

table.figures { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 0.95rem; }
table.figures th, table.figures td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line); }
table.figures th { color: var(--navy); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
table.figures td.num, table.figures th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.figures tr.hot td { background: var(--red-bg); }

/* Calculator */
.calc-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 0.6rem;
  padding: 1.5rem; margin: 1.5rem 0; box-shadow: 0 2px 10px rgba(22,40,63,0.06);
}
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1.25rem; }
@media (max-width: 560px) { .calc-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--navy); margin-bottom: 0.25rem; }
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: 0.8rem; }
.field input {
  width: 100%; padding: 0.55rem 0.7rem; font-size: 1rem; border: 1px solid var(--line);
  border-radius: 0.35rem; color: var(--ink); background: #fff;
}
.field input:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.calc-actions { margin-top: 1.25rem; }
.btn {
  display: inline-block; background: var(--navy); color: #fff; border: none; cursor: pointer;
  padding: 0.7rem 1.4rem; border-radius: 0.4rem; text-decoration: none; font-weight: 700; font-size: 1rem;
}
.btn:hover { background: var(--navy-dark); color: #fff; }
.btn.gold { background: var(--gold); }
.btn.gold:hover { background: var(--gold-dark); }

.results { margin-top: 1.5rem; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-bottom: 1rem; }
@media (max-width: 560px) { .stat-row { grid-template-columns: 1fr; } }
.stat { background: var(--accent-bg); border-radius: 0.4rem; padding: 0.8rem 1rem; }
.stat .v { font-size: 1.35rem; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.stat .k { font-size: 0.82rem; color: var(--muted); }

.verdict { border-radius: 0.4rem; padding: 1rem 1.25rem; margin: 1rem 0; }
.verdict .row { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0.45rem 0; font-size: 0.95rem; }
.verdict .pip { flex: 0 0 auto; width: 0.85rem; height: 0.85rem; border-radius: 50%; margin-top: 0.35rem; }
.verdict .pip.g { background: var(--green); } .verdict .pip.a { background: var(--amber); } .verdict .pip.r { background: var(--red); }
.verdict.overall-g { background: var(--green-bg); border: 1px solid #bfe0cd; }
.verdict.overall-a { background: var(--amber-bg); border: 1px solid #ecd9a8; }
.verdict.overall-r { background: var(--red-bg); border: 1px solid #f0c4c4; }
.verdict .overall-line { font-weight: 800; color: var(--navy); font-size: 1.05rem; margin-bottom: 0.4rem; }

.table-scroll { overflow-x: auto; }
#yearTable { font-size: 0.88rem; }
#yearTable td, #yearTable th { white-space: nowrap; }

/* Waitlist */
.waitlist {
  background: var(--navy); color: #eef1f6; border-radius: 0.6rem;
  padding: 2rem 1.75rem; margin: 2.5rem 0; text-align: center;
}
.waitlist h2 { color: #fff; border: none; padding: 0; margin-top: 0; }
.waitlist p { color: #c6cfdd; max-width: 34rem; margin-left: auto; margin-right: auto; }
.waitlist .price { font-size: 1.6rem; font-weight: 800; color: #fff; }
.waitlist .price s { color: #93a0b5; font-weight: 400; font-size: 1.1rem; }
.waitlist ul { text-align: left; max-width: 30rem; margin: 1rem auto; color: #c6cfdd; }
.waitlist .fine { font-size: 0.82rem; color: #93a0b5; }

.site-footer { border-top: 1px solid var(--line); padding: 1.5rem 0 2.5rem; color: var(--muted); font-size: 0.85rem; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
