/*
    The public landing page.

    Kept out of dashboard.css because nothing here is ever loaded behind a
    sign-in, and dashboard.css is already the biggest thing the staff pages
    download. The tokens below are copied from one place only -- the mobile
    app's tailwind.config.js -- so the page a student sees before installing
    matches the app they end up with.
*/
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --brand-950: #0B3D22;
  --brand-900: #12592F;
  --brand-800: #166534;
  --brand-700: #1A7A3C;
  --brand-600: #22A34E;
  --brand-500: #2FBF61;
  --brand-100: #E8F5E9;
  --brand-50: #EDF9F1;

  --ink: #1C1C1E;
  --body: #4B5563;
  --muted: #6B7280;
  --line: #E5E7EB;

  --radius-card: 18px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgba(16, 40, 26, 0.04), 0 8px 24px rgba(16, 40, 26, 0.06);
  --shadow-hero: 0 10px 30px rgba(11, 61, 34, 0.28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }

a { color: var(--brand-700); }

/* ── top bar ───────────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--brand-950);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-in { display: flex; align-items: center; gap: 16px; height: 68px; }
.top-marks { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.top-seal { height: 34px; width: auto; }
.top-rule { width: 1px; height: 26px; background: rgba(255, 255, 255, 0.28); }
.top-logo { height: 26px; width: auto; }
.top-nav { display: flex; align-items: center; gap: 8px; }
.top-nav a {
  color: rgba(255, 255, 255, 0.82); text-decoration: none;
  font-size: 14px; font-weight: 600; padding: 9px 14px; border-radius: var(--radius-pill);
}
.top-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.10); }
.top-nav a.is-cta {
  color: var(--brand-950); background: #fff;
}
.top-nav a.is-cta:hover { background: var(--brand-100); }
.top-nav .only-wide { display: none; }

/* ── hero ──────────────────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(1100px 420px at 85% -10%, rgba(47, 191, 97, 0.30), transparent 60%),
    linear-gradient(168deg, var(--brand-950) 0%, var(--brand-900) 62%, var(--brand-800) 100%);
  color: #fff;
  padding: 76px 0 84px;
}
.hero-eyebrow {
  margin: 0 0 18px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brand-500);
}
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 6.4vw, 62px); font-weight: 800; line-height: 1.04;
  letter-spacing: -0.02em; text-wrap: balance;
}
.hero h1 span { color: var(--brand-500); }
.hero-sub {
  margin: 0; max-width: 56ch;
  font-size: clamp(16.5px, 2vw, 19px); font-weight: 400; color: rgba(255, 255, 255, 0.86);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 26px; border: 0; cursor: pointer;
  border-radius: var(--radius-pill);
  font-family: inherit; font-size: 16px; font-weight: 700; text-decoration: none;
  transition: transform 0.12s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary { background: var(--brand-500); color: var(--brand-950); box-shadow: var(--shadow-hero); }
.btn-primary:hover { background: #46d277; transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, 0.10); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); }
.btn-disabled { background: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.62); cursor: not-allowed; box-shadow: none; }
.btn-solid { background: var(--brand-800); color: #fff; }
.btn-solid:hover { background: var(--brand-700); transform: translateY(-1px); }
.btn-meta { display: block; margin-top: 12px; font-size: 13px; color: rgba(255, 255, 255, 0.62); }

/* ── sections ──────────────────────────────────────────────────── */
.section { padding: 82px 0; }
.section-alt { background: var(--brand-50); }
.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-eyebrow {
  margin: 0 0 12px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brand-700);
}
.section-head h2 {
  margin: 0 0 14px;
  font-size: clamp(27px, 3.8vw, 38px); font-weight: 800; line-height: 1.14;
  letter-spacing: -0.015em; text-wrap: balance;
}
.section-head p { margin: 0; font-size: 17px; color: var(--body); }

/* ── feature cards ─────────────────────────────────────────────── */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-card); box-shadow: var(--shadow-card);
  padding: 28px 26px;
}
.card-icon {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px;
  border-radius: 14px; background: var(--brand-100); color: var(--brand-800);
}
.card-icon svg { width: 23px; height: 23px; }
.card h3 { margin: 0 0 9px; font-size: 17.5px; font-weight: 700; letter-spacing: -0.01em; }
.card p { margin: 0; font-size: 15px; color: var(--body); }
.card .note {
  display: block; margin-top: 14px; padding-top: 13px; border-top: 1px dashed var(--line);
  font-size: 13.5px; color: var(--muted);
}

/* ── steps ─────────────────────────────────────────────────────── */
.steps { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); counter-reset: s; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 26px 24px; box-shadow: var(--shadow-card);
}
.step-n {
  display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 16px;
  border-radius: var(--radius-pill); background: var(--brand-800); color: #fff;
  font-size: 15px; font-weight: 800;
}
.step h3 { margin: 0 0 8px; font-size: 16.5px; font-weight: 700; }
.step p { margin: 0; font-size: 14.5px; color: var(--body); }

/* ── units ─────────────────────────────────────────────────────── */
.units { display: flex; flex-wrap: wrap; gap: 12px; }
.unit {
  display: flex; align-items: baseline; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 12px 20px 12px 16px;
}
.unit b { font-size: 13px; font-weight: 800; color: var(--brand-700); letter-spacing: 0.04em; }
.unit span { font-size: 14.5px; color: var(--body); }

/* ── download ──────────────────────────────────────────────────── */
.dl {
  display: grid; gap: 40px; grid-template-columns: 1.05fr 0.95fr; align-items: center;
  background: var(--brand-950); color: #fff;
  border-radius: 26px; padding: 52px 48px;
  background-image: radial-gradient(700px 300px at 92% 0%, rgba(47, 191, 97, 0.26), transparent 62%);
}
.dl h2 { margin: 0 0 14px; font-size: clamp(25px, 3.4vw, 34px); font-weight: 800; letter-spacing: -0.015em; }
.dl p { margin: 0 0 10px; font-size: 16.5px; color: rgba(255, 255, 255, 0.84); max-width: 46ch; }
.dl-list { margin: 22px 0 0; padding: 0; list-style: none; }
.dl-list li {
  position: relative; padding-left: 26px; margin-bottom: 11px;
  font-size: 15px; color: rgba(255, 255, 255, 0.84);
}
.dl-list li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--brand-500);
}
.dl-panel {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-card); padding: 30px 28px;
}
.dl-panel h3 { margin: 0 0 16px; font-size: 15px; font-weight: 700; color: #fff; }
.dl-panel dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; }
.dl-panel dt { font-size: 13px; color: rgba(255, 255, 255, 0.58); }
.dl-panel dd { margin: 0; font-size: 14px; font-weight: 600; color: #fff; }

.callout {
  margin-top: 26px; padding: 18px 20px;
  background: rgba(255, 255, 255, 0.07); border-left: 3px solid var(--brand-500);
  border-radius: 12px; font-size: 14.5px; color: rgba(255, 255, 255, 0.84);
}
.callout strong { color: #fff; }

/* ── staff strip ───────────────────────────────────────────────── */
.staff {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 26px 28px; background: #fff; box-shadow: var(--shadow-card);
}
.staff div { margin-right: auto; }
.staff h3 { margin: 0 0 5px; font-size: 17.5px; font-weight: 700; }
.staff p { margin: 0; font-size: 15px; color: var(--body); }

/* ── footer ────────────────────────────────────────────────────── */
.foot { background: var(--brand-950); color: rgba(255, 255, 255, 0.62); padding: 46px 0; }
.foot-in { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.foot-in p { margin: 0; font-size: 14px; }
.foot-in p:first-child { color: #fff; font-weight: 700; font-size: 15px; margin-right: auto; }

@media (max-width: 940px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .dl { grid-template-columns: 1fr; padding: 40px 30px; }
}
@media (max-width: 620px) {
  .grid, .steps { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero { padding: 58px 0 64px; }
  .top-nav a { padding: 8px 11px; font-size: 13.5px; }
  .btn { width: 100%; }
}
@media (min-width: 621px) {
  .top-nav .only-wide { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
