/* ---------- Design tokens ---------- */
:root {
  /* Matched to hybridelectronics.com — near-black + terracotta/burnt-orange */
  --bg: #ffffff;
  --bg-alt: #f5f6fa;         /* light cool-gray section band */
  --ink: #0a0a0a;            /* near-black headings */
  --ink-2: #1a1a1a;
  --muted: #5a5a5a;          /* medium-gray body text */
  --muted-2: #757575;
  --line: #e6e7ec;
  --line-2: #d5d7dd;

  --navy: #131313;           /* near-black header/footer (kept var name for minimal churn) */
  --navy-deep: #0a0a0a;
  --accent: #e86524;         /* warehouse-rack safety orange (sampled from beam) */
  --accent-hover: #c8541a;
  --accent-soft: #fce3d1;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(15, 30, 51, 0.06);
  --shadow: 0 6px 24px -8px rgba(15, 30, 51, 0.15);
  --shadow-lg: 0 20px 50px -20px rgba(15, 30, 51, 0.25);

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, serif;

  --container: 1160px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  min-height: 100vh;
  /* Circuit board photo backdrop painted on <html> so it fills the viewport and
     stays fixed while the page scrolls (same pattern as hybrid-quote-history-v2). */
  background-color: #08111e;
  background-image:
    linear-gradient(rgba(8, 14, 24, 0.55), rgba(8, 14, 24, 0.65)),
    url('bg-circuit.jpg');
  background-repeat: no-repeat, no-repeat;
  background-size: cover, cover;
  background-position: center center, center center;
  background-attachment: fixed, fixed;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: transparent;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  line-height: 1;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.08),
    0 4px 10px -2px rgba(15, 23, 42, 0.16),
    0 10px 24px -8px rgba(232, 101, 36, 0.45);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.10),
    0 8px 16px -4px rgba(15, 23, 42, 0.20),
    0 14px 28px -8px rgba(232, 101, 36, 0.55);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.08),
    0 3px 6px -2px rgba(15, 23, 42, 0.14),
    0 6px 14px -6px rgba(232, 101, 36, 0.4);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-large { padding: 16px 28px; font-size: 16px; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Same seamless diamond-plate tread as the alt gray sections, tinted with a
     near-white overlay so the header stays light behind the logo and nav. */
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.90)),
    url('diamond-tile-light.jpg');
  background-size: auto, 220px 220px;
  background-repeat: no-repeat, repeat;
  background-position: center, center;
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}
.header-inner .brand { margin-right: auto; }

/* ---------- Hamburger menu button (far left of header) ---------- */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-right: 12px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
  flex-shrink: 0;
}
.menu-toggle:hover {
  border-color: var(--accent);
  background: rgba(232, 101, 36, 0.08);
  color: var(--accent);
}
.menu-toggle svg { width: 22px; height: 22px; display: block; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.menu-toggle[aria-expanded="true"] {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(232, 101, 36, 0.08);
}

/* ---------- Dropdown panel ---------- */
.menu-panel {
  position: fixed;
  top: 72px;
  left: 0;
  width: min(360px, 92vw);
  max-height: calc(100vh - 84px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 14px 0;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.18), 0 8px 16px -8px rgba(0,0,0,0.08);
  padding: 8px 0 14px;
  z-index: 60;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.menu-panel[data-open="true"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.menu-group { padding: 10px 0; }
.menu-group + .menu-group { border-top: 1px solid var(--line); }
.menu-group-title {
  display: block;
  padding: 10px 20px 10px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.005em;
  text-transform: none;
  color: #0b2545; /* navy blue */
}
.menu-group a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  transition: background-color .15s ease, color .15s ease;
}
.menu-group a:hover,
.menu-group a:focus-visible {
  background: rgba(232, 101, 36, 0.08);
  color: var(--accent);
}
.menu-group a[aria-current="page"] {
  color: var(--accent);
  background: rgba(232, 101, 36, 0.06);
}
.menu-group a .menu-arrow {
  margin-left: auto;
  opacity: 0.4;
  transition: transform .15s ease, opacity .15s ease;
}
.menu-group a:hover .menu-arrow { opacity: 1; transform: translateX(2px); }
.menu-backdrop {
  position: fixed;
  inset: 72px 0 0 0;
  background: rgba(15, 23, 42, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  z-index: 55;
}
.menu-backdrop[data-open="true"] { opacity: 1; pointer-events: auto; }
@media (max-width: 560px) {
  .menu-panel { width: 100vw; border-radius: 0; }
}

/* ---------- Glossary ---------- */
/* Glossary pages need an opaque body background — the site html paints a
   dark circuit-board image at position:fixed and normally hero sections
   cover it. Force white here so text stays readable. */
body.glossary-page { background: #fff; }
.glossary-hero {
  padding: 56px 0 32px;
  background: linear-gradient(180deg, #fafafa, #fff);
  border-bottom: 1px solid var(--line);
}
.glossary-hero .kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.glossary-hero h1 {
  margin: 0 0 12px;
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  color: var(--ink);
}
.glossary-hero p.lede {
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
}
.breadcrumbs {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}
.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dotted transparent;
  transition: color .15s, border-color .15s;
}
.breadcrumbs a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.breadcrumbs .sep { margin: 0 8px; opacity: 0.5; }

/* A-Z chip grid */
.az-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(52px, 1fr));
  gap: 8px;
  margin: 24px 0 8px;
}
.az-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: all .15s ease;
}
.az-grid a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(232, 101, 36, 0.06);
}
.az-grid a[aria-current="page"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.az-grid a.empty { opacity: 0.35; pointer-events: none; }
.az-legend {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* Glossary body */
.glossary-body {
  padding: 40px 0 64px;
  background: #fff;
}
.glossary-body .term-count {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 18px;
}
.glossary-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.glossary-list li {
  display: grid;
  grid-template-columns: minmax(180px, 220px) 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.glossary-list dt.term {
  font-weight: 700;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
  margin: 0;
  word-break: break-word;
}
.glossary-list dd.def {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 640px) {
  .glossary-list li { grid-template-columns: 1fr; gap: 4px; }
  .glossary-list dt.term { color: var(--accent); font-size: 16px; }
}

/* Prev / Next letter footer */
.letter-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.letter-nav a {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s, background-color .15s;
  max-width: 46%;
}
.letter-nav a:hover {
  border-color: var(--accent);
  background: rgba(232, 101, 36, 0.05);
}
.letter-nav .lbl {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.letter-nav .val { font-weight: 700; font-size: 16px; }
.letter-nav .prev { text-align: left; }
.letter-nav .next { text-align: right; margin-left: auto; }
.letter-nav .placeholder { visibility: hidden; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
}
.brand-logo {
  height: 52px;
  width: auto;
  display: block;
}
.brand-logo-footer { height: 64px; }
@media (max-width: 900px) {
  .brand-logo { height: 44px; }
  .brand-logo-footer { height: 56px; }
}
@media (max-width: 640px) {
  .brand-logo { height: 38px; }
  .brand-logo-footer { height: 48px; }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  text-decoration: none;
  font-size: 14px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: color .2s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a.btn-primary { color: #fff; }

/* Header phone — "Call Now!" label + number, tappable tel: link */
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink) !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.header-phone svg { color: var(--accent); flex-shrink: 0; }
.header-phone-label { color: var(--accent); }
.header-phone-number { color: var(--ink); font-variant-numeric: tabular-nums; }
.header-phone:hover {
  border-color: var(--accent);
  background: rgba(232, 101, 36, 0.08);
}

@media (max-width: 900px) {
  /* On tablet, hide the section links but keep phone + submit visible */
  .site-nav > a[href^="#how-it-works"],
  .site-nav > a[href^="#what-we-buy"],
  .site-nav > a[href^="#faq"] { display: none; }
}
@media (max-width: 560px) {
  /* On phone, keep the phone link visible but shrink to icon + number only */
  .header-phone { padding: 8px 10px; }
  .header-phone-label { display: none; }
  .header-phone-number { font-size: 13px; }
}
@media (max-width: 720px) {
  .site-nav a:not(.btn):not(.header-phone) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(80px, 12vw, 160px) 0 clamp(72px, 10vw, 128px);
  /* Extra dark scrim at the very top so the sticky header + hero text stay legible
     against the fixed circuit board backdrop showing through. */
  background: linear-gradient(180deg, rgba(8, 14, 24, 0.55) 0%, rgba(8, 14, 24, 0.25) 60%, transparent 100%);
  color: #ffffff;
  overflow: hidden;
}
.hero::after {
  /* subtle terracotta glow to tie into the brand accent */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 500px at 85% 15%, rgba(232, 101, 36, 0.18), transparent 65%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero .eyebrow {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #dbe1ed;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero .hero-title { color: #ffffff; }
.hero .accent-text {
  color: #ffcd1e;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.hero .hero-sub { color: #cfd6e2; }
.hero .hero-trust { color: #a9b3c4; }
.hero .hero-trust strong { color: #ffffff; }
.hero .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
}
.hero-inner { max-width: 900px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  background: #fff;
  border-radius: 999px;
  margin-bottom: 24px;
}
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--navy-deep);
}
.accent-text {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}
.hero-sub {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 660px;
  margin: 0 0 32px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}
.hero-trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  font-size: 14px;
  color: var(--muted);
}
.hero-trust strong { color: var(--ink); font-weight: 600; }

/* ---------- Sections ---------- */
/* Sections sit in frosted glass panels so the fixed circuit board backdrop
   tints through them. Lower opacity + strong blur = clear frosted glass effect. */
.section {
  position: relative;
  padding: clamp(64px, 9vw, 112px) 0;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-top: 1px solid rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.section-alt {
  /* Layered: translucent gray on top of a light seamless diamond-plate tread.
     The rgba() tints the tread with the site's cool-gray so it matches the
     existing alt-section color while keeping the industrial tread visible. */
  background:
    linear-gradient(180deg, rgba(240, 243, 248, 0.78), rgba(240, 243, 248, 0.72)),
    url('diamond-tile-light.jpg');
  background-size: auto, 220px 220px;
  background-repeat: no-repeat, repeat;
  background-position: center, center;
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-top: 1px solid rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head.narrow {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-kicker {
  display: inline-block;
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.section-kicker.light { color: #e8b498; }
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
  margin: 0 0 20px;
}
.section-title.light { color: #fff; }
.section-lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* ---------- Benefits grid ---------- */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.benefit {
  background: #fff;
  padding: 32px 28px;
}
.benefit-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.benefit h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
}
.benefit p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

/* ---------- What we buy grid (original compact card style) ---------- */
.buy-grid {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.buy-grid li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color .2s ease, transform .15s ease;
}
.buy-grid li:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.buy-grid li i { display: none; }
.buy-grid li span {
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
}
.buy-grid li em {
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
}
.buy-footnote {
  text-align: center;
  font-size: 15px;
  color: var(--muted);
  margin: 24px 0 0;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.steps li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 20px;
}
.steps h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
}
.steps p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

/* ---------- Lead form section ---------- */
/* Black diamond-plate tread pattern matching the footer, with warm orange glow */
.section-form {
  background:
    radial-gradient(700px 500px at 8% 15%, rgba(232, 101, 36, 0.28), transparent 60%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.62) 100%),
    url('diamond-tile.jpg');
  background-size: auto, auto, 220px 220px;
  background-repeat: no-repeat, no-repeat, repeat;
  background-position: top left, center, center;
  color: #fff;
  border-top: 2px solid rgba(232, 101, 36, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.form-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.form-copy .section-lede { color: #bcbcbc; }
.form-lede {
  font-size: 17px;
  line-height: 1.6;
  color: #bcbcbc;
  margin: 0 0 24px;
}
.form-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-perks li {
  font-size: 15px;
  color: #d6d6d6;
  padding-left: 26px;
  position: relative;
}
.form-perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.direct-contact {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.direct-contact p {
  margin: 6px 0;
  font-size: 14px;
  color: #bcbcbc;
}
.direct-contact a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
}
.direct-contact a:hover { border-bottom-color: var(--accent); }

/* Form */
.lead-form {
  background: #fff;
  color: var(--ink);
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.field label span[aria-hidden="true"] { color: var(--accent); margin-left: 2px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 101, 36, 0.20);
}
.field textarea { resize: vertical; min-height: 96px; font-family: inherit; }
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 6px;
}
.field.checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  cursor: pointer;
  margin: 0;
}
.field.checkbox input {
  width: auto;
  margin-top: 3px;
  accent-color: var(--accent);
}

.form-note {
  font-size: 12px;
  color: var(--muted);
  margin: 14px 0 0;
  line-height: 1.5;
  text-align: center;
}

/* Recently-sourced scrolling ticker (Parts Search page) */
.pn-ticker {
  margin: 22px auto 0;
  max-width: 780px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  display: flex;
  align-items: stretch;
  overflow: hidden;
  position: relative;
}
.pn-ticker__label {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 12px 16px;
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--accent, #e86524);
  text-transform: uppercase;
  border-right: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.45);
  z-index: 3;
}
.pn-ticker__viewport {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.pn-ticker__viewport::before,
.pn-ticker__viewport::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.pn-ticker__viewport::before {
  left: 0;
  background: linear-gradient(90deg, rgba(11,13,16,1), rgba(11,13,16,0));
}
.pn-ticker__viewport::after {
  right: 0;
  background: linear-gradient(270deg, rgba(11,13,16,1), rgba(11,13,16,0));
}
.pn-ticker__track {
  display: flex;
  gap: 32px;
  padding: 12px 0;
  animation: pnTicker 55s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.pn-ticker:hover .pn-ticker__track {
  animation-play-state: paused;
}
.pn-ticker__row {
  display: inline-flex;
  gap: 22px;
  align-items: center;
  color: rgba(255,255,255,0.78);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  padding-right: 32px;
}
.pn-ticker__row span:nth-child(even) {
  color: var(--accent, #e86524);
  opacity: 0.65;
}
@keyframes pnTicker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .pn-ticker__track { animation: none; }
}
@media (max-width: 560px) {
  .pn-ticker__label {
    padding: 10px 12px;
    font-size: 10px;
  }
  .pn-ticker__row {
    font-size: 12px;
  }
}

/* Hero part-number search bar (Parts Search page) */
.pn-search {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 680px;
  margin: 26px auto 8px;
  padding: 8px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}
.pn-search input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 12px 18px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink, #131313);
  background: transparent;
  border-radius: 999px;
  -webkit-appearance: none;
  appearance: none;
}
.pn-search input[type="search"]::placeholder {
  color: #7a7a7a;
}
.pn-search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.pn-search .btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  white-space: nowrap;
}
.pn-search-note {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.72);
}
@media (max-width: 560px) {
  .pn-search {
    flex-direction: column;
    border-radius: 18px;
    padding: 10px;
  }
  .pn-search input[type="search"] {
    padding: 12px 14px;
  }
  .pn-search .btn {
    justify-content: center;
    width: 100%;
  }
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* File input + inline hints */
.field-hint {
  font-weight: 400;
  color: var(--muted-2);
  font-size: 12px;
  margin-left: 6px;
}
.field-note {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 0;
  line-height: 1.45;
}
.field-note.warn {
  color: #b03a12;
}
.field input[type="file"] {
  display: block;
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  cursor: pointer;
}
.field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease;
}
.field input[type="file"]::file-selector-button:hover {
  background: var(--accent-hover);
}
.field input[type="file"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.form-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 14px;
}
.form-status.success {
  background: #e8f7ee;
  color: #08602f;
  border: 1px solid #b7e4c7;
}
.form-status.error {
  background: #fdecec;
  color: #911a1a;
  border: 1px solid #f5c2c2;
}
button[disabled] { opacity: 0.65; cursor: not-allowed; }

/* ---------- FAQ ---------- */
.faq {
  max-width: 780px;
  margin: 0 auto;
}
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  color: var(--accent);
  transition: transform .2s ease;
  line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  padding: 0 22px 20px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Footer ---------- */
/* Two-band footer: light content strip (logo + contact) matching the top-of-site
   header, then a dark diamond-plate copyright band as the closer. */
.site-footer {
  position: relative;
  /* Match header: light seamless diamond-plate tread beneath a near-white tint */
  background:
    linear-gradient(180deg, rgba(245, 246, 250, 0.92), rgba(245, 246, 250, 0.90)),
    url('diamond-tile-light.jpg');
  background-size: auto, 220px 220px;
  background-repeat: no-repeat, repeat;
  background-position: center, center;
  color: var(--muted);
  padding: 56px 0 0;
  border-top: 1px solid var(--line);
}
.site-footer .brand { color: var(--ink); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 40px;
}
.footer-tag {
  font-size: 14px;
  color: var(--muted);
  margin: 14px 0 0;
  max-width: 360px;
}
.footer-contact p { margin: 6px 0; font-size: 14px; color: var(--ink); }
.footer-contact a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}
.footer-contact a:hover { border-bottom-color: var(--accent); color: var(--accent); }

/* Dark closer band at the very bottom — copyright over diamond-plate */
.footer-legal {
  padding: 22px 24px;
  font-size: 12px;
  color: #b5b8bd;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.62) 100%),
    url('diamond-tile.jpg');
  background-size: auto, 220px 220px;
  background-repeat: no-repeat, repeat;
  background-position: center, center;
  border-top: 2px solid rgba(232, 101, 36, 0.35);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .form-shell { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero-trust { gap: 20px; }
  .hero-ctas .btn { width: 100%; }
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Warehouse background (Why sellers work with us) ---------- */
/* Full-section warehouse photograph as an atmospheric backdrop.
   Heavy dark gradient scrim: nearly opaque behind the card grid so the
   6 benefit cards read cleanly, semi-transparent at the top where the
   heading sits so the warehouse imagery is clearly visible. */
#how-it-works {
  background:
    linear-gradient(
      180deg,
      rgba(10, 10, 10, 0.28) 0%,
      rgba(10, 10, 10, 0.45) 45%,
      rgba(10, 10, 10, 0.65) 75%,
      rgba(10, 10, 10, 0.75) 100%
    ),
    url('warehouse-bg.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed, fixed;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
}

/* Heading zone reads on the warehouse imagery */
#how-it-works .section-kicker {
  color: #ffcd1e; /* safety yellow — matches hazard-stripe + hero accent */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
#how-it-works .section-title {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}
#how-it-works .section-lede {
  color: #e8eaef;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85), 0 1px 2px rgba(0, 0, 0, 0.9);
}

/* Benefit cards on the dark plane — subtle translucent panels */
#how-it-works .benefit {
  background: rgba(20, 20, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  border-radius: 4px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 20px 40px -20px rgba(0, 0, 0, 0.6);
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}
#how-it-works .benefit:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 101, 36, 0.4);
  background: rgba(28, 28, 30, 0.78);
}
#how-it-works .benefit-num { color: #ff8f52; }
#how-it-works .benefit h3 { color: #ffffff; }
#how-it-works .benefit p { color: #b8bcc4; }

/* Reduce fixed-attachment complexity on smaller devices (iOS/Safari doesn't
   support fixed backgrounds well and can cause jank). */
@media (max-width: 900px) {
  #how-it-works {
    background-attachment: scroll, scroll;
  }
}

/* ---------- Animated circuit board background (What we buy section) ----------
   The section-alt light-tread styling is overridden here with a dark PCB green
   base, then an animated SVG circuit board is layered on top at reduced opacity.
   A radial vignette darkens the edges so the section blends into surrounding
   light sections cleanly. Content sits above the PCB via z-index. */
#what-we-buy {
  position: relative;
  background:
    /* Same treatment as #how-it-works: warehouse image with a darkening gradient */
    linear-gradient(
      180deg,
      rgba(10, 10, 10, 0.28) 0%,
      rgba(10, 10, 10, 0.45) 45%,
      rgba(10, 10, 10, 0.65) 75%,
      rgba(10, 10, 10, 0.75) 100%
    ),
    url('warehouse-bg.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed, fixed;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
  overflow: hidden;
  isolation: isolate;
}

/* PCB showcase block — sits above the category grid so every callout is
   fully visible. Object-contain preserves the aspect ratio and never crops. */
#what-we-buy .pcb-showcase {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 3rem auto 0;
  padding: 1rem 1.5rem 2rem;
  z-index: 1;
}
#what-we-buy .pcb-showcase img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45));
}

/* Container above the scrim */
#what-we-buy > .container {
  position: relative;
  z-index: 3;
}

/* Recolor the section content for the dark PCB backdrop */
#what-we-buy .section-kicker {
  color: #ffcd1e;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}
#what-we-buy .section-title {
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}
#what-we-buy .section-lede {
  color: #d8dae0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Force 4-column layout on desktop so the 8 buy items form a clean 4x2 */
#what-we-buy .buy-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  #what-we-buy .buy-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  #what-we-buy .buy-grid { grid-template-columns: 1fr; }
}

/* Why sellers grid: same compact card style, 3-column on desktop for a clean 3x2 */
.why-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .why-grid { grid-template-columns: 1fr; }
}
/* Slightly roomier text since the Why cards carry longer descriptions */
.why-grid li { padding: 22px 24px; gap: 6px; }
.why-grid li span { font-size: 16px; }
.why-grid li em { font-size: 14px; line-height: 1.5; }

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  /* SVG overlay has its own reduced-motion handling; nothing extra needed here */
}

/* ============================================================
   WHAT WE BUY — rebuilt as responsive HTML
   Workbench mat as backdrop; real category grid + BOM table
   ============================================================ */
#what-we-buy {
  position: relative;
  overflow: hidden;
  /* Solid warm wood-tone backdrop so the white pill cards read cleanly. The
     labeled workbench photo now lives in its own full-width .workbench-band
     directly below this section, so scrolling reveals it unobstructed. */
  background: #2a1e14;
  padding-top: clamp(80px, 10vh, 140px) !important;
  padding-bottom: clamp(80px, 10vh, 140px) !important;
}

/* Full-width workbench reference band — lives between #what-we-buy and
   #how-it-works. Displays the labeled PCB + component pill photo at 100%
   viewport width so users see the entire scene during scroll. */
.workbench-band {
  display: block;
  position: relative;
  width: 100%;
  background: #2a1e14;
  overflow: hidden;
  line-height: 0;
}
.workbench-band__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

/* Whipped cream + cinnamon sprinkles sitting on top of the coffee.
   Positioned to cover the coffee surface inside the mug. Mug interior center
   is roughly x=90%, y=29% of the image. Coffee opening reads ~5.5% of the
   image width across. Cream sits just slightly larger for a natural overflow.
   Very subtle drop-shadow makes the cream feel like it's resting on liquid. */
.workbench-band__cream {
  position: absolute;
  left: 90%;
  top: 29%;
  width: 6.6%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.35));
}

/* Lit-up Fluke 117 multimeter LCD overlay.
   The full LCD glass panel (including FLUKE label at top and lit digits) sits at:
     x = 2.54% -> 14.13% of workbench image (width 11.59%)
     y = 24.90% -> 35.84% of workbench image (height 10.94%)
     Center: 8.33%, 30.37%
   The overlay image is stretched to fill that box (aspects don't match — the
   real LCD in the photo is squarer than a standard Fluke display, so the
   overlay stretches vertically to match). */
.workbench-band__fluke {
  position: absolute;
  left: 8.33%;
  top: 30.37%;
  width: 11.59%;
  height: 10.94%;
  object-fit: fill;
  max-width: none;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  /* Subtle glow around the lit LCD sells the "backlight on" look */
  filter: drop-shadow(0 0 3px rgba(180, 210, 60, 0.25));
}

/* Fluke LCD power-on effect.
   The Fluke LCD image (.workbench-band__fluke) is the "on" state, showing
   4.86 V DC on a lit greenish-yellow backlight. When the section is out of
   view (or before the power-on delay), a dark overlay (.workbench-band__fluke-off)
   sits on top of the LCD, making it look like an unpowered display.

   JS toggles the parent's [data-fluke-power] attribute from "off" to "on"
   ~2 seconds after the workbench scrolls into view. When it flips to "on",
   the dark overlay fades out with a short delay to sell the "backlight
   turning on" moment. */
.workbench-band__fluke-off {
  position: absolute;
  /* Overlay sits precisely on top of the Fluke LCD image, matching its
     size and position exactly. */
  left: 8.33%;
  top: 30.37%;
  width: 11.59%;
  height: 10.94%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
  /* Dark, unpowered LCD look — a very dark greenish-gray with a subtle
     vertical gradient to hint at the polarizer. */
  background: linear-gradient(
    180deg,
    rgb(28 34 24) 0%,
    rgb(20 26 18) 55%,
    rgb(14 20 14) 100%
  );
  /* Subtle inner darkening at the edges to blend into the bezel */
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.6);
  opacity: 1;
  transition: opacity 0.6s ease-out;
}

/* When JS marks the workbench as powered on, fade the dark overlay away
   with a single smooth ramp — no flicker, just a quiet backlight warm-up. */
.workbench-band[data-fluke-power="on"] .workbench-band__fluke-off {
  opacity: 0;
  animation: fluke-power-on 0.9s ease-out;
}

@keyframes fluke-power-on {
  /* Smooth monotonic fade from off to on. */
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* Legacy fluctuation styles kept below — unused now (no matching DOM). */
.workbench-band__fluke-last-digit {
  position: absolute;
  left: 9.407%;
  top: 30.574%;
  /* Slightly larger patch to fully cover the underlying '6' */
  width: 2.62%;
  height: 5.20%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
  /* Background = actual LCD backlight texture sampled from the base image.
     This blends the patch invisibly into the surrounding LCD. */
  background-image: url('lcd-tile-v2.webp');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  /* No mask — the LCD-tile background matches the surrounding LCD closely
     enough that a hard edge is invisible. */
}

/* Add a very soft blur to the patch's outer 3-4px so the edge blends with
   the surrounding LCD noise texture (uses a pseudo-element to avoid blurring
   the SVG digit itself). */
.workbench-band__fluke-last-digit::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: inherit;
  background-image: url('lcd-tile-v2.webp');
  background-size: cover;
  background-position: center;
  filter: blur(3px);
  z-index: -1;
  border-radius: 2px;
  opacity: 0.6;
}

.fluke-digit-anim {
  width: 90%;
  height: 92%;
  display: block;
}
.fluke-digit-anim .seg {
  fill: #0e1108;
  /* Each segment animates independently. The animation cycles through
     digits 5, 6, 7, 8, 7, 6 by toggling opacity on segments per keyframe. */
  animation-duration: 2.4s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
/* 7-segment reference:
   digit  a b c d e f g
     5    1 0 1 1 0 1 1
     6    1 0 1 1 1 1 1
     7    1 1 1 0 0 0 0
     8    1 1 1 1 1 1 1

   Sequence over 2.4s (6 steps of 0.4s):
     0.00s -> 5
     0.40s -> 6
     0.80s -> 7
     1.20s -> 8
     1.60s -> 7
     2.00s -> 6
     2.40s -> loops back to 5

   For each segment I write a @keyframes with a value of 1 when that segment
   is lit in the frame and 0 when it is off. */
@keyframes flukeSegA { /* on in 5,6,7,8,7,6 -> all frames */
   0%, 100% { opacity: 1; }
}
@keyframes flukeSegB { /* on in 7,8,7 -> frames 3,4,5 (0.8-1.6s) */
   0%, 33.32% { opacity: 0; }
   33.33%, 66.65% { opacity: 1; }
   66.66%, 100% { opacity: 0; }
}
@keyframes flukeSegC { /* on in all: 5,6,7,8,7,6 */
   0%, 100% { opacity: 1; }
}
@keyframes flukeSegD { /* on in 5,6,8,6 -> frames 1,2,4,6 (off in 3,5) */
   0%, 33.32% { opacity: 1; }
   33.33%, 49.99% { opacity: 0; }
   50%, 66.65% { opacity: 1; }
   66.66%, 83.32% { opacity: 0; }
   83.33%, 100% { opacity: 1; }
}
@keyframes flukeSegE { /* on in 6,8,6 -> frames 2,4,6 (off in 1,3,5) */
   0%, 16.65% { opacity: 0; }
   16.66%, 33.32% { opacity: 1; }
   33.33%, 49.99% { opacity: 0; }
   50%, 66.65% { opacity: 1; }
   66.66%, 83.32% { opacity: 0; }
   83.33%, 100% { opacity: 1; }
}
@keyframes flukeSegF { /* on in 5,6,8,6 -> frames 1,2,4,6 (off in 3,5) */
   0%, 33.32% { opacity: 1; }
   33.33%, 49.99% { opacity: 0; }
   50%, 66.65% { opacity: 1; }
   66.66%, 83.32% { opacity: 0; }
   83.33%, 100% { opacity: 1; }
}
@keyframes flukeSegG { /* on in 5,6,8,6 -> frames 1,2,4,6 (off in 3,5) */
   0%, 33.32% { opacity: 1; }
   33.33%, 49.99% { opacity: 0; }
   50%, 66.65% { opacity: 1; }
   66.66%, 83.32% { opacity: 0; }
   83.33%, 100% { opacity: 1; }
}
.fluke-digit-anim .seg-a { animation-name: flukeSegA; }
.fluke-digit-anim .seg-b { animation-name: flukeSegB; }
.fluke-digit-anim .seg-c { animation-name: flukeSegC; }
.fluke-digit-anim .seg-d { animation-name: flukeSegD; }
.fluke-digit-anim .seg-e { animation-name: flukeSegE; }
.fluke-digit-anim .seg-f { animation-name: flukeSegF; }
.fluke-digit-anim .seg-g { animation-name: flukeSegG; }

/* Animated steam rising from the coffee mug.
   Mug top rim sits near x=89%, y=25% of the image — so we position the steam
   origin there and animate three wisps drifting up and fading out. */
.workbench-band__steam {
  position: absolute;
  /* Anchor to the actual coffee surface inside the mug. Mug interior is
     roughly x=90%, y=29% of the v7 image. The cream mound sits slightly
     upper-left inside the mug now, so nudge the steam origin to match. */
  left: 89.4%;
  top: 28.2%;
  width: 9vw;
  max-width: 150px;
  min-width: 80px;
  height: 26vw;
  max-height: 420px;
  min-height: 210px;
  transform: translate(-50%, -100%);
  pointer-events: none;
  filter: blur(3px);
  opacity: 1;
  z-index: 2;
  /* Screen blending makes white wisps pop against the darker coffee and
     coaster below without a hard-edged look. */
  mix-blend-mode: screen;
}
.steam-wisp {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,1) 0%, rgba(255,255,255,0.9) 40%, rgba(255,255,255,0.35) 70%, rgba(255,255,255,0) 85%);
  transform: translate(-50%, 0) scale(1);
  opacity: 0;
  animation: steam-rise 5s ease-out infinite;
}
.steam-wisp--1 { animation-delay: 0.0s; left: 44%; animation-duration: 4.6s; }
.steam-wisp--2 { animation-delay: 0.6s; left: 52%; animation-duration: 5.2s; }
.steam-wisp--3 { animation-delay: 1.2s; left: 48%; animation-duration: 4.8s; }
.steam-wisp--4 { animation-delay: 1.8s; left: 56%; animation-duration: 5.4s; }
.steam-wisp--5 { animation-delay: 2.4s; left: 42%; animation-duration: 4.7s; }
.steam-wisp--6 { animation-delay: 3.0s; left: 50%; animation-duration: 5.1s; }
.steam-wisp--7 { animation-delay: 3.6s; left: 54%; animation-duration: 4.9s; }
.steam-wisp--8 { animation-delay: 4.2s; left: 46%; animation-duration: 5.3s; }

@keyframes steam-rise {
  0%   { transform: translate(-50%, 0)     scale(0.5); opacity: 0; }
  10%  { transform: translate(-50%, -8%)   scale(0.9); opacity: 1; }
  35%  { transform: translate(-46%, -42%)  scale(1.6); opacity: 0.9; }
  70%  { transform: translate(-56%, -78%)  scale(2.4); opacity: 0.55; }
  100% { transform: translate(-62%, -115%) scale(3.2); opacity: 0; }
}

@media (max-width: 900px) {
  .steam-wisp { width: 20px; height: 20px; }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .steam-wisp { animation: none; opacity: 0; }
}
#what-we-buy > .container {
  position: relative;
  z-index: 1;
}

/* Section head reads on the dark workbench backdrop */
#what-we-buy .section-kicker {
  color: #ffcd1e;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}
#what-we-buy .section-title {
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

/* Category grid: 4 across desktop, 2 across tablet, 1 across phone */
#what-we-buy .buy-grid {
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 14px;
  max-width: 1400px;
  margin: 0 auto;
}
/* Let the whole What we buy section stretch wider than the site-wide 1160px
   container so the workbench backdrop has more horizontal room and the PCB
   renders larger under background-size: contain. */
#what-we-buy > .container {
  max-width: 1400px;
}
/* Match the "Why sellers work with us" pills exactly — white cards with
   dark text, sitting on the dark workbench backdrop. */
#what-we-buy .buy-grid li {
  background: #ffffff;
  border: 1px solid var(--line);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 22px 24px;
  gap: 6px;
}
#what-we-buy .buy-grid li:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
#what-we-buy .buy-grid li span {
  color: var(--ink);
  font-size: 16px;
}
#what-we-buy .buy-grid li em {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
@media (max-width: 900px) {
  #what-we-buy .buy-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 520px) {
  #what-we-buy .buy-grid { grid-template-columns: 1fr !important; }
}

/* Sample Bill of Materials card — real HTML table, scrolls horizontally on
   small screens instead of shrinking text into unreadability. */
.bom-card {
  margin: 40px auto 0;
  max-width: 1180px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.bom-card__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  background: linear-gradient(180deg, #217346 0%, #1a5c37 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}
.bom-card__filename {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  letter-spacing: 0.01em;
}
.bom-card__hint {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
}
@media (max-width: 520px) {
  .bom-card__hint { display: none; }
}
.bom-card__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.bom-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  color: #1f2937;
  background: #ffffff;
}
.bom-table thead th {
  text-align: left;
  padding: 10px 14px;
  background: #eef2f6;
  color: #33404f;
  font-weight: 700;
  font-size: 13px;
  border-bottom: 1px solid #d0d7de;
  white-space: nowrap;
}
.bom-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid #edf0f4;
  vertical-align: middle;
}
.bom-table tbody tr:nth-child(even) td {
  background: #f7f9fc;
}
.bom-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.bom-table th.bom-col-item,
.bom-table td:first-child {
  width: 48px;
  color: #6b7280;
  text-align: center;
}
@media (max-width: 520px) {
  .bom-table { font-size: 13px; }
  .bom-table thead th,
  .bom-table tbody td { padding: 8px 10px; }
}

/* =============================================================
   PCB LED OVERLAY - randomly blinking LEDs on the workbench photo
   Positions expressed as % of the .workbench-band__img so they
   scale with the responsive image. Each LED has its own duration,
   delay, and color set via inline custom properties, so the
   blink pattern feels genuinely asynchronous.
   ============================================================= */
.workbench-band { position: relative; }
.workbench-band__leds {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5; /* above the base image, below whipped-cream/fluke overlays if any */
}
.led {
  position: absolute;
  left: var(--lx);
  top: var(--ly);
  width: var(--lsz);
  height: var(--lsz);
  margin-left: calc(var(--lsz) / -2);
  margin-top: calc(var(--lsz) / -2);
  border-radius: 50%;
  background: var(--lc);
  /* The glow: an outer soft halo + brighter inner core */
  box-shadow:
    0 0 6px 1px var(--lc),
    0 0 14px 3px color-mix(in srgb, var(--lc) 55%, transparent),
    0 0 26px 6px color-mix(in srgb, var(--lc) 25%, transparent);
  will-change: opacity, transform, box-shadow;
  animation: led-blink var(--ldur) var(--ldelay) infinite;
  /* Slight desaturation so it blends against the daylight photo */
  mix-blend-mode: screen;
}
@keyframes led-blink {
  /* Irregular keyframe distribution so no two LEDs march in sync
     even when durations happen to align */
  0%   { opacity: 1;    transform: scale(1); }
  22%  { opacity: 0.15; transform: scale(0.85); }
  37%  { opacity: 1;    transform: scale(1.06); }
  49%  { opacity: 0.9;  transform: scale(1); }
  63%  { opacity: 0.1;  transform: scale(0.8); }
  78%  { opacity: 1;    transform: scale(1.05); }
  91%  { opacity: 0.35; transform: scale(0.95); }
  100% { opacity: 1;    transform: scale(1); }
}
/* Large green L1 stays "power on" - shorter dark dips, mostly lit */
.led.led--green-big {
  animation-name: led-power-on;
}
@keyframes led-power-on {
  0%,100% { opacity: 1;   transform: scale(1); }
  47%     { opacity: 1;   transform: scale(1.03); }
  50%     { opacity: 0.55; transform: scale(0.95); }
  53%     { opacity: 1;   transform: scale(1); }
}
/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .led { animation: none; opacity: 1; }
}

/* Steady (non-blinking) LED variant - overrides animation entirely */
.led.led--steady {
  animation: none;
  opacity: 1;
}

/* USB-C power cable plugged into the PCB's left-side connector.
   The cable image is 1532x1024 with the plug tip at (93.34%, 44.63%) of that image.
   PCB USB-C port center in workbench-band image: (36.85%, 31.25%).
   With cable overlay width = 45% of container, the tip lands at:
     left_of_overlay = 36.85% - 93.34% * 45% = -5.15% (extends off-screen left)
     top_of_overlay  = 31.25% - 44.63% * (45% * 1.5 / 1.4961) = 31.25% - 20.13% = 11.12%
   Small filter to match warm workbench lighting; subtle drop-shadow for realism. */
.workbench-band__usb {
  position: absolute;
  left: -5.86%;
  top: 11.30%;
  width: 45%;
  height: auto;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,0.55)) brightness(0.95) saturate(1.1);
  /* Clip the cable so its left end disappears behind the soldering iron / solder spool area,
     avoiding overlap with the Fluke multimeter LCD. Fade the left edge for a natural blend. */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 58%, rgba(0,0,0,0.4) 62%, black 68%, black 100%);
          mask-image: linear-gradient(to right, transparent 0%, transparent 58%, rgba(0,0,0,0.4) 62%, black 68%, black 100%);
}

/* ---------- How it works: photographic background (v121) ---------- */
.section-how {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.section-how .container {
  position: relative;
  z-index: 1;
}
.section-how__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #0f1723;
  background-image:
    /* Vignette focused where the heading sits — keeps the title readable over the bright monitor */
    radial-gradient(1100px 380px at 50% 22%, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.48) 45%, rgba(0, 0, 0, 0.28) 75%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(180deg, rgba(15, 23, 35, 0.45) 0%, rgba(15, 23, 35, 0.25) 55%, rgba(15, 23, 35, 0.4) 100%),
    url('how-it-works-bg-v19.jpg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}
/* Make the heading readable over the photo */
.section-how .section-kicker {
  color: #ffd7a8;
}
.section-how .section-title {
  color: #ffffff;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.85),
    0 4px 22px rgba(0, 0, 0, 0.7),
    0 1px 2px rgba(0, 0, 0, 0.95);
}
/* Lift the cards off the photo and warm them slightly */
.section-how .steps li {
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.55), 0 6px 14px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(2px);
}

/* Seller's guide (SEO educational block) */
.guide-content {
  max-width: 780px;
  margin: 0 auto;
  color: #2a2a2a;
  font-size: 17px;
  line-height: 1.7;
}
.guide-content h3 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.25;
  margin: 40px 0 12px;
  color: #131313;
}
.guide-content h3:first-child { margin-top: 0; }
.guide-content p {
  margin: 0 0 18px;
}
.guide-content .guide-cta {
  margin-top: 32px;
  text-align: center;
}
@media (max-width: 640px) {
  .guide-content { font-size: 16px; }
  .guide-content h3 { font-size: 21px; margin-top: 32px; }
}

/* Parts Search hero: doubled gap between ticker and H1, and eyebrow moved below H1 */
.hero-title-spacer { height: 56px; }
@media (max-width: 640px) { .hero-title-spacer { height: 32px; } }
.eyebrow--under-title { margin: 0 0 24px; }

/* ============ PARTS SEARCH — HEADER + STRIP + CENTERED HERO ============ */

/* Header on Parts Search: nav-left · logo · search-center · phone-right */
.header-inner--ps {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 20px;
  height: 72px;
}
.header-inner--ps .site-nav--left {
  display: flex;
  align-items: center;
  gap: 22px;
}
.header-inner--ps .site-nav--left a {
  font-size: 14px;
  color: var(--ink-muted, #4a5468);
  text-decoration: none;
  font-weight: 500;
}
.header-inner--ps .site-nav--left a[aria-current="page"] { color: var(--ink); }
.header-inner--ps .site-nav--left a:hover { color: var(--ink); }
.header-inner--ps .brand--center {
  display: inline-flex;
  align-items: center;
  justify-self: start;
}

/* Search box compact when in header */
.pn-search--header {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 640px;
  margin: 0;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(8,14,24,0.06);
  overflow: hidden;
  height: 44px;
}
.pn-search--header input[type="search"] {
  flex: 1;
  padding: 0 18px;
  font-size: 15px;
  border: none;
  outline: none;
  background: transparent;
  min-width: 0;
}
.pn-search--header input[type="search"]::placeholder {
  color: #7c8595;
}
.pn-search--header .btn {
  border-radius: 0;
  padding: 0 20px;
  font-size: 14px;
  white-space: nowrap;
  gap: 8px;
}

/* Full-width ticker strip, tucked directly beneath header */
.pn-ticker--strip {
  margin: 0;
  max-width: none;
  border-left: 0;
  border-right: 0;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  border-radius: 0;
  background: #0f1729;
  color: #dbe1ed;
  height: 44px;
}
.pn-ticker--strip .pn-ticker__label {
  padding: 0 20px;
  height: 100%;
  background: rgba(232,101,36,0.14);
  color: var(--accent, #e86524);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.pn-ticker--strip .pn-ticker__viewport {
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.pn-ticker--strip .pn-ticker__row {
  color: #cfd6e2;
  font-size: 12.5px;
  letter-spacing: 0.08em;
}
.pn-ticker--strip .pn-ticker__row span:nth-child(2n) { color: rgba(255,255,255,0.28); }

/* Centered hero content */
.hero--centered .hero-inner--centered {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.hero--centered .hero-title { text-align: center; }
.hero--centered .hero-sub { text-align: center; margin-left: auto; margin-right: auto; max-width: 640px; }
.hero--centered .hero-ctas { justify-content: center; }
.hero--centered .hero-trust {
  justify-content: center;
  list-style: none;
  padding: 0;
  display: flex;
  gap: 28px;
}
.hero--centered .eyebrow--under-title {
  display: inline-flex;
  margin: 4px auto 20px;
}

/* Darken hero background to bring circuit imagery forward like the reference */
.hero--centered {
  background: linear-gradient(180deg, rgba(6, 12, 22, 0.72) 0%, rgba(6, 12, 22, 0.58) 60%, rgba(6, 12, 22, 0.45) 100%);
}

/* Responsive: on narrow, stack search below header row */
@media (max-width: 1100px) {
  .header-inner--ps {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "nav brand phone" "search search search";
    row-gap: 10px;
    height: auto;
    padding: 10px 0;
  }
  .header-inner--ps .site-nav--left { grid-area: nav; }
  .header-inner--ps .brand--center { grid-area: brand; justify-self: center; }
  .header-inner--ps .header-phone { grid-area: phone; }
  .header-inner--ps .pn-search--header { grid-area: search; max-width: 100%; }
}
@media (max-width: 640px) {
  .header-inner--ps .site-nav--left { gap: 14px; }
  .header-inner--ps .site-nav--left a { font-size: 13px; }
  .pn-ticker--strip .pn-ticker__label { font-size: 10px; padding: 0 12px; letter-spacing: 0.14em; }
}

/* ============ PARTS SEARCH — reference-style refinements ============ */

/* Header: give search bar more room, tighter overall */
.header-inner--ps {
  gap: 24px;
}
.header-inner--ps .site-nav--left {
  gap: 20px;
}
.header-inner--ps .site-nav--left a { font-size: 14px; }
.header-inner--ps .brand-logo { height: 40px; }

/* Search: broader, taller, button becomes its own pill */
.pn-search--header {
  max-width: 480px;
  height: 48px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 1px 3px rgba(8,14,24,0.04);
  padding: 4px 4px 4px 4px;
  overflow: visible;
}
.pn-search--header input[type="search"] {
  padding: 0 6px 0 18px;
  font-size: 14px;
}
.pn-search--header .btn {
  border-radius: 999px;
  padding: 0 22px;
  height: 40px;
  align-self: center;
  font-size: 14px;
  font-weight: 600;
}

/* Phone link compact */
.header-inner--ps .header-phone {
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  gap: 6px;
}
.header-inner--ps .header-phone-number { font-weight: 600; }

/* Ticker strip: warmer tone, thinner separators, brighter part numbers */
.pn-ticker--strip {
  background: #1a1410;
  height: 40px;
}
.pn-ticker--strip .pn-ticker__label {
  background: transparent;
  color: var(--accent, #e86524);
  border-right: 0;
  font-weight: 700;
  font-size: 10.5px;
  padding: 0 18px;
}
.pn-ticker--strip .pn-ticker__row {
  color: #e5e7eb;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
}
.pn-ticker--strip .pn-ticker__row span:nth-child(2n) { color: rgba(255,255,255,0.28); }

/* Hero: less vertical padding, tighter title */
.hero--centered {
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
}
.hero--centered .hero-title {
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1.08;
  margin-bottom: 16px;
  letter-spacing: -0.015em;
}
.hero--centered .accent-text {
  font-style: italic;
  font-weight: 500;
}
.hero--centered .eyebrow--under-title {
  margin: 4px auto 22px;
  padding: 6px 14px;
  font-size: 13px;
}
.hero--centered .hero-sub {
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 28px;
}
.hero--centered .hero-ctas .btn {
  padding: 12px 22px;
  font-size: 15px;
}
.hero--centered .hero-trust {
  margin-top: 28px;
  gap: 26px;
  font-size: 14px;
}

/* Slightly reduce dark scrim so PCB imagery reads through more clearly */
.hero--centered {
  background: linear-gradient(180deg, rgba(6, 10, 18, 0.62) 0%, rgba(6, 10, 18, 0.50) 60%, rgba(6, 10, 18, 0.40) 100%);
}

/* ============ PARTS SEARCH — pin nav left, phone right, search fills middle ============ */
.header-inner--ps {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 0;
}
.header-inner--ps .site-nav--left {
  justify-self: start;
  gap: 22px;
}
.header-inner--ps .brand--center {
  justify-self: start;
  margin: 0 8px;
}
.header-inner--ps .pn-search--header {
  justify-self: stretch;
  max-width: none;   /* let it fill the middle track */
  width: 100%;
}
.header-inner--ps .header-phone {
  justify-self: end;
}

/* Ensure the input can shrink so button stays visible on tight widths */
.pn-search--header input[type="search"] { min-width: 0; }

/* Give the search box more room: shrink gaps + logo/phone footprint */
.header-inner--ps {
  gap: 12px;
}
.header-inner--ps .site-nav--left { gap: 16px; }
.header-inner--ps .brand--center { margin: 0 4px; }
.header-inner--ps .brand-logo { height: 34px; }

/* Compact phone pill so more space is freed for the search bar */
.header-inner--ps .header-phone {
  padding: 6px 12px;
  font-size: 13px;
  gap: 5px;
}
.header-inner--ps .header-phone svg { width: 14px; height: 14px; }

/* Aggressively free space so the search bar can extend further */
.header-inner--ps { gap: 8px; padding-left: 4px; padding-right: 4px; }
.header-inner--ps .site-nav--left { gap: 12px; }
.header-inner--ps .site-nav--left a { font-size: 13px; }
.header-inner--ps .brand--center { margin: 0; }
.header-inner--ps .brand-logo { height: 30px; }
.header-inner--ps .header-phone { padding: 5px 10px; font-size: 12.5px; gap: 4px; }
.header-inner--ps .header-phone-label { display: none; }  /* drop "Call Now!" — keep number + icon */

/* ============ PARTS SEARCH — in-hero ticker + big hero search ============ */

/* Ticker inside hero (bounded to hero width, sits above search box) */
.pn-ticker--in-hero {
  margin: 0 auto 20px;
  max-width: 780px;
  height: 44px;
  border-radius: 10px;
  background: #1a1410;
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  overflow: hidden;
}
.pn-ticker--in-hero .pn-ticker__label {
  padding: 0 18px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  color: var(--accent, #e86524);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-right: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.pn-ticker--in-hero .pn-ticker__viewport {
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  flex: 1;
}
.pn-ticker--in-hero .pn-ticker__row {
  color: #e5e7eb;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.pn-ticker--in-hero .pn-ticker__row span:nth-child(2n) { color: rgba(255,255,255,0.28); }

/* Big centered hero search box, right below the ticker */
.pn-search--hero {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 780px;
  margin: 0 auto 32px;
  height: 56px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 6px 20px rgba(8,14,24,0.18);
  padding: 5px;
  overflow: visible;
}
.pn-search--hero input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 0 18px;
  font-size: 15px;
  border: none;
  outline: none;
  background: transparent;
}
.pn-search--hero input[type="search"]::placeholder { color: #7c8595; }
.pn-search--hero .btn {
  border-radius: 999px;
  padding: 0 24px;
  height: 46px;
  align-self: center;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  gap: 8px;
}

/* ============ PARTS SEARCH — result card + RFQ form ============ */

.ps-result { width: 100%; max-width: 780px; margin: 0 auto 32px; }
.ps-result__card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 22px 26px;
  color: #f5f5f5;
  backdrop-filter: blur(6px);
  text-align: left;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.ps-result__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 6px;
}
.ps-result__pn {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 20px; font-weight: 700; letter-spacing: 0.02em;
  color: #fff;
}
.ps-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  white-space: nowrap;
}
.ps-pill--available {
  background: rgba(46, 160, 67, 0.18);
  color: #4ade80;
  border: 1px solid rgba(46, 160, 67, 0.4);
}
.ps-result__meta {
  color: rgba(245,245,245,0.7);
  font-size: 13px;
  margin-bottom: 16px;
}
.ps-result__facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; padding: 14px 0; margin-bottom: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ps-result__facts > div { display: flex; flex-direction: column; gap: 2px; }
.ps-fact-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(245,245,245,0.5);
}
.ps-fact-value { font-size: 14px; color: #fff; font-weight: 500; }
.ps-result__cta {
  width: 100%;
  height: 48px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
}
@media (max-width: 560px) {
  .ps-result__facts { grid-template-columns: 1fr; gap: 8px; }
}

/* RFQ form */
.ps-rfq { width: 100%; max-width: 780px; margin: 0 auto 32px; text-align: left; }
.ps-rfq__form,
.ps-rfq__thanks {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 26px 28px;
  color: #f5f5f5;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.ps-rfq__head { margin-bottom: 18px; }
.ps-rfq__title {
  margin: 0 0 4px; font-size: 22px; font-weight: 700; color: #fff;
  font-family: inherit;
}
.ps-rfq__lede { margin: 0; color: rgba(245,245,245,0.72); font-size: 14px; }
.ps-rfq__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-bottom: 20px;
}
.ps-field { display: flex; flex-direction: column; gap: 6px; }
.ps-field--wide { grid-column: 1 / -1; }
.ps-field__label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  color: rgba(245,245,245,0.85);
}
.ps-field__opt { color: rgba(245,245,245,0.45); font-weight: 400; }
.ps-field__req { color: #f59e0b; }
.ps-field input,
.ps-field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.28);
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.ps-field input:focus,
.ps-field textarea:focus {
  border-color: var(--accent, #e86524);
  background: rgba(0,0,0,0.4);
}
.ps-field input::placeholder,
.ps-field textarea::placeholder { color: rgba(245,245,245,0.35); }
.ps-field input[readonly] {
  background: rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.75);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.ps-field textarea { resize: vertical; min-height: 76px; }
.ps-rfq__actions {
  display: flex; gap: 10px; align-items: center;
}
.ps-rfq__actions .btn { flex: 0 0 auto; }
.ps-rfq__fine {
  margin-top: 14px; font-size: 11.5px; color: rgba(245,245,245,0.45); line-height: 1.5;
}
.ps-rfq__thanks { text-align: center; padding: 40px 28px; }
.ps-rfq__thanks-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(46,160,67,0.18); color: #4ade80;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 14px;
  border: 1px solid rgba(46,160,67,0.4);
}
.ps-rfq__thanks h2 { margin: 0 0 8px; font-size: 22px; color: #fff; }
.ps-rfq__thanks p { margin: 0; color: rgba(245,245,245,0.72); font-size: 14px; }
.ps-rfq__thanks a { color: var(--accent, #e86524); text-decoration: none; font-weight: 600; }

@media (max-width: 640px) {
  .ps-rfq__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   MANUFACTURER TICKER — full-width scrolling band
   Sits above the "What we source" section. Edge-to-edge, breaks
   out of any container. Text-based to avoid trademark issues.
   ========================================================= */
.mfg-ticker {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f6f7f9 100%);
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 18px 0;
}
/* fade the edges so items slide in/out cleanly */
.mfg-ticker::before,
.mfg-ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.mfg-ticker::before {
  left: 0;
  background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}
.mfg-ticker::after {
  right: 0;
  background: linear-gradient(270deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}
.mfg-ticker__track {
  display: flex;
  width: max-content;
  animation: mfg-scroll 60s linear infinite;
}
.mfg-ticker__group {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
  flex-shrink: 0;
}
.mfg-ticker__item {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: #1a1a1a;
  white-space: nowrap;
  line-height: 1;
  padding: 4px 0;
}
/* brand-tinted words — subtle, corporate-feeling, no logo IP */
.mfg-ticker__item[data-brand="st"]          { color: #03234B; }
.mfg-ticker__item[data-brand="nxp"]         { color: #F5A800; }
.mfg-ticker__item[data-brand="atmel"]       { color: #C8102E; }
.mfg-ticker__item[data-brand="amp"]         { color: #E4002B; }
.mfg-ticker__item[data-brand="molex"]       { color: #E4002B; }
.mfg-ticker__item[data-brand="intersil"]    { color: #C8102E; }
.mfg-ticker__item[data-brand="omron"]       { color: #0066B3; }
.mfg-ticker__item[data-brand="cirrus"]      { color: #0072CE; }
.mfg-ticker__item[data-brand="ti"]          { color: #CC0000; }
.mfg-ticker__item[data-brand="agilent"]     { color: #0096D6; }
.mfg-ticker__item[data-brand="yageo"]       { color: #C8102E; }
.mfg-ticker__item[data-brand="maxim"]       { color: #003E7E; }
.mfg-ticker__item[data-brand="infineon"]    { color: #CC0000; }
.mfg-ticker__item[data-brand="lattice"]     { color: #005EB8; }
.mfg-ticker__item[data-brand="hitachi"]     { color: #E60027; }
.mfg-ticker__item[data-brand="adi"]         { color: #012169; }
.mfg-ticker__item[data-brand="fairchild"]   { color: #003057; }
.mfg-ticker__item[data-brand="ir"]          { color: #E4002B; }
.mfg-ticker__item[data-brand="onsemi"]      { color: #E4002B; }
.mfg-ticker__item[data-brand="microchip"]   { color: #E31837; }

@keyframes mfg-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
/* Ticker keeps scrolling on hover (no pause) */

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .mfg-ticker__track { animation: none; }
  .mfg-ticker { overflow-x: auto; }
}

@media (max-width: 640px) {
  .mfg-ticker { padding: 14px 0; }
  .mfg-ticker__item { font-size: 18px; }
  .mfg-ticker__group { gap: 32px; padding-right: 32px; }
}

/* ============================================================
   LINE CARD PAGE
   ============================================================ */
.lc-toc {
  background: #f5f6fa;
  border: 1px solid #e6e8ee;
  border-radius: 12px;
  padding: 18px 24px;
  margin: 0 0 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
}
.lc-toc__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-right: 8px;
}
.lc-toc a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px dotted transparent;
  transition: border-color .15s ease, color .15s ease;
}
.lc-toc a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Group grid: 4 columns on desktop, collapses gracefully */
.lc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 28px;
  margin: 0 0 40px;
}
.lc-grid--tri { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .lc-grid, .lc-grid--tri { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .lc-grid, .lc-grid--tri { grid-template-columns: 1fr; }
}

.lc-col__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 6px;
}
.lc-col__title {
  font-family: var(--font-serif, "Fraunces", Georgia, serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
  line-height: 1.15;
}
.lc-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.lc-col li {
  font-size: 14.5px;
  line-height: 1.75;
  color: #2a2f3a;
}

/* Two-column list variant (used for PASSIVES, FSC codes) */
.lc-col ul.lc-two-col {
  columns: 2;
  column-gap: 20px;
}
.lc-col ul.lc-two-col li { break-inside: avoid; }

/* Small "chip" list for FSC codes */
.lc-fsc {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.lc-fsc li {
  font-size: 13.5px;
  font-weight: 600;
  color: #3a4051;
  background: #f5f6fa;
  border: 1px solid #e6e8ee;
  border-radius: 6px;
  padding: 6px 10px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Compliance banner strip (dark, under Aerospace hero) */
.lc-compliance {
  background: #1a1f2b;
  color: #e6e8ee;
  padding: 20px 0;
  border-top: 3px solid var(--accent);
}
.lc-compliance__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}
.lc-compliance strong { color: #fff; font-weight: 700; }
.lc-compliance__dot {
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
}

/* Download button under hero */
.lc-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: background .2s ease, border-color .2s ease;
}
.lc-download:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.5);
}
.lc-download svg { flex-shrink: 0; }

/* "We buy excess" callout card at the bottom of manufacturers section */
.lc-cta-card {
  background: linear-gradient(135deg, #1a1f2b 0%, #0f1319 100%);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 32px 36px;
  color: #e6e8ee;
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}
@media (max-width: 720px) {
  .lc-cta-card { grid-template-columns: 1fr; padding: 28px 24px; }
}
.lc-cta-card__eyebrow {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.lc-cta-card h3 {
  font-family: var(--font-serif, "Fraunces", Georgia, serif);
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.1;
}
.lc-cta-card h3 .accent { color: #fbbf24; font-style: italic; }
.lc-cta-card__sub { font-size: 15px; color: #b7bccb; margin: 0; }
.lc-cta-card__actions { display: flex; flex-direction: column; gap: 10px; }
.lc-cta-card__actions .btn { justify-self: end; }
.lc-cta-card__phone {
  color: #fff; text-decoration: none; font-weight: 600; font-size: 15px;
}

/* Section anchor scroll offset so sticky header doesn't cover it */
.lc-anchor { scroll-margin-top: 90px; }

/* v151: Manufacturer list */
.manufacturer-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.manufacturer-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}
.manufacturer-list li:hover {
  border-color: #0b2545;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(11, 37, 69, 0.08);
}
.manufacturer-list__name {
  font-weight: 600;
  color: #0b2545;
  font-size: 15px;
}
.manufacturer-list__cta {
  font-size: 13px;
  color: var(--accent, #e35d1a);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 500;
}
.manufacturer-list__cta:hover { text-decoration: underline; }

/* v151: Ghost button on dark CTA card must be legible */
.lc-cta-card .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.lc-cta-card .btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

/* v151: Manufacturer list responsive */
@media (max-width: 640px) {
  .manufacturer-list { grid-template-columns: 1fr; }
}

/* v151.2: Manufacturer list — link style (replaces the pill CTA) */
.manufacturer-list__link {
  display: block;
  width: 100%;
  color: #0b2545;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: color 120ms ease;
}
.manufacturer-list li:has(.manufacturer-list__link) {
  padding: 0;
}
.manufacturer-list__link {
  padding: 14px 18px;
}
.manufacturer-list li:hover .manufacturer-list__link {
  color: var(--accent, #e35d1a);
}

/* v151.2: Category pills on brand detail pages */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.category-pill {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: #0b2545;
}

/* v151.2: Sources note below brand details */
.sources-note {
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
}
.sources-note a {
  color: var(--muted);
  text-decoration: underline;
}
.sources-note a:hover {
  color: var(--accent, #e35d1a);
}

/* v151.3: Manufacturer name is now a link — keep visual + add hover */
a.manufacturer-list__name {
  text-decoration: none;
  transition: color 120ms ease;
}
a.manufacturer-list__name:hover {
  color: var(--accent, #e35d1a);
}

/* v151.4: Manufacturer detail page prose */
.mfr-detail {
  max-width: 780px;
  margin: 0 auto;
}
.mfr-detail p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 18px 0;
}
.mfr-detail p:last-child {
  margin-bottom: 0;
}
.hero-lede {
  font-size: 18px;
  color: var(--muted);
  margin-top: 10px;
}

/* v151.5: Whole card is a link — name left, arrow right on hover */
.manufacturer-list li:has(.manufacturer-list__link) {
  padding: 0;
}
a.manufacturer-list__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  color: #0b2545;
  text-decoration: none;
  transition: color 120ms ease, background-color 120ms ease;
}
a.manufacturer-list__link:hover {
  color: var(--accent, #e35d1a);
  background-color: rgba(227, 93, 26, 0.04);
}
a.manufacturer-list__link .manufacturer-list__name {
  font-weight: 600;
  font-size: 15px;
  color: inherit;
}
a.manufacturer-list__link .manufacturer-list__arrow {
  font-size: 18px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 120ms ease, transform 120ms ease;
  color: var(--accent, #e35d1a);
  font-weight: 600;
}
a.manufacturer-list__link:hover .manufacturer-list__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* v151.6: Brand detail page — "At a glance" facts + sources */
.mfr-detail-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 980px;
  margin: 0 auto;
}
@media (min-width: 800px) {
  .mfr-detail-wrap {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 48px;
  }
}
.mfr-facts {
  background: #f5f7fb;
  border: 1px solid var(--line, #e6ebf3);
  border-radius: 10px;
  padding: 20px 22px;
  font-size: 14px;
  align-self: start;
}
.mfr-facts__title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted, #5a6b85);
  margin: 0 0 14px;
  font-weight: 700;
}
.mfr-facts .facts-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-top: 1px solid var(--line, #e6ebf3);
}
.mfr-facts .facts-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.mfr-facts .facts-lbl {
  color: var(--muted, #5a6b85);
  font-size: 12px;
  font-weight: 600;
}
.mfr-facts .facts-val {
  color: var(--ink, #0b2545);
  font-size: 14px;
  word-wrap: break-word;
}
.mfr-facts .facts-val a {
  color: var(--accent, #e35d1a);
  text-decoration: none;
  word-break: break-all;
}
.mfr-facts .facts-val a:hover {
  text-decoration: underline;
}
.mfr-sources {
  margin-top: 24px !important;
  padding-top: 16px;
  border-top: 1px solid var(--line, #e6ebf3);
  font-size: 13px;
  color: var(--muted, #5a6b85);
}
.mfr-sources a {
  color: var(--muted, #5a6b85);
  text-decoration: underline;
}
.mfr-sources a:hover {
  color: var(--accent, #e35d1a);
}
