:root {
  /* Light theme tokens (site-redesign Interfaces & Data) */
  --bg: #f4f3ef;
  --surface: #ffffff;
  --ink: #14171c;
  --muted: #535862;
  --line: #dcdad3;
  --accent: #c2410c;
  --accent-hover: #a8380a;
  --accent-soft: #fdf0e7;
  --on-accent: #ffffff;
  --band: #14171c;
  --band-2: #1e232b;
  --on-band: #eceae4;
  --on-band-muted: #b3b7bf;
  --band-line: #30353e;
  --band-accent: #ff7a2e;
  --yes: #2f7d4f;
  --no: #b42318;
  --mixed: #9a6700;
  --accent-ink: var(--on-accent); /* old name, kept until every rule uses --on-accent */
  --radius: 10px;
  --max: 1120px;
  --font-head: "Barlow Semi Condensed", "Inter", system-ui, sans-serif;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121418;
    --surface: #1b1e24;
    --ink: #eceae4;
    --muted: #a3a7b0;
    --line: #2d3139;
    --accent: #ff7a2e;
    --accent-hover: #ff8f4f;
    --accent-soft: #2e2018;
    --on-accent: #14171c;
    --band: #0b0d10;
    --yes: #5fbf86;
    --no: #ff7b72;
    --mixed: #f2b84b;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
h1, h2, h3 { font-family: var(--font-head); letter-spacing: -0.01em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
/* Short pages: footer stays at the bottom of the screen */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header: dark, stays at the top, send button always visible (site-redesign FR-3) */
.top { position: sticky; top: 0; z-index: 50; background: var(--band); color: var(--on-band); border-bottom: 1px solid var(--band-line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { font-weight: 600; letter-spacing: -0.01em; text-decoration: none; display: flex; align-items: center; gap: 10px; min-height: 44px; white-space: nowrap; }
.brand-mark { width: 22px; height: 22px; border-radius: 5px; background: var(--band-accent); display: inline-block; position: relative; flex: none; }
.brand-mark::after { content: ""; position: absolute; inset: 6px 5px 5px 6px; border: 2px solid var(--band); border-radius: 2px; border-top-color: transparent; }
.top nav { display: flex; gap: 4px; margin-left: auto; }
.top nav a { font-size: 15px; color: var(--on-band-muted); text-decoration: none; padding: 0 10px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 6px; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--on-band); }
.top nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--band-accent); border-radius: 0; }
.top .top-cta { padding: 0 16px; min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; white-space: nowrap; }
.top-cta .short { display: none; }
.top :focus-visible { outline-color: var(--band-accent); }

/* Buttons */
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  font-weight: 600; text-decoration: none; padding: 14px 22px; border-radius: 8px;
  border: 0; font-size: 16px; cursor: pointer;
}
.btn:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }

/* Hero */
/* Hero: dark band over a real factory photo (site-redesign FR-4, FR-4b).
   Local tokens make every child (card, verdict, trust list) adapt. */
.hero {
  --ink: var(--on-band); --muted: var(--on-band-muted); --surface: var(--band-2); --line: var(--band-line);
  --yes: #5fbf86; --accent-soft: rgba(255,122,46,.14);
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--band); color: var(--ink); padding: 80px 0 64px;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11,13,16,.88) 0%, rgba(11,13,16,.8) 55%, rgba(11,13,16,.45) 100%); }
.hero h1 { font-size: clamp(40px, 6vw, 66px); line-height: 1.02; }
.hero .eyebrow { color: var(--band-accent); background: var(--accent-soft); border: 1px solid rgba(255,122,46,.35); }
.hero .btn-ghost { color: var(--on-band); border-color: rgba(236,234,228,.55); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.08); }
.hero .flowcard { box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.hero a:not(.btn) { color: var(--on-band); }
.hero :focus-visible { outline-color: var(--band-accent); }
.photo-caption { position: absolute; right: 16px; bottom: 12px; margin: 0; font-size: 12px; color: var(--on-band-muted); background: rgba(11,13,16,.85); padding: 3px 8px; border-radius: 4px; }

/* Proof strip (FR-5) */
.proof { background: var(--surface); border-bottom: 1px solid var(--line); }
.proof ul { list-style: none; margin: 0; padding: 28px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.proof b { display: block; font-family: var(--font-head); font-size: 40px; line-height: 1; color: var(--accent); margin-bottom: 4px; }
.proof span { font-size: 15px; color: var(--muted); }

/* Tasks we check: photo tiles and industries (FR-9, FR-11) */
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
#tasks h2 { font-size: clamp(30px, 4vw, 42px); margin: 0 0 8px; }
.tile-group { font-size: 22px; margin: 36px 0 14px; }
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { display: block; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.tile img, .tile .tile-art { display: block; width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; }
.tile-label { display: block; padding: 14px 16px; font-family: var(--font-head); font-weight: 700; font-size: 20px; }
.tile-note { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.industries { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.industries li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 18px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: 15px; font-weight: 500; }
.industries svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 14px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); padding: 5px 10px; border-radius: 999px; margin-bottom: 18px;
}
h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 18px; }
.lede { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 28px; margin-top: 28px; font-size: 15px; color: var(--muted); list-style: none; padding: 0; }
.trust li::before { content: "✓"; color: var(--yes); font-weight: 700; margin-right: 7px; }

/* Hero visual: video → verdict */
.flowcard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: 0 1px 0 var(--line); }
.phone {
  aspect-ratio: 16 / 9; border-radius: 8px; background: #23262d; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.phone svg { width: 100%; height: 100%; }
.phone-label { position: absolute; left: 10px; bottom: 8px; font-size: 12px; color: #c9ccd2; }
.arrow { text-align: center; color: var(--muted); font-size: 13px; padding: 10px 0; }
.verdict { border: 1px solid var(--line); border-radius: 8px; padding: 14px; font-size: 14px; }
.verdict-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.verdict-head strong { font-size: 16px; }
.pill { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--yes) 15%, transparent); color: var(--yes); }
.verdict dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; }
.verdict dt { color: var(--muted); }
.verdict dd { margin: 0; }
.flow-caption { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.flow-caption a { display: inline-block; font-weight: 600; }

/* Sections */
section { padding: 80px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.01em; line-height: 1.08; margin: 0 0 10px; }
.section-lede { color: var(--muted); margin: 0 0 36px; max-width: 40em; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { border-top: 3px solid var(--ink); padding: 18px 0 0; counter-increment: step; }
.steps li::before {
  content: "0" counter(step); display: block; font-family: var(--font-head); font-weight: 700;
  font-size: 36px; line-height: 1; color: var(--accent); margin-bottom: 10px;
}
.steps h3 { margin: 0 0 6px; font-size: 22px; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }
.steps a { color: var(--accent); font-weight: 600; }

/* Report preview */
.report-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 28px 1fr; }
.checklist li:last-child { border-bottom: 0; }
.checklist .n { color: var(--accent); font-weight: 700; }
.checklist b { display: block; }
.checklist span.d { color: var(--muted); font-size: 15px; }

.doc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; font-size: 15px; position: relative; }
section.alt .doc { background: var(--bg); }
.doc-tag {
  position: absolute; top: -11px; right: 18px; font-size: 12px; font-weight: 600;
  background: var(--ink); color: var(--bg); padding: 3px 9px; border-radius: 999px;
}
.doc h3 { margin: 0 0 2px; font-size: 18px; }
.doc .meta { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.doc .note { background: var(--accent-soft); border-left: 3px solid var(--accent); padding: 8px 12px; font-size: 13px; margin-bottom: 16px; border-radius: 0 6px 6px 0; }
.doc h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 16px 0 6px; }
.doc table { width: 100%; border-collapse: collapse; }
.doc td { padding: 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc td:first-child { color: var(--muted); width: 42%; padding-right: 12px; }
.doc .big { font-size: 20px; font-weight: 700; color: var(--yes); }

/* Neutral */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why div { border-top: 3px solid var(--accent); padding-top: 14px; }
.why h3 { margin: 0 0 6px; font-size: 18px; }
.why p { margin: 0; color: var(--muted); font-size: 16px; }
.compare { margin-top: 36px; width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.compare th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.compare tr.us td { font-weight: 600; background: var(--accent-soft); }
.table-scroll { overflow-x: auto; }

/* Dark band sections (now "Send your task"; site-redesign D-4): local tokens so children adapt */
section.band {
  --ink: var(--on-band); --muted: var(--on-band-muted); --line: var(--band-line); --surface: var(--band-2);
  --yes: #5fbf86; --no: #ff7b72; --mixed: #f2b84b;
  background: var(--band); color: var(--ink); border-block: 1px solid var(--band-line);
}
.band h2 { color: var(--ink); }
.band .kicker, .hero .kicker { color: var(--band-accent); }
.band a:not(.btn) { color: var(--on-band); }
.band :focus-visible { outline-color: var(--band-accent); }
/* The form box stays light in every theme, so the Tally form and fallback read the same */
.band .form-box {
  --ink: #14171c; --muted: #535862; --line: #dcdad3; --surface: #ffffff; --accent: #c2410c;
  background: #ffffff; color: var(--ink); border: 0; border-radius: 16px; padding: 12px 26px; box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.band .form-box a { color: var(--ink); }
.band .form-box :focus-visible { outline-color: #c2410c; }

/* Why us: light cards (site-redesign D-4) */
#why .why div { background: var(--bg); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 20px; }
#why .why h3 { font-size: 20px; }
#why .compare { background: var(--bg); border-radius: var(--radius); }

.mk::before { font-weight: 700; margin-right: 6px; }
.mk.y::before { content: "✓"; color: var(--yes); }
.mk.n::before { content: "✗"; color: var(--no, #c0392b); }
.mk.m::before { content: "~"; color: var(--mixed, #b7791f); }
.compare tr.us td { box-shadow: inset 0 2px 0 var(--accent), inset 0 -2px 0 var(--accent); }
.compare tr.us td:first-child { box-shadow: inset 0 2px 0 var(--accent), inset 0 -2px 0 var(--accent), inset 3px 0 0 var(--accent); }
.compare tr.us td:last-child { box-shadow: inset 0 2px 0 var(--accent), inset 0 -2px 0 var(--accent), inset -3px 0 0 var(--accent); }

/* Phones: each option is a card (ADR-6) */
@media (max-width: 640px) {
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare td { display: block; width: 100%; }
  .compare tr { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; background: var(--surface); }
  .compare tr.us { border: 2px solid var(--accent); background: var(--accent-soft); }
  .compare tr.us td, .compare tr.us td:first-child, .compare tr.us td:last-child { box-shadow: none; background: none; }
  .compare td { display: flex; justify-content: space-between; gap: 14px; border: 0; padding: 5px 0; text-align: right; }
  .compare td::before { content: attr(data-label); color: var(--muted); font-size: 13px; font-weight: 400; text-align: left; flex: 0 0 45%; }
  .compare td:first-child { font-weight: 700; font-size: 16px; text-align: left; padding-bottom: 8px; }
  .compare td:first-child::before { content: none; }
}

/* Form */
.form-grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 40px; align-items: start; }
.form-side p { color: var(--muted); }
.form-side ul { padding-left: 18px; color: var(--muted); font-size: 16px; }
.form-box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px 22px; min-height: 320px; }
section.alt .form-box { background: var(--bg); }
.form-placeholder { padding: 28px 4px; }
.form-placeholder h3 { margin: 0 0 6px; }
.form-placeholder code { background: var(--accent-soft); padding: 1px 6px; border-radius: 4px; font-size: 14px; }
.form-placeholder ol { color: var(--muted); font-size: 15px; padding-left: 20px; }
.fallback-mail { font-size: 15px; color: var(--muted); margin-top: 14px; }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { font-weight: 600; cursor: pointer; font-size: 17px; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

footer { padding: 40px 0 48px; background: var(--band); color: var(--on-band-muted); font-size: 14px; border-top: 1px solid var(--band-line); }
footer a { color: var(--on-band); }
footer a { display: inline-block; padding: 2px 0; }
footer :focus-visible { outline-color: var(--band-accent); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.privacy { max-width: 760px; }
.privacy p { color: var(--muted); margin: 0; }

/* Guide + thank-you pages */
.page { padding: 0 0 72px; }
/* Page title band on the inner pages (site-redesign FR-7) */
.page-head {
  --ink: var(--on-band); --muted: var(--on-band-muted); --line: var(--band-line); --surface: var(--band-2);
  --yes: #5fbf86; --accent-soft: rgba(255,122,46,.14);
  background: var(--band); color: var(--ink); padding: 56px 0 44px; margin-bottom: 40px; border-bottom: 1px solid var(--band-line);
}
.page-head .lede, .page-head .meta-line { margin-bottom: 0; }
.page-head .eyebrow { color: var(--band-accent); background: var(--accent-soft); border: 1px solid rgba(255,122,46,.35); }
.page-head a { color: var(--on-band); }
.page-head :focus-visible { outline-color: var(--band-accent); }
.page .wrap { max-width: 780px; }
.page h1 { font-size: clamp(30px, 4.2vw, 42px); }
.page h2 { font-size: 24px; margin-top: 40px; }
.page ol, .page ul { padding-left: 22px; }
.page li { margin: 6px 0; }
.shots { display: grid; gap: 14px; margin: 18px 0; }
.shot { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.shot .num { width: 36px; height: 36px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.shot h3 { margin: 0 0 4px; font-size: 17px; }
.shot p { margin: 0; color: var(--muted); font-size: 15px; }
.shot .len { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 18px 20px; margin: 28px 0; }
.callout p { margin: 0 0 12px; }
.thanks-icon { width: 56px; height: 56px; border-radius: 50%; background: color-mix(in srgb, var(--yes) 15%, transparent); color: var(--yes); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; margin-bottom: 20px; }

@media (max-width: 860px) {
  .hero { padding: 44px 0 48px; }
  .hero-shade { background: rgba(11,13,16,.76); }
  .proof ul { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .industries { grid-template-columns: repeat(3, 1fr); }
  .hero-grid, .report-grid, .form-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps, .why { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  /* Phone: the sample card comes right after the buttons, before the trust list (ADR-5, AC-10) */
  .hero-grid { gap: 0; }
  .hero-text { display: contents; }
  .hero-text .eyebrow { justify-self: start; }
  .hero .flowcard { order: 1; margin-top: 28px; }
  .hero-text .trust { order: 2; }
  section { padding: 48px 0; }
  .top nav { display: none; }
  .top .top-cta { margin-left: auto; }
  .top-cta .long { display: none; }
  .top-cta .short { display: inline; }
  .brand { font-size: 15px; }
  .shot { grid-template-columns: 40px 1fr; }
  .shot .len { grid-column: 2; }
}

.doc-link { display: block; text-decoration: none; color: inherit; transition: border-color .15s; }
.doc-link:hover { border-color: var(--accent); }
.doc-cta { margin: 12px 0 0; font-weight: 600; }
.doc-cta a { color: var(--accent); text-decoration: none; }

@media (max-width: 400px) {
  .tiles { grid-template-columns: 1fr; }
  .industries { grid-template-columns: 1fr 1fr; }
}

/* Very narrow phones: let the brand wrap so the send button always fits (FR-3, 320px edge case) */
@media (max-width: 360px) {
  .top .wrap { gap: 12px; }
  .brand { white-space: normal; line-height: 1.15; font-size: 14px; max-width: 9.5em; }
  .top .top-cta { padding: 0 12px; }
  .rep th, .rep th.num { white-space: normal; overflow-wrap: anywhere; }
}
