/* Test & Tag Kiwi - design tokens from the website brief, page 5 */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
}

:root {
  --ink: #142431;
  --brand: #0069a8;
  --brand-dark: #00517f;
  --brand-bright: #0093e9;
  --brand-on-dark: #5bc0ff;
  --green: #38a03e;
  --green-light: #4db653;
  --green-tint: #e3f3e1;
  --cloud: #f2f6fa;
  --white: #ffffff;
  --muted: #4e5d6c;
  --border: #c8d3dd;
  --error: #b3261e;
  --warning-bg: #fff6e0;
  --warning-border: #8a5a00;
  --success: #1e6b3a;

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s8: 64px; --s10: 80px; --s12: 96px;
  --max: 1200px;
  --gutter: 20px;
  --radius-btn: 8px;
  --radius-card: 16px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (min-width: 768px) { :root { --gutter: 32px; } }

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; scroll-padding-bottom: 96px; }

[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 28px;
  color: var(--ink);
  background: var(--white);
  overflow-wrap: break-word;
}

body.has-sticky-cta { padding-bottom: 80px; }

img, svg { max-width: 100%; height: auto; }

h1, h2, h3, h4 { margin: 0 0 var(--s2); font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: 34px; line-height: 40px; letter-spacing: -0.02em; }
h2 { font-size: 28px; line-height: 34px; }
h3 { font-size: 22px; line-height: 28px; }
h4 { font-size: 18px; line-height: 28px; }
h2.h3 { font-size: 22px; line-height: 28px; }
@media (min-width: 768px) {
  h1 { font-size: 48px; line-height: 54px; }
  h2 { font-size: 32px; line-height: 38px; }
}

p, ul, ol, dl, table { margin: 0 0 var(--s2); }
ul, ol { padding-left: 1.25em; }
li + li { margin-top: 4px; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .site-footer :focus-visible, .cta-panel :focus-visible { outline-color: var(--brand-on-dark); }

small, .small { font-size: 14px; line-height: 21px; }
.muted { color: var(--muted); }
.lead { font-size: 20px; line-height: 30px; color: var(--ink); }
.prose { max-width: 70ch; }
.prose > * + h2 { margin-top: var(--s5); }
.prose > * + h3 { margin-top: var(--s4); }
.prose img { border-radius: var(--radius-card); }
.prose blockquote { margin: var(--s3) 0; padding: var(--s2) var(--s3); border-left: 4px solid var(--brand); background: var(--cloud); }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; vertical-align: top; }

.visually-hidden {
  position: absolute !important; 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: var(--s2); top: -100px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 12px 16px; border-radius: var(--radius-btn); font-weight: 600;
}
.skip-link:focus { top: var(--s2); color: var(--white); outline-color: var(--brand-on-dark); }

.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  border-radius: var(--radius-btn); border: 2px solid transparent;
  font: 600 18px/22px var(--font); text-decoration: none; text-align: center; cursor: pointer;
}
.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: var(--brand-dark); color: var(--white); }
.btn-secondary { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-secondary:hover { background: var(--cloud); color: var(--brand-dark); border-color: var(--brand-dark); }
.btn-accent { background: var(--green); color: var(--ink); }
.btn-accent:hover { background: var(--green-light); color: var(--ink); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.btn-link { background: none; border: 0; padding: 0; min-height: 44px; color: var(--brand); font: 600 16px/24px var(--font); text-decoration: underline; cursor: pointer; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
@media (max-width: 767px) { .btn-row .btn, .btn-block-mobile { width: 100%; } }

.text-link { font-weight: 600; }
.text-link::after { content: " \2192"; }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--border); position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: 72px; }

.brand { display: inline-flex; align-items: center; min-height: 48px; padding: 6px 0; flex: none; }
.brand picture { display: block; }
.brand-logo { display: block; width: auto; height: 52px; }
@media (min-width: 1024px) { .brand-logo { height: 56px; } }

.nav-toggle {
  display: none; align-items: center; gap: 8px; min-height: 48px; min-width: 48px; padding: 8px 14px;
  background: var(--white); color: var(--ink); border: 2px solid var(--border); border-radius: var(--radius-btn);
  font: 600 16px/20px var(--font); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: "";
}
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }

@media (max-width: 479px) {
  .site-header .brand-logo { height: 44px; }
  .nav-toggle { padding: 8px 12px; }
}
@media (max-width: 359px) {
  .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li + li { margin-top: 0; }
.site-nav a, .site-nav summary {
  display: flex; align-items: center; min-height: 48px; padding: 8px 12px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 17px; border-radius: var(--radius-btn); cursor: pointer;
}
.site-nav a:hover, .site-nav summary:hover { background: var(--cloud); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--brand); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.site-nav summary { list-style: none; gap: 6px; }
.site-nav summary::-webkit-details-marker { display: none; }
.site-nav summary::after {
  content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); margin-left: 4px;
}
.site-nav details[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.site-nav .nav-cta { margin-left: var(--s1); }
.site-nav .nav-cta a { background: var(--brand); color: var(--white); padding: 12px 20px; }
.site-nav .nav-cta a:hover { background: var(--brand-dark); color: var(--white); }
.submenu a { font-weight: 500; }
.submenu .submenu-note { display: block; font-size: 14px; line-height: 20px; color: var(--muted); font-weight: 400; }
.submenu a { flex-direction: column; align-items: flex-start; justify-content: center; }

@media (min-width: 1024px) {
  .site-nav > ul { display: flex; align-items: center; gap: 4px; }
  .site-nav .has-sub { position: relative; }
  .submenu {
    position: absolute; top: calc(100% + 8px); left: 0; width: 340px; padding: var(--s1);
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card);
    box-shadow: 0 8px 24px rgba(20, 45, 59, 0.08);
  }
}

@media (max-width: 1023px) {
  .js .nav-toggle { display: inline-flex; }
  .site-nav { width: 100%; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .header-inner { flex-wrap: wrap; }
  .site-nav > ul { padding: var(--s1) 0 var(--s2); border-top: 1px solid var(--border); }
  .no-js .site-nav > ul, html:not(.js) .site-nav > ul { display: flex; flex-wrap: wrap; border-top: 0; }
  .submenu { padding-left: var(--s2); }
  .site-nav .nav-cta { margin: var(--s1) 0 0; }
  .site-nav .nav-cta a { justify-content: center; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding-top: var(--s2); font-size: 15px; line-height: 22px; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumb li + li { margin-top: 0; }
.breadcrumb li + li::before { content: "/"; color: var(--muted); margin-right: 4px; }
.breadcrumb [aria-current] { color: var(--muted); }
.breadcrumb a { display: inline-block; padding: 4px 0; }

/* ---------- Sections ---------- */
.section { padding: var(--s8) 0; }
.section-tight { padding: var(--s6) 0; }
.section-cloud { background: var(--cloud); }
.section-head { max-width: 70ch; margin-bottom: var(--s5); }
.section-head p { color: var(--muted); }
.eyebrow { display: inline-block; font-size: 14px; line-height: 20px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); margin-bottom: var(--s1); }
@media (min-width: 1024px) { .section { padding: var(--s12) 0; } }

/* ---------- Hero ---------- */
.hero { padding: var(--s6) 0 var(--s8); }
.hero-grid { display: grid; gap: var(--s5); align-items: center; }
.hero h1 { max-width: 18ch; }
.hero .lead { max-width: 56ch; }
.hero-photo { position: relative; max-width: 720px; }
.hero-photo img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 30% 75%;
  border-radius: var(--radius-card); background: var(--cloud);
}
.hero-badge {
  position: relative; margin: -20px var(--s2) 0;
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  font-size: 15px; line-height: 20px; color: var(--muted);
}
.hero-badge strong { display: block; color: var(--ink); font-size: 16px; }
.hero-badge-tick {
  flex: none; width: 32px; height: 32px; border-radius: 50%; background-color: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.5l3 3 6-7' fill='none' stroke='%23FFFFFF' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 18px;
}
@media (min-width: 1024px) {
  .hero-photo img { aspect-ratio: 4 / 5; object-position: 22% 50%; }
  .hero-badge { position: absolute; margin: 0; left: calc(-1 * var(--s5)); bottom: calc(-1 * var(--s4)); max-width: 300px; }
}
@media (min-width: 1024px) {
  .hero { padding: var(--s10) 0 var(--s12); }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--s8); }
}

.page-hero { padding: var(--s5) 0 var(--s6); border-bottom: 1px solid var(--border); }
.page-hero h1 { max-width: 22ch; }
.page-hero .lead { max-width: 62ch; }

/* ---------- Grids and cards ---------- */
.grid { display: grid; gap: var(--s3); }
@media (min-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-split { grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: start; }
}

.card {
  display: flex; flex-direction: column; padding: var(--s4); background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-card);
}
.card > :last-child { margin-bottom: 0; }
.card h3 { margin-bottom: var(--s1); }
.card .card-link { margin-top: auto; padding-top: var(--s2); }
.card-icon, .card > svg:first-child { width: 44px; height: 44px; margin-bottom: var(--s2); flex: none; }
.scope-note { font-size: 15px; line-height: 22px; color: var(--muted); border-top: 1px solid var(--border); padding-top: var(--s2); margin-top: var(--s1); }
.section-cloud .card { border-color: #dce4ec; }

.benefit { display: flex; gap: var(--s2); }
.benefit svg { flex: none; width: 32px; height: 32px; }
.benefit h3 { font-size: 19px; line-height: 26px; margin-bottom: 4px; }
.benefit p { color: var(--muted); margin: 0; }

/* ---------- Process ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: var(--s3); }
.steps > li { counter-increment: step; position: relative; padding-left: 64px; margin: 0; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.steps h3 { font-size: 19px; line-height: 26px; margin-bottom: 4px; padding-top: 8px; }
.steps p { margin: 0; color: var(--muted); }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.disclaimer { font-size: 15px; line-height: 22px; color: var(--muted); max-width: 75ch; margin-top: var(--s4); }

/* ---------- Lists ---------- */
.check-list, .cross-list { list-style: none; padding: 0; }
.check-list li, .cross-list li { position: relative; padding-left: 36px; }
.check-list li + li, .cross-list li + li { margin-top: var(--s1); }
.check-list li::before, .cross-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background-repeat: no-repeat; background-position: center; background-size: 14px;
}
.check-list li::before {
  background-color: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.5l3 3 6-7' fill='none' stroke='%23FFFFFF' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.cross-list li::before {
  background-color: #e3e9ef;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 4l6 6M10 4l-6 6' fill='none' stroke='%23142431' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.list-label { font-weight: 700; margin-bottom: var(--s1); }

/* ---------- Notices ---------- */
.notice {
  display: flex; gap: var(--s2); padding: var(--s3); border-radius: var(--radius-card);
  border: 2px solid var(--warning-border); background: var(--warning-bg); margin: 0 0 var(--s3);
}
.notice svg { flex: none; width: 28px; height: 28px; color: var(--warning-border); }
.notice h2, .notice h3 { font-size: 20px; line-height: 28px; margin-bottom: 4px; }
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }
.notice-info { border-color: var(--brand); background: #eaf3fa; }
.notice-info svg { color: var(--brand); }
.notice-error { border-color: var(--error); background: #fdf0ef; }
.notice-error svg { color: var(--error); }
.notice-success { border-color: var(--success); background: #eef7f0; }
.notice-success svg { color: var(--success); }
.draft-banner { background: var(--green-tint); color: var(--ink); padding: 12px 0; font-size: 15px; line-height: 22px; font-weight: 600; }

/* ---------- Pricing ---------- */
.price-card { position: relative; }
.price-card .price { font-size: 36px; line-height: 44px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.price-card .price-unit { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-card .price-basis { color: var(--muted); font-size: 15px; line-height: 22px; }
.price-card .tax { display: block; font-size: 14px; line-height: 21px; color: var(--muted); margin-top: var(--s1); }
.tax { color: var(--muted); font-size: 0.85em; white-space: normal; }
.qualify-banner { padding: var(--s3); background: var(--cloud); border-left: 6px solid var(--brand); border-radius: 0 var(--radius-card) var(--radius-card) 0; margin-bottom: var(--s5); }
.qualify-banner p:last-child { margin: 0; }

.rate-table { width: 100%; border-collapse: collapse; margin-bottom: var(--s3); }
.rate-table caption { text-align: left; font-weight: 700; padding-bottom: var(--s1); }
.rate-table th, .rate-table td { padding: 14px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.rate-table thead th { font-size: 15px; color: var(--muted); font-weight: 600; border-bottom: 2px solid var(--ink); }
.rate-table td.num { white-space: nowrap; font-weight: 600; }
@media (max-width: 767px) {
  .rate-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rate-table tr { display: block; padding: var(--s2) 0; border-bottom: 1px solid var(--border); }
  .rate-table th, .rate-table td { display: block; padding: 2px 0; border: 0; }
  .rate-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--muted); }
}

.example { padding: var(--s3); border: 1px dashed var(--border); border-radius: var(--radius-card); background: var(--white); }
.example h3 { font-size: 18px; line-height: 26px; }
.example .calc { font-variant-numeric: tabular-nums; }
.example p:last-child { margin: 0; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s2);
  min-height: 56px; padding: var(--s2) 0; cursor: pointer; font-weight: 600; font-size: 19px; line-height: 26px; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--cloud);
  display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 500; color: var(--brand);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-answer { padding: 0 0 var(--s3); max-width: 70ch; }
.faq-item .faq-answer p:last-child { margin: 0; }

/* ---------- CTA panel ---------- */
.cta-panel { background: var(--ink); color: var(--white); border-radius: var(--radius-card); padding: var(--s5) var(--s4); }
.cta-panel h2 { color: var(--white); }
.cta-panel p { color: #d2dce6; max-width: 60ch; }
.cta-panel a:not(.btn) { color: var(--brand-on-dark); }
@media (min-width: 1024px) {
  .cta-panel { padding: var(--s8); display: grid; grid-template-columns: 1fr auto; gap: var(--s5); align-items: center; }
  .cta-panel .btn-row { margin-top: 0; }
}

/* ---------- Report preview ---------- */
.report-mock {
  position: relative; overflow: hidden; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: var(--s3); font-size: 14px; line-height: 20px;
  box-shadow: 0 2px 0 rgba(20, 45, 59, 0.04);
}
.report-mock::after {
  content: "SAMPLE - NOT A TEST RECORD"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  transform: rotate(-18deg); font-weight: 800; font-size: 28px; letter-spacing: 0.08em; color: rgba(179, 38, 30, 0.14);
  pointer-events: none; white-space: nowrap;
}
.report-mock-head { display: flex; justify-content: space-between; gap: var(--s2); border-bottom: 2px solid var(--ink); padding-bottom: var(--s1); margin-bottom: var(--s2); }
.report-mock-head strong { font-size: 16px; }
.report-mock table { width: 100%; border-collapse: collapse; }
.report-mock th, .report-mock td { padding: 6px 8px; text-align: left; border-bottom: 1px solid #e1e8ee; }
.report-mock th { color: var(--muted); font-weight: 600; font-size: 13px; }
.report-totals { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s1); margin-bottom: var(--s2); }
@media (min-width: 600px) { .report-totals { grid-template-columns: repeat(3, 1fr); } }
.report-totals div { background: var(--cloud); border-radius: var(--radius-btn); padding: 8px 10px; }
.report-totals strong { display: block; font-size: 20px; line-height: 26px; }
.report-scroll { overflow-x: auto; }

.status { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-weight: 600; font-size: 13px; line-height: 20px; white-space: nowrap; border: 1px solid transparent; }
.status-pass { background: #e4f3e8; color: #17532d; }
.status-fail { background: #fbe4e2; color: #8c1d16; }
.status-visual { background: #e7eff7; color: #1f4466; }
.status-deferred { background: #fff1d1; color: #6b4600; }
.status-inaccessible { background: #eceff1; color: #37474f; }
.status-excluded { background: #f1ecf6; color: #4a2c66; }

.field-dictionary { display: grid; gap: 0; margin: 0; }
.field-dictionary div { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.field-dictionary dt { font-weight: 700; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; }
.field-dictionary dd { margin: 0; color: var(--ink); }
@media (min-width: 768px) { .field-dictionary div { grid-template-columns: 220px 1fr; gap: var(--s3); } }

.download-list { list-style: none; padding: 0; display: grid; gap: var(--s2); }
.download-list li { margin: 0; }
.download-list a { display: flex; gap: var(--s2); align-items: center; padding: var(--s2) var(--s3); border: 1px solid var(--border); border-radius: var(--radius-card); text-decoration: none; color: var(--ink); min-height: 64px; }
.download-list a:hover { border-color: var(--brand); background: var(--cloud); color: var(--ink); }
.download-list .dl-title { font-weight: 700; display: block; color: var(--brand); }
.download-list svg { width: 32px; height: 32px; flex: none; color: var(--brand); }

/* ---------- Forms ---------- */
.form-layout { display: grid; gap: var(--s5); }
@media (min-width: 1024px) { .form-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }

.step-nav ol { list-style: none; margin: 0 0 var(--s4); padding: 0; display: grid; gap: var(--s1); counter-reset: fstep; }
@media (min-width: 768px) { .step-nav ol { grid-template-columns: repeat(3, 1fr); } }
.step-nav li { margin: 0; counter-increment: fstep; padding: 10px 12px; border-radius: var(--radius-btn); background: var(--cloud); font-weight: 600; font-size: 15px; line-height: 22px; color: var(--muted); border-bottom: 4px solid transparent; }
.step-nav li::before { content: counter(fstep) ". "; }
.step-nav li[aria-current="step"] { color: var(--ink); border-bottom-color: var(--brand); background: #e3eff9; }
.step-nav li.is-done { color: var(--ink); }
.step-nav li.is-done::after { content: " \2713"; color: var(--brand); }

.form-step { border: 0; padding: 0; margin: 0 0 var(--s6); min-width: 0; }
.form-step > legend { padding: 0; margin-bottom: var(--s3); font-size: 26px; line-height: 32px; font-weight: 700; }
.js .form-step[hidden] { display: none; }

.field { margin-bottom: var(--s4); }
.field > label, .field > .label, fieldset.field > legend { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
fieldset.field { border: 0; padding: 0; min-width: 0; }
.optional { font-weight: 400; color: var(--muted); }
.hint { display: block; color: var(--muted); font-size: 15px; line-height: 22px; margin: -2px 0 8px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"], select, textarea {
  width: 100%; max-width: 100%; min-height: 48px; padding: 10px 12px;
  font: 400 18px/26px var(--font); color: var(--ink); background: var(--white);
  border: 2px solid #66798a; border-radius: var(--radius-btn);
}
input.w-sm { max-width: 12ch; }
input.w-md { max-width: 28ch; }
textarea { min-height: 120px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--brand); outline-offset: 1px; border-color: var(--ink); }
.choice-list { display: grid; gap: var(--s1); }
.choice-list.inline { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.choice { position: relative; display: flex; align-items: flex-start; gap: 12px; min-height: 48px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-btn); background: var(--white); cursor: pointer; }
.choice:hover { border-color: var(--brand); }
.choice input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--brand); }
.choice:has(input:checked) { border-color: var(--brand); background: #eaf3fa; }
.choice:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.choice input:focus-visible { outline: none; }
.choice .choice-hint { display: block; color: var(--muted); font-size: 15px; line-height: 22px; }

.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field.has-error { border-left: 4px solid var(--error); padding-left: var(--s2); }
.error-message { display: flex; gap: 6px; align-items: flex-start; color: var(--error); font-weight: 600; font-size: 16px; line-height: 24px; margin: 0 0 8px; }
.error-message::before { content: "!"; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--error); color: var(--white); font-size: 13px; line-height: 20px; text-align: center; font-weight: 800; }
.error-summary { border: 3px solid var(--error); border-radius: var(--radius-card); padding: var(--s3); margin-bottom: var(--s4); }
.error-summary h2 { font-size: 22px; line-height: 28px; color: var(--error); }
.error-summary ul { margin: 0; }
.error-summary a { color: var(--error); font-weight: 600; }

.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.branch { padding: var(--s3); border-radius: var(--radius-card); background: var(--cloud); margin-bottom: var(--s4); }
.branch > :last-child { margin-bottom: 0; }
.branch-title { font-size: 20px; line-height: 28px; margin-bottom: var(--s2); }
.js .branch[hidden], .js [data-show-when][hidden] { display: none; }

.form-actions { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }

.estimate-box { border: 2px solid var(--brand); border-radius: var(--radius-card); padding: var(--s3); background: #eaf3fa; margin-bottom: var(--s4); }
.estimate-box .estimate-figure { font-size: 28px; line-height: 34px; font-weight: 700; margin: 4px 0 8px; }
.estimate-box p { margin-bottom: 8px; font-size: 16px; line-height: 24px; }
.estimate-box p:last-child { margin: 0; }

.summary-list { margin: 0 0 var(--s3); border-top: 1px solid var(--border); }
.summary-list div { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.summary-list dt { font-weight: 600; font-size: 15px; color: var(--muted); }
.summary-list dd { margin: 0; }
@media (min-width: 768px) { .summary-list div { grid-template-columns: 220px 1fr auto; gap: var(--s2); align-items: baseline; } }
.summary-group h3 { font-size: 18px; margin: var(--s3) 0 var(--s1); display: flex; justify-content: space-between; align-items: center; gap: var(--s2); }

.aside-card { padding: var(--s3); border-radius: var(--radius-card); background: var(--cloud); }
.aside-card + .aside-card { margin-top: var(--s3); }
.aside-card h2 { font-size: 20px; line-height: 28px; }
.aside-card p, .aside-card li { font-size: 16px; line-height: 24px; }
@media (min-width: 1024px) { .form-aside { position: sticky; top: var(--s3); } }

/* ---------- Blog ---------- */
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.post-list > li { margin: 0; }
.post-card h2 { font-size: 24px; line-height: 30px; margin-bottom: var(--s1); }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--brand); text-decoration: underline; }
.post-meta { color: var(--muted); font-size: 15px; line-height: 22px; margin-bottom: var(--s2); }
.tag-list { list-style: none; padding: 0; margin: var(--s2) 0 0; display: flex; flex-wrap: wrap; gap: var(--s1); }
.tag-list li { margin: 0; }
.tag-list a { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 12px; border-radius: 999px; background: var(--cloud); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.tag-list a:hover { background: var(--green-tint); color: var(--ink); }
.pagination { display: flex; justify-content: space-between; gap: var(--s2); margin-top: var(--s5); }
.article-header { padding: var(--s5) 0 var(--s4); }
.article-header h1 { max-width: 24ch; }
.article-body { padding-bottom: var(--s6); }
.article-cta { margin: var(--s5) 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d2dce6; padding: var(--s8) 0 var(--s4); margin-top: 0; font-size: 16px; line-height: 24px; }
.site-footer h2 { color: var(--white); font-size: 16px; line-height: 24px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--s2); }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--brand-on-dark); }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li + li { margin-top: 0; }
.site-footer li a { display: inline-block; padding: 6px 0; }
.footer-grid { display: grid; gap: var(--s5); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand .brand-logo { height: 64px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: var(--s6); padding-top: var(--s3); font-size: 14px; line-height: 21px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2); }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta { display: none; }
@media (max-width: 767px) {
  .js .sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: var(--white); border-top: 1px solid var(--border);
    transform: translateY(110%); transition: transform 0.2s ease;
  }
  .js .sticky-cta.is-visible { transform: none; }
  .sticky-cta .btn { width: 100%; }
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .pt-0 { padding-top: 0; }
.site-nav summary.is-active { color: var(--brand); }
.mt-3 { margin-top: var(--s3); } .mt-5 { margin-top: var(--s5); }
.mb-3 { margin-bottom: var(--s3); } .mb-5 { margin-bottom: var(--s5); }
.stack > * + * { margin-top: var(--s3); }
.center { text-align: center; }

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

@media print {
  .site-header, .site-footer, .sticky-cta, .btn-row, .skip-link, .breadcrumb { display: none !important; }
  body { font-size: 12pt; line-height: 1.45; }
  .section { padding: 12pt 0; }
}
