@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-800.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-400-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --anthracite: #1c1c1c;
  --anthracite-2: #262626;
  --ink: #111;
  --paper: #f2f0ec;
  --paper-2: #ebe8e1;
  --paper-3: #e2dfd6;
  --line: #1c1c1c;
  --rule: #cdc9bf;
  --rule-2: #d8d4c8;
  --orange: #e85a1b;
  --orange-2: #cf4d12;
  --orange-label: #b6420f;
  --gray: #888;
  --gray-2: #5a5a5a;

  /* Semantic vars: only these change in dark mode to avoid conflicts */
  --contact-bg: #1c1c1c;      /* contact section always stays dark */
  --contact-fg: #f2f0ec;
  --contact-grid: rgb(242 240 236 / .045);
  --form-on-dark: #f2f0ec;    /* input text inside dark contact section */
  --feat-bg: #fff7f1;         /* comparison table highlight column */
  --schematic-bg: #ebe8e1;    /* keep schematic light in both modes */
  --select-arrow: #f2f0ec;    /* dropdown chevron color on dark bg */

  --gutter: clamp(20px, 4vw, 64px);
  --maxw: 1280px;

  --fs-display: clamp(56px, 11vw, 184px);
  --fs-h1: clamp(40px, 6vw, 92px);
  --fs-h2: clamp(34px, 4.4vw, 68px);
  --fs-h3: clamp(22px, 2vw, 30px);
  --fs-eyebrow: 12px;
  --fs-body: 17px;
  --fs-small: 14px;
}

*, *::before, *::after { box-sizing: border-box }
html, body { margin: 0; padding: 0; overflow-x: hidden }
html { scroll-behavior: smooth }
body {
  background: var(--paper);
  color: var(--anthracite);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--orange); color: #fff }

a { color: inherit; text-decoration: none }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer }
input, select, textarea { font: inherit; color: inherit }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter) }
.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: fixed;
  top: 10px;
  left: var(--gutter);
  z-index: 100;
  transform: translateY(-140%);
  background: var(--anthracite);
  color: var(--paper);
  border: 1px solid var(--paper);
  padding: 10px 14px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--orange-label);
  outline-offset: 3px;
}

.mono { font-family: "IBM Plex Mono", monospace; font-feature-settings: "ss01" on, "ss02" on }
.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: var(--fs-eyebrow);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gray-2);
}
.eyebrow .dot {
  display: inline-block; width: 6px; height: 6px;
  background: var(--orange); border-radius: 50%;
  vertical-align: 1px; margin-right: 8px;
}
.display {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.h1 { font-family: "Barlow Condensed", sans-serif; font-weight: 700; line-height: .94; letter-spacing: -.01em; text-transform: uppercase; font-size: var(--fs-h1); margin: 0 }
.h2 { font-family: "Barlow Condensed", sans-serif; font-weight: 700; line-height: .95; letter-spacing: -.005em; text-transform: uppercase; font-size: var(--fs-h2); margin: 0 }
.h3 { font-family: "Barlow Condensed", sans-serif; font-weight: 600; line-height: 1.05; letter-spacing: .005em; text-transform: uppercase; font-size: var(--fs-h3); margin: 0 }

/* ------------- NAV ------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: "Barlow Condensed", sans-serif; font-weight: 800;
  text-transform: uppercase; letter-spacing: .02em;
  font-size: 22px; display: flex; align-items: baseline; gap: 10px;
}
.logo .pipe { display: inline-block; width: 10px; height: 10px; background: var(--orange); transform: translateY(0px) }
.logo .sub { color: var(--gray-2); font-weight: 600 }
.nav-links { display: flex; gap: 28px; align-items: center }
.nav-links a {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px; letter-spacing: .04em;
}
.nav-links a:not(.btn):hover { color: var(--orange-label) }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--anthracite);
  color: var(--anthracite);
  position: relative;
}
.nav-toggle span {
  position: absolute;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transform-origin: center;
}
.nav-toggle span:nth-child(1) { transform: translateY(-6px) }
.nav-toggle span:nth-child(3) { transform: translateY(6px) }
.nav-toggle:focus-visible {
  outline: 2px solid var(--orange-label);
  outline-offset: 3px;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 0;
  font-family: "IBM Plex Mono", monospace; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn .arr { display: inline-block; transition: transform .2s ease }
.btn:hover .arr { transform: translateX(4px) }
.btn-primary { background: var(--orange); color: #fff }
.btn-primary:hover { background: var(--orange-2) }
.btn-ghost { background: transparent; color: var(--anthracite); border-color: var(--anthracite) }
.btn-ghost:hover { background: var(--anthracite); color: var(--paper) }
.btn-light { background: transparent; color: var(--paper); border-color: var(--paper) }
.btn-light:hover { background: var(--paper); color: var(--anthracite) }
.btn-lg { padding: 18px 26px; font-size: 14px }

@media (max-width: 780px) {
  .nav-row { height: 64px }
  .logo { font-size: 20px }
  .nav-toggle { display: inline-flex }
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--anthracite);
    box-shadow: 0 18px 36px color-mix(in oklab, var(--anthracite) 10%, transparent);
    padding: 0 var(--gutter) 18px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
  }
  .nav.is-open .nav-links {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links a:not(.btn) {
    display: flex;
    align-items: center;
    min-height: 48px;
    border-top: 1px solid var(--rule);
    font-size: 14px;
  }
  .nav-links .theme-toggle {
    justify-self: start;
    margin: 14px 0;
  }
  .nav-links .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    white-space: normal;
    text-align: center;
  }
  .nav.is-open .nav-toggle span:nth-child(1) { transform: rotate(45deg) }
  .nav.is-open .nav-toggle span:nth-child(2) { opacity: 0 }
  .nav.is-open .nav-toggle span:nth-child(3) { transform: rotate(-45deg) }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 780px) {
  .nav-links {
    transition:
      opacity .18s ease,
      transform .18s cubic-bezier(.2, .7, .2, 1),
      visibility .18s ease;
  }
  .nav-toggle span {
    transition:
      transform .18s cubic-bezier(.2, .7, .2, 1),
      opacity .12s ease;
  }
}

/* ------------- HERO ------------- */
.hero { padding: 64px 0 24px; position: relative }
.hero .meta-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 14px; margin-bottom: 36px; gap: 24px; flex-wrap: wrap;
}
.hero .meta-row .left { display: flex; gap: 18px; align-items: center; flex-wrap: wrap }
.hero .meta-row .right { display: flex; gap: 18px; color: var(--gray-2) }
.hero-metrics { font-size: 12px; letter-spacing: .08em; text-transform: uppercase }
.hero .meta-row .right span { display: inline-flex; align-items: center; gap: 8px }
.hero .meta-row .right b { color: var(--anthracite); font-weight: 600 }

.hero-title {
  display: grid;
  gap: 18px;
  margin: 0 0 28px;
}
.hero-title-main,
.hero-title-parts {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.hero-title-main {
  font-size: 108px;
  max-width: none;
}
.hero-title-parts {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 42px;
  color: var(--gray-2);
}
.hero-title .pt { color: var(--orange-label) }
.hero-title .ord {
  font-family: "IBM Plex Mono", monospace;
  font-size: .16em; letter-spacing: .18em; font-weight: 500;
  color: var(--gray-2); text-transform: uppercase;
  vertical-align: .7em; margin-right: .4em;
}
.hero-mobile-action {
  display: none;
  margin: 0 0 24px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}
.hero-mobile-action p {
  margin: 0 0 16px;
  color: var(--gray-2);
  font-size: 17px;
  line-height: 1.5;
}
@media (max-width: 1100px) {
  .hero-title-main { font-size: 82px }
  .hero-title-parts { font-size: 36px }
}

/* Schematic: full width */
.schematic {
  border: 1px solid var(--anthracite);
  background: var(--schematic-bg);
  padding: 22px 28px 36px;
  position: relative;
  width: 100%;
}

/* Below schematic: sub + CTAs left, trust right */
.hero-below {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  margin-top: 32px;
}
@media (max-width: 720px) {
  .hero-below { grid-template-columns: 1fr; gap: 28px }
  .hero-mobile-action { display: block }
  .hero-title {
    gap: 10px;
  }
  .hero-title-main { font-size: 54px; max-width: 8ch }
  .hero-title-parts {
    display: grid;
    justify-content: start;
    gap: 0;
    font-size: 40px;
  }
  .hero .meta-row .right {
    flex-wrap: wrap;
    gap: 6px 16px;
    width: 100%;
  }
}

.hero-sub {
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--gray-2); max-width: 48ch; line-height: 1.5;
  margin: 0 0 24px;
}
.hero-sub b { color: var(--anthracite); font-weight: 600 }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap }

.trust {
  display: flex; flex-direction: column; gap: 20px;
}
.trust .t { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--gray-2) }
.trust .t .num {
  font-family: "IBM Plex Mono", monospace;
  color: var(--orange-label); font-weight: 600; font-size: 12px; letter-spacing: .08em;
  padding-top: 2px; flex-shrink: 0;
}
.trust .t b { display: block; color: var(--anthracite); font-weight: 600; font-size: 14px; margin-bottom: 2px }
.schematic .sc-head {
  display: flex; justify-content: space-between;
  font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gray-2); border-bottom: 1px solid var(--anthracite); padding-bottom: 8px; margin-bottom: 14px;
}
.schematic .sc-foot {
  position: absolute; left: 22px; right: 22px; bottom: 14px;
  display: flex; justify-content: space-between;
  font-family: "IBM Plex Mono", monospace; font-size: 10px; color: var(--gray-2); letter-spacing: .1em; text-transform: uppercase;
}
.schematic svg { display: block; width: 100%; height: auto }

/* ------------- SECTION FRAME ------------- */
section.S { padding: 96px 0; border-top: 1px solid var(--rule) }
.sec-head {
  display: grid; grid-template-columns: 1fr 2fr; gap: 40px;
  align-items: end; margin-bottom: 56px;
}
@media (max-width: 780px) { .sec-head { grid-template-columns: 1fr; gap: 18px } }
.sec-head .num {
  font-family: "IBM Plex Mono", monospace; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gray-2);
}
.sec-head .num b { color: var(--orange-label); margin-right: 8px }
.page-main .sec-head { align-items: start }
.page-content {
  max-width: 72ch;
  color: var(--gray-2);
  font-size: 18px;
  line-height: 1.7;
}
.page-content p + p { margin-top: 18px }
.page-content h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 34px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--anthracite);
  margin: 34px 0 12px;
}
.page-content ul {
  margin: 22px 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}
.page-content li {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.page-content strong { color: var(--anthracite); font-weight: 700 }
.page-content a {
  color: var(--orange-label);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ------------- PROCESS TIMELINE ------------- */
.timeline {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--anthracite);
  border-bottom: 1px solid var(--anthracite);
}
@media (max-width: 880px) { .timeline { grid-template-columns: 1fr 1fr } }
@media (max-width: 520px) { .timeline { grid-template-columns: 1fr } }
.tl-step {
  padding: 28px 22px 32px; position: relative;
  border-right: 1px solid var(--rule);
}
.tl-step:last-child { border-right: 0 }
@media (max-width: 880px) {
  .tl-step:nth-child(2) { border-right: 0 }
  .tl-step:nth-child(1), .tl-step:nth-child(2) { border-bottom: 1px solid var(--rule) }
}
@media (max-width: 520px) {
  .tl-step { border-right: 0; border-bottom: 1px solid var(--rule) }
  .tl-step:last-child { border-bottom: 0 }
}
.tl-step .nm { font-family: "IBM Plex Mono", monospace; font-weight: 600; color: var(--orange-label); font-size: 14px; letter-spacing: .1em }
.tl-step h4 { font-family: "Barlow Condensed", sans-serif; font-weight: 700; text-transform: uppercase; font-size: 26px; letter-spacing: .005em; margin: 8px 0 8px; line-height: 1.05 }
.tl-step p { margin: 0; color: var(--gray-2); font-size: 15px; line-height: 1.5 }
.tl-step .marker {
  position: absolute; top: 0; left: 0; width: 32px; height: 6px; background: var(--orange);
  transform-origin: left; transform: scaleX(0); transition: transform .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0s);
}
.reveal.in .tl-step .marker { transform: scaleX(1) }

.tl-connect {
  position: relative; height: 36px; margin-top: -1px; border-top: 0;
}
.tl-connect svg { width: 100%; height: 100%; display: block }
.tl-connect path { fill: none; stroke: var(--anthracite); stroke-width: 1.25; stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 1.8s ease .2s }
.reveal.in .tl-connect path { stroke-dashoffset: 0 }

/* ------------- PERSONAL ------------- */
.personal {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: flex-start;
}
@media (max-width: 880px) { .personal { grid-template-columns: 1fr; gap: 40px } }
.proof-card {
  max-width: 420px;
  border: 1px solid var(--anthracite);
  background: var(--paper-2);
  padding: 28px;
}
.proof-kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange-label);
  font-weight: 600;
  margin-bottom: 20px;
}
.proof-card h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 38px;
  line-height: .95;
  margin: 0 0 16px;
}
.proof-card p {
  margin: 0;
  color: var(--gray-2);
  max-width: 34ch;
}
.proof-card ul {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.proof-card li {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  color: var(--anthracite);
}

.stack { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--anthracite) }
.stack .row {
  display: grid; grid-template-columns: 80px 1fr; gap: 24px;
  padding: 24px 0; border-bottom: 1px solid var(--rule);
  align-items: flex-start;
}
.stack .row .nm {
  font-family: "IBM Plex Mono", monospace; font-size: 13px; letter-spacing: .12em; color: var(--orange-label); font-weight: 600; padding-top: 8px;
}
.stack .row h4 { font-family: "Barlow Condensed", sans-serif; font-weight: 700; text-transform: uppercase; font-size: 30px; margin: 0 0 6px; line-height: 1 }
.stack .row p { margin: 0; color: var(--gray-2); max-width: 46ch }

.quote {
  margin-top: 28px; padding: 18px 22px; border: 1px solid var(--rule);
  background: var(--paper-2); font-size: 17px; color: var(--anthracite);
}
.quote-personal { margin-top: 38px; max-width: 380px }
.quote .mark { font-family: "Barlow Condensed", sans-serif; font-weight: 700; color: var(--orange-label); font-size: 32px; line-height: 0; vertical-align: -8px; margin-right: 6px }

/* ------------- LOCAL TRUST ------------- */
.local-proof {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) 1.4fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (max-width: 840px) { .local-proof { grid-template-columns: 1fr } }
.local-card,
.local-copy {
  background: var(--paper);
  padding: 32px 28px;
}
.local-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  font-style: normal;
}
.local-card .nm {
  font-family: "IBM Plex Mono", monospace;
  color: var(--orange-label);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.local-card strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 34px;
  line-height: .95;
  text-transform: uppercase;
  max-width: 12ch;
}
.local-card span,
.local-card a,
.local-copy p {
  color: var(--gray-2);
}
.local-card a:hover { color: var(--orange-label) }
.local-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-content: start;
}
@media (max-width: 720px) { .local-copy { grid-template-columns: 1fr; gap: 18px } }
.local-copy p {
  margin: 0;
  line-height: 1.65;
}

/* ------------- WHY PACKAGE ------------- */
.why {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--anthracite); border-bottom: 1px solid var(--anthracite);
}
@media (max-width: 880px) { .why { grid-template-columns: 1fr } }
.why .col {
  padding: 32px 28px 36px; border-right: 1px solid var(--rule);
  position: relative;
}
.why .col:last-child { border-right: 0 }
@media (max-width: 880px) {
  .why .col { border-right: 0; border-bottom: 1px solid var(--rule) }
  .why .col:last-child { border-bottom: 0 }
}
.why .big-num {
  font-family: "Barlow Condensed", sans-serif; font-weight: 700;
  font-size: 120px; line-height: .8; letter-spacing: -.03em;
  color: var(--anthracite);
}
.why .big-num em { color: var(--orange-label); font-style: normal }
.why h4 { font-family: "Barlow Condensed", sans-serif; font-weight: 700; text-transform: uppercase; font-size: 28px; margin: 14px 0 8px; line-height: 1.05 }
.why p { margin: 0; color: var(--gray-2); font-size: 15px; line-height: 1.55 }

/* ------------- COMPONENT CARDS ------------- */
.comps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule) }
@media (max-width: 880px) { .comps { grid-template-columns: 1fr } }
.card { background: var(--paper); padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; min-height: 380px }
.card .nm { font-family: "IBM Plex Mono", monospace; color: var(--orange-label); font-weight: 600; font-size: 13px; letter-spacing: .12em }
.card h4 { font-family: "Barlow Condensed", sans-serif; font-weight: 700; text-transform: uppercase; font-size: 34px; margin: 0; line-height: .95 }
.card .desc { color: var(--gray-2); font-size: 15px; margin: 0 }
.card ul { list-style: none; padding: 0; margin: auto 0 0; border-top: 1px solid var(--rule) }
.card ul li {
  padding: 10px 0; border-bottom: 1px solid var(--rule);
  display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start;
  font-size: 14px; color: var(--anthracite);
}
.card ul li:last-child { border-bottom: 0 }
.card ul li::before {
  content: "+"; color: var(--orange-label); font-weight: 700; font-family: "IBM Plex Mono", monospace; font-size: 16px; line-height: 1.3;
}
.comps-note { margin-top: 18px; color: var(--gray-2); font-size: 14px; font-family: "IBM Plex Mono", monospace; letter-spacing: .04em }
.comps-note::before { content: "↳ "; color: var(--orange-label) }

/* ------------- SEO SUPPORT ------------- */
.answer-list p {
  margin: 0;
}
.answer-list p + p {
  margin-top: 16px;
}
.answer-list b {
  display: block;
  color: var(--anthracite);
  font-weight: 700;
}
.service-strip {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #3a3a3a;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 1px;
}
.service-strip-title,
.service-strip a {
  min-width: 0;
}
.service-strip-title {
  align-self: center;
  color: #9b958a;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.service-strip a {
  border: 1px solid #3a3a3a;
  padding: 16px;
  color: var(--contact-fg);
}
.service-strip strong {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 21px;
  line-height: 1;
  text-transform: uppercase;
}
.service-strip span:not(.service-strip-title) {
  display: block;
  margin-top: 7px;
  color: #9b958a;
  font-size: 13px;
  line-height: 1.45;
}
.service-strip a:hover {
  border-color: var(--orange-label);
  color: #f2f0ec;
}
@media (max-width: 980px) {
  .service-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-strip-title {
    grid-column: 1 / -1;
    padding-bottom: 8px;
  }
}
@media (max-width: 560px) {
  .service-strip {
    grid-template-columns: 1fr;
  }
}

/* ------------- PRICING ------------- */
.price-card {
  border: 1px solid var(--anthracite); background: var(--paper);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
}
@media (max-width: 880px) { .price-card { grid-template-columns: 1fr } }
.price-card .left { padding: 40px; border-right: 1px solid var(--rule); position: relative; background: var(--paper-2) }
@media (max-width: 880px) { .price-card .left { border-right: 0; border-bottom: 1px solid var(--rule) } }
.price-card .ribbon {
  position: absolute; top: 0; right: 0;
  background: var(--orange); color: #fff;
  font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  padding: 8px 14px;
}
.price-card .tag { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gray-2) }
.price-card h3 { font-family: "Barlow Condensed", sans-serif; font-weight: 700; text-transform: uppercase; font-size: 48px; margin: 6px 0 18px; line-height: .95 }
.price-card .price {
  display: flex; align-items: baseline; gap: 10px; margin: 18px 0 6px;
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; line-height: .9;
}
.price-card .price .ab { font-size: 22px; color: var(--gray-2); font-weight: 600; letter-spacing: .05em; text-transform: uppercase }
.price-card .price .v { font-size: 104px; letter-spacing: -.02em; color: var(--anthracite) }
.price-card .price .cur { font-size: 48px; color: var(--orange-label) }
.price-card .meta { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .06em; color: var(--gray-2); margin-bottom: 24px }
.price-card .meta b { color: var(--anthracite) }

.price-card .right { padding: 40px; display: flex; flex-direction: column; gap: 18px }
.price-card .right h4 { font-family: "Barlow Condensed", sans-serif; font-weight: 700; text-transform: uppercase; font-size: 22px; margin: 0 }
.price-list { list-style: none; padding: 0; margin: 0 }
.price-list li {
  display: grid; grid-template-columns: 36px 1fr; gap: 10px;
  padding: 14px 0; border-bottom: 1px solid var(--rule); align-items: start;
}
.price-list li:last-child { border-bottom: 0 }
.price-list li .n { font-family: "IBM Plex Mono", monospace; color: var(--orange-label); font-weight: 600; font-size: 13px; letter-spacing: .1em; padding-top: 3px }
.price-list li b { font-weight: 600; display: block; font-size: 15px }
.price-list li span { color: var(--gray-2); font-size: 14px }

/* Comparison table */
.comp-wrap { margin-top: 48px; border: 1px solid var(--anthracite) }
.comp-table { width: 100%; border-collapse: collapse; font-size: 15px }
.comp-table th, .comp-table td {
  text-align: left; padding: 18px 20px; border-bottom: 1px solid var(--rule); vertical-align: top;
}
.comp-table thead th {
  background: var(--paper-2);
  font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-2);
  border-bottom: 1px solid var(--anthracite); font-weight: 500;
}
.comp-table thead th.feat {
  background: var(--orange); color: #fff;
  font-family: "Barlow Condensed", sans-serif; font-size: 18px; font-weight: 700; letter-spacing: .04em;
}
.comp-table tbody tr:last-child td { border-bottom: 0 }
.comp-table td.feat { background: var(--feat-bg); border-left: 1px solid var(--orange); border-right: 1px solid var(--orange); font-weight: 500; color: var(--anthracite) }
.comp-table tbody tr:last-child td.feat { border-bottom: 1px solid var(--orange) }
.comp-table td.crit {
  width: 30%; font-family: "IBM Plex Mono", monospace; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--anthracite);
  background: var(--paper-2);
}
.comp-table td.crit .n { color: var(--orange-label); margin-right: 8px }
.comp-table td.feat .yes { color: var(--anthracite); font-weight: 700 }
.comp-table td .yes { color: var(--anthracite); font-weight: 600 }
.comp-table td .no { color: var(--gray-2); font-weight: 500; text-decoration: line-through; text-decoration-color: var(--gray) }
.comp-table td .partial { color: var(--gray-2) }
@media (max-width: 780px) {
  .comp-table th, .comp-table td { padding: 12px 12px; font-size: 13px }
  .comp-table td.crit { width: auto; font-size: 11px }
}
@media (max-width: 640px) {
  .comp-wrap {
    border: 0;
    margin-top: 34px;
  }
  .comp-table,
  .comp-table thead,
  .comp-table tbody,
  .comp-table tr,
  .comp-table th,
  .comp-table td {
    display: block;
  }
  .comp-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .comp-table tbody {
    display: grid;
    gap: 16px;
  }
  .comp-table tbody tr {
    border: 1px solid var(--anthracite);
    background: var(--paper);
  }
  .comp-table tbody tr:last-child td { border-bottom: 1px solid var(--rule) }
  .comp-table tbody tr:last-child td:last-child { border-bottom: 0 }
  .comp-table td {
    display: grid;
    grid-template-columns: minmax(84px, 34%) 1fr;
    gap: 12px;
    align-items: start;
    min-width: 0;
    border-bottom: 1px solid var(--rule);
    overflow-wrap: anywhere;
  }
  .comp-table td::before {
    content: attr(data-label);
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gray-2);
  }
  .comp-table td.crit {
    display: block;
    width: 100%;
    padding: 14px 14px;
    border-bottom-color: var(--anthracite);
    font-size: 12px;
  }
  .comp-table td.crit::before { content: none }
  .comp-table td.feat {
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
  }
  .comp-table tbody tr:last-child td.feat { border-bottom: 0 }
  .comp-table td.feat::before {
    color: var(--orange-label);
    font-weight: 600;
  }
}

/* ------------- FAQ ------------- */
.faq { border-top: 1px solid var(--anthracite) }
.faq details { border-bottom: 1px solid var(--rule); padding: 0 }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 24px 56px 24px 64px;
  position: relative;
  display: flex; align-items: flex-start; gap: 18px;
  font-family: "Barlow Condensed", sans-serif; font-weight: 600; text-transform: uppercase; font-size: 24px; line-height: 1.1; letter-spacing: .005em;
}
.faq summary::-webkit-details-marker { display: none }
.faq summary .qn {
  position: absolute; left: 0; top: 26px;
  font-family: "IBM Plex Mono", monospace; font-weight: 600; font-size: 13px; color: var(--orange-label); letter-spacing: .1em;
}
.faq summary::after {
  content: "+";
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-family: "IBM Plex Mono", monospace; font-size: 28px; color: var(--anthracite);
  transition: transform .25s ease;
  line-height: 1;
}
.faq details[open] summary::after { content: "–" }
.faq .a { padding: 0 56px 28px 64px; color: var(--gray-2); max-width: 80ch; line-height: 1.6 }

/* ------------- CONTACT (DARK) ------------- */
.contact {
  background: var(--contact-bg); color: var(--contact-fg);
  border-top: 0;
  position: relative; overflow: hidden;
}
.contact::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--contact-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--contact-grid) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.contact .wrap { position: relative }
.contact .stripe {
  height: 14px; width: 100%;
  background: repeating-linear-gradient(45deg, var(--orange) 0 16px, #1c1c1c 16px 32px);
  margin-bottom: 64px;
}
.contact .head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 48px }
@media (max-width: 880px) { .contact .head { grid-template-columns: 1fr; gap: 18px } }
.contact h2 { color: var(--contact-fg) }
.contact .head p { color: #bdb6ab; margin: 0; max-width: 50ch; font-size: 18px; line-height: 1.55 }

.form {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px;
  border-top: 1px solid #3a3a3a; padding-top: 32px;
}
.form .field { display: flex; flex-direction: column; gap: 8px }
.form .field.f6 { grid-column: span 6 }
.form .field.f4 { grid-column: span 4 }
.form .field.f8 { grid-column: span 8 }
.form .field.f12 { grid-column: span 12 }
@media (max-width: 880px) {
  .form .field.f6, .form .field.f4, .form .field.f8 { grid-column: span 12 }
}
.form label {
  font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #9b958a;
  display: flex; justify-content: space-between;
}
.label-note { color: #6a655c }
.form label .req { color: var(--orange-label) }
.form input, .form select, .form textarea {
  background: transparent; border: 0; border-bottom: 1px solid #4a4a4a;
  padding: 12px 0; color: var(--form-on-dark); font-size: 17px;
  border-radius: 0; outline: none; transition: border-color .15s ease;
  width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--orange-label) }
.form input[aria-invalid="true"],
.form textarea[aria-invalid="true"],
.form select[aria-invalid="true"] {
  border-color: var(--orange-label);
}
.form input::placeholder, .form textarea::placeholder { color: #6a655c }
.form textarea { resize: vertical; min-height: 120px; font-family: inherit; line-height: 1.5 }
.form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--select-arrow) 50%), linear-gradient(135deg, var(--select-arrow) 50%, transparent 50%);
  background-position: calc(100% - 14px) 22px, calc(100% - 8px) 22px;
  background-size: 6px 6px; background-repeat: no-repeat; padding-right: 28px;
  color: var(--form-on-dark);
}
.form select option { background: #1c1c1c; color: #f2f0ec }
.form .check {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  max-width: 88ch;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: #cfc8bc;
  line-height: 1.55;
}
.form .check input[type=checkbox] {
  appearance: none; -webkit-appearance: none;
  width: 28px;
  height: 28px;
  border: 1px solid rgb(242 240 236 / .45);
  background: rgb(242 240 236 / .04);
  flex-shrink: 0;
  margin: 1px 0 0;
  cursor: pointer;
  position: relative;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.form .check input[type=checkbox]:hover {
  border-color: rgb(242 240 236 / .75);
}
.form .check input[type=checkbox]:focus-visible {
  outline: 2px solid var(--orange-label);
  outline-offset: 3px;
}
.form .check input[type=checkbox]:checked {
  background: var(--orange-label);
  border-color: var(--orange-label);
  box-shadow: 0 0 0 4px rgb(232 90 27 / .16);
}
.form .check input[type=checkbox]:checked::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 5px;
  width: 8px;
  height: 14px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.form .check input[type=checkbox][aria-invalid="true"] { border-color: var(--orange-label) }
.form .check a {
  color: var(--contact-fg);
  text-decoration: underline;
  text-decoration-color: rgb(232 90 27 / .65);
  text-underline-offset: 4px;
}
.form .check a:hover { color: #fff }
.field-error {
  margin: -2px 0 0;
  color: #ffb088;
  font-size: 13px;
  line-height: 1.45;
}
.check-error {
  grid-column: span 12;
  margin-top: -18px;
}
.form .submit-row {
  grid-column: span 12;
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
  border-top: 1px solid #3a3a3a; padding-top: 24px; margin-top: 8px;
}
.form .submit-row .note { font-family: "IBM Plex Mono", monospace; font-size: 11px; color: #9b958a; letter-spacing: .08em; text-transform: uppercase }
.form .submit-row .note::before { content: "●  "; color: var(--orange-label) }

.form-error,
.form-success {
  grid-column: span 12;
  display: none; padding: 32px; border: 1px solid var(--orange-label);
}
.form-error {
  background: #20100a;
}
.form-error.show,
.form-success.show {
  display: block;
}
.form-error h4,
.form-success h4 {
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; text-transform: uppercase; font-size: 28px; margin: 0 0 6px; color: var(--paper)
}
.form-error p,
.form-success p { margin: 0; color: #bdb6ab }
.form-success {
  background: #241712;
}

/* ------------- FOOTER ------------- */
footer { padding: 28px 0; border-top: 1px solid var(--rule); background: var(--paper) }
.foot-wrap {
  display: grid;
  gap: 18px;
}
.foot-row {
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
  font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--gray-2); letter-spacing: .06em;
}
.foot-logo { font-size: 16px }
.foot-note { opacity: .85 }
.foot-row .links { display: flex; gap: 22px }
.foot-row .links a:hover { color: var(--orange-label) }
.foot-local {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  color: var(--gray-2);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-style: normal;
  letter-spacing: .04em;
}
.foot-local a:hover { color: var(--orange-label) }

.privacy-note {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  width: min(640px, calc(100vw - 28px));
  padding: 16px 18px;
  color: var(--paper);
  background: #1c1c1c;
  border: 1px solid rgb(242 240 236 / .18);
  box-shadow: 0 20px 50px rgb(0 0 0 / .28);
}
.privacy-note[hidden] { display: none }
.privacy-note p {
  margin: 0;
  color: #d7d0c5;
  font-size: 14px;
  line-height: 1.45;
}
.privacy-note a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgb(232 90 27 / .7);
  text-underline-offset: 4px;
}
.privacy-note-close {
  min-height: 40px;
  padding: 0 14px;
  background: var(--orange-label);
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.privacy-note-close:hover { background: var(--orange-2) }
.privacy-note-close:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}
@media (max-width: 680px) {
  .privacy-note {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .privacy-note-close {
    justify-self: start;
  }
}

/* ------------- REVEALS ------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1) }
.reveal.in { opacity: 1; transform: none }
.reveal-stagger > * { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1) }
.reveal-stagger.in > * { opacity: 1; transform: none }
.reveal-stagger.in > *:nth-child(1) { transition-delay: .0s }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .08s }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .16s }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .24s }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .32s }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .40s }

/* Sending state */
.btn.sending { opacity: .6; pointer-events: none }
.btn.sending::after { content: " …" }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none }
  .tl-connect path { stroke-dashoffset: 0 }
  html { scroll-behavior: auto }
}

/* ================================================================
   DARK MODE
   ================================================================ */

@media (prefers-reduced-motion: no-preference) {
  /* Smooth theme transition, only on color-bearing props. */
  html {
    transition: background-color .28s ease, color .28s ease;
  }
  body,
  .nav,
  .price-card,
  .price-card .left,
  .comp-wrap,
  .comp-table thead th,
  .comp-table td,
  .card,
  .service-strip a,
  .faq details,
  footer,
  .schematic,
  .local-card,
  .local-copy,
  .stack .row,
  .tl-step,
  .why .col {
    transition:
      background-color .28s ease,
      color .28s ease,
      border-color .28s ease;
  }
}

/* ---- Dark-mode custom properties ---- */
/* Applied via [data-theme="dark"] (manual) OR system pref without manual override */

[data-theme="dark"] {
  --anthracite:   #eae6df;
  --anthracite-2: #c8c3bb;
  --ink:          #f4f1eb;
  --paper:        #0c0b09;
  --paper-2:      #141210;
  --paper-3:      #1a1815;
  --rule:         #242118;
  --rule-2:       #2c2924;
  --gray:         #504c47;
  --gray-2:       #8a857e;
  --orange-label: #ff9a66;

  /* Semantic vars: stay constant regardless of mode flip */
  --contact-bg:    #080706;
  --contact-fg:    #eae6df;
  --contact-grid:  rgb(234 230 223 / .07);
  --form-on-dark:  #eae6df;
  --feat-bg:       #1c0e05;
  --schematic-bg:  #f0ece4;   /* schematic stays light, like a lit blueprint */
  --select-arrow:  #eae6df;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --anthracite:   #eae6df;
    --anthracite-2: #c8c3bb;
    --ink:          #f4f1eb;
    --paper:        #0c0b09;
    --paper-2:      #141210;
    --paper-3:      #1a1815;
    --rule:         #242118;
    --rule-2:       #2c2924;
    --gray:         #504c47;
    --gray-2:       #8a857e;
    --orange-label: #ff9a66;

    --contact-bg:    #080706;
    --contact-fg:    #eae6df;
    --contact-grid:  rgb(234 230 223 / .07);
    --form-on-dark:  #eae6df;
    --feat-bg:       #1c0e05;
    --schematic-bg:  #f0ece4;
    --select-arrow:  #eae6df;
  }
}

/* ---- Component-level dark overrides ---- */

/* Nav: tighter glass on dark bg */
[data-theme="dark"] .nav {
  border-bottom-color: var(--rule);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav {
    border-bottom-color: var(--rule);
  }
}

/* Schematic border adapts on light island */
[data-theme="dark"] .schematic {
  border-color: #1c1c1c;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .schematic {
    border-color: #1c1c1c;
  }
}

/* Polaroid stays intentionally white (paper photo), no override needed */

/* Comparison feat header cell on dark bg */
[data-theme="dark"] .comp-table thead th:not(.feat) {
  border-bottom-color: var(--rule);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .comp-table thead th:not(.feat) {
    border-bottom-color: var(--rule);
  }
}

/* Price card ribbon contrast check: stays orange, fine */

/* Form checkbox border on dark bg */
[data-theme="dark"] .form .check input[type=checkbox] {
  border-color: #6a6560;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .form .check input[type=checkbox] {
    border-color: #6a6560;
  }
}
[data-theme="dark"] .form .check input[type=checkbox][aria-invalid="true"] {
  border-color: var(--orange-label);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .form .check input[type=checkbox][aria-invalid="true"] {
    border-color: var(--orange-label);
  }
}

/* Form success panel */
[data-theme="dark"] .form-success {
  background: #1a0b06;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .form-success {
    background: #1a0b06;
  }
}

/* ---- Theme toggle button ---- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 44px;
  height: 44px;
  color: var(--gray-2);
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  padding: 0;
  position: relative;
  border-radius: 999px;
  overflow: hidden;
}
.theme-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.theme-toggle:hover {
  color: var(--anthracite);
  background: color-mix(in oklab, var(--paper-2) 72%, transparent);
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--orange-label);
  outline-offset: 3px;
}

.theme-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}
.theme-icon svg {
  grid-area: 1 / 1;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-icon-moon {
  opacity: 0;
  transform: scale(.78) rotate(-18deg);
}
@media (prefers-reduced-motion: no-preference) {
  .theme-toggle { transition: color .15s ease, background .15s ease }
  .theme-icon svg { transition: opacity .18s ease, transform .22s cubic-bezier(.4, 0, .2, 1) }
}

[data-theme="dark"] .theme-icon-sun {
  opacity: 0;
  transform: scale(.78) rotate(18deg);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-icon-sun {
    opacity: 0;
    transform: scale(.78) rotate(18deg);
  }
}
[data-theme="dark"] .theme-icon-moon {
  opacity: 1;
  transform: scale(1) rotate(0);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-icon-moon {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@media (max-width: 780px) {
  .nav-links .theme-toggle {
    width: 100%;
    height: 48px;
    justify-content: flex-start;
    border-radius: 0;
    overflow: visible;
    border-top: 1px solid var(--rule);
  }
  .nav-links .theme-toggle:hover { background: transparent }
  .nav-links .theme-label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
    font-family: "IBM Plex Mono", monospace;
    font-size: 14px;
    letter-spacing: .04em;
  }
  .nav-links .theme-icon { margin-left: auto }
}
