/* ---------- Tokens ---------- */
:root {
  --font-display: 'Big Shoulders Display', 'Archivo Narrow', 'Arial Narrow', sans-serif;
  --font-body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;

  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 0.5rem + 7vw, 7.5rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 10px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --container: 1200px;
  --gutter: clamp(var(--space-4), 4vw, var(--space-12));
}

:root,
[data-theme='light'] {
  color-scheme: light;
  --color-bg: oklch(0.955 0.02 85);
  --color-surface: oklch(0.985 0.012 85);
  --color-surface-2: oklch(0.925 0.025 82);
  --color-text: oklch(0.24 0.012 60);
  --color-text-muted: oklch(0.46 0.018 60);
  --color-primary: oklch(0.6 0.15 40);
  --color-primary-strong: oklch(0.52 0.15 40);
  --color-on-primary: oklch(0.985 0.012 85);
  --color-ink: oklch(0.24 0.012 60);
  --color-on-ink: oklch(0.955 0.02 85);
  --color-border: oklch(0.24 0.012 60 / 0.14);
  --color-border-strong: oklch(0.24 0.012 60 / 0.4);
  --shadow-sm: 0 1px 2px oklch(0.3 0.03 60 / 0.08), 0 2px 8px oklch(0.3 0.03 60 / 0.06);
  --shadow-lg: 0 8px 30px oklch(0.3 0.03 60 / 0.14);
}

[data-theme='dark'] {
  color-scheme: dark;
  --color-bg: oklch(0.2 0.01 60);
  --color-surface: oklch(0.245 0.012 60);
  --color-surface-2: oklch(0.29 0.014 60);
  --color-text: oklch(0.94 0.02 85);
  --color-text-muted: oklch(0.72 0.02 80);
  --color-primary: oklch(0.7 0.14 42);
  --color-primary-strong: oklch(0.76 0.13 45);
  --color-on-primary: oklch(0.18 0.01 60);
  --color-ink: oklch(0.94 0.02 85);
  --color-on-ink: oklch(0.2 0.01 60);
  --color-border: oklch(0.94 0.02 85 / 0.14);
  --color-border-strong: oklch(0.94 0.02 85 / 0.4);
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3), 0 2px 8px oklch(0 0 0 / 0.25);
  --shadow-lg: 0 8px 30px oklch(0 0 0 / 0.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --color-bg: oklch(0.2 0.01 60);
    --color-surface: oklch(0.245 0.012 60);
    --color-surface-2: oklch(0.29 0.014 60);
    --color-text: oklch(0.94 0.02 85);
    --color-text-muted: oklch(0.72 0.02 80);
    --color-primary: oklch(0.7 0.14 42);
    --color-primary-strong: oklch(0.76 0.13 45);
    --color-on-primary: oklch(0.18 0.01 60);
    --color-ink: oklch(0.94 0.02 85);
    --color-on-ink: oklch(0.2 0.01 60);
    --color-border: oklch(0.94 0.02 85 / 0.14);
    --color-border-strong: oklch(0.94 0.02 85 / 0.4);
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3), 0 2px 8px oklch(0 0 0 / 0.25);
    --shadow-lg: 0 8px 30px oklch(0 0 0 / 0.45);
  }
}

/* ---------- Primitives ---------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  background: var(--color-ink);
  color: var(--color-on-ink);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus {
  top: var(--space-4);
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
}
.eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.muted {
  color: var(--color-text-muted);
}
.num {
  font-variant-numeric: tabular-nums;
}
.price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  letter-spacing: 0.01em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.price small {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
}
.btn-primary:hover {
  background: var(--color-primary-strong);
}
.btn-ghost {
  border-color: var(--color-border-strong);
  color: var(--color-text);
}
.btn-ghost:hover {
  border-color: var(--color-text);
}
.btn:active {
  transform: translateY(1px);
}

.section {
  padding-block: clamp(var(--space-12), 7vw, var(--space-24));
}
.section-tight {
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
}
.section-head {
  display: grid;
  gap: var(--space-3);
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-12));
  max-width: 62ch;
}
.section-head h2 {
  font-size: var(--text-xl);
}
.section-head p {
  color: var(--color-text-muted);
}

.rule {
  border: 0;
  border-top: 1px solid var(--color-border);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}
.brand svg {
  width: 44px;
  height: 30px;
  flex: none;
}
.brand-text {
  display: grid;
  line-height: 1;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.brand-sub {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 3px;
}
.nav {
  display: none;
  gap: var(--space-6);
}
.nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
}
.nav a:hover,
.nav a[aria-current='true'] {
  color: var(--color-text);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
}
.icon-btn:hover {
  color: var(--color-text);
  background: var(--color-surface-2);
}
.icon-btn svg {
  width: 20px;
  height: 20px;
}
.icon-sun {
  display: none;
}
[data-theme='dark'] .icon-sun {
  display: block;
}
[data-theme='dark'] .icon-moon {
  display: none;
}
@media (width >= 900px) {
  .nav {
    display: flex;
  }
}
.header-actions .label-short {
  display: none;
}
@media (width < 640px) {
  .header-inner {
    gap: var(--space-3);
    min-height: 60px;
  }
  .brand svg {
    width: 36px;
    height: 24px;
  }
  .brand-name {
    font-size: 1.2rem;
    white-space: nowrap;
  }
  .brand-sub {
    display: none;
  }
  .header-actions .btn {
    white-space: nowrap;
    padding: 0.5rem 0.75rem;
    font-size: var(--text-sm);
  }
  .header-actions .label-full {
    display: none;
  }
  .header-actions .label-short {
    display: inline;
  }
  .icon-btn {
    width: 40px;
    height: 40px;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: clip;
  border-bottom: 1px solid var(--color-border);
}
.hero-grid {
  display: grid;
  gap: var(--space-8);
  padding-block: clamp(var(--space-12), 6vw, var(--space-24)) 0;
}
.hero h1 {
  font-size: var(--text-hero);
  max-width: 12ch;
}
.hero h1 .accent {
  color: var(--color-primary);
}
.hero-lede {
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text-muted);
  max-width: 44ch;
  line-height: 1.45;
}
.hero-copy {
  display: grid;
  gap: var(--space-6);
  align-content: end;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.hero-figure {
  margin-inline: calc(-1 * var(--gutter));
}
.hero-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: left bottom;
}
.hero-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  border-top: 1px solid var(--color-border);
}
.hero-strip > div {
  padding: var(--space-5) 0;
  border-right: 1px solid var(--color-border);
  padding-right: var(--space-5);
}
.hero-strip > div:last-child {
  border-right: 0;
}
.hero-strip strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.hero-strip span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
@media (width >= 900px) {
  .hero-grid {
    grid-template-columns: 5fr 7fr;
    align-items: end;
    gap: var(--space-12);
  }
  .hero-figure {
    margin-inline: 0;
    margin-right: calc(-1 * var(--gutter));
  }
  .hero-figure img {
    aspect-ratio: 4 / 3;
  }
}
@media (width >= 1300px) {
  .hero-figure {
    margin-right: calc((100vw - var(--container)) / -2);
  }
}

/* ---------- Product cards ---------- */
.cards {
  display: grid;
  gap: var(--space-4);
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-5), 2.5vw, var(--space-8));
  display: grid;
  gap: var(--space-4);
  align-content: start;
  box-shadow: var(--shadow-sm);
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: var(--space-4);
}
.model {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
}
.model-class {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}
.tag {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  white-space: nowrap;
}
.tag-accent {
  background: oklch(from var(--color-primary) l c h / 0.14);
  color: var(--color-primary-strong);
}
.card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-4);
}
.specs dt {
  color: var(--color-text-muted);
}
.specs dd {
  font-weight: 600;
}
.card .card-cta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-2);
}
.card .card-cta .price {
  font-size: var(--text-2xl);
}
.add-btn {
  min-height: 40px;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.add-btn:hover {
  border-color: var(--color-text);
}
.add-btn.is-added {
  background: var(--color-ink);
  color: var(--color-on-ink);
  border-color: var(--color-ink);
}

/* Slide: 3-up with the heavy-duty card emphasized */
@media (width >= 760px) {
  .cards-slide {
    grid-template-columns: repeat(3, 1fr);
  }
}
.card-feature {
  background: var(--color-ink);
  color: var(--color-on-ink);
  border-color: transparent;
}
.card-feature p,
.card-feature .model-class,
.card-feature .specs dt,
.card-feature .price small {
  color: oklch(from var(--color-on-ink) l c h / 0.7);
}
.card-feature .specs {
  border-top-color: oklch(from var(--color-on-ink) l c h / 0.18);
}
.card-feature .tag {
  background: oklch(from var(--color-on-ink) l c h / 0.12);
  color: var(--color-on-ink);
}
.card-feature .tag-accent {
  background: var(--color-primary);
  color: var(--color-on-primary);
}
.card-feature .add-btn {
  border-color: oklch(from var(--color-on-ink) l c h / 0.4);
  color: var(--color-on-ink);
}
.card-feature .add-btn.is-added {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-on-primary);
}

/* Swing: two wide cards with a single/dual switch */
@media (width >= 760px) {
  .cards-swing {
    grid-template-columns: 1fr 1fr;
  }
}
.switch {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
}
.switch button {
  min-height: 38px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.switch button[aria-pressed='true'] {
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}
.swing-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.price-swap {
  display: inline-block;
  transition: opacity 0.25s var(--ease-out);
}
.price-swap.is-fading {
  opacity: 0;
}

/* ---------- Accessories: editorial list ---------- */
.acc-list {
  border-top: 1px solid var(--color-border);
}
.acc-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3) var(--space-8);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-border);
  align-items: start;
}
.acc-row .model {
  font-size: var(--text-lg);
}
.acc-row .acc-name {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-top: var(--space-1);
}
.acc-row p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.acc-note {
  font-size: var(--text-xs);
  color: var(--color-text);
  background: oklch(from var(--color-primary) l c h / 0.1);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-top: var(--space-2);
}
.acc-price {
  display: grid;
  gap: var(--space-1);
  justify-items: start;
}
.acc-price .price {
  font-size: var(--text-lg);
}
.acc-price .sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.acc-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
}
.qty button {
  width: 40px;
  height: 40px;
  font-weight: 600;
}
.qty output {
  min-width: 28px;
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 600;
}
@media (width >= 760px) {
  .acc-row {
    grid-template-columns: 180px 1fr 200px;
  }
  .acc-price {
    justify-items: end;
  }
  .acc-actions {
    justify-content: end;
  }
}

/* ---------- Estimator ---------- */
.estimator {
  background: var(--color-ink);
  color: var(--color-on-ink);
}
.estimator .eyebrow {
  color: var(--color-primary);
}
.estimator .section-head p {
  color: oklch(from var(--color-on-ink) l c h / 0.7);
}
.est-grid {
  display: grid;
  gap: var(--space-8);
}
.est-lines {
  display: grid;
  gap: 0;
  border-top: 1px solid oklch(from var(--color-on-ink) l c h / 0.18);
}
.est-line {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid oklch(from var(--color-on-ink) l c h / 0.18);
  font-size: var(--text-sm);
}
.est-line span:last-child {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.est-line.is-empty {
  color: oklch(from var(--color-on-ink) l c h / 0.6);
  font-style: normal;
}
.est-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  padding-top: var(--space-6);
}
.est-total .price {
  font-size: var(--text-2xl);
  color: var(--color-primary);
}
.est-total .label {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: oklch(from var(--color-on-ink) l c h / 0.7);
}
.est-side {
  display: grid;
  gap: var(--space-4);
  align-content: start;
  justify-items: start;
}
.est-side p {
  justify-self: stretch;
}
.est-side p {
  font-size: var(--text-sm);
  color: oklch(from var(--color-on-ink) l c h / 0.75);
}
.estimator .btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
}
.estimator .btn-ghost {
  color: var(--color-on-ink);
  border-color: oklch(from var(--color-on-ink) l c h / 0.4);
}
.estimator .btn-ghost:hover {
  border-color: var(--color-on-ink);
}
.est-line button {
  color: oklch(from var(--color-on-ink) l c h / 0.6);
  font-size: var(--text-xs);
  text-decoration: underline;
  margin-left: var(--space-2);
}
.est-line button:hover {
  color: var(--color-on-ink);
}
@media (width >= 900px) {
  .est-grid {
    grid-template-columns: 7fr 5fr;
    gap: var(--space-16);
  }
}

/* ---------- Pricing notes ---------- */
.notes-grid {
  display: grid;
  gap: var(--space-8);
}
.notes-grid h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}
.notes-grid ul {
  display: grid;
  gap: var(--space-2);
  font-size: var(--text-sm);
  padding-left: 1.1em;
}
.notes-grid li::marker {
  color: var(--color-primary);
}
.callout {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  background: var(--color-surface);
  display: grid;
  gap: var(--space-3);
  align-content: start;
}
.callout p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.callout .btn {
  justify-self: start;
}
@media (width >= 900px) {
  .notes-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-12);
  }
}

/* ---------- Dealer ---------- */
.dealer-gate {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}
.dealer-gate[hidden] {
  display: none;
}
.dealer-form {
  display: grid;
  gap: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 3vw, var(--space-10));
  box-shadow: var(--shadow-sm);
}
.dealer-form label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.dealer-form input {
  min-height: 48px;
  padding: 0 var(--space-4);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  letter-spacing: 0.12em;
}
.dealer-form input:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.2);
}
.form-msg {
  font-size: var(--text-sm);
  min-height: 1.5em;
  color: var(--color-primary-strong);
}
.dealer-form .btn {
  justify-content: center;
}
@media (width >= 900px) {
  .dealer-gate {
    grid-template-columns: 6fr 5fr;
    gap: var(--space-16);
  }
}

.dealer-panel {
  display: none;
}
.dealer-panel.is-open {
  display: block;
  animation: fade-in 0.5s var(--ease-out) both;
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.dealer-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
.dealer-head h3 {
  font-size: var(--text-xl);
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}
.dealer-table {
  min-width: 640px;
  font-size: var(--text-sm);
}
.dealer-table th,
.dealer-table td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
.dealer-table th {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: var(--color-surface-2);
}
.dealer-table td.num,
.dealer-table th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.dealer-table td.dealer-net {
  font-weight: 700;
  color: var(--color-primary-strong);
}
@media (width < 640px) {
  .dealer-table {
    min-width: 0;
    width: 100%;
  }
  .dealer-table th:nth-child(2),
  .dealer-table td:nth-child(2) {
    display: none;
  }
  .dealer-table th,
  .dealer-table td {
    padding: var(--space-3) var(--space-2);
    font-size: var(--text-xs);
  }
  .dealer-table th:first-child,
  .dealer-table td:first-child {
    padding-left: var(--space-3);
  }
  .dealer-table th:last-child,
  .dealer-table td:last-child {
    padding-right: var(--space-3);
  }
  .dealer-table tr.group td {
    font-size: var(--text-base);
  }
}
.dealer-table tr.group td {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding-top: var(--space-6);
  border-bottom-color: var(--color-border-strong);
}
.dealer-table tbody tr:last-child td {
  border-bottom: 0;
}
.dealer-terms {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-10);
}
.dealer-terms h4 {
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.dealer-terms p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
@media (width >= 760px) {
  .dealer-terms {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-12) var(--space-8);
}
.footer-grid {
  display: grid;
  gap: var(--space-8);
}
.footer-grid h4 {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.footer-grid a {
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--text-sm);
}
.footer-grid a:hover {
  color: var(--color-primary);
}
.footer-grid ul {
  display: grid;
  gap: var(--space-2);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
@media (width >= 760px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transition: opacity 0.7s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
  }
}

/* ---------- Toast (inline confirmation near estimator link) ---------- */
.mini-bar {
  position: fixed;
  left: 50%;
  bottom: var(--space-5);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: var(--color-ink);
  color: var(--color-on-ink);
  border-radius: 999px;
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-sm);
  box-shadow: var(--shadow-lg);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
  z-index: 60;
  white-space: nowrap;
}
.mini-bar.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.mini-bar a {
  background: var(--color-primary);
  color: var(--color-on-primary);
  text-decoration: none;
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Print ---------- */
/* ---------- Dealers CTA on the public page ---------- */
.dealer-cta {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}
.dealer-cta h2 {
  margin-bottom: var(--space-4);
}
.dealer-cta-actions {
  display: grid;
  gap: var(--space-4);
  justify-items: start;
}
@media (width >= 900px) {
  .dealer-cta {
    grid-template-columns: 7fr 4fr;
    gap: var(--space-16);
  }
  .dealer-cta-actions {
    justify-items: end;
    text-align: right;
  }
}

/* ---------- Dealers tab ---------- */
.nav a[aria-current='page'] {
  color: var(--color-text);
  font-weight: 600;
}
.dealer-hero {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) 0;
  background: var(--color-surface-2);
}
.dealer-hero .hero-copy h1 {
  margin-bottom: var(--space-5);
}
.dealer-hero .dealer-form {
  box-shadow: 0 24px 60px -30px oklch(0.2 0.02 60 / 0.35);
}
.dealer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}
.quote-grid {
  display: grid;
  gap: var(--space-10);
  margin-top: var(--space-10);
}
@media (width >= 960px) {
  .quote-grid {
    grid-template-columns: 7fr 5fr;
    gap: var(--space-16);
    align-items: start;
  }
  .quote-summary {
    position: sticky;
    top: 96px;
  }
}
.pick-group + .pick-group {
  margin-top: var(--space-8);
}
.pick-group h3 {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.pick-list {
  border-top: 1px solid var(--color-border);
}
.pick-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-3);
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.15s ease;
}
.pick-row.is-on {
  background: color-mix(in oklch, var(--color-primary) 8%, transparent);
}
.pick-row > div:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.pick-row .qty {
  flex: none;
}
.pick-row strong {
  font-weight: 600;
  font-size: var(--text-sm);
}
.pick-price {
  font-size: var(--text-sm);
  color: var(--color-text);
}
.pick-price .muted {
  font-size: var(--text-xs);
}
.pick-row .add-btn[aria-pressed='true'] {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}
.pick-row .qty span {
  min-width: 28px;
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 600;
}
.quote-summary {
  display: grid;
  gap: var(--space-6);
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}
.quote-summary .est-lines {
  border-top-color: var(--color-border);
}
.quote-summary .est-line {
  border-bottom-color: var(--color-border);
  color: var(--color-text);
}
.quote-summary .est-line.is-empty {
  color: var(--color-text-muted);
}
.quote-summary .est-line .muted {
  font-weight: 400;
}
.quote-summary .est-line span:last-child {
  white-space: nowrap;
  text-align: right;
}
.dealer-hero a,
.dealer-cta a,
.dealer-terms a {
  color: var(--color-primary);
}
.q-totals {
  display: grid;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 2px solid var(--color-text);
}
.q-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  font-size: var(--text-sm);
}
.q-total .label {
  color: var(--color-text-muted);
}
.q-total-net .price {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1;
  color: var(--color-primary);
}
.q-total-net .label {
  color: var(--color-text);
  font-weight: 600;
}
@media (max-width: 639px) {
  .pick-row {
    padding: var(--space-3) var(--space-2);
  }
  .dealer-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* ---------- Thank-you page ---------- */
.thanks {
  padding: clamp(var(--space-16), 10vw, var(--space-24)) 0;
  background: var(--color-surface-2);
}
.thanks-card {
  max-width: 62ch;
}
.thanks-card .display {
  margin-bottom: var(--space-5);
}
.thanks-card .hero-lede a {
  color: var(--color-primary);
}
.thanks-mark {
  width: 72px;
  height: 48px;
  margin-bottom: var(--space-6);
  color: var(--color-text);
}

/* ---------- Contact / site visit ---------- */
.contact {
  background: var(--color-surface-2);
}
.contact-grid {
  display: grid;
  gap: var(--space-10);
}
@media (width >= 960px) {
  .contact-grid {
    grid-template-columns: 5fr 7fr;
    gap: var(--space-16);
    align-items: start;
  }
  .contact-copy {
    position: sticky;
    top: 96px;
  }
}
.contact-steps {
  display: grid;
  gap: var(--space-4);
  padding: 0;
  margin: 0;
  list-style: none;
}
.contact-steps li {
  padding-left: var(--space-5);
  border-left: 2px solid var(--color-primary);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
}
.contact-steps strong {
  display: block;
  color: var(--color-text);
  font-weight: 600;
}
.contact-copy a {
  color: var(--color-primary);
}
.contact-form {
  display: grid;
  gap: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 3vw, var(--space-10));
  box-shadow: var(--shadow-sm);
}
.form-row {
  display: grid;
  gap: var(--space-4);
}
@media (width >= 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
  .field-full {
    grid-column: 1 / -1;
  }
}
.field {
  display: grid;
  gap: var(--space-2);
  min-width: 0;
}
.field label,
.contact-form legend {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 var(--space-4);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  font: inherit;
  font-size: var(--text-base);
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: var(--space-10);
}
.field textarea {
  min-height: 120px;
  padding: var(--space-3) var(--space-4);
  resize: vertical;
  line-height: 1.5;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.2);
}
.contact-form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.contact-form legend {
  margin-bottom: var(--space-2);
  padding: 0;
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.choice {
  position: relative;
  cursor: pointer;
}
.choice input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 var(--space-4);
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  background: var(--color-bg);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.choice:hover span {
  border-color: var(--color-text);
}
.choice input:checked + span {
  background: var(--color-text);
  border-color: var(--color-text);
  color: var(--color-bg);
}
.choice input:focus-visible + span {
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.35);
}
.form-foot {
  display: grid;
  gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.form-foot p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}
.form-foot .btn {
  justify-content: center;
}
@media (width >= 640px) {
  .form-foot {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}
.form-error {
  margin: 0;
}

@media print {
  :root {
    color-scheme: light;
    --gutter: 0;
  }
  @page {
    size: letter;
    margin: 0.45in 0.5in 0.55in;
  }
  html {
    font-size: 10.5px;
  }
  body {
    background: #fff;
  }
  .site-header,
  .mini-bar,
  .hero-actions,
  .add-btn,
  .switch,
  .qty,
  .acc-actions,
  .estimator,
  #contact,
  #dealers,
  .site-footer .footer-grid,
  .hero-strip > div:nth-child(1),
  .hero-strip > div:nth-child(2) {
    display: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .container {
    max-width: none;
    padding: 0;
  }
  .section {
    padding: 0.3in 0 0;
  }
  .section-head {
    margin-bottom: 0.15in;
  }
  .section-head p,
  .hero-lede {
    font-size: 1rem;
    max-width: 60ch;
  }
  .hero {
    border-bottom: 0;
  }
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35in;
    align-items: center;
    padding-top: 0.1in;
  }
  .hero h1 {
    font-size: 3.2rem;
  }
  .hero-figure {
    margin: 0 !important;
  }
  .hero-figure img {
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-lg);
  }
  .hero-strip {
    grid-template-columns: 1fr 1fr;
    margin-top: 0.15in;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
  }
  .hero-strip > div {
    padding: 0.14in 0.2in 0.14in 0;
  }
  .cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.16in;
  }
  #swing .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .card {
    padding: 0.2in;
    break-inside: avoid;
    box-shadow: none;
  }
  .card p {
    font-size: 0.95rem;
  }
  .specs {
    font-size: 0.9rem;
  }
  .card-cta {
    margin-top: 0.12in;
  }
  .price {
    font-size: 1.9rem;
  }
  /* Show both leaf prices on swing cards */
  #swing .price-swap::after {
    content: ' / ' attr(data-dual);
  }
  #swing .leaf-label {
    position: relative;
    color: transparent;
  }
  #swing .leaf-label::after {
    content: 'single / dual leaf, installed';
    position: absolute;
    inset: 0;
    color: var(--color-text-muted);
  }
  .acc-row {
    padding: 0.12in 0;
    break-inside: avoid;
  }
  .acc-row p {
    font-size: 0.95rem;
  }
  #accessories {
    background: none !important;
  }
  .notes-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.3in;
  }
  .notes-grid li,
  .callout p {
    font-size: 0.95rem;
  }
  .callout {
    break-inside: avoid;
  }
  .callout .btn {
    display: none;
  }
  .site-footer {
    padding: 0.25in 0 0;
    border-top: 1px solid var(--color-border);
    margin-top: 0.3in;
  }
  .no-print {
    display: none !important;
  }
  #swing {
    break-before: page;
  }
  .callout p:not(.eyebrow)::after {
    content: ' Visit maintainthegate.com.';
  }
  .site-footer {
    border-top: 0;
    margin-top: 0.1in;
  }
  a[href^='http']::after {
    content: ' (' attr(href) ')';
    font-size: 0.85em;
    color: var(--color-text-muted);
  }
}
