/* ==========================================================================
   Expert Batteries — stylesheet
   1. Tokens          5. Hero
   2. Base / reset    6. Sections & components
   3. Utilities       7. Forms, booking, results
   4. Header / nav    8. Footer, toast, responsive
   ========================================================================== */

/* ----------------------------- 1. TOKENS -------------------------------- */
:root {
  --bg: #070a12;
  --bg-2: #0b1020;
  --surface: #0f1524;
  --surface-2: #141c2f;
  --surface-3: #1a2338;
  --line: #232e45;
  --line-soft: #1a2336;

  --text: #e9eef9;
  --muted: #97a5c0;
  --muted-2: #6f7d99;

  --accent: #22d3ee;
  --accent-2: #7dd3fc;
  --warn: #ffc53d;
  --ok: #3ddc97;
  --danger: #ff6b6b;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 0 0 1px rgba(34, 211, 238, 0.22), 0 18px 60px -24px rgba(34, 211, 238, 0.5);

  --wrap: 1180px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Manrope', 'Inter', system-ui, sans-serif;

  --t: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------- 2. BASE / RESET ---------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.15rem, 5.4vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--accent-2); }
img, svg { max-width: 100%; }
strong { color: #fff; font-weight: 650; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------------------------- 3. UTILITIES ------------------------------ */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.wrap.narrow { max-width: 820px; }
.sr-only {
  position: absolute; 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; top: -60px; left: 16px; z-index: 999;
  background: var(--accent); color: #04121a; padding: 10px 16px;
  border-radius: 0 0 10px 10px; font-weight: 700; transition: top var(--t);
}
.skip-link:focus { top: 0; color: #04121a; }

.tiny { font-size: 0.78rem; color: var(--muted-2); line-height: 1.6; margin: 0; }
.hint { margin-top: 6px; }
.accent { color: var(--accent); }
.ok { color: var(--ok); }
.disclaimer { margin-top: 16px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 14px;
}
.dot-live {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.16);
  animation: pulse 2.4s ease-in-out infinite; flex: none;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.16); }
  50% { box-shadow: 0 0 0 8px rgba(61, 220, 151, 0.04); }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-weight: 650; line-height: 1;
  padding: 13px 20px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: transform var(--t), background var(--t), border-color var(--t), color var(--t), box-shadow var(--t);
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 16px 28px; font-size: 1.02rem; }
.btn-sm { padding: 9px 14px; font-size: 0.85rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #4ade80 140%);
  color: #04121a;
  box-shadow: 0 12px 34px -14px rgba(34, 211, 238, 0.85);
}
.btn-primary:hover { color: #04121a; transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(34, 211, 238, 0.95); }

.btn-outline { background: rgba(255, 255, 255, 0.02); border-color: var(--line); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--text); background: rgba(34, 211, 238, 0.07); }

.btn-ghost { background: transparent; color: var(--muted); border-color: transparent; }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.pill {
  display: inline-flex; align-items: center; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 11px;
  border-radius: 999px; border: 1px solid var(--line); color: var(--muted);
}
.pill-warn { color: var(--warn); border-color: rgba(255, 197, 61, 0.32); background: rgba(255, 197, 61, 0.09); }

.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .dot-live { animation: none; }
}

/* --------------------------- 4. HEADER / NAV ---------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(7, 10, 18, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), background var(--t);
}
.site-header.is-stuck { border-bottom-color: var(--line-soft); background: rgba(7, 10, 18, 0.95); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 74px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); flex: none; }
.brand:hover { color: var(--text); }

/* Logo artwork carries its own white plate, so it reads as a badge on the dark header. */
.brand-mark {
  display: block; width: auto; height: 40px; flex: none;
  filter: drop-shadow(0 3px 9px rgba(0, 0, 0, 0.6));
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong {
  font-family: var(--font-head); font-size: 1.02rem; letter-spacing: 0.06em; color: #fff;
}
.brand-text span { font-size: 0.68rem; letter-spacing: 0.3em; color: var(--accent); margin-top: 3px; }

.brand-full img { display: block; width: 190px; height: auto; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.55)); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  color: var(--muted); font-size: 0.875rem; font-weight: 550;
  padding: 9px 11px; border-radius: 999px; transition: color var(--t), background var(--t);
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav a.is-active { color: var(--accent); background: rgba(34, 211, 238, 0.09); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; width: 42px; height: 42px; padding: 0;
  background: transparent; border: 1px solid var(--line); border-radius: 11px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform var(--t), opacity var(--t); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------- 5. HERO -------------------------------- */
.hero { position: relative; padding: clamp(56px, 9vw, 104px) 0 clamp(48px, 7vw, 88px); overflow: hidden; }
.hero-glow {
  position: absolute; inset: -30% -10% auto -10%; height: 720px; pointer-events: none;
  background:
    radial-gradient(46% 60% at 22% 34%, rgba(34, 211, 238, 0.2), transparent 70%),
    radial-gradient(40% 55% at 82% 22%, rgba(125, 211, 252, 0.14), transparent 70%),
    radial-gradient(50% 50% at 60% 92%, rgba(61, 220, 151, 0.1), transparent 72%);
  filter: blur(12px);
}
.grid-overlay {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(65% 55% at 50% 20%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(65% 55% at 50% 20%, #000 0%, transparent 78%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 46px; align-items: center; }

.hero h1 { margin-bottom: 20px; }
.grad {
  background: linear-gradient(100deg, var(--accent) 0%, #7dd3fc 45%, #3ddc97 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: clamp(1rem, 1.5vw, 1.12rem); color: var(--muted); max-width: 60ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero-note { font-size: 0.85rem; color: var(--muted-2); }

.hero-card {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-glow);
}
.hero-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.hero-card-head h2 { font-size: 1.05rem; margin: 0; }
.hero-stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.hero-stats li { background: var(--surface); padding: 15px 17px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.hero-stats b { font-family: var(--font-head); font-size: 1.32rem; color: var(--accent); }
.hero-stats span { font-size: 0.84rem; color: var(--muted); text-align: right; }
.hero-card-foot { margin-top: 16px; }

/* ----------------------------- 6. SECTIONS ------------------------------ */
.section { padding: clamp(56px, 8vw, 96px) 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 40%, var(--bg) 100%); border-block: 1px solid var(--line-soft); }

.section-head { max-width: 780px; margin: 0 auto clamp(30px, 4vw, 48px); text-align: center; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head h2 { margin-bottom: 12px; }
.section-sub { color: var(--muted); margin: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

/* Pillars */
.pillar {
  position: relative; padding: 28px 24px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface) 0%, rgba(11, 16, 32, 0.6) 100%);
  border: 1px solid var(--line-soft); overflow: hidden;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.pillar::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0; transition: opacity var(--t);
}
.pillar:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, 0.34); box-shadow: var(--shadow); }
.pillar:hover::before { opacity: 1; }
.pillar-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.26);
}
.pillar-icon svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { font-size: 1.08rem; }
.pillar p { color: var(--muted); font-size: 0.93rem; margin-bottom: 14px; }
.pillar-highlight {
  display: inline-block; font-size: 0.82rem; font-weight: 700; color: var(--warn);
  background: rgba(255, 197, 61, 0.1); border: 1px solid rgba(255, 197, 61, 0.26);
  padding: 7px 12px; border-radius: 999px;
}

/* Value strip */
.value-strip {
  margin-top: 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden;
}
.value-strip > div { background: var(--surface); padding: 20px; }
.value-strip strong { display: block; font-family: var(--font-head); font-size: 0.98rem; margin-bottom: 6px; }
.value-strip p { margin: 0; font-size: 0.85rem; color: var(--muted-2); }

/* Tier toggle + mechanics table */
.tier-toggle { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 20px; }
.tier-btn {
  font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px; cursor: pointer; transition: all var(--t);
}
.tier-btn:hover { color: var(--text); border-color: rgba(34, 211, 238, 0.4); }
.tier-btn.is-active { color: #04121a; background: var(--accent); border-color: var(--accent); }

.table-scroll { overflow-x: auto; overflow-y: clip; border-radius: var(--radius-lg); border: 1px solid var(--line-soft); background: var(--surface); }
.mech-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.mech-table th, .mech-table td { padding: 15px 18px; text-align: left; vertical-align: top; font-size: 0.9rem; border-bottom: 1px solid var(--line-soft); }
/* Sticky below the 74px site header. `overflow-y: clip` on .table-scroll keeps the wrapper
   out of the vertical scroll chain, so the row pins to the page instead of being pushed
   74px down over the first row. Uses an inset shadow because collapsed-table borders are
   dropped by some browsers while a header cell is stuck. */
.mech-table thead th {
  position: sticky; top: 74px; background: var(--surface-3); z-index: 2;
  font-family: var(--font-head); font-size: 0.82rem; letter-spacing: 0.02em; color: var(--muted);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 -1px 0 var(--line);
}
@supports not (overflow-y: clip) {
  /* Older engines: drop the pin rather than let the header cover the first row. */
  .mech-table thead th { position: static; }
}
.mech-table thead th em { display: block; font-style: normal; font-size: 0.72rem; color: var(--muted-2); margin-top: 3px; }
.mech-table tbody tr:last-child td { border-bottom: 0; }
.mech-table tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }
.mech-table td:first-child { font-weight: 600; color: #fff; }
.mech-table td .row-hint { display: block; font-size: 0.75rem; color: var(--muted-2); font-weight: 400; margin-top: 3px; }
.th-tag {
  display: inline-block; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 5px; margin-right: 6px; background: var(--surface-2); color: var(--muted-2);
}
.th-tag-hot { background: rgba(34, 211, 238, 0.16); color: var(--accent); }

.mech-table td.is-highlight, .mech-table th.is-highlight { background: rgba(34, 211, 238, 0.07); }
.mech-table th.is-highlight { background: rgba(34, 211, 238, 0.14); color: var(--accent); }

.cell { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.cell-badge { font-weight: 700; font-size: 0.78rem; padding: 3px 9px; border-radius: 999px; }
.cell-badge.free { background: rgba(61, 220, 151, 0.14); color: var(--ok); border: 1px solid rgba(61, 220, 151, 0.3); }
.cell-badge.discount { background: rgba(255, 197, 61, 0.13); color: var(--warn); border: 1px solid rgba(255, 197, 61, 0.3); }
.cell-badge.plain { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.cell-badge.fee { background: rgba(125, 211, 252, 0.12); color: var(--accent-2); border: 1px solid rgba(125, 211, 252, 0.28); }
.strike { color: var(--muted-2); text-decoration: line-through; text-decoration-color: rgba(255, 107, 107, 0.6); }

.table-legend { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 14px; }
.legend-chip { font-size: 0.7rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; margin-right: 4px; }
.legend-chip.free { background: rgba(61, 220, 151, 0.14); color: var(--ok); }
.legend-chip.disc { background: rgba(255, 197, 61, 0.13); color: var(--warn); }

/* ------------------------- SAVINGS CALCULATOR --------------------------- */
.calc-layout { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 22px; align-items: start; }
.calc-row { margin-bottom: 20px; }
.calc-row:last-child { margin-bottom: 0; }
.fieldset { border: 0; padding: 0; margin: 0 0 0; }
.fieldset legend { padding: 0; margin-bottom: 12px; }

.label { display: block; font-size: 0.82rem; font-weight: 650; color: var(--muted); margin-bottom: 8px; letter-spacing: 0.01em; }
.input {
  width: 100%; font: inherit; font-size: 0.95rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; transition: border-color var(--t), box-shadow var(--t);
  appearance: none;
}
.input:hover { border-color: #2c3a55; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16); }
textarea.input { resize: vertical; min-height: 84px; }
select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%2397a5c0' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 11px; padding-right: 38px;
}
.input-row { position: relative; display: flex; align-items: center; }
.input-row .prefix {
  position: absolute; left: 14px; color: var(--muted-2); font-size: 0.95rem; pointer-events: none;
}
.input-row .input { padding-left: 32px; font-variant-numeric: tabular-nums; }

.range { width: 100%; margin-top: 12px; -webkit-appearance: none; appearance: none; background: transparent; height: 22px; }
.range::-webkit-slider-runnable-track { height: 5px; border-radius: 3px; background: var(--line); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; margin-top: -7.5px;
  background: var(--accent); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--accent); cursor: pointer;
}
.range::-moz-range-track { height: 5px; border-radius: 3px; background: var(--line); }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); cursor: pointer; }

.counters { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.counter { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--surface); padding: 14px 16px; }
.counter-label { font-size: 0.88rem; font-weight: 600; }
.counter-note { font-size: 0.74rem; color: var(--muted-2); margin: 3px 0 0; }
.counter-save { font-size: 0.72rem; color: var(--ok); margin: 4px 0 0; }
.stepper { display: flex; align-items: center; gap: 2px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.stepper button {
  width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer;
  background: transparent; color: var(--muted); font-size: 1.05rem; line-height: 1; display: grid; place-items: center;
  transition: background var(--t), color var(--t);
}
.stepper button:hover { background: var(--surface-3); color: var(--text); }
.stepper input {
  width: 44px; text-align: center; background: transparent; border: 0; color: #fff;
  font: inherit; font-weight: 700; font-variant-numeric: tabular-nums; -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; }

.calc-outputs { position: sticky; top: 96px; }
.stat-hero { text-align: center; padding: 8px 0 22px; border-bottom: 1px solid var(--line-soft); margin-bottom: 22px; }
.stat-label { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); font-weight: 650; margin: 0 0 8px; }
.stat-value {
  font-family: var(--font-head); font-size: clamp(2rem, 4.4vw, 2.7rem); font-weight: 800;
  color: var(--accent); margin: 0 0 6px; font-variant-numeric: tabular-nums;
}
.stat-value-sm { font-family: var(--font-head); font-size: 1.28rem; font-weight: 750; margin: 0 0 5px; font-variant-numeric: tabular-nums; }
.stat-sub { font-size: 0.78rem; color: var(--muted-2); margin: 0; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.stat { background: var(--surface); padding: 16px; }
.net-panel {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.1), rgba(61, 220, 151, 0.06));
  border: 1px solid rgba(34, 211, 238, 0.26); border-radius: var(--radius); padding: 20px;
}
.net-value { font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: #fff; margin: 0 0 4px; font-variant-numeric: tabular-nums; }

/* Maintenance */
.maint-card { padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line-soft); }
.maint-card .freq { display: inline-flex; align-items: center; gap: 7px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.24); padding: 5px 11px; border-radius: 999px; margin-bottom: 14px; }
.maint-card h3 { font-size: 1.02rem; }
.maint-card p { font-size: 0.9rem; color: var(--muted); margin-bottom: 12px; }
.maint-card .by { font-size: 0.76rem; color: var(--muted-2); margin: 0; }

.cadence-card { margin-top: 22px; }
.cadence-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.cadence-head h3 { margin: 0; font-size: 1.05rem; }
.cadence { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.cadence li {
  position: relative; padding: 0 0 20px 30px; border-left: 2px solid var(--line); margin-left: 7px;
}
.cadence li:last-child { border-left-color: transparent; padding-bottom: 0; }
.cadence li::before {
  content: ''; position: absolute; left: -8px; top: 4px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent);
}
.cadence li.milestone::before { border-color: var(--warn); }
.cadence .when { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.cadence li.milestone .when { color: var(--warn); }
.cadence .what { display: block; font-weight: 600; margin: 3px 0 3px; }
.cadence .why { font-size: 0.84rem; color: var(--muted-2); }

/* Rescue */
.rescue-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 34px; align-items: start; }
.check-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; font-size: 0.95rem; color: var(--muted); }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(61, 220, 151, 0.14); border: 1px solid rgba(61, 220, 151, 0.4);
}
.check-list li::after {
  content: ''; position: absolute; left: 5.5px; top: 10px; width: 6px; height: 3px;
  border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg);
}
.check-list strong { color: var(--text); }
.rescue-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.rescue-calc { position: static; }
.calc-title { font-size: 1.05rem; margin-bottom: 20px; }
.rescue-total { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line-soft); }

/* Coverage */
.coverage-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 22px; align-items: start; }
.city-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.city {
  display: flex; align-items: center; gap: 12px; padding: 18px;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
}
.city-icon {
  width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.24);
}
.city-icon svg { width: 17px; height: 17px; stroke: var(--accent); fill: none; stroke-width: 1.7; }
.city strong { display: block; font-size: 0.95rem; }
.city span { font-size: 0.75rem; color: var(--muted-2); }
.coverage-note h3 { font-size: 1rem; margin-bottom: 8px; }
.coverage-note h3:not(:first-child) { margin-top: 22px; }
.coverage-note p { color: var(--muted); font-size: 0.92rem; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.steps li { font-size: 0.9rem; color: var(--muted); }
.steps li strong { color: var(--text); display: block; }

/* Recap cards */
.recap-card { padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line-soft); }
.recap-card .kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.recap-card h3 { font-size: 1.05rem; margin: 10px 0 8px; }
.recap-card p { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; transition: border-color var(--t); }
.faq-item[open] { border-color: rgba(34, 211, 238, 0.32); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; position: relative;
  font-weight: 600; font-size: 0.98rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg); transition: transform var(--t);
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-item p { padding: 0 20px 18px; margin: 0; color: var(--muted); font-size: 0.92rem; }

/* CTA band */
.cta-band {
  position: relative; padding: clamp(44px, 6vw, 72px) 0;
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.13), rgba(61, 220, 151, 0.06) 60%, transparent);
  border-block: 1px solid rgba(34, 211, 238, 0.2);
}
.cta-inner { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-inner h2 { margin: 0 0 6px; font-size: clamp(1.4rem, 3vw, 2rem); }
.cta-inner p { margin: 0; color: var(--muted); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------ 7. FORMS, BOOKING, RESULTS, REQUEST LIST ------------ */
.book-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: 22px; align-items: start; }
.book-side { display: grid; gap: 18px; position: sticky; top: 96px; }
.field-group { border: 0; padding: 0; margin: 0 0 26px; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); cursor: pointer; transition: all var(--t); }
.choice:hover { border-color: #2c3a55; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .mark {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex: none; margin-top: 2px;
  display: grid; place-items: center; transition: all var(--t);
}
.choice .mark::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform var(--t); }
.choice strong { display: block; font-size: 0.9rem; }
.choice span.sub { font-size: 0.76rem; color: var(--muted-2); }
.choice:has(input:checked), .choice.is-checked { border-color: var(--accent); background: rgba(34, 211, 238, 0.07); box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.35); }
.choice:has(input:checked) .mark, .choice.is-checked .mark { border-color: var(--accent); }
.choice:has(input:checked) .mark::after, .choice.is-checked .mark::after { transform: scale(1); }
.choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice.is-checked strong { color: #fff; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field.span-2 { grid-column: 1 / -1; }
.req { color: var(--danger); }
.error { color: var(--danger); font-size: 0.76rem; margin: 6px 0 0; min-height: 0; }
.field.has-error .input { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.13); }

.checkbox { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0 0; font-size: 0.87rem; color: var(--muted); cursor: pointer; }
.checkbox input { width: 17px; height: 17px; margin: 3px 0 0; accent-color: var(--accent); flex: none; }

/* Off-screen honeypot: bots fill it in, people never see it. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 24px 0 16px; }

/* Off-screen honeypot: bots fill it in, people never see it. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.result-card { border-color: rgba(61, 220, 151, 0.34); background: linear-gradient(180deg, rgba(61, 220, 151, 0.08), var(--bg-2)); }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.result-head h3 { margin: 0; font-size: 1.02rem; }
.ref {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.05rem; font-weight: 700; color: var(--accent);
  letter-spacing: 0.06em; background: rgba(34, 211, 238, 0.1); border: 1px dashed rgba(34, 211, 238, 0.4);
  padding: 8px 12px; border-radius: var(--radius-sm); display: inline-block; margin-bottom: 14px;
}
.result-rows { display: grid; gap: 8px; margin: 0 0 16px; }
.result-rows div { display: flex; justify-content: space-between; gap: 14px; font-size: 0.87rem; border-bottom: 1px dashed var(--line-soft); padding-bottom: 7px; }
.result-rows dt, .result-rows .k { color: var(--muted-2); }
.result-rows dd, .result-rows .v { margin: 0; text-align: right; font-weight: 600; }

.requests-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.requests-head h3 { margin: 0; font-size: 1.02rem; }
.request-list { display: grid; gap: 10px; }
.request { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 14px; background: var(--bg); }
.request-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.request-top strong { font-size: 0.88rem; }
.request-top code { font-size: 0.72rem; color: var(--accent); }
.request .meta { font-size: 0.78rem; color: var(--muted-2); margin: 6px 0 10px; }
.request-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.empty { font-size: 0.85rem; color: var(--muted-2); border: 1px dashed var(--line); border-radius: var(--radius); padding: 20px; text-align: center; }

.contact-card h3 { font-size: 1.02rem; }
.contact-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.contact-list li { display: flex; justify-content: space-between; gap: 12px; font-size: 0.85rem; border-bottom: 1px dashed var(--line-soft); padding-bottom: 9px; }
.contact-list span { color: var(--muted-2); }
.contact-list a { font-weight: 600; }

.contact-list .contact-line { display: grid; gap: 5px; padding-bottom: 11px; border-bottom: 1px dashed var(--line-soft); }
.contact-list .contact-line:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-line .contact-phone { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: #fff; letter-spacing: 0.01em; }
.contact-line .contact-channels { display: flex; flex-wrap: wrap; gap: 12px; font-size: 0.78rem; }
.contact-line .contact-channels a { color: var(--accent); font-weight: 600; }
.contact-line .contact-mail { font-size: 0.78rem; color: var(--muted-2); font-weight: 500; word-break: break-all; }

/* ---------------------- 8. FOOTER, TOAST, RESPONSIVE -------------------- */
.site-footer { border-top: 1px solid var(--line-soft); background: var(--bg-2); padding: 46px 0 22px; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 34px; padding-bottom: 30px; border-bottom: 1px solid var(--line-soft); }
.footer-brand p { margin-top: 12px; }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.footer-nav h4 { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 12px; }
.footer-nav a { display: block; font-size: 0.87rem; color: var(--muted); padding: 5px 0; }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom { display: grid; gap: 10px; padding-top: 20px; }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 24px);
  background: var(--surface-3); border: 1px solid rgba(61, 220, 151, 0.4); color: var(--text);
  padding: 13px 20px; border-radius: 999px; font-size: 0.88rem; font-weight: 600;
  box-shadow: var(--shadow); z-index: 200; opacity: 0; transition: opacity var(--t), transform var(--t);
  max-width: calc(100vw - 32px); text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .hero-card { max-width: 620px; }
  .calc-layout, .rescue-layout, .coverage-grid, .book-layout { grid-template-columns: 1fr; }
  .calc-outputs, .book-side { position: static; }
  .value-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr; }
}

/* The horizontal nav needs ~1030px to sit comfortably beside the brand and CTA. */
@media (max-width: 1060px) {
  .nav {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
    background: rgba(7, 10, 18, 0.98); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line); padding: 12px 22px 22px; gap: 2px;
    max-height: calc(100vh - 74px); overflow-y: auto;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity var(--t), transform var(--t);
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 14px; font-size: 1rem; border-radius: var(--radius-sm); }
  .nav-toggle { display: flex; }
  .header-inner { gap: 12px; }
  .header-actions { margin-left: auto; }
}

/* Keeps the header on one line on narrower laptops. */
@media (max-width: 1200px) {
  .only-desktop { display: none; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 84px; }
  .brand { gap: 9px; }
  .brand-mark { height: 34px; }
  .brand-text strong { font-size: 0.95rem; }
  .brand-text span { font-size: 0.6rem; letter-spacing: 0.24em; }
  .brand-full img { width: 168px; }
  .grid-3, .city-list, .form-grid, .choice-grid, .stat-grid { grid-template-columns: 1fr; }
  .card { padding: 20px; border-radius: var(--radius); }
  .calc-outputs { border-radius: var(--radius); }
  .hero-cta .btn, .rescue-actions .btn, .cta-actions .btn { width: 100%; }
  .tier-toggle { justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; flex-wrap: nowrap; }
  .tier-btn { flex: none; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .counter { grid-template-columns: 1fr; gap: 10px; }
  .stepper { justify-self: start; }
  .net-panel { flex-direction: column; align-items: flex-start; }
  .net-panel .btn { width: 100%; }
}

/* Battery catalogue — reuses .mech-table so it stacks into cards on phones */
.catalog-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.catalog-bar .input { max-width: 300px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 auto; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); font: inherit; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: color var(--t), border-color var(--t), background var(--t);
}
.chip:hover { color: var(--text); border-color: rgba(34, 211, 238, 0.4); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #04121a; }
.chip-count { font-size: 0.72rem; font-weight: 700; opacity: 0.7; }
.catalog-table .price-cell { font-weight: 700; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.catalog-table .reserve-cell { text-align: right; white-space: nowrap; }
.catalog-empty { text-align: center; color: var(--muted-2); margin: 18px 0 0; }
.catalog-note { margin-top: 16px; max-width: 760px; }

@media (max-width: 760px) {
  .catalog-bar .input { max-width: none; flex: 1 1 100%; }
  .chip-row { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .chip { flex: none; }
  .catalog-table .reserve-cell { text-align: left; }
  .catalog-table .reserve-cell .btn { width: 100%; }
}

/* Mechanic table becomes stacked cards on small screens */
@media (max-width: 760px) {
  .table-scroll { border: 0; background: transparent; overflow: visible; }
  .mech-table { min-width: 0; }
  .mech-table thead { display: none; }
  .mech-table, .mech-table tbody, .mech-table tr, .mech-table td { display: block; width: 100%; }
  .mech-table tr {
    background: var(--surface); border: 1px solid var(--line-soft);
    border-radius: var(--radius); margin-bottom: 12px; padding: 6px 4px;
  }
  .mech-table td { border: 0; border-bottom: 1px dashed var(--line-soft); padding: 11px 16px; display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
  .mech-table tr td:last-child { border-bottom: 0; }
  .mech-table td:first-child { font-size: 1rem; display: block; padding-bottom: 12px; }
  .mech-table td:first-child .row-hint { margin-top: 4px; }
  .mech-table td[data-label]::before {
    content: attr(data-label); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--muted-2); flex: none;
  }
  .mech-table td.is-highlight { background: rgba(34, 211, 238, 0.07); border-radius: 8px; }
}
