/* SchoolPulse marketing site. Brand tokens (teal, Fraunces + Archivo, card style) come from the software; the layout is a normal marketing page. */
:root {
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Archivo', 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;
  --ink: #0f172a; --muted: #5b6b82; --faint: #94a3b8;
  --border: #e2e8f0; --bg: #f8fafc; --card: #ffffff;
  --accent: #0d9488; --accent-dark: #0f766e; --accent-deep: #115e59; --accent-soft: #f0fdfa; --accent-mid: #ccfbf1;
  --success: #10b981; --success-soft: #ecfdf5; --success-text: #067647;
  --danger: #f04438; --danger-soft: #fef3f2; --danger-text: #b3261e;
  --warning: #f79009; --warning-soft: #fffaeb; --warning-text: #b45309;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-md: 0 2px 4px -1px rgba(16, 24, 40, .06), 0 8px 20px -6px rgba(16, 24, 40, .10);
  --shadow-lg: 0 30px 70px -28px rgba(15, 23, 42, .35), 0 8px 24px -10px rgba(15, 23, 42, .18);
  --r: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--font-body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 24px; }
section { padding-block: 104px; }
@media (max-width: 760px) { section { padding-block: 68px; } }

.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.sec-head { max-width: 720px; margin-bottom: 52px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: clamp(32px, 4.6vw, 52px); margin-top: 12px; font-weight: 700; }
.sec-head p { margin-top: 16px; font-size: 19px; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 12px; font: 700 15.5px var(--font-body); border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .12s, box-shadow .12s, background .15s, border-color .15s; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 3px 0 var(--accent-dark), 0 10px 24px -10px rgba(13, 148, 136, .7); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 0 0 var(--accent-dark); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--border); box-shadow: 0 2px 0 var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 16px 30px; font-size: 17px; }
.btn-sm { padding: 10px 18px; font-size: 14.5px; }

/* ===== top nav ===== */
.nav-bar { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(226, 232, 240, .8); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.brand-logo { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, #0d9488, #115e59); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(13, 148, 136, .35); }
.brand-logo svg { width: 21px; height: 21px; }
.nav-links { display: flex; gap: 34px; }
.nav-links a { font-size: 15.5px; font-weight: 600; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border); background: #fff; font-size: 20px; cursor: pointer; place-items: center; }
@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 6px 24px 18px; box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 15px 0; border-bottom: 1px solid var(--border); font-size: 17px; }
  .nav-right .btn-ghost { display: none; }
}

/* ===== hero ===== */
.hero { position: relative; overflow: hidden; padding-block: 84px 110px; background:
  radial-gradient(70% 60% at 85% 0%, rgba(13, 148, 136, .16), transparent 70%),
  radial-gradient(50% 50% at 0% 20%, rgba(16, 185, 129, .10), transparent 70%),
  linear-gradient(#f8fafc, #fff); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(15, 23, 42, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 23, 42, .045) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(70% 70% at 60% 30%, #000, transparent 75%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr 1.1fr; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--accent-mid); color: var(--accent-dark); font-weight: 700; font-size: 13.5px; box-shadow: var(--shadow-sm); }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(16, 185, 129, .2); }
.hero h1 { font-size: clamp(42px, 6.2vw, 74px); font-weight: 700; margin-top: 24px; }
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 600; }
.hero .lead { margin-top: 24px; font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; color: var(--muted); font-size: 14.5px; font-weight: 600; }
.hero-proof span::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 8px; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 56px; } .hero { padding-block: 56px 80px; } }

/* browser frame + product UI */
.frame { position: relative; background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.frame-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #f1f5f9; border-bottom: 1px solid var(--border); }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: #cbd5e1; }
.frame-bar span { margin-left: 10px; flex: 1; max-width: 300px; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 3px 12px; font-size: 12px; color: var(--muted); font-family: var(--font-mono); }
.ui { display: grid; grid-template-columns: 150px 1fr; font-size: 13px; background: var(--bg); }
.ui-side { background: #fff; border-right: 1px solid var(--border); padding: 14px 10px; }
.ui-side .logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 14px; padding: 2px 6px 14px; }
.ui-side .logo b { width: 24px; height: 24px; border-radius: 7px; background: linear-gradient(135deg, #0d9488, #115e59); display: block; }
.ui-side div.i { padding: 8px 10px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 12.5px; }
.ui-side div.on { background: linear-gradient(135deg, #0d9488, #0f766e); color: #fff; }
.ui-main { padding: 16px; min-width: 0; }
.ui-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin-bottom: 12px; }
.ui-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ui-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px; box-shadow: var(--shadow-sm); }
.ui-card small { display: block; color: var(--muted); font-size: 11px; font-weight: 600; }
.ui-card strong { display: block; font-family: var(--font-display); font-size: 21px; margin-top: 2px; }
.ui-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 10px; margin-top: 10px; }
.ui-panel { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px; box-shadow: var(--shadow-sm); }
.ui-panel h4 { font-size: 13px; margin-bottom: 10px; }
.donut { width: 92px; height: 92px; border-radius: 50%; position: relative; display: grid; place-items: center; flex: none; }
.donut::before { content: ""; position: absolute; inset: 15px; border-radius: 50%; background: #fff; }
.donut > div { position: relative; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1; }
.donut small { display: block; font: 700 8px var(--font-body); letter-spacing: .08em; color: var(--muted); margin-top: 3px; }
.d-row { display: flex; align-items: center; gap: 14px; }
.legend { display: grid; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 600; flex: 1; }
.legend div { display: flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; }
.legend b { margin-left: auto; font-family: var(--font-mono); color: var(--ink); font-size: 11.5px; }
.bars { display: flex; align-items: flex-end; gap: 7px; height: 92px; }
.bars i { flex: 1; border-radius: 5px 5px 2px 2px; background: linear-gradient(var(--accent), #5eead4); }
.float { position: absolute; z-index: 2; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-md); font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.float small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.float .ok-dot { width: 32px; height: 32px; border-radius: 10px; background: var(--success-soft); color: var(--success-text); display: grid; place-items: center; font-size: 16px; }
.float.f1 { top: -24px; right: -18px; }
.float.f2 { bottom: -22px; left: -26px; }
.hero-visual { position: relative; }
@media (max-width: 1100px) { .float.f1 { right: 8px; top: -18px; } .float.f2 { left: 8px; bottom: -18px; } }
@media (max-width: 640px) { .ui { grid-template-columns: 1fr; } .ui-side { display: none; } .ui-cards { grid-template-columns: 1fr 1fr; } .ui-row { grid-template-columns: 1fr; } .float { display: none; } }

/* strip */
.strip { background: var(--accent-deep); color: #fff; padding-block: 22px; }
.strip .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; font-weight: 600; font-size: 15.5px; }
.strip span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #5eead4; margin-right: 10px; vertical-align: middle; }

/* stats */
.stats { padding-block: 70px; background: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(42px, 5vw, 62px); color: var(--accent); line-height: 1; }
.stat span { display: block; margin-top: 10px; color: var(--muted); font-weight: 600; }
@media (max-width: 720px) { .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 36px; } }

/* alternating feature rows */
.row2 { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.row2.flip .copy { order: 2; }
.row2 + .row2 { margin-top: 110px; }
.copy h3 { font-size: clamp(30px, 3.6vw, 42px); margin: 12px 0 18px; font-weight: 700; }
.copy > p { color: var(--muted); font-size: 18px; }
.ticks { margin-top: 24px; display: grid; gap: 13px; }
.ticks li { position: relative; padding-left: 34px; font-weight: 600; font-size: 16px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 23px; height: 23px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 13px; font-weight: 800; border: 1px solid var(--accent-mid); }
@media (max-width: 920px) { .row2, .row2.flip { grid-template-columns: 1fr; gap: 40px; } .row2.flip .copy { order: 0; } .row2 + .row2 { margin-top: 76px; } }
.kv { width: 100%; border-collapse: collapse; font-size: 14px; }
.kv td { padding: 11px 4px; border-bottom: 1px solid var(--border); }
.kv td:last-child { text-align: right; font-weight: 700; }
.fld { margin-top: 14px; }
.fld label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 5px; }
.fld .in { display: block; padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); font-size: 14px; }
.badge { display: inline-block; padding: 3px 11px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.badge.ok { background: var(--success-soft); color: var(--success-text); }
.badge.bad { background: var(--danger-soft); color: var(--danger-text); }
.badge.warn { background: var(--warning-soft); color: var(--warning-text); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 10px 14px; background: var(--bg); border-bottom: 1px solid var(--border); }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--border); font-weight: 600; }
.tbl tr:last-child td { border-bottom: 0; }
.pad { padding: 22px; }
.pad h4 { font-size: 18px; margin-bottom: 8px; }

/* feature grid */
.tint { background: var(--bg); border-block: 1px solid var(--border); }
.grid { display: grid; gap: 22px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g3 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 30px; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s, border-color .15s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent-mid); }
.ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-mid); }
.ic svg { width: 26px; height: 26px; }
.ic.am { background: var(--warning-soft); color: var(--warning-text); border-color: #fde7b3; }
.ic.gr { background: var(--success-soft); color: var(--success-text); border-color: #bdeed7; }
.ic.rd { background: var(--danger-soft); color: var(--danger-text); border-color: #fbd0cc; }
.card h3 { font-size: 22px; font-weight: 700; }
.card p { margin-top: 10px; color: var(--muted); font-size: 16px; }

/* steps */
.steps { counter-reset: s; }
.step { position: relative; padding: 34px 30px 30px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: -22px; left: 28px; width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 21px var(--font-display); display: grid; place-items: center; box-shadow: 0 8px 18px -6px rgba(13, 148, 136, .7); }

/* roles */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.tab { padding: 11px 22px; border-radius: 99px; border: 1px solid var(--border); background: #fff; color: var(--muted); font: 700 15px var(--font-body); cursor: pointer; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 8px 18px -8px rgba(13, 148, 136, .8); }
.role { background: #fff; border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-md); padding: 42px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; max-width: 960px; margin-inline: auto; }
.role[hidden] { display: none; }
.role h3 { font-size: 32px; }
.role .who { color: var(--accent); font-weight: 700; margin: 6px 0 14px; font-size: 14.5px; }
.role p.what { color: var(--muted); font-size: 17px; }
@media (max-width: 820px) { .role { grid-template-columns: 1fr; padding: 28px; gap: 24px; } }

/* apps */
.phones { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }
.phone { width: 262px; border: 1px solid #cbd5e1; border-radius: 38px; background: #0f172a; padding: 11px; box-shadow: var(--shadow-lg); }
.phone-in { border-radius: 28px; background: var(--bg); padding: 22px 14px 18px; min-height: 420px; }
.phone-in h5 { margin: 0 4px 8px; font: 700 14px var(--font-body); color: var(--muted); }
.prow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 13px; margin-top: 9px; background: #fff; border: 1px solid var(--border); border-radius: 13px; font-size: 14px; font-weight: 700; box-shadow: var(--shadow-sm); }
.prow small { display: block; color: var(--faint); font-size: 12px; font-weight: 500; }
.phone.p2 { margin-top: 38px; }
@media (max-width: 640px) { .phone.p2 { margin-top: 0; } }

/* security */
.dark { background: radial-gradient(60% 90% at 90% 0%, rgba(94, 234, 212, .18), transparent 65%), linear-gradient(135deg, #0b3b38, #115e59 60%, #0f766e); color: #fff; }
.dark .sec-head p { color: rgba(255, 255, 255, .8); }
.dark .eyebrow { color: #5eead4; }
.dcard { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r); padding: 28px; }
.dcard h3 { font-size: 21px; font-weight: 700; }
.dcard p { margin-top: 10px; color: rgba(255, 255, 255, .78); font-size: 16px; }
.dcard .ic { background: rgba(94, 234, 212, .14); border-color: rgba(94, 234, 212, .35); color: #5eead4; }

/* plans */
.plan { text-align: left; }
.plan.feat { border: 2px solid var(--accent); box-shadow: var(--shadow-md); position: relative; }
.plan .flag { position: absolute; top: -13px; left: 28px; background: var(--accent); color: #fff; padding: 3px 14px; border-radius: 99px; font-size: 12.5px; font-weight: 700; }
.plan .ticks { margin: 22px 0 26px; }
.plan .btn { width: 100%; }

/* faq */
.faq { max-width: 820px; margin-inline: auto; }
details { background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-sm); }
details + details { margin-top: 12px; }
summary { cursor: pointer; padding: 20px 24px; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 26px; color: var(--accent); line-height: 1; flex: none; }
details[open] summary::after { content: "–"; }
details[open] { border-color: var(--accent-mid); }
details p { padding: 0 24px 22px; color: var(--muted); font-size: 16.5px; }

/* final cta */
.cta { text-align: center; border-radius: 30px; padding: 84px 28px; color: #fff; background: radial-gradient(60% 120% at 80% 0%, rgba(255, 255, 255, .18), transparent 60%), linear-gradient(135deg, #115e59, #0d9488); box-shadow: var(--shadow-lg); }
.cta h2 { font-size: clamp(34px, 5vw, 56px); max-width: 780px; margin: 0 auto; }
.cta p { margin: 20px auto 0; max-width: 560px; font-size: 19px; opacity: .92; }
.cta .btn { margin-top: 34px; background: #fff; color: var(--accent-deep); box-shadow: 0 4px 0 rgba(0, 0, 0, .2); }
.cta .btn:hover { background: var(--accent-soft); }

/* footer */
footer { background: #0b1220; color: #94a3b8; padding-block: 64px 36px; }
.foot { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
footer .brand { color: #fff; }
footer p.about { margin-top: 16px; max-width: 320px; font-size: 15px; }
footer h5 { margin: 0 0 16px; color: #fff; font: 700 14px var(--font-body); letter-spacing: .06em; text-transform: uppercase; }
footer li + li { margin-top: 10px; }
footer a:hover { color: #5eead4; }
.legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid #1e293b; font-size: 14px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
@media (max-width: 820px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
