/* GB Tech Hauling: shared styles for index.html (shippers) and drive.html (owner-operators).
   Red, white and blue (veteran owned). Navy backgrounds, Old Glory red buttons. Phone first.
   Note: the --orange* variable names are kept from the first draft; they now hold the RED accent. */

:root {
  --asphalt: #0a1a3a;         /* navy */
  --asphalt-2: #0d2149;
  --steel: #13295a;
  --line-dark: rgba(255,255,255,.14);
  --paper: #f6f6f8;
  --card: #ffffff;
  --ink: #0c1730;
  --ink-2: #4a5670;
  --line: #d9dde6;
  --on-dark: #ffffff;
  --on-dark-2: #b9c3d8;
  --orange: #c8102e;          /* Old Glory red: the one button color */
  --orange-ink: #ffffff;
  --orange-soft: rgba(200,16,46,.10);
  --red-bright: #ff4d61;      /* red text on navy (readable) */
  --blue: #1f3f8f;
  --flag-red: #b22234;
  --flag-blue: #3c3b6e;
  --good: #23a05a;
  --bad: #d23c2c;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(0,0,0,.08), 0 12px 32px rgba(0,0,0,.12);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Arial Black", "Segoe UI Black", Impact, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--paper); padding-bottom: 76px; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.015em; }
h1, h2 { font-family: var(--display); font-weight: 900; text-transform: uppercase; }
h1 { font-size: clamp(2.3rem, 8.4vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 5.4vw, 2.7rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.section { padding: 64px 0; }
.dark { background: var(--asphalt); color: var(--on-dark); }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 800; color: var(--orange); margin-bottom: .9em; }
.sub { color: var(--ink-2); max-width: 640px; font-size: 1.05rem; }
.dark .sub { color: var(--on-dark-2); }
.hl { color: var(--orange); }
.dark .hl, .hero .hl { color: var(--red-bright); }
.dark .eyebrow, .hero .eyebrow, .proof .eyebrow { color: var(--red-bright); }
.eyebrow::before { content: "★ "; }

/* ---------- Flag ribbon (stars canton + stripes), used as a divider ---------- */
.flag-ribbon { display: flex; height: 26px; }
.flag-ribbon .canton {
  width: min(38%, 280px); background-color: var(--flag-blue);
  background-image: radial-gradient(circle, #fff 1.4px, transparent 1.9px);
  background-size: 14px 8.6px;
}
.flag-ribbon .stripes {
  flex: 1;
  background: repeating-linear-gradient(180deg, var(--flag-red) 0 2px, #fff 2px 4px);
  background-size: 100% 4px;
}
.flag-ribbon .stripes { background: repeating-linear-gradient(180deg, var(--flag-red) 0 3.7px, #fff 3.7px 7.4px); }

/* Waving flag in the hero background */
.flag-wave { position: absolute; top: 0; right: 0; width: min(760px, 70%); aspect-ratio: 400 / 260; pointer-events: none; opacity: .30; overflow: hidden;
  -webkit-mask-image: linear-gradient(200deg, #000 30%, transparent 75%); mask-image: linear-gradient(200deg, #000 30%, transparent 75%); }
.flag-wave svg { width: 110%; height: 100%; transform-origin: left center; animation: wave 5s ease-in-out infinite alternate; }
@keyframes wave { from { transform: skewY(1.5deg) scaleX(.98); } to { transform: skewY(-2.5deg) translateX(-4%); } }

/* Star field */
.stars-bg { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.55) 1px, transparent 1.6px),
    radial-gradient(circle, rgba(255,255,255,.35) 1px, transparent 1.6px);
  background-size: 90px 90px, 140px 140px; background-position: 0 0, 45px 70px;
  animation: twinkle 5s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: .25; } }

/* Veteran badge */
.vet-badge { display: flex; width: fit-content; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid var(--line-dark); font-weight: 900; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.vet-badge .star { width: 30px; height: 30px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; }
.vet-badge .star svg { width: 16px; height: 16px; color: #fff; }
.fine { font-size: .8rem; color: var(--ink-2); }
.dark .fine { color: var(--on-dark-2); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 54px; padding: 0 28px; border-radius: 12px; border: 2px solid transparent;
  font: inherit; font-weight: 900; letter-spacing: .02em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--orange); color: var(--orange-ink); box-shadow: 0 6px 20px rgba(200,16,46,.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(200,16,46,.5); background: #d91a39; }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: rgba(255,255,255,.07); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.link-btn { background: none; border: 0; padding: 8px 0; font: inherit; font-weight: 700; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(10,26,58,.94); backdrop-filter: blur(10px); color: var(--on-dark); border-bottom: 1px solid var(--line-dark); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; border-radius: 9px; background: var(--orange); color: var(--orange-ink); display: grid; place-items: center; font-family: var(--display); font-size: .95rem; letter-spacing: -.03em; }
.brand-logo { display: block; height: 46px; width: auto; }
.brand { transition: opacity .25s ease, transform .25s ease; }
.brand.brand-hide { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.hero-logo { display: block; width: min(100%, 340px); height: auto; margin: -18px 0 6px -4%;
  -webkit-mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 58%, transparent 100%);
          mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 58%, transparent 100%);
  animation: logo-in .9s cubic-bezier(.2,.8,.2,1) both; }
@keyframes logo-in { from { opacity: 0; transform: scale(.9); } }
@media (min-width: 900px) { .hero-logo { width: min(100%, 460px); } }
@media (prefers-reduced-motion: reduce) { .hero-logo { animation: none; } }
.brand-name { font-family: var(--display); text-transform: uppercase; font-size: .98rem; line-height: 1; letter-spacing: .01em; }
.brand-name small { display: block; font-family: var(--font); font-weight: 700; font-size: .62rem; letter-spacing: .22em; color: var(--on-dark-2); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav-link { display: none; text-decoration: none; font-weight: 700; font-size: .92rem; padding: 8px 12px; border-radius: 8px; color: var(--on-dark-2); }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--on-dark); background: rgba(255,255,255,.06); }
.call-pill { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: .92rem; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line-dark); }
.call-pill svg { width: 16px; height: 16px; color: var(--red-bright); }
.call-full { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--asphalt); color: var(--on-dark); padding: 44px 0 0; }
.hero::before { /* soft orange glow */
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(200,16,46,.28), transparent 62%); pointer-events: none;
}
.hero { background: radial-gradient(1200px 600px at 10% 0%, #16346f 0%, transparent 60%), var(--asphalt); }
.hero-inner { position: relative; display: grid; gap: 34px; align-items: center; }
.hero-inner > * { min-width: 0; }
.hero .lede { font-size: 1.14rem; color: var(--on-dark-2); max-width: 560px; }
.hero-ctas { display: flex; flex-direction: column; gap: 12px; margin: 26px 0 20px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: .82rem; font-weight: 800; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); }
.chips li::before { content: "★ "; color: var(--red-bright); }

/* The truck scene: drawn in SVG, road lines move */
.scene { position: relative; margin-top: 10px; }
.scene svg { width: 100%; height: auto; }
.road { height: 64px; background: #050c1d; position: relative; overflow: hidden; border-top: 3px solid #1d2f57; }
.road::after {
  content: ""; position: absolute; left: 0; right: -120px; top: 29px; height: 6px;
  background: repeating-linear-gradient(90deg, #ffffff 0 60px, transparent 60px 120px);
  animation: road 1.1s linear infinite;
}
@keyframes road { to { transform: translateX(-120px); } }
.wheel { transform-box: fill-box; transform-origin: center; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.truck-bob { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(1.5px); } }

/* ---------- Proof strip ---------- */
.proof { background: var(--asphalt-2); color: var(--on-dark); padding: 26px 0; border-top: 1px solid var(--line-dark); }
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; }
.stat strong { display: block; font-family: var(--display); font-size: clamp(1.8rem, 6vw, 2.6rem); line-height: 1; color: #fff; }
.stat strong::after { content: ""; display: block; width: 34px; height: 4px; margin-top: 8px; background: linear-gradient(90deg, var(--orange) 0 33%, #fff 33% 66%, #4a6fd1 66%); border-radius: 2px; }
.stat span { display: block; font-size: .85rem; color: var(--on-dark-2); margin-top: 6px; line-height: 1.35; }
.proof .fine { margin: 16px 0 0; }
.proof .fine a { color: var(--on-dark); }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; gap: 14px; }

/* Driver problems ("Sound familiar?") */
.pain-grid { display: grid; gap: 14px; margin-top: 26px; }
.pain { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--orange); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.pain-q { font-family: var(--display); font-size: 1.15rem; line-height: 1.2; color: var(--ink); margin: 0 0 .6em; display: flex; gap: 10px; align-items: flex-start; }
.pain-x { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-size: .8rem; margin-top: -1px; }
.pain p:last-child { color: var(--ink-2); margin: 0; }

/* Real photos */
.hero-photo { position: relative; margin: 0 0 40px; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.45); border: 3px solid #fff; }
.hero-photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--flag-red) 0 33.3%, #fff 33.3% 66.6%, var(--flag-blue) 66.6%); }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-photo figcaption { position: absolute; left: 12px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(10,26,58,.82); color: #fff; font-size: .8rem; font-weight: 800; backdrop-filter: blur(6px); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red-bright); box-shadow: 0 0 0 0 rgba(255,77,97,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(255,77,97,0); } 100% { box-shadow: 0 0 0 0 rgba(255,77,97,0); } }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; }
.gallery figure { position: relative; margin: 0; border-radius: 14px; overflow: hidden; background: #dfe3e8; }
.gallery img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; font-size: .78rem; font-weight: 800; color: #fff; background: linear-gradient(transparent, rgba(5,12,29,.85)); }
.gallery .g-big { grid-column: 1 / -1; }
.gallery .g-big figcaption { font-size: .95rem; padding: 30px 14px 12px; }
@media (min-width: 760px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .gallery .g-big { grid-column: span 2; grid-row: span 2; }
}

/* Going it alone vs. with GB Tech */
.vs { margin-top: 26px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.vs-head, .vs-row { display: grid; grid-template-columns: 1fr 1fr; }
.vs-head > span:first-child { display: none; }
.vs-head span { padding: 12px 14px; font-family: var(--display); text-transform: uppercase; font-size: .82rem; letter-spacing: .06em; }
.vs-head .vs-alone { background: #eef0f3; color: var(--ink-2); }
.vs-head .vs-us { background: var(--asphalt); color: #fff; }
.vs-row { border-top: 1px solid var(--line); }
.vs-row b { grid-column: 1 / -1; padding: 12px 14px 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--orange); }
.vs-row span { padding: 6px 14px 14px 36px; position: relative; font-size: .95rem; line-height: 1.4; }
.vs-row span::before { position: absolute; left: 12px; top: 6px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: .65rem; font-weight: 800; color: #fff; }
.vs-row .vs-alone { color: var(--ink-2); }
.vs-row .vs-alone::before { content: "✕"; background: #9aa3ad; }
.vs-row .vs-us { color: var(--ink); font-weight: 700; background: rgba(200,16,46,.05); }
.vs-row .vs-us::before { content: "✓"; background: var(--orange); }
.vs-total { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; padding: 22px; border-radius: var(--radius); background: var(--asphalt); color: #fff; border-left: 5px solid var(--orange); }
.vs-total p { margin: 0; font-size: 1.15rem; }
.vs-total strong { color: var(--red-bright); }
@media (min-width: 760px) {
  .vs-head, .vs-row { grid-template-columns: 180px 1fr 1fr; }
  .vs-head > span:first-child { display: block; }
  .vs-row b { grid-column: auto; padding: 14px; }
  .vs-row span { padding: 14px 14px 14px 40px; }
  .vs-row span::before { top: 14px; left: 14px; }
  .vs-total { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* We handle / you handle */
.duty-grid { display: grid; gap: 14px; margin-top: 26px; }
.duty { border-radius: var(--radius); padding: 24px; border: 1px solid var(--line-dark); background: rgba(255,255,255,.04); }
.duty h3 { margin: 0 0 12px; font-size: 1.1rem; }
.duty ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.duty li { position: relative; padding-left: 30px; color: var(--on-dark-2); }
.duty li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 800; background: var(--orange); color: #fff; }
.duty-us { border-top: 4px solid var(--orange); }
.duty-you { border-top: 4px solid #4a6fd1; }
.duty-you li::before { background: #4a6fd1; }
@media (min-width: 640px) { .pain-grid, .duty-grid { grid-template-columns: 1fr 1fr; } .pain:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card p { color: var(--ink-2); margin: 0; }
.card-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--orange-soft); color: var(--orange); display: grid; place-items: center; margin-bottom: 14px; }
.card-icon svg { width: 26px; height: 26px; }
.equip-card { overflow: hidden; padding: 0; }
.equip-card .art { background: radial-gradient(circle at 80% 0%, #1f3f8f, #0a1a3a 70%); padding: 18px 14px 0; border-bottom: 6px solid; border-image: repeating-linear-gradient(90deg, var(--flag-red) 0 18px, #fff 18px 36px) 6; }
.equip-card .art { aspect-ratio: 16 / 10; box-sizing: border-box; display: flex; align-items: flex-end; }
.equip-card .art svg { width: 100%; }
.equip-card .art.photo { padding: 0; overflow: hidden; position: relative; }
.equip-card .art.photo img { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: center 72%; transition: transform .5s ease; }
.equip-card:hover .art.photo img { transform: scale(1.05); }
.equip-card .body { padding: 18px 22px 22px; }
.equip-card h3 { margin-bottom: .3em; }

/* ---------- Pay calculator ---------- */
.calc { background: var(--steel); border: 1px solid var(--line-dark); border-radius: 22px; padding: 26px 22px; }
.calc label { display: block; font-weight: 800; margin-bottom: 10px; }
.calc-rate { font-family: var(--display); font-size: 2.2rem; line-height: 1; }
.calc input[type=range] { width: 100%; accent-color: var(--orange); height: 34px; margin: 10px 0 4px; }
.calc-scale { display: flex; justify-content: space-between; font-size: .78rem; color: var(--on-dark-2); }
.calc-out { margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--line-dark); display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.calc-out div span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--on-dark-2); font-weight: 800; }
.calc-out div strong { display: block; font-family: var(--display); font-size: clamp(1.7rem, 7vw, 2.5rem); line-height: 1.1; }
.calc-out .keep strong { color: var(--red-bright); }
.bar { grid-column: 1 / -1; height: 14px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; display: flex; }
.bar i { display: block; background: var(--orange); }

/* ---------- Step form (the quiz-style application / quote) ---------- */
.stepper { background: var(--card); color: var(--ink); border-radius: 22px; box-shadow: 0 24px 60px rgba(0,0,0,.35); padding: 22px 18px; }
.stepper-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.stepper-count { font-size: .82rem; font-weight: 800; color: var(--ink-2); text-transform: uppercase; letter-spacing: .1em; }
.stepper-bar { flex: 1; height: 8px; background: #ebe7df; border-radius: 999px; overflow: hidden; }
.stepper-bar i { display: block; height: 100%; width: 0; background: var(--orange); border-radius: inherit; transition: width .35s ease; }
.step { animation: stepIn .3s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } }
.step-q { font-family: var(--display); text-transform: uppercase; font-size: clamp(1.25rem, 4.6vw, 1.6rem); line-height: 1.1; margin: 4px 0 16px; }
.picks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pick {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left;
  font: inherit; color: var(--ink); background: #faf8f4; border: 2px solid var(--line); border-radius: 14px;
  padding: 14px 12px; min-height: 92px; cursor: pointer; transition: border-color .15s, background .15s, transform .1s;
}
.pick:hover { border-color: #b9b2a5; }
.pick:active { transform: scale(.98); }
.pick svg { width: 54px; height: 30px; color: var(--ink); }
.pick b { font-size: .98rem; line-height: 1.2; }
.pick small { font-size: .8rem; color: var(--ink-2); line-height: 1.3; }
.pick[aria-pressed="true"] { border-color: var(--orange); background: #fdecee; }
.pick[aria-pressed="true"]::after {
  content: "✓"; position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--orange); color: var(--orange-ink); font-size: .78rem; font-weight: 900; display: grid; place-items: center;
}
.picks.one-col { grid-template-columns: 1fr; }
.picks.one-col .pick { min-height: 0; flex-direction: row; align-items: center; padding: 14px; }
.fields { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 800; font-size: .9rem; }
.field em { font-weight: 400; font-style: normal; color: var(--ink-2); }
.field input, .field select {
  font: inherit; font-size: 16px; min-height: 52px; padding: 0 14px; width: 100%;
  border-radius: 12px; border: 2px solid var(--line); background: #faf8f4; color: var(--ink);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--orange); }
.field.invalid input, .field.invalid select { border-color: var(--bad); }
.err { color: var(--bad); font-weight: 700; font-size: .85rem; }
.err:empty { display: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 4px; font-size: .78rem; color: var(--ink-2); line-height: 1.45; cursor: pointer; }
.consent input { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 1px; accent-color: var(--orange); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.step-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.step-actions .btn { flex: 1; }
.step-actions .link-btn { color: var(--ink-2); flex: 0 0 auto; }
.form-error { color: var(--bad); font-weight: 700; margin: 10px 0 0; }
.form-error:empty { display: none; }
.done { text-align: center; padding: 18px 4px; }
.done-badge { width: 66px; height: 66px; border-radius: 50%; background: var(--good); color: #fff; font-size: 2rem; font-weight: 900; display: grid; place-items: center; margin: 0 auto 14px; animation: pop .4s ease; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.done h3 { font-family: var(--display); text-transform: uppercase; font-size: 1.5rem; }
.done p { color: var(--ink-2); }

/* ---------- Steps (how it works) ---------- */
.how { counter-reset: how; display: grid; gap: 14px; }
.how li { list-style: none; position: relative; padding: 20px 20px 20px 74px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.how li::before {
  counter-increment: how; content: counter(how); position: absolute; left: 18px; top: 18px; width: 40px; height: 40px; border-radius: 10px;
  background: var(--orange); color: #fff; font-family: var(--display); display: grid; place-items: center; font-size: 1.2rem;
}
.how li p { color: var(--ink-2); margin: 0; }
ol.how { padding: 0; margin: 0; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; font-weight: 800; padding: 18px 36px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.6rem; font-weight: 400; color: var(--orange); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); }

/* ---------- Final CTA ---------- */
.final { text-align: center; }
.final h2 { margin-bottom: .3em; }
.final .btn { min-width: 260px; }

/* ---------- Footer ---------- */
.site-footer { background: #061230; color: var(--on-dark-2); padding: 34px 0; font-size: .86rem; }
.site-footer a { color: var(--on-dark); }
.footer-inner { display: grid; gap: 12px; }
.footer-inner strong { color: var(--on-dark); }

/* ---------- Sticky mobile bar ---------- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: auto 1fr; gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(10,26,58,.97); border-top: 1px solid var(--line-dark);
}
.sticky-bar .btn { min-height: 50px; padding: 0 16px; }
.sticky-call { background: var(--steel); color: var(--on-dark); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Legal pages (privacy.html, terms.html) ---------- */
.legal-hero { background: radial-gradient(900px 400px at 10% 0%, #16346f 0%, transparent 60%), var(--asphalt); color: var(--on-dark); padding: 46px 0 34px; }
.legal-hero h1 { font-size: clamp(2rem, 7vw, 3.2rem); margin-bottom: .2em; }
.legal-hero p { color: var(--on-dark-2); margin: 0; }
.legal { padding: 40px 0 72px; }
.legal h2 { font-size: 1.25rem; margin-top: 2em; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: .45em; }
.legal strong { color: var(--ink); }
.legal a { color: var(--orange); font-weight: 700; }
.legal .back { display: inline-block; margin-top: 2em; }

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
  .hero-ctas { flex-direction: row; }
  .proof-grid { grid-template-columns: repeat(4, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .picks { grid-template-columns: repeat(2, 1fr); }
  .fields { grid-template-columns: 1fr 1fr; }
  .fields .wide { grid-column: 1 / -1; }
  .call-full { display: inline; }
  .call-short { display: none; }
  .stepper { padding: 28px 26px; }
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .sticky-bar { display: none; }
  .nav-link { display: inline-block; }
  .section { padding: 92px 0; }
  .hero { padding-top: 64px; }
  .hero-inner { grid-template-columns: 1.05fr .95fr; gap: 48px; }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .footer-inner { grid-template-columns: 1.5fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
