/* ==========================================================================
   NARCU design system
   Palette: harbor blue (structure), spring green (actions), sea-glass (surfaces)
   Type: Bricolage Grotesque (headings) + Public Sans (body)
   ========================================================================== */

:root {
  --blue-900: #0a2f4a;
  --blue-800: #0c3d5f;
  --blue-700: #0f4c75;
  --blue-500: #2b7bb9;
  --blue-100: #dbe9f4;
  --green-700: #17795a;
  --green-800: #116148;
  --green-500: #2fa876;
  --green-300: #4cc38f;
  --sea: #d5ebe4;
  --mist: #eef6f4;
  --ink: #17262f;
  --muted: #4f626d;
  --line: #d3dfe2;
  --white: #fff;
  --warn-bg: #fdf3dc;
  --warn-ink: #6b4a00;
  --error-bg: #fdecea;
  --error-ink: #8a1c13;
  --error-line: #c0392b;

  --font-head: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 8px;
  --radius-lg: 14px;
  --maxw: 1120px;
  --focus: 0 0 0 3px #fff, 0 0 0 6px var(--blue-500);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img, svg { max-width: 100%; }
a { color: var(--blue-700); text-underline-offset: 0.18em; }
a:hover { color: var(--blue-900); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
main:focus { outline: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--blue-900);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.25rem, 4.6vw + 0.5rem, 3.75rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.65rem, 2.2vw + 0.8rem, 2.35rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { padding-left: 1.2em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; background: var(--mist); padding: 0.1em 0.35em; border-radius: 4px; }
pre { background: var(--mist); padding: 0.9rem 1rem; border-radius: var(--radius); overflow: auto; font-size: 0.85rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--blue-900); color: #fff; padding: 0.7rem 1rem; border-radius: var(--radius); }
.skip-link:focus { top: 0.75rem; box-shadow: var(--focus); }

/* ---------- Demo strip + header ---------- */
.demo-strip { background: var(--blue-900); color: #dbe9f4; font-size: 0.875rem; }
.demo-strip .container { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; justify-content: space-between; padding-top: 0.45rem; padding-bottom: 0.45rem; }
.demo-strip a { color: #fff; font-weight: 600; }
.demo-strip strong { color: var(--green-300); }

.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--blue-900); }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; letter-spacing: 0.01em; }
.brand-light, .brand-light:hover { color: #fff; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.nav-list { display: flex; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.nav-list a { display: block; padding: 0.55rem 0.7rem; text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.97rem; border-radius: var(--radius); }
.nav-list a:hover { background: var(--mist); color: var(--blue-900); }
.nav-list a[aria-current="page"] { color: var(--blue-900); font-weight: 700; box-shadow: inset 0 -3px 0 var(--green-500); border-radius: 0; }
.nav-cta { display: flex; gap: 0.5rem; }
.nav-toggle { display: none; }

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; background: #fff; border: 1.5px solid var(--blue-700); color: var(--blue-700); font: 600 0.95rem var(--font-body); border-radius: var(--radius); cursor: pointer; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 0.5rem 1.25rem 1.25rem; flex-direction: column; align-items: stretch; gap: 1rem; box-shadow: 0 12px 24px rgba(10, 47, 74, 0.12); }
  .js .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; }
  .nav-list a { padding: 0.8rem 0.4rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-list a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--green-500); padding-left: 0.9rem; }
  .nav-cta { flex-direction: column; }
  .nav-cta .btn { width: 100%; }
  .site-header { position: relative; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 46px; padding: 0.65rem 1.4rem; border-radius: var(--radius); border: 2px solid transparent; font: 700 1rem var(--font-body); text-decoration: none; cursor: pointer; transition: background-color 0.15s, color 0.15s, border-color 0.15s; line-height: 1.2; }
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-800); color: #fff; }
.btn-ghost { background: transparent; color: var(--blue-700); border-color: var(--blue-700); }
.btn-ghost:hover { background: var(--blue-700); color: #fff; }
.btn-sm { min-height: 40px; padding: 0.4rem 1rem; font-size: 0.93rem; }
.btn-block { display: flex; width: 100%; margin-bottom: 0.65rem; }
.btn-light { background: #fff; color: var(--blue-900); }
.btn-light:hover { background: var(--sea); color: var(--blue-900); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " \203A"; }
.link-arrow:hover { text-decoration: underline; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section.alt { background: var(--mist); }
.section.tight { padding: 2.5rem 0; }
.section-head { margin-bottom: 2rem; }
.section-head p { color: var(--muted); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; align-items: start; }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
@media (max-width: 860px) {
  .section { padding: 2.75rem 0; }
  .two-col, .three-col { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Hero (home): contour lines + ZIP eligibility check ---------- */
.hero { position: relative; background-color: var(--blue-900); color: #e8f1f7; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 560'%3E%3Cg fill='none' stroke='white' stroke-opacity='.13' stroke-width='1.4'%3E%3Cpath id='b' d='M400 70C540 40 690 130 720 270S620 480 440 500 120 450 80 300 250 100 400 70Z'/%3E%3Cpath d='M400 70C540 40 690 130 720 270S620 480 440 500 120 450 80 300 250 100 400 70Z' transform='translate(400 280) scale(.86) translate(-400 -280)'/%3E%3Cpath d='M400 70C540 40 690 130 720 270S620 480 440 500 120 450 80 300 250 100 400 70Z' transform='translate(400 280) scale(.72) translate(-400 -280)'/%3E%3Cpath d='M400 70C540 40 690 130 720 270S620 480 440 500 120 450 80 300 250 100 400 70Z' transform='translate(400 280) scale(.58) translate(-400 -280)'/%3E%3Cpath d='M400 70C540 40 690 130 720 270S620 480 440 500 120 450 80 300 250 100 400 70Z' transform='translate(400 280) scale(.44) translate(-400 -280)'/%3E%3Cpath d='M400 70C540 40 690 130 720 270S620 480 440 500 120 450 80 300 250 100 400 70Z' transform='translate(400 280) scale(.3) translate(-400 -280)'/%3E%3Cpath d='M400 70C540 40 690 130 720 270S620 480 440 500 120 450 80 300 250 100 400 70Z' transform='translate(400 280) scale(1.16) translate(-400 -280)'/%3E%3Cpath d='M400 70C540 40 690 130 720 270S620 480 440 500 120 450 80 300 250 100 400 70Z' transform='translate(400 280) scale(1.34) translate(-400 -280)'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 82% 40%; background-size: 980px auto;
}
.hero .container { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 3.5rem; align-items: center; padding-top: 4.5rem; padding-bottom: 4.5rem; }
.hero h1 { color: #fff; max-width: 14ch; margin-bottom: 0.4em; }
.hero .lede { font-size: 1.25rem; color: #cfe1ee; max-width: 34em; }
.hero-note { font-size: 0.95rem; color: #a9c4d6; margin-top: 1.25rem; }
.hero-note a { color: #fff; }

.check-panel { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: 0 18px 40px rgba(3, 20, 34, 0.35); }
.check-panel h2 { font-size: 1.5rem; margin-bottom: 0.35rem; }
.check-panel p { color: var(--muted); font-size: 0.97rem; }
.inline-form { display: flex; gap: 0.6rem; align-items: stretch; margin-top: 0.75rem; }
.inline-form input[type="text"], .inline-form input[type="search"], .inline-form select { flex: 1; min-width: 0; }
.eligibility-result { margin-top: 1rem; padding: 0.85rem 1rem; border-radius: var(--radius); font-size: 0.97rem; border-left: 5px solid var(--line); background: var(--mist); }
.eligibility-result[hidden] { display: none; }
.eligibility-result[data-eligible="true"] { border-left-color: var(--green-500); background: #e6f6ee; }
.eligibility-result[data-eligible="false"] { border-left-color: #d9a21b; background: var(--warn-bg); }
.eligibility-result[data-valid="false"] { border-left-color: var(--error-line); background: var(--error-bg); }
.eligibility-result p { margin: 0 0 0.5em; }
.eligibility-result p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 2rem; padding-top: 3rem; padding-bottom: 3rem; }
  .hero::before { background-position: 60% 20%; background-size: 700px auto; }
}

/* ---------- Page heroes (interior) ---------- */
.page-hero { background: var(--sea); padding: 3.25rem 0 2.75rem; position: relative; overflow: hidden; }
.page-hero.compact { padding: 2.25rem 0 2rem; }
.page-hero h1 { font-size: clamp(2rem, 3.6vw + 0.5rem, 3.1rem); margin-bottom: 0.3em; }
.page-hero .lede { font-size: 1.2rem; color: #28464f; max-width: 40em; margin-bottom: 0; }
.breadcrumb { font-size: 0.9rem; margin-bottom: 1rem; color: var(--muted); }
.breadcrumb a { color: var(--blue-700); }

/* ---------- Rate strip ---------- */
.rate-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rate-strip li { border-left: 1px solid var(--line); }
.rate-strip li:first-child { border-left: 0; }
.rate-strip a { display: block; padding: 1.1rem 1.5rem; text-decoration: none; color: var(--ink); height: 100%; }
.rate-strip a:hover { background: var(--mist); }
.rate-strip-rate { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.55rem; color: var(--green-700); line-height: 1.2; }
.rate-strip-label { display: block; font-size: 0.95rem; color: var(--muted); }
.rate-band { border-bottom: 1px solid var(--line); background: #fff; }
.rate-band .container { display: flex; align-items: stretch; gap: 1rem; }
.rate-band .rate-strip { flex: 1; }
.rate-band-note { flex: 0 0 auto; align-self: center; font-size: 0.9rem; color: var(--muted); padding-right: 0.5rem; max-width: 9rem; line-height: 1.35; }
@media (max-width: 860px) {
  .rate-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rate-strip li:nth-child(3) { border-left: 0; }
  .rate-strip li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .rate-band-note { display: none; }
}

/* ---------- Tiles & cards (flat, ruled; not shadowed boxes) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; margin: 0; }
.card { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--blue-500); border-radius: var(--radius); padding: 1.35rem 1.4rem 1.25rem; display: flex; flex-direction: column; }
.card h3 { margin-bottom: 0.35rem; }
.card h3 a { color: var(--blue-900); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p { color: var(--muted); font-size: 0.98rem; flex: 1; }
.product-card:nth-child(3n+2) { border-top-color: var(--green-500); }
.product-card:nth-child(3n+3) { border-top-color: var(--blue-700); }
.card .eyebrow { font-size: 0.93rem; font-weight: 700; color: var(--green-700); margin: 0 0 0.25rem; flex: 0; }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.5rem; }

.path-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.path-item { padding: 1.6rem 1.5rem 1.4rem; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.path-item:first-child { border-left: 0; }
.path-item h3 { margin-bottom: 0.4rem; }
.path-item h3 a { text-decoration: none; color: var(--blue-900); }
.path-item h3 a:hover { text-decoration: underline; }
.path-item p { color: var(--muted); font-size: 0.97rem; flex: 1; }
.path-item:nth-child(odd) { background: #fff; }
.path-item:nth-child(even) { background: var(--mist); }
@media (max-width: 960px) {
  .path-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .path-item:nth-child(3) { border-left: 0; }
  .path-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .path-grid { grid-template-columns: 1fr; }
  .path-item { border-left: 0; border-top: 1px solid var(--line); }
  .path-item:first-child { border-top: 0; }
}

.check-list { list-style: none; padding: 0; margin: 1.25rem 0 2rem; }
.check-list li { position: relative; padding: 0.55rem 0 0.55rem 2rem; border-bottom: 1px solid var(--line); }
.check-list li::before { content: ""; position: absolute; left: 0.2rem; top: 0.95rem; width: 0.95rem; height: 0.5rem; border-left: 3px solid var(--green-500); border-bottom: 3px solid var(--green-500); transform: rotate(-45deg); }
.side-card { background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; position: sticky; top: 6rem; }
.side-card h3 { margin-bottom: 0.4rem; }
.fine-print { font-size: 0.85rem; color: var(--muted); margin-top: 1.5rem; }

/* ---------- Prose / feature rows ---------- */
.feature h3 { margin-bottom: 0.4rem; }
.feature p { color: var(--muted); }
.cta-band { background: var(--green-700); color: #fff; padding: 3.25rem 0; }
.cta-band h2 { color: #fff; margin-bottom: 0.3em; }
.cta-band p { color: #e3f4ec; font-size: 1.1rem; }
.cta-band .container { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; }
.cta-band .hero-actions { margin: 0; }
.stat-row { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.stat-row li { max-width: 14rem; }
.stat-row-stack { flex-direction: column; gap: 1rem; }
.stat-row strong { display: block; font-family: var(--font-head); font-size: 1.4rem; color: var(--blue-900); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 0.5rem 0 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.97rem; background: #fff; }
th, td { text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--blue-900); color: #fff; font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
tbody th { font-weight: 600; color: var(--blue-900); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: #f7fbfa; }
.rate-value { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--green-700); white-space: nowrap; }
.rate-type { font-size: 0.8rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.rates-group { margin-bottom: 1.25rem; }
.rates-group h3 { margin-top: 1.5rem; }
.rates-group h3 a { text-decoration: none; color: var(--blue-900); }
.rates-category { margin-bottom: 3rem; scroll-margin-top: 6rem; }
.rates-category > h2 { border-bottom: 3px solid var(--green-500); padding-bottom: 0.4rem; display: inline-block; }
.page-jump { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.page-jump a { display: inline-block; padding: 0.45rem 0.9rem; border: 1.5px solid var(--blue-700); border-radius: 99px; text-decoration: none; font-weight: 600; font-size: 0.93rem; background: #fff; }
.page-jump a:hover { background: var(--blue-700); color: #fff; }

/* ---------- Forms ---------- */
.form { background: #fff; }
.field { margin-bottom: 1.25rem; }
.field label, .field-label { display: block; font-weight: 600; margin-bottom: 0.35rem; color: var(--blue-900); font-size: 0.97rem; }
.req { color: var(--error-line); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"], input[type="password"], select, textarea {
  width: 100%; min-height: 46px; padding: 0.6rem 0.8rem; font: 400 1rem var(--font-body); color: var(--ink); background: #fff; border: 1.5px solid #8aa0ab; border-radius: var(--radius);
}
textarea { min-height: 8rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(43, 123, 185, 0.35); }
.field-help { font-size: 0.87rem; color: var(--muted); margin: 0.3rem 0 0; }
.field-error { font-size: 0.9rem; color: var(--error-ink); font-weight: 600; margin: 0.35rem 0 0; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--error-line); background: #fffafa; }
.field-checkbox .checkbox-label { display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 400; color: var(--ink); cursor: pointer; }
.field-checkbox input[type="checkbox"] { width: 1.3rem; height: 1.3rem; margin-top: 0.15rem; accent-color: var(--green-700); flex: 0 0 auto; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .inline-form { flex-direction: column; } }

.alert { padding: 0.95rem 1.15rem; border-radius: var(--radius); border-left: 5px solid var(--blue-500); background: var(--blue-100); color: #0c3350; margin: 0 0 1.5rem; font-size: 0.97rem; }
.alert ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.alert-error { background: var(--error-bg); border-left-color: var(--error-line); color: var(--error-ink); }
.alert-error a { color: var(--error-ink); font-weight: 600; }
.alert-success { background: #e6f6ee; border-left-color: var(--green-500); color: #0b4a35; }
.alert-info { background: var(--warn-bg); border-left-color: #d9a21b; color: var(--warn-ink); }

/* ---------- Locations ---------- */
.locator-form { display: grid; grid-template-columns: 1fr 200px auto; gap: 0.75rem; align-items: end; margin-bottom: 1.5rem; }
.locator-form label { display: block; font-weight: 600; margin-bottom: 0.3rem; color: var(--blue-900); font-size: 0.95rem; }
@media (max-width: 720px) { .locator-form { grid-template-columns: 1fr; } }
.branch-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.branch-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 2rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.branch-item h3 { margin-bottom: 0.3rem; font-size: 1.2rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.branch-item address { font-style: normal; margin-bottom: 0.4rem; }
.branch-item p { margin: 0 0 0.35rem; }
@media (max-width: 640px) { .branch-item { grid-template-columns: 1fr; } }
.tag { display: inline-block; font: 600 0.78rem var(--font-body); padding: 0.15rem 0.6rem; border-radius: 99px; background: var(--blue-100); color: var(--blue-800); vertical-align: middle; }
.tag-atm { background: var(--sea); color: var(--green-800); }
.tag-active { background: #e1f4ea; color: var(--green-800); }
.tag-locked { background: var(--error-bg); color: var(--error-ink); }
.tag-password_expired { background: var(--warn-bg); color: var(--warn-ink); }
.empty-state { padding: 1.5rem; border: 1.5px dashed #9bb3bd; border-radius: var(--radius); background: var(--mist); color: var(--muted); }
.empty-state p { margin-bottom: 0.4rem; }

/* ---------- Confirmation ---------- */
.confirmation { text-align: left; }
.success-mark { width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--green-700); color: #fff; display: grid; place-items: center; font-size: 1.8rem; margin-bottom: 1.25rem; }
.summary-list { margin: 1.5rem 0; border: 1px solid var(--line); border-radius: var(--radius); }
.summary-list div { display: flex; gap: 1rem; padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--line); }
.summary-list div:last-child { border-bottom: 0; }
.summary-list dt { flex: 0 0 11rem; color: var(--muted); }
.summary-list dd { margin: 0; }

/* ---------- Calculators ---------- */
.calc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem; margin-bottom: 2rem; scroll-margin-top: 6rem; }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (max-width: 760px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-result { background: var(--mist); border-radius: var(--radius); padding: 1.25rem 1.4rem; }
.calc-result .big { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: var(--green-700); line-height: 1.1; margin: 0.15rem 0 0.75rem; display: block; }
.calc-result dl { margin: 0; }
.calc-result dl div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; border-top: 1px solid var(--line); }
.calc-result dt { color: var(--muted); }
.calc-result dd { margin: 0; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 0.2rem 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--blue-900); padding: 1rem 2rem 1rem 0; list-style: none; position: relative; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.75rem; font-size: 1.5rem; font-weight: 400; color: var(--green-700); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-bottom: 0.5rem; }

/* ---------- Demo hub ---------- */
.data-table th, .data-table td { font-size: 0.9rem; }
.data-table details summary { cursor: pointer; color: var(--blue-700); font-weight: 600; }
.reset-panel { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.btn-danger { background: #fff; color: var(--error-ink); border-color: var(--error-line); }
.btn-danger:hover { background: var(--error-line); color: #fff; }
.count-row { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.count-row li { color: var(--muted); }
.count-row strong { color: var(--blue-900); font-size: 1.2rem; font-family: var(--font-head); }
.api-list code { white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-900); color: #c3d6e3; padding: 3.5rem 0 2rem; font-size: 0.97rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-heading { font: 700 1.05rem var(--font-head); color: #fff; margin-bottom: 0.75rem; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.footer-about p { max-width: 28ch; margin-top: 0.9rem; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, 0.18); margin-top: 2.5rem; padding-top: 1.5rem; font-size: 0.85rem; color: #a9c4d6; }
.footer-legal p { max-width: 80ch; }
.footer-legal strong { color: #fff; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Motion: one deliberate moment, and nothing for people who opt out ---------- */
@media (prefers-reduced-motion: no-preference) {
  .check-panel { animation: panel-in 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  @keyframes panel-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

@media print {
  .demo-strip, .site-header, .site-footer, .hero::before { display: none; }
}

/* ---------- Inactive controls (public site): visible, focusable, announced as unavailable, do nothing ---------- */
.btn[aria-disabled="true"], .btn.is-disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary[aria-disabled="true"]:hover { background: var(--green-700); color: #fff; }
.btn-ghost[aria-disabled="true"]:hover { background: transparent; color: var(--blue-700); }
.btn-light[aria-disabled="true"]:hover { background: #fff; color: var(--blue-900); }
.btn-ghost-light[aria-disabled="true"]:hover { background: transparent; color: #fff; }
.link-disabled { color: var(--muted); cursor: not-allowed; }
.hero .link-disabled, .site-footer .link-disabled { color: inherit; opacity: 0.7; }
.link-disabled .soon { font-size: 0.85em; }
.tag-fictional { background: var(--warn-bg); color: var(--warn-ink); }
.soon-credit { margin-top: 2rem; }
[hidden] { display: none !important; }
