/* ==========================================================================
   SevenClair — site stylesheet
   Colors and type are defined as tokens on :root so the palette can be swapped
   in one place. Alternate palettes (data-theme) are for review only — see
   brand.html.
   ========================================================================== */

:root {
  /* Palette: "Ink & Copper" (recommended default) */
  --ink: #0f1a22;          /* dark sections, headings */
  --ink-2: #1b2934;        /* raised surfaces on dark */
  --paper: #f7f5f0;        /* page background */
  --surface: #ffffff;      /* cards */
  --line: #e2ddd3;         /* hairlines on light */
  --line-dark: #2c3b47;    /* hairlines on dark */
  --text: #16212a;         /* body text on light */
  --muted: #55606a;        /* secondary text on light */
  --on-dark: #eef1f3;      /* body text on dark */
  --on-dark-muted: #a9b4bd;
  --accent: #b4501c;       /* copper — links, buttons, marks on light */
  --accent-hover: #963f12;
  --accent-on-dark: #f0915a;
  --accent-tint: #f6e6dc;
  --status-live: #1f6f58;
  --status-live-tint: #dcefe8;
  --status-dev: #7a5a00;
  --status-dev-tint: #f5ecd0;

  /* Type */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  --section-y: clamp(64px, 9vw, 120px);
}

/* Alternate palettes — preview only (brand.html / ?theme=) */
:root[data-theme="green"] {
  --ink: #0e1c17;
  --ink-2: #1a2b25;
  --line-dark: #2b3f37;
  --accent: #1d6a4c;
  --accent-hover: #14523a;
  --accent-on-dark: #6fcf9f;
  --accent-tint: #dceee5;
}
:root[data-theme="blue"] {
  --ink: #0c1626;
  --ink-2: #172338;
  --line-dark: #293750;
  --accent: #1f5bb8;
  --accent-hover: #17468f;
  --accent-on-dark: #7fb0ff;
  --accent-tint: #dfe9f8;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-stretch: 118%;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.6vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.2rem; font-stretch: 110%; line-height: 1.25; }
p { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Small uppercase label used above headings */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--muted); max-width: 40em; }

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 24px;
}

.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800;
  font-size: 1.15rem; letter-spacing: 0.01em;
}
.wordmark:hover { color: var(--ink); }
.wordmark img { display: block; height: 40px; width: auto; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  width: 44px; height: 44px; padding: 0; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { margin: auto; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: block; padding: 10px 14px; border-radius: var(--radius);
  color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.98rem;
}
.site-nav a:hover { background: var(--accent-tint); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav .btn { margin-left: 8px; color: #fff; }
.site-nav .btn:hover { color: #fff; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav a:hover { background: none; }
  .site-nav .btn { margin: 16px 0 0; text-align: center; border-radius: var(--radius); border-bottom: 0; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border-radius: var(--radius); border: 1.5px solid transparent;
  cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.on-dark .btn-ghost { color: var(--on-dark); border-color: var(--on-dark-muted); }
.on-dark .btn-ghost:hover { background: var(--on-dark); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: var(--section-y) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 46em; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--muted); font-size: 1.125rem; }

.on-dark { background: var(--ink); color: var(--on-dark); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.on-dark .eyebrow { color: var(--accent-on-dark); }
.on-dark .lede, .on-dark .section-head p, .on-dark .muted { color: var(--on-dark-muted); }
.on-dark a:not(.btn) { color: var(--accent-on-dark); }
.section.on-dark + .section { border-top: 0; }

/* Hero */
.hero { padding: clamp(64px, 10vw, 128px) 0 clamp(40px, 6vw, 80px); position: relative; overflow: hidden; }
.hero.on-dark { padding-bottom: clamp(64px, 9vw, 112px); }
.hero-orbit ~ .container > * { max-width: 700px; }
.hero h1 { max-width: 15em; }
.hero .lede { margin-top: 1.25rem; }
.hero-orbit {
  position: absolute; right: -140px; top: 50%; transform: translateY(-50%);
  width: 620px; height: auto; opacity: .9; pointer-events: none;
}
@media (max-width: 960px) { .hero-orbit { display: none; } }
.hero .container { position: relative; }

/* Status pills */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-live { background: var(--status-live-tint); color: var(--status-live); }
.pill-dev { background: var(--status-dev-tint); color: var(--status-dev); }

/* Grids */
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Cards */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card .muted, .muted { color: var(--muted); }
.on-dark .card { background: var(--ink-2); border-color: var(--line-dark); color: var(--on-dark); }
.on-dark .card p { color: var(--on-dark-muted); }

/* Solution cards on home page */
.solution-card { display: flex; flex-direction: column; gap: 14px; padding: clamp(26px, 3.4vw, 40px); }
.solution-card .solution-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.solution-card h3 { font-size: clamp(1.6rem, 2.6vw, 2rem); font-stretch: 122%; margin: 0; }
.solution-card .kicker { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.card > .kicker { display: block; margin-bottom: 10px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.chain-more { margin: 24px 0 0; }
.solution-card ul { margin: 4px 0 8px; padding: 0; list-style: none; }
.solution-card li { padding: 10px 0; border-top: 1px solid var(--line); }
.solution-card .btn { align-self: flex-start; margin-top: auto; }

/* Numbered steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps > li {
  counter-increment: step; position: relative;
  padding: 22px 0 22px 72px; border-top: 1px solid var(--line);
}
.steps > li:last-child { border-bottom: 1px solid var(--line); }
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 20px;
  font-family: var(--font-mono); font-size: 0.95rem; font-weight: 500; color: var(--accent);
}
.steps h3 { margin-bottom: 0.3em; }
.steps p { margin: 0; color: var(--muted); }
.on-dark .steps > li { border-color: var(--line-dark); }
.on-dark .steps > li::before { color: var(--accent-on-dark); }
.on-dark .steps p { color: var(--on-dark-muted); }

/* Four-verb band: Connect / Capture / Convert / Support */
.verbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); }
.verbs > div { padding: 28px 24px 8px 0; }
.verbs > div + div { border-left: 1px solid var(--line-dark); padding-left: 24px; }
.verbs .verb {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem); color: #fff; margin-bottom: 8px; display: block;
}
.verbs .who { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-on-dark); display: block; margin-bottom: 10px; }
.verbs p { color: var(--on-dark-muted); font-size: 0.98rem; }
@media (max-width: 860px) {
  .verbs { grid-template-columns: 1fr 1fr; }
  .verbs > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .verbs > div:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
}
@media (max-width: 520px) {
  .verbs { grid-template-columns: 1fr; }
  .verbs > div, .verbs > div + div { border-left: 0; padding-left: 0; }
  .verbs > div + div { border-top: 1px solid var(--line-dark); }
}

/* Pull quote / key line */
.keyline {
  font-family: var(--font-display); font-stretch: 112%; font-weight: 600;
  font-size: clamp(1.45rem, 3vw, 2.2rem); line-height: 1.22; color: var(--ink);
  max-width: 28em; margin: 0; text-wrap: balance;
}
.keyline em { font-style: normal; color: var(--accent); }
.on-dark .keyline { color: #fff; }
.on-dark .keyline em { color: var(--accent-on-dark); }

/* Two-column split */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Definition-style list (monitoring categories) */
.deflist { margin: 0; padding: 0; list-style: none; }
.deflist li { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: 8px 32px; padding: 18px 0; border-top: 1px solid var(--line); }
.deflist li:last-child { border-bottom: 1px solid var(--line); }
.deflist strong { font-family: var(--font-display); font-stretch: 108%; font-weight: 700; color: var(--ink); }
.deflist span { color: var(--muted); }
@media (max-width: 640px) { .deflist li { grid-template-columns: 1fr; gap: 4px; } }

/* Tabs */
.tabs [role="tablist"] { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); background: var(--surface); margin-bottom: 28px; flex-wrap: wrap; }
.tabs [role="tab"] {
  font: inherit; font-weight: 600; font-size: 0.98rem;
  border: 0; background: transparent; color: var(--muted);
  padding: 10px 18px; border-radius: var(--radius); cursor: pointer; min-height: 44px;
}
.tabs [role="tab"][aria-selected="true"] { background: var(--ink); color: #fff; }
.tabs [role="tabpanel"][hidden] { display: none; }
.tab-intro { color: var(--muted); max-width: 44em; margin-bottom: 20px; }

/* Checklist */
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding: 8px 0 8px 30px; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 16px; width: 14px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.on-dark .checks li::before { border-color: var(--accent-on-dark); }

/* Forms */
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.field .hint { font-size: 0.85rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; min-height: 48px;
}
textarea { min-height: 128px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.input-affix { position: relative; }
.input-affix span { position: absolute; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-affix .pre { left: 14px; }
.input-affix .post { right: 14px; }
.input-affix input.has-pre { padding-left: 30px; }
.input-affix input.has-post { padding-right: 34px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-block; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--surface); cursor: pointer; font-size: 0.95rem; min-height: 44px; line-height: 1.5;
}
.choice input:checked + span { border-color: var(--accent); background: var(--accent-tint); color: var(--ink); }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.hidden-field { display: none; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-family: var(--font-display); font-stretch: 108%; font-weight: 700; font-size: 1.1rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg); transition: transform .15s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 22px; color: var(--muted); max-width: 46em; }

/* Notice (in-development) */
.notice {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--status-dev-tint); border: 1px solid color-mix(in srgb, var(--status-dev) 30%, transparent);
  color: var(--text); border-radius: var(--radius); padding: 16px 20px; max-width: 46em;
}
.notice strong { color: var(--status-dev); }

/* CTA band */
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { margin: 0; max-width: 18em; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: 56px 0 40px; font-size: 0.95rem; }
.site-footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer .wordmark { color: #fff; margin-bottom: 12px; }
.site-footer .wordmark img { height: 44px; }
.site-footer h2 { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); font-weight: 500; margin-bottom: 12px; font-stretch: 100%; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 4px 0; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--accent-on-dark); text-decoration: underline; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line-dark); padding-top: 24px; margin-top: 16px; font-size: 0.85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (max-width: 760px) { .site-footer .container { grid-template-columns: 1fr 1fr; } .site-footer .brand-col { grid-column: 1 / -1; } }

/* Misc utilities */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.small { font-size: 0.9rem; }
.stack > * + * { margin-top: 16px; }
.partner-line { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: .06em; color: var(--muted); margin-top: 1.25rem; }
.on-dark .partner-line { color: var(--on-dark-muted); }
.keyline + p { margin-top: 1.25rem; }

/* Brand preview page */
.swatches { display: flex; gap: 8px; margin: 14px 0 16px; }
.swatches span { flex: 1; height: 56px; border-radius: var(--radius); border: 1px solid var(--line); }
/* Swatch colors are classes (not inline styles) so the Content-Security-Policy can forbid inline styles. */
.sw-0c1626 { background: #0c1626; }
.sw-0e1c17 { background: #0e1c17; }
.sw-0f1a22 { background: #0f1a22; }
.sw-1d6a4c { background: #1d6a4c; }
.sw-1f5bb8 { background: #1f5bb8; }
.sw-6fcf9f { background: #6fcf9f; }
.sw-7fb0ff { background: #7fb0ff; }
.sw-b4501c { background: #b4501c; }
.sw-f0915a { background: #f0915a; }
.sw-f7f5f0 { background: #f7f5f0; }
.card h3 .pill { vertical-align: middle; margin-left: 6px; }
.type-sample-display, .type-sample-body, .type-sample-mono { display: block; color: var(--ink); margin-bottom: 6px; }
.type-sample-display { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 1.6rem; line-height: 1.15; }
.type-sample-body { font-family: var(--font-body); font-size: 1.25rem; }
.type-sample-mono { font-family: var(--font-mono); font-size: 1rem; letter-spacing: .06em; }
code { font-family: var(--font-mono); font-size: 0.9em; background: var(--accent-tint); padding: 1px 5px; border-radius: 3px; }

/* Fixes from visual review */
.site-nav a.btn, .site-nav a.btn[aria-current="page"] { color: #fff; }
.pill { white-space: nowrap; flex: none; }
.hero + .section { padding-top: clamp(32px, 5vw, 64px); }
.hero.on-dark + .section { padding-top: var(--section-y); }

/* Long-form text (privacy policy) */
.prose { max-width: 46em; }
.prose h3 { margin-top: 2em; }
.prose h3:first-of-type { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }

/* Comparison table (Perigee) */
.compare { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare th, .compare td { text-align: left; padding: 16px 22px; border-top: 1px solid var(--line); vertical-align: top; width: 50%; }
.compare thead th { border-top: 0; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
.compare thead th + th { color: var(--accent); }
.compare td:first-child { color: var(--muted); }
.compare td + td { color: var(--ink); font-weight: 600; border-left: 1px solid var(--line); }
@media (max-width: 640px) { .compare th, .compare td { padding: 12px 14px; font-size: 0.95rem; } }

/* Program buckets (Perigee tabs) */
.bucket-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
@media (max-width: 760px) { .bucket-grid { grid-template-columns: 1fr; } }
.bucket-grid h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; }
.bucket-tag { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: var(--accent-tint); padding: 3px 8px; border-radius: 999px; font-stretch: 100%; }
.bucket-list { list-style: none; margin: 0; padding: 0; }
.bucket-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.bucket-list li:last-child { border-bottom: 1px solid var(--line); }
.bucket-list strong { color: var(--ink); font-weight: 600; }
.bucket-list span { color: var(--muted); }
.bucket-note { margin: 14px 0 0; font-weight: 600; color: var(--accent); }
.tab-intro strong { color: var(--ink); }

/* Fine-print disclosure */
.disclosure { background: var(--ink); border-top: 1px solid var(--line-dark); padding: 24px 0; }
.disclosure p { margin: 0; font-size: 0.82rem; line-height: 1.55; color: var(--on-dark-muted); max-width: 70em; }
.cta-band .muted { margin-top: 10px; }

/* Cost-per-car challenge (Perigee) */
.challenge { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .challenge { grid-template-columns: 1fr; } }
.challenge-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.challenge-progress .seg { height: 6px; border-radius: 3px; background: var(--line-dark); transition: background-color .25s ease; }
.challenge-progress .seg.is-on { background: var(--accent-on-dark); }
.challenge-count { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-muted); margin: 12px 0 22px; }
.challenge-count.is-done { color: var(--accent-on-dark); }
.challenge-count.is-error { color: #ffb4a8; }
.challenge-fields { display: grid; gap: 18px; }
.on-dark .field label, .on-dark .field legend { color: #fff; }
.on-dark .field .hint { color: var(--on-dark-muted); }
.field .num {
  display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-right: 8px;
  border: 1.5px solid var(--accent-on-dark); border-radius: 50%; color: var(--accent-on-dark);
  font-family: var(--font-mono); font-size: 0.8rem;
}
.scorecard { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: clamp(22px, 3vw, 30px); }
.scorecard-status {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-dark); color: var(--on-dark-muted);
}
.scorecard-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.scorecard.is-ready .scorecard-status { color: var(--accent-on-dark); border-color: var(--accent-on-dark); }
.scorecard-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-dark); color: var(--on-dark-muted); }
.redact {
  flex: none; width: 92px; height: 22px; border-radius: 3px;
  background: repeating-linear-gradient(135deg, var(--line-dark) 0 6px, transparent 6px 12px);
}
.scorecard.is-ready .redact {
  background: linear-gradient(90deg, var(--line-dark) 0%, var(--accent-on-dark) 50%, var(--line-dark) 100%);
  background-size: 200% 100%; animation: scorecard-shimmer 2.4s linear infinite; opacity: .6;
}
@keyframes scorecard-shimmer { from { background-position: 200% 0; } to { background-position: 0 0; } }
.scorecard-note { margin: 16px 0 0; font-family: var(--font-display); font-stretch: 110%; font-weight: 700; color: #fff; }
.challenge-contact { grid-column: 1 / -1; border-top: 1px solid var(--line-dark); padding-top: clamp(24px, 3vw, 36px); }
.challenge-contact legend { font-family: var(--font-display); font-stretch: 110%; font-weight: 700; font-size: 1.25rem; color: #fff; margin-bottom: 18px; padding: 0; }
.on-dark .consent { color: var(--on-dark-muted); }
.challenge-contact legend { float: left; width: 100%; }
.challenge-contact .form-grid { clear: both; }

/* Footer note (powersports availability) */
.site-footer .footer-note { margin-top: 14px; max-width: 34em; }
.site-footer .footer-note strong { color: var(--on-dark); font-weight: 600; }
.site-footer .footer-note a { color: var(--accent-on-dark); text-decoration: underline; }

/* Provider disclosure (footer, every page) */
.site-footer .provider-note { grid-column: 1 / -1; margin: 16px 0 0; font-size: 0.82rem; line-height: 1.55; color: var(--on-dark-muted); max-width: 70em; }

/* Video */
.video { margin: 0; max-width: 960px; }
.video video { display: block; width: 100%; height: auto; border-radius: var(--radius); background: var(--ink); }
.transcript { margin-top: 1rem; color: var(--muted); }
.transcript summary { cursor: pointer; font-weight: 600; color: inherit; }
.transcript p { margin-top: .75rem; max-width: 46em; }
