/* Clarity — light theme for tombusfield.com
   Shared stylesheet for index.html and schools.html.
   Palette and type follow the Clarity mockup (white · deep navy · teal,
   Plus Jakarta Sans): background #f7f9fc, ink #0b1b33, accent #0e7c6b. */
:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --text: #0b1b33;
  --muted: #4a5b73;
  --muted-2: #72849c;
  --line: #e3e9f2;
  --line-soft: #edf1f6;
  --accent: #0e7c6b;
  --accent-dark: #0a5c4f;
  --accent-soft: #e6f4f0;
  --amber: #e8a13a;
  --blue: #3f7fbf;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(11, 27, 51, .10);
  --ease: cubic-bezier(.22, 1, .36, 1);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; line-height: 1.6; }
::selection { color: #fff; background: var(--accent); }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img { max-width: 100%; }
.shell { width: min(1080px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: 8px; z-index: 10; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.accent { color: var(--accent); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.section-title { font-size: 28px; line-height: 1.1; letter-spacing: -.03em; font-weight: 800; margin: 0 0 8px; }
.section-lede { font-size: 16.5px; line-height: 1.6; color: var(--muted); max-width: 560px; margin: 0; }

/* Header — white bar, as in the mockup */
.header { position: sticky; top: 0; z-index: 5; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 60px; }
.brand { font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.brand span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 20px; font-size: 14px; font-weight: 500; }
.nav a { padding: 8px 2px; color: var(--muted); transition: color 180ms ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a.cta-link { background: var(--text); color: #fff; font-weight: 600; padding: 10px 16px; border-radius: 10px; }
.nav a.cta-link:hover { background: #060d1a; color: #fff; }

/* Buttons — navy primary, rounded-rect, as in the mockup */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; line-height: 1.2; border: 1px solid transparent; cursor: pointer; transition: transform 180ms var(--ease), background 180ms ease, border-color 180ms ease; }
.btn-primary { background: var(--text); color: #fff; }
.btn-primary:hover { background: #060d1a; }
.btn-ghost { background: var(--surface); border-color: #d6dee9; color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent); border-bottom: 1px solid transparent; }
.text-link:hover { border-bottom-color: var(--accent); }

/* Hero — mockup proportions: 52px top, 30px bottom, 1080px, 56px extra-bold heads */
.hero { padding: 52px 0 30px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 28px; align-items: center; }
.hero h1 { font-size: clamp(36px, 4.8vw, 56px); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; margin: 14px 0 16px; }
.hero-intro { font-size: 16.5px; line-height: 1.65; color: var(--muted); margin: 0 0 22px; max-width: 520px; }
.hero-intro strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-note { margin-top: 22px; font-size: 14px; color: var(--muted); }

/* Dashboard visual (CSS only — illustrative, not real school data) */
.dashboard { background: var(--surface); border: 1px solid #e1e8f0; border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.dashboard-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
.dashboard-bar strong { font-size: 12.5px; font-weight: 700; letter-spacing: -.01em; }
.dashboard-bar span { font-size: 12.5px; color: var(--muted-2); font-weight: 500; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px; }
.kpi { background: var(--surface-soft); border-radius: 10px; padding: 12px; }
.kpi-label { font-size: 12px; color: var(--muted-2); margin: 0 0 4px; }
.kpi-value { font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin: 0; }
.kpi-delta { font-size: 12px; font-weight: 600; color: var(--accent); margin: 2px 0 0; }
.chart { margin: 0 14px 14px; padding: 12px; background: var(--surface-soft); border-radius: 10px; }
.chart-title { font-size: 13px; font-weight: 600; margin: 0 0 12px; }
.bars { display: flex; align-items: stretch; gap: 10px; height: 158px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; height: 100%; }
.bar-value { font-size: 11px; font-weight: 700; color: var(--muted); }
.bar-value.warn { color: #8a5a00; }
.bar-track { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; min-height: 0; }
.bar { width: 100%; max-width: 34px; border-radius: 5px 5px 0 0; background: var(--accent); opacity: .85; }
.bar.alt { background: var(--text); }
.bar.warn { background: var(--amber); }
.bar-col:hover .bar { opacity: 1; }
.bar-col:hover .bar-value { color: var(--text); }
.bar-label { font-size: 11px; color: var(--muted-2); }
.bar-trend { font-size: 11px; font-weight: 600; }
.bar-trend.up { color: var(--accent); }
.bar-trend.down { color: #8a5a00; }
.chart-alert { background: #fdf6e9; border-left: 3px solid var(--amber); border-radius: 8px; padding: 10px 12px; font-size: 12.5px; line-height: 1.5; margin: 12px 0 0; }
.chart-alert strong { color: #8a5a00; }
.chart-note { font-size: 12px; color: var(--muted-2); margin: 12px 0 0; }

/* Dashboard animation — bars rise, KPIs fade in, live dot pulses.
   CSS only: the site's security header blocks inline scripts, so no JS here. */
.bar { transform-origin: bottom; animation: bar-rise .7s var(--ease) both; }
.bar-col:nth-child(1) .bar { animation-delay: .05s; }
.bar-col:nth-child(2) .bar { animation-delay: .1s; }
.bar-col:nth-child(3) .bar { animation-delay: .15s; }
.bar-col:nth-child(4) .bar { animation-delay: .2s; }
.bar-col:nth-child(5) .bar { animation-delay: .25s; }
.bar-col:nth-child(6) .bar { animation-delay: .3s; }
.bar-col:nth-child(7) .bar { animation-delay: .35s; }
@keyframes bar-rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.kpi { animation: fade-up .5s var(--ease) both; }
.kpi:nth-child(2) { animation-delay: .1s; }
.kpi:nth-child(3) { animation-delay: .2s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: live-pulse 2s ease-in-out infinite; }
@keyframes live-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(14, 124, 107, .35); } 50% { box-shadow: 0 0 0 5px rgba(14, 124, 107, 0); } }
.dashboard-bar strong { display: inline-flex; align-items: center; gap: 8px; }

/* Workload panel — the cost of messy data (illustrative figures, labelled as such) */
.workload { margin: 0 14px 14px; padding: 12px; background: var(--surface-soft); border-radius: 10px; }
.workload-title { font-size: 13px; font-weight: 600; margin: 0 0 4px; }
.workload-note { font-size: 12px; color: var(--muted-2); margin: 0 0 12px; }
.workload-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; margin-bottom: 10px; }
.workload-label { font-size: 12.5px; }
.workload-hours { font-size: 12.5px; font-weight: 700; }
.workload-track { grid-column: 1 / -1; height: 8px; background: #e3e9f2; border-radius: 99px; overflow: hidden; }
.workload-fill { height: 100%; width: var(--w, 50%); border-radius: 99px; background: var(--amber); transform-origin: left; animation: fill-grow .8s var(--ease) both; }
.workload-row:nth-child(4) .workload-fill { animation-delay: .15s; }
.workload-row:nth-child(5) .workload-fill { animation-delay: .3s; }
@keyframes fill-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.workload-total { font-size: 13px; margin: 12px 0 0; }

@media (prefers-reduced-motion: reduce) {
  .bar, .kpi, .workload-fill, .live-dot { animation: none !important; }
}

/* Sections — mockup rhythm: 36px, not 84px */
.section { padding: 36px 0; }
.section + .section { border-top: 1px solid var(--line-soft); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 20px; flex-wrap: wrap; }

/* Work */
.work-list { border-top: 1px solid var(--line); }
.project { border-bottom: 1px solid var(--line); }
.project summary { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 24px; align-items: center; gap: 28px; padding: 20px 4px; cursor: pointer; list-style: none; }
.project summary::-webkit-details-marker { display: none; }
.project-title { font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.project-preview { color: var(--muted); font-size: 15px; }
.project summary:hover .project-title, .project[open ] .project-title { color: var(--accent); }
.plus { width: 22px; height: 22px; position: relative; color: var(--accent); }
.plus::before, .plus::after { content: ""; position: absolute; background: currentColor; }
.plus::before { width: 20px; height: 2px; left: 1px; top: 10px; }
.plus::after { width: 2px; height: 20px; left: 10px; top: 1px; transition: transform 300ms var(--ease); }
.project[open ] .plus::after { transform: rotate(90deg); }
.project-detail { padding: 0 40px 24px 4px; max-width: 720px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.project-detail p { margin: 0 0 12px; }
.project-detail p:last-child { margin-bottom: 0; }
.project-status { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* Approach */
.approach-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px; align-items: start; }
.portrait { width: 100%; height: auto; border-radius: var(--radius); display: block; box-shadow: var(--shadow); }
.approach-copy h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; margin: 0 0 14px; }
.approach-copy p { font-size: 16.5px; color: var(--muted); line-height: 1.6; margin: 0 0 14px; }
.approach-copy p strong { color: var(--text); }

/* How it works */
.step { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 18px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.guide-total { font-size: 18px; font-weight: 700; color: var(--text); margin: 14px 0 0; }
.guide-total-note { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.step h3 { font-size: 16px; letter-spacing: -.01em; margin: 0 0 7px; }
.step p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.6; }
.promise { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line-soft); border-left: 4px solid var(--accent); border-radius: 10px; padding: 14px 18px; font-size: 15px; line-height: 1.55; margin: 0 0 24px; }
.promise strong { font-weight: 700; }

/* Contact */
.contact-block { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; align-items: start; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.contact-note { background: var(--surface-soft); border-radius: var(--radius); padding: 22px; font-size: 15px; color: var(--muted); line-height: 1.6; }
.contact-note strong { color: var(--text); }

/* Contact form */
.contact-form { display: grid; gap: 18px; max-width: 640px; }
.contact-form .field { margin-bottom: 0; }
.contact-form .field input[type="text"], .contact-form .field input[type="email"], .contact-form .field textarea { width: 100%; padding: 11px 14px; font: inherit; font-size: 15px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); }
.contact-form .field textarea { min-height: 180px; resize: vertical; }
.contact-form .field input:focus, .contact-form .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.contact-form .field .hint { font-size: 13px; color: var(--muted-2); margin: 6px 0 0; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: #fdf3f2; border: 1px solid #f0c6c2; border-left: 4px solid #b3261e; border-radius: 10px; padding: 14px 18px; font-size: 15px; line-height: 1.55; }
.form-error strong { color: #b3261e; }
.form-note { background: var(--accent-soft); border-radius: 10px; padding: 14px 18px; font-size: 15px; line-height: 1.55; }

/* Footer — white, as in the mockup */
.footer { background: #fff; border-top: 1px solid var(--line); padding: 18px 0; font-size: 13px; color: var(--muted-2); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer a:hover { color: var(--accent); }

/* Schools page */
.type-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 28px 0 8px; }
.type-btn { appearance: none; text-align: left; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px 18px; cursor: pointer; font: inherit; transition: border-color 180ms ease, background 180ms ease; }
.type-btn:hover { border-color: var(--accent); }
.type-btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.type-btn strong { display: block; font-size: 16px; letter-spacing: -.01em; margin-bottom: 4px; }
.type-btn span { font-size: 13px; color: var(--muted); line-height: 1.45; display: block; }
.type-intro { font-size: 17px; color: var(--muted); max-width: 680px; margin: 20px 0 0; }
.reco-tag { display: none; margin-top: 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.service-card.recommended .reco-tag { display: block; }

.school-services { background: var(--accent-soft); border-radius: 16px; margin-block: 24px; padding: clamp(16px, 3vw, 28px); }
.service-list { display: grid; gap: 14px; margin-top: 20px; }
.service-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color 180ms ease; }
.service-card.recommended { border-color: var(--accent); }
.service-card summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: clamp(14px, 2vw, 20px);
  cursor: pointer;
  list-style: none;
}
.service-card summary::-webkit-details-marker { display: none; }
.service-card summary:focus-visible { outline-offset: -4px; }
.service-card[open] > summary .plus::after { transform: rotate(90deg); }
.service-summary { grid-column: 1 / -1; align-self: start; }
.service-title { display: block; font-size: clamp(18px, 2vw, 22px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.service-card .service-tag { display: block; font-size: 16px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.service-price-note { font-size: 14px; font-weight: 700; color: var(--accent-dark); }
.service-detail { padding: 0 clamp(14px, 2vw, 20px) 20px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.service-detail p { margin: 0 0 12px; }
.service-detail ul { margin: 0 0 12px; padding-left: 20px; }
.service-detail li { margin-bottom: 6px; }
.service-detail .pick-btn { margin-top: 6px; }
.school-service-pricing { margin: 16px 0 0; color: var(--muted); font-size: 15px; }

@media (min-width: 960px) {
  .service-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-list:has(> .service-card[open]) { align-items: start; }
  .service-list:not(:has(> .service-card[open])) .service-card summary { height: 100%; }
  .service-card summary { min-height: 190px; }
}

/* Builder */
.builder { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: 28px; align-items: start; }
.field { margin-bottom: 22px; }
.field > label, .field > span.field-label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.field select, .field input[type="number"] { width: 100%; max-width: 420px; padding: 11px 14px; font: inherit; font-size: 15px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { appearance: none; font: inherit; font-size: 14px; padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; transition: border-color 160ms ease, background 160ms ease; }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.summary-card { position: sticky; top: 92px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.summary-card h3 { font-size: 20px; margin: 0 0 6px; letter-spacing: -.01em; }
.summary-card .summary-sub { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.summary-list { list-style: none; margin: 0 0 16px; padding: 0; font-size: 15px; line-height: 1.55; }
.summary-list li { padding: 9px 0; border-top: 1px solid var(--line-soft); }
.summary-list li:first-child { border-top: 0; }
.summary-list .empty { color: var(--muted); }
.summary-actions { display: flex; flex-direction: column; gap: 10px; }
.summary-actions .btn { justify-content: center; }
.copy-ok { font-size: 13px; color: var(--accent); font-weight: 600; min-height: 18px; margin: 4px 0 0; }
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.how-steps .step { border: 1px solid var(--line); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .approach-grid, .contact-block, .builder { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .how-steps { grid-template-columns: 1fr; }
  .type-picker { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 40px); }
  .header-inner { min-height: 56px; gap: 12px; }
  .brand { font-size: 17px; }
  .nav { gap: 14px; font-size: 13.5px; }
  .nav a.cta-link { padding: 8px 12px; }
  .hero { padding-top: 40px; }
  .project summary { grid-template-columns: minmax(0, 1fr) 22px; gap: 6px 14px; }
  .project-preview { grid-column: 1; grid-row: 2; }
  .project summary .plus { grid-column: 2; grid-row: 1 / span 2; }
  .project-detail { padding-right: 0; }
  .kpis { grid-template-columns: 1fr 1fr 1fr; }
  .kpi { padding: 12px; }
  .type-picker { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
