/* ICT Superstore by E & D Trading — precision-instrument design system */

@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);

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

  --font-sans: 'Satoshi', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 4px;
  --radius-lg: 8px;
  --maxw: 1200px;
  --header-h: 68px;
}

/* ---------- BillAcceptors.us brand constants ---------- */
:root {
  --navy:        #1c234a;  /* store header navy — also the logo field colour */
  --navy-deep:   #151b3a;
  --navy-lift:   #273372;  /* store announcement bar / royal indigo */
  --navy-btn:    #0a2558;  /* store hero button */
  --gold:        #ffd10f;  /* logo wordmark yellow */
  --green:       #1fae4b;  /* store CTA green */
}

/* ---------- light (default) ---------- */
:root, [data-theme="light"] {
  --bg:            #f6f8fa;
  --surface:       #ffffff;
  --surface-2:     #eef1f6;
  --surface-3:     #e2e7ef;
  --border:        #dae0ea;
  --border-strong: #bac4d4;
  --text:          #1c234a;
  --text-2:        #454e75;
  --text-3:        #6d769a;
  --accent:        #1fae4b;
  --accent-hover:  #17913d;
  --accent-soft:   #e9f9ef;
  --accent-text:   #ffffff;
  --amber:         #8a6300;
  --amber-soft:    #fff7de;
  --shadow-sm: 0 1px 2px rgb(28 35 74 / 0.07), 0 1px 3px rgb(28 35 74 / 0.06);
  --shadow-md: 0 4px 6px -1px rgb(28 35 74 / 0.09), 0 2px 4px -2px rgb(28 35 74 / 0.06);
  --shadow-lg: 0 12px 24px -8px rgb(28 35 74 / 0.18);
  --img-bg: #ffffff;
  --grid-line: #e3e8f0;
}

/* ---------- dark ---------- */
[data-theme="dark"] {
  --bg:            #0f1531;
  --surface:       #171f40;
  --surface-2:     #1e2751;
  --surface-3:     #273164;
  --border:        #2d3767;
  --border-strong: #3e4b86;
  --text:          #eef1f8;
  --text-2:        #b3bcd9;
  --text-3:        #8a94b8;
  --accent:        #35c765;
  --accent-hover:  #4dda7b;
  --accent-soft:   #123522;
  --accent-text:   #06210f;
  --amber:         #ffd10f;
  --amber-soft:    #3a2f06;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.34);
  --shadow-md: 0 4px 8px -2px rgb(0 0 0 / 0.45);
  --shadow-lg: 0 14px 28px -10px rgb(0 0 0 / 0.6);
  --img-bg: #f2f4f9;
  --grid-line: #232c59;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:            #0f1531;
    --surface:       #171f40;
    --surface-2:     #1e2751;
    --surface-3:     #273164;
    --border:        #2d3767;
    --border-strong: #3e4b86;
    --text:          #eef1f8;
    --text-2:        #b3bcd9;
    --text-3:        #8a94b8;
    --accent:        #35c765;
    --accent-hover:  #4dda7b;
    --accent-soft:   #123522;
    --accent-text:   #06210f;
    --amber:         #ffd10f;
    --amber-soft:    #3a2f06;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.34);
    --shadow-md: 0 4px 8px -2px rgb(0 0 0 / 0.45);
    --shadow-lg: 0 14px 28px -10px rgb(0 0 0 / 0.6);
    --img-bg: #f2f4f9;
    --grid-line: #232c59;
  }
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

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

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--space-5); }
.section { padding-block: clamp(var(--space-12), 6vw, var(--space-24)); }
.section-tight { padding-block: clamp(var(--space-8), 4vw, var(--space-16)); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--accent-text);
  padding: var(--space-3) var(--space-5); border-radius: 0 0 var(--radius) 0;
  font-size: var(--text-sm); font-weight: 700;
}
.skip:focus { left: 0; }

/* ============ typography ============ */
h1, h2, h3, h4 { font-weight: 900; line-height: 1.12; letter-spacing: -0.021em; text-wrap: balance; }
h1 { font-size: var(--text-xl); }
h2 { font-size: var(--text-lg); }
h3 { font-size: var(--text-base); font-weight: 700; letter-spacing: -0.012em; }
p { text-wrap: pretty; }

.kicker {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.lede { font-size: var(--text-lg); line-height: 1.5; color: var(--text-2); font-weight: 500; letter-spacing: -0.012em; }
.prose p { color: var(--text-2); margin-bottom: var(--space-4); max-width: 68ch; }
.prose p:last-child { margin-bottom: 0; }
.mono { font-family: var(--font-mono); }

/* [hidden] is a UA rule, so any author `display` (e.g. on svg) silently beats it.
   Restore it at author level or JS-toggled elements stay visible. */
[hidden] { display: none !important; }

/* ============ header ============ */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgb(255 255 255 / 0.10);
}
.hdr-in {
  height: var(--header-h);
  display: flex; align-items: center; gap: var(--space-5);
}
.brand { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }
.brand svg { color: var(--accent); flex-shrink: 0; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-txt b { font-size: 0.9375rem; font-weight: 900; letter-spacing: -0.025em; }
.brand-txt span { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-3); }

.nav { display: flex; align-items: center; gap: var(--space-1); margin-left: auto; }
.nav > a, .navbtn {
  font-size: var(--text-sm); font-weight: 500; color: var(--text-2);
  padding: var(--space-2) var(--space-3); border-radius: var(--radius);
  background: none; border: 0; font-family: inherit; cursor: pointer;
  display: inline-flex; align-items: center; gap: var(--space-1);
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.nav > a:hover, .navbtn:hover { color: var(--text); background: var(--surface-2); }
.nav > a[aria-current="page"] { color: var(--accent); }

.has-menu { position: relative; }
.menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: var(--space-2); min-width: 280px;
  display: grid; gap: 1px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s, transform .16s, visibility .16s;
}
.has-menu:hover .menu, .has-menu:focus-within .menu { opacity: 1; visibility: visible; transform: none; }
.menu a {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4);
  padding: var(--space-2) var(--space-3); border-radius: var(--radius);
  font-size: var(--text-sm); color: var(--text-2);
}
.menu a:hover { background: var(--surface-2); color: var(--text); }
.menu a i { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--text-3); font-style: normal; }
.menu a b { font-weight: 600; color: var(--text); }
.menu a:hover b { color: var(--accent); }
.menu-sep { display: block; height: 1px; background: var(--border); margin: var(--space-2) var(--space-3); }

.hdr-cta { display: flex; align-items: center; gap: var(--space-2); flex-shrink: 0; }
.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text-2); cursor: pointer;
  transition: border-color .15s, color .15s;
}
.icon-btn:hover { border-color: var(--border-strong); color: var(--text); }

.burger { display: none; }

/* ---- navy brand bands: header + footer read as one dark frame, matching the
   BillAcceptors.us store. Local token overrides so every descendant adapts,
   while --accent stays green so the Call CTA keeps its store colour. ---- */
.hdr, .ftr {
  --surface:       #242d5c;
  --surface-2:     #2c3669;
  --surface-3:     #354178;
  --border:        rgb(255 255 255 / 0.13);
  --border-strong: rgb(255 255 255 / 0.26);
  --text:          #ffffff;
  --text-2:        #c4cbe2;
  --text-3:        #949dbd;
  --shadow-lg: 0 14px 30px -10px rgb(0 0 0 / 0.55);
  color: var(--text-2);
}
.hdr .nav > a[aria-current="page"] { color: var(--gold); }
.hdr .icon-btn { background: rgb(255 255 255 / 0.07); }
.hdr .icon-btn:hover { background: rgb(255 255 255 / 0.13); }
.ftr li a:hover { color: var(--gold); }
.ftr-legal { color: var(--text-3); }

/* ============ buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: inherit; font-size: var(--text-sm); font-weight: 700;
  letter-spacing: -0.005em;
  padding: var(--space-3) var(--space-5); border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--text-3); }
.btn-wa { background: #25D366; color: #062f16; }
.btn-wa:hover { background: #1eb457; }
.btn-lg { padding: var(--space-4) var(--space-6); font-size: var(--text-base); }
.btn-block { width: 100%; }
.btn svg { flex-shrink: 0; }

/* ============ badges ============ */
.badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2);
}
.badge-auth { background: var(--amber-soft); border-color: color-mix(in oklab, var(--amber) 40%, transparent); color: color-mix(in oklab, var(--amber) 78%, var(--text)); }
.badge-accent { background: var(--accent-soft); border-color: color-mix(in oklab, var(--accent) 35%, transparent); color: color-mix(in oklab, var(--accent) 82%, var(--text)); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ============ breadcrumbs ============ */
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2);
  font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-3);
  padding-block: var(--space-5);
}
.crumbs a { color: var(--text-3); }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-current] { color: var(--text-2); }
.crumbs em { font-style: normal; opacity: .5; }

/* ============ hero ============ */
.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--accent) 5%, var(--bg)) 0%, var(--bg) 62%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 70% 0%, black, transparent 72%);
  opacity: .5; pointer-events: none;
}
.hero-in { position: relative; display: grid; gap: var(--space-12); padding-block: clamp(var(--space-12), 6vw, var(--space-24)); }
@media (min-width: 900px) { .hero-in { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: var(--space-16); } }
.hero h1 { font-size: var(--text-2xl); margin-block: var(--space-4) var(--space-5); }
.hero .lede { max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero-meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-8); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-3); }
.hero-meta b { color: var(--text-2); font-weight: 500; }

.hero-art {
  position: relative; background: var(--img-bg);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
  display: grid; grid-template-columns: repeat(2, 1fr);
}
.hero-art figure { margin: 0; padding: var(--space-5); display: grid; place-items: center; aspect-ratio: 4/3; }
.hero-art figure + figure { border-left: 1px solid var(--border); }
.hero-art figure:nth-child(n+3) { border-top: 1px solid var(--border); }
.hero-art img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.hero-art figcaption { position: absolute; }

/* ============ page head ============ */
.phead { border-bottom: 1px solid var(--border); background: var(--surface-2); }
.phead-in { padding-bottom: clamp(var(--space-8), 4vw, var(--space-12)); }
.phead h1 { margin-block: var(--space-3) var(--space-4); }
.phead .lede { max-width: 62ch; }

/* ============ grids ============ */
.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
/* 10 featured units: 5x2 on wide, 4/3/2 as it narrows, never a lone orphan card */
.grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 620px) { .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1140px) { .grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.grid-5 > * { min-width: 0; }

/* ============ product card ============ */
.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.card:hover { border-color: color-mix(in oklab, var(--accent) 45%, var(--border)); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-img {
  background: var(--img-bg); aspect-ratio: 4/3;
  display: grid; place-items: center; padding: var(--space-5);
  border-bottom: 1px solid var(--border);
}
.card-img img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.card-body { padding: var(--space-4) var(--space-5) var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.card-body .eyebrow { font-size: 0.6875rem; }
.card-body h3 { font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.card-body p { font-size: var(--text-xs); color: var(--text-3); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; padding-top: var(--space-3); display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.card-foot .price { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.card-foot .arrow { color: var(--text-3); transition: transform .16s, color .16s; }
.card:hover .card-foot .arrow { transform: translateX(3px); color: var(--accent); }

/* ============ category tile ============ */
.tile {
  display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-5); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.tile:hover { border-color: color-mix(in oklab, var(--accent) 45%, var(--border)); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.tile-ico { width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent); }
.tile h3 { font-size: var(--text-base); }
.tile p { font-size: var(--text-xs); color: var(--text-3); line-height: 1.55; }
.tile .count { margin-top: auto; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }

/* ============ product detail ============ */
.pdp { display: grid; gap: var(--space-8); padding-block: var(--space-8) 0; }
@media (min-width: 900px) { .pdp { grid-template-columns: minmax(0, 1fr) 380px; gap: var(--space-16); align-items: start; } }

.gallery { display: grid; gap: var(--space-3); }
.gallery-main {
  background: var(--img-bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  aspect-ratio: 4/3; display: grid; place-items: center; padding: var(--space-8);
}
.gallery-main img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.thumbs { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.thumbs button {
  width: 64px; height: 64px; padding: var(--space-2); cursor: pointer;
  background: var(--img-bg); border: 1px solid var(--border); border-radius: var(--radius);
  display: grid; place-items: center;
}
.thumbs button[aria-selected="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.thumbs img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }

.buybox {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-sm);
  display: grid; gap: var(--space-4);
}
@media (min-width: 900px) { .buybox { position: sticky; top: calc(var(--header-h) + var(--space-5)); } }
.buybox .price-lg { font-size: var(--text-lg); font-weight: 900; letter-spacing: -0.02em; }
.buybox .price-note { font-size: var(--text-xs); color: var(--text-3); }
.buybox hr { border: 0; border-top: 1px solid var(--border); margin: 0; }
.buybox .stack { display: grid; gap: var(--space-3); }
.trust { display: grid; gap: var(--space-2); font-size: var(--text-xs); color: var(--text-2); }
.trust li { display: flex; gap: var(--space-2); align-items: flex-start; list-style: none; }
.trust svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.trust ul { padding: 0; margin: 0; display: grid; gap: var(--space-2); }

/* spec / feature lists */
.featlist { list-style: none; padding: 0; display: grid; gap: var(--space-3); }
.featlist li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-sm); color: var(--text-2); }
.featlist svg { color: var(--accent); flex-shrink: 0; margin-top: 5px; }

.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0; }
.chips li {
  font-family: var(--font-mono); font-size: var(--text-xs);
  padding: var(--space-1) var(--space-3); border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2);
}

.block { padding-block: clamp(var(--space-8), 4vw, var(--space-12)); border-top: 1px solid var(--border); }
.block > h2 { margin-bottom: var(--space-5); }
.block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-6); }
.block-head a { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--accent); letter-spacing: 0.04em; text-transform: uppercase; }

/* tables (currency reference) */
.tablewrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
table.data th, table.data td { padding: var(--space-3) var(--space-4); text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.data thead th { position: sticky; top: 0; background: var(--surface-2); font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); font-weight: 500; z-index: 1; }
table.data tbody tr:hover { background: var(--surface-2); }
table.data td:nth-child(1), table.data td:nth-child(3) { font-family: var(--font-mono); font-size: var(--text-xs); }
table.data tbody tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq { display: grid; gap: var(--space-3); }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq summary {
  cursor: pointer; padding: var(--space-4) var(--space-5); font-weight: 700; font-size: var(--text-sm);
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-size: var(--text-lg); color: var(--accent); line-height: 1; flex-shrink: 0; }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq .ans { padding: var(--space-4) var(--space-5); font-size: var(--text-sm); color: var(--text-2); }

/* CTA band */
.cta {
  border-block: 1px solid var(--border);
  background: linear-gradient(135deg, color-mix(in oklab, var(--accent) 9%, var(--bg)), var(--bg) 70%);
}
.cta-in { display: grid; gap: var(--space-6); padding-block: clamp(var(--space-10), 5vw, var(--space-16)); }
@media (min-width: 800px) { .cta-in { grid-template-columns: 1fr auto; align-items: center; gap: var(--space-12); } }
.cta h2 { font-size: var(--text-xl); }
.cta p { color: var(--text-2); margin-top: var(--space-3); max-width: 56ch; }
.cta-btns { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* buying guide */
.guide { list-style: none; padding: 0; counter-reset: g; display: grid; gap: var(--space-4); }
.guide li { counter-increment: g; display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); align-items: start; font-size: var(--text-sm); color: var(--text-2); }
.guide li::before {
  content: counter(g, decimal-leading-zero);
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 700;
  color: var(--accent); background: var(--accent-soft);
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: var(--radius);
}

/* value props */
.vp { display: grid; gap: var(--space-6); }
@media (min-width: 800px) { .vp { grid-template-columns: repeat(3, 1fr); gap: var(--space-8); } }
.vp > div { display: grid; gap: var(--space-3); align-content: start; }
.vp-ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent); }
.vp h3 { font-size: var(--text-base); }
.vp p { font-size: var(--text-sm); color: var(--text-2); }

/* series strip on group page */
.serieslist { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.serieslist a {
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 500;
  padding: var(--space-2) var(--space-4); border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  transition: border-color .15s, color .15s, background .15s;
}
.serieslist a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* contact cards */
.contact-grid { display: grid; gap: var(--space-5); }
@media (min-width: 760px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.ccard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); display: grid; gap: var(--space-3); align-content: start; }
.ccard .eyebrow { color: var(--accent); }
.ccard strong { font-size: var(--text-lg); font-weight: 900; letter-spacing: -0.02em; }
.ccard p { font-size: var(--text-sm); color: var(--text-2); }

/* ============ footer ============ */
.ftr { border-top: 1px solid rgb(255 255 255 / 0.10); background: var(--navy); margin-top: var(--space-8); }
.ftr-in { display: grid; gap: var(--space-10); padding-block: var(--space-16) var(--space-8); }
@media (min-width: 860px) { .ftr-in { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-8); } }
.ftr h4 { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); font-weight: 500; margin-bottom: var(--space-4); }
.ftr ul { list-style: none; padding: 0; display: grid; gap: var(--space-2); }
.ftr li a, .ftr p { font-size: var(--text-sm); color: var(--text-2); }
.ftr li a:hover { color: var(--accent); }
.ftr-brand p { max-width: 40ch; margin-top: var(--space-4); font-size: var(--text-sm); color: var(--text-2); }
.ftr-legal {
  border-top: 1px solid var(--border); padding-block: var(--space-6);
  display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6);
  justify-content: space-between; font-size: var(--text-xs); color: var(--text-3);
}
.ftr-legal p { max-width: 78ch; line-height: 1.6; }

/* ============ sticky mobile action bar ============ */
.actionbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  display: none; gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}
.actionbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: var(--space-3) var(--space-2);
  background: var(--surface); color: var(--text);
  font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.07em; text-transform: uppercase;
}
.actionbar a.call { background: var(--accent); color: var(--accent-text); }
.actionbar a.chat { background: #25D366; color: #062f16; }
@media (max-width: 899px) {
  .actionbar { display: flex; }
  body { padding-bottom: 74px; }
}

/* ============ mobile nav ============ */
@media (max-width: 1023px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 0 auto; width: min(360px, 88vw);
    background: var(--surface); border-left: 1px solid var(--border);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--space-4); overflow-y: auto;
    transform: translateX(100%); transition: transform .24s ease;
    box-shadow: var(--shadow-lg);
  }
  body.nav-open .nav { transform: none; }
  body.nav-open { overflow: hidden; }
  .nav > a, .navbtn { padding: var(--space-3); font-size: var(--text-base); justify-content: space-between; }
  .has-menu { position: static; }
  .menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 2px solid var(--border);
    border-radius: 0; margin: 0 0 var(--space-3) var(--space-3); padding: 0 0 0 var(--space-2);
    min-width: 0; display: none;
  }
  .has-menu[data-open="true"] .menu { display: grid; }
  .burger { display: grid; }
  .hdr-cta .btn { display: none; }
}
@media (max-width: 520px) {
  .brand-txt span { display: none; }
  .hero-art { grid-template-columns: repeat(2, 1fr); }
}

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

@media print {
  .hdr, .actionbar, .ftr, .cta { display: none; }
}

/* ---------- PDP head + detail split ---------- */
.pdp-head { padding-top: var(--space-6); }
.pdp-head h1 { margin: var(--space-3) 0 0; max-width: 22ch; }
.pdp-head .lede { margin-top: var(--space-4); max-width: 62ch; }
.pdp { padding-block: var(--space-8) 0; }

.pdp-detail { display: grid; gap: var(--space-10); }
@media (min-width: 900px) {
  .pdp-detail { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: var(--space-16); align-items: start; }
  .pdp-detail > aside { position: sticky; top: calc(var(--header-h) + var(--space-6)); }
}
.pdp-detail > div > .prose:first-child:empty { display: none; }

.panel {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface-2); padding: var(--space-6);
}
.panel-title {
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3);
  margin: 0 0 var(--space-4);
}
.panel .tablewrap { border: 0; border-radius: 0; background: transparent; overflow: visible; }
table.spec { width: 100%; border-collapse: collapse; }
table.spec th, table.spec td {
  text-align: left; vertical-align: top; padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border); font-size: var(--text-sm); line-height: 1.45;
}
table.spec th {
  font-weight: 500; color: var(--text-3); width: 42%; padding-right: var(--space-4);
  white-space: normal;
}
table.spec td { color: var(--text-1); }
table.spec tr:last-child th, table.spec tr:last-child td { border-bottom: 0; }
@media (max-width: 480px) {
  table.spec th, table.spec td { display: block; width: auto; border-bottom: 0; padding: 0; }
  table.spec th { color: var(--text-3); font-size: var(--text-xs); padding-top: var(--space-4); }
  table.spec td { padding-bottom: var(--space-3); border-bottom: 1px solid var(--border); }
}
.panel { min-width: 0; overflow: hidden; }
.panel .tablewrap { max-width: 100%; }
table.spec { table-layout: fixed; }
table.spec th, table.spec td { overflow-wrap: break-word; word-break: normal; hyphens: auto; }
.block-head a { white-space: nowrap; }
table.spec th, table.spec td { hyphens: manual; overflow-wrap: break-word; }
table.spec td { text-wrap: pretty; }
.gallery { grid-template-columns: minmax(0, 1fr); }
.gallery-main { min-width: 0; overflow: hidden; }
.gallery-main img { max-width: 100%; max-height: 100%; height: auto; }
.block-head a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: var(--space-2); }
.block-head a svg { flex: none; }

/* ---------- mobile overflow + tablet CTA gap ---------- */
html, body { overflow-x: clip; max-width: 100%; }
@media (max-width: 1023px) {
  .nav { visibility: hidden; }
  body.nav-open .nav { visibility: visible; }
  .actionbar { display: flex; }
  body { padding-bottom: 74px; }
}

/* ---------- image sizing: never let intrinsic width blow out a grid ---------- */
img { max-width: 100%; }
.hero-art { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero-art figure { min-width: 0; overflow: hidden; }
.hero-art img { max-width: 100%; max-height: 100%; height: auto; }
.card-img { min-width: 0; overflow: hidden; }
.card-img img { max-width: 100%; height: auto; }
@media (max-width: 520px) { .hero-art { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- badge row + service cards ---------- */
.badgerow { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-4); }
.badge-yrs { background: color-mix(in oklab, var(--accent) 12%, var(--surface));
  border: 1px solid color-mix(in oklab, var(--accent) 34%, transparent); color: var(--accent-ink); }
.svcgrid .svc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--space-6); min-width: 0; }
.svcgrid .svc h3 { font-size: var(--text-lg); margin: var(--space-4) 0 var(--space-2); }
.svcgrid .svc p { color: var(--text-2); font-size: var(--text-sm); margin: 0; }

/* hero headline: keep the long trust-led H1 to three lines on desktop */
.hero h1 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.06; letter-spacing: -0.028em; text-wrap: balance; }
.badgerow { row-gap: var(--space-2); }

/* hero mosaic: square cells match the square product photos so nothing crops */
.hero-art figure { aspect-ratio: 1/1; padding: clamp(var(--space-4), 2.4vw, var(--space-7)); min-width: 0; }
.hero-art img { width: 100%; height: 100%; max-height: 100%; object-fit: contain; }
/* bench services read best as two balanced rows of three */
@media (min-width: 900px) { .svcgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* long CTA labels must never push past a phone viewport */
.hero-actions { flex-wrap: wrap; min-width: 0; }
.hero-actions .btn { min-width: 0; max-width: 100%; }
@media (max-width: 560px) { .hero-actions .btn { width: 100%; justify-content: center; } }

/* ---------- BillAcceptors.us logo artwork ---------- */
/* the source art has a baked-in navy field, so it sits in a matching chip
   that reads as intentional on the light theme and disappears on dark */
.brand { gap: var(--space-3); min-width: 0; }
.brand-logo {
  display: block;
  width: auto;
  max-width: 100%;
}
/* logo stands alone as the brand, so it carries a little more presence */
.brand-logo { height: 48px; }
.ftr .brand-logo { height: 44px; }
@media (max-width: 1023px) { .brand-logo { height: 42px; } }
@media (max-width: 420px)  { .brand-logo { height: 36px; } }


/* address + map */
.ftr-addr { font-style: normal; font-size: var(--text-sm); color: var(--text-2); line-height: 1.55; }
.ftr-addr strong { color: var(--text); }
.ftr-addr a { text-decoration: underline; text-underline-offset: 2px; }
.loc-grid { display: grid; gap: var(--space-6); align-items: start; }
@media (min-width: 900px) { .loc-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.mapwrap { position: relative; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--surface-2); aspect-ratio: 16 / 10; }
@media (max-width: 899px) { .mapwrap { aspect-ratio: 4 / 3; } }
.mapwrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.loc-addr { font-style: normal; font-size: var(--text-sm); line-height: 1.6; color: var(--text-2);
  margin-bottom: var(--space-5); }
.loc-addr strong { display: block; color: var(--text); font-size: var(--text-base); }
.hours th { font-weight: 600; white-space: nowrap; }
.hours .closed { color: var(--text-3); }
.revgrid { display: grid; gap: var(--space-5); }
@media (min-width: 700px) { .revgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .revgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rev { margin: 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-6); display: grid;
  gap: var(--space-3); align-content: start; min-width: 0; }
.rev .stars { color: #f0a300; font-size: var(--text-base); letter-spacing: 0.12em; line-height: 1; }
.rev blockquote { margin: 0; font-size: var(--text-sm); color: var(--text); line-height: 1.6; }
.rev figcaption { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.06em; }

.tf { font-size: var(--text-xs); color: var(--text-3); font-family: var(--font-mono); }


/* pdp shrink fixes */
.pdp > *, .pdp-detail > *, .buybox > *, .buybox .stack > *, .gallery > * { min-width: 0; }
.gallery, .gallery-main { max-width: 100%; }
.gallery-main img, .gallery img { max-width: 100%; height: auto; }
.thumbs { flex-wrap: wrap; max-width: 100%; }
/* long CTA labels (e.g. "To purchase, press here") must wrap, not overflow */
.btn-block { white-space: normal; text-align: center; line-height: 1.25; }
.buybox .trust li span { min-width: 0; overflow-wrap: anywhere; }
.mapcredit { margin-top: var(--space-3); font-size: var(--text-xs); color: var(--text-3); }
.mapcredit a { text-decoration: underline; text-underline-offset: 2px; }
.mapcol { min-width: 0; display: grid; gap: 0; align-content: start; }

/* mapcol stretch: match the hours panel height on desktop */
@media (min-width: 900px) {
  .loc-grid { align-items: stretch; }
  .mapcol { grid-template-rows: 1fr auto; }
  .mapcol .mapwrap { aspect-ratio: auto; height: 100%; min-height: 420px; }
}

/* ============================================================ documentation
   DIP switch tables, the document download lists and the catalog index.
   Switch states are shown as pills rather than bare text so a technician can
   read a row at a glance on a phone held next to an open machine. */

table.dip { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
table.dip caption {
  caption-side: top; text-align: left; padding: var(--space-4) var(--space-5) var(--space-3);
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid var(--border);
}
table.dip th, table.dip td {
  padding: var(--space-3) var(--space-4); text-align: left;
  border-bottom: 1px solid var(--border);
}
table.dip thead th {
  background: var(--surface-2); font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2);
  font-weight: 500; white-space: nowrap;
}
table.dip thead th:not(:first-child) { text-align: center; width: 1%; }
table.dip tbody th { font-weight: 600; min-width: 14rem; }
table.dip tbody td { text-align: center; }
table.dip tbody tr:hover { background: var(--surface-2); }
table.dip tbody tr:last-child th, table.dip tbody tr:last-child td { border-bottom: 0; }

.sw {
  display: inline-block; min-width: 3.25rem; padding: 0.1rem var(--space-2);
  border-radius: 999px; font-family: var(--font-mono); font-size: 0.6875rem;
  font-weight: 600; letter-spacing: 0.06em;
}
.sw-on  { background: var(--navy); color: #fff; }
.sw-off { background: var(--surface-3); color: var(--text-2); }
.sw-na  { color: var(--text-3); }

.dip-def {
  display: inline-block; margin-left: var(--space-2); padding: 0.05rem var(--space-2);
  border-radius: 999px; background: var(--accent-soft); color: var(--accent-hover);
  font-family: var(--font-mono); font-size: 0.625rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; vertical-align: 1px;
}
.dip-notes {
  margin: var(--space-3) 0 var(--space-8); padding-left: var(--space-5);
  font-size: var(--text-sm); color: var(--text-2); display: grid; gap: var(--space-1);
}
.dip-notes li { list-style: disc; }
.tablewrap + .dip-notes { margin-top: var(--space-3); }
table.dip-ca tbody th { font-family: var(--font-mono); font-size: var(--text-xs); }

.dip-grid { display: grid; gap: var(--space-8); align-items: start; }
@media (min-width: 1000px) { .dip-grid { grid-template-columns: minmax(0, 1fr) 20rem; } }
.dip-main { min-width: 0; display: grid; gap: var(--space-8); }
.dip-main > * { min-width: 0; }

.callout {
  border-left: 3px solid var(--amber); background: var(--amber-soft);
  border-radius: 0 var(--radius) var(--radius) 0; padding: var(--space-5) var(--space-6);
  display: grid; gap: var(--space-2);
}
.callout strong { font-size: var(--text-sm); letter-spacing: 0.01em; color: var(--amber); }
.callout ul { padding-left: var(--space-5); display: grid; gap: var(--space-1); }
.callout li { list-style: disc; font-size: var(--text-sm); color: var(--text-2); }

/* --- document download lists ------------------------------------------- */
.doclist { display: grid; gap: var(--space-2); }
.doc {
  display: grid; gap: var(--space-1) var(--space-4); align-items: center;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: var(--space-3) var(--space-4); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.doc:hover { border-color: var(--border-strong); }
.doc-tag {
  font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-3); white-space: nowrap;
  padding: 0.15rem var(--space-2); border: 1px solid var(--border);
  border-radius: 999px;
}
.doc-main { min-width: 0; display: grid; gap: var(--space-1); }
.doc-name { font-size: var(--text-sm); font-weight: 600; overflow-wrap: anywhere; }
a.doc-name:hover { color: var(--accent); }
.doc-size { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--text-3); font-weight: 400; }
.doc-parts { font-size: var(--text-xs); color: var(--text-3); display: flex; flex-wrap: wrap; gap: var(--space-2); }
a.doc-part { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--accent); }
a.doc-part:hover { text-decoration: underline; }
.doc-alt {
  font-family: var(--font-mono); font-size: 0.6875rem; color: var(--accent);
  letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
  display: inline-flex; align-items: center; gap: var(--space-1);
}
.doc-alt:hover { text-decoration: underline; }
.doc-alt svg { width: 0.85em; height: 0.85em; }
@media (max-width: 640px) {
  .doc { grid-template-columns: minmax(0, 1fr); }
  .doc-tag { justify-self: start; }
}

.docgroup { margin-bottom: var(--space-10); }
.docgroup h3 {
  font-size: var(--text-base); font-weight: 900; letter-spacing: -0.01em;
  margin-bottom: var(--space-3); padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: baseline;
}
.docgroup h3 a:hover { color: var(--accent); }

/* --- filter input ------------------------------------------------------ */
.filter { display: grid; gap: var(--space-2); margin-bottom: var(--space-8); max-width: 26rem; }
.filter-lbl {
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-3);
}
.filter input {
  width: 100%; padding: var(--space-3) var(--space-4); font: inherit; color: var(--text);
  font-size: var(--text-sm); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.filter input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }

/* --- catalog index ----------------------------------------------------- */
.catlist { display: grid; gap: var(--space-1) var(--space-6); }
@media (min-width: 640px)  { .catlist { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .catlist { grid-template-columns: 1fr 1fr 1fr; } }
.catlist li { min-width: 0; }
.catlist a {
  display: block; padding: var(--space-1) 0; font-size: var(--text-sm);
  color: var(--text-2); overflow-wrap: anywhere;
}
.catlist a:hover { color: var(--accent); }
