/* JDM Superior. Plain CSS, no external fonts or requests.
   The one bold element is the "Agency details" panel: a policy-declarations
   style block that puts every verifiable fact in one place. */

:root {
  --spruce: #1f5446;
  --spruce-deep: #163e34;
  --ink: #22332e;
  --muted: #51635d;
  --sage: #eaf1ed;
  --rule: #c8d5ce;
  --field: #8fa39b;
  --paper: #ffffff;
  --jacaranda: #6b57a5;
  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif;
  --wrap: 72rem;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--spruce-deep);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.25rem); letter-spacing: -0.01em; max-width: 20ch; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }

a { color: var(--spruce); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--jacaranda); }
:focus-visible { outline: 3px solid var(--jacaranda); outline-offset: 2px; }

address { font-style: normal; }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.prose { max-width: 68ch; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--paper); padding: 0.5rem 1rem; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); }
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1rem;
}
.wordmark {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--spruce-deep);
  text-decoration: none;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
}
.site-nav a { color: var(--ink); font-size: 1rem; text-decoration: none; padding-block: 0.25rem; }
.site-nav a:hover { color: var(--spruce); }
.site-nav a[aria-current="page"] { color: var(--spruce); box-shadow: inset 0 -2px 0 var(--spruce); }
.site-nav a.btn-primary,
.site-nav a.btn-primary:hover { color: #fff; box-shadow: none; }

/* Buttons */
.btn {
  display: inline-block;
  font: 600 1rem/1.2 var(--sans);
  padding: 0.85rem 1.3rem;
  border: 2px solid var(--spruce);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
}
.btn-small { padding: 0.5rem 0.9rem; }
.btn-primary { background: var(--spruce); color: #fff; }
.btn-primary:hover { background: var(--spruce-deep); border-color: var(--spruce-deep); color: #fff; }
.btn-secondary { background: transparent; color: var(--spruce); }
.btn-secondary:hover { background: var(--sage); color: var(--spruce-deep); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* Hero */
.hero { background: var(--sage); border-bottom: 1px solid var(--rule); padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero-grid { display: grid; gap: 2.5rem; align-items: start; }
.lede { font-size: 1.25rem; max-width: 36rem; }

/* Agency details panel: the policy declarations page */
.declarations {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 6px solid var(--spruce);
  padding: 1.5rem 1.5rem 0.75rem;
}
.declarations h2 { font-size: 1.3rem; margin-bottom: 0.75rem; }

.facts { margin: 0; }
.facts .row {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 0.25rem 1rem;
  padding-block: 0.7rem;
  border-top: 1px dashed var(--rule);
}
.facts dt { color: var(--muted); font-size: 0.95rem; }
.facts dd { margin: 0; font-family: var(--serif); font-size: 1.05rem; overflow-wrap: anywhere; }
.facts-wide { max-width: 44rem; }

/* Sections */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.page-head { background: var(--sage); border-bottom: 1px solid var(--rule); padding-block: clamp(2rem, 5vw, 3.5rem); }
.page-head h1 { max-width: none; }
.page-head p { max-width: 42rem; font-size: 1.2rem; margin: 0; }
.updated { color: var(--muted); }

.split { display: grid; gap: 2.5rem; }

/* Products */
.product-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; }
.product-list li { border-left: 3px solid var(--spruce); padding-left: 1.1rem; }
.product-list h3 a { color: inherit; text-decoration: none; }
.product-list h3 a:hover { color: var(--jacaranda); text-decoration: underline; }
.product-list p { margin: 0; color: var(--muted); }

.products { display: grid; gap: 2.5rem; }
.product { max-width: 68ch; scroll-margin-top: 1.5rem; }
.product p { margin: 0; }

/* Steps: a real sequence, so it is numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--spruce);
  color: #fff;
  font: 700 1.05rem/1 var(--serif);
}
.steps p { margin: 0; color: var(--muted); }

/* Notices */
.notice, .cta-band {
  max-width: 46rem;
  background: var(--sage);
  border-left: 4px solid var(--jacaranda);
  padding: 1.5rem 1.75rem;
}
.notice p:last-child, .cta-band p:last-child { margin-bottom: 0; }
.cta-band { border-left-color: var(--spruce); }
.side-note { max-width: 30rem; }

/* Forms */
.form { display: grid; gap: 1.1rem; max-width: 38rem; }
.field { display: grid; gap: 0.35rem; }
.field-pair { display: grid; gap: 1.1rem; }
label { font-size: 1rem; font-weight: 600; }
.hint { color: var(--muted); font-size: 0.95rem; font-weight: 400; }
input, select, textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--field);
  border-radius: var(--radius);
  padding: 0.7rem 0.8rem;
}
textarea { min-height: 8rem; resize: vertical; }
.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 1rem;
  background: var(--sage);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.consent input { width: 1.25rem; height: 1.25rem; margin: 0.2rem 0 0; accent-color: var(--spruce); }
.consent label { font-size: 0.95rem; font-weight: 400; line-height: 1.5; }
.form .hint { margin: 0; }
.hidden-field { position: absolute; left: -9999px; }

/* Legal documents */
.doc { max-width: 70ch; }
.doc h2 { margin-top: 2.25rem; font-size: 1.45rem; scroll-margin-top: 1.5rem; }
.doc h3 { margin-top: 1.5rem; font-size: 1.15rem; }
.doc ul { padding-left: 1.25rem; }

/* Team */
.team-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.team-list li { display: grid; gap: 0.1rem; border-left: 3px solid var(--spruce); padding-left: 1rem; }
.team-list span { color: var(--muted); font-size: 1rem; }

.link-list { list-style: none; padding: 0; display: grid; gap: 0.5rem; }

/* Footer */
.site-footer { background: var(--spruce-deep); color: #e6eee9; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #ddd3f3; }
.footer-grid { display: grid; gap: 2rem; padding-block: 3rem 2rem; }
.site-footer h2 { color: #fff; font-size: 1.05rem; margin-bottom: 0.6rem; }
.site-footer p { margin: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer dl { margin: 0; }
.site-footer .row { margin-bottom: 0.5rem; }
.site-footer dt { color: #b9ccc3; font-size: 0.9rem; }
.site-footer dd { margin: 0; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, 0.18); padding-block: 1.25rem 2rem; font-size: 0.95rem; }

/* Draft builds only: unfilled site.json values */
mark.todo { background: #ffe55c; color: #000; padding: 0 0.2em; }

/* Wider screens */
@media (min-width: 560px) {
  .field-pair { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 760px) {
  .product-list { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .split-form { grid-template-columns: 1.4fr 1fr; }
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 4rem; }
}
@media (max-width: 420px) {
  .facts .row { grid-template-columns: 1fr; }
}
