/* Scaffold & Co. styles
   Voice: a calm, exact studio that audits and builds.
   Colour: white ground, ultramarine (trust) dominant, tomato orange for every call to act.
   Type: Archivo expanded for headings (architectural signage), Inter for text. */

/* ---------- Fonts (self-hosted, Latin subset) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 500 900;
  font-stretch: 100% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
/* Metric-matched fallbacks keep the layout still while the fonts load. */
@font-face {
  font-family: "Inter fallback";
  src: local("Arial");
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Archivo fallback";
  src: local("Arial");
  size-adjust: 112%;
  ascent-override: 84%;
  descent-override: 20%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;
  --bg: light-dark(#ffffff, #0a0f2c);
  --ink: light-dark(#0f1226, #eef0ff);
  --muted: light-dark(#4a4f6a, #b6bbd9);
  --blue: light-dark(#1d2bd8, #8792ff);
  --blue2: light-dark(#e9ecff, #141c4d);
  --line: light-dark(#cdd3f5, #2a3470);
  --act: light-dark(#d93a16, #ff7a5c);
  --act-ink: light-dark(#ffffff, #1a0a05);
  --card: light-dark(#ffffff, #10173d);
  --on-blue: #ffffff;
  --on-blue-muted: #dfe3ff;
  --ok: light-dark(#0c7a43, #4fd68f);
  --warn: light-dark(#8a5200, #ffc35c);
  --bad: light-dark(#b3260a, #ff8a70);
  --gauge-ok: light-dark(#0c8a4b, #4fd68f);
  --gauge-warn: light-dark(#d08a00, #ffc35c);
  --gauge-bad: light-dark(#d13212, #ff8a70);

  --font-text: "Inter", "Inter fallback", system-ui, sans-serif;
  --font-head: "Archivo", "Archivo fallback", "Inter", sans-serif;
  --radius: 16px;
  --gutter: max(5vw, 16px);
  --nav-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font-text);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-head);
  font-stretch: 112%;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}
h1 { font-size: clamp(34px, 5.2vw, 56px); font-weight: 850; }
h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 750; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--blue); }
ul, ol { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.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 {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg);
}
.skip:focus { top: 12px; }

.wrap { max-width: 1240px; margin: 0 auto; }
.wrap-narrow { max-width: 880px; }
.band { padding: clamp(40px, 6vw, 80px) var(--gutter); }
.band-tint { background: var(--blue2); }
.sec-head { display: grid; gap: 12px; max-width: 760px; margin-bottom: 32px; }
.sec-head p, .lede { color: var(--muted); font-size: 17px; }
.lede { font-size: 18px; max-width: 62ch; margin-top: 14px; }
.lede-sm { font-size: 16px; margin: 6px 0 18px; }
.sub-title { margin: 40px 0 16px; }
.note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* Below-the-fold sections render lazily. */
#services, #audit, #seo, #pricing, #estimate, #team, #faq {
  content-visibility: auto;
  contain-intrinsic-size: auto 1000px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 10px;
  border: 2px solid transparent; font: 600 16px var(--font-text);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: filter .15s ease, border-color .15s ease;
}
.btn-go { background: var(--act); color: var(--act-ink); }
.btn-go:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); }
.btn-line { background: transparent; color: var(--on-blue); border-color: rgb(255 255 255 / .4); }
.btn:disabled { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; gap: 20px; padding: 12px var(--gutter); }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo-mark { width: 32px; height: 32px; flex: none; }
.logo-word { font: 800 21px/1 var(--font-head); font-stretch: 118%; letter-spacing: -0.02em; }
.logo-amp { color: var(--act); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 10px 12px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px;
}
.nav-links a:hover { background: var(--blue2); }
.progress {
  position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%;
  background: var(--act); transform-origin: 0 50%; transform: scaleX(0);
}
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}
@supports not (animation-timeline: scroll()) { .progress { display: none; } }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-row > .btn { margin-left: auto; }
}
@media (max-width: 400px) {
  .logo-word { font-size: 18px; }
  .nav-row > .btn { padding: 0 14px; font-size: 15px; }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(32px, 4vw, 56px);
  background: var(--blue2);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px); align-items: end;
}
.doors { list-style: none; padding: 0; display: grid; gap: 12px; }
.door {
  display: grid; gap: 4px; padding: 18px 20px; border-radius: 14px;
  background: var(--blue); color: var(--on-blue); text-decoration: none;
  border: 2px solid var(--blue);
}
.door b { font: 750 20px var(--font-head); font-stretch: 108%; }
.door span { font-size: 15px; color: var(--on-blue-muted); }
.door-alt { background: var(--card); color: var(--ink); }
.door-alt span { color: var(--muted); }
.door:hover { filter: brightness(1.06); }
.blueprint { display: block; width: 100%; height: auto; margin-top: 36px; }
.blk { fill-opacity: 1; }
.blk-art { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .blk { animation: build .7s ease both; }
  .blk:nth-child(1) { animation-delay: 0.40s; }
  .blk:nth-child(2) { animation-delay: 0.57s; }
  .blk:nth-child(3) { animation-delay: 0.74s; }
  .blk:nth-child(4) { animation-delay: 0.91s; }
  .blk:nth-child(5) { animation-delay: 1.08s; }
  .blk:nth-child(6) { animation-delay: 1.25s; }
  .blk:nth-child(7) { animation-delay: 1.42s; }
  .blk-art { animation: appear .6s ease 1.6s both; }
  @keyframes build {
    from { fill-opacity: 0; stroke-dasharray: 10 8; }
    to { fill-opacity: 1; stroke-dasharray: none; }
  }
  @keyframes appear { from { opacity: 0; } }
}
@media (max-width: 760px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Speed check tool ---------- */
.tool { border: 2px solid var(--blue); border-radius: 18px; background: var(--card); overflow: hidden; }
.tool-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 12px 14px; background: var(--blue2); border-bottom: 2px solid var(--blue);
}
.tool-dots { display: flex; gap: 6px; }
.tool-dots i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--blue); }
.tool-bar input {
  flex: 1 1 14em; min-height: 48px; padding: 12px 16px; border-radius: 999px;
  border: 1.5px solid var(--blue); background: var(--card); color: var(--ink);
  font: 16px var(--font-text);
}
.tool-body {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px); padding: clamp(18px, 3vw, 32px);
}
.gauges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gauge { display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 14px; font-weight: 600; }
.gauge svg { width: 100%; max-width: 120px; height: auto; }
.gauge .arc { transition: stroke-dasharray 1s ease; }
.tool.is-busy .gauge .arc { animation: spin 1.2s linear infinite; transform-box: view-box; transform-origin: center; }
@keyframes spin { from { transform: rotate(-90deg); } to { transform: rotate(270deg); } }
.vitals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.vitals div { padding: 10px 12px; border-radius: 12px; background: var(--blue2); }
.vitals b { display: block; font: 800 clamp(16px, 1.7vw, 22px) var(--font-head); white-space: nowrap; }
.vitals span { font-size: 13px; color: var(--muted); }
.tool-state { min-height: 3em; margin-bottom: 14px; font-size: 15px; color: var(--muted); }
.tool h3 { margin-bottom: 10px; }
.issues { display: grid; gap: 8px; margin-bottom: 20px; padding-left: 22px; font-size: 15px; }
@media (max-width: 820px) { .tool-body { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .gauges, .vitals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Services ---------- */
.caps {
  list-style: none; padding: 0; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17em), 1fr));
}
.caps li {
  display: grid; gap: 8px; align-content: start; padding: 20px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--card);
}
.caps p { font-size: 15px; color: var(--muted); }
.caps small { font-size: 13px; font-weight: 600; color: var(--blue); }
.steps {
  list-style: none; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
}
.steps li { position: relative; padding: 44px 14px 0 0; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; z-index: 1; width: 32px; height: 32px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--blue); color: var(--on-blue); font-size: 14px; font-weight: 700;
}
.steps li::after { content: ""; position: absolute; top: 15px; left: 32px; right: 0; height: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps b { display: block; margin-bottom: 6px; }
.steps p { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 18px; }
  .steps li { padding: 2px 0 0 48px; }
  .steps li::after { top: 32px; left: 15px; right: auto; width: 2px; height: calc(100% - 14px); }
}

/* ---------- Audit ---------- */
.audit {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px); align-items: start;
}
.audit-steps { list-style: none; padding: 0; display: grid; gap: 20px; counter-reset: a; }
.audit-steps li { position: relative; padding-left: 52px; }
.audit-steps li::before {
  counter-increment: a; content: counter(a);
  position: absolute; left: 0; top: 0; width: 36px; height: 36px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--act); color: var(--act-ink); font-weight: 700;
}
.audit-steps b { display: block; margin-bottom: 4px; font-size: 18px; }
.audit-steps p { font-size: 15px; color: var(--muted); }
.audit .sub-title { margin-top: 28px; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }
.chips li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
.report {
  position: sticky; top: 88px; margin: 0; padding: 22px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
}
.report figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.report figcaption b { font: 750 20px var(--font-head); font-stretch: 108%; }
.report figcaption span { font-size: 13px; color: var(--muted); }
.report-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px;
}
.report-row small { display: block; font-size: 13px; color: var(--muted); }
.report-row .cost { min-width: 4.5em; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tag { padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.tag-ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.tag-warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 16%, transparent); }
.tag-bad { color: var(--bad); background: color-mix(in srgb, var(--bad) 14%, transparent); }
.report-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; }
.report-total b { font: 800 clamp(24px, 6vw, 30px) var(--font-head); color: var(--blue); white-space: nowrap; }
@media (max-width: 820px) { .audit { grid-template-columns: 1fr; } .report { position: static; } }

/* Before and after demo */
.ba {
  position: relative; height: clamp(380px, 42vw, 460px); overflow: hidden;
  border: 2px solid var(--blue); border-radius: 18px;
  cursor: ew-resize; user-select: none; touch-action: pan-y;
}
.ba-pane { position: absolute; inset: 0; }
.ba-after { clip-path: inset(0 0 0 50%); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: var(--act); transform: translateX(-1.5px); pointer-events: none; }
.ba-handle span {
  position: absolute; top: 50%; left: 50%; width: 44px; height: 44px;
  display: grid; place-items: center; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--act); color: #fff; font-size: 22px;
}
.ba:has(.ba-range:focus-visible) .ba-handle span { outline: 3px solid var(--blue); outline-offset: 3px; }
.badge { position: absolute; bottom: 16px; padding: 10px 14px; border-radius: 12px; color: #fff; font-size: 13px; line-height: 1.3; }
.badge b { display: block; font: 800 28px var(--font-head); }
.badge-bad { left: 16px; background: #b3260a; }
.badge-good { right: 16px; background: #0c7a43; }
.old { position: absolute; inset: 0; overflow: hidden; background: #fffbe6; color: #555; font-family: "Times New Roman", serif; }
.old-top { padding: 4px 8px; background: #ff0; color: #c00; font-size: 13px; text-align: center; white-space: nowrap; overflow: hidden; }
.old-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; padding: 8px; background: #7a3b0c; color: #ffd; font-size: 13px; text-decoration: underline; }
.old-hero { padding: 18px; text-align: center; }
.old-hero b { display: block; margin-bottom: 8px; color: #c06; font-size: clamp(20px, 3vw, 30px); }
.old-hero p { max-width: 40em; margin: 0 auto 12px; color: #999; font-size: 14px; }
.old-btn { display: inline-block; padding: 4px 10px; border: 2px outset #aaa; background: linear-gradient(#ccc, #888); color: #333; font-size: 12px; }
.old-pop { position: absolute; right: 8%; top: 42%; max-width: 14em; padding: 16px; border: 3px double #c06; background: #fff; box-shadow: 4px 4px 0 #999; font-size: 14px; }
.new { position: absolute; inset: 0; background: #fbf7f1; color: #2a1d12; font-family: var(--font-text); }
.new-nav { display: flex; align-items: center; gap: 18px; padding: 14px 22px; border-bottom: 1px solid #eadfce; font-size: 14px; }
.new-nav b { margin-right: auto; font: 800 18px var(--font-head); }
.new-btn { display: inline-block; padding: 8px 14px; border-radius: 8px; background: #b5471b; color: #fff; font-size: 14px; font-weight: 600; }
.new-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: center; padding: clamp(18px, 4vw, 44px); }
.new-hero h4 { margin-bottom: 12px; font-size: clamp(24px, 3.4vw, 40px); font-weight: 800; }
.new-hero p, .new-hero small { color: #6b5a4a; font-size: 15px; }
.new-hero p { margin-bottom: 16px; }
.new-hero small { display: block; margin-top: 12px; }
.new-hero .new-btn { padding: 12px 18px; }
.loaf {
  position: relative; width: 100%; max-width: 260px; aspect-ratio: 1; justify-self: center;
  border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f2c98f, #c9803f 55%, #8a4a1c);
  box-shadow: 0 18px 0 -6px #eadfce;
}
.loaf::after { content: ""; position: absolute; inset: 30% 22%; border-top: 4px solid #fbe3bf; border-radius: 50%; transform: rotate(-12deg); }
@media (max-width: 600px) {
  .new-hero { grid-template-columns: 1fr; }
  .loaf, .old-pop, .new-nav span:not(.new-btn) { display: none; }
}

/* ---------- SEO and plan cards ---------- */
.offers { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.offers li { display: grid; gap: 8px; align-content: start; padding: 22px; border-radius: 14px; background: var(--blue); color: var(--on-blue); }
.offers b { font: 800 30px var(--font-head); font-stretch: 108%; white-space: nowrap; }
.offers p { font-size: 15px; color: var(--on-blue-muted); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.plan {
  display: flex; flex-direction: column; gap: 14px; padding: 26px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
}
.plan-featured { border: 2px solid var(--blue); }
.price { font: 800 clamp(30px, 3.3vw, 44px) var(--font-head); font-stretch: 108%; letter-spacing: -0.02em; white-space: nowrap; }
.price small { font: 500 15px var(--font-text); letter-spacing: 0; color: var(--muted); }
.plan .meta { font-size: 14px; color: var(--muted); }
.plan ul { flex: 1; display: grid; align-content: start; gap: 6px; padding-left: 20px; font-size: 15px; }
.plan .btn { width: 100%; }
@media (max-width: 900px) { .offers, .plans { grid-template-columns: 1fr; } }

/* ---------- Pricing extras ---------- */
.addons {
  list-style: none; padding: 0; margin-top: 24px; display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(14em, 1fr));
}
.addons li { padding: 14px 16px; border: 1px dashed var(--line); border-radius: 12px; font-size: 15px; }
.addons b { display: block; font-size: 17px; }
.pay-care { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 48px); }
.mini { list-style: none; padding: 0; display: grid; gap: 10px; }
.mini li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
}
.mini li.is-featured { border: 2px solid var(--blue); }
.mini b { font-size: 17px; }
.mini .amount { font: 800 22px var(--font-head); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mini .amount small { font: 500 14px var(--font-text); color: var(--muted); }
.mini p { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
@media (max-width: 820px) { .pay-care { grid-template-columns: 1fr; } }
.terms { margin-top: 0; }
.solo { margin-top: 40px; padding: 0 clamp(16px, 3vw, 24px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.solo summary { font-size: 16px; }
.solo-body { display: grid; gap: 16px; padding-bottom: 24px; justify-items: start; }
.solo-body p { padding-bottom: 0; }
.solo-list { width: 100%; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17em), 1fr)); }

/* ---------- Estimator ---------- */
.est { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.panel { padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.field { display: grid; gap: 8px; margin: 0 0 22px; padding: 0; border: 0; }
.field > label, .field legend, .field-head label { padding: 0; font-weight: 600; }
.field legend { margin-bottom: 8px; }
.field-head { display: flex; justify-content: space-between; gap: 12px; }
.field-head output { font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card);
  font-size: 15px; cursor: pointer;
}
.chip input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
.chip:has(input:checked) { border-color: var(--blue); background: var(--blue2); }
input[type="range"] { width: 100%; height: 44px; accent-color: var(--blue); }
.select {
  max-width: 22em; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); color: var(--ink); font: 16px var(--font-text);
}
.result { position: sticky; top: 88px; padding: 28px; border-radius: 18px; background: var(--blue); color: var(--on-blue); }
.result-sub { font-size: 15px; color: var(--on-blue-muted); }
.result-total {
  margin: 8px 0 6px; font: 850 clamp(40px, 5vw, 64px)/1 var(--font-head);
  font-stretch: 110%; letter-spacing: -0.03em; overflow-wrap: anywhere;
}
.result-total small { display: block; margin-top: 8px; font: 700 clamp(18px, 2vw, 22px) var(--font-text); letter-spacing: 0; color: var(--on-blue-muted); }
.result-lines { margin: 20px 0; border-top: 1px solid rgb(255 255 255 / .25); }
.result-lines div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgb(255 255 255 / .18); font-size: 15px; }
.result-lines span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.result .btn { width: 100%; }
.result .btn-line { margin-top: 10px; }
.result-copied { min-height: 1.4em; margin-top: 8px; font-size: 14px; color: var(--on-blue-muted); }
@media (max-width: 820px) { .est { grid-template-columns: 1fr; } .result { position: static; } }

/* ---------- Team ---------- */
.people { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 20px; }
.person {
  display: grid; gap: 12px; align-content: start; padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
}
.person .role { font-size: 15px; font-weight: 600; color: var(--blue); }
.person ul { display: grid; gap: 8px; padding-left: 20px; font-size: 15px; }
.stats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 7.5em), 1fr)); }
.stats div { padding: 12px 14px; border-radius: 12px; background: var(--blue2); }
.stats b { display: block; font: 800 clamp(18px, 2vw, 26px)/1.1 var(--font-head); font-stretch: 104%; color: var(--blue); overflow-wrap: anywhere; }
.stats span { font-size: 13px; color: var(--muted); }
.engineers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px; align-items: start; }
.engineers p { color: var(--muted); }
.compare { width: 100%; margin-top: 40px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare th { font-size: 14px; font-weight: 600; color: var(--muted); }
.compare td:first-child { font-weight: 600; }
.compare td:last-child { font-weight: 500; color: var(--blue); }
@media (max-width: 820px) { .people, .engineers { grid-template-columns: 1fr; } .compare { margin-top: 0; } }
@media (max-width: 600px) {
  .compare thead { display: none; }
  .compare tr { display: grid; padding-block: 10px; border-bottom: 1px solid var(--line); }
  .compare td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border: 0; }
  .compare td::before { content: attr(data-label); font-weight: 500; color: var(--muted); }
  .compare td:first-child::before { content: none; }
}

/* ---------- FAQ ---------- */
#faq h2 { margin-bottom: 16px; }
details { border-bottom: 1px solid var(--line); }
summary {
  display: flex; justify-content: space-between; gap: 16px; padding: 18px 0;
  list-style: none; cursor: pointer; font-size: 17px; font-weight: 600;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--blue); }
details[open] summary::after { content: "−"; }
details p { max-width: 72ch; padding-bottom: 18px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { background: var(--blue); color: var(--on-blue); }
.contact .lede { color: var(--on-blue-muted); }
.contact a { color: var(--on-blue); font-weight: 600; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: start; }
.ways { display: grid; gap: 12px; margin: 24px 0 0; }
.ways dt { font-size: 14px; color: #c9cfff; }
.ways dd { margin: 0; overflow-wrap: anywhere; }
#contact-form { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
#contact-form label { display: grid; gap: 6px; font-size: 15px; font-weight: 600; }
#contact-form input, #contact-form select, #contact-form textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid rgb(255 255 255 / .35); background: rgb(255 255 255 / .08);
  color: #fff; font: 16px var(--font-text);
}
#contact-form select option { color: #0f1226; }
#contact-form textarea { min-height: 130px; resize: vertical; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; }
.form-msg { min-height: 1.5em; font-size: 15px; }
@media (max-width: 760px) { .contact-grid, .form-grid { grid-template-columns: 1fr; } }

/* ---------- Not-found page ---------- */
.not-found { min-height: 100vh; display: grid; place-items: center; text-align: center; }
.not-found .lede { margin-inline: auto; }
.not-found .actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-foot { padding: 28px var(--gutter); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .progress { display: none; }
  .gauge .arc, .btn { transition: none; }
}
