:root {
  --green: #006c4b;
  --green-deep: #004833;
  --gold: #ffb547;
  --gold-deep: #e39a22;
  --ink: #41454a;
  --navy: #112541;
  --muted: #5d686e;
  --sage: #c1d0c6;
  --sage-soft: #e8f0ea;
  --sand: #d0cac3;
  --paper: #f4f2ee;
  --white: #ffffff;
  --burgundy: #852428;
  --teal: #1f7f74;
  --line: rgba(17, 37, 65, 0.1);
  --shadow: 0 18px 50px rgba(17, 37, 65, 0.1);
  --serif: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
}
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--green-deep); }
h1, h2, h3, .wordmark strong { font-family: var(--serif); font-weight: 700; letter-spacing: 0.04em; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--gold);
  color: var(--navy);
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.demo-bar {
  background: var(--navy);
  color: #e7eef6;
  font-size: 14px;
  text-align: center;
  padding: 8px 16px;
}
.demo-bar strong { color: var(--gold); font-weight: 600; }

.site-header {
  background: var(--green);
  color: white;
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
  margin-right: auto;
}
.brand svg { width: 42px; height: 42px; flex: none; }
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark strong {
  font-size: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.wordmark span {
  margin-top: 3px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav { display: flex; align-items: center; gap: 6px; }
.nav a, .menu summary {
  color: white;
  text-decoration: none;
  font-size: 16px;
  padding: 8px 12px;
  border-radius: 999px;
}
.nav a:hover, .menu summary:hover, .nav a.active { background: rgba(255, 255, 255, 0.12); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: " ▾"; font-size: 12px; }
.menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: white;
  color: var(--ink);
  min-width: 280px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: grid;
}
.menu-panel a {
  color: var(--navy);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
}
.menu-panel a:hover { background: var(--sage-soft); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy);
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--gold-deep); }
.btn svg { width: 18px; height: 18px; }
.btn.small { padding: 8px 14px; font-size: 15px; }
.btn.ghost {
  background: transparent;
  color: var(--green-deep);
  border: 1.5px solid var(--green);
}
.btn.block { width: 100%; }
.nav-toggle { display: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(244, 242, 238, 0.2), var(--paper) 92%),
    url("contours.svg") center top / cover no-repeat,
    var(--paper);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 36px;
  align-items: center;
  padding: 64px 0 36px;
}
.kicker {
  font-family: var(--serif);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 8px;
}
h1 {
  font-size: clamp(40px, 5vw, 62px);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 14px;
}
.lede { font-size: 20px; max-width: 38rem; margin: 0 0 22px; }

.search-card { max-width: 560px; }
.modes { display: flex; gap: 8px; margin-bottom: 10px; }
.modes label {
  display: flex;
  gap: 6px;
  align-items: center;
  background: white;
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid transparent;
  cursor: pointer;
}
.modes label.on { border-color: var(--green); background: var(--sage-soft); }
.search-row { display: flex; gap: 8px; align-items: center; }
.search-row input, .search-row select { flex: 1; width: auto; min-width: 0; }
.search-row .btn { flex: none; white-space: nowrap; }
.search-row input, .search-row select, .field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--sand);
  background: white;
  border-radius: 999px;
  padding: 12px 16px;
  outline: none;
}
.field textarea { border-radius: 16px; min-height: 110px; resize: vertical; }
.search-row input:focus, .search-row select:focus, .field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 108, 75, 0.15);
}
.hint { color: var(--muted); font-size: 15px; margin: 8px 0 0; }
.error { color: var(--burgundy); font-size: 15px; margin: 8px 0 0; }
.inline-link { color: var(--green-deep); font-weight: 700; }

.callout {
  margin-top: 22px;
  background: #fff8ec;
  border: 1px solid #f0ddb4;
  border-radius: 18px;
  padding: 22px;
  max-width: 560px;
}
.callout h2 { margin: 0 0 6px; font-size: 28px; text-transform: uppercase; color: var(--navy); }

.spotlight { position: relative; min-height: 360px; }
.pro-float {
  background: white;
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.pro-banner {
  height: 112px;
  background:
    linear-gradient(135deg, rgba(0, 108, 75, 0.88), rgba(17, 37, 65, 0.55)),
    repeating-linear-gradient(115deg, #0b6b4c 0 12px, #147a58 12px 24px);
  display: flex;
  align-items: flex-end;
  padding: 16px 18px;
  color: white;
}
.pro-banner strong { font-family: var(--serif); letter-spacing: 0.08em; text-transform: uppercase; font-size: 26px; }
.pro-body { padding: 16px 18px 18px; }
.pro-body h3 { margin: 0 0 4px; font-size: 28px; text-transform: uppercase; color: var(--navy); }
.meta { color: var(--muted); font-size: 15px; margin: 0 0 8px; }
.class-block { margin: 2px 0 10px; }
.class-label {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
}
.class-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.class-list li {
  background: var(--sand);
  color: var(--navy);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.chip {
  background: var(--sage-soft);
  color: var(--green-deep);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 600;
}
.chip.teal { background: #e5f6f3; color: var(--teal); }
.chip.warn { background: #f8ece7; color: var(--burgundy); }
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.status svg, .success svg { width: 18px; height: 18px; flex: none; }
.status.clear { background: #e5f6ea; color: #0b6b3a; }
.status.other { background: #f8ece7; color: var(--burgundy); }
.license-row { max-width: 640px; margin: 0 0 18px; }
.pager { display: flex; gap: 12px; align-items: center; margin-top: 16px; }
.success svg { display: inline-block; vertical-align: -3px; color: var(--green); }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.dots button {
  width: 8px; height: 8px; border-radius: 99px; border: 0; background: var(--sand); padding: 0; cursor: pointer;
}
.dots button.on { background: var(--green); width: 22px; }

.section { padding: 56px 0; }
.section h2 {
  font-size: clamp(32px, 4vw, 44px);
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 8px;
}
.sub { margin: 0 0 22px; color: var(--muted); max-width: 40rem; }
.measure-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.measure-card {
  background: white;
  border-radius: 16px;
  padding: 16px 12px 14px;
  text-align: center;
  text-decoration: none;
  color: var(--navy);
  border: 1px solid transparent;
  box-shadow: 0 1px 0 rgba(17, 37, 65, 0.04);
}
.measure-card:hover { border-color: var(--sage); transform: translateY(-2px); }
.icon-bubble {
  width: 46px; height: 46px; margin: 0 auto 8px;
  border-radius: 14px;
  background: var(--sage-soft);
  color: var(--green);
  display: grid; place-items: center;
}
.icon-bubble svg { width: 24px; height: 24px; }
.measure-card span { display: block; font-weight: 700; font-size: 15px; line-height: 1.25; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}
.panel {
  background: white;
  border-radius: 18px;
  padding: 22px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
}
a.panel:hover { border-color: var(--green); }
.panel h3 { margin: 0 0 6px; text-transform: uppercase; font-size: 28px; color: var(--navy); }
.panel p { margin: 0 0 12px; }

.band {
  background: var(--green);
  color: white;
}
.band h2, .band h3 { color: white; }
.band .sub { color: rgba(255,255,255,0.82); }
.band .panel { color: var(--ink); }
.band .panel h3 { color: var(--navy); }

.page-hero { padding: 36px 0 8px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 54px); }
.filters {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 10px;
  margin: 8px 0 18px;
}
.list { display: grid; gap: 12px; }
.list-card {
  background: white;
  border-radius: 18px;
  padding: 18px 18px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 24px;
  border: 1px solid var(--line);
}
.list-card h3 { margin: 0; text-transform: uppercase; font-size: 28px; color: var(--navy); }
.actions { display: flex; flex-direction: column; gap: 8px; min-width: 180px; }
.count { font-family: var(--serif); letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); font-weight: 700; }

.article { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 22px; align-items: start; }
.prose { background: white; border-radius: 18px; padding: 22px; }
.prose h2 { font-size: 26px; }
.side-stack { display: grid; gap: 12px; }

.quiz { display: grid; gap: 12px; }
.q {
  background: white;
  border-radius: 16px;
  padding: 16px 18px;
}
.q p { margin: 0 0 10px; font-weight: 700; }
.q label { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; cursor: pointer; }
.result-list { margin: 0; padding-left: 18px; }
.result-list a { font-weight: 700; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.wide { grid-column: 1 / -1; }
.field span { font-weight: 700; font-size: 15px; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.check-grid.scroll { max-height: 240px; overflow: auto; padding-right: 8px; }
.check-grid label { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.success {
  background: var(--sage-soft);
  border-radius: 18px;
  padding: 28px;
}

.site-footer { background: var(--navy); color: #d5dee8; padding: 42px 0 18px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 24px; }
.site-footer h2 { color: white; font-size: 18px; margin: 0 0 8px; }
.site-footer a { color: #d5dee8; text-decoration: none; display: block; padding: 4px 0; }
.site-footer a:hover { color: var(--gold); }
.legal { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 28px; padding-top: 14px; font-size: 14px; color: #b7c3d0; }
.fine { font-size: 14px; color: var(--muted); }

.modal-back {
  position: fixed; inset: 0; background: rgba(17, 37, 65, 0.55);
  display: grid; place-items: center; padding: 24px; z-index: 40;
}
.modal {
  background: white; border-radius: 18px; padding: 22px; width: min(460px, 100%);
  box-shadow: var(--shadow);
}
.contact-methods { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.contact-methods li { display: grid; gap: 2px; }
.contact-methods span { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); }
.contact-methods a { color: var(--navy); font-weight: 700; }

.empty {
  background: white; border-radius: 16px; padding: 28px; text-align: center;
}

@media (max-width: 980px) {
  .hero-grid, .article, .split, .footer-grid, .form-grid, .list-card { grid-template-columns: 1fr; }
  .measure-grid { grid-template-columns: repeat(3, 1fr); }
  .filters { grid-template-columns: 1fr; }
  .spotlight { min-height: 0; }
  .actions { min-width: 0; }
  .nav-toggle { display: inline-flex; margin-left: auto; background: transparent; color: white; border: 1px solid rgba(255,255,255,0.35); border-radius: 999px; padding: 8px 12px; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--green-deep); flex-direction: column; align-items: stretch; padding: 10px; }
  .nav.open { display: flex; }
  .header-inner { flex-wrap: wrap; position: relative; }
  .menu-panel { position: static; box-shadow: none; min-width: 0; }
}
@media (max-width: 760px) {
  .measure-grid, .check-grid { grid-template-columns: 1fr 1fr; }
  .search-row { flex-direction: column; }
  .search-row .btn { width: 100%; }
}
