/* Shared stylesheet for the static marketing pages (apps/web/marketing/*.html).
   Committed to a single light theme, deliberately — the rest of the app
   (login, dashboard) has no dark mode either, so this stays consistent
   rather than auto-switching on prefers-color-scheme.

   Typography: these pages are static HTML served outside the Vite/Tailwind
   pipeline, so they can't just `@import "@fontsource-variable/geist"` the
   way globals.css does — that resolves at build time. Self-hosting the same
   actual Geist Variable file here (geist-variable.woff2, copied from the
   same @fontsource-variable/geist package, stable un-hashed filename since
   this isn't Vite-processed) instead of a different serif/system stack, so
   the marketing site and the real app read as one product, not two. */
@font-face {
  font-family: 'Geist Variable';
  src: url('/geist-variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ink:        #1c2027;
  --ink-soft:   #5b6270;
  --paper:      #ffffff;
  --paper-dim:  #f4f5f7;
  --navy:       #2d3648;
  --navy-deep:  #1b212d;
  --gold:       #a9762f;
  --gold-soft:  #e5d6bc;
  --line:       #e2e4e9;
  --card:       #ffffff;
  --radius:     10px;
  --serif: 'Geist Variable', system-ui, sans-serif;
  --sans:  'Geist Variable', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); line-height: 1.55; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }

/* ── Nav ───────────────────────────────────────────────────────────── */
header.site {
  position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--navy);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.brand-mark svg { width: 19px; height: 19px; }
.brand-word { font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.brand-cat { font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); display: block; margin-top: 1px; }
nav.links { display: none; gap: 28px; font-size: 0.92rem; color: var(--ink-soft); }
nav.links a:hover { color: var(--ink); }
.cta-row { display: flex; align-items: center; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px; font-size: 0.92rem; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); }
.btn-ghost { color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-soft); }
@media (min-width: 860px) { nav.links { display: flex; } }

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero { padding: 64px 0 56px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 40px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.75rem;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy);
  background: color-mix(in srgb, var(--navy) 8%, transparent); padding: 6px 14px; border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.35rem); line-height: 1.08; }
.hero h1 em { font-style: normal; color: var(--navy); }
.hero p.lede { font-size: 1.13rem; color: var(--ink-soft); margin-top: 22px; max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-note { font-size: 0.83rem; color: var(--ink-soft); margin-top: 16px; }

.page-head { padding: 56px 0 12px; text-align: center; }
.page-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.page-head p { color: var(--ink-soft); margin: 14px auto 0; max-width: 52ch; font-size: 1.05rem; }

/* Odds demo card */
.demo-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: 0 24px 60px -30px rgba(20, 23, 46, 0.35);
}
.demo-title { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); margin-bottom: 4px; }
.demo-school { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 16px; }
#demo-profile-select {
  font-family: var(--serif); font-size: 1.15rem; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; width: 100%;
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6270' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}
#demo-profile-select:hover { border-color: var(--ink-soft); }
.demo-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.demo-row:first-of-type { border-top: none; }
.demo-prog { font-size: 0.94rem; }
.demo-prog small { display: block; color: var(--ink-soft); font-size: 0.78rem; margin-top: 2px; }
.demo-pct { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; min-width: 3.2em; text-align: right; }
.pct-low { color: #b23b3b; } .pct-mid { color: var(--gold); } .pct-high { color: #2f7d4f; }
.demo-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--ink-soft); }

/* Demo card tabs (By program / By school) */
.demo-tabs { display: flex; gap: 4px; background: var(--paper-dim); border-radius: 8px; padding: 3px; margin-bottom: 18px; }
.demo-tab {
  flex: 1; border: none; background: transparent; padding: 8px 12px; border-radius: 6px;
  font-family: var(--sans); font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); cursor: pointer;
}
.demo-tab.is-active { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(20,23,46,0.08); }

/* "By school" tier rows */
.tier-row { padding: 14px 0; border-top: 1px solid var(--line); }
.tier-row:first-child { border-top: none; padding-top: 0; }
.tier-school { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.94rem; margin-bottom: 8px; }
.tier-tag { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 3px 8px; border-radius: 4px; }
.tier-hard   { background: #fee2e2; color: #991b1b; }
.tier-soft   { background: #ffedd5; color: #9a3412; }
.tier-target { background: #fef9c3; color: #854d0e; }
.tier-safety { background: #dcfce7; color: #166534; }
.tier-bars { position: relative; height: 8px; background: var(--paper-dim); border-radius: 4px; overflow: hidden; }
.tier-bar { position: absolute; top: 0; left: 0; height: 100%; border-radius: 4px; }
.tier-bar-campus { background: #d5d7dd; }
.tier-bar-program { opacity: 0.95; }
.tier-hard-bar   { background: #b23b3b; }
.tier-soft-bar   { background: #c07a2b; }
.tier-target-bar { background: var(--gold); }
.tier-safety-bar { background: #2f7d4f; }
.tier-legend { display: flex; justify-content: space-between; font-size: 0.74rem; color: var(--ink-soft); margin-top: 6px; }

/* ── Sections generic ──────────────────────────────────────────────── */
section { padding: 56px 0; }
section.tint { background: var(--paper-dim); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
.section-head p { color: var(--ink-soft); margin-top: 12px; font-size: 1rem; }

/* Pillars grid */
.pillars { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillars-3 { max-width: 900px; margin: 0 auto; }
.pillar { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.pillar-link { text-decoration: none; transition: border-color 0.15s; }
.pillar-link:hover { border-color: var(--ink-soft); }
.pillar .icon {
  width: 38px; height: 38px; border-radius: 9px; background: color-mix(in srgb, var(--navy) 8%, transparent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.pillar .icon svg { width: 19px; height: 19px; stroke: var(--navy); }
.pillar h3 { font-size: 1.02rem; margin-bottom: 6px; }
.pillar p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

/* Problem/solution contrast table */
.contrast-table { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.contrast-row { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); }
@media (min-width: 760px) { .contrast-row { grid-template-columns: 120px 1fr 1fr; } }
.contrast-row > div { background: var(--card); padding: 18px 20px; font-size: 0.92rem; }
.contrast-head { background: transparent; }
.contrast-head > div { background: var(--paper-dim); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }
.contrast-role { font-weight: 700; font-family: var(--serif); font-size: 1rem; display: flex; align-items: center; }
.contrast-flaw { color: var(--ink-soft); }
.contrast-fix { color: var(--ink); font-weight: 500; }
.contrast-flaw::before { content: '✕ '; color: #b23b3b; font-weight: 700; }
.contrast-fix::before { content: '✓ '; color: #2f7d4f; font-weight: 700; }

/* Visual feature showcase */
.showcase { display: grid; gap: 20px; grid-template-columns: 1fr; margin-bottom: 0; }
@media (min-width: 860px) { .showcase { grid-template-columns: repeat(3, 1fr); } }
.showcase-card {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; text-decoration: none; transition: border-color 0.15s;
}
.showcase-card:hover { border-color: var(--ink-soft); }
.showcase-card h3 { font-size: 1.02rem; margin: 14px 0 6px; }
.showcase-card p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }
.badge {
  display: inline-flex; align-items: center; font-size: 0.78rem; font-weight: 600;
  padding: 5px 11px; border-radius: 999px; margin: 0 6px 6px 0;
}
.badge-good  { background: color-mix(in srgb, #2f7d4f 14%, transparent); color: #2f7d4f; }
.badge-mid   { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }
.badge-alert { background: color-mix(in srgb, #b23b3b 12%, transparent); color: #b23b3b; }

/* Stats strip */
.stats { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); text-align: center; margin-top: 40px; padding-top: 36px; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat b { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--navy); }
.stat span { font-size: 0.82rem; color: var(--ink-soft); }

/* How it works */
.steps { display: grid; gap: 32px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding-left: 52px; }
.step .num {
  position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 700;
}
.step h3 { font-size: 1.03rem; margin-bottom: 8px; }
.step p { font-size: 0.93rem; color: var(--ink-soft); margin: 0; }

/* Role detail sections (student / parent / counselor) */
.role-section { display: grid; gap: 40px; align-items: start; scroll-margin-top: 80px; }
@media (min-width: 860px) { .role-section { grid-template-columns: 280px 1fr; } }
.role-heading { display: flex; align-items: center; gap: 12px; }
.role-heading .icon {
  width: 44px; height: 44px; border-radius: 10px; background: color-mix(in srgb, var(--navy) 8%, transparent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.role-heading .icon svg { width: 22px; height: 22px; stroke: var(--navy); }
.role-heading h2 { font-size: 1.4rem; }
.role-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; }
.role-list li { font-size: 0.95rem; color: var(--ink-soft); padding-left: 22px; position: relative; }
.role-list li::before {
  content: ''; position: absolute; left: 0; top: 0.5em; width: 7px; height: 7px;
  border-radius: 50%; background: var(--gold);
}

/* Trust */
.trust-grid { display: grid; gap: 22px; }
@media (min-width: 760px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }
.trust-card { border-left: 3px solid var(--gold); padding-left: 18px; }
.trust-card h3 { font-size: 0.98rem; margin-bottom: 6px; }
.trust-card p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

/* Final CTA */
.final-cta { text-align: center; }
.final-cta h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); max-width: 20ch; margin: 0 auto; }
.final-cta p { color: var(--ink-soft); margin: 16px auto 0; max-width: 48ch; }
.final-cta .hero-ctas { justify-content: center; }

footer.site { border-top: 1px solid var(--line); padding: 36px 0; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 0.85rem; color: var(--ink-soft); }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--ink); }
