/* Telecom Parts — "Graphite & Signal"
   Layout concept: spec-sheet grid. Graphite bands frame cool paper panels;
   black part-number tags label everything; one orange colour, spent only on quote actions.
   Single deliberate light brand theme (logo artwork is drawn for light grounds). */
:root {
  color-scheme: light;
  --graphite: #282B32;   /* dark bands, from the dark logo files */
  --ink: #1C1A1B;        /* text */
  --steel: #474B4C;      /* secondary text */
  --mist: #E8ECEF;       /* panels */
  --paper: #F4F6F7;      /* page ground, cool-biased */
  --white: #FFFFFF;
  --rule: #D3D8DC;       /* borders */
  --silver: #B1B4B6;     /* quiet text on graphite */
  --signal: #F55D13;     /* quote actions only */
  --signal-hi: #FF6E2B;
  --line: #1161A0;       /* links, focus */
  --spark: #F4E608;      /* live signal, graphite only */
  --ok: #1E7A46;

  --f-display: "Poppins", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --r-sm: 4px; --r-md: 8px;
  --wrap: 1200px;
  --gut-l: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  --header-h: 68px;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--white); }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--line); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--line); outline-offset: 2px; border-radius: 2px; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--ink); text-wrap: balance; margin: 0; line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-weight: 700; font-size: clamp(2.2rem, 5.2vw, 3.7rem); }
h2 { font-weight: 700; font-size: clamp(1.6rem, 3.2vw, 2.35rem); }
h3 { font-weight: 600; font-size: 1.12rem; line-height: 1.3; }
p { margin: 0; }
.lede { font-size: 1.125rem; color: var(--steel); max-width: 60ch; }
.muted { color: var(--steel); }
.num { font-variant-numeric: tabular-nums; }
.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 { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--white); padding: 10px 14px; z-index: 100; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }

/* ---------- Layout ---------- */
.wrap { max-width: calc(var(--wrap) + 32px); margin-inline: auto; padding-left: var(--gut-l); padding-right: var(--gut-r); }
.band { padding-block: clamp(56px, 8vw, 96px); }
.band--tight { padding-block: clamp(36px, 5vw, 56px); }
.band--mist { background: var(--mist); }
.band--white { background: var(--white); }
.band--graphite { background: var(--graphite) var(--grain); color: var(--mist); }
.band--graphite h2, .band--graphite h3 { color: var(--white); }
.band--graphite .muted, .band--graphite .lede { color: var(--silver); }
.band--graphite a:not(.btn) { color: var(--white); }
.stack { display: grid; gap: 16px; }
.stack-lg { display: grid; gap: 28px; }
.section-head { display: grid; gap: 12px; margin-bottom: clamp(28px, 4vw, 44px); max-width: 760px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .grid-4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Tag: the COMPANY. label, reused everywhere ---------- */
.tag {
  display: inline-flex; align-items: center; gap: .45em;
  font: 500 .72rem/1 var(--f-mono); letter-spacing: .09em; text-transform: uppercase;
  background: var(--ink); color: var(--white); padding: .42em .62em; border-radius: 2px; white-space: nowrap;
  justify-self: start; align-self: start; width: max-content; max-width: 100%;
}
.tag--light { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); }
.tag--outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.band--graphite .tag--outline { color: var(--white); box-shadow: inset 0 0 0 1.5px var(--silver); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--spark); box-shadow: 0 0 0 0 rgba(244,230,8,.6); animation: pulse 2.4s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(244,230,8,.55); } 70% { box-shadow: 0 0 0 7px rgba(244,230,8,0); } 100% { box-shadow: 0 0 0 0 rgba(244,230,8,0); } }
.eyebrow { font: 500 .78rem/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.band--graphite .eyebrow { color: var(--silver); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .7rem 1.2rem; border-radius: var(--r-sm); border: 0;
  font: 600 .97rem/1.1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, box-shadow .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--signal { background: var(--signal); color: var(--ink); }
.btn--signal:hover { background: var(--signal-hi); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #000; color: var(--white); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.band--graphite .btn--ghost { color: var(--white); box-shadow: inset 0 0 0 1.5px var(--silver); }
.band--graphite .btn--ghost:hover { background: var(--white); color: var(--ink); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--mist); color: var(--ink); }
.compare { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--r-md); overflow: hidden; font-size: .95rem; }
.compare th, .compare td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
.compare thead th { background: var(--ink); color: var(--white); font: 500 .76rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.compare tbody th { font-weight: 600; color: var(--steel); width: 28%; }
.table-scroll { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--rule); }
.tile { display: grid; gap: 6px; padding: 22px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-md); text-decoration: none; color: var(--ink); }
.tile:hover { border-color: var(--ink); color: var(--ink); }
.tile .big { font: 700 clamp(1.5rem, 2.6vw, 2rem)/1.1 var(--f-display); letter-spacing: -0.01em; }
.tile .meta { color: var(--steel); font-size: .9rem; }
.tile--type { grid-template-columns: 96px 1fr; align-items: center; gap: 16px; }
.tile--type svg { width: 96px; height: auto; }
.contact-card { display: grid; gap: 10px; padding: 22px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-md); }
.contact-card .phone { font: 600 1.25rem var(--f-mono); user-select: all; }
.checkline { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.checkline input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.btn--sm { min-height: 38px; padding: .5rem .85rem; font-size: .88rem; }
.btn--block { width: 100%; }
.btn .count { font: 600 .78rem/1 var(--f-mono); background: var(--ink); color: var(--white); border-radius: 999px; padding: .25em .5em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--ink); display: inline-flex; gap: .4em; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Promise strip + header ---------- */
.strip { background: var(--graphite); color: var(--mist); font-size: .84rem; }
.strip .wrap { display: flex; gap: 10px 22px; align-items: center; justify-content: space-between; min-height: 36px; padding-block: 6px; flex-wrap: wrap; }
.strip ul { display: flex; gap: 6px 22px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; align-items: center; }
.strip li { display: inline-flex; align-items: center; gap: 8px; }
.strip a { color: var(--white); text-decoration: none; font-weight: 600; }
.strip a:hover { text-decoration: underline; color: var(--white); }
@media (max-width: 760px) { .strip .hide-sm { display: none; } .strip .wrap { justify-content: center; } }

.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--white); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand img { height: 42px; width: auto; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; padding: .5rem .7rem; border-radius: var(--r-sm); }
.nav a:hover, .nav a[aria-current="page"] { background: var(--mist); }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search { position: relative; }
.search input {
  width: 230px; min-height: 42px; padding: .55rem .8rem .55rem 2.2rem; border-radius: var(--r-sm);
  border: 1px solid var(--rule); background: var(--paper); font: 500 .9rem var(--f-body); color: var(--ink);
}
.search input::placeholder { color: #6A6F72; }
.search svg.ic { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--steel); pointer-events: none; }
.search-results {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 100%; width: 340px; max-width: calc(100vw - 32px);
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-md); box-shadow: 0 16px 40px rgba(28,26,27,.14);
  padding: 6px; z-index: 70;
}
.search-results a, .search-results button.miss {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: .55rem .65rem; border-radius: var(--r-sm);
  color: var(--ink); text-decoration: none; width: 100%; text-align: left; background: none; border: 0; font: inherit; cursor: pointer;
}
.search-results a:hover, .search-results a.active, .search-results button.miss:hover { background: var(--mist); }
.search-results .sr-name { font-weight: 600; font-size: .93rem; }
.search-results .sr-meta { font-size: .8rem; color: var(--steel); grid-column: 1; }
.search-results .tag { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.menu-btn { display: none; background: none; border: 1px solid var(--rule); border-radius: var(--r-sm); min-height: 42px; padding: 0 .8rem; font: 600 .9rem var(--f-body); color: var(--ink); cursor: pointer; }
.mobile-nav { border-top: 1px solid var(--rule); background: var(--white); }
.mobile-nav ul { list-style: none; margin: 0; padding: 8px 0 16px; display: grid; }
.mobile-nav a { display: block; padding: .8rem 0; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--mist); }
@media (max-width: 1080px) { .search input { width: 180px; } .nav a { padding: .5rem .5rem; } }
@media (max-width: 920px) {
  .nav, .header-tools .search, .header-tools .btn--quote { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .brand img { height: 36px; }
  :root { --header-h: 60px; }
}

/* ---------- Hero ---------- */
.hero { background: var(--paper); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding-block: clamp(40px, 6vw, 84px); }
.hero h1 { margin-top: 18px; }
.hero h1 .soft { color: #5E6366; }
.hero .lede { margin-top: 18px; }
.hero-search { margin-top: 28px; display: flex; gap: 0; max-width: 560px; box-shadow: 0 1px 0 var(--rule); }
.hero-search .search { flex: 1; }
.hero-search input { width: 100%; min-height: 56px; font-size: 1.02rem; border-radius: var(--r-sm) 0 0 var(--r-sm); background: var(--white); border-color: var(--ink); border-width: 1.5px; border-right: 0; padding-left: 2.6rem; }
.hero-search .search svg.ic { left: .95rem; width: 18px; height: 18px; }
.hero-search .btn { border-radius: 0 var(--r-sm) var(--r-sm) 0; min-height: 56px; }
.hero-search .search-results { width: 100%; }
.popular { margin-top: 12px; font-size: .86rem; color: var(--steel); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.popular button { font: 500 .74rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; background: var(--white); border: 1px solid var(--rule); color: var(--ink); padding: .5em .65em; border-radius: 2px; cursor: pointer; }
.popular button:hover { border-color: var(--ink); }
.hero .btn-row { margin-top: 26px; }
.hero-art { width: 100%; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } .hero-art { order: -1; max-width: 132px; margin-inline: auto; } .hero h1 { margin-top: 12px; } .hero .wrap { padding-block: 20px 36px; gap: 8px; } .hero .lede { margin-top: 12px; font-size: 1.02rem; } .hero-search { margin-top: 18px; } }
.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* The Assembly: the mark's parts swing into orbit around the core */
.orbit { position: relative; width: min(100%, 420px); aspect-ratio: 447 / 514; margin-inline: auto; }
.orbit img { position: absolute; inset: 0; width: 100%; height: 100%; transform-origin: 45.46% 39.59%; }
.orbit .o-sphere { animation: o-sphere 1.3s cubic-bezier(.2,.8,.2,1) both; }
.orbit .o-seg { animation: o-seg 1.5s cubic-bezier(.2,.8,.2,1) .1s both; }
.orbit .o-ring { animation: o-ring 1.7s cubic-bezier(.2,.8,.2,1) .05s both; }
.orbit .o-dot { animation: o-dot 2s cubic-bezier(.2,.8,.2,1) .15s both; }
@keyframes o-sphere { from { transform: scale(.84); } to { transform: none; } }
@keyframes o-seg { from { transform: rotate(-150deg); } to { transform: none; } }
@keyframes o-ring { from { transform: rotate(115deg); } to { transform: none; } }
@keyframes o-dot { from { transform: rotate(-250deg); } to { transform: none; } }
.orbit .float { position: absolute; z-index: 2; }
.orbit .f1 { left: -4%; top: 6%; }
.orbit .f2 { right: -6%; top: 34%; }
.orbit .f3 { left: 2%; bottom: 14%; }
.orbit .f4 { right: 0; bottom: 2%; }
@media (max-width: 860px) { .orbit .float { display: none; } }

/* ---------- Promise tiles ---------- */
.promises { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--white); }
.promise { padding: 26px 22px 28px; display: grid; gap: 10px; align-content: start; border-right: 1px solid var(--rule); }
.promise:last-child { border-right: 0; }
.promise h3 { font-size: 1.3rem; }
.promise p { color: var(--steel); font-size: .95rem; }
@media (max-width: 960px) { .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); } .promise:nth-child(2) { border-right: 0; } .promise:nth-child(-n+2) { border-bottom: 1px solid var(--rule); } }
@media (max-width: 480px) { .promises { grid-template-columns: minmax(0, 1fr); } .promise { border-right: 0; border-bottom: 1px solid var(--rule); } .promise:last-child { border-bottom: 0; } }

/* ---------- Doors ---------- */
.door {
  display: grid; gap: 12px; align-content: start; padding: 24px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-md);
  text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s;
}
.door:hover { border-color: var(--ink); transform: translateY(-2px); color: var(--ink); }
.door .who { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; line-height: 1.25; }
.door p { color: var(--steel); font-size: .95rem; }
.door .go { margin-top: 6px; font-weight: 600; }
.door .go::after { content: " →"; }
.door--fixer { background: var(--ink); color: var(--white); border-color: var(--ink); }
.door--fixer:hover { color: var(--white); border-color: var(--signal); }
.door--fixer p { color: var(--silver); }
.door--fixer .phone { font: 600 1.15rem var(--f-mono); color: var(--white); user-select: all; }

/* ---------- Product cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.card { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-md); display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.card:hover { border-color: #9EA4A8; }
.card-media { position: relative; background: var(--mist); aspect-ratio: 4 / 3; display: grid; place-items: center; color: var(--ink); }
.card-media svg { width: 72%; height: auto; }
.card-media .tag { position: absolute; left: 12px; top: 12px; }
.card-body { padding: 16px 16px 18px; display: grid; gap: 8px; grid-template-rows: auto auto 1fr auto; }
.card-body .brandname { font: 500 .74rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { text-decoration: underline; }
.card-body p { color: var(--steel); font-size: .9rem; }
.card-actions { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-top: 6px; }
.card-actions .cond { font-size: .8rem; color: var(--steel); }

/* ---------- Swap sentence ---------- */
.swap { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-md); padding: clamp(20px, 3vw, 36px); display: grid; gap: 22px; }
.swap-sentence { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.15rem, 2.2vw, 1.55rem); line-height: 1.9; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.swap-sentence input, .swap-sentence select {
  font: 600 .95rem var(--f-mono); color: var(--ink); background: var(--paper); border: 0; border-bottom: 2px solid var(--ink);
  padding: .3rem .4rem; min-height: 40px; border-radius: 2px 2px 0 0; max-width: 100%;
}
.swap-sentence input[type="number"] { width: 4.2em; }
.swap-sentence input[type="text"] { width: 11em; }
.swap-sentence select { max-width: 14em; }

/* ---------- Steps (real sequences only) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 0; counter-reset: s; }
.steps li { position: relative; padding: 0 22px 0 0; display: grid; gap: 8px; align-content: start; counter-increment: s; }
.steps li::before {
  content: counter(s, decimal-leading-zero); font: 500 .8rem/1 var(--f-mono); letter-spacing: .08em;
  display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%;
  border: 1.5px solid currentColor; margin-bottom: 8px; background: inherit;
}
.steps li::after { content: ""; position: absolute; left: 50px; right: 10px; top: 21px; border-top: 1.5px dashed var(--silver); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.05rem; }
.steps p { font-size: .93rem; color: var(--steel); }
.band--graphite .steps p { color: var(--silver); }
@media (max-width: 860px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .steps li { padding: 0 0 0 58px; }
  .steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .steps li::after { left: 21px; right: auto; top: 50px; bottom: -18px; border-top: 0; border-left: 1.5px dashed var(--silver); }
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--ink); }
.stat { padding: 20px 20px 4px 0; display: grid; gap: 6px; align-content: start; }
.stat b { font: 700 clamp(1.8rem, 3.6vw, 2.6rem)/1 var(--f-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--steel); font-size: .92rem; max-width: 24ch; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .label { font-weight: 600; font-size: .88rem; }
.field .hint { font-size: .8rem; color: var(--steel); font-weight: 400; }
.input, .field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: .6rem .75rem; border: 1px solid #A9AFB3; border-radius: var(--r-sm);
  background: var(--white); color: var(--ink); font: 400 .97rem var(--f-body);
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: 2px solid var(--line); outline-offset: 0; border-color: var(--line); }
.band--graphite .field input, .band--graphite .field select { border-color: transparent; }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: minmax(0, 1fr); } }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form .field { flex: 1 1 240px; }
.form-note { font-size: .82rem; color: var(--steel); }
.band--graphite .form-note { color: var(--silver); }
.success {
  border: 1.5px solid var(--ok); background: #EEF7F1; border-radius: var(--r-md); padding: 18px 20px; display: grid; gap: 8px; color: var(--ink);
}
.success h3 { color: var(--ok); }
.success .ref { font: 600 1rem var(--f-mono); letter-spacing: .04em; }
.success .preview-note { font-size: .82rem; color: var(--steel); }
.error-msg { color: #A3260B; font-size: .85rem; font-weight: 600; }

/* paste box */
.paste { display: grid; gap: 12px; }
.paste textarea { font: 500 .95rem/1.6 var(--f-mono); }

/* ---------- Model page ---------- */
.crumbs { font-size: .85rem; color: var(--steel); display: flex; gap: 8px; flex-wrap: wrap; padding-top: 22px; }
.crumbs a { color: var(--steel); }
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); padding-block: 22px 56px; align-items: start; }
.pdp-media { background: var(--mist); border-radius: var(--r-md); aspect-ratio: 1 / 1; display: grid; place-items: center; position: relative; }
.pdp-media svg { width: 74%; }
.pdp-media .tag { position: absolute; left: 16px; top: 16px; font-size: .8rem; }
.pdp-media .photo-note { position: absolute; right: 14px; bottom: 12px; font-size: .75rem; color: var(--steel); }
.pdp-info { display: grid; gap: 18px; }
.pdp-info h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
.seg-toggle { display: inline-grid; grid-auto-flow: column; border: 1.5px solid var(--ink); border-radius: var(--r-sm); overflow: hidden; }
.seg-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.seg-toggle label { padding: .65rem 1rem; font-weight: 600; font-size: .92rem; cursor: pointer; min-width: 112px; text-align: center; }
.seg-toggle input:checked + label { background: var(--ink); color: var(--white); }
.seg-toggle input:focus-visible + label { outline: 3px solid var(--line); outline-offset: -3px; }
.qty { display: inline-flex; align-items: stretch; border: 1px solid #A9AFB3; border-radius: var(--r-sm); background: var(--white); }
.qty button { width: 42px; min-height: 44px; border: 0; background: none; font: 600 1.1rem var(--f-body); cursor: pointer; color: var(--ink); }
.qty button:hover { background: var(--mist); }
.qty input { width: 56px; border: 0; text-align: center; font: 600 1rem var(--f-mono); color: var(--ink); background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.assure { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 10px; }
.assure li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: .95rem; }
.assure svg { width: 20px; height: 20px; color: var(--ink); margin-top: 2px; }
.specs { width: 100%; border-collapse: collapse; font-size: .95rem; }
.specs th, .specs td { text-align: left; padding: .7rem .2rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.specs th { width: 38%; font-weight: 600; color: var(--steel); }
.specs td code, .mono { font-family: var(--f-mono); font-size: .9em; }
.callout { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--mist); border-radius: var(--r-md); padding: 16px 18px; }
@media (max-width: 860px) { .pdp { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 400 1.5rem/1 var(--f-body); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--steel); max-width: 68ch; }

/* Filters */
.filters { display: grid; gap: 14px; padding: 18px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-md); margin-bottom: 22px; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filter-row .label { min-width: 64px; color: var(--steel); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.chip { font: 600 .88rem var(--f-body); padding: .45rem .8rem; border-radius: 999px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); cursor: pointer; min-height: 38px; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.result-count { font-size: .9rem; color: var(--steel); }

/* ---------- Quote Tray drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(28,26,27,.42); z-index: 80; }
.tray {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); background: var(--white); z-index: 90;
  display: grid; grid-template-rows: auto 1fr; box-shadow: -20px 0 50px rgba(28,26,27,.2);
  transform: translateX(102%); transition: transform .28s cubic-bezier(.2,.8,.2,1); visibility: hidden;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); padding-right: env(safe-area-inset-right, 0px);
}
.tray.open { transform: none; visibility: visible; }
.tray-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--rule); gap: 12px; }
.tray-head h2 { font-size: 1.3rem; }
.tray-close { background: none; border: 1px solid var(--rule); border-radius: var(--r-sm); min-width: 42px; min-height: 42px; cursor: pointer; font-size: 1.2rem; color: var(--ink); }
.tray-body { overflow-y: auto; padding: 18px 20px 28px; display: grid; gap: 20px; align-content: start; }
.quote-panel { display: grid; gap: 20px; align-content: start; }
.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.line { border: 1px solid var(--rule); border-radius: var(--r-md); padding: 12px; display: grid; gap: 10px; }
.line-top { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.line-name { font-weight: 600; line-height: 1.3; }
.line-sub { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.line-ctrl { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.line-ctrl select { min-height: 44px; border: 1px solid #A9AFB3; border-radius: var(--r-sm); padding: 0 .5rem; font: 500 .9rem var(--f-body); background: var(--white); color: var(--ink); }
.line-remove { background: none; border: 0; color: var(--steel); cursor: pointer; font: 600 .82rem var(--f-body); text-decoration: underline; padding: 4px; }
.kind-sell { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.empty { border: 1.5px dashed var(--rule); border-radius: var(--r-md); padding: 18px; display: grid; gap: 10px; color: var(--steel); }
.quick-add { display: flex; gap: 8px; flex-wrap: wrap; }
.tray-foot-note { font-size: .85rem; color: var(--steel); }
details.more summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
details.more[open] summary { margin-bottom: 10px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--ink); color: var(--white); padding: 12px 14px 12px 18px; border-radius: var(--r-md); z-index: 95;
  display: flex; gap: 14px; align-items: center; transition: opacity .2s, transform .2s; width: max-content; max-width: calc(100vw - 32px); pointer-events: none; font-size: .93rem;
}
.toast.show { opacity: 1; transform: translateX(-50%); pointer-events: auto; }
.toast button { background: var(--signal); color: var(--ink); border: 0; border-radius: var(--r-sm); font: 600 .85rem var(--f-body); padding: .5rem .7rem; cursor: pointer; white-space: nowrap; }
@media (max-width: 920px) { .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 92; display: grid; place-items: center; padding: 16px; }
.modal-card { background: var(--white); border-radius: var(--r-md); width: min(480px, 100%); padding: 24px; display: grid; gap: 16px; box-shadow: 0 30px 80px rgba(28,26,27,.3); max-height: calc(100vh - 32px); overflow-y: auto; }
.modal-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }

/* ---------- Mobile bottom bar ---------- */
.bottom-bar { display: none; }
@media (max-width: 920px) {
  .bottom-bar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    background: var(--white); border-top: 1px solid var(--rule);
    padding: 6px var(--gut-r) calc(6px + env(safe-area-inset-bottom, 0px)) var(--gut-l);
  }
  .bottom-bar a, .bottom-bar button {
    display: grid; justify-items: center; gap: 2px; padding: 6px 2px; min-height: 52px; color: var(--ink); text-decoration: none;
    background: none; border: 0; font: 600 .72rem var(--f-body); cursor: pointer; border-radius: var(--r-sm); position: relative;
  }
  .bottom-bar svg { width: 22px; height: 22px; }
  .bottom-bar .bb-quote { background: var(--signal); }
  .bottom-bar .bb-count { position: absolute; top: 2px; right: 18%; background: var(--ink); color: var(--white); font: 600 .66rem/1 var(--f-mono); border-radius: 999px; padding: 3px 5px; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Page heads ---------- */
.page-head { background: var(--paper); padding-block: clamp(36px, 6vw, 72px) clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--rule); }
.page-head .stack-lg { max-width: 820px; }
.page-head--banner { position: relative; color: var(--white); background: var(--graphite); overflow: hidden; border-bottom: 0; }
.page-head--banner picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; filter: grayscale(1) contrast(1.05); }
.page-head--banner .wrap { position: relative; }
.page-head--banner h1 { color: var(--white); }
.page-head--banner .lede { color: var(--mist); }
.page-head--banner .eyebrow { color: var(--silver); }

/* Benefit list */
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.benefit { padding: 22px 22px 26px 0; display: grid; gap: 8px; align-content: start; border-bottom: 1px solid var(--rule); }
.benefit p { color: var(--steel); font-size: .95rem; }
@media (max-width: 860px) { .benefits { grid-template-columns: minmax(0, 1fr); } }

/* Trade-in lines */
.ti-lines { display: grid; gap: 10px; }
.ti-line { display: grid; grid-template-columns: 1.1fr 1.6fr .6fr 1.1fr auto; gap: 10px; align-items: end; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 12px; }
.ti-line .field label { font-size: .78rem; color: var(--steel); }
.ti-line .rm { background: none; border: 1px solid var(--rule); border-radius: var(--r-sm); min-height: 46px; min-width: 46px; cursor: pointer; color: var(--steel); font-size: 1.1rem; }
@media (max-width: 760px) { .ti-line { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .ti-line .f-model { grid-column: 1 / -1; } }

/* Footer */
.site-footer { background: var(--graphite) var(--grain); color: var(--silver); font-size: .92rem; }
.site-footer .wrap { padding-block: 56px 28px; display: grid; gap: 36px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 28px; }
.site-footer h3 { color: var(--white); font-size: .8rem; font-family: var(--f-mono); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--mist); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer .foot-logo { width: 230px; }
.site-footer .phone { font: 600 1.05rem var(--f-mono); color: var(--white); user-select: all; }
.foot-base { border-top: 1px solid #41454D; padding-top: 20px; display: flex; gap: 12px 24px; flex-wrap: wrap; justify-content: space-between; font-size: .82rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-grid > :first-child { grid-column: 1 / -1; } }

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

.field .search input, .search input[type="search"] { padding-left: 2.2rem; }
.hero-search .search input { padding-left: 2.6rem; }

/* Vertical steps (Trade-In "How it works", Why TPC, Quote page).
   Declared after .steps with higher specificity so desktop rules can't override them. */
.steps.steps--v { grid-template-columns: minmax(0, 1fr); gap: 24px; }
.steps.steps--v li { padding: 0 0 0 60px; min-height: 44px; }
.steps.steps--v li::before { position: absolute; left: 0; top: -2px; margin: 0; background: var(--paper); }
.steps.steps--v li::after { left: 21px; right: auto; top: 46px; bottom: -22px; border-top: 0; border-left: 1.5px dashed var(--silver); }
.steps.steps--v li:last-child::after { display: none; }
.band--white .steps li::before, .band--white .steps.steps--v li::before { background: var(--white); }
.band--graphite .steps li::before { background: var(--graphite); }

/* Product photos (added from the photos folder; illustrations are the fallback) */
/* Photos are pinned inside the box (position: absolute) so a tall photo can't stretch the card; the box keeps its 4:3 or square shape. */
.card-media, .pdp-media { overflow: hidden; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 18px; mix-blend-mode: multiply; }
.card-media .tag, .pdp-media .tag, .pdp-media .photo-note { z-index: 1; }
.card-media .badge { left: auto; right: 12px; }
.pdp-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 32px; mix-blend-mode: multiply; }

/* Photo band (home) */
.photo-band { position: relative; background: var(--graphite); overflow: hidden; }
.photo-band img { width: 100%; height: clamp(220px, 32vw, 440px); object-fit: cover; opacity: .9; }
.photo-band .wrap { position: absolute; inset: auto 0 0 0; padding-block: 22px; }
.photo-band .tag { font-size: .8rem; }

/* Policy pages (Termageddon embeds) */
.policy { max-width: 860px; }
.policy .policy_embed_div { width: 100% !important; height: auto !important; min-height: 240px; color: var(--ink); line-height: 1.7; }
.policy .policy_embed_div h1, .policy .policy_embed_div h2, .policy .policy_embed_div h3 { margin: 1.4em 0 .5em; }
.policy .policy_embed_div p, .policy .policy_embed_div li { margin: 0 0 .8em; color: var(--steel); }
.policy .policy_embed_div a { word-break: break-word; }
.form-note a { color: inherit; }

/* Touch screens: 16px text in form fields, otherwise iPhones zoom the page in when a field is tapped. */
@media (pointer: coarse) { .input, .field input, .field select, .field textarea, .search input, .paste textarea, .swap-sentence input, .swap-sentence select, input, select, textarea { font-size: 16px; } }
