/* Microsite kit: structure only. Every color, font and radius comes from the site's theme.css. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: 1.125rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }

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

.wrap { max-width: 72rem; margin: 0 auto; padding-left: clamp(16px, 4vw, 40px); padding-right: clamp(16px, 4vw, 40px); }

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: var(--display-weight, 400);
  letter-spacing: var(--display-tracking, -0.01em);
  line-height: 1.12;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.375rem); }
h3 { font-size: 1.375rem; line-height: 1.25; }
p { margin: 0 0 1em; max-width: 38em; }
.lede { font-size: 1.25rem; color: var(--c-muted); }

/* Header */
.site-header { border-bottom: 1px solid var(--c-line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; min-height: 4.5rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.wordmark { font-family: var(--f-display); font-size: 1.25rem; text-decoration: none; margin-right: auto; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-size: 1rem; }
.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; }
@media (max-width: 640px) {
  .site-nav { order: 3; width: 100%; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.875rem; padding: 0.6rem 1.25rem;
  border: 1.5px solid transparent; border-radius: var(--radius-btn);
  font: 600 1rem/1.2 var(--f-body); text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--c-accent); color: var(--c-accent-ink); }
.btn-primary:hover { background: var(--c-accent-hover); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-call { border-color: var(--c-ink); font-size: 0.9375rem; min-height: 2.5rem; }
.btn[disabled] { opacity: 0.7; cursor: progress; }

/* Sections */
.section { padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.section + .section { border-top: 1px solid var(--c-line); }
.section-intro { max-width: 40rem; margin-bottom: 2.25rem; }

/* Hero */
.hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 7vw, 5rem); border-bottom: 1px solid var(--c-line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* Dark panel (forms) */
.panel { background: var(--c-surface); color: var(--c-on-surface); border-radius: var(--radius-panel); padding: clamp(1.25rem, 3vw, 2rem); }
.panel :focus-visible { outline-color: var(--c-accent); }

/* Quote form */
.quote-form .form-title { font-size: 1.625rem; margin-bottom: 0.25em; }
.form-note { font-size: 0.9375rem; opacity: 0.88; margin-bottom: 1.25rem; }
.field { margin-bottom: 0.9rem; min-width: 0; }
.field label { display: block; font-size: 0.9375rem; font-weight: 600; margin-bottom: 0.3rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 0.65rem 0.75rem;
  border: 1px solid var(--c-input-line); border-radius: var(--radius-input);
  background: var(--c-input-bg); color: var(--c-ink);
}
.field textarea { min-height: 5.5rem; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--c-error-on-surface); box-shadow: 0 0 0 1px var(--c-error-on-surface); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.75rem; }
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr; } }
.field-error { display: block; font-size: 0.875rem; margin-top: 0.3rem; color: var(--c-error-on-surface); }
.optional { font-weight: 400; opacity: 0.8; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:not(:empty) { margin: 0.5rem 0 0.75rem; }
.quote-form .btn { width: 100%; margin-top: 0.5rem; }
.form-status { min-height: 1.5em; font-size: 0.9375rem; margin: 0.75rem 0 0; }
.thanks h2 { font-size: 1.625rem; }
.thanks:focus { outline: none; }

/* Price ruler: the one animated moment on the page */
.ruler { margin: 3.25rem 0 0; max-width: 34rem; }
.ruler-track { position: relative; height: var(--ruler-h, 14px); background: var(--c-ruler-track); border-radius: var(--radius-ruler); margin-top: 2.25rem; }
.ruler-range { position: absolute; top: 0; bottom: 0; background: var(--c-accent); border-radius: inherit; transform-origin: left center; animation: ruler-grow 900ms cubic-bezier(.2,.7,.2,1) 250ms both; }
.ruler-range-label { position: absolute; bottom: calc(100% + 0.4rem); left: 50%; transform: translateX(-50%); white-space: nowrap; font-family: var(--f-display); font-size: 1.125rem; color: var(--c-accent-text); }
.ruler-ticks { position: relative; height: 1.6em; margin-top: 0.5rem; font-size: 0.875rem; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.ruler-ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.ruler-ticks span::before { content: ""; position: absolute; left: 50%; top: -0.55rem; width: 1px; height: 0.4rem; background: var(--c-muted); }
.ruler-ticks span:first-child { transform: none; }
.ruler-ticks span:first-child::before { left: 0; }
.ruler-ticks span:last-child { transform: translateX(-100%); }
.ruler-ticks span:last-child::before { left: auto; right: 0; }
.ruler-caption { margin-top: 1rem; font-size: 0.9375rem; color: var(--c-muted); max-width: 32rem; }
@keyframes ruler-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Definition grid (what changes the price, etc.) */
.def-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 3.5rem; margin: 0; }
.def-grid dt { font-family: var(--f-display); font-size: 1.375rem; line-height: 1.25; margin-bottom: 0.4rem; }
.def-grid dd { margin: 0; color: var(--c-muted); }
@media (max-width: 720px) { .def-grid { grid-template-columns: 1fr; } }

/* Steps: only for real sequences */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.steps li { counter-increment: step; border-top: 2px solid var(--c-ink); padding-top: 1rem; }
.steps li::before { content: counter(step); display: block; font-family: var(--f-display); font-size: 2rem; line-height: 1; margin-bottom: 0.6rem; color: var(--c-accent-text); }
.steps h3 { font-size: 1.25rem; margin-bottom: 0.35em; }
.steps p { color: var(--c-muted); font-size: 1rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Area list */
.area-list { list-style: none; padding: 0; margin: 0; columns: 3 12rem; column-gap: 2.5rem; }
.area-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--c-line); break-inside: avoid; }

/* FAQ */
.faq { max-width: 46rem; border-top: 1px solid var(--c-line); }
.faq details { border-bottom: 1px solid var(--c-line); padding: 1.1rem 0; }
.faq summary { font-family: var(--f-display); font-size: 1.25rem; cursor: pointer; }
.faq details p { margin: 0.75rem 0 0; color: var(--c-muted); }

/* Quote band and CTA band */
.quote-band { padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--c-line); }
.quote-band-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .quote-band-grid { grid-template-columns: 1fr; } }
.cta-band { background: var(--c-surface); color: var(--c-on-surface); padding-top: clamp(3rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.cta-band p { opacity: 0.9; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Long-form pages */
.prose { max-width: 44rem; }
.prose h2 { margin-top: 1.75em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

/* Footer */
.site-footer { border-top: 1px solid var(--c-line); padding-top: 2.5rem; padding-bottom: 2.5rem; font-size: 0.9375rem; color: var(--c-muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-bottom: 1.25rem; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.disclosure { max-width: 44rem; }

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

/* Figures: photos, illustrations, diagrams */
.figure { margin: 2rem 0; }
.figure img, .figure svg { width: 100%; height: auto; display: block; border-radius: var(--radius-panel); }
.figure img { aspect-ratio: var(--ar, 3 / 2); object-fit: cover; background: var(--c-line); }
.figure figcaption { margin-top: 0.6rem; font-size: 0.875rem; color: var(--c-muted); line-height: 1.45; }
.figure figcaption a { color: inherit; }
.figure-wide { max-width: 64rem; }
.diagram text { font-family: var(--f-body); fill: var(--c-ink); }
.diagram .muted { fill: var(--c-muted); }
.diagram .lbl { font-family: var(--f-display); }
.figure-pair { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .figure-pair { grid-template-columns: 1fr 1fr; } }
.diagram .on-dark { fill: var(--c-on-surface); }
