/* ==========================================================================
   Kurilux Electronics - site styles
   Dark "circuit" theme built around the logo cyan.
   ========================================================================== */
:root {
  --bg: #05080f;
  --bg-2: #080d19;
  --panel: #0c1322;
  --panel-2: #101a2e;
  --line: #1a2842;
  --line-2: #243556;
  --text: #e7eef8;
  --muted: #8a9ab5;
  --brand: #2ea9e0;
  --brand-2: #6fd3ff;
  --brand-dim: rgba(46, 169, 224, .14);
  --ok: #34d399;
  --warn: #fbbf24;
  --err: #f87171;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .7);
  --glow: 0 0 0 1px rgba(46, 169, 224, .35), 0 8px 30px -6px rgba(46, 169, 224, .45);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text);
  background: var(--bg);
  min-height: 100vh; display: flex; flex-direction: column; position: relative;
}
/* fixed grid + glow on its own layer (cheaper than background-attachment: fixed, smooth on phones) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(46, 169, 224, .12), transparent 60%),
    radial-gradient(700px 400px at -10% 30%, rgba(46, 169, 224, .06), transparent 60%),
    linear-gradient(rgba(46, 169, 224, .035) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(46, 169, 224, .035) 1px, transparent 1px) 0 0 / 40px 40px;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); letter-spacing: 0; }
::selection { background: var(--brand); color: #001018; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }
/* vertical padding only - these classes are combined with .container, which owns the side gutters */
.section { padding-top: 70px; padding-bottom: 20px; }
.section-tight { padding-top: 20px; padding-bottom: 40px; }
.section-head { margin-bottom: 28px; }
.section-head.center { text-align: center; }
.row { display: flex; align-items: center; }
.row.gap { gap: 10px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row-between.wrap { flex-wrap: wrap; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.15rem; color: #b9c6db; max-width: 640px; }
.eyebrow { color: var(--brand); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .6em; }
.grad { background: linear-gradient(90deg, var(--brand), var(--brand-2) 60%, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: #000; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 10px; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--panel-2); color: var(--text); font: inherit; font-weight: 600; font-size: .95rem;
  cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s; white-space: nowrap;
}
.btn:hover { border-color: var(--brand); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, #38b6ee, #1e8fc4); border-color: #4cc3f5; color: #001522; box-shadow: var(--glow); }
.btn-primary:hover { color: #001522; background: linear-gradient(180deg, #52c4f5, #2aa0d6); box-shadow: 0 0 0 1px rgba(111, 211, 255, .6), 0 10px 36px -4px rgba(46, 169, 224, .6); }
.btn-ghost { background: transparent; }
.btn-danger { background: transparent; border-color: rgba(248, 113, 113, .45); color: var(--err); }
.btn-danger:hover { background: rgba(248, 113, 113, .1); border-color: var(--err); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: .85rem; border-radius: 8px; }
.btn-lg { padding: 13px 24px; font-size: 1rem; }
.btn-block { width: 100%; }
.icon-btn { background: none; border: 1px solid transparent; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; width: 34px; height: 34px; border-radius: 8px; }
.icon-btn:hover { color: var(--err); border-color: var(--line-2); }

/* ---------- Tags & pills ---------- */
.tag { display: inline-block; font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); background: var(--brand-dim); border: 1px solid rgba(46, 169, 224, .25); padding: 2px 8px; border-radius: 6px; }
.tag-beta { color: var(--warn); background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .3); }
.pill { font-size: .72rem; font-weight: 600; padding: 2px 9px; border-radius: 99px; }
.pill-ok { color: var(--ok); background: rgba(52, 211, 153, .1); }
.pill-warn { color: var(--warn); background: rgba(251, 191, 36, .1); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.dot-ok { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.dot-warn { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.dot-err { background: var(--err); box-shadow: 0 0 10px var(--err); }

/* ---------- Cards ---------- */
.card { background: linear-gradient(180deg, rgba(16, 26, 46, .85), rgba(12, 19, 34, .85)); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); position: relative; }
.card h2 { font-size: 1.3rem; }
.empty { text-align: center; padding: 50px 24px; }
.empty .mono { color: var(--brand); }
.notice { border: 1px solid rgba(46, 169, 224, .3); background: var(--brand-dim); border-radius: var(--radius-sm); padding: 12px 14px; margin: 14px 0; color: #cfe6f5; }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: rgba(5, 8, 15, .75); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand-mark { display: block; width: 50px; height: 31px; overflow: hidden; }
.brand-mark img { width: 50px; height: auto; } /* crop: the logo's emblem fills the top ~77% */
.brand-word { font-family: var(--mono); font-weight: 600; font-size: 1.15rem; letter-spacing: .14em; }
.brand-word .w1 { color: #fff; }
.brand-word .w2 { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { color: #c2cee0; padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: .95rem; }
.nav-links a:hover, .nav-links a.active { color: #fff; background: var(--panel-2); }
.cart-link { position: relative; display: inline-flex !important; align-items: center; }
.cart-count { position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; border-radius: 9px; background: var(--brand); color: #001522; font-size: .7rem; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: 8px; width: 42px; height: 38px; cursor: pointer; padding: 10px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; }

.flashes { margin-top: 16px; display: grid; gap: 8px; }
.flash { padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid; font-size: .95rem; }
.flash-ok { border-color: rgba(52, 211, 153, .4); background: rgba(52, 211, 153, .08); color: #b6f3d8; }
.flash-err { border-color: rgba(248, 113, 113, .45); background: rgba(248, 113, 113, .08); color: #fecaca; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 70px 0 60px; }
/* circuit traces are anchored to the logo ring, so they never cross the headline */
.hero-circuit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hero-circuit path { fill: none; stroke: rgba(46, 169, 224, .35); stroke-width: 2; stroke-dasharray: 6 8; animation: flow 16s linear infinite; }
.hero-circuit circle { fill: var(--bg); stroke: var(--brand); stroke-width: 3; filter: drop-shadow(0 0 5px var(--brand)); }
@keyframes flow { to { stroke-dashoffset: -280; } }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 34px; }
.hero-stats { display: flex; gap: 34px; margin: 0; flex-wrap: wrap; }
.hero-stats dt { color: var(--brand); font-size: 1.3rem; font-weight: 700; }
.hero-stats dd { margin: 0; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.hero-visual { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.hero-ring { position: absolute; inset: 6%; border-radius: 50%; border: 1px solid rgba(46, 169, 224, .25); background: radial-gradient(circle, rgba(46, 169, 224, .16), transparent 65%); animation: pulse 5s ease-in-out infinite; }
.hero-ring::before, .hero-ring::after { content: ""; position: absolute; inset: -9%; border-radius: 50%; border: 1px dashed rgba(46, 169, 224, .2); animation: spin 60s linear infinite; }
.hero-ring::after { inset: 12%; border-style: solid; border-color: rgba(46, 169, 224, .12); animation-duration: 90s; animation-direction: reverse; }
.hero-logo { position: relative; width: 78%; filter: drop-shadow(0 0 30px rgba(46, 169, 224, .35)); animation: float 7s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.04); opacity: .8; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.cat-card { padding: 0; overflow: hidden; color: var(--text); transition: transform .2s, border-color .2s; }
.cat-card:hover { transform: translateY(-3px); border-color: var(--brand); color: var(--text); }
.cat-card .art { height: 130px; }
.cat-card-body { padding: 14px 18px 18px; }
.cat-card-body h3 { margin-bottom: 2px; }

/* ---------- Product art ---------- */
.art { width: 100%; height: 100%; display: block; background: radial-gradient(circle at 50% 50%, rgba(46, 169, 224, .14), transparent 70%), #070c18; }
.art .a-grid line { stroke: rgba(46, 169, 224, .07); stroke-width: 1; }
.art .a-trace path { fill: none; stroke: rgba(46, 169, 224, .45); stroke-width: 3; }
.art .a-node circle { fill: #070c18; stroke: var(--brand); stroke-width: 3; }
.art .a-fill { fill: var(--brand); }
.art .a-alt { fill: #e7eef8; }
.art .a-stroke { fill: none; stroke: var(--brand); stroke-width: 6; stroke-linejoin: round; stroke-linecap: round; }
.art .a-dot { fill: #070c18; }
.visual { aspect-ratio: 4 / 3; overflow: hidden; background: #070c18; }
.visual img { width: 100%; height: 100%; object-fit: cover; }
.visual-lg { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); }
.visual-thumb { width: 84px; aspect-ratio: 4 / 3; border-radius: 8px; border: 1px solid var(--line); }

/* ---------- Product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, border-color .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-4px); border-color: rgba(46, 169, 224, .55); box-shadow: var(--shadow), 0 0 40px -10px rgba(46, 169, 224, .35); }
.product-card-link { color: var(--text); flex: 1; }
.product-card-link:hover { color: var(--text); }
.product-card-body { padding: 16px 18px 6px; }
.product-card-body h3 { margin: 10px 0 4px; }
.product-card-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px 18px; }
.price { font-family: var(--mono); font-weight: 700; color: #fff; }
.price-lg { font-size: 2rem; }

/* ---------- Features ---------- */
.features-band { background: linear-gradient(180deg, transparent, rgba(46, 169, 224, .05), transparent); padding-bottom: 60px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { padding: 24px; border-left: 2px solid var(--line-2); }
.feature:hover { border-left-color: var(--brand); }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-dim); border: 1px solid rgba(46, 169, 224, .3); margin-bottom: 14px; }
.feature-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--brand-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.center-lead { max-width: 640px; margin: 0 auto; }
p.center { text-align: center; margin-top: 18px; }

/* ---------- Consent cards showcase ---------- */
.consent-band { display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: center; padding: 34px; }
.consent-band h2 { margin-bottom: 10px; }
.consent-legend { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: #b9c6db; }
.consent-legend li { display: flex; align-items: center; gap: 7px; }
.cc-dot { width: 10px; height: 10px; border-radius: 3px; }
.consent-cards { display: flex; flex-wrap: wrap; gap: 10px; }
.cc { font-family: var(--mono); font-weight: 700; font-size: .8rem; letter-spacing: .06em; padding: 9px 14px; border-radius: 9px; border: 1px solid; white-space: nowrap; }
.cc-red, .cc-dot.cc-red { color: #fecaca; background: rgba(239, 68, 68, .14); border-color: rgba(239, 68, 68, .55); }
.cc-amber, .cc-dot.cc-amber { color: #fde68a; background: rgba(245, 158, 11, .14); border-color: rgba(245, 158, 11, .55); }
.cc-green, .cc-dot.cc-green { color: #bbf7d0; background: rgba(34, 197, 94, .14); border-color: rgba(34, 197, 94, .55); }
.cc-blue, .cc-dot.cc-blue { color: #bae6fd; background: rgba(46, 169, 224, .16); border-color: rgba(46, 169, 224, .6); }
.cc-dot.cc-red { background: #ef4444; } .cc-dot.cc-amber { background: #f59e0b; }
.cc-dot.cc-green { background: #22c55e; } .cc-dot.cc-blue { background: var(--brand); }

/* ---------- Battery comparison ---------- */
.battery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 820px; margin: 0 auto; }
.battery h3 { font-size: 2rem; margin: 12px 0 6px; color: #fff; }
.battery .kv dd { color: var(--brand-2); font-weight: 700; }
.battery p { margin: 0; }
.battery-max { border-color: rgba(46, 169, 224, .5); box-shadow: var(--shadow), 0 0 40px -12px rgba(46, 169, 224, .45); }

/* ---------- Lookup band ---------- */
.lookup-band { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; border-color: rgba(46, 169, 224, .35); background: linear-gradient(120deg, rgba(46, 169, 224, .12), rgba(12, 19, 34, .9) 55%); }
.lookup-band p { margin: 0; }
.lookup-form { display: flex; gap: 10px; }
.lookup-form .input { width: 280px; text-transform: uppercase; }

/* ---------- Forms ---------- */
.input, select.input, textarea.input {
  width: 100%; background: #060b16; border: 1px solid var(--line-2); color: var(--text); border-radius: 10px;
  padding: 11px 13px; font: inherit; font-size: .95rem; transition: border-color .2s, box-shadow .2s;
}
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(46, 169, 224, .2); }
textarea.input { resize: vertical; }
label { display: grid; gap: 6px; font-size: .88rem; color: #b9c6db; font-weight: 500; }
.form-card h3 { margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.span-2 { grid-column: span 2; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 6px 0; }
.check input { margin-top: 4px; accent-color: var(--brand); width: 16px; height: 16px; }
.hp { position: absolute !important; left: -9999px; }

/* ---------- Page head / chips ---------- */
.page-head { padding: 50px 0 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line-2); color: #c2cee0; font-size: .88rem; font-weight: 500; }
.chip:hover { border-color: var(--brand); color: #fff; }
.chip.active { background: var(--brand); border-color: var(--brand); color: #001522; }
.crumbs { color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand-2); }

/* ---------- Product page ---------- */
.product-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.product-media { padding: 10px; }
.product-info h1 { margin: 12px 0 8px; font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.price-row { display: flex; align-items: baseline; gap: 14px; margin: 22px 0 8px; }
.stock-line { margin-bottom: 22px; color: #c2cee0; }
.buy-form { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.qty { display: inline-flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #060b16; }
.qty button { background: none; border: 0; color: var(--text); width: 38px; font-size: 1.1rem; cursor: pointer; }
.qty button:hover { background: var(--panel-2); color: var(--brand-2); }
.qty input { width: 48px; text-align: center; background: none; border: 0; color: var(--text); font: inherit; font-family: var(--mono); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-box { margin-bottom: 22px; }
.buy-box .buy-form { margin-bottom: 0; }
.etsy-alt { margin: 10px 0 0; }
.btn-etsy svg { flex: none; }
.perks { list-style: none; padding: 16px 0 0; margin: 0; border-top: 1px solid var(--line); display: grid; gap: 8px; color: #b9c6db; }
.perks li::before { content: "▸ "; color: var(--brand); }
.product-details { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; margin-top: 40px; }
.prose p, .prose li { color: #c8d3e4; }
.prose h2 { margin-top: 1.2em; }
.prose h2:first-child { margin-top: 0; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 0; border-bottom: 1px dashed var(--line-2); font-size: .9rem; vertical-align: top; }
.spec-table th { color: var(--muted); font-weight: 500; padding-right: 16px; width: 40%; }

/* ---------- Cart / checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.cart-lines { padding: 8px 20px; }
.cart-line { display: grid; grid-template-columns: 84px 1fr auto 90px 34px; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line-info { display: grid; }
.cart-line-info a { color: var(--text); }
.cart-line .price { text-align: right; }
.cart-actions { padding: 14px 0 8px; text-align: right; }
.summary { position: sticky; top: 90px; display: grid; gap: 12px; }
.summary h3 { margin: 0; }
.summary .total { border-top: 1px solid var(--line); padding-top: 12px; font-weight: 700; font-size: 1.1rem; }

.steps { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.steps li { padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--muted); display: grid; font-weight: 600; background: var(--panel); }
.steps li span { font-size: .75rem; }
.steps li.done { border-color: rgba(46, 169, 224, .5); color: #fff; background: var(--brand-dim); }
.steps li.done span { color: var(--brand); }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.table th { color: var(--muted); font-weight: 500; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.table .num { text-align: right; font-family: var(--mono); }
.table tfoot th { color: var(--text); font-size: .95rem; text-transform: none; letter-spacing: 0; }

/* ---------- Support ---------- */
.support-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.tile { display: grid; gap: 4px; color: var(--text); transition: border-color .2s, transform .2s; }
.tile:hover { border-color: var(--brand); transform: translateY(-2px); color: var(--text); }
.tile-no { color: var(--brand); font-size: .8rem; }
.fw-list { display: grid; gap: 16px; }
.fw-card { padding: 20px; }
.fw-head { display: grid; grid-template-columns: 90px 1fr auto; gap: 18px; align-items: center; }
.fw-head h3, .fw-head p { margin: 0; }
.fw-thumb { width: 90px; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.fw-releases { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.fw-releases summary { cursor: pointer; color: var(--brand-2); }
.fw-release { padding: 16px 0; border-bottom: 1px dashed var(--line-2); }
.fw-release:last-child { border-bottom: 0; }
.fw-release .tag { margin: 0 6px; }
.changelog { color: #b9c6db; margin: 10px 0; padding-left: 12px; border-left: 2px solid var(--line-2); }
.sha { color: #8a9ab5; overflow-wrap: anywhere; margin-top: 6px; }
.sha code { cursor: copy; color: #9fb4d1; }
.sha code.copied { color: var(--ok); }
.howto { margin-top: 20px; }
.howto ol { margin: 0; padding-left: 20px; color: #c8d3e4; display: grid; gap: 6px; }

.serial-title { font-size: clamp(1.4rem, 4vw, 2.4rem); color: var(--brand-2); word-break: break-all; }
.device-card { display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: center; margin-bottom: 30px; }
.device-card .fw-thumb { width: 160px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 10px 0 14px; }
.kv dt { color: var(--muted); font-size: .88rem; }
.kv dd { margin: 0; }

/* ---------- Web flasher ---------- */
.flash-card { margin-bottom: 30px; border-color: rgba(46, 169, 224, .45); background: linear-gradient(135deg, rgba(46, 169, 224, .13), rgba(12, 19, 34, .92) 50%); }
.flash-head { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }
.flash-head h2 { margin-bottom: 6px; }
.flash-head .eyebrow { margin-bottom: 4px; }
.flash-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-dim); border: 1px solid rgba(46, 169, 224, .4); box-shadow: 0 0 30px -6px rgba(46, 169, 224, .6); }
.flash-icon svg { width: 26px; height: 26px; fill: var(--brand-2); }
.flash-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin: 18px 0 8px 74px; }
.flash-controls label { min-width: 240px; }
.flash-controls p { margin: 0 0 10px; }
.flash-controls esp-web-install-button { display: block; }
.flash-controls .notice { margin: 0; max-width: 520px; }
.flash-steps { margin: 14px 0 0 74px; padding-left: 18px; color: #c8d3e4; display: grid; gap: 4px; }
.flash-help { margin: 14px 0 0 74px; color: #b9c6db; }
.flash-help summary { cursor: pointer; color: var(--brand-2); }
.flash-help ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; }
/* ESP Web Tools dialog in the site colours */
esp-web-install-button { --mdc-theme-primary: #2ea9e0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); padding: 0 18px; }
.faq details[open] { border-color: rgba(46, 169, 224, .4); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--brand); }
.faq details[open] summary::after { content: "-"; }
.faq p { color: #b9c6db; }

/* ---------- Error page ---------- */
.error-page { text-align: center; padding: 100px 20px; }
.err-code { font-size: 6rem; font-weight: 700; color: var(--brand); text-shadow: 0 0 40px rgba(46, 169, 224, .5); line-height: 1; margin-bottom: 20px; }
.error-page .lead { margin: 0 auto 24px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 80px; background: rgba(5, 8, 15, .7); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; padding: 50px 20px 30px; }
.footer-grid h4 { font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--brand); margin-bottom: 12px; }
.footer-grid a:not(.brand) { display: block; color: #9fb0c9; padding: 3px 0; font-size: .92rem; }
.footer-grid a:not(.brand):hover { color: #fff; }
.footer-grid p { margin-top: 14px; max-width: 320px; }
.footer-bottom { display: flex; justify-content: space-between; padding: 18px 20px 30px; border-top: 1px solid var(--line); color: #6f809c; }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .product-layout, .product-details, .cart-layout { grid-template-columns: 1fr; }
  .product-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { max-width: 380px; margin: 0 auto; order: -1; }
  .hero-circuit { display: none; }
  .lookup-band, .consent-band { grid-template-columns: 1fr; }
  .consent-band { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .summary { position: static; }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px 16px 18px; background: rgba(5, 8, 15, .97); border-bottom: 1px solid var(--line); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .cart-count { top: 6px; right: auto; left: 34px; }
  .support-tiles, .steps { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .lookup-form { flex-direction: column; }
  .lookup-form .input { width: 100%; }
  .fw-head { grid-template-columns: 70px 1fr; }
  .fw-head .btn { grid-column: span 2; }
  .fw-thumb { width: 70px; }
  .device-card { grid-template-columns: 1fr; }
  .flash-head { grid-template-columns: 1fr; }
  .flash-controls, .flash-steps, .flash-help { margin-left: 0; }
  .cart-line { grid-template-columns: 70px 1fr auto; }
  .cart-line .visual-thumb { width: 70px; }
  .cart-line .qty { grid-column: 2; }
  .cart-line .price { grid-column: 3; grid-row: 1; }
  .cart-line .icon-btn { grid-column: 3; grid-row: 2; justify-self: end; }
  .section { padding-top: 50px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}
@media (max-width: 600px) {
  .product-grid, .feature-grid, .battery-grid { grid-template-columns: 1fr; }
  .cc { font-size: .72rem; padding: 7px 10px; }
}
@media (max-width: 480px) {
  .footer-grid, .support-tiles { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
}
