/* Data Mappers - shared stylesheet. Keep byte-identical across pages that share this file (see PLAYBOOK.md §5). */

:root {
  --color-primary: #3C72FC;
  --color-primary-dark: #1B4FD1;
  --color-navy: #0F0D1D;
  --color-bg: #ffffff;
  --color-bg-light: #F2F4F8;
  --color-bg-tint: #EBF1FF;
  --color-page: #EEECE6;
  --color-text: #3A3750;
  --color-text-muted: #726F84;
  --color-border: #E4E2EC;
  --font-body: 'Jost', sans-serif;
  --font-heading: 'Roboto', sans-serif;
  --radius-pill: 999px;
  --radius-card: 14px;
  --max-width: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
}
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.25;
  margin: 0 0 0.6em;
}
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
}
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-outline {
  background: transparent;
  border-color: var(--color-navy);
  color: var(--color-navy);
}
.btn-outline:hover { background: var(--color-navy); color: #fff; }
.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.15); }
.btn-dark {
  background: var(--color-navy);
  color: #ffffff;
}
.btn-dark:hover { background: #211f33; }
.btn-ghost {
  background: var(--color-bg-light);
  color: var(--color-navy);
  padding: 11px 22px;
}
.btn-ghost:hover { background: var(--color-border); }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* Hero frame: header + hero live inside a rounded card floating on a warm backdrop, contained to just this region */
.hero-frame-outer {
  background: var(--color-page);
  padding: 28px 0 48px;
}
.hero-frame {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}
.hero-frame-decor {
  position: absolute;
  top: 10px;
  left: 24px;
  right: 24px;
  height: 60px;
  border-radius: 28px;
  z-index: 0;
}
.hero-frame-decor-1 { background: #E1DDD2; top: 18px; transform: rotate(-0.6deg); }
.hero-frame-decor-2 { background: #D7D2C3; top: 8px; transform: rotate(0.5deg); }
.hero-frame-card {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 13, 29, 0.10);
}

/* Header: sticky + bordered by default (interior pages); embedded, static and borderless when nested inside the homepage's hero frame card */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
}
.hero-frame-card .site-header {
  position: static;
  border-bottom: none;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
  max-width: 1400px;
}

/* Trust strip: standalone section, reused as-is on every page right after the hero */
.trust-strip-section {
  background: var(--color-bg-light);
  border-bottom: 1px solid var(--color-border);
  padding: 24px 0;
}
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
}
.logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.5px;
  color: var(--color-navy);
}
.logo span { color: var(--color-primary); }
.main-nav ul { display: flex; gap: 24px; }
.main-nav > ul > li { position: relative; }
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
}
.main-nav a:hover { color: var(--color-primary); }

/* Dropdown: hover-revealed on desktop */
.has-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.has-dropdown > a::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.6;
}
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 16px 32px rgba(15, 13, 29, 0.10);
  padding: 10px;
  flex-direction: column;
  gap: 2px;
  z-index: 60;
}
.has-dropdown:hover .dropdown { display: flex; }
.dropdown a {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  white-space: nowrap;
}
.dropdown a:hover { background: var(--color-bg-light); }
.dropdown-label {
  padding: 10px 12px 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  margin-top: 4px;
}
.dropdown-label:first-child { border-top: none; margin-top: 0; }
.dropdown-lg {
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.dropdown-all {
  margin-top: 4px;
  padding-top: 12px !important;
  border-top: 1px solid var(--color-border);
  color: var(--color-primary) !important;
  font-weight: 500;
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { padding: 11px 20px; font-size: 14px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-navy);
  margin: 5px 0;
}

/* Hero (sits inside .hero-frame-card, below the header) */
.hero {
  background: radial-gradient(ellipse at top, var(--color-bg-tint) 0%, #ffffff 55%);
  padding: 36px 0 44px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-bg-tint);
  color: var(--color-primary-dark);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: 46px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 .accent { color: var(--color-primary); }
.hero-subhead {
  font-size: 17px;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 8px;
}
.hero-subhead strong { color: var(--color-navy); }

/* Hero visual: framed sample-data mockup, styled as a nested app screenshot */
.hero-visual {
  position: relative;
  max-width: 980px;
  margin: 44px auto 0;
  padding: 0 8px;
}
.browser-mockup {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(15, 13, 29, 0.10);
  text-align: left;
}
.browser-mockup-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
}
.browser-dot { width: 9px; height: 9px; border-radius: 50%; }
.browser-mockup-url {
  margin-left: 12px;
  font-size: 12px;
  color: var(--color-text-muted);
  background: var(--color-bg-light);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}
.mockup-body { display: flex; }
.mockup-sidebar {
  width: 160px;
  flex-shrink: 0;
  background: var(--color-bg-light);
  border-right: 1px solid var(--color-border);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mockup-sidebar-item {
  font-size: 12.5px;
  color: var(--color-text-muted);
  padding: 8px 12px;
  border-radius: 8px;
}
.mockup-sidebar-item.is-active {
  background: var(--color-primary);
  color: #fff;
  font-weight: 500;
}
.mockup-main { flex: 1; min-width: 0; padding: 20px 24px 26px; }
.mockup-body-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.mockup-body-head h4 { font-size: 15px; margin: 0; }
.mockup-pill {
  font-size: 12px;
  color: var(--color-primary-dark);
  background: var(--color-bg-tint);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}
.mockup-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.mockup-kpis > div {
  background: var(--color-bg-light);
  border-radius: 10px;
  padding: 12px 14px;
}
.mockup-kpi-num {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-navy);
}
.mockup-kpi-label { display: block; font-size: 11px; color: var(--color-text-muted); margin-top: 2px; }
.mockup-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mockup-table th {
  text-align: left;
  color: var(--color-text-muted);
  font-weight: 500;
  padding: 8px 10px;
  border-bottom: 1px solid var(--color-border);
}
.mockup-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}
.status-ok {
  color: #0F6E56;
  background: #E1F5EE;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

/* Stats */
.stats {
  padding: 0 0 64px;
}
.stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.stat-item {
  background: #fff;
  padding: 26px 16px;
  text-align: center;
}
.stat-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 28px;
  color: var(--color-primary);
}
.stat-label {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* Section headings */
.section { padding: 64px 0; }
.section-alt { background: var(--color-bg-light); }
.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 44px;
}
.section-eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head h2 { font-size: 30px; }
.section-head p { color: var(--color-text-muted); }

/* Feature / service cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 28px 24px;
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-bg-tint);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
}
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--color-text-muted); margin-bottom: 0; }
.card-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
}

/* CTA banner */
.cta-banner {
  background: var(--color-navy);
  border-radius: 20px;
  padding: 56px 40px;
  text-align: center;
  color: #fff;
}
.cta-banner h2 { color: #fff; font-size: 28px; }
.cta-banner p { color: #B9B7C7; max-width: 460px; margin-left: auto; margin-right: auto; }
.cta-banner .btn-primary { margin-top: 8px; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 18px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--color-navy);
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: var(--color-primary);
  margin-left: 12px;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--color-text-muted);
}

/* Breadcrumbs (interior pages) */
.breadcrumbs {
  padding: 16px 0;
  font-size: 13px;
  color: var(--color-text-muted);
}
.breadcrumbs a { color: var(--color-text-muted); }
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumbs .sep { margin: 0 6px; color: var(--color-border); }
.breadcrumbs .current { color: var(--color-navy); font-weight: 500; }

/* Page hero: simpler hero used on interior/service pages (no frame, no mockup) */
.page-hero {
  background: radial-gradient(ellipse at top, var(--color-bg-tint) 0%, #ffffff 60%);
  padding: 28px 0 44px;
  text-align: center;
}
.page-hero .hero-badge { margin-bottom: 18px; }
.page-hero h1 {
  font-size: 38px;
  max-width: 700px;
  margin: 0 auto 16px;
}
.page-hero .hero-subhead { margin-bottom: 28px; }

/* AEO answer block: direct-answer paragraph near the top of every commercial page */
.answer-block {
  max-width: 760px;
  margin: 0 auto 8px;
  padding: 18px 22px;
  background: var(--color-bg-light);
  border-radius: var(--radius-card);
  font-size: 14.5px;
  color: var(--color-text);
  text-align: left;
}
.answer-block strong { color: var(--color-navy); }

/* Process steps */
.step-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step-list.steps-3 { grid-template-columns: repeat(3, 1fr); }
.step-list.steps-4-col { grid-template-columns: repeat(2, 1fr); }
.step-item { position: relative; padding-top: 8px; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
}
.step-item h4 { font-size: 15px; margin-bottom: 6px; }
.step-item p { font-size: 13.5px; color: var(--color-text-muted); margin: 0; }

/* Two-column body: main content + sticky sidebar (use cases, related links, CTA) */
.content-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}
.content-main h2 { font-size: 24px; margin-top: 40px; }
.content-main h2:first-child { margin-top: 0; }
.content-main p { color: var(--color-text-muted); }
.content-main ul { margin: 0 0 1em; padding-left: 20px; list-style: disc; color: var(--color-text-muted); }
.content-main li { margin-bottom: 6px; }
.sidebar-card {
  position: sticky;
  top: 96px;
  background: var(--color-bg-light);
  border-radius: var(--radius-card);
  padding: 24px;
}
.sidebar-card h4 { font-size: 15px; margin-bottom: 10px; }
.sidebar-card p { font-size: 13.5px; color: var(--color-text-muted); }
.sidebar-card .btn { width: 100%; margin-top: 12px; }
.sidebar-list { margin-top: 16px; }
.sidebar-list li { font-size: 13.5px; margin-bottom: 8px; }
.sidebar-list a { color: var(--color-text-muted); }
.sidebar-list a:hover { color: var(--color-primary); }

/* Objection / why-choose-us list */
.check-list { display: grid; gap: 12px; }
.check-list li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  color: var(--color-text);
  list-style: none;
  margin: 0;
}
.check-list li::before {
  content: '\2713';
  color: #0F6E56;
  font-weight: 700;
  flex-shrink: 0;
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field { margin-bottom: 16px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-navy);
  margin-bottom: 6px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  background: #fff;
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}
.form-note {
  font-size: 12.5px;
  color: var(--color-text-muted);
  margin-top: 4px;
}
.nap-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}
.nap-item {
  background: var(--color-bg-light);
  border-radius: var(--radius-card);
  padding: 20px;
}
.nap-item h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--color-text-muted); margin-bottom: 8px; }
.nap-item p { font-size: 15px; color: var(--color-navy); margin: 0; font-weight: 500; }

/* School/district lookup tool */
.lookup-panel {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 28px;
  margin: 32px 0;
}
.lookup-mode-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.lookup-mode-btn {
  flex: 1;
  padding: 11px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border);
  background: #fff;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--color-text-muted);
  cursor: pointer;
}
.lookup-mode-btn.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.lookup-status {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 16px 0;
}
.lookup-results {
  display: grid;
  gap: 14px;
}
.result-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 18px 22px;
}
.result-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.result-card-head h3 { font-size: 16px; margin: 0; }
.result-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-bg-tint);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.result-meta {
  font-size: 13.5px;
  color: var(--color-text-muted);
  margin: 0 0 4px;
}
.result-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  margin: 8px 0 0;
}
.result-links a { color: var(--color-primary); font-weight: 500; }
.result-links a:hover { text-decoration: underline; }

/* Footer */
.site-footer {
  background: var(--color-navy);
  color: #B9B7C7;
  padding: 56px 0 28px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-grid h4 {
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #726F84;
}

/* Nav switches to the hamburger menu earlier than the general tablet breakpoint below,
   since 8 top-level items + 2 buttons no longer fit a desktop-width header past this point. */
@media (max-width: 1240px) {
  .main-nav { display: none; }
  .main-nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 16px 24px;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .main-nav.is-open ul { flex-direction: column; gap: 16px; }
  .main-nav.is-open .has-dropdown > a::after { display: none; }
  .dropdown {
    display: flex;
    position: static;
    box-shadow: none;
    border: none;
    background: var(--color-bg-light);
    margin-top: 10px;
    min-width: 0;
  }
  .header-actions .btn-ghost { display: none; }
  .nav-toggle { display: block; }
}

@media (max-width: 860px) {
  .hero h1 { font-size: 32px; }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .card-grid, .card-grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mockup-sidebar { display: none; }
  .mockup-kpis { grid-template-columns: 1fr 1fr; }
  .mockup-table { display: block; overflow-x: auto; white-space: nowrap; }
  .hero-frame { margin-top: 16px; }
  .hero-frame-decor { display: none; }
  .hero-frame-card { border-radius: 20px; }
  .page-hero h1 { font-size: 28px; }
  .step-list, .step-list.steps-3 { grid-template-columns: 1fr 1fr; }
  .content-layout { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
}
@media (max-width: 520px) {
  .card-grid, .card-grid.cols-3 { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .hero-visual { padding: 0; }
  .mockup-kpis { grid-template-columns: 1fr; }
  .trust-strip { gap: 8px 16px; font-size: 12px; }
  .step-list, .step-list.steps-3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .nap-card { grid-template-columns: 1fr; }
}
