/* =========================================================
   Business Website Design Agency — "High-Voltage Utility" theme
   Tokens map 1:1 to theme.json in the WordPress build.
   ========================================================= */
:root {
  /* Color (60 / 30 / 10) */
  --bg: #111112;            /* Matte black — page background */
  --surface: #1C1D1F;       /* Steel gray — cards, tables, panels */
  --surface-2: #25262A;     /* Raised surface — hover, zebra rows */
  --line: #2E3033;          /* Dividers and borders */
  --orange: #FF5A00;        /* Safety orange — CTAs, phone numbers, focus */
  --orange-hover: #FF7A2E;  /* Lighter on dark, so hover reads as "brighter" */
  --text: #F5F6F8;          /* Off-white — headings, key text */
  --muted: #9A9FA5;         /* Silver — body copy */
  --good: #3FB950;          /* Status only: "call placed", success states */
  --bad: #E5484D;           /* Status only: errors, "lost" state */

  /* Type */
  --font-sans: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(1.9rem, 1.4rem + 2.2vw, 2.9rem);
  --step-4: clamp(2.4rem, 1.5rem + 4vw, 4.4rem);

  /* Space (8-pt base) */
  --s-1: 0.5rem; --s-2: 1rem; --s-3: 1.5rem; --s-4: 2rem;
  --s-5: 3rem;   --s-6: 4.5rem; --s-7: 7rem;

  /* Shape — radius scales with hierarchy, not one value everywhere */
  --r-sm: 4px;   /* buttons, inputs */
  --r-md: 8px;   /* panels, tables */
  --r-lg: 28px;  /* phone frames only */

  --wrap: 1180px;
  --measure: 62ch;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--text); text-decoration-color: var(--orange); text-underline-offset: 3px; }
a:hover { color: var(--orange-hover); }
p { margin: 0 0 var(--s-2); max-width: var(--measure); }
ul, ol { margin: 0; padding: 0; }

h1, h2, h3, h4 { color: var(--text); margin: 0 0 var(--s-2); font-weight: 900; letter-spacing: -0.03em; }
h1 { font-size: var(--step-4); line-height: 1.02; }
h2 { font-size: var(--step-3); line-height: 1.08; }
h3 { font-size: var(--step-1); line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--muted); max-width: 56ch; }
.mono { font-family: var(--font-mono); font-weight: 500; }
.phone-num { font-family: var(--font-mono); font-weight: 500; color: var(--orange); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--orange); color: var(--bg); padding: 8px 14px; font-weight: 700; z-index: 100; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--s-3), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--s-7); border-top: 1px solid var(--line); }
.section--tight { padding-block: var(--s-6); }
.section__head { margin-bottom: var(--s-5); max-width: 760px; }
.section__head p { font-size: var(--step-1); line-height: 1.5; }

/* ---------- Buttons ----------
   Orange buttons carry DARK text: white on #FF5A00 is ~3:1 and fails WCAG AA
   at normal sizes; #111112 on #FF5A00 is ~6:1 and passes. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 52px; padding: 0 1.4rem;
  font: 900 1rem/1 var(--font-sans); letter-spacing: -0.01em;
  border-radius: var(--r-sm); border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--orange); color: var(--bg); }
.btn--primary:hover { background: var(--orange-hover); color: var(--bg); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--muted); color: var(--text); }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17, 17, 18, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: var(--s-3); height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 900; letter-spacing: -0.02em; font-size: 1.08rem; white-space: nowrap; }
.logo svg { width: 30px; height: 30px; }
.logo .tld { color: var(--orange); font-weight: 400; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: var(--s-4); }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.97rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { box-shadow: 0 2px 0 var(--orange); }
.header-cta { margin-left: var(--s-2); min-height: 44px; padding: 0 1.1rem; font-size: 0.95rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: var(--r-sm); height: 44px; padding: 0 14px; font: 700 0.9rem var(--font-sans); cursor: pointer; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .header-cta { display: none; }
  .nav { position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: var(--s-1) var(--s-3) var(--s-3); }
  .nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
}

/* Mobile action bar — the same "one thumb away" rule we sell */
.action-bar { display: none; }
@media (max-width: 900px) {
  .action-bar {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--surface); border-top: 1px solid var(--line);
  }
  .action-bar .btn { min-height: 50px; }
  body { padding-bottom: 76px; }
}

/* ---------- Hero ---------- */
.hero { padding-block: var(--s-6) var(--s-7); }
.hero__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--s-6); align-items: center; }
.hero__kicker { color: var(--text); font-weight: 500; margin-bottom: var(--s-3); display: flex; align-items: center; gap: 10px; }
.hero__kicker::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 90, 0, .18); }
.hero h1 { max-width: 13ch; }
.hero .lede { margin-bottom: var(--s-4); }
.audit-inline { display: flex; gap: 8px; max-width: 540px; }
.audit-inline input { flex: 1; min-width: 0; }
.hero__fine { font-size: var(--step--1); margin-top: var(--s-2); }
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--s-5); }
}
@media (max-width: 560px) {
  .audit-inline { flex-direction: column; }
}

/* ---------- Speed race (hero signature element) ---------- */
.race { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-3); }
.race__phones { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.race__col { display: flex; flex-direction: column; gap: 10px; }
.race__label { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--step--1); color: var(--text); font-weight: 700; }
.race__timer { font-family: var(--font-mono); font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.race__col--ours .race__timer { color: var(--orange); }
.phone {
  position: relative; aspect-ratio: 9 / 17; border-radius: var(--r-lg);
  border: 6px solid #2A2B2E; background: #0B0B0C; overflow: hidden;
}
.phone__screen { position: absolute; inset: 0; display: flex; flex-direction: column; }
.phone__load { position: absolute; inset: 0; display: grid; place-items: center; background: #F2F2F2; }
.phone__load span { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #D0D0D0; border-top-color: #8A8A8A; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.phone__lost { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 6px; background: rgba(17,17,18,.94); color: var(--text); padding: 12px; font-size: 0.82rem; line-height: 1.35; opacity: 0; transition: opacity .25s ease; }
.phone__lost strong { color: var(--bad); font-size: 0.95rem; }
.mini { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 14px 12px; background: #151517; opacity: 0; transition: opacity .2s ease; }
.mini__brand { color: var(--text); font-weight: 900; font-size: 0.8rem; letter-spacing: -0.01em; }
.mini__open { font-size: 0.66rem; color: var(--good); font-weight: 700; display: flex; align-items: center; gap: 5px; }
.mini__open::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--good); }
.mini__h { color: var(--text); font-weight: 900; font-size: 1.02rem; line-height: 1.1; letter-spacing: -0.02em; }
.mini__p { font-size: 0.66rem; line-height: 1.4; color: var(--muted); }
.mini__call { margin-top: auto; background: var(--orange); color: var(--bg); border-radius: 6px; padding: 12px 8px; text-align: center; font-weight: 900; font-size: 0.8rem; transition: background-color .2s ease; }
.mini__call small { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 0.68rem; }
.mini__call.is-placed { background: var(--good); }
.mini--template { background: #fff; }
.mini--template .mini__brand, .mini--template .mini__h { color: #222; }
.race__foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); margin-top: var(--s-3); padding-top: var(--s-2); border-top: 1px solid var(--line); font-size: 0.8rem; }
.race__replay { background: none; border: 1px solid var(--line); color: var(--text); border-radius: var(--r-sm); padding: 8px 12px; font: 700 0.85rem var(--font-sans); cursor: pointer; min-height: 40px; }
.race__replay:hover { border-color: var(--muted); }
.is-shown { opacity: 1 !important; }

/* ---------- Trades strip ---------- */
.trades-strip { border-top: 1px solid var(--line); padding-block: var(--s-3); }
.trades-strip ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); align-items: center; }
.trades-strip li { color: var(--text); font-weight: 500; }
.trades-strip li:first-child { color: var(--muted); font-weight: 400; }

/* ---------- Problem timeline (a real sequence, so it's numbered by time) ---------- */
.timeline { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.timeline li { padding: var(--s-3); border-right: 1px solid var(--line); background: var(--surface); }
.timeline li:last-child { border-right: 0; background: #2A1508; }
.timeline time { display: block; font-family: var(--font-mono); font-weight: 500; color: var(--orange); margin-bottom: var(--s-1); font-size: 1.1rem; }
.timeline p { margin: 0; color: var(--text); font-size: 0.98rem; line-height: 1.45; }
.timeline li:last-child p { font-weight: 700; }
@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline li { border-right: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 64px 1fr; gap: var(--s-2); align-items: baseline; }
  .timeline li:last-child { border-bottom: 0; }
  .timeline time { margin: 0; }
}

/* ---------- Capabilities (lead item + supporting list, not a card grid) ---------- */
.caps { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-5); align-items: start; }
.cap-lead { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: var(--r-md); padding: var(--s-4); }
.cap-lead h3 { font-size: var(--step-2); font-weight: 900; letter-spacing: -0.02em; }
.cap-list { list-style: none; display: grid; gap: 0; }
.cap-list li { display: grid; grid-template-columns: 44px 1fr; gap: var(--s-2); padding-block: var(--s-3); border-bottom: 1px solid var(--line); }
.cap-list li:first-child { padding-top: 0; }
.cap-list li:last-child { border-bottom: 0; }
.cap-list p { margin: 0; }
.icon { width: 44px; height: 44px; border: 1.5px solid var(--orange); border-radius: var(--r-sm); display: grid; place-items: center; color: var(--orange); }
.icon svg { width: 22px; height: 22px; }
@media (max-width: 900px) { .caps { grid-template-columns: 1fr; } }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { text-align: left; padding: 18px 20px; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--surface); color: var(--text); font-size: 0.95rem; }
.compare thead th:last-child { color: var(--orange); }
.compare tbody tr:nth-child(even) { background: #161618; }
.compare tbody th { color: var(--text); font-weight: 700; width: 24%; }
.compare td:last-child { color: var(--text); }
.compare tr:last-child > * { border-bottom: 0; }
.table-note { font-size: var(--step--1); margin-top: var(--s-2); }

/* ---------- Trade rows ---------- */
.trade-rows { list-style: none; border-top: 1px solid var(--line); }
.trade-rows li { border-bottom: 1px solid var(--line); }
.trade-rows a { display: grid; grid-template-columns: 220px 1fr auto; gap: var(--s-3); align-items: center; padding: var(--s-3) var(--s-1); text-decoration: none; color: var(--muted); transition: background-color .15s ease; }
.trade-rows a:hover { background: var(--surface); color: var(--muted); }
.trade-rows strong { color: var(--text); font-size: var(--step-1); font-weight: 900; letter-spacing: -0.02em; }
.trade-rows .go { color: var(--orange); font-weight: 700; white-space: nowrap; }
@media (max-width: 760px) { .trade-rows a { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Process steps ---------- */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
.steps li { counter-increment: step; padding-top: var(--s-3); border-top: 3px solid var(--line); }
.steps li:first-child { border-top-color: var(--orange); }
.steps li::before { content: "Step " counter(step); display: block; font-family: var(--font-mono); font-weight: 500; color: var(--orange); font-size: 0.9rem; margin-bottom: var(--s-1); }
.steps .when { font-size: var(--step--1); color: var(--text); margin: 0; }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-4); display: flex; flex-direction: column; }
.plan--featured { border-color: var(--orange); }
.plan__for { font-family: var(--font-mono); font-weight: 500; color: var(--orange); font-size: 0.88rem; margin-bottom: var(--s-2); }
.plan__name { font-size: var(--step-2); font-weight: 900; margin-bottom: var(--s-1); }
.plan__price { display: flex; align-items: baseline; gap: 12px; padding-block: var(--s-3); margin-block: var(--s-2) var(--s-3); border-block: 1px solid var(--line); }
.plan__price b { color: var(--text); font-size: 3rem; font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.plan__price span { font-family: var(--font-mono); color: var(--muted); font-size: 0.9rem; }
.checks { list-style: none; display: grid; gap: 12px; margin-bottom: var(--s-4); flex-grow: 1; }
.checks li { position: relative; padding-left: 30px; color: var(--text); font-size: 0.98rem; line-height: 1.45; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 90, 0, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.5L13 6.5' fill='none' stroke='%23FF5A00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.plan__meta { font-size: var(--step--1); margin: var(--s-2) 0 0; }
.care { margin-top: var(--s-3); display: grid; grid-template-columns: 1fr auto; gap: var(--s-3); align-items: center; background: transparent; border: 1px dashed var(--line); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); }
.care h3 { margin-bottom: 4px; }
.care p { margin: 0; }
.care__price { color: var(--text); font-weight: 900; font-size: var(--step-2); white-space: nowrap; }
.care__price span { font-family: var(--font-mono); font-weight: 500; font-size: 0.9rem; color: var(--muted); }
@media (max-width: 800px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .care { grid-template-columns: 1fr; }
}

/* ---------- AI section / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: var(--s-4); } }
.plain-list { list-style: none; display: grid; gap: var(--s-2); }
.plain-list li { padding-left: var(--s-3); border-left: 2px solid var(--line); }
.plain-list strong { color: var(--text); display: block; }

/* ---------- Commitment band ---------- */
.band { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-5); display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-4); align-items: center; }
.band h2 { font-size: var(--step-2); }
.band__stat { font-family: var(--font-mono); color: var(--orange); font-weight: 500; font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1; letter-spacing: -0.04em; }
.band__stat small { display: block; font-family: var(--font-sans); color: var(--muted); font-size: 0.95rem; letter-spacing: 0; margin-top: var(--s-1); line-height: 1.4; }
@media (max-width: 800px) { .band { grid-template-columns: 1fr; padding: var(--s-4); } }

/* ---------- FAQ accordion ---------- */
.faq { display: grid; gap: 12px; max-width: 880px; }
.faq details { background: var(--bg); border: 1px solid var(--surface); border-radius: var(--r-md); transition: border-color .15s ease; }
.faq details[open] { border-color: var(--orange); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; color: var(--muted); font-weight: 700; font-size: 1.05rem; position: relative; }
.faq details[open] summary, .faq summary:hover { color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 22px 20px; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Final CTA ---------- */
.final-cta { text-align: left; }
.final-cta__inner { display: grid; grid-template-columns: 1.3fr auto; gap: var(--s-4); align-items: end; }
.final-cta h2 { max-width: 16ch; font-size: var(--step-4); line-height: 1.02; }
@media (max-width: 800px) { .final-cta__inner { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
label { display: block; color: var(--text); font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: 0.85rem; margin-top: 2px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  background: var(--bg); color: var(--text);
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font: 400 1rem var(--font-sans);
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239A9FA5' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 40px; }
input::placeholder, textarea::placeholder { color: #6C7076; }
input:hover, select:hover, textarea:hover { border-color: #45484C; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 90, 0, .25); }
.field { margin-bottom: var(--s-3); }
.field--error input, .field--error select { border-color: var(--bad); }
.error-msg { display: none; color: #FF8A8E; font-size: 0.88rem; margin-top: 6px; }
.field--error .error-msg { display: block; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-3); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-weight: 400; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--orange); }
.segmented { display: flex; gap: 8px; flex-wrap: wrap; border: 0; padding: 0; margin: 0; }
.segmented legend { color: var(--text); font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; padding: 0; }
.segmented label { margin: 0; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font-weight: 500; color: var(--muted); cursor: pointer; }
.segmented input:checked + span { border-color: var(--orange); color: var(--text); background: rgba(255, 90, 0, .1); }
.segmented input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-4); }
.form-success { display: none; }
.form-success.is-shown { display: block; }
.form-success h2 { font-size: var(--step-2); }
.form-success .tick { width: 48px; height: 48px; border-radius: 50%; background: rgba(63, 185, 80, .15); color: var(--good); display: grid; place-items: center; margin-bottom: var(--s-2); }
.aside-list { list-style: none; display: grid; gap: var(--s-3); }
.aside-list li { border-top: 1px solid var(--line); padding-top: var(--s-2); }
.aside-list strong { color: var(--text); display: block; margin-bottom: 4px; }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding-block: var(--s-6) var(--s-5); }
.page-head h1 { font-size: clamp(2.2rem, 1.5rem + 3.2vw, 3.8rem); max-width: 18ch; }
.crumbs { font-size: var(--step--1); margin-bottom: var(--s-3); }
.crumbs a { color: var(--muted); }

/* ---------- Terminal (framework page) ---------- */
.terminal { background: #141517; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.terminal__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); position: relative; }
.terminal__bar i { width: 10px; height: 10px; border-radius: 50%; background: #3A3C40; display: block; }
.terminal__title { position: absolute; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.terminal pre { margin: 0; padding: var(--s-3); min-height: 330px; font: 500 0.88rem/1.6 var(--font-mono); color: var(--text); white-space: pre-wrap; word-break: break-word; }
.tk-c { color: #6B7280; font-style: italic; }
.tk-k { color: var(--orange); }
.tk-s { color: #A3BE8C; }
.tk-ok { color: var(--good); }
.caret { display: inline-block; width: 0.6em; background: var(--orange); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.terminal__note { font-size: 0.8rem; padding: 0 var(--s-3) var(--s-2); margin: 0; }

/* ---------- Trade page page-map ---------- */
.page-map { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.page-map div { background: var(--surface); padding: var(--s-3); }
.page-map strong { color: var(--text); display: block; margin-bottom: 4px; }
.page-map p { margin: 0; font-size: 0.95rem; }
@media (max-width: 800px) { .page-map { grid-template-columns: 1fr; } }
.quote-pain { font-size: var(--step-2); line-height: 1.3; color: var(--text); font-weight: 700; letter-spacing: -0.02em; max-width: 30ch; border-left: 4px solid var(--orange); padding-left: var(--s-3); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #0C0C0D; border-top: 1px solid var(--line); padding-block: var(--s-6) var(--s-4); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: var(--s-4); }
.footer-grid h4 { font-size: 0.95rem; letter-spacing: 0; font-weight: 700; margin-bottom: var(--s-2); }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--text); }
.footer-family li span { display: block; font-size: 0.85rem; }
.footer-legal { margin-top: var(--s-5); padding-top: var(--s-3); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2); font-size: 0.85rem; }
.footer-legal p { margin: 0; max-width: none; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* Small-screen fixes */
.caps--trade { grid-template-columns: 0.8fr 1.2fr; }
@media (max-width: 900px) { .caps--trade { grid-template-columns: 1fr; } }
@media (max-width: 420px) {
  .logo { font-size: 0.92rem; gap: 8px; }
  .logo svg { width: 24px; height: 24px; }
  .site-header__inner { gap: 10px; }
  .nav-toggle { padding: 0 10px; }
}
.split--form { grid-template-columns: 1.4fr 1fr; }
@media (max-width: 900px) { .split--form { grid-template-columns: 1fr; } }
.race__label { gap: 8px; }
.race__timer { white-space: nowrap; }
@media (max-width: 480px) {
  .race { padding: var(--s-2); }
  .race__phones { gap: var(--s-2); }
  .race__label { flex-direction: column; gap: 2px; }
}
.field.segmented { margin-bottom: var(--s-3); }
