/* ────────────────────────────────────────────────────────────────
   School360 NG marketing site — layout & components.
   Built exclusively from tokens.css variables. No raw hex here.
   ──────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--off);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img, svg { max-width: 100%; display: block; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--on-dark);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  font-size: 13px;
  font-weight: 700;
  z-index: 1000;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ── Layout primitives ───────────────────────────────────────────── */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--sect-y) 0; }
.section-tight { padding: 3rem 0; }
.section-light { background: var(--white); }
.section-navy { background: var(--navy); color: rgba(255,255,255,.9); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.25rem;
  flex-wrap: wrap;
}
/* Eyebrow: a small dot + pill-shaped badge, not just uppercase text */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--amber-dk);
  margin-bottom: .85rem;
  padding: 5px 13px 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}
.section-navy .eyebrow, .cta-band .eyebrow {
  color: var(--amber);
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.06);
}

/* Section intro pattern: eyebrow pill -> centered/left headline -> muted subtitle */
.section-intro { margin-bottom: 2.5rem; }
.section-intro.text-center { display: flex; flex-direction: column; align-items: center; }
.section-sub { color: var(--slate); font-size: 1.02rem; max-width: 56ch; margin: 0; }
.section-navy .section-sub, .cta-band .section-sub { color: rgba(255,255,255,.65); }

h1, h2, h3, h4 {
  color: var(--heading);
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 .6rem;
  text-wrap: balance;
}

/* Two-tier headline: a bold line, then a lighter continuation line —
   e.g. "Run your whole school" / "from one place." */
.h1-soft {
  display: block;
  font-weight: 500;
  color: var(--slate);
}
.section-navy .h1-soft, .cta-band .h1-soft { color: rgba(255,255,255,.5); }

/* Kicker: a short, bold, accent-colored line between headline and body copy */
.kicker {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--amber-dk);
  margin: 0 0 .85rem;
}
.section-navy .kicker, .cta-band .kicker { color: var(--amber); }

/* Inline pill-tag list, e.g. "Modules: Fees · Attendance · Books..." */
.pill-tags-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.5rem;
}
.pill-tags-label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
  margin-right: .25rem;
}
.pill-tag {
  font-size: .78rem;
  font-weight: 600;
  color: var(--slate);
  background: var(--off);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 999px;
}

/* Text on a fixed navy surface is always light, regardless of page theme. */
.section-navy h1, .section-navy h2, .section-navy h3 { color: var(--on-dark); }

h1 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.12; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1rem; max-width: 65ch; }
p:last-child { margin-bottom: 0; }
.lede { font-size: 1.1rem; color: var(--slate); max-width: 58ch; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── Buttons ──────────────────────────────────────────────────────
   CTA text is navy-on-amber (not the app's white-on-amber) — 7.9:1
   contrast vs. the app's 2.0:1, a deliberate accessibility divergence
   for this public-facing site. See plan doc for the reasoning. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: none;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  padding: .85rem 1.5rem;
  transition: transform .1s, box-shadow .15s, background .15s;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--amber); color: var(--navy); }
.btn-primary:hover { background: var(--amber-dk); color: var(--on-dark); }
.btn-secondary { background: transparent; color: var(--heading); border: 1.5px solid var(--border); }
.btn-secondary:hover { background: var(--off); }
.section-navy .btn-secondary { color: var(--on-dark); border-color: rgba(255,255,255,.25); }
.btn-navy { background: var(--navy); color: var(--on-dark); }
.btn-navy:hover { opacity: .9; }
.btn-ghost { background: transparent; color: var(--slate); padding: .5rem .75rem; }
.btn-ghost:hover { color: var(--navy); }
.btn-lg { padding: 1rem 2rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

.cta-row { display: flex; gap: .85rem; flex-wrap: wrap; align-items: center; }
.cta-note { font-size: .85rem; color: var(--muted); margin-top: .85rem; }
.trust-line {
  font-size: .85rem;
  color: var(--slate);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .5rem;
}

/* ── Header / nav ─────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--heading);
  letter-spacing: -.02em;
}
.brand img { width: 34px; height: 34px; }
.brand .b360 { color: var(--amber); }
.brand .bng { font-size: .55em; vertical-align: super; color: var(--amber-dk); margin-left: 1px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: .3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  padding: .55rem .9rem;
  border-radius: 8px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--slate);
  transition: color .15s, background .15s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--heading); background: var(--off); }

.header-actions { display: flex; align-items: center; gap: .6rem; }
.theme-btn {
  width: 38px; height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--off);
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--off);
  font-size: 1.1rem;
  cursor: pointer;
}

/* Header CTAs on mobile: "Sign in" moves into the hamburger sheet
   (see .nav-signin-mobile) instead of sitting in the top bar, and the
   primary button shrinks — four full-size items never fit next to the
   logo at narrow widths, which caused real horizontal overflow. */
.nav-signin-mobile { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .header-actions > .btn-ghost[data-cta="signin"] { display: none; }
  .header-actions > .btn-primary { padding: .6rem .9rem; font-size: .85rem; }
  .nav-signin-mobile { display: block; }

  #nav-sheet.is-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: .75rem 24px 1.25rem;
    box-shadow: var(--shadow-lg);
    gap: .15rem;
  }
  #nav-sheet.is-open .nav-links a { padding: .75rem .9rem; }
}

/* Narrow phones (≤400px): logo + brand + shrunk CTA + toggle + hamburger
   still don't fit at the 860px breakpoint's sizes — tighten further. */
@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .brand { gap: 6px; font-size: 1.05rem; }
  .brand img { width: 26px; height: 26px; }
  .header-actions { gap: .4rem; }
  .header-actions > .btn-primary { padding: .5rem .65rem; font-size: .78rem; }
  .theme-btn, .nav-toggle { width: 34px; height: 34px; font-size: .95rem; }
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
  padding: 4rem 0 3.5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.stat-strip {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  flex-wrap: wrap;
}
.stat-strip-item {
  flex: 1 1 auto;
  min-width: 140px;
  padding-right: 1.25rem;
}
.stat-strip-item strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--heading);
}
.stat-strip-item span { font-size: .78rem; color: var(--muted); }

/* ── Stat band: bold full-width facts, not fabricated business metrics.
   Every number here is true by design (module count, trial length,
   response promise) — never a client/user count we don't actually have. */
.stat-band {
  background: var(--navy);
  padding: 2.75rem 0;
}
.stat-band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
@media (max-width: 700px) { .stat-band-grid { grid-template-columns: 1fr 1fr; } }
.stat-band-num {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--on-dark);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-band-num .plus { color: var(--amber); }
.stat-band-label {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-top: .5rem;
}
.stat-band-foot {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .85rem;
  color: rgba(255,255,255,.45);
}

/* Product shot frame */
.shot-frame {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-lg);
}
.shot-frame .browser-bar {
  display: flex; gap: 6px; padding: 0 4px 10px;
}
.shot-frame .browser-bar span {
  width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.25);
}
.shot-frame img, .shot-frame video {
  border-radius: 8px;
  width: 100%;
  display: block;
}
.shot-caption {
  text-align: center;
  font-size: .8rem;
  color: var(--muted);
  margin-top: .75rem;
}
/* Portrait phone screenshot (e.g. the parent app) — capped width so it
   reads as a phone, not stretched to fill a grid column. */
.shot-frame-phone { max-width: 300px; margin: 0 auto; }

/* Real photo (not an app screenshot) — rounded corners and a shadow,
   no browser-bar chrome since there's no "app" being framed. */
.photo-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  line-height: 0;
}
.photo-frame img { width: 100%; display: block; }

/* ── Pain / module cards ──────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.pain-card .pain-problem {
  font-size: .82rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: .4rem;
}
.pain-card .pain-answer {
  font-size: .82rem;
  font-weight: 700;
  color: var(--mint);
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
}

.module-card {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

/* Small real-product screenshot inside a feature card */
.card-shot {
  margin: -1.5rem -1.5rem .9rem;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background: var(--off);
}
.card-shot img { display: block; width: 100%; }
.module-icon { font-size: 1.6rem; }
.module-card h3 { margin-bottom: 0; font-size: 1rem; }
.module-card p { font-size: .88rem; color: var(--slate); margin: 0; }
.badge-planned {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--amber-bg);
  color: var(--amber-dk);
  align-self: flex-start;
}

/* ── Roles ────────────────────────────────────────────────────────── */
.role-card { text-align: left; }
.role-card .role-emoji { font-size: 1.5rem; margin-bottom: .5rem; }
.role-card ul { margin: .5rem 0 0; padding-left: 1.1rem; font-size: .85rem; color: var(--slate); }
.role-card li { margin-bottom: .25rem; }

/* ── Parent payment section ──────────────────────────────────────── */
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .65rem; }
.check-list li { display: flex; gap: .6rem; font-size: .92rem; color: var(--body); }
.check-list li::before { content: "✓"; color: var(--mint); font-weight: 900; flex-shrink: 0; }
:root[data-theme="dark"] .check-list li,
.section-navy .check-list li { color: rgba(255,255,255,.85); }
@media (prefers-color-scheme: dark) { .check-list li { color: rgba(255,255,255,.85); } }

/* ── Steps ────────────────────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 0; }
.step-row {
  display: flex; gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.step-row:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--amber);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}

/* ── FAQ ──────────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: .6rem; max-width: 74ch; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.faq-item summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--heading);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.2rem; color: var(--muted); flex-shrink: 0; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 1.25rem 1.1rem; font-size: .92rem; color: var(--slate); }

/* ── Final CTA band ───────────────────────────────────────────────── */
.cta-band {
  text-align: center;
  padding: 3.5rem 0;
}
.cta-band h2 { color: var(--on-dark); }
.cta-band .cta-row { justify-content: center; }

/* Trust badge row — reinforces safety right before a sign-up decision */
.trust-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
}
.trust-badges span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255,255,255,.6);
}

/* ── Footer ───────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.55);
  padding: 3rem 0 2rem;
  font-size: .85rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 1.25rem;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-col-title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: .85rem;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.footer-links a { color: rgba(255,255,255,.7); }
.footer-links a:hover { color: var(--amber); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* ── Tables ───────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; background: var(--white); font-size: .88rem; }
th, td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--slate); background: var(--off); }
tr:last-child td { border-bottom: none; }
td { font-variant-numeric: tabular-nums; }

/* ── Pricing ──────────────────────────────────────────────────────── */
.billing-toggle {
  display: inline-flex;
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
.billing-toggle button {
  border: none;
  background: transparent;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 700;
  color: var(--slate);
  cursor: pointer;
}
.billing-toggle[data-mode="monthly"] [data-billing-option="monthly"],
.billing-toggle[data-mode="annual"] [data-billing-option="annual"] {
  background: var(--navy);
  color: var(--on-dark);
}
.badge-save {
  background: var(--mint-lt); color: var(--mint);
  font-size: .68rem; font-weight: 700; padding: 2px 7px; border-radius: 20px; margin-left: 6px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}
@media (max-width: 1024px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .pricing-grid { grid-template-columns: 1fr; } }

.tier-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}
.tier-card.tier-popular {
  border-color: var(--amber);
  box-shadow: 0 0 0 2px var(--amber), var(--shadow-lg);
  transform: translateY(-4px);
}
.tier-ribbon {
  position: absolute;
  top: -12px; left: 1.5rem;
  background: var(--amber);
  color: var(--navy);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}
.tier-name { font-size: 1rem; font-weight: 800; color: var(--heading); }
.tier-price { font-size: 2rem; font-weight: 900; color: var(--heading); line-height: 1; }
.tier-price span { font-size: .85rem; font-weight: 600; color: var(--muted); }
.tier-cap { font-size: .8rem; color: var(--slate); }
.tier-features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.tier-features li { font-size: .84rem; color: var(--body); display: flex; gap: .5rem; }
.tier-features li::before { content: "✓"; color: var(--mint); font-weight: 900; flex-shrink: 0; }
.tier-features .inherit { font-style: italic; color: var(--slate); }

/* ── Details/small-print block ────────────────────────────────────── */
.small-print summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--heading);
  font-size: .92rem;
  list-style: none;
}
.small-print summary::-webkit-details-marker { display: none; }
.small-print[open] summary { margin-bottom: .85rem; }

/* ── Utility ──────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.narrow { max-width: 62ch; }
.narrow-center { max-width: 62ch; margin-left: auto; margin-right: auto; }
