:root {
  --ink: #16202A;
  --soft: #3D4852;
  --muted: #6B747C;
  --line: #E3E1DB;
  --line-2: #EEEDE8;
  --paper: #F4F3EF;
  --frame: #D5D2CA;
  --accent: #0F5C3A;
  --accent-dark: #0A4129;
  --red: #C2412D;
  --serif: 'Source Serif 4', Georgia, serif;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Archivo, system-ui, sans-serif; color: var(--ink); background: #fff; line-height: 1.5; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
p, h1, h2, h3, dl, dd { margin: 0; }
table { border-collapse: collapse; }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.serif { font-family: var(--serif); }
.soft { color: var(--soft); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.strong { font-weight: 700; }
.right { text-align: right; }
.accent { color: var(--accent); }
.scroll-x { overflow-x: auto; }
.eyebrow { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.kicker { margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: 0.06em; }
.lead { font-size: 19px; color: var(--soft); margin-bottom: 24px; }
.lead-sm { font-size: 18px; color: var(--soft); }
.lead-sm + .lead-sm { margin-top: 14px; }

/* Buttons */
.btn, .btn-dark { display: inline-block; color: #fff; text-decoration: none; padding: 14px 22px; border-radius: 4px; font-weight: 600; }
.btn { background: var(--accent); }
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn-dark { background: var(--ink); padding: 11px 18px; }
.btn-dark:hover { color: #fff; background: #000; }
.btn-link { color: var(--ink); font-weight: 600; padding: 14px 6px; text-underline-offset: 4px; }
.btn-block { display: block; text-align: center; margin-top: 20px; padding: 15px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.header-row { padding-top: 18px; padding-bottom: 18px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.logo { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.logo span { color: var(--accent); }
.top-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; font-size: 15px; }
.top-nav a:not(.btn-dark) { color: var(--ink); text-decoration: none; }

/* Hero */
.hero { padding-top: 64px; }
.hero-row { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-end; }
.hero h1 { flex: 1 1 560px; min-width: 0; font-size: clamp(40px, 6vw, 60px); line-height: 1.02; font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; }
.hero-copy { flex: 1 1 340px; min-width: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.app-shot { margin-top: 48px; border: 1px solid var(--frame); border-bottom: none; border-radius: 8px 8px 0 0; overflow: hidden; background: var(--paper); }
.app-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--frame); }
.app-url { font-size: 12px; color: var(--muted); background: #fff; border-radius: 4px; padding: 3px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-body { display: flex; flex-wrap: wrap; background: #fff; }
.app-nav { flex: 0 0 200px; border-right: 1px solid var(--line); padding: 20px 0; font-size: 14px; }
.app-school { margin: 0 20px 16px; font-weight: 700; }
.nav-item { padding: 8px 20px; color: var(--soft); border-left: 3px solid transparent; }
.nav-item.is-active { background: #EEF4F0; color: var(--accent); font-weight: 700; border-left-color: var(--accent); }
.app-main { flex: 1 1 520px; min-width: 0; padding: 24px 28px; }
.app-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 18px; }
.app-title { font-size: 20px; font-weight: 700; }
.saved { font-size: 13px; color: var(--accent); font-weight: 600; }
.marks { width: 100%; min-width: 560px; font-size: 14px; font-variant-numeric: tabular-nums; }
.marks th { text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; padding: 8px 10px; }
.marks th:first-child, .marks td:first-child { padding-left: 0; }
.marks td { padding: 10px; border-top: 1px solid var(--line-2); }
.cell { display: inline-block; min-width: 36px; padding: 3px 6px; border: 1px solid transparent; border-radius: 3px; }
.cell.is-editing { border-color: var(--accent); }
.lvl { font-weight: 700; }

/* Audiences */
.audiences { border-top: 1px solid var(--line); }
.grid-3 { padding-top: 48px; padding-bottom: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px 48px; }
.grid-3 .serif { font-size: 17px; }

/* Features */
.features { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-stack { padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 88px; }
.feature { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: center; }
.feature.reverse { flex-wrap: wrap-reverse; }
.feature-copy { flex: 1 1 340px; min-width: 0; }
.feature-visual { flex: 1 1 480px; min-width: 0; }
h2 { font-size: clamp(28px, 4vw, 36px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 16px; text-wrap: balance; }

.report-card { background: #fff; border: 1px solid var(--frame); border-radius: 6px; padding: 28px 32px; box-shadow: 0 1px 0 var(--frame), 0 2px 0 #fff, 0 3px 0 var(--frame); }
.report-head { display: flex; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 14px; }
.report { width: 100%; font-size: 14px; }
.report td { padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.report .num { text-align: right; }
.report .lvl { padding-left: 16px; }
.comment { margin-top: 14px; font-style: italic; font-size: 14px; color: var(--soft); }

.panel { background: #fff; border: 1px solid var(--frame); border-radius: 6px; padding: 20px; }
.panel-title { margin-bottom: 12px; }
.timetable { width: 100%; min-width: 440px; font-size: 13px; table-layout: fixed; }
.timetable th { text-align: left; padding: 6px; color: var(--muted); font-size: 12px; font-weight: 600; }
.timetable td { padding: 3px; }
.timetable td:first-child { padding: 6px; }
.slot { background: #F7F6F2; border: 1px solid var(--line-2); border-radius: 3px; padding: 6px 7px; min-height: 30px; }
.slot span { display: block; }
.slot .note { font-size: 11px; color: var(--muted); }
.slot.is-clash { background: #FBECE8; border-color: var(--red); }
.slot.is-clash .note { color: var(--red); }

.lesson { padding: 24px 28px 24px 44px; background-image: linear-gradient(90deg, transparent 26px, #F0C9C1 26px, #F0C9C1 27px, transparent 27px); }
.lesson-title { margin: 2px 0 16px; font-size: 19px; font-weight: 700; }
.row { display: flex; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line-2); font-size: 14px; }
.row-label { flex: 0 0 130px; color: var(--muted); }
.row > span:last-child { flex: 1 1 auto; min-width: 0; }

/* Also */
.also { padding-top: 72px; padding-bottom: 72px; }
.also h2 { font-size: 28px; margin-bottom: 28px; }
.grid-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); column-gap: 48px; }
.grid-rows .row { padding: 14px 0; border-top-color: var(--line); font-size: 15px; }
.grid-rows .row-label { flex-basis: 150px; color: var(--ink); }
.next { margin-top: 28px; font-size: 15px; }
.next strong { color: var(--ink); }

/* Trust */
.trust { background: var(--ink); color: #D9DEE2; }
.trust-row { padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 40px 64px; }
.trust-copy { flex: 1 1 360px; min-width: 0; }
.trust h2 { color: #fff; font-size: clamp(26px, 3.6vw, 34px); }
.trust .serif { font-size: 18px; color: #B4BDC4; }
.trust dl { flex: 1 1 460px; min-width: 0; font-size: 15px; }
.trust dl div { display: flex; gap: 16px; padding: 12px 0; border-top: 1px solid #2E3B46; }
.trust dl div:last-child { border-bottom: 1px solid #2E3B46; }
.trust dt { flex: 0 0 130px; color: #fff; font-weight: 600; }

/* Pricing */
.pricing { padding-top: 80px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.pricing-copy { flex: 1 1 380px; min-width: 0; }
.pricing-copy h2 { font-size: clamp(30px, 4.5vw, 40px); }
.pricing-copy .lead-sm { margin-bottom: 20px; }
.quote { flex: 1 1 420px; min-width: 0; border: 1px solid var(--ink); border-radius: 4px; padding: 28px; background: #fff; }
.quote .eyebrow { margin-bottom: 20px; font-size: 13px; }
.quote label { display: block; font-weight: 600; margin-bottom: 6px; }
.quote-inputs { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; }
.quote-inputs input[type=range] { flex: 1; min-width: 0; height: 44px; accent-color: var(--accent); }
.quote-inputs input[type=number] { width: 96px; height: 44px; padding: 0 10px; font-size: 16px; border: 1px solid #A9B0B6; border-radius: 4px; font-family: inherit; }
.quote-line { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-top: 1px dashed #A9B0B6; font-size: 16px; font-variant-numeric: tabular-nums; }
.quote-line.total { border-bottom: 1px dashed #A9B0B6; }
.quote-line.total span:last-child { font-weight: 800; font-size: 22px; }
#minimum-note { margin-top: 12px; font-size: 14px; }

/* FAQ */
.faqs { border-top: 1px solid var(--line); }
.faqs .wrap { padding-top: 72px; padding-bottom: 80px; }
.faqs h2 { font-size: 28px; margin-bottom: 28px; }
.grid-faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 48px; }
.faq { padding: 18px 0; border-top: 1px solid var(--line); }
.faq h3 { margin-bottom: 6px; font-size: 17px; font-weight: 700; }
.faq p { font-size: 16px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--paper); }
.footer-row { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; font-size: 14px; color: #5B6670; }
.footer-row strong { color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }

@media (max-width: 640px) {
  .app-nav { flex-basis: 100%; border-right: none; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; padding: 12px 0; }
  .app-school { flex-basis: 100%; margin-bottom: 8px; }
  .nav-item { padding: 6px 12px; }
  .app-main { padding: 20px 16px; }
  .report-card { padding: 20px; }
  .row-label { flex-basis: 110px; }
  .trust dt { flex-basis: 100px; }
  .quote-inputs input[type=range] { display: none; }
  .quote-inputs input[type=number] { width: 100%; }
}
