/* =========================================================
   WiFiTally.eu — styles
   Colors & fonts are defined once here in :root.
   ========================================================= */
:root {
  --bg: #0a0b10;
  --bg-2: #101118;
  --card: #12131a;
  --card-2: #171821;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f4f4f6;
  --muted: #9a9ba6;
  --dim: #6c6d78;
  --accent: #ff255b;          /* brand pink (logo) */
  --accent-hover: #ff4776;
  --accent-ink: #ff4d7a;       /* pink used for small text/links */
  --accent-glow: rgba(0, 0, 0, .55);   /* button shadow (gray) */
  --header-bg: rgba(10, 11, 16, .78);
  --hover: rgba(255, 255, 255, .06);
  --hover-soft: rgba(255, 255, 255, .02);
  --text-2: #c9cad2;
  --hero-muted: #8b8c96;
  --error: #ff8aa8;
  --todo-bg: rgba(255, 200, 0, .12);
  --todo-fg: #ffd666;
  --photo-border: transparent;
  --green: #22c55e;
  --radius: 18px;
  --radius-sm: 10px;
  --container: 1136px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-head: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); letter-spacing: -.025em; line-height: 1.08; }
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
.center { text-align: center; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ---------- icons ---------- */
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i--accent { color: var(--accent); }
.card > .i { width: 24px; height: 24px; margin-bottom: 20px; }

/* ---------- type ---------- */
.eyebrow { display: block; font: 500 11px/1 var(--font-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 700; margin-bottom: 40px; max-width: 760px; }
.h3 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; margin-bottom: 14px; }
.lead { color: var(--muted); font-size: 17px; }
.note { color: var(--dim); font-size: 13px; margin-top: 20px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: var(--radius-sm);
  font-weight: 500; font-size: 15px; border: 1px solid transparent;
  transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 30px -10px var(--accent-glow); }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn--ghost { background: var(--hover-soft); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--hover); }
.btn--sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn--lg { height: 48px; padding: 0 22px; }
.btn--block { width: 100%; white-space: normal; text-align: center; min-height: 44px; height: auto; padding-top: 10px; padding-bottom: 10px; line-height: 1.3; }
.btn[disabled], .btn.is-disabled { background: var(--card-2); color: var(--muted); border-color: var(--line); box-shadow: none; cursor: default; transform: none; }
.icon-btn { background: none; border: 1px solid var(--line-2); border-radius: 8px; width: 34px; height: 34px; display: inline-grid; place-items: center; }
.icon-btn:hover { background: var(--hover); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); transition: color .15s, gap .15s; }
.link-arrow:hover { color: var(--text); gap: 9px; }
.link-arrow--accent { color: var(--accent-ink); }
.link-arrow .i { width: 15px; height: 15px; }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.header__logo img { height: 34px; width: auto; }
.nav { display: flex; gap: 28px; margin: 0 auto; font-size: 14px; color: var(--muted); }
.nav a:hover { color: var(--text); }
.header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; padding: 2px; }
.lang button { background: none; border: 0; font: 500 11px/1 var(--font-mono); letter-spacing: .08em; padding: 7px 8px; border-radius: 6px; color: var(--muted); }
.lang button.is-active { background: var(--hover); color: var(--text); }
.cart-btn { position: relative; }
.cart-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #fff; color: var(--accent); font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }
.menu-btn { display: none; background: none; border: 1px solid var(--line-2); border-radius: 8px; width: 36px; height: 36px; place-items: center; }

@media (max-width: 900px) {
  .menu-btn { display: inline-grid; }
  .nav { position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; transform: translateY(calc(-100% - 80px)); visibility: hidden; transition: transform .25s, visibility .25s; margin: 0; }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--text); }
}
@media (max-width: 480px) {
  .header__logo img { height: 24px; }
  .cart-btn span[data-i18n] { display: none; }
  .header__inner { gap: 10px; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 110px 0 120px; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero__glow { position: absolute; width: 700px; height: 500px; right: -150px; top: -200px; background: radial-gradient(circle, rgba(255, 255, 255, .06), transparent 65%); filter: blur(20px); }
.hero .container { position: relative; }
.pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 99px; padding: 6px 12px; font: 500 11px/1 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; margin-bottom: 28px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero__title { font-size: clamp(40px, 7vw, 76px); font-weight: 700; letter-spacing: -.035em; margin-bottom: 28px; }
.hero__title .muted { color: var(--hero-muted); }
.hero__lead { max-width: 560px; color: var(--muted); font-size: 18px; margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.compat { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.compat .eyebrow { margin: 0 8px 0 0; }
.chip { border: 1px solid var(--line-2); border-radius: 4px; padding: 4px 9px; font-size: 13px; color: var(--text-2); }
@media (max-width: 560px) {
  .hero { padding: 70px 0 80px; }
  .hero__cta .btn { width: 100%; }
}

/* ---------- sections ---------- */
.section { padding: 110px 0; }
.section--tight { padding-top: 0; }
@media (max-width: 640px) { .section { padding: 72px 0; } }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.section__head .h2 { margin-bottom: 0; }

.studio { border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 50% 55%, rgba(255, 255, 255, .05), transparent 60%); }
.studio__img { margin: 30px auto 30px; width: 100%; max-width: 1100px; }

.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--products { grid-template-columns: repeat(3, 1fr); }
.grid--buy { grid-template-columns: 1.5fr 1fr; }
@media (max-width: 960px) { .grid--products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid--3, .grid--2, .grid--buy { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .grid--products { grid-template-columns: 1fr; } }

.card { background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.card h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: 14.5px; }
.step__num { position: absolute; right: 22px; top: 22px; font: 12px var(--font-mono); color: var(--dim); }

/* ---------- product cards ---------- */
.product { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.product.is-highlight { border-color: rgba(255, 37, 91, .35); }
.product__media { position: relative; aspect-ratio: 4 / 3; background: #fff; border-bottom: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; cursor: zoom-in; }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product__media:hover img { transform: scale(1.04); }
.product__photos { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; background: rgba(10, 11, 16, .78); color: #fff; font: 500 12px/1 var(--font); padding: 6px 9px; border-radius: 99px; }
.product__photos .i { width: 13px; height: 13px; }
.product__tag { position: absolute; left: 14px; top: 14px; font: 600 10px/1 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; background: #11131a; color: #fff; border-radius: 4px; padding: 7px 9px; }
.product__soon { position: absolute; right: 14px; top: 14px; font: 600 10px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; background: var(--accent); color: #fff; border-radius: 4px; padding: 6px 8px; }
.product__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.product__body h3 { font-size: 21px; margin-bottom: 8px; }
.product__short { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.product__features { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; font-size: 14px; }
.product__features li { display: flex; gap: 9px; align-items: flex-start; }
.product__features .i { width: 15px; height: 15px; color: var(--accent); margin-top: 4px; }
.product__buy { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.price { font: 700 24px/1 var(--font-head); letter-spacing: -.02em; }
.price small { display: block; font: 400 11px/1.4 var(--font); color: var(--dim); letter-spacing: 0; margin-top: 4px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 14px; }
.table th, .table td { text-align: left; padding: 18px 20px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); vertical-align: top; }
.table th:first-child, .table td:first-child { border-left: 0; color: var(--text-2); }
.table tr:last-child td { border-bottom: 0; }
.table thead th { font: 500 10px/1.3 var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.table thead th strong { display: block; font: 600 14px var(--font); letter-spacing: 0; text-transform: none; color: var(--text); margin-top: 6px; }
.table .is-hl { background: rgba(255, 37, 91, .06); }
.table thead .is-hl { color: var(--accent); }
.table .i { width: 16px; height: 16px; }
.table .yes { color: var(--accent); }
.table .no { color: var(--dim); }
.table--mono td { font-family: var(--font-mono); font-size: 13px; }
.swipe-hint { display: none; color: var(--dim); font-size: 13px; margin: -24px 0 14px; }
@media (max-width: 760px) { .swipe-hint { display: block; } }

/* ---------- topology ---------- */
.topology { margin-top: 30px; display: grid; grid-template-columns: 1fr 1.5fr; gap: 30px; align-items: center; padding: 40px; }
@media (max-width: 860px) { .topology { grid-template-columns: 1fr; padding: 26px; } }

/* ---------- use cases ---------- */
.usecase { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; }
.usecase img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.usecase:hover img { transform: scale(1.04); }
.usecase::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(10, 11, 16, .92)); }
.usecase > div { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; }
.usecase h3 { font-size: 23px; font-weight: 600; margin-bottom: 6px; color: #fff; }
.usecase p { color: #c3c4cc; font-size: 14px; max-width: 420px; }

/* ---------- quotes ---------- */
.quote { margin: 0; padding: 32px; display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 24px; color: var(--text-2); font-size: 16px; line-height: 1.65; flex: 1; }
.quote figcaption { border-top: 1px solid var(--line); padding-top: 18px; font-size: 14px; }
.quote figcaption span { display: block; color: var(--muted); font-size: 12.5px; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; }
.faq .h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 16px; }
.faq a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; gap: 20px; } }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative; font-weight: 500; font-size: 17px; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: ""; position: absolute; right: 6px; top: 27px; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.faq__list details[open] summary::after { transform: rotate(-135deg); top: 31px; }
.faq__list details p { color: var(--muted); padding: 0 30px 22px 0; font-size: 15px; }

/* ---------- buy cards ---------- */
.buy { padding: 38px; }
.buy--main { background: linear-gradient(180deg, var(--card-2), var(--card)); }
.buy p { margin-bottom: 20px; max-width: 460px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 60px 0 30px; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer__grid > div { display: flex; flex-direction: column; gap: 8px; }
.footer__grid a { color: var(--muted); }
.footer__grid a:hover { color: var(--text); }
.footer__logo { width: 240px; margin-bottom: 14px; }
.footer__grid .muted { max-width: 360px; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px; color: var(--muted); font-size: 13px; }
.footer__social { display: flex; gap: 14px; }
.footer__social a:hover { color: var(--text); }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- cart drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .25s; }
.drawer__panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(420px, 100%); background: var(--bg-2); border-left: 1px solid var(--line); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-size: 18px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer__foot { padding: 20px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.empty { color: var(--muted); text-align: center; padding: 60px 0; }

.line-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.line-item__name { font-weight: 500; font-size: 15px; line-height: 1.3; }
.line-item__price { color: var(--muted); font-size: 13px; }
.line-item__total { font-weight: 600; text-align: right; }
.line-item__remove { background: none; border: 0; color: var(--dim); font-size: 12px; padding: 4px 0 0; text-decoration: underline; }
.line-item__remove:hover { color: var(--accent); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 8px; margin-top: 8px; }
.qty button { background: none; border: 0; width: 28px; height: 28px; display: grid; place-items: center; }
.qty button .i { width: 14px; height: 14px; }
.qty span { min-width: 24px; text-align: center; font-size: 14px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #fff; color: #111; padding: 10px 18px; border-radius: 10px; font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: .25s; z-index: 200; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- checkout & legal pages ---------- */
.page { padding: 60px 0 100px; }
.page h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 30px; }
.checkout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.checkout__summary { position: sticky; top: 90px; }
@media (max-width: 900px) { .checkout { grid-template-columns: minmax(0, 1fr); } .checkout__summary { order: -1; position: static; } }
.form-section { margin-bottom: 30px; }
.form-section h2 { font-size: 18px; font-weight: 600; margin-bottom: 16px; letter-spacing: -.01em; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius-sm); color: var(--text); font: inherit; font-size: 15px; padding: 11px 13px; outline: none; transition: border-color .15s; }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field select option { background: var(--bg-2); }
.options { display: grid; gap: 10px; }
.option { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 14px; cursor: pointer; background: var(--card); }
.option:has(input:checked) { border-color: var(--accent); background: rgba(255, 37, 91, .06); }
.option input { accent-color: var(--accent); width: 17px; height: 17px; margin: 0; }
.option span { flex: 1; font-size: 15px; }
.option em { font-style: normal; color: var(--muted); font-size: 14px; }
.option.is-disabled { opacity: .45; cursor: not-allowed; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.check input { accent-color: var(--accent); margin-top: 4px; }
.check a { color: var(--text); text-decoration: underline; }
.totals { display: grid; gap: 8px; font-size: 14px; color: var(--muted); padding: 16px 0; border-top: 1px solid var(--line); }
.totals .grand { color: var(--text); font-size: 18px; font-weight: 700; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 6px; }
.form-error { color: var(--error); font-size: 14px; margin: 10px 0; }
.success { text-align: center; max-width: 560px; margin: 40px auto; }
.success .badge { width: 64px; height: 64px; border-radius: 50%; background: rgba(34, 197, 94, .15); color: var(--green); display: grid; place-items: center; margin: 0 auto 20px; }
.success .badge .i { width: 30px; height: 30px; }
.success h1 { margin-bottom: 14px; }
.success p { color: var(--muted); margin-bottom: 10px; }
.hp { position: absolute; left: -9999px; }
.paybox { margin-top: 6px; }
.paybox__title { font-weight: 600; margin-bottom: 4px; }
.paybox__note { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.paybox__msg { color: var(--muted); font-size: 14px; margin-top: 10px; }
#paypalButtons { background: #fff; border-radius: 12px; padding: 12px 12px 4px; min-height: 0; }
#paypalButtons:empty { display: none; }
.paybox.is-disabled #paypalButtons { opacity: .4; pointer-events: none; }

/* shop callout */
.callout { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); background: rgba(255, 37, 91, .05); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 22px; }
.callout .i { width: 22px; height: 22px; margin-top: 2px; }
.callout p { color: var(--muted); font-size: 15px; }
.callout strong { color: var(--text); font-weight: 600; }

/* specs (single model) */
.table--specs { min-width: 0; }
.table--specs th { width: 34%; font: 400 14px var(--font); color: var(--muted); text-transform: none; letter-spacing: 0; }
.table--specs td { font-family: var(--font-mono); font-size: 13.5px; color: var(--text); }
@media (max-width: 560px) { .table--specs th, .table--specs td { display: block; width: 100%; border-left: 0; } .table--specs th { padding-bottom: 2px; border-bottom: 0; } .table--specs td { padding-top: 0; } }

.legal { max-width: 760px; }
.legal h2 { font-size: 20px; margin: 34px 0 10px; letter-spacing: -.01em; }
.legal p, .legal li { color: var(--text-2); font-size: 15px; margin-bottom: 10px; }
.legal .todo { background: var(--todo-bg); color: var(--todo-fg); padding: 1px 6px; border-radius: 4px; }

/* ---------- hero photo ---------- */
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
@media (min-width: 901px) { .hero__grid .hero__title { font-size: clamp(44px, 5.4vw, 66px); } }
.hero__photo { position: relative; border: 0; padding: 0; background: #fff; border-radius: 28px; overflow: hidden; aspect-ratio: 1; cursor: zoom-in; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255,255,255,.06); transform: rotate(1.5deg); transition: transform .4s; }
.hero__photo:hover { transform: rotate(0deg) scale(1.01); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge { position: absolute; left: 18px; top: 18px; display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; font: 600 11px/1 var(--font-mono); letter-spacing: .2em; padding: 8px 12px; border-radius: 6px; }
.hero__badge .dot { background: #fff; box-shadow: 0 0 8px #fff; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__photo { max-width: 420px; width: 100%; margin: 0 auto; transform: none; }
}

/* ---------- LED guide ---------- */
.leds { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.leds__main, .led-tile { border: 1px solid var(--photo-border); padding: 0; background: #fff; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; position: relative; display: block; width: 100%; }
.leds__main img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.leds__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.led-tile img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; transition: transform .5s; }
.led-tile:hover img, .leds__main:hover img { transform: scale(1.03); }
.led-tile__label { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; gap: 9px; align-items: center; text-align: left; background: rgba(10, 11, 16, .86); color: #fff; font-size: 13px; line-height: 1.3; padding: 9px 11px; border-radius: 10px; }
.led { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.led--red { background: #ff2a3d; box-shadow: 0 0 10px #ff2a3d; }
.led--green { background: #22e06a; box-shadow: 0 0 10px #22e06a; }
.led--blue { background: #3b6bff; box-shadow: 0 0 10px #3b6bff; animation: pulse 1.2s infinite; }
@media (max-width: 860px) { .leds { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .led-tile__label { font-size: 12px; padding: 7px 9px; } .leds__grid { gap: 10px; } }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(5, 6, 9, .94); display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; grid-template-rows: minmax(0, 1fr) auto; align-items: center; padding: 20px 10px 14px; }
.lightbox[hidden] { display: none !important; }
.lightbox__figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 0; }
.lightbox__figure img { max-width: 100%; max-height: calc(100% - 40px); min-height: 0; object-fit: contain; border-radius: 14px; background: #fff; }
.lightbox__figure figcaption { color: #c3c4cc; font-size: 14px; text-align: center; }
.lightbox__close { position: absolute; right: 16px; top: 16px; color: #fff; background: rgba(255,255,255,.06); z-index: 1; }
.lightbox__nav { justify-self: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255,255,255,.06); color: #fff; display: grid; place-items: center; }
.lightbox__nav:hover { background: rgba(255,255,255,.14); }
.lightbox__nav--prev .i { transform: rotate(180deg); }
.lightbox__thumbs { grid-column: 1 / -1; display: flex; gap: 8px; overflow-x: auto; padding: 12px 4px 2px; justify-content: safe center; scrollbar-width: none; }
.lightbox__thumbs::-webkit-scrollbar { display: none; }
.lightbox__thumbs button { flex: none; width: 58px; height: 58px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: #fff; opacity: .55; }
.lightbox__thumbs button.is-active { border-color: var(--accent); opacity: 1; }
.lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) {
  .lightbox { grid-template-columns: minmax(0, 1fr); padding: 60px 10px 12px; }
  .lightbox__nav { display: none; }
  .lightbox__figure { grid-column: 1; }
}

/* ---------- logo ---------- */
.logo-light { display: none; }

/* ---------- user menu ---------- */
.user-menu { position: relative; }
.user-btn { background: none; border: 0; padding: 0; width: 38px; height: 38px; display: grid; place-items: center; color: var(--text); border-radius: 50%; }
.user-btn .i { width: 24px; height: 24px; stroke-width: 1.8; }
.user-btn:hover, .user-btn[aria-expanded="true"] { color: var(--accent); }
.user-menu__panel { position: absolute; right: 0; top: calc(100% + 12px); width: 280px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 8px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .45); z-index: 60; }
.um-row { padding: 10px 10px 12px; border-bottom: 1px solid var(--line); }
.um-label { display: block; font: 500 10px/1 var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--hover); border-radius: 9px; padding: 3px; }
.seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: none; border-radius: 7px; padding: 8px 6px; font-size: 13px; color: var(--muted); }
.seg button .i { width: 15px; height: 15px; }
.seg button.is-active { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.um-link { display: flex; align-items: center; gap: 10px; padding: 12px 10px; border-radius: 9px; font-size: 15px; font-weight: 500; margin-top: 4px; }
.um-link:hover { background: var(--hover); }
.um-link .i { color: var(--accent); }
.um-account { display: flex; gap: 10px; align-items: center; padding: 10px 10px 12px; border-bottom: 1px solid var(--line); }
.um-account > .i { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--hover); color: var(--accent); flex: none; }
.um-account strong { display: block; font-size: 14px; font-weight: 600; word-break: break-all; }
.um-account .um-label { margin-bottom: 4px; }
.um-logout { width: 100%; background: none; border: 0; text-align: left; margin-top: 0; color: var(--muted); font-weight: 500; }
.um-logout .i { color: var(--muted) !important; }
.um-logout:hover { color: var(--text); }
.user-btn { position: relative; }
.user-btn.is-signed::after { content: ""; position: absolute; right: 6px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg-2); }
.page { min-height: calc(100vh - 64px - 130px); }
.um-link__arrow { margin-left: auto; width: 15px !important; height: 15px !important; color: var(--muted) !important; }
@media (max-width: 480px) { .user-menu__panel { position: fixed; left: 12px; right: 12px; top: 70px; width: auto; } }

/* =========================================================
   LIGHT THEME  — <html data-theme="light">
   ========================================================= */
:root {
  --bg: #f6f6f8;
  --bg-2: #ffffff;
  --card: #ffffff;
  --card-2: #ffffff;
  --line: rgba(17, 19, 26, .09);
  --line-2: rgba(17, 19, 26, .16);
  --text: #11131a;
  --text-2: #33353f;
  --muted: #5e606b;
  --dim: #8a8c97;
  --hero-muted: #9a9ca7;
  --accent-ink: #e0124a;
  --accent-glow: rgba(17, 19, 26, .28);
  --header-bg: rgba(255, 255, 255, .82);
  --hover: rgba(17, 19, 26, .06);
  --hover-soft: rgba(255, 255, 255, .7);
  --error: #d1123f;
  --todo-bg: #fff3c4;
  --todo-fg: #7a5a00;
  --photo-border: rgba(17, 19, 26, .09);
  color-scheme: light;
}
:root .logo-dark { display: none; }
:root .logo-light { display: block; }
:root .user-menu__panel { box-shadow: 0 24px 60px -24px rgba(17, 19, 26, .3); }
:root .card { box-shadow: 0 1px 2px rgba(17, 19, 26, .04), 0 8px 30px -18px rgba(17, 19, 26, .18); }
:root .hero { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
:root .hero__glow { background: radial-gradient(circle, rgba(17, 19, 26, .06), transparent 65%); }
:root .hero__photo { box-shadow: 0 40px 90px -40px rgba(17, 19, 26, .35), 0 0 0 1px var(--line); }
:root .pill { background: #fff; }
:root .chip { background: #fff; }
:root .studio { background: #fff; }
:root .callout { background: #fff0f4; border-color: rgba(255, 37, 91, .2); }
:root .buy--main { background: #fff; }
:root .footer { background: #fff; }
:root .usecase { border-color: transparent; }
:root .hero__title .muted { color: var(--accent); }
/* the network diagram is drawn for a dark background — keep that card dark */
:root .topology { background: #11131a; border-color: #11131a; color: #f4f4f6; }
:root .topology p { color: #a3a5b0; }
:root .topology .eyebrow { color: #a3a5b0; }
:root .option:has(input:checked) { background: #fff0f4; }
:root .success .badge { background: #e7f8ee; }

/* ---------- my orders ---------- */
.orders-page { max-width: 760px; }
.ord-login { max-width: 520px; padding: 30px; }
.ord-login > p { color: var(--muted); margin-bottom: 20px; font-size: 15px; }
.ord-login .field { margin-bottom: 14px; }
.ord-sent { display: flex; gap: 12px; align-items: flex-start; margin-top: 4px; padding: 14px; border-radius: var(--radius-sm); background: rgba(34, 197, 94, .1); }
.ord-sent .i { color: var(--green); margin-top: 3px; }
.ord-sent p { color: var(--text); font-size: 14.5px; }
.ord-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; font-size: 14px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.ord-list { display: grid; gap: 14px; }
.ord { padding: 22px; }
.ord__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ord__no { font-weight: 700; font-size: 17px; }
.ord__date { color: var(--muted); font-size: 13px; }
.status { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; }
.status--paid { background: rgba(255, 37, 91, .12); color: var(--accent-ink); }
.status--shipped { background: rgba(245, 158, 11, .15); color: #b86e00; }
.status--done { background: rgba(34, 197, 94, .14); color: #15803d; }
.status--cancelled { background: var(--hover); color: var(--muted); }
.ord__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.ord__items li { display: flex; justify-content: space-between; gap: 12px; }
.ord__items li.muted { color: var(--muted); }
.ord__total { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; font-weight: 600; }
.ord-empty { text-align: center; padding: 40px 20px; color: var(--muted); }

/* ---------- product photo slider (swipe on phones) ---------- */
.product__track { display: flex; width: 100%; height: 100%; overflow: hidden; }
.product__track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; }
.product__dots { display: none; }
@media (max-width: 760px), (pointer: coarse) {
  .product__media { cursor: default; }
  .product__media:hover img { transform: none; }
  .product__track { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .product__track::-webkit-scrollbar { display: none; }
  .product__track img { scroll-snap-align: center; scroll-snap-stop: always; }
  .product__photos { display: none; }
  .product__dots { display: flex; position: absolute; left: 0; right: 0; bottom: 10px; justify-content: center; gap: 6px; pointer-events: none; }
  .product__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(17, 19, 26, .25); transition: width .2s, background .2s; }
  .product__dots i.is-active { width: 18px; border-radius: 3px; background: var(--accent); }
}

/* ---------- hero: "live" tally animation (standby → preview → program) ---------- */
.hero__photo--live .frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__photo--live .frame--off { position: relative; }
.hero__photo--live .frame--pvw { animation: tally-pvw 7.5s infinite; }
.hero__photo--live .frame--pgm { animation: tally-pgm 7.5s infinite; }
.hero__photo--live .hero__badge { transition: none; }
.badge--off { background: #5e606b; animation: tally-off 7.5s infinite; }
.badge--pvw { background: #16a34a; animation: tally-pvw 7.5s infinite; }
.badge--pgm { animation: tally-pgm 7.5s infinite; }
@keyframes tally-off { 0%, 31% { opacity: 1; } 33%, 98% { opacity: 0; } 100% { opacity: 1; } }
@keyframes tally-pvw { 0%, 31% { opacity: 0; } 33%, 64% { opacity: 1; } 66%, 100% { opacity: 0; } }
@keyframes tally-pgm { 0%, 64% { opacity: 0; } 66%, 98% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero__photo--live .frame--pvw, .badge--off, .badge--pvw { animation: none; opacity: 0; }
  .hero__photo--live .frame--pgm, .badge--pgm { animation: none; opacity: 1; }
}

/* ---------- hero: clean tally label (option F), overlapping the photo corner ---------- */
.hero__photo--live { overflow: visible; }
.hero__photo--live .frame { border-radius: 28px; }
.hero__photo--live .hero__badge {
  left: -20px; top: -20px; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  background: #fff; color: #11131a; padding: 12px 18px 13px 15px; border-radius: 14px;
  box-shadow: 0 14px 30px -14px rgba(17, 19, 26, .35), 0 0 0 1px rgba(17, 19, 26, .08);
  font: inherit; letter-spacing: normal; text-align: left;
}
.hero__photo--live .hero__badge small { font: 600 9px/1 var(--font-mono); letter-spacing: .28em; color: #8a8c97; }
.hero__photo--live .hero__badge b { display: flex; align-items: center; gap: 9px; font: 800 20px/1 var(--font); letter-spacing: .08em; }
.hero__photo--live .hero__badge i { width: 12px; height: 12px; border-radius: 50%; background: #6b6e7a; }
.hero__photo--live .badge--pvw i { background: #16a34a; }
.hero__photo--live .badge--pgm i { background: var(--accent); }
@media (max-width: 560px) {
  .hero__photo--live .hero__badge { left: -8px; top: -14px; padding: 10px 14px 11px 12px; }
  .hero__photo--live .hero__badge b { font-size: 17px; }
}

.user-btn:focus { outline: none; }
.user-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- hero: product cut out from the background (no white card) ---------- */
.hero__photo--cut { background: none !important; box-shadow: none !important; border-radius: 0; transform: none; aspect-ratio: 1; }
.hero__photo--cut:hover { transform: scale(1.015); }
.hero__photo--cut .frame { border-radius: 0; }
.hero__photo--cut .hero__badge { left: 4%; top: 6%; }
@media (max-width: 560px) { .hero__photo--cut .hero__badge { left: 2%; top: 4%; } }

/* hero title: "Wireless tally lights" on one line on desktop */
@media (min-width: 901px) {
  .hero__grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
  .hero__grid .hero__title { font-size: clamp(40px, 4.4vw, 62px); }
  .hero__title [data-i18n="hero.title1"] { white-space: nowrap; }
}
@media (max-width: 900px) {
  .hero__title { font-size: clamp(30px, 10vw, 56px); }
  .hero__title [data-i18n="hero.title1"] { white-space: nowrap; }
}

/* hero title: extra space between line 1 and the pink lines */
.hero__title br { display: none; }
.hero__title > span { display: block; }
.hero__title [data-i18n="hero.title1"] { margin-bottom: .16em; }

/* compatible-with logos */
.compat__logos { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; }
.compat__logos img { width: auto; display: block; }
.compat__logos .logo-bmd { height: 27px; }
.compat__logos .logo-vmix { height: 22px; }
.compat__logos .logo-osee { height: 17px; }
@media (max-width: 560px) {
  .compat { flex-direction: column; align-items: flex-start; gap: 14px; }
  .compat__logos { gap: 22px; }
  .compat__logos .logo-bmd { height: 23px; } .compat__logos .logo-vmix { height: 19px; } .compat__logos .logo-osee { height: 15px; }
}

.h2--wide { max-width: none; }

/* shipping: show only the option valid for the selected country */
#shippingOptions .option.is-disabled { display: none; }

/* orders: tracking + legacy */
.ord__track{margin-top:10px;font-size:14px;color:var(--muted)}
.ord__track a{color:var(--accent);font-weight:600;text-decoration:none;font-variant-numeric:tabular-nums}
.ord__track a:hover{text-decoration:underline}
.ord__legacy{margin-top:8px;font-size:12.5px;color:var(--muted)}
.status--refunded{background:rgba(17,19,26,.06);color:var(--muted)}

/* non-EU duties notice */
.duties-note{display:flex;gap:10px;align-items:flex-start;margin:12px 0 0;padding:12px 14px;border-radius:12px;background:rgba(224,138,0,.09);color:var(--text);font-size:14px;line-height:1.45}
.duties-note .i{width:18px;height:18px;flex:none;margin-top:1px;color:#c27400}

/* product card: smaller photo with white space around it */
.product__media img, .product__track img { box-sizing: border-box; padding: 25px; object-fit: contain; background: #fff; }

/* ---------- guides ---------- */
.guides-page .lead { font-size: 18px; max-width: 640px; margin: -14px 0 34px; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.guide-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s; }
.guide-card:hover { transform: translateY(-3px); }
.guide-card__img { aspect-ratio: 16 / 9; background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; }
.guide-card__img img { width: 100%; height: 100%; object-fit: cover; }
.guide-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.guide-card__body h2 { font-size: 21px; margin: 0; letter-spacing: -.01em; }
.guide-card__body p { color: var(--text-2); margin: 0; font-size: 15px; }
.guide-card__more { margin-top: auto; padding-top: 10px; color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.guide-card__more .i { width: 16px; height: 16px; }
.guide { max-width: 760px; margin: 0 auto; }
.guide__back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: 14px; margin-bottom: 18px; }
.guide__back .i { width: 16px; height: 16px; transform: rotate(180deg); }
.guide__back:hover { color: var(--text); }
.guide h1 { margin-bottom: 22px; }
.guide__cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); margin-bottom: 30px; background: #fff; }
.md { font-size: 17px; line-height: 1.7; color: var(--text-2); }
.md p, .md ul, .md ol, .md blockquote, .md .md-table { margin: 0 0 18px; }
.md h2 { font-size: 25px; color: var(--text); margin: 40px 0 12px; letter-spacing: -.015em; line-height: 1.25; }
.md h3 { font-size: 19px; color: var(--text); margin: 28px 0 8px; }
.md h4 { font-size: 17px; color: var(--text); margin: 22px 0 6px; }
.md strong { color: var(--text); }
.md a { color: var(--accent); font-weight: 500; }
.md ul, .md ol { padding-left: 22px; }
.md li { margin-bottom: 6px; }
.md li::marker { color: var(--accent); }
.md blockquote { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; color: var(--text); }
.md img { max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 34px 0; }
.md code { font-family: "JetBrains Mono", monospace; font-size: .88em; background: rgba(17,19,26,.06); padding: 1px 6px; border-radius: 5px; }
.md-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.md table { width: 100%; border-collapse: collapse; font-size: 15px; }
.md th, .md td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.md th { color: var(--muted); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; background: rgba(17,19,26,.025); }
.md tr:last-child td { border-bottom: 0; }
.md td:first-child { color: var(--text); font-weight: 500; }
.guide__cta { margin-top: 44px; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.guide__cta p { margin: 4px 0 0; }
@media (max-width: 600px) { .md { font-size: 16px; } .md h2 { font-size: 22px; } .md th, .md td { padding: 9px 10px; } }

/* stock availability on product cards */
.avail { display:inline-flex; align-items:center; gap:7px; font-size:13.5px; font-weight:600; margin:2px 0 12px; }
.avail i { width:8px; height:8px; border-radius:50%; background:currentColor; }
.avail--in { color:#15803d; } .avail--low { color:#b45309; } .avail--back { color:#4338ca; } .avail--out { color:#8a8c97; }
