/* Canyon Consult Lab explainer site. Colors and sizes live in :root. */
:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --ink: #152238;
  --ink-soft: #44506a;
  --line: #e2ddd2;
  --accent: #0e5a4b;
  --accent-strong: #0a4539;
  --accent-tint: #e9f2ee;
  --on-accent: #ffffff;
  --caution-tint: #fbf2df;
  --caution-line: #c99a2e;
  --dark: #152238;
  --on-dark: #ffffff;
  --on-dark-soft: #cfd6e4;
  --focus: #1d6fd6;
  --radius: 12px;
  --wrap: 1080px;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: Georgia, "Iowan Old Style", "Times New Roman", serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.3rem); line-height: 1.1; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 760px; }

section { padding-block: clamp(56px, 8vw, 92px); scroll-margin-top: 72px; }
.band { background: var(--surface); border-block: 1px solid var(--line); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 20;
  background: var(--dark); color: var(--on-dark); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: var(--on-dark); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.05rem; white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-mark rect { fill: var(--accent); }
.brand-mark path { fill: var(--on-accent); }
.site-nav { display: none; margin-left: auto; gap: 26px; }
.site-nav a {
  color: var(--ink-soft); text-decoration: none; font-size: 1rem;
  min-height: 44px; display: inline-flex; align-items: center;
}
.site-nav a:hover { color: var(--ink); text-decoration: underline; }
.header-row .btn { margin-left: auto; }
@media (min-width: 880px) {
  .site-nav { display: flex; }
  .header-row .btn { margin-left: 0; }
}
@media (max-width: 480px) {
  .header-row { gap: 10px; }
  .brand { font-size: 0.98rem; gap: 8px; white-space: normal; line-height: 1.15; }
  .brand-mark { width: 26px; height: 26px; }
  .header-row .btn { padding: 8px 12px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 10px 24px; border-radius: 10px;
  font-weight: 600; font-size: 1.05rem; line-height: 1.2; text-align: center; text-decoration: none;
  border: 2px solid transparent; transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-small { min-height: 44px; padding: 8px 18px; font-size: 1rem; white-space: nowrap; flex: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--on-dark); }
.btn-light { background: var(--on-dark); color: var(--dark); }
.btn-light:hover { background: var(--accent-tint); color: var(--dark); }
.btn-outline-light { border-color: var(--on-dark); color: var(--on-dark); }
.btn-outline-light:hover { background: var(--on-dark); color: var(--dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 1.2em; }
.btn-row.center { justify-content: center; }

/* Hero */
.hero { padding-block: clamp(48px, 8vw, 96px); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 920px) { .hero-grid { grid-template-columns: 1.25fr 0.75fr; gap: 56px; } }
.eyebrow {
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1em;
}
.lead { font-size: 1.25rem; color: var(--ink-soft); max-width: 36em; }
.fine { font-size: 0.98rem; color: var(--ink-soft); }
.note { display: block; font-size: 0.92rem; font-weight: 400; color: var(--ink-soft); }

.glance {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px 8px; box-shadow: 0 10px 30px rgba(21, 34, 56, 0.06);
}
.glance-title {
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.4em;
}
.glance dl { margin: 0; }
.glance dl > div { padding: 14px 0; border-top: 1px solid var(--line); }
.glance dt { font-size: 0.95rem; color: var(--ink-soft); }
.glance dd { margin: 2px 0 0; font-weight: 700; font-size: 1.1rem; }

/* Layout helpers */
.two-col { display: grid; gap: 36px; align-items: start; }
@media (min-width: 880px) { .two-col { grid-template-columns: 1.1fr 0.9fr; gap: 56px; } }
.two-col > *, .hero-grid > * { min-width: 0; }
.section-intro { color: var(--ink-soft); max-width: 44em; margin-bottom: 2em; }
.grid-3 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.band .card { background: var(--bg); }
.card > :last-child { margin-bottom: 0; }
.stat { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; color: var(--accent); margin-bottom: 0.3em; line-height: 1.15; }
.source { font-size: 0.95rem; color: var(--ink-soft); }

.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 34px; margin-bottom: 0.55em; }
.checks li::before {
  content: ""; position: absolute; left: 4px; top: 0.34em; width: 9px; height: 16px;
  border: solid var(--accent); border-width: 0 3px 3px 0; transform: rotate(45deg);
}

/* Steps */
.steps { list-style: none; padding: 0; margin: 0 0 1.4em; counter-reset: step; display: grid; gap: 14px; }
.steps li {
  counter-increment: step; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px 22px 84px;
}
.steps li::before {
  content: counter(step); position: absolute; left: 22px; top: 20px;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
}
@media (max-width: 560px) {
  .steps li { padding: 76px 20px 20px; }
  .steps li::before { left: 20px; top: 18px; }
}
.steps h3 { margin-bottom: 0.3em; }
.steps p { margin: 0; color: var(--ink-soft); }

/* Press */
.press { margin-top: 36px; }
.press ul { list-style: none; padding: 0; }
.press li { padding: 12px 0; border-top: 1px solid var(--line); }
.press li:last-child { border-bottom: 1px solid var(--line); }

/* Callout */
.callout {
  margin-top: 28px; background: var(--caution-tint);
  border-left: 5px solid var(--caution-line); border-radius: var(--radius); padding: 24px 26px;
}
.callout ul { margin-bottom: 0; }
.callout li { margin-bottom: 0.6em; }
.callout li:last-child { margin-bottom: 0; }

/* Table */
.table-wrap { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 22px 12px; }
table { width: 100%; border-collapse: collapse; }
caption { text-align: left; font-weight: 700; padding: 14px 0 10px; }
th, td { text-align: left; vertical-align: top; padding: 14px 0; border-top: 1px solid var(--line); }
thead th { font-size: 0.95rem; color: var(--ink-soft); font-weight: 600; }
tbody th { font-family: var(--font-head); font-size: 1.15rem; color: var(--accent); white-space: nowrap; padding-right: 20px; }
@media (max-width: 420px) {
  .table-wrap { padding-inline: 16px; }
  tbody th { white-space: normal; padding-right: 14px; }
}

/* FAQ */
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 20px 44px 20px 0; font-weight: 700; font-size: 1.12rem; min-height: 44px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 8px; top: 26px; width: 11px; height: 11px;
  border: solid var(--accent); border-width: 0 3px 3px 0; transform: rotate(45deg);
  transition: transform 0.15s ease;
}
details[open] summary::after { transform: rotate(-135deg); top: 31px; }
details p { color: var(--ink-soft); padding-right: 24px; }

/* Closing call to action */
.cta { background: var(--dark); color: var(--on-dark); text-align: center; }
.cta h2 { color: var(--on-dark); }
.cta p { color: var(--on-dark-soft); }
.fine.on-dark, .fine.on-dark a { color: var(--on-dark-soft); }
.fine.on-dark a:hover { color: var(--on-dark); }

/* Footer */
.site-footer { padding-block: 40px; font-size: 0.98rem; color: var(--ink-soft); }
.site-footer p { max-width: 62em; }
