/* ==========================================================================
   RefinishControl marketing site — shared design system
   Reuse these tokens; don't introduce new hex values.
   ========================================================================== */

:root {
  /* Brand — teal (primary), amber (caution-only, never decorative) */
  --diagnostic:      #12B3A2;
  --diagnostic-deep:  #0A756D;
  --diagnostic-soft:  #96E6DE;
  --signal:           #D9821B;
  --signal-deep:      #935512;
  --signal-soft:      #F7CD8B;

  /* Diagnostic tint scale — gradient depth only, never a flat fill */
  --diagnostic-900: #073F3B;
  --diagnostic-700: #0C9186;
  --diagnostic-400: #3BCBBB;
  --diagnostic-100: #C6F3EF;

  /* Neutrals */
  --graphite-0:  #C7CBCF;
  --graphite-1:  #B0B5BA; /* body/label text on dark surfaces — use this, not graphite-2, for any text */
  --graphite-2:  #888E95; /* borders/strokes only */
  --graphite-3:  #6E747B;
  --graphite-4:  #565C63; /* muted text on LIGHT (paper) surfaces — graphite-3 there is 4.40:1, fails 4.5:1 */
  --graphite-6:  #363C42;
  --graphite-7:  #2A2E33;
  --graphite-9:  #17191C;
  --chalk:  #EDEFF2;
  --paper:  #F6F7F8;
  --off:    #FFFFFF;

  /* Type */
  --display: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --sans:    "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono:    "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  /* Layout */
  --wrap: 1200px;
  --r: 6px;
  --sec-y: clamp(72px, 9vw, 128px);
  --sec-y-sm: clamp(48px, 6vw, 80px);

  /* Ground */
  --ground: var(--graphite-9);
  --ink: var(--chalk);
  --ink-dim: var(--graphite-1);
  --hair: rgba(199, 203, 207, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 84px; } /* clears the sticky nav when jumped to via #anchor */
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--ground);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
  /* No overflow-x: hidden here on purpose — it masks real overflow instead of fixing
     it. Wide elements get their own scoped overflow-x: auto wrapper (see .flow-wrap,
     .table-wrap) instead of hiding the problem at the body level. */
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--diagnostic); outline-offset: 2px; border-radius: 2px; }
.section--light :focus-visible { outline-color: var(--diagnostic-deep); } /* diagnostic (bright) reads on dark grounds/cards; diagnostic-deep is the light-surface-safe pair, same split used for text tokens throughout this file */
h1, h2, h3, h4 { font-family: var(--display); margin: 0 0 .5em; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0 0 1em; max-width: 62ch; }
.mono { font-family: var(--mono); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--diagnostic); color: var(--graphite-9); padding: 10px 16px; font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 18px; } }

.section { padding: var(--sec-y) 0; border-bottom: 1px solid var(--hair); }
.section--sm { padding: var(--sec-y-sm) 0; }
.section--light { background: var(--paper); color: var(--graphite-9); }
.section--light .eyebrow { color: var(--diagnostic-deep); }
.section--light .card { background: var(--off); border-color: rgba(23,25,28,.1); }
.section--light p, .section--light .muted { color: var(--graphite-4); }

.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--diagnostic-soft); margin-bottom: 14px; display: flex; align-items: center; gap: 10px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--diagnostic); flex: none; }

.muted { color: var(--ink-dim); }

/* ---------- Wave wash ---------- */
.wave-wash { position: relative; }
.wave-wash::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(110% 130% at 12% -10%, rgba(18,179,162,.16), transparent 55%),
    radial-gradient(90% 110% at 90% 105%, rgba(10,117,109,.24), transparent 58%),
    radial-gradient(60% 85% at 55% 45%, rgba(59,203,187,.07), transparent 70%);
}
.wave-wash > .wrap { position: relative; z-index: 1; }

/* ---------- Paint sheen ---------- */
.paint-sheen, .btn--primary, .btn--ghost { position: relative; overflow: hidden; }
.paint-sheen::after, .btn--primary::after, .btn--ghost::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 32%, rgba(255,255,255,.22) 48%, transparent 64%);
  transform: translateX(-130%);
  transition: transform .55s ease;
}
.paint-sheen:hover::after, .btn--primary:hover::after, .btn--ghost:hover::after { transform: translateX(130%); }
@media (prefers-reduced-motion: reduce) {
  .paint-sheen::after, .btn--primary::after, .btn--ghost::after { transition: none; display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 700; font-size: 15px;
  padding: 13px 22px; border-radius: var(--r); border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease;
  min-height: 44px;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--diagnostic); color: #05201D; }
.btn--primary:hover { background: var(--diagnostic-soft); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--graphite-2); }
.btn--ghost:hover { border-color: var(--diagnostic); color: var(--diagnostic-soft); }
.btn--sm { padding: 9px 16px; font-size: 13px; min-height: 44px; } /* keep 44px touch target even at the "small" size */
.btn--block { width: 100%; }
.section--light .btn--ghost { color: var(--graphite-9); border-color: var(--graphite-3); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--hair);
}
/* blur lives on a pseudo-element, not .nav itself — backdrop-filter on .nav would
   make it the containing block for the mobile drawer's position:fixed, collapsing
   the drawer to its content height instead of filling the viewport below the bar */
.nav::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(23,25,28,.92); backdrop-filter: blur(8px);
}
.nav-inner { position: relative; }
.nav-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 17px; color: var(--ink); flex: none; }
.nav-logo svg { width: 26px; height: 26px; }
.nav-logo .accent { color: var(--diagnostic); }
.nav-links { display: flex; align-items: stretch; gap: 6px; list-style: none; margin: 0; padding: 0; flex: 1; }
.nav-links > li { position: relative; display: flex; align-items: center; }
.nav-links > li > a, .nav-dropdown-trigger {
  display: flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: var(--r);
  color: var(--ink-dim); text-decoration: none; font-size: 14.5px; font-weight: 600;
  background: none; border: none; font-family: var(--sans); cursor: pointer;
}
.nav-links a:hover, .nav-dropdown-trigger:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-cta { flex: none; }
.nav-toggle { display: none; flex-direction: column; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: none; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(10px) rotate(45deg); } /* 10px, not 6 — flex items don't collapse margins, so the real gap between spans is 4+4+2 = 10px */
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }
.nav-home-mobile { display: none; }
.nav-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 94; }
.nav-scrim.is-open { opacity: 1; pointer-events: auto; }

.nav-dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 640px;
  background: var(--graphite-7); border: 1px solid var(--hair); border-radius: var(--r);
  box-shadow: 0 20px 40px rgba(0,0,0,.4);
  padding: 22px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}
.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu,
.nav-item-dropdown.is-open .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-mega-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
/* flex-start + a two-line min-height, not align-items:center, so a wrapping
   header ("Recover the Materials") doesn't push that column's whole content
   down relative to the single-line headers beside it */
.nav-mega-col-h { display: flex; align-items: flex-start; gap: 8px; font-family: var(--mono); font-size: 10.5px; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; color: var(--graphite-1); margin-bottom: 10px; min-height: 2.8em; }
.nav-mega-col-h .n { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--diagnostic); color: #05201D; font-weight: 800; font-size: 10px; }
.nav-mitem { display: block; padding: 8px 10px; border-radius: var(--r); text-decoration: none; margin-bottom: 2px; }
.nav-mitem:hover { background: rgba(18,179,162,.1); }
.nav-mitem .t { display: block; color: var(--ink); font-weight: 700; font-size: 13.5px; }
.nav-mitem .d { display: block; color: var(--graphite-1); font-size: 12px; margin-top: 2px; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 68px; right: 0; height: calc(100dvh - 68px); width: min(86vw, 340px);
    flex-direction: column; align-items: stretch;
    background: var(--graphite-9); border-left: 1px solid var(--hair);
    padding: 20px; gap: 4px; overflow-y: auto;
    transform: translateX(100%); transition: transform .2s ease; display: flex;
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-home-mobile { display: block; }
  /* Inset divider via pseudo-element, not a full-width border — the <li> itself
     stays full-width for the tap target/hover background, only the line is short. */
  .nav-links > li:not(:last-child)::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 0;
    border-bottom: 1px solid rgba(199,203,207,.07);
  }
  /* .nav-links > li is a row flex (desktop nav-bar alignment) at every
     breakpoint — .nav-item-dropdown is the one <li> with two stacked
     children (trigger + panel), so it needs its own column direction here. */
  .nav-item-dropdown { flex-direction: column; align-items: stretch; }
  .nav-links > li > a, .nav-dropdown-trigger { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 16px; }
  /* Mobile submenu: plain nested links in the drawer's own flow, not the
     desktop mega-menu's floating card — no background/border/shadow, no
     two-line title+description, no circled numbers. Just an indented list
     that reads as more nav links, the way a standard drawer submenu does. */
  .nav-dropdown-menu {
    position: static; min-width: 0; opacity: 1; visibility: visible; transform: none;
    display: none; background: none; border: none; border-radius: 0; box-shadow: none;
    padding: 0; margin-top: 2px;
  }
  .nav-item-dropdown.is-open .nav-dropdown-menu { display: block; }
  .nav-mega-cols { grid-template-columns: 1fr; gap: 0; }
  .nav-mega-col + .nav-mega-col { border-top: 1px solid var(--hair); margin-top: 6px; padding-top: 6px; }
  .nav-mega-col-h { padding: 8px 12px; margin-bottom: 0; gap: 6px; min-height: 0; }
  .nav-mega-col-h .n { width: auto; height: auto; border-radius: 0; background: none; color: inherit; font-size: inherit; font-weight: inherit; padding: 0; }
  .nav-mitem { width: 100%; padding: 12px 12px 12px 30px; border-radius: var(--r); margin-bottom: 0; }
  .nav-mitem .t { font-size: 15px; font-weight: 600; color: var(--ink-dim); }
  .nav-mitem:hover .t { color: var(--ink); }
  .nav-mitem .d { display: none; }
  .nav-cta { display: none; }
  /* Book a Demo (.nav-cta) is hidden at this width, so Contact stands in as
     the drawer's CTA instead of blending in with the plain links above it. */
  .nav-links > li:last-child { margin-top: 10px; }
  .nav-links > li:last-child > a {
    justify-content: center; background: var(--diagnostic); color: #05201D;
    font-weight: 700;
  }
  .nav-links > li:last-child > a:hover { background: var(--diagnostic-soft); color: #05201D; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 9vw, 120px) 0 var(--sec-y); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: url('/assets/refinishcontrol-hero-garage.webp') center 30% / cover no-repeat;
  opacity: .4;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(100deg, var(--ground) 0%, var(--ground) 40%, transparent 90%);
}
.hero > .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  /* Below 900px the hero-grid stacks to one column, so text runs the full
     width — the diagonal gradient's "solid on the left" logic no longer
     reserves space under it. Fall back to a flatter, heavier scrim. */
  .hero::before { opacity: .22; }
  .hero::after { background: linear-gradient(180deg, var(--ground) 0%, rgba(23,25,28,.82) 55%, var(--ground) 100%); }
}

/* Centered, stacked hero (headline > CTA > full-width screenshot > copy) —
   content runs the full wrap width at every breakpoint, so it always uses
   the flatter vertical scrim rather than the two-column diagonal one. */
.hero--stacked::before { opacity: .65; background-size: auto 115%; background-position: center 100%; background-image: url('/assets/alex-butsko-NGjwstyuXXU-unsplash%20(1).webp'); }
.hero--stacked::after { background: linear-gradient(180deg, rgba(23,25,28,.5) 0%, rgba(23,25,28,.22) 25%, rgba(23,25,28,.22) 55%, rgba(23,25,28,.72) 70%, rgba(23,25,28,.97) 100%); }
/* Below 900px the headline/CTA wrap onto extra lines, stretching the section
   and pushing the lede paragraph into the gradient's lightest band (.22) —
   raise the floor so body copy stays readable against the photo. */
@media (max-width: 900px) {
  .hero--stacked::before { opacity: .35; }
  .hero--stacked::after { background: linear-gradient(180deg, rgba(23,25,28,.6) 0%, rgba(23,25,28,.55) 25%, rgba(23,25,28,.6) 55%, rgba(23,25,28,.85) 70%, rgba(23,25,28,.98) 100%); }
  .hero-stack .lede { color: var(--ink); }
}
.hero-stack { text-align: center; }
.hero-stack h1 { max-width: none; margin-left: auto; margin-right: auto; }
.hero-stack .hero-cta { justify-content: center; }
/* Ghost button's just a border, which gets lost against a busy photo — give it a
   dark backdrop here specifically, without touching .btn--ghost everywhere else. */
.hero-stack .btn--ghost { background: rgba(23,25,28,.55); backdrop-filter: blur(6px); border-color: var(--graphite-1); }
.hero-stack .btn--ghost:hover { background: rgba(23,25,28,.7); }
.hero-stack-screenshot { margin-top: 48px; }

/* Below 640px, swap the wide dashboard screenshot for a phone-shaped crop
   in a device frame — the wide image scales down too small to read at
   phone width. Only one of the two screenshots is ever in the DOM's
   visible flow at a given breakpoint. */
.hero-screenshot--mobile { display: none; }
@media (max-width: 640px) {
  .hero-screenshot--desktop { display: none; }
  .hero-screenshot--mobile { display: block; }
}
.phone-frame {
  /* Break out of .wrap's padding to sit near the viewport edge, with a
     small gutter — .hero has overflow:hidden so this never creates
     horizontal scroll. */
  width: calc(100vw - 40px);
  aspect-ratio: 612 / 1254;
  margin: 40px calc(50% - 50vw + 20px) 0;
  position: relative;
  padding: 12px;
  border-radius: 38px;
  background: var(--graphite-7);
  border: 1px solid var(--graphite-2);
  box-shadow: 0 24px 48px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.08);
}
.phone-frame .phone-notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 64px; height: 15px; border-radius: 10px; background: var(--graphite-9); z-index: 2;
}
.phone-frame .phone-btn {
  position: absolute; width: 3px; border-radius: 2px 0 0 2px; background: var(--graphite-2);
}
.phone-frame .phone-btn--vol-up { left: -3px; top: 92px; height: 26px; }
.phone-frame .phone-btn--vol-down { left: -3px; top: 128px; height: 26px; }
.phone-frame .phone-btn--power { right: -3px; left: auto; top: 108px; height: 40px; border-radius: 0 2px 2px 0; }
.phone-frame .phone-screen { width: 100%; height: 100%; border-radius: 27px; overflow: hidden; background: var(--graphite-9); }
.phone-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }

/* Full-length app screenshot: stays overflow:hidden (inherited above) at
   all times — site.js drives scrollTop by hand instead of relying on
   native touch/wheel scrolling, so it can gate on the frame being fully
   in view and hand scroll gestures off to the page mid-gesture. */
.phone-screen--scroll img { height: auto; object-fit: initial; object-position: initial; }
.hero-stack .lede { max-width: 640px; margin: 32px auto 0; }
.hero-stack .stat-row { margin-top: 48px; }
.hero-stack .stat-tile { text-align: center; }
.hero-stack .stat-tile .stat-icon { margin-left: auto; margin-right: auto; }

.about-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .about-hero-grid { grid-template-columns: 1fr; gap: 32px; } }
.about-hero-grid h1 { font-size: clamp(32px, 4.2vw, 50px); font-weight: 800; letter-spacing: -0.02em; }
.about-hero-grid .stat-row { margin-top: 40px; padding-top: 24px; }
.about-hero-photo { border-radius: var(--r); overflow: hidden; border: 1px solid var(--hair); aspect-ratio: 4 / 5; box-shadow: 0 24px 48px rgba(0,0,0,.35); }
.about-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; display: block; }
.hero h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; letter-spacing: -0.02em; }
.hero h1 .accent { color: var(--diagnostic-soft); }
.hero .lede { font-size: 19px; color: var(--ink-dim); max-width: 46ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--hair); }
@media (max-width: 640px) { .stat-row { grid-template-columns: 1fr; gap: 20px; } }
.stat-tile { padding-left: 0; }
@media (min-width: 641px) {
  .stat-tile:not(:first-child) { border-left: 1px solid var(--hair); padding-left: 24px; }
}
.stat-tile .stat-icon { display: block; color: var(--diagnostic); margin-bottom: 10px; }
.stat-tile .k { font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--ink); }
.stat-tile .v { font-family: var(--sans); font-weight: 400; font-size: 13.5px; color: var(--ink-dim); margin-top: 4px; line-height: 1.5; }

/* Real product screenshots */
.screenshot { border-radius: var(--r); border: 1px solid var(--graphite-2); overflow: hidden; box-shadow: 0 24px 48px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.07); }
.screenshot img { width: 100%; height: auto; display: block; }
.screenshot-caption { font-size: 12px; color: var(--graphite-1); margin-top: 10px; text-align: center; }
.screenshot-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 800px) { .screenshot-row { grid-template-columns: 1fr; } }

/* ---------- Feature band (3-col, workflow-ordered) ---------- */
.feature-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .feature-band { grid-template-columns: 1fr; } }
.feature-col { background: var(--off); border: 1px solid rgba(23,25,28,.1); border-top: 3px solid var(--diagnostic); border-radius: var(--r); padding: 32px 28px; }
.feature-col .n { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--diagnostic-deep); margin-bottom: 12px; }
.feature-col h3 { font-size: 19px; color: var(--graphite-9); }
.feature-col ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.feature-col li { padding-left: 20px; position: relative; font-size: 14.5px; color: var(--graphite-4); }
.feature-col li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 2px; background: var(--diagnostic); }

/* ---------- Flow diagram ---------- */
.flow-wrap { overflow-x: auto; padding-bottom: 8px; }
.flow-svg { width: 100%; height: auto; display: block; }
.flow-svg--desktop { min-width: 760px; }
.flow-svg--mobile { display: none; }
@media (max-width: 760px) {
  .flow-svg--desktop { display: none; }
  .flow-svg--mobile { display: block; }
}
.flow-box { fill: var(--graphite-7); stroke: var(--hair); stroke-width: 1.5; rx: 8; }
.flow-box.is-hub { fill: rgba(18,179,162,.14); stroke: var(--diagnostic); }
.flow-label { font-family: var(--sans); font-weight: 700; font-size: 13px; fill: var(--ink); }
.flow-sub { font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; fill: var(--graphite-1); }
.flow-arrow { stroke: var(--graphite-2); stroke-width: 1.5; fill: none; marker-end: url(#flowArrow); }
.flow-trunk { stroke: var(--diagnostic-deep); stroke-width: 1.5; fill: none; opacity: .5; }
.flow-arrow.is-live { stroke: var(--diagnostic-deep); }
.flow-dot { fill: var(--diagnostic-deep); filter: drop-shadow(0 0 3px rgba(18,179,162,.6)); opacity: 0; }
.section.is-visible .flow-dot { opacity: 1; }
.flow-note { font-size: 13px; color: var(--graphite-1); margin-top: 14px; }

/* ---------- Reporting ---------- */
.report-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.report-points li { padding-left: 24px; position: relative; font-size: 16px; color: var(--ink-dim); }
.report-points li::before { content: ""; position: absolute; left: 0; top: 7px; width: 9px; height: 9px; border-radius: 2px; background: var(--diagnostic); }
.report-count { display: flex; align-items: baseline; gap: 16px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--hair); }
.report-count .num { font-family: var(--display); font-weight: 800; font-size: 48px; line-height: 1; color: var(--diagnostic-soft); flex: none; }
.report-count .copy { font-size: 14px; color: var(--ink-dim); max-width: 32ch; }

.report-catalog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--hair); text-align: center; }
@media (max-width: 640px) { .report-catalog { grid-template-columns: 1fr; gap: 24px; } }
.report-catalog-stat .n { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; color: var(--diagnostic-soft); }
.report-catalog-stat .l { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); margin-top: 10px; }

/* ---------- Wedge / comparison section ---------- */
.table-wrap { overflow-x: auto; padding-bottom: 4px; } /* scoped scroll, not a body-level overflow-x hack */
.wedge-table { width: 100%; min-width: 600px; border-collapse: collapse; margin-top: 8px; }
.wedge-table th, .wedge-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--hair); font-size: 14.5px; }
.wedge-table th { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--graphite-4); } /* wedge table only ever sits inside .section--light — graphite-1/diagnostic-soft/ink are dark-surface tokens and fail contrast here */
.wedge-table td.yes { color: var(--diagnostic-deep); font-weight: 700; }
.wedge-table td.no { color: var(--graphite-4); }
.wedge-table tr.us { background: rgba(18,179,162,.06); }
.wedge-table tr.us td:first-child { font-weight: 800; color: var(--graphite-9); }

.wedge-cards { display: none; }
@media (max-width: 640px) {
  .table-wrap { display: none; }
  .wedge-cards { display: grid; gap: 12px; margin-top: 8px; }
}
.wedge-card { background: var(--off); border: 1.5px solid rgba(23,25,28,.1); border-radius: var(--r); padding: 20px; }
.wedge-card.is-us { border-color: var(--diagnostic); background: rgba(18,179,162,.06); }
.wedge-card h3 { font-size: 16px; margin: 0 0 4px; }
.wedge-card dl { margin: 0; }
.wedge-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.wedge-row:last-child { border-bottom: none; }
.wedge-row dt { font-size: 13px; color: var(--graphite-4); }
.wedge-row dd { margin: 0; font-size: 14.5px; font-weight: 700; text-align: right; }
.wedge-row dd.yes { color: var(--diagnostic-deep); }
.wedge-row dd.no { color: var(--graphite-4); }

/* ---------- Cards / grid ---------- */
.card { background: var(--graphite-7); border: 1px solid var(--hair); border-radius: var(--r); padding: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Team ---------- */
.team-list { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--hair); }
.team-row { display: grid; grid-template-columns: 96px 1fr; gap: 28px; align-items: center; padding: 32px 0; border-bottom: 1px solid var(--hair); }
@media (max-width: 640px) { .team-row { grid-template-columns: 72px 1fr; gap: 18px; padding: 24px 0; } }
.team-photo { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; flex: none; }
@media (max-width: 640px) { .team-photo { width: 72px; height: 72px; } }
.team-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-info .nm { font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--ink); }
.team-info .rl { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--diagnostic-soft); margin: 3px 0 8px; }
.team-info .bio { font-size: 13.5px; color: var(--ink-dim); line-height: 1.6; margin: 0; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 820px; margin: 0 auto; }
@media (max-width: 760px) { .pricing-grid { grid-template-columns: 1fr; } }
.plan { background: var(--graphite-7); border: 1.5px solid var(--hair); border-radius: var(--r); padding: 32px; display: flex; flex-direction: column; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.plan:hover { transform: translateY(-4px); border-color: var(--graphite-2); box-shadow: 0 16px 40px rgba(0,0,0,.3); }
.plan.is-featured { border-color: var(--diagnostic); background: linear-gradient(165deg, rgba(18,179,162,.16) 0%, rgba(10,117,109,.08) 32%, var(--graphite-7) 62%); }
.plan.is-featured:hover { border-color: var(--diagnostic-soft); box-shadow: 0 16px 40px rgba(18,179,162,.18); }
.plan .tier { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--diagnostic-soft); }
.plan h3 { font-size: 26px; margin-top: 6px; }
.plan .price { font-family: var(--display); font-weight: 800; font-size: 52px; letter-spacing: -0.02em; margin: 14px 0; line-height: 1; }
.plan .price small { display: block; margin-top: 8px; font-family: var(--sans); font-weight: 500; font-size: 14px; color: var(--graphite-1); letter-spacing: 0; }
@media (prefers-reduced-motion: reduce) { .plan { transition: none; } .plan:hover { transform: none; } }
.plan ul { list-style: none; margin: 20px 0; padding: 0; display: grid; align-content: start; gap: 12px; flex: 1; }
.plan ul.two-col { grid-template-columns: 1fr 1fr; column-gap: 20px; }
.plan ul.roomy { align-content: center; gap: 22px; }
.plan ul.roomy li { font-size: 15.5px; }
@media (max-width: 560px) { .plan ul.two-col { grid-template-columns: 1fr; } }
.plan li { padding-left: 22px; position: relative; font-size: 14.5px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--diagnostic); font-weight: 800; }
.plan li.not-included { color: var(--graphite-1); } /* plan cards are dark surfaces — graphite-3 there was 2.89:1, fails even the 3:1 floor */
.plan li.not-included::before { content: "–"; color: var(--graphite-1); }
.plan-glyph { width: 52px; height: 52px; border-radius: var(--r); background: rgba(18,179,162,.14); border: 1px solid rgba(18,179,162,.3); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; box-shadow: 0 0 24px rgba(18,179,162,.16); }
.plan-glyph svg { width: 24px; height: 24px; stroke: var(--diagnostic-soft); fill: none; }

.plan-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; max-width: 820px; margin-left: auto; margin-right: auto; }
@media (max-width: 700px) { .plan-trust { grid-template-columns: 1fr; gap: 20px; } }
.plan-trust-item { display: flex; gap: 12px; align-items: flex-start; }
.plan-trust-item svg { flex: none; width: 18px; height: 18px; stroke: var(--diagnostic); fill: none; margin-top: 2px; }
.plan-trust-item p { margin: 0; font-size: 13.5px; color: var(--ink-dim); }
.plan-trust-item strong { display: block; color: var(--ink); font-size: 14.5px; margin-bottom: 2px; }

.pricing-choice { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 760px; margin: 0 auto; }
@media (max-width: 640px) { .pricing-choice { grid-template-columns: 1fr; } }
.pricing-choice-card {
  display: flex; flex-direction: column; align-items: flex-start; text-decoration: none;
  background: var(--graphite-7); border: 1.5px solid var(--hair); border-radius: var(--r);
  padding: 32px; transition: border-color .15s ease, transform .15s ease;
}
.pricing-choice-card:hover { border-color: var(--diagnostic); transform: translateY(-2px); }
.pricing-choice-card .tier { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--diagnostic-soft); }
.pricing-choice-card h3 { font-size: 21px; margin-top: 8px; color: var(--ink); }
.pricing-choice-card p { color: var(--ink-dim); font-size: 14.5px; flex: 1; margin: 12px 0 24px; }
.pricing-choice-card:hover .btn--ghost { border-color: var(--diagnostic); color: var(--diagnostic-soft); }

/* ---------- FAQ accordion ---------- */
/* FAQ only ever sits inside .section--light — ink/ink-dim are dark-surface tokens and fail contrast here */
.faq-item { border-bottom: 1px solid var(--hair); }
.faq-item h3 { margin: 0; } /* each question is wrapped in h3 for heading-navigation a11y; the button carries all the visible styling */
.faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--graphite-9); font-family: var(--display); font-weight: 700; font-size: 16px; padding: 18px 0; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.faq-q .chev { transition: transform .2s ease; flex: none; }
.faq-item.is-open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .2s ease; }
.faq-a-inner { padding: 0 0 18px; color: var(--graphite-4); font-size: 14.5px; }
.faq-item.is-open .faq-a { max-height: 400px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.field label { display: block; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; color: var(--graphite-1); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--r); border: 1.5px solid var(--graphite-2);
  background: var(--graphite-9); color: var(--ink); font-family: var(--sans); font-size: 16px; /* 16px floor — under this, iOS Safari auto-zooms into the field on focus */
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--diagnostic); outline-offset: 1px; border-color: var(--diagnostic); }
.field input::placeholder, .field textarea::placeholder { color: var(--graphite-1); opacity: 1; }
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 12.5px; color: var(--graphite-1); margin-top: 8px; }
.form-status { margin-top: 14px; font-size: 14px; }
.form-status.ok { color: var(--diagnostic-soft); }
.form-status.err { color: var(--signal-soft); }

/* ---------- Contact page ---------- */
.ticket-body { display: grid; grid-template-columns: 1fr 320px; gap: 64px; align-items: start; }
@media (max-width: 900px) {
  .ticket-body { grid-template-columns: 1fr; gap: 0; }
  .ticket-stub { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--hair); }
}
.ticket-stub .label { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--graphite-1); margin: 26px 0 14px; }
.ticket-stub .label:first-child { margin-top: 0; }
.t-row { padding: 14px 0; border-top: 1px solid var(--hair); }
.t-row:first-of-type { border-top: 0; padding-top: 0; }
.t-row .t-label { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--graphite-1); margin-bottom: 6px; }
.t-row .t-label .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--diagnostic); flex: none; }
.t-row .t-value { font-family: var(--display); font-weight: 700; font-size: 15.5px; color: var(--ink); text-decoration: none; }
.t-row a.t-value:hover { color: var(--diagnostic-soft); }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.trust-list li { position: relative; padding-left: 20px; font-size: 13.5px; color: var(--ink-dim); }
.trust-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--diagnostic); }

/* Shop-floor photo as a plain banner strip below the form, not behind the
   hero text, so it never competes with copy for contrast. */
.contact-banner { border-radius: var(--r); overflow: hidden; border: 1px solid var(--hair); aspect-ratio: 21 / 6; box-shadow: 0 24px 48px rgba(0,0,0,.35); }
.contact-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; display: block; }
@media (max-width: 640px) { .contact-banner { aspect-ratio: 4 / 3; } }
.trust-list a { text-decoration: underline; }

/* ---------- Photo band ---------- */
.photo-band { position: relative; height: 320px; overflow: hidden; }
.photo-band img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; display: block; }
.photo-band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(23,25,28,.8) 0%, rgba(23,25,28,.2) 45%, rgba(23,25,28,.2) 100%);
}
.photo-band p {
  position: absolute; left: 24px; right: 24px; bottom: 28px; z-index: 1;
  margin: 0; max-width: none; text-align: center;
  font-family: var(--display); font-weight: 700; font-size: clamp(18px, 2.4vw, 26px); color: var(--ink);
}
@media (max-width: 640px) { .photo-band { height: 220px; } }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; padding: var(--sec-y) 0; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: url('/assets/refinishcontrol-cta-shopfloor.webp') center 55% / cover no-repeat;
  opacity: .2;
}
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: 0; background: rgba(23,25,28,.6); }
.cta-band > .wrap { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(28px, 4vw, 42px); }

/* ---------- Footer ---------- */
footer { background: var(--graphite-9); border-top: 1px solid var(--hair); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-col h3 { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--graphite-1); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--ink-dim); text-decoration: none; font-size: 14px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--hair); flex-wrap: wrap; gap: 12px; }
.footer-bottom .muted { font-size: 13px; }
.parent-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--graphite-1); text-decoration: none; }

/* ---------- Utility ---------- */
.ta-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-0 { margin-bottom: 0; }
.section-head h1, .section-head h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.ta-center { margin-left: auto; margin-right: auto; text-align: center; }
/* Paragraphs keep the global 62ch reading-width cap, which is narrower than
   a 640px section-head — without margin:auto they'd sit flush-left inside
   the centered box instead of centering as a block. */
.section-head.ta-center p { margin-left: auto; margin-right: auto; }
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .flow-dot { display: none; }
}

/* ---------- 404 ---------- */
.error-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.error-page .code { font-family: var(--mono); font-size: 15vw; line-height: 1; color: var(--graphite-7); font-weight: 700; }
@media (min-width: 700px) { .error-page .code { font-size: 140px; } }
