/* JRC Generators — site stylesheet
   Palette: JRC Red #D22F25 · Graphite #111418 · Steel #5B6570 · Concrete #F3F4F5
   Type: Archivo (expanded display) · Public Sans (body) · IBM Plex Mono (spec labels)
   Accessibility target: WCAG 2.2 AA */

:root {
  --red: #D22F25;
  --red-deep: #A8211A;
  --red-text: #267A0E;           /* JRC logo green, darkened: 5.4:1 on white — links, eyebrows, kickers */
  --green: #75FB51;              /* JRC logo green */
  --accent: #3FB81F;
  --ink: #111418;
  --text: #1C2127;
  --muted: #4E5761;              /* 7.4:1 on white */
  --line: #D6DADF;
  --bg: #FFFFFF;
  --bg-alt: #F3F4F5;
  --surface: #FFFFFF;
  --focus: #0B5FFF;
  --band: #111418;               /* dark bands stay dark in both themes */
  --band-2: #1A1F26;
  --band-text: #EEF0F2;
  --band-muted: #B4BCC5;
  --band-line: #2C333C;
  --red-on-dark: #75FB51;        /* logo green on dark: 13.8:1 */
  --ok: #1E7F4F;
  --shadow: 0 1px 2px rgba(17,20,24,.06), 0 8px 24px rgba(17,20,24,.08);
  --radius: 6px;
  --maxw: 1200px;
  --f-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --red-text: #7DF25A; --text: #E6E9EC; --muted: #A9B2BC; --line: #2C333C;
    --bg: #0D1014; --bg-alt: #13171C; --surface: #171C22; --ink: #F2F4F6; --focus: #7DB0FF;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --red-text: #7DF25A; --text: #E6E9EC; --muted: #A9B2BC; --line: #2C333C;
  --bg: #0D1014; --bg-alt: #13171C; --surface: #171C22; --ink: #F2F4F6; --focus: #7DB0FF;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  overflow-x: clip; margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--red-text); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.band :focus-visible, .site-footer :focus-visible { outline-color: #7DB0FF; }
[hidden] { display: none !important; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 1000; background: var(--red); color: #fff;
  padding: 12px 18px; font-weight: 700; border-radius: var(--radius); text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--ink); line-height: 1.08; margin: 0 0 .5em; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(2.25rem, 5.2vw, 4.25rem); font-weight: 800; font-stretch: 112%; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); font-weight: 800; font-stretch: 108%; }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); font-weight: 700; font-stretch: 104%; line-height: 1.2; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 60ch; }
.eyebrow {
  font: 500 .78rem/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--red-text);
  display: inline-flex; align-items: center; gap: .6em; margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.mono { font-family: var(--f-mono); }
strong { font-weight: 700; color: var(--ink); }
.band strong { color: #fff; }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
li { margin-bottom: .35em; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
@media (max-width: 600px) { .wrap { padding-inline: 16px; } }
.section { padding-block: clamp(56px, 8vw, 112px); }
.section.tight { padding-block: clamp(40px, 5vw, 64px); }
.alt { background: var(--bg-alt); }
.band { background: var(--band); color: var(--band-text); }
.band h1, .band h2, .band h3, .band h4 { color: #fff; }
.band .lead, .band p.muted { color: var(--band-muted); }
.band a:not(.btn) { color: var(--red-on-dark); }
.band .eyebrow, .hero .eyebrow { color: var(--red-on-dark); }
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.split.even { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .split, .split.even { grid-template-columns: 1fr; } }
.section-head { display: grid; gap: .25rem; margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.stack > * + * { margin-top: 1rem; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--red); display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius); border: 2px solid var(--b);
  background: var(--b); color: #fff; font: 700 1rem/1.1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: background .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.btn:hover { --b: var(--red-deep); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(210,47,37,.28); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); box-shadow: none; }
.band .btn.ghost, .hero .btn.ghost { color: #fff; border-color: #5A636E; }
.band .btn.ghost:hover, .hero .btn.ghost:hover { border-color: #fff; }
.btn.lg { min-height: 56px; padding: 14px 28px; font-size: 1.075rem; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Utility bar + header ---------- */
.topbar { background: var(--band); color: var(--band-muted); font: 500 .8rem/1.3 var(--f-mono); letter-spacing: .04em; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
.topbar a:hover { text-decoration: underline; }
.topbar .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; margin-right: 8px; box-shadow: 0 0 0 0 rgba(61,220,132,.6); animation: pulse 2.4s 3; vertical-align: 1px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,132,.55);} 70% { box-shadow: 0 0 0 8px rgba(61,220,132,0);} 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0);} }

.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line); transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: var(--shadow); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { height: 64px; width: auto; }
.site-footer .brand img { height: 84px; }
.brand-mark { width: 46px; height: 46px; flex: none; }
.brand-word { display: grid; line-height: 1; }
.brand-word b { font: 800 1.35rem/1 var(--f-display); font-stretch: 125%; letter-spacing: .02em; color: var(--ink); }
.brand-word span { font: 500 .66rem/1.3 var(--f-mono); letter-spacing: .22em; color: var(--muted); margin-top: 4px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; align-items: center; }
.nav li { margin: 0; position: relative; }
.nav a.nav-link, .nav button.nav-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; border-radius: var(--radius);
  font: 600 .95rem/1 var(--f-body); color: var(--text); text-decoration: none; background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.nav a.nav-link:hover, .nav button.nav-link:hover, .nav button[aria-expanded="true"] { background: var(--bg-alt); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--red-text); }
.nav button.nav-link svg { width: 12px; height: 12px; transition: transform .2s; }
.nav button[aria-expanded="true"] svg { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 320px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow); padding: 10px; list-style: none; margin: 0;
}
.dropdown a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--text); }
.dropdown a:hover, .dropdown a:focus-visible { background: var(--bg-alt); }
.dropdown a b { font-weight: 700; color: var(--ink); font-size: .95rem; }
.dropdown a span { font-size: .83rem; color: var(--muted); line-height: 1.35; }
.header-cta { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.header-phone { font: 700 1rem/1 var(--f-mono); color: var(--ink); text-decoration: none; white-space: nowrap; padding: 8px 4px; }
.header-phone:hover { color: var(--red-text); }
.menu-toggle { display: none; margin-left: auto; min-width: 48px; min-height: 48px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 24px; height: 24px; }

@media (max-width: 1420px) {
  .header-phone { display: none; }
}
@media (max-width: 1100px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(420px, 100%); background: var(--surface); flex-direction: column; align-items: stretch;
    padding: calc(84px + env(safe-area-inset-top, 0px)) 16px 32px; overflow-y: auto; transform: translateX(100%); transition: transform .28s ease; box-shadow: -20px 0 40px rgba(0,0,0,.2); visibility: hidden; }
  .nav.open { transform: none; visibility: visible; }
  .nav > ul { flex-direction: column; align-items: stretch; }
  .nav a.nav-link, .nav button.nav-link { width: 100%; justify-content: space-between; font-size: 1.05rem; min-height: 52px; }
  .dropdown { position: static; box-shadow: none; border: 0; padding: 0 0 8px 8px; min-width: 0; }
  .header-cta { flex-direction: column; align-items: stretch; margin: 16px 0 0; }
  .header-cta .header-phone { display: block; text-align: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); }
  .menu-close { position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; }
  body.menu-open { overflow: hidden; }
  .scrim { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 40; }
}
@media (min-width: 1101px) { .menu-close, .scrim { display: none !important; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--band); color: var(--band-text); isolation: isolate; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .9; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(1200px 500px at 85% 0%, rgba(117,251,81,.14), transparent 60%), linear-gradient(180deg, rgba(17,20,24,0) 55%, var(--band) 100%); }
.hero .wrap { padding-block: clamp(56px, 9vw, 120px) clamp(48px, 7vw, 96px); display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 5vw, 64px); align-items: end; }
@media (max-width: 1100px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--red-on-dark); }
.hero .lead { color: var(--band-muted); margin-bottom: 1.6rem; }
.hero .btn-row { margin-top: .5rem; }
.hero-note { margin-top: 18px; font: 500 .85rem/1.4 var(--f-mono); color: var(--band-muted); letter-spacing: .02em; }
.page-hero .wrap { grid-template-columns: 1fr; align-items: start; padding-block: clamp(44px, 7vw, 88px) clamp(40px, 6vw, 72px); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.5rem); max-width: 20ch; }
.crumbs { font: 500 .8rem/1.4 var(--f-mono); letter-spacing: .06em; color: var(--band-muted); margin-bottom: 20px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.crumbs a { color: var(--band-muted); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

/* Data plate — echoes a genset nameplate */
.plate {
  position: relative; background: linear-gradient(160deg, #20262E, #161A20); border: 1px solid #39414B; border-radius: 8px; padding: 22px 22px 18px;
  font-family: var(--f-mono); color: var(--band-text); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 20px 50px rgba(0,0,0,.35);
}
.plate::before, .plate::after, .plate .rivets::before, .plate .rivets::after {
  content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #8A949F, #3A424B 70%);
}
.plate::before { top: 9px; left: 9px; } .plate::after { top: 9px; right: 9px; }
.plate .rivets::before { bottom: 9px; left: 9px; } .plate .rivets::after { bottom: 9px; right: 9px; }
.plate-title { display: flex; justify-content: space-between; align-items: center; font-size: .72rem; letter-spacing: .18em; color: var(--band-muted); padding: 0 8px 12px; border-bottom: 1px dashed #3A424B; margin-bottom: 6px; text-transform: uppercase; }
.plate-title b { color: var(--red-on-dark); font-weight: 600; }
.plate dl { margin: 0; display: grid; }
.plate dl > div { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 10px 8px; border-bottom: 1px solid #2A3139; }
.plate dl > div:last-child { border-bottom: 0; }
.plate dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--band-muted); margin: 0; }
.plate dd { margin: 0; text-align: right; line-height: 1.45; font-size: 1.05rem; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
/* Tablet & phone: the plate becomes a compact, see-through spec strip so the waveform stays visible */
@media (max-width: 1100px) {
  .hero .plate { background: rgba(22,26,32,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 16px 14px 12px; }
  .hero .plate dl { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .hero .plate dl > div { grid-template-columns: 1fr; gap: 4px; align-items: start; padding: 10px 10px; border-bottom: 0; border-right: 1px solid #2A3139; }
  .hero .plate dl > div:nth-child(3n) { border-right: 0; }
  .hero .plate dl > div:nth-child(n+4) { border-top: 1px solid #2A3139; }
  .hero .plate dt { font-size: .66rem; letter-spacing: .12em; }
  .hero .plate dd { text-align: left; font-size: .95rem; }
  .hero .plate-title { padding: 0 10px 10px; margin-bottom: 2px; }
  .hero .plate { max-width: 720px; }
}
@media (max-width: 900px) {
  .plate { padding: 16px 14px 12px; }
  .plate dl { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .plate dl > div { grid-template-columns: 1fr; gap: 4px; align-items: start; padding: 10px 10px; border-bottom: 0; border-right: 1px solid #2A3139; }
  .plate dl > div:nth-child(3n) { border-right: 0; }
  .plate dl > div:nth-child(n+4) { border-top: 1px solid #2A3139; }
  .plate dt { font-size: .66rem; letter-spacing: .12em; }
  .plate dd { text-align: left; font-size: .95rem; }
  .plate-title { padding: 0 10px 10px; margin-bottom: 2px; }
  .hero .plate { max-width: 720px; }
}
@media (max-width: 520px) {
  .plate dl, .hero .plate dl { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .plate dl > div, .hero .plate dl > div, .plate dl > div:nth-child(3n), .hero .plate dl > div:nth-child(3n) { border-right: 1px solid #2A3139; border-top: 0; }
  .plate dl > div:nth-child(2n), .hero .plate dl > div:nth-child(2n) { border-right: 0; }
  .plate dl > div:nth-child(n+3), .hero .plate dl > div:nth-child(n+3) { border-top: 1px solid #2A3139; }
}

/* ---------- Trust strip / brands ---------- */
.brand-strip { border-block: 1px solid var(--line); background: var(--surface); }
.brand-strip .wrap { display: flex; align-items: center; gap: 24px; padding-block: 18px; flex-wrap: wrap; }
.brand-strip .label { font: 500 .75rem/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); flex: none; }
.marquee { overflow: hidden; flex: 1; min-width: 240px; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee ul { display: flex; gap: 44px; list-style: none; margin: 0; padding: 0; width: max-content; animation: marquee 38s linear infinite; }
.marquee li { margin: 0; font: 800 1.2rem/1 var(--f-display); font-stretch: 118%; letter-spacing: .04em; color: var(--ink); opacity: .78; white-space: nowrap; text-transform: uppercase; }
.marquee:hover ul, .marquee:focus-within ul { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.pause-btn { font: 600 .8rem/1 var(--f-body); background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 8px 12px; min-height: 36px; cursor: pointer; }
.paused .marquee ul { animation-play-state: paused; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: clamp(20px, 2.4vw, 28px); display: flex; flex-direction: column; gap: .6rem; }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); }
.card .more { margin-top: auto; padding-top: .6rem; font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.card .more::after { content: "→"; transition: transform .2s; }
.card:hover .more::after { transform: translateX(4px); }
.link-card { position: relative; transition: border-color .2s, transform .2s, box-shadow .2s; }
.link-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.link-card .more::before { content: ""; position: absolute; inset: 0; }
.card .kicker { font: 500 .72rem/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--red-text); }
.band .card { background: var(--band-2); border-color: var(--band-line); }
.band .card p { color: var(--band-muted); }
.band .card h3 { color: #fff; }

.icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--red-text); }
.icon svg { width: 24px; height: 24px; }

/* Stat row */
/* Stat tiles: 1px gaps show the line color, so dividers stay aligned however the tiles wrap */
.stats { container-type: inline-size; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.stats > div { padding: 22px; background: var(--surface); min-width: 0; }
.stats b { display: block; font: 800 clamp(1.5rem, 2.6vw, 2.2rem)/1.05 var(--f-display); font-stretch: 112%; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stats span { font: 500 .75rem/1.35 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: block; margin-top: 8px; }
@container (max-width: 620px) { .stats > div { padding: 18px; } }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .97rem; }
caption { text-align: left; padding: 14px 18px; font-weight: 700; color: var(--ink); caption-side: top; }
th, td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
thead th { font: 600 .74rem/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--bg-alt); }
tbody th { font-family: var(--f-mono); font-weight: 600; color: var(--ink); white-space: nowrap; }
tbody tr:last-child > * { border-bottom: 0; }
tr.hl { background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* ---------- Tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; align-items: stretch; }
@media (max-width: 960px) { .tiers { grid-template-columns: 1fr; } }
.tier { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 28px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.tier.featured { border: 2px solid var(--red); box-shadow: 0 18px 50px rgba(210,47,37,.14); }
.tier .badge { position: absolute; top: -13px; left: 24px; background: var(--red); color: #fff; font: 600 .72rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; padding: 7px 10px; border-radius: 4px; }
.tier h3 { margin: 0; font-size: 1.6rem; }
.tier .for { color: var(--muted); font-style: italic; margin: 0; }
.tier ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tier li { padding-left: 28px; position: relative; margin: 0; }
.tier li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 18%, transparent); }
.tier li::after { content: ""; position: absolute; left: 5px; top: calc(.35em + 4px); width: 6px; height: 3px; border-left: 2px solid var(--red-text); border-bottom: 2px solid var(--red-text); transform: rotate(-45deg); }
.tier .foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font: 500 .85rem/1.5 var(--f-mono); color: var(--muted); }

/* ---------- Callouts / quotes ---------- */
.callout { border: 1px solid var(--line); border-left: 4px solid var(--red); background: var(--surface); border-radius: 8px; padding: 22px 24px; }
.callout p:last-child { margin-bottom: 0; }
.callout .eyebrow { margin-bottom: .5rem; }
.quote { font: 600 clamp(1.3rem, 2.4vw, 1.9rem)/1.3 var(--f-display); font-stretch: 104%; color: var(--ink); margin: 0; max-width: 40ch; text-wrap: balance; }
.band .quote { color: #fff; }
.review { display: flex; flex-direction: column; gap: 14px; }
.review .stars { color: #E8A317; letter-spacing: 2px; font-size: 1.05rem; }
.review blockquote { margin: 0; font-size: 1.1rem; color: var(--text); }
.review figcaption { font: 500 .82rem/1.3 var(--f-mono); color: var(--muted); letter-spacing: .04em; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); margin: 0; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 800 1.6rem/1 var(--f-display); font-stretch: 120%; color: var(--red-text); }
.steps h3 { margin-bottom: .25rem; font-size: 1.15rem; }
.steps p { margin: 0; color: var(--muted); }
.band .steps li { border-color: var(--band-line); }
.band .steps li::before { color: var(--red-on-dark); }
.band .steps p { color: var(--band-muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 20px; font: 700 1.05rem/1.35 var(--f-body); color: var(--ink); position: relative; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font: 400 1.6rem/1 var(--f-mono); color: var(--red-text); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .answer { padding: 0 20px 18px; color: var(--muted); }
.faq .answer p { margin-bottom: .6em; }

/* ---------- Checklist ---------- */
.checks { list-style: none; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; margin: 0; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 7px; border-left: 2.5px solid var(--red-text); border-bottom: 2.5px solid var(--red-text); transform: rotate(-45deg); }
.band .checks li::before { border-color: var(--red-on-dark); }
.cols-2 { columns: 2; column-gap: 32px; } .cols-2 li { break-inside: avoid; }
@media (max-width: 640px) { .cols-2 { columns: 1; } }

/* ---------- Pills / chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { margin: 0; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: 600 .9rem/1 var(--f-body); color: var(--text); text-decoration: none; }
a.chip:hover { border-color: var(--accent); color: var(--red-text); }
.band .chip { background: var(--band-2); border-color: var(--band-line); color: var(--band-text); }
.zip-list { font: 500 .88rem/1.9 var(--f-mono); color: var(--muted); columns: 6 90px; column-gap: 16px; list-style: none; padding: 0; }
.zip-list li { margin: 0; }

/* ---------- Brand cards ---------- */
.brand-card { border: 1px solid var(--line); border-radius: 10px; padding: 24px; background: var(--surface); display: grid; gap: 8px; }
.brand-card .name { font: 800 1.5rem/1 var(--f-display); font-stretch: 120%; text-transform: uppercase; letter-spacing: .03em; color: var(--ink); }
.brand-card .status { font: 500 .72rem/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.brand-card .status.auth { color: var(--ok); }
:root[data-theme="dark"] .brand-card .status.auth { color: #52D08D; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-card .status.auth { color: #52D08D; } }
.brand-card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); }
.band .form-card { color: var(--text); }
.band .form-card h2, .band .form-card h3 { color: var(--ink); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 700; font-size: .95rem; color: var(--ink); }
.field .req { color: var(--red-text); font-weight: 700; }
.field .hint { font-size: .85rem; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=password], input[type=url], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid #8A939D; border-radius: 8px; background: var(--bg); color: var(--text);
  font: 400 1rem/1.4 var(--f-body); transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 120px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
[aria-invalid="true"] { border-color: #C0271C !important; }
.error-msg { color: #B3261E; font-size: .88rem; font-weight: 600; }
:root[data-theme="dark"] .error-msg { color: #FF8A80; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .error-msg { color: #FF8A80; } }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-row label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 8px; cursor: pointer; font-weight: 600; }
.radio-row input { width: 18px; height: 18px; accent-color: var(--red); }
.radio-row label:has(input:checked) { border-color: var(--red); background: color-mix(in srgb, var(--red) 8%, transparent); }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 14px; padding: 14px 16px; border-radius: 8px; font-weight: 600; }
.form-status.ok { background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); }
.form-status.err { background: color-mix(in srgb, #C0271C 10%, transparent); color: #B3261E; border: 1px solid color-mix(in srgb, #C0271C 40%, transparent); }
.form-foot { font-size: .85rem; color: var(--muted); margin-top: 12px; }

/* ---------- Maps / embeds ---------- */
.embed { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--band-line); background: #0A0D11; aspect-ratio: 16 / 10; max-width: 100%; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.embed-head h3 { margin: 0; }
.live { font: 600 .72rem/1 var(--f-mono); letter-spacing: .14em; color: #3DDC84; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; animation: pulse 2.4s 3; }
.embed-fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 28px; color: var(--band-text);
  background: radial-gradient(600px 300px at 50% 40%, rgba(117,251,81,.12), transparent 70%), repeating-linear-gradient(0deg, transparent 0 31px, rgba(255,255,255,.04) 31px 32px), repeating-linear-gradient(90deg, transparent 0 31px, rgba(255,255,255,.04) 31px 32px), #0E1217; }
.embed-fallback > div { max-width: 440px; display: grid; gap: 12px; justify-items: center; }
.embed-fallback p { color: var(--band-muted); margin: 0; }
.embed-caption { font-size: .85rem; color: var(--band-muted); margin-top: 10px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--red); color: #fff; }
.cta-band .wrap { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding-block: clamp(40px, 6vw, 72px); }
.cta-band h2 { color: #fff; margin: 0 0 .3em; }
.cta-band p { color: #fff; margin: 0; }
.cta-band .btn { --b: #fff; color: var(--red-deep); }
.cta-band .btn:hover { --b: #FFE7E4; box-shadow: 0 8px 22px rgba(0,0,0,.2); }
.cta-band .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.cta-band .btn.ghost:hover { border-color: #fff; }
.cta-band :focus-visible { outline-color: #fff; }
@media (max-width: 760px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* ---------- Placeholder marker (for content JRC must fill) ---------- */
.todo { background: repeating-linear-gradient(-45deg, rgba(232,163,23,.16) 0 10px, rgba(232,163,23,.06) 10px 20px); border: 1.5px dashed #C98A0B; border-radius: 10px; padding: 18px 20px; }
.todo-label { font: 600 .72rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: #8A5A00; display: inline-block; margin-bottom: 8px; }
:root[data-theme="dark"] .todo-label { color: #F2B84B; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .todo-label { color: #F2B84B; } }
.fill { background: rgba(232,163,23,.22); padding: 0 .25em; border-radius: 3px; font-family: var(--f-mono); font-size: .92em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--band); color: var(--band-muted); font-size: .95rem; }
.site-footer .wrap { padding-block: 64px 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font: 600 .75rem/1.2 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.site-footer li { margin: 0; }
.site-footer a { color: var(--band-text); text-decoration: none; display: inline-block; padding: 4px 0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand-word b { color: #fff; }
.site-footer .brand-word span { color: var(--band-muted); }
.site-footer address { font-style: normal; line-height: 1.7; margin-top: 16px; }
.foot-phone { font: 700 1.5rem/1 var(--f-mono); color: #fff !important; margin-top: 10px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.badges span { font: 500 .7rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--band-line); padding: 8px 10px; border-radius: 4px; color: var(--band-text); }
.legal { border-top: 1px solid var(--band-line); margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .85rem; }
.legal p { margin: 0; max-width: none; }
.theme-toggle { background: none; border: 1px solid var(--band-line); color: var(--band-text); border-radius: 999px; padding: 8px 14px; min-height: 40px; font: 600 .82rem/1 var(--f-body); cursor: pointer; }

/* Mobile sticky call bar */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .callbar .btn { min-height: 50px; padding: 10px; font-size: .95rem; }
  body { padding-bottom: 76px; }
}

/* ---------- Reveal motion (content visible at rest) ---------- */
.reveal { transition: transform .7s cubic-bezier(.2,.7,.2,1), opacity .7s; }
.js .reveal.pre { transform: translateY(18px); opacity: .001; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal.pre { transform: none; opacity: 1; }
  .marquee ul { animation: none; flex-wrap: wrap; width: auto; gap: 16px 32px; }
  .marquee li[aria-hidden] { display: none; }
  .marquee { mask-image: none; }
}
@media print {
  .site-header, .topbar, .callbar, .hero-canvas, .cta-band, .site-footer .foot-grid > :not(:first-child) { display: none !important; }
  .band, .hero { background: #fff !important; color: #000 !important; }
  .band h1, .band h2, .hero h1 { color: #000 !important; }
}
.skip-inline { position: absolute; left: -9999px; }
.skip-inline:focus { position: static; display: inline-block; margin-bottom: 8px; background: var(--red); color: #fff; padding: 8px 12px; border-radius: 6px; }
figure { margin: 0; }
@media (max-width: 600px) { .topbar .wrap > span:first-child { display: none; } }
.form-grid .field { align-content: end; }
.section-head + .lead, .section-head + p { margin-top: calc(-1 * clamp(28px, 4vw, 48px) + 12px); }

/* Homeowner band under the home hero */
.home-band { background: var(--surface); border-bottom: 1px solid var(--line); }
.home-band .wrap { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 18px; align-items: stretch; padding-block: 28px; }
.home-band-intro h2 { font-size: clamp(1.25rem, 2vw, 1.55rem); margin-bottom: .3em; }
.home-band-intro p { margin: 0; color: var(--muted); font-size: .98rem; }
.home-band-intro .eyebrow { margin-bottom: .5rem; }
.home-cta { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 18px 20px; border: 2px solid var(--line); border-radius: 12px;
  text-decoration: none; color: var(--text); background: var(--bg); transition: border-color .2s, transform .2s, box-shadow .2s; min-height: 88px; }
.home-cta:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.home-cta b { display: block; font: 700 1.08rem/1.25 var(--f-body); color: var(--ink); }
.home-cta span span { display: block; font-size: .9rem; color: var(--muted); margin-top: 2px; }
.home-cta > svg { width: 22px; height: 22px; color: var(--red-text); transition: transform .2s; }
.home-cta:hover > svg { transform: translateX(4px); }
.home-cta:first-of-type { border-color: var(--red); }
@media (max-width: 1000px) { .home-band .wrap { grid-template-columns: 1fr 1fr; } .home-band-intro { grid-column: 1 / -1; } }
@media (max-width: 640px) { .home-band .wrap { grid-template-columns: 1fr; } }
.header-cta .btn { min-height: 44px; padding: 10px 16px; }
.header-cta .btn { white-space: nowrap; }
.hero-note a { color: #fff; }
.site-header .wrap { max-width: 1340px; }

/* Pause control for the hero waveform (WCAG 2.2.2) */
.motion-toggle { position: absolute; right: 16px; bottom: 14px; z-index: 2; background: rgba(17,20,24,.7); color: var(--band-text); border: 1px solid #4A535E;
  border-radius: 999px; padding: 8px 14px; min-height: 36px; font: 600 .8rem/1 var(--f-body); cursor: pointer; }
.motion-toggle:hover { border-color: #fff; color: #fff; }
.motion-toggle:focus-visible { outline-color: #7DB0FF; }
@media (prefers-reduced-motion: reduce) { .motion-toggle { display: none; } }
@media (max-width: 760px) { .motion-toggle { bottom: 10px; right: 10px; } }
.log-table td.box { width: 2.4em; text-align: center; color: var(--muted); }

.embed iframe:focus-visible, .embed iframe:focus { outline: 3px solid #7DB0FF; outline-offset: -3px; }
.checks.town-list { display: block; columns: 4 190px; column-gap: 32px; }
.checks.town-list li { margin-bottom: 10px; }
.town-list li { break-inside: avoid; }
.split .stats { grid-template-columns: repeat(2, minmax(0,1fr)); }

/* Home standby installation feature */
.install .split { align-items: center; }
.install h2 { max-width: 24ch; }
.install .checks { margin: 18px 0 22px; }
.install-steps { list-style: none; padding: 0; margin: clamp(36px, 5vw, 56px) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--band-line); border: 1px solid var(--band-line); border-radius: 12px; overflow: hidden; }
.install-steps li { margin: 0; background: var(--band-2); padding: 22px 22px 24px; display: grid; gap: 8px; align-content: start; }
.install-steps .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 700 .95rem/1 var(--f-mono); color: #111418; background: var(--red-on-dark); }
.install-steps h3 { font-size: 1.1rem; margin: 4px 0 0; }
.install-steps p { margin: 0; color: var(--band-muted); font-size: .95rem; }
@media (max-width: 960px) { .install-steps { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .install-steps { grid-template-columns: 1fr; } }

/* Fallbacks for older Safari/iOS (before 16.2) and older Android browsers without color-mix() */
@supports not (background: color-mix(in srgb, red 50%, transparent)) {
  .site-header, .callbar { background: var(--bg); }
  .icon { background: rgba(63,184,31,.16); }
  tr.hl { background: rgba(63,184,31,.10); }
  .tier li::before { background: rgba(63,184,31,.18); }
  .form-status.ok { background: rgba(30,127,79,.12); border-color: rgba(30,127,79,.4); }
  .form-status.err { background: rgba(192,39,28,.10); border: 1px solid rgba(192,39,28,.4); }
  .radio-row input:checked + span, .radio-row label:focus-within { border-color: var(--red); }
}
@supports not (overflow-x: clip) { html, body { overflow-x: hidden; } }
