/* Light by default; dark follows the visitor's system setting. */
:root {
  color-scheme: light dark;
  --bg: #fafaf7;
  --surface: #ffffff;
  --band: #f3f2ed;
  --text: #121826;
  --muted: #5b6474;
  --border: #e4e2db;
  --border-strong: #cfccc3;
  --field-border: #8f8a80;
  --accent: #0f766e;
  --accent-hover: #115e59;
  --accent-soft: #e3f1ee;
  --on-accent: #ffffff;
  --ok: #166534;
  --ok-bg: #e7f5ec;
  --err: #9f1239;
  --err-bg: #fdecef;
  --radius-sm: 8px;
  --radius: 12px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c111b;
    --surface: #131a27;
    --band: #10161f;
    --text: #e7ebf2;
    --muted: #9aa4b4;
    --border: #253044;
    --border-strong: #3a4659;
    --field-border: #5d6a80;
    --accent: #2dd4bf;
    --accent-hover: #5eead4;
    --accent-soft: #0f2b2b;
    --on-accent: #042321;
    --ok: #86efac;
    --ok-bg: #0f2a1b;
    --err: #fda4af;
    --err-bg: #2e1219;
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
/* Keeps anchor targets and focused elements clear of the sticky header. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0 0 0.75rem; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.6rem + 3vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem); }
h3 { font-size: 1.125rem; letter-spacing: -0.01em; }
p, ul, ol { margin: 0 0 1rem; }
a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
abbr[title] { text-decoration: none; cursor: help; }

.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }
section { padding-block: clamp(4rem, 3rem + 4vw, 6rem); }
.band { background: var(--band); }
.muted { color: var(--muted); }

.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 20;
  padding: 0.5rem 1rem; border-radius: var(--radius-sm);
  background: var(--accent); color: var(--on-accent);
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-head > p:not(.eyebrow) { color: var(--muted); font-size: 1.0625rem; }

/* Heading on the left, content on the right (wide screens) */
.split { display: grid; gap: 0 4rem; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split > .section-head { position: sticky; top: 6rem; align-self: start; margin-bottom: 0; }
}

.card {
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: 0.625rem 1.25rem;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  background: var(--accent); color: var(--on-accent);
  font: inherit; font-weight: 600; text-align: center; text-decoration: none;
  cursor: pointer; transition: background-color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { border-color: var(--border-strong); background: transparent; color: var(--text); }
.btn-ghost:hover { border-color: var(--text); background: transparent; color: var(--text); }
.btn-sm { min-height: 2.25rem; padding: 0.375rem 0.875rem; font-size: 0.9375rem; white-space: nowrap; }

/* Checkmark list (hero and pricing) */
.checks { display: grid; gap: 0.5rem; padding: 0; list-style: none; }
.checks li { position: relative; padding-left: 1.625rem; }
.checks li::before {
  content: ""; position: absolute; top: 0.3em; left: 0.3rem;
  width: 0.4rem; height: 0.75rem;
  border: solid var(--accent); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.nav { display: flex; align-items: center; gap: clamp(1rem, 4vw, 2rem); min-height: 4rem; }
.brand {
  display: inline-flex; align-items: center; gap: 0.625rem; margin-right: auto;
  color: var(--text); font-weight: 700; letter-spacing: -0.01em; text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand-mark {
  display: grid; place-items: center; flex: none; width: 2rem; height: 2rem;
  border-radius: var(--radius-sm); background: var(--accent); color: var(--on-accent);
}
.nav-links { display: flex; gap: 1.75rem; }
.nav-links a { color: var(--muted); font-size: 0.9375rem; text-decoration: none; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* Hero */
.hero { padding-block: clamp(3rem, 2rem + 5vw, 6rem); }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem; }
}
.lede { max-width: 36rem; color: var(--muted); font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0; }
.hero .checks { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0; color: var(--muted); font-size: 0.9375rem; }

.plan { box-shadow: 0 24px 48px -24px rgb(18 24 38 / 0.18); }
.plan-title { margin-bottom: 1.5rem; font-weight: 650; }
.timeline { display: grid; gap: 1.25rem; padding: 0; list-style: none; }
.timeline li { position: relative; padding-left: 1.75rem; }
.timeline li::before {
  content: ""; position: absolute; top: 0.25rem; left: 0;
  width: 0.625rem; height: 0.625rem;
  border: 2px solid var(--accent); border-radius: 50%; background: var(--surface);
}
.timeline li:not(:last-child)::after {
  content: ""; position: absolute; top: 1rem; bottom: -1.375rem; left: 0.25rem;
  width: 2px; background: var(--border);
}
.timeline span {
  display: block; color: var(--muted);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.plan-note { margin: 1.5rem 0 0; padding-top: 1rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.875rem; }

/* Services */
.rows { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--border); }
.rows > li { padding-block: 1.5rem; border-top: 1px solid var(--border); }
.rows h3 { margin-bottom: 0.375rem; }
.rows p { margin: 0; color: var(--muted); }
.rows .tags { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 0.75rem; }
.tag {
  padding: 0.125rem 0.5rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-hover);
  font-size: 0.75rem; font-weight: 600;
}

/* How it works */
.steps { display: grid; gap: 2rem; margin: 0; padding: 0; list-style: none; counter-reset: step; }
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.steps li { padding-top: 1.25rem; border-top: 2px solid var(--accent); counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  content: counter(step, decimal-leading-zero) / "";
  display: block; margin-bottom: 0.75rem;
  color: var(--accent); font-size: 0.875rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.steps p { margin: 0; color: var(--muted); }

/* Pricing */
.pricing { display: grid; gap: 1.25rem; }
@media (min-width: 900px) {
  .pricing { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.price-card { display: flex; flex-direction: column; }
.price-card h3 { margin-bottom: 1rem; }
.price { margin: 0; font-size: 2.5rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.price-unit { color: var(--muted); font-size: 0.9375rem; }
.price-card .checks { margin: 0.5rem 0 2rem; }
.price-card .btn { margin-top: auto; }
.featured { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.fine-print { margin: 1.5rem 0 0; color: var(--muted); font-size: 0.875rem; }

/* About: one card per consultant */
.team { display: grid; gap: 1.25rem; }
@media (min-width: 760px) {
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.person-head { display: flex; align-items: center; gap: 1.25rem; }
.person-head h3 { margin-bottom: 0.125rem; font-size: 1.25rem; }
.role { margin: 0; color: var(--muted); }
.avatar {
  display: grid; place-items: center; flex: none; width: 5rem; height: 5rem;
  border-radius: 50%; object-fit: cover;
  background: var(--accent-soft); color: var(--accent-hover);
  font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em;
}
/* Score and school stay side by side at every width; the logo shrinks on the narrowest phones. */
.facts {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2rem;
  margin: 1.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--border);
}
.facts div { display: grid; grid-template-rows: auto 3.5rem; gap: 0.5rem; justify-items: start; align-items: center; }
.facts dt { color: var(--muted); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.facts dd { margin: 0; }
.score { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
/* School logos sit on white in both themes so their official colors stay legible. */
.logo-tile {
  display: flex; align-items: center; max-width: 100%; height: 100%; padding-inline: 1rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff;
}
.logo-tile img { display: block; min-width: 0; max-width: 100%; height: auto; }

/* FAQ */
.faq { border-bottom: 1px solid var(--border); }
.faq details { border-top: 1px solid var(--border); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1.25rem; font-weight: 600; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  content: "+" / "";
  flex: none; color: var(--accent); font-size: 1.5rem; font-weight: 400; line-height: 1;
  transition: transform 0.2s;
}
.faq details[open] > summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding-bottom: 1.25rem; color: var(--muted); }

/* Contact form */
.fields { display: grid; gap: 1.25rem 1rem; }
@media (min-width: 520px) {
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .full { grid-column: 1 / -1; }
}
.field { display: grid; gap: 0.375rem; align-content: start; }
label { font-size: 0.9375rem; font-weight: 600; }
.optional { color: var(--muted); font-weight: 400; }
input, textarea {
  width: 100%; min-height: 2.75rem; padding: 0.625rem 0.75rem;
  border: 1px solid var(--field-border); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text); font: inherit;
}
textarea { min-height: 8rem; resize: vertical; }
input:focus-visible, textarea:focus-visible { border-color: var(--accent); outline-offset: 0; }
input:user-invalid, textarea:user-invalid { border-color: var(--err); }
::placeholder { color: var(--muted); opacity: 1; }
.form-card .btn { width: 100%; }
.form-note { margin: 0; color: var(--muted); font-size: 0.875rem; text-align: center; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* The Worker redirects to /#sent or /#error; :target shows the matching notice. */
.notice { display: none; margin-bottom: 1.25rem; padding: 1rem 1.25rem; border-radius: var(--radius-sm); scroll-margin-top: 1.5rem; }
.notice:target { display: block; }
.notice-ok { background: var(--ok-bg); color: var(--ok); }
.notice-err { background: var(--err-bg); color: var(--err); }
.notice a { color: inherit; font-weight: 600; }
#sent:target ~ form { display: none; }

/* Footer */
.site-footer { padding-block: 2rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.875rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; }
.site-footer p { margin: 0; }
.site-footer a { color: inherit; }

/* Privacy page */
.prose { max-width: 42rem; padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.prose h2 { margin-top: 2.5rem; font-size: 1.375rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
