/* ROHK — Driveways & Patios, Fareham
   Palette derived from the materials themselves: sharp sand, wet tarmac, clay brick. */

:root {
  /* light — sharp sand ground */
  --ground:   #EFEAE2;
  --surface:  #FAF8F4;
  --surface-2:#E6E0D5;
  --ink:      #1A1D1F;
  --ink-2:    #3A3F43;
  --muted:    #615A52;
  --line:     #D6CFC2;
  --accent:   #A9432A;
  --accent-in:#FFFFFF;
  --accent-sf:#F3E3DD;
  --accent-on-dark: #EFA285;
  --logo-filter: invert(1) brightness(.12);
  --slate:    #2E3438;
  --ok:       #3F6B45;
  --shadow:   0 1px 2px rgba(26,29,31,.06), 0 8px 24px -12px rgba(26,29,31,.18);
  --shadow-lg:0 2px 4px rgba(26,29,31,.08), 0 24px 60px -20px rgba(26,29,31,.32);

  --fd: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --fb: "Source Serif 4", Georgia, "Times New Roman", serif;

  --wrap: 1340px;
  --pad: clamp(1.15rem, 4vw, 2.5rem);
  --r: 3px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:   #15181A;
    --surface:  #1D2124;
    --surface-2:#262B2F;
    --ink:      #EDEAE4;
    --ink-2:    #C6C1B8;
    --muted:    #9A958D;
    --line:     #333A3F;
    --accent:   #D2694A;
    --accent-in:#1A0F0B;
    --accent-sf:#2B1D18;
    --logo-filter: none;
    --slate:    #C6C1B8;
    --ok:       #7FB287;
    --shadow:   0 1px 2px rgba(0,0,0,.5), 0 8px 24px -12px rgba(0,0,0,.7);
    --shadow-lg:0 2px 4px rgba(0,0,0,.6), 0 24px 60px -20px rgba(0,0,0,.85);
  }
}
:root[data-theme="dark"] {
  --ground:   #15181A;
  --surface:  #1D2124;
  --surface-2:#262B2F;
  --ink:      #EDEAE4;
  --ink-2:    #C6C1B8;
  --muted:    #9A958D;
  --line:     #333A3F;
  --accent:   #D2694A;
  --accent-in:#1A0F0B;
  --accent-sf:#2B1D18;
  --logo-filter: none;
  --slate:    #C6C1B8;
  --ok:       #7FB287;
  --shadow:   0 1px 2px rgba(0,0,0,.5), 0 8px 24px -12px rgba(0,0,0,.7);
  --shadow-lg:0 2px 4px rgba(0,0,0,.6), 0 24px 60px -20px rgba(0,0,0,.85);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--fd);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--fd); font-weight: 800; letter-spacing: -.025em; text-wrap: balance; margin: 0; line-height: 1.04; }
p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.eyebrow {
  font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 .85rem;
  display: flex; align-items: center; gap: .6rem;
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.prose { font-family: var(--fb); font-size: 1.0625rem; line-height: 1.62; color: var(--ink-2); max-width: min(64ch, 100%); }
.prose + .prose { margin-top: .9rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .92rem 1.5rem; border-radius: var(--r); border: 1.5px solid transparent;
  font-weight: 700; font-size: .95rem; letter-spacing: -.01em; text-decoration: none;
  cursor: pointer; transition: transform .12s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-in); border-color: var(--accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, #000); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: var(--surface); }
.btn-lg { padding: 1.05rem 1.8rem; font-size: 1.02rem; }
.btn svg { width: 17px; height: 17px; flex: none; }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.hdr[data-stuck="1"] { border-bottom-color: var(--line); }
.hdr-in { display: flex; align-items: center; gap: 1.25rem; height: 70px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand img { height: 27px; width: auto; }
.brand img, .ftr-logo { filter: var(--logo-filter, none); }
.brand-sub {
  display: none; font-size: .64rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; padding-left: .8rem; border-left: 1px solid var(--line);
}
.nav { display: none; gap: 1.35rem; white-space: nowrap; }
.nav a { text-decoration: none; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.nav a:hover { color: var(--accent); }
.hdr-call { display: none; align-items: center; gap: .5rem; text-decoration: none; font-weight: 800; font-size: 1.02rem; letter-spacing: -.02em; }
.hdr-call svg { width: 16px; height: 16px; color: var(--accent); }
.hdr .btn { display: none; }

.burger {
  display: grid; place-items: center; width: 42px; height: 42px;
  background: transparent; border: 1.5px solid var(--line); border-radius: var(--r); cursor: pointer;
}
.burger span { display: block; width: 17px; height: 1.5px; background: var(--ink); box-shadow: 0 -5px var(--ink), 0 5px var(--ink); }

@media (min-width: 1060px) {
  .nav { display: flex; }
  .burger { display: none; }
  .brand-sub { display: block; }
  .hdr-call { display: flex; }
  .hdr .btn { display: inline-flex; }
}

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 80; display: none; }
.drawer[data-open="1"] { display: block; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.drawer-panel {
  position: absolute; inset: 0 0 auto auto; width: min(310px, 84vw); height: 100%;
  background: var(--surface); border-left: 1px solid var(--line);
  padding: 1.4rem var(--pad) 2rem; display: flex; flex-direction: column; gap: .2rem;
  animation: slideIn .22s ease;
}
@keyframes slideIn { from { transform: translateX(100%); } }
.drawer-panel a { padding: .95rem 0; text-decoration: none; font-weight: 700; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
.drawer-close { align-self: flex-end; background: none; border: 0; font-size: 1.7rem; line-height: 1; cursor: pointer; padding: .2rem .4rem; margin-bottom: .6rem; }
.drawer .btn { margin-top: 1.2rem; }

/* ---------- hero ---------- */
/* Treatment borrows the vernacular of a setting-out drawing: string lines,
   a datum mark, measured micro-type, and a materials rail along the foot. */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: 0; background: var(--surface-2); overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 18%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0; z-index: 3;
  background:
    /* Tuned for the bright silver-paving hero: the lightest overlay that keeps
       every line of hero text above WCAG contrast at 390 / 768 / 1366 / 1920,
       measured against the composited photo pixels (worst case 4.7:1). */
    linear-gradient(to top, rgba(9,11,12,.94) 0%, rgba(9,11,12,.78) 36%, rgba(9,11,12,.50) 62%, rgba(9,11,12,.26) 82%, rgba(9,11,12,.42) 100%),
    linear-gradient(to right, rgba(9,11,12,.66) 0%, rgba(9,11,12,.18) 55%, transparent 100%);
}

/* Units lift away across the photograph, bottom-left first, the direction
   you'd lay a drive. The photo is never hidden -- the first painted frame is
   already the image, just still partly covered. */
.pavers { position: absolute; inset: 0; z-index: 2; display: grid; pointer-events: none; }
.pavers b {
  display: block; background: #0B0D0E; opacity: .6;
  transform: translate3d(0, -3px, 0); will-change: opacity, transform;
}
.pavers[data-run="1"] b { animation: layIn .5s cubic-bezier(.3,.7,.25,1) both; animation-delay: var(--d); }
@keyframes layIn { to { opacity: 0; transform: none; } }

/* a single set-out line, aligned to the content edge so it never crosses copy */
.so-v {
  position: absolute; z-index: 4; top: 0; bottom: 0; width: 1px; pointer-events: none;
  left: max(var(--pad), calc((100% - var(--wrap)) / 2 + var(--pad)));
  background: repeating-linear-gradient(to bottom, var(--accent) 0 5px, transparent 5px 11px);
  opacity: .42; transform-origin: 50% 0;
}
.js .so-v { transform: scaleY(0); opacity: 0; }
.js .hero[data-lit="1"] .so-v { animation: dropLine 1s .5s cubic-bezier(.3,.75,.25,1) forwards; }
@keyframes dropLine { to { transform: scaleY(1); opacity: .42; } }

.hero-body {
  position: relative; z-index: 5; color: #F7F4EF;
  padding-top: clamp(4.4rem, 10vh, 7rem);
  padding-bottom: clamp(1.1rem, 2vh, 1.7rem);
  min-height: max(500px, calc(100vh - var(--hdr-h, 70px)));
  min-height: max(500px, calc(100dvh - var(--hdr-h, 70px)));
  min-width: 0;
  display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(1rem, 2.4vh, 2rem);
}

.hero-inner { display: grid; gap: clamp(1.5rem, 3.4vw, 3.4rem); align-items: end; }
.hero-col { min-width: 0; }

/* the title block off a setting-out drawing: the facts, stated flat */
.titleblock {
  display: none; min-width: 0; align-self: end;
  border: 1px solid rgba(247,244,239,.26); border-radius: 2px;
  background: rgba(10,12,13,.42); backdrop-filter: blur(10px) saturate(1.1);
}
.tb-head {
  display: flex; align-items: baseline; gap: .6rem; padding: .75rem 1rem;
  border-bottom: 1px solid rgba(247,244,239,.26);
  font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 800;
}
.tb-head span { color: var(--accent); }
.tb-head b { margin-left: auto; font-weight: 700; color: rgba(247,244,239,.62); letter-spacing: .1em; }
.tb-rows { margin: 0; }
.tb-rows div {
  display: flex; align-items: baseline; gap: 1rem; padding: .62rem 1rem;
  border-bottom: 1px solid rgba(247,244,239,.14);
  font-size: .78rem; font-variant-numeric: tabular-nums;
}
.tb-rows dt { color: rgba(247,244,239,.6); letter-spacing: .08em; text-transform: uppercase; font-size: .66rem; font-weight: 700; }
.tb-rows dd { margin: 0 0 0 auto; font-weight: 700; color: #F7F4EF; }
.tb-call { display: block; padding: .8rem 1rem .9rem; text-decoration: none; transition: background .16s ease; }
.tb-call:hover { background: rgba(255,255,255,.08); }
.tb-lbl { display: block; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(247,244,239,.6); font-weight: 700; margin-bottom: .1rem; }
.tb-num { display: block; font-size: 1.32rem; font-weight: 800; letter-spacing: -.03em; color: #F7F4EF; }

@media (min-width: 1120px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(240px, 296px); }
  .titleblock { display: block; }
}

.hero-eyebrow {
  display: flex; align-items: center; gap: .7rem; margin-bottom: 1.15rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(247,244,239,.72);
}
.hero-eyebrow { flex-wrap: wrap; row-gap: .35rem; }
.hero-eyebrow span { white-space: nowrap; }
.hero-eyebrow b { color: var(--accent); font-weight: 700; }
.hero-eyebrow .rule { display: block; width: clamp(26px, 6vw, 54px); height: 1px; background: var(--accent); flex: none; }

.hero h1 { font-size: clamp(2.3rem, min(10.5vw, 10vh), 5.2rem); letter-spacing: -.042em; margin-bottom: 1.05rem; text-shadow: 0 2px 22px rgba(9,11,12,.45), 0 1px 2px rgba(9,11,12,.35); }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .04em; }
.hero h1 { margin-bottom: clamp(.7rem, 1.8vh, 1.05rem); }
.hero h1 em { font-style: normal; color: var(--accent); position: relative; }
/* a string line pulled taut under the promise */
.hero h1 em > i {
  position: absolute; left: 0; right: 0; bottom: .04em; height: 3px; background: var(--accent);
  transform: scaleX(0); transform-origin: 0 50%; border-radius: 2px;
}
.js .hero[data-lit="1"] h1 em > i { animation: taut .62s 1.25s cubic-bezier(.3,.8,.25,1) forwards; }
@keyframes taut { to { transform: scaleX(1); } }
html:not(.js) .hero h1 em > i { transform: scaleX(1); }

.hero-lede {
  text-shadow: 0 1px 12px rgba(9,11,12,.5);
  font-family: var(--fb); font-size: clamp(1rem, min(3.4vw, 2.1vh), 1.22rem); line-height: 1.5;
  color: rgba(247,244,239,.9); max-width: min(36ch, 100%); margin-bottom: clamp(1.1rem, 2.4vh, 1.7rem);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero-cta .btn-ghost { color: #F7F4EF; border-color: rgba(247,244,239,.4); backdrop-filter: blur(6px); }
.hero-cta .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #F7F4EF; }

/* staggered entrance for the type */
.js .hero .hero-eyebrow, .js .hero h1 .ln, .js .hero .hero-lede,
.js .hero .hero-cta, .js .hero .titleblock { opacity: 0; }
.js .hero[data-lit="1"] .hero-eyebrow { animation: rise .62s .30s cubic-bezier(.2,.7,.3,1) both; }
.js .hero[data-lit="1"] h1 .ln:nth-child(1) { animation: lift .78s .40s cubic-bezier(.2,.75,.25,1) both; }
.js .hero[data-lit="1"] h1 .ln:nth-child(2) { animation: lift .78s .50s cubic-bezier(.2,.75,.25,1) both; }
.js .hero[data-lit="1"] .hero-lede { animation: rise .62s .70s cubic-bezier(.2,.7,.3,1) both; }
.js .hero[data-lit="1"] .hero-cta { animation: rise .62s .82s cubic-bezier(.2,.7,.3,1) both; }
.js .hero[data-lit="1"] .titleblock { animation: rise .66s .88s cubic-bezier(.2,.7,.3,1) both; }
@keyframes lift { from { opacity: 0; transform: translate3d(0, 100%, 0); } to { opacity: 1; transform: none; } }

/* materials rail along the foot of the hero */
.hero-rail {
  min-width: 0; display: flex; gap: .5rem; overflow-x: auto; padding-top: clamp(.8rem, 1.8vh, 1.15rem); padding-bottom: .15rem;
  border-top: 1px solid rgba(247,244,239,.2); scrollbar-width: none;
}
.hero-rail::-webkit-scrollbar { display: none; }
.rail-i {
  display: inline-flex; align-items: center; gap: .55rem; flex: none; text-decoration: none;
  padding: .42rem .8rem .42rem .42rem; border: 1px solid rgba(247,244,239,.22); border-radius: 100px;
  font-size: .76rem; font-weight: 700; color: rgba(247,244,239,.86); white-space: nowrap;
  background: rgba(255,255,255,.05); backdrop-filter: blur(6px);
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.rail-i i { width: 22px; height: 22px; border-radius: 50%; background-size: cover; background-position: center; flex: none; }
.rail-i:hover { border-color: var(--accent); color: #fff; background: rgba(255,255,255,.12); }
.js .hero .hero-rail { opacity: 0; }
.js .hero[data-lit="1"] .hero-rail { animation: rise .7s .95s cubic-bezier(.2,.7,.3,1) both; }



/* ---------- trust strip ---------- */
.trust { border-bottom: 1px solid var(--line); background: var(--surface); }
.trust-in { display: grid; grid-template-columns: repeat(2, 1fr); }
.trust-i { padding: 1.1rem var(--pad); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-i:nth-child(2n) { border-right: 0; }
.trust-n { font-size: 1.5rem; font-weight: 800; letter-spacing: -.035em; display: block; line-height: 1.1; }
.trust-l { font-size: .73rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
@media (min-width: 860px) {
  .trust-in { grid-template-columns: repeat(4, 1fr); max-width: var(--wrap); margin-inline: auto; }
  .trust-i { border-bottom: 0; }
  .trust-i:nth-child(2n) { border-right: 1px solid var(--line); }
  .trust-i:last-child { border-right: 0; }
}

/* ---------- sections ---------- */
.sec { padding-block: clamp(3.4rem, 9vw, 6.5rem); }
.sec-head { max-width: min(58ch, 100%); margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec-head h2 { font-size: clamp(1.9rem, 5.6vw, 3.1rem); margin-bottom: .9rem; }
.sec-alt { background: var(--surface); border-block: 1px solid var(--line); }

/* ---------- surfaces ---------- */
.surf-grid { display: grid; gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.surf {
  border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important;
  background: var(--surface); border: 0; padding: 0; text-align: left; cursor: pointer;
  display: grid; grid-template-columns: 92px 1fr; align-items: stretch; gap: 0;
  transition: background .15s ease;
}
.surf:hover { background: var(--accent-sf); }
.surf[aria-expanded="true"] { background: var(--accent-sf); }
.surf-tex { width: 92px; height: 100%; min-height: 92px; object-fit: cover; }
.surf-txt { padding: 1rem 1.15rem; display: flex; flex-direction: column; gap: .28rem; justify-content: center; }
.surf-name { font-weight: 800; font-size: 1.08rem; letter-spacing: -.02em; display: flex; align-items: center; gap: .5rem; }
.surf-name::after {
  content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translate(-1px,-1px); transition: transform .2s ease; margin-left: auto;
}
.surf[aria-expanded="true"] .surf-name::after { transform: rotate(-135deg) translate(-2px,-2px); }
.surf-tl { font-size: .76rem; color: var(--muted); font-weight: 600; }
.surf-panel { background: var(--surface); border-right: 1px solid var(--line); }
.surf-panel-in { padding: 1.15rem 1.15rem 1.4rem; }
.surf-panel .prose { font-size: 1rem; }
.surf-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .95rem; }
.chip {
  font-size: .72rem; font-weight: 700; padding: .38rem .65rem; border-radius: 100px;
  background: var(--ground); border: 1px solid var(--line); color: var(--ink-2);
}
.chip b { color: var(--accent); font-weight: 800; }
@media (min-width: 780px) {
  .surf-grid { grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; }
  .surf-panel { grid-column: 1 / -1; }
}

/* ---------- gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.5rem; }
.filter {
  padding: .5rem .95rem; border-radius: 100px; border: 1.5px solid var(--line);
  background: transparent; font-size: .84rem; font-weight: 700; cursor: pointer;
  transition: all .14s ease;
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(.4rem, 1.4vw, .8rem); }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, 1fr); } }

.shot {
  position: relative; border: 0; padding: 0; margin: 0; cursor: zoom-in;
  background: var(--surface-2); overflow: hidden; aspect-ratio: 4/3;
  display: block; width: 100%; border-radius: var(--r);
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.3,1), opacity .45s ease; }
.shot img[data-loaded="0"] { opacity: 0; }
.shot:hover img { transform: scale(1.045); }
.shot-cap {
  position: absolute; inset: auto 0 0 0; padding: 1.6rem .7rem .6rem; text-align: left;
  font-size: .74rem; font-weight: 700; color: #fff; line-height: 1.3;
  background: linear-gradient(to top, rgba(10,12,13,.82), transparent);
  opacity: 0; transition: opacity .2s ease;
}
.shot:hover .shot-cap, .shot:focus-visible .shot-cap { opacity: 1; }
.shot[hidden] { display: none; }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(8,10,11,.96); display: none; }
.lb[data-open="1"] { display: grid; grid-template-rows: 1fr auto; }
.lb-stage { display: grid; place-items: center; padding: 1rem; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r); }
.lb-bar { display: flex; align-items: center; gap: 1rem; padding: 1rem clamp(1rem,4vw,2rem) 1.4rem; color: #EDEAE4; }
.lb-cap { font-size: .88rem; font-weight: 600; flex: 1; min-width: 0; }
.lb-cat { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 800; display: block; margin-bottom: .2rem; }
.lb-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(237,234,228,.3);
  background: rgba(255,255,255,.06); color: #EDEAE4; cursor: pointer; display: grid; place-items: center; flex: none;
}
.lb-btn:hover { background: rgba(255,255,255,.16); }
.lb-close { position: absolute; top: 1rem; right: 1rem; z-index: 2; }

/* ---------- process ---------- */
.steps { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step { background: var(--surface); padding: 1.5rem 1.4rem; display: flex; flex-direction: column; gap: .55rem; }
.step-n {
  font-size: .7rem; font-weight: 800; letter-spacing: .1em; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 1.16rem; }
.step p { font-family: var(--fb); font-size: .97rem; line-height: 1.58; color: var(--ink-2); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.proc-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.4rem,1.4vw,.8rem); margin-top: clamp(.4rem,1.4vw,.8rem); }
.proc-imgs figure { margin: 0; position: relative; }
.proc-imgs img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); background: var(--surface-2); }
.proc-imgs figcaption {
  position: absolute; left: .55rem; bottom: .55rem; font-size: .68rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(10,12,13,.72);
  padding: .32rem .6rem; border-radius: 100px; backdrop-filter: blur(4px);
}

/* ---------- about ---------- */
.about { display: grid; gap: clamp(1.6rem, 4vw, 3rem); align-items: center; }
.about-img { position: relative; }
.about-img img { width: 100%; height: auto; aspect-ratio: 5/4; object-fit: cover; border-radius: var(--r); background: var(--surface-2); }
.about-badge {
  position: absolute; left: -.5rem; bottom: -.9rem; background: var(--accent); color: var(--accent-in);
  padding: .85rem 1.1rem; border-radius: var(--r); box-shadow: var(--shadow-lg);
}
.about-badge b { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.about-badge span { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .88; }
@media (min-width: 940px) { .about { grid-template-columns: .9fr 1.1fr; } }

.ticks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .7rem; }
.ticks li { display: grid; grid-template-columns: 20px 1fr; gap: .7rem; font-size: .96rem; font-weight: 600; align-items: start; }
.ticks svg { width: 20px; height: 20px; color: var(--ok); margin-top: 1px; }

/* ---------- areas ---------- */
.areas { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.4rem; }
.area { font-size: .84rem; font-weight: 600; padding: .48rem .85rem; border: 1px solid var(--line); border-radius: 100px; background: var(--surface); }

/* ---------- quote builder ---------- */
.quote { background: var(--slate); color: var(--ground); }
:root[data-theme="dark"] .quote, :root:not([data-theme="light"]) .quote { background: var(--surface); color: var(--ink); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .quote { background: #2E3438; color: #EFEAE2; } }

.quote-in { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 980px) { .quote-in { grid-template-columns: .85fr 1.15fr; align-items: start; } }
.quote h2 { font-size: clamp(1.9rem, 5.6vw, 3rem); margin-bottom: 1rem; }
.quote .eyebrow { color: var(--accent-on-dark); }
.quote .eyebrow::after { background: rgba(255,255,255,.2); }
:root:not([data-theme="light"]) .quote .eyebrow::after { background: var(--line); }
.quote-lede { font-family: var(--fb); font-size: 1.08rem; line-height: 1.6; opacity: .84; max-width: min(42ch, 100%); }
.quote-call {
  display: inline-flex; align-items: center; gap: .8rem; margin-top: 1.8rem;
  text-decoration: none; padding: 1rem 1.3rem; border: 1.5px solid currentColor; border-radius: var(--r);
}
.quote-call span { display: block; }
.quote-call .lbl { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; opacity: .7; font-weight: 700; }
.quote-call .num { font-size: 1.32rem; font-weight: 800; letter-spacing: -.03em; }

.card {
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-lg); overflow: hidden;
}
.card-top { padding: 1.1rem 1.35rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 1rem; }
.card-step { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.bar { flex: 1; height: 4px; background: var(--surface-2); border-radius: 100px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 100px; transition: width .32s cubic-bezier(.4,0,.2,1); }
.card-body { padding: 1.5rem 1.35rem; }
.q-legend { font-size: 1.3rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: .35rem; display: block; }
.q-help { font-size: .88rem; color: var(--muted); margin-bottom: 1.2rem; }

.opts { display: grid; gap: .5rem; border: 0; padding: 0; margin: 0; }
.opts.two { grid-template-columns: 1fr 1fr; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.opt > span {
  display: flex; align-items: center; gap: .7rem; padding: .95rem 1.1rem; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--r); font-weight: 700; font-size: .95rem;
  transition: all .14s ease; min-height: 100%;
}
.opt > span:hover { border-color: var(--ink); }
.opt > input:checked + span { border-color: var(--accent); background: var(--accent-sf); }
.opt > input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.opt em { font-style: normal; font-size: .78rem; font-weight: 600; color: var(--muted); display: block; margin-top: .12rem; }
.opt > span > i { flex: none; width: 38px; height: 38px; border-radius: 2px; background-size: cover; background-position: center; }
.opt .txt { display: block; }

.fields { display: grid; gap: .9rem; }
.field { display: grid; gap: .35rem; }
.field label { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.field input {
  font: inherit; font-size: 1rem; padding: .85rem 1rem; border: 1.5px solid var(--line);
  border-radius: var(--r); background: var(--ground); color: var(--ink); width: 100%;
}
.field input:focus { border-color: var(--accent); outline: none; }
.field input[aria-invalid="true"] { border-color: #B3261E; }
.field .err { font-size: .8rem; color: #B3261E; font-weight: 600; display: none; }
.field input[aria-invalid="true"] ~ .err { display: block; }
.two-up { display: grid; gap: .9rem; }
@media (min-width: 520px) { .two-up { grid-template-columns: 1fr 1fr; } }

.card-foot { display: flex; gap: .7rem; align-items: center; padding: 1.1rem 1.35rem .55rem; border-top: 1px solid var(--line); background: transparent; }
.card-foot .btn-primary { margin-left: auto; }
.back { background: none; border: 0; font-weight: 700; font-size: .9rem; color: var(--muted); cursor: pointer; padding: .5rem 0; }
.back:hover { color: var(--ink); }
.fineprint { font-size: .78rem; color: var(--muted); padding: 0 1.35rem 1.15rem; }

.summary { display: grid; gap: .55rem; margin: 1.2rem 0 0; }
.summary div:last-child { border-bottom: 0; padding-bottom: 0; }
.summary div { display: grid; grid-template-columns: 8.5rem 1fr; gap: .8rem; font-size: .92rem; padding-bottom: .55rem; border-bottom: 1px solid var(--line); }
.summary dt { font-weight: 600; color: var(--muted); }
.summary dd { margin: 0; font-weight: 700; }

.done { text-align: center; padding: 2.2rem 1.35rem; }
.done-ico { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-sf); color: var(--accent); display: grid; place-items: center; margin: 0 auto 1.1rem; }
.done-ico svg { width: 28px; height: 28px; }
.done h3 { font-size: 1.5rem; margin-bottom: .55rem; }
.done p { font-size: .97rem; color: var(--muted); max-width: min(40ch, 100%); margin-inline: auto; }
.done-acts { display: grid; gap: .6rem; margin-top: 1.5rem; }
.ref { font-family: var(--fd); font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: .06em; }

/* ---------- footer ---------- */
.ftr { background: var(--ground); border-top: 1px solid var(--line); padding-block: clamp(2.4rem, 6vw, 4rem) 6.5rem; }
.ftr-in { display: grid; gap: 2rem; }
@media (min-width: 800px) { .ftr-in { grid-template-columns: 1.4fr 1fr 1fr; } .ftr { padding-bottom: clamp(2.4rem, 6vw, 4rem); } }
.ftr img { height: 26px; width: auto; margin-bottom: 1rem; }
.ftr .ftr-h { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; font-weight: 800; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.ftr ul a { text-decoration: none; font-size: .92rem; font-weight: 600; color: var(--ink-2); }
.ftr ul a:hover { color: var(--accent); }
.ftr-legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }

/* ---------- sticky mobile call bar ---------- */
.callbar {
  position: fixed; inset: auto 0 0 0; z-index: 70; display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--line); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0);
  transform: translateY(110%); transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.callbar[data-show="1"] { transform: none; }
.callbar a {
  display: flex; align-items: center; justify-content: center; gap: .5rem; padding: 1rem .6rem;
  text-decoration: none; font-weight: 800; font-size: .95rem; background: var(--surface); color: var(--ink);
}
.callbar a.primary { background: var(--accent); color: var(--accent-in); }
.callbar svg { width: 17px; height: 17px; }
@media (min-width: 1060px) { .callbar { display: none; } }


/* ---------- fleet band ---------- */
.band { position: relative; display: grid; grid-template-columns: minmax(0,1fr); isolation: isolate; }
.band-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--surface-2); }
.band-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.band-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(9,11,12,.95) 0%, rgba(9,11,12,.72) 42%, rgba(9,11,12,.3) 100%),
    linear-gradient(to right, rgba(9,11,12,.7) 0%, rgba(9,11,12,.12) 56%, transparent 100%);
}
.band-body {
  position: relative; z-index: 1; color: #F7F4EF; min-width: 0;
  padding-top: clamp(11rem, 30vh, 18rem); padding-bottom: clamp(2rem, 5vh, 3.4rem);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.band-body h2 { font-size: clamp(1.8rem, 5.2vw, 2.9rem); margin-bottom: .9rem; }
.band-body .prose { color: rgba(247,244,239,.86); max-width: min(50ch, 100%); }
.band-body .eyebrow::after { background: rgba(247,244,239,.24); }

/* ---------- coverage map ---------- */
.coverage { display: grid; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
@media (min-width: 900px) { .coverage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.map-fig { margin: 0; min-width: 0; }
.map { display: block; width: 100%; height: auto; overflow: visible; }
.map-wight  { fill: var(--line); opacity: .5; }
.map-county { fill: var(--slate); opacity: .16; stroke: var(--slate); stroke-width: 2.5; stroke-opacity: .32; }
.map-home   { display: none; }
:root:not([data-theme="light"]) .map-county { fill: #EDEAE4; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .map-county { fill: var(--slate); } }
:root[data-theme="dark"] .map-county { fill: #EDEAE4; }

.pin { cursor: default; }
.pin circle { fill: var(--ink); stroke: var(--ground); stroke-width: 3; transition: r .18s ease, fill .18s ease; }
.pin.home circle { fill: var(--accent); stroke: var(--ground); stroke-width: 4; }
.pin.home { filter: drop-shadow(0 0 10px rgba(169,67,42,.55)); }
.pin text {
  font-family: var(--fd); font-size: 21px; font-weight: 700; fill: var(--ink);
  paint-order: stroke; stroke: var(--ground); stroke-width: 5px; stroke-linejoin: round;
  opacity: 0; transition: opacity .16s ease; pointer-events: none;
}
.pin.home text { opacity: 1; font-size: 25px; font-weight: 800; }
.pin.on circle { fill: var(--accent); r: 11; }
.pin.on text { opacity: 1; }

/* The map scales to ~1/3 on a phone, so label type must grow in viewBox units
   to stay legible, and only the base label is shown (touch has no hover). */
@media (max-width: 720px) {
  .pin text { font-size: 36px; }
  .pin.home text { font-size: 42px; }
  .pin circle { stroke-width: 5; }
  .pin.on circle { r: 16; }
}

.map-key { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: 1.1rem; font-size: .78rem; font-weight: 600; color: var(--muted); }
.map-key span { display: inline-flex; align-items: center; gap: .45rem; }
.map-key i { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.map-key .k-home { background: var(--accent); border-radius: 50%; width: 9px; height: 9px; }
.map-key .k-county { background: var(--slate); opacity: .3; }
.map-key .k-town { background: var(--ink); border-radius: 50%; width: 9px; height: 9px; }

.coverage-side { min-width: 0; }
.cov-lead { font-family: var(--fb); font-size: 1.08rem; line-height: 1.55; color: var(--ink-2); margin-bottom: 1.1rem; }
.coverage-side .btn { margin-top: 1.4rem; }
.area { cursor: default; transition: border-color .16s ease, background .16s ease, color .16s ease; }
.area.on { border-color: var(--accent); background: var(--accent-sf); color: var(--accent); }

/* ---------- confirmation dialog ---------- */
.modal { position: fixed; inset: 0; z-index: 120; display: none; }
.modal[data-open="1"] { display: block; }
.modal-scrim { position: absolute; inset: 0; background: rgba(8,10,11,.72); backdrop-filter: blur(3px); animation: fadeIn .2s ease both; }
@keyframes fadeIn { from { opacity: 0; } }
.modal-card {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 2rem)); max-height: min(88vh, 900px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg); animation: modalIn .32s cubic-bezier(.2,.8,.3,1) both;
}
@keyframes modalIn { from { opacity: 0; transform: translate(-50%, calc(-50% + 16px)) scale(.97); } }
.modal-x {
  position: absolute; top: .7rem; right: .7rem; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--ground); cursor: pointer; display: grid; place-items: center; z-index: 2;
}
.modal-x:hover { background: var(--surface-2); }

.modal-top { padding: 2rem 1.5rem 1.5rem; text-align: center; border-bottom: 1px solid var(--line); }
.modal-tick {
  width: 54px; height: 54px; border-radius: 50%; background: var(--accent-sf); color: var(--accent);
  display: grid; place-items: center; margin: 0 auto 1rem;
  animation: tickPop .45s .12s cubic-bezier(.2,1.4,.4,1) both;
}
.modal-tick svg { width: 27px; height: 27px; }
.modal-tick .ico-mail { display: none; }
.modal[data-sent="0"] .modal-tick .ico-sent { display: none; }
.modal[data-sent="0"] .modal-tick .ico-mail { display: block; }
/* sent: no "email it" button, so the call button takes the full row */
.modal[data-sent="1"] #mCall { grid-column: 1 / -1; }
#qNext[disabled] { opacity: .7; cursor: progress; }
.hp-field { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; opacity: 0; }
@keyframes tickPop { from { opacity: 0; transform: scale(.5); } }
.modal-top h3 { font-size: 1.55rem; margin-bottom: .45rem; }
.modal-sub { font-size: .97rem; color: var(--muted); max-width: min(40ch, 100%); margin: 0 auto .9rem; line-height: 1.5; }
.modal-ref { font-size: .8rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; font-weight: 700; }
.modal-ref b { color: var(--ink); margin-left: .3rem; }

.modal-body { padding: 1.5rem; }
.modal-h { font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem; }
.next { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: n; }
.next li {
  position: relative; padding: 0 0 1.35rem 2.4rem; counter-increment: n;
}
.next li::before {
  content: counter(n); position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-in); font-size: .76rem; font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.next li::after {
  content: ""; position: absolute; left: 12.5px; top: 30px; bottom: 4px; width: 1px; background: var(--line);
}
.next li:last-child { padding-bottom: 0; }
.next li:last-child::after { display: none; }
.next-when { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: .18rem; }
.next b { display: block; font-size: 1.02rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: .2rem; }
.next em { font-style: normal; font-family: var(--fb); font-size: .93rem; line-height: 1.5; color: var(--ink-2); display: block; }

.modal-sum { margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.modal-foot { display: grid; gap: .6rem; padding: 0 1.5rem 1rem; }
@media (min-width: 520px) { .modal-foot { grid-template-columns: 1fr 1fr; } .modal-foot #mCopy { grid-column: 1 / -1; } }
.modal-fine { font-size: .76rem; color: var(--muted); text-align: center; padding: 0 1.5rem 1.4rem; }


/* ---------- footer legal links ---------- */
.ftr-legal-links { display: flex; gap: 1.2rem; margin-left: auto; }
.ftr-legal-links a { font-size: .82rem; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.ftr-legal-links a:hover { color: var(--accent); text-decoration-color: currentColor; }
@media (max-width: 640px) { .ftr-legal-links { margin-left: 0; } }
.q-help a, .modal-fine a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- legal pages ---------- */
.legal-hdr { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--ground) 90%, transparent);
  backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line); }
.legal-hdr .hdr-in { height: 64px; }
.legal-back { display: inline-flex; align-items: center; gap: .45rem; font-size: .88rem; font-weight: 700; text-decoration: none; color: var(--ink-2); }
.legal-back:hover { color: var(--accent); }
.legal-back svg { width: 16px; height: 16px; }
.legal-hdr .hdr-call { display: none; }
@media (min-width: 720px) { .legal-hdr .hdr-call { display: flex; } }

.legal-hero { border-bottom: 1px solid var(--line); background:
  radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 60%), var(--ground); }
.legal-hero .wrap { padding-block: clamp(2.6rem, 7vw, 4.6rem) clamp(2rem, 5vw, 3.2rem); }
.legal-hero h1 { font-size: clamp(2.3rem, 7vw, 4rem); letter-spacing: -.04em; margin-bottom: .8rem; }
.legal-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; font-size: .8rem; font-weight: 600; color: var(--muted); }
.legal-meta b { color: var(--ink); font-weight: 700; }

.legal-short { margin-top: clamp(1.6rem, 4vw, 2.4rem); display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
@media (min-width: 760px) { .legal-short { grid-template-columns: repeat(3, 1fr); } }
.legal-short div { background: var(--surface); padding: 1.1rem 1.2rem; }
.legal-short dt { font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .35rem; }
.legal-short dd { margin: 0; font-family: var(--fb); font-size: .98rem; line-height: 1.5; color: var(--ink-2); }

.legal-body { display: grid; gap: clamp(1.6rem, 4vw, 3.5rem); padding-block: clamp(2.4rem, 6vw, 4.5rem); align-items: start; }
@media (min-width: 960px) { .legal-body { grid-template-columns: 230px minmax(0, 1fr); } }

.legal-toc { font-size: .86rem; }
@media (min-width: 960px) { .legal-toc { position: sticky; top: 92px; } }
.legal-toc p { font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; counter-reset: t; border-left: 1px solid var(--line); }
.legal-toc li { counter-increment: t; }
.legal-toc a { display: grid; grid-template-columns: 1.7rem 1fr; padding: .38rem 0 .38rem .9rem; margin-left: -1px;
  border-left: 2px solid transparent; text-decoration: none; color: var(--ink-2); font-weight: 600; line-height: 1.35; }
.legal-toc a::before { content: counter(t, decimal-leading-zero); color: var(--muted); font-variant-numeric: tabular-nums; font-size: .74rem; padding-top: .1rem; }
.legal-toc a:hover { color: var(--accent); border-left-color: var(--accent); }
@media (max-width: 959px) { .legal-toc { border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem; background: var(--surface); } }

.legal-doc { max-width: 72ch; min-width: 0; }
.legal-doc section { padding-bottom: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: clamp(1.8rem, 4vw, 2.6rem); border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.legal-doc section:last-child { border-bottom: 0; margin-bottom: 0; }
.legal-doc h2 { font-size: clamp(1.35rem, 3.4vw, 1.75rem); letter-spacing: -.03em; margin-bottom: 1rem; display: flex; gap: .7rem; align-items: baseline; }
.legal-doc h2 span { font-size: .78rem; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.legal-doc h3 { font-size: 1.02rem; letter-spacing: -.01em; margin: 1.5rem 0 .5rem; }
.legal-doc p, .legal-doc li { font-family: var(--fb); font-size: 1.03rem; line-height: 1.66; color: var(--ink-2); }
.legal-doc p + p { margin-top: .85rem; }
.legal-doc ul { margin: .8rem 0 0; padding-left: 1.15rem; display: grid; gap: .45rem; }
.legal-doc li::marker { color: var(--accent); }
.legal-doc a { color: var(--accent); text-underline-offset: 3px; }
.legal-doc strong { color: var(--ink); font-weight: 600; }

.legal-table { margin-top: 1.1rem; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.legal-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .9rem; }
.legal-table th { text-align: left; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  background: var(--surface); padding: .75rem .9rem; border-bottom: 1px solid var(--line); }
.legal-table td { padding: .85rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); line-height: 1.5; }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-doc ul + p, .legal-table + p, .legal-card + p { margin-top: 1rem; }
@media (max-width: 640px) {
  /* each row becomes a labelled card rather than a sideways scroll */
  .legal-table { border: 0; overflow: visible; }
  .legal-table table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; min-width: 0; width: auto; }
  .legal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal-table tr { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: .9rem 1rem; }
  .legal-table tr + tr { margin-top: .6rem; }
  .legal-table td { border: 0; padding: .15rem 0; }
  .legal-table td:first-child { font-size: 1rem; padding-bottom: .45rem; }
  .legal-table td:not(:first-child)::before { content: attr(data-label); display: block; font-size: .64rem; font-weight: 800;
    letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: .45rem 0 .1rem; }
}
.legal-table td:first-child { font-weight: 700; color: var(--ink); }

.legal-card { margin-top: 1.1rem; display: grid; gap: .1rem; padding: 1.2rem 1.3rem; border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: var(--r); background: var(--surface); font-size: .95rem; line-height: 1.6; }
.legal-card b { font-size: 1.05rem; letter-spacing: -.01em; }
.legal-card a { color: var(--accent); font-weight: 700; text-decoration: none; }
.legal-card a:hover { text-decoration: underline; }
.legal-pill { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.1rem; padding: .55rem .9rem; border-radius: 100px;
  background: var(--accent-sf); color: var(--accent); font-size: .84rem; font-weight: 700; }
.legal-pill svg { width: 16px; height: 16px; }

/* ---------- small screens ---------- */
@media (max-width: 560px) {
  .hero-eyebrow { gap: .45rem; font-size: .64rem; letter-spacing: .14em; }
  .hero-eyebrow .rule { display: none; }
  /* C. equal full-width CTAs instead of two ragged widths */
  .hero-cta { display: grid; grid-template-columns: 1fr; gap: .6rem; }
  .hero-cta .btn { width: 100%; }
  .coverage-side .btn { width: 100%; }
  /* the rail scrolls sideways on a phone; fade the edge so that's obvious */
  .hero-rail {
    -webkit-mask-image: linear-gradient(to right, #000 78%, transparent);
            mask-image: linear-gradient(to right, #000 78%, transparent);
    padding-right: 2.5rem;
  }
}
/* E. the quote form sits above the sticky bar, not under it */
@media (max-width: 1059px) {
  .quote { padding-bottom: calc(clamp(3.4rem, 9vw, 6.5rem) + 64px); }
}

/* ---------- motion ---------- */
/* Scroll reveals are opt-in via .js, so with JS off nothing is ever hidden. */
@keyframes rise { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }

.js .reveal { opacity: 0; }
.js .reveal.is-in { animation: rise .68s cubic-bezier(.2,.7,.3,1) both; }

/* children of a revealed group come in one after another */
.js .steps.is-in .step,
.js .surf-grid.is-in .surf,
.js .trust.is-in .trust-i { animation: rise .6s cubic-bezier(.2,.7,.3,1) both; animation-delay: calc(var(--i, 0) * 70ms); }
.js .trust .trust-i { opacity: 0; }
.js .trust.is-in .trust-i { opacity: 1; }

.shot { opacity: 1; }
.js .shot.pending { opacity: 0; }
.js .shot.is-in { animation: pop .55s cubic-bezier(.2,.7,.3,1) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes pop { from { opacity: 0; transform: translate3d(0, 14px, 0) scale(.97); } to { opacity: 1; transform: none; } }

/* header condenses once you leave the hero */
.hdr-in { transition: height .25s cubic-bezier(.4,0,.2,1); }
.hdr[data-stuck="1"] .hdr-in { height: 60px; }
.brand img { transition: height .25s cubic-bezier(.4,0,.2,1); }
.hdr[data-stuck="1"] .brand img { height: 23px; }

/* surface panels expand instead of snapping open */
.surf-panel { display: block; height: 0; overflow: hidden; border-bottom: 0 solid var(--line);
  transition: height .3s cubic-bezier(.4,0,.2,1); }
.surf-panel[data-open="1"] { border-bottom-width: 1px; }
html:not(.js) .surf-panel { height: auto; border-bottom-width: 1px; }

.lb-stage img { transition: opacity .2s ease; }
.lb[data-open="1"] .lb-stage img { animation: lbIn .3s cubic-bezier(.2,.8,.3,1) both; }
@keyframes lbIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; }
  .js .reveal, .js .shot.pending, .js .trust .trust-i,
  .js .hero .hero-eyebrow, .js .hero h1 .ln, .js .hero .hero-lede,
  .js .hero .hero-cta, .js .hero .hero-rail, .js .hero .titleblock { opacity: 1 !important; }
  .js .so-v { opacity: .42 !important; transform: none !important; }
  .js .hero h1 em > i { transform: scaleX(1) !important; }
  .pavers { display: none !important; }
}
