/* ==========================================================================
   SmartCarTech — style.css
   Mobile-first. Layout breakpoints: 768px (tablet), 1024px (desktop).
   Fluid values interpolate between 390px (mobile design) and 1440px (desktop design).
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Colors */
  --c-bg: #04080C;
  --c-card: #0A1118;
  --c-media: #0C1117;
  --c-line: #1C2C35;
  --c-text: #F2F5F7;
  --c-text-2: #B8BDC2;
  --c-muted: #8A9199;
  --c-ring: #6B7A86;
  --c-off: #5B6B78;
  --c-accent: #18E5FE;
  --c-on-accent: #04141A;
  --c-danger: #FF8A8A;

  --accent-06: rgba(24, 229, 254, 0.06);
  --accent-07: rgba(24, 229, 254, 0.07);
  --accent-08: rgba(24, 229, 254, 0.08);
  --accent-10: rgba(24, 229, 254, 0.10);
  --accent-12: rgba(24, 229, 254, 0.12);
  --accent-15: rgba(24, 229, 254, 0.15);
  --accent-25: rgba(24, 229, 254, 0.25);
  --accent-40: rgba(24, 229, 254, 0.40);
  --accent-45: rgba(24, 229, 254, 0.45);

  /* Glow */
  --glow-btn: 0 0 28px rgba(24, 229, 254, 0.4);
  --glow-btn-hover: 0 0 36px rgba(24, 229, 254, 0.55);
  --glow-ring: 0 0 18px var(--accent-40), inset 0 0 10px var(--accent-15);
  --glow-card: 0 0 40px var(--accent-08);
  --glow-panel: 0 0 48px var(--accent-10);

  /* Fonts */
  --f-head: 'Chakra Petch', system-ui, sans-serif;
  --f-body: 'Be Vietnam Pro', system-ui, sans-serif;

  /* Radii */
  --r-btn: 10px;
  --r-opt: 12px;
  --r-card: 16px;
  --r-card-lg: 20px;
  --r-panel: 24px;
  --r-pill: 999px;

  /* Fluid spacing (390px → 1440px) */
  --gutter: clamp(20px, -2.29px + 5.714vw, 80px);
  --section: clamp(60px, 37.71px + 5.714vw, 120px);
  --head-gap: clamp(20px, 12.57px + 1.905vw, 48px);
  --maxw: 1280px;

  /* Fluid type */
  --fs-h1-hero: clamp(36px, 27.09px + 2.286vw, 60px);
  --fs-h1-product: clamp(32px, 26.06px + 1.524vw, 48px);
  --fs-h1-guide: clamp(30px, 21.83px + 2.095vw, 52px);
  --fs-h2: clamp(28px, 22.06px + 1.524vw, 44px);
  --fs-h2-band: clamp(24px, 19.54px + 1.143vw, 36px);
  --fs-h2-step: clamp(26px, 22.29px + 0.952vw, 36px);
  --fs-eyebrow: clamp(12px, 11.26px + 0.190vw, 14px);
  --fs-lead: clamp(15px, 14.26px + 0.190vw, 17px);
  --fs-card-title: clamp(26px, 23.77px + 0.571vw, 32px);
  --fs-price-lg: clamp(32px, 29.03px + 0.762vw, 40px);

  --header-h: 64px;
  --sticky-h: 0px;
}

@media (min-width: 768px) {
  :root { --header-h: 80px; }
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px); /* keep anchor targets clear of the sticky header */
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: var(--sticky-h);
}

main { flex: 1 0 auto; }

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }

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

::selection { background: var(--c-accent); color: var(--c-on-accent); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.nowrap { white-space: nowrap; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 16px; border-radius: var(--r-btn);
  background: var(--c-accent); color: var(--c-on-accent); font-weight: 600;
}
.skip-link:focus { top: 12px; }

.icon { width: 18px; height: 18px; flex-shrink: 0; }
.icon--sm { width: 16px; height: 16px; }
.icon--md { width: 20px; height: 20px; }
.icon--lg { width: 22px; height: 22px; }

.accent { color: var(--c-accent); }
@media (max-width: 767.98px) { .hide-mobile { display: none !important; } }
@media (min-width: 768px) { .show-mobile { display: none !important; } }
.muted { color: var(--c-muted); }
[hidden] { display: none !important; }

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

/* ---------- 3. Layout helpers ---------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
}

.section { padding-top: var(--section); }
.section:last-child { padding-bottom: var(--section); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.section-head__title { display: flex; flex-direction: column; gap: 12px; }
.section-head__side { display: flex; flex-direction: column; gap: 12px; }

.eyebrow {
  font-family: var(--f-head);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.h2 {
  font-family: var(--f-head);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.12;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--c-text-2);
}

@media (min-width: 1024px) {
  .eyebrow { letter-spacing: 0.32em; }
  .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 80px;
    margin-bottom: var(--head-gap);
  }
  .section-head__title { gap: 14px; }
  .section-head__side, .section-head > .lead { width: 440px; flex-shrink: 0; }
}

/* ---------- 4. Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--r-btn);
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  transition: box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--c-accent);
  color: var(--c-on-accent);
  box-shadow: var(--glow-btn);
}
.btn--primary:hover { box-shadow: var(--glow-btn-hover); }

.btn--outline {
  border: 1.5px solid var(--c-accent);
  color: var(--c-text);
  font-weight: 500;
}
.btn--outline:hover { background: var(--accent-08); }

.btn--outline-accent {
  border: 1.5px solid var(--c-accent);
  color: var(--c-accent);
}
.btn--outline-accent:hover { background: var(--accent-08); }

.btn--ghost {
  min-height: 48px;
  padding: 0 16px;
  gap: 8px;
  border: 1px solid var(--c-line);
  color: var(--c-text);
  font-size: 15px;
  font-weight: 500;
}
.btn--ghost:hover { border-color: var(--accent-45); }

.btn--sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn--md { min-height: 48px; padding: 0 20px; font-size: 15px; }
.btn--lg { min-height: 56px; padding: 0 28px; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-accent);
}
.link-arrow .icon { width: 16px; height: 16px; transition: transform .2s ease; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* Group of 4 buy actions (Mua ngay / Thêm vào giỏ / Shopee / Zalo) */
.buy-actions { display: flex; flex-direction: column; gap: 10px; }
.buy-actions__row { display: flex; gap: 10px; }
.buy-actions__row > .btn--ghost { flex: 1 1 0; padding: 0 8px; font-size: 14px; gap: 6px; }
.buy-actions__main { flex: 1 1 auto; }
.buy-actions .btn--outline { padding: 0 14px; font-size: 15px; gap: 8px; }

@media (min-width: 768px) {
  .buy-actions, .buy-actions__row { gap: 12px; }
  .buy-actions__row > .btn--ghost { font-size: 15px; gap: 8px; }
  .buy-actions .btn--outline { padding: 0 20px; font-size: 16px; }
}

/* ---------- 5. Small components ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  line-height: 1.3;
  color: var(--c-text-2);
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  padding: 6px 12px;
}
.chip--accent {
  color: var(--c-text);
  background: var(--accent-08);
  border-color: var(--accent-25);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.icon-ring {
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--c-accent);
  color: var(--c-accent);
  box-shadow: 0 0 14px var(--accent-40), inset 0 0 8px var(--accent-15);
}
.icon-ring .icon { width: 20px; height: 20px; }
@media (min-width: 768px) {
  .icon-ring { width: 48px; height: 48px; box-shadow: var(--glow-ring); }
  .icon-ring .icon { width: 22px; height: 22px; }
}

.num-ring {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill);
  border: 2px solid var(--c-accent);
  color: var(--c-accent);
  box-shadow: 0 0 16px var(--accent-40);
  font-family: var(--f-head);
  font-size: 16px;
  font-weight: 700;
}

.num-dot {
  width: 30px; height: 30px;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--accent-45);
  color: var(--c-accent);
  font-family: var(--f-head);
  font-size: 14px;
  font-weight: 700;
}
@media (min-width: 768px) { .num-dot { width: 32px; height: 32px; font-size: 15px; } }

.badge {
  display: inline-flex; align-items: center;
  font-family: var(--f-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  border-radius: var(--r-pill);
  padding: 5px 11px;
  color: var(--c-text);
  background: rgba(4, 8, 12, 0.8);
  border: 1px solid var(--accent-45);
}
.badge--pro {
  color: var(--c-on-accent);
  background: var(--c-accent);
  border-color: var(--c-accent);
  box-shadow: 0 0 16px var(--accent-40);
}
@media (min-width: 768px) { .badge { font-size: 13px; padding: 6px 12px; } }

.label-caps {
  font-family: var(--f-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted);
}
@media (min-width: 768px) { .label-caps { font-size: 13px; } }

.card {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--r-card);
}

.panel-glow {
  background: var(--c-card);
  border: 1px solid var(--accent-45);
  border-radius: var(--r-card-lg);
  box-shadow: var(--glow-panel);
}
@media (min-width: 768px) { .panel-glow { border-radius: var(--r-panel); } }

/* Corner brackets on feature images */
.corners { position: relative; }
.corners::before, .corners::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  pointer-events: none;
}
.corners::before { left: 12px; top: 12px; border-top: 2px solid var(--c-accent); border-left: 2px solid var(--c-accent); }
.corners::after { right: 12px; bottom: 12px; border-bottom: 2px solid var(--c-accent); border-right: 2px solid var(--c-accent); }
@media (min-width: 768px) {
  .corners::before, .corners::after { width: 18px; height: 18px; }
  .corners::before { left: 16px; top: 16px; }
  .corners::after { right: 16px; bottom: 16px; }
}

.media-img { filter: contrast(1.08); }

/* ---------- 6. Segmented control (Pro / SC Tech) ---------- */
.seg {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-opt);
}
.seg__btn {
  flex: 1 1 0;
  min-height: 44px;
  border-radius: 9px;
  border: 1px solid transparent;
  color: var(--c-text-2);
  font-family: var(--f-head);
  font-size: 16px;
  font-weight: 600;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.seg__btn:hover { color: var(--c-text); }
.seg__btn[aria-pressed="true"] {
  background: rgba(24, 229, 254, 0.12);
  border-color: var(--c-accent);
  color: var(--c-accent);
}

/* ---------- 7. Kit option (radio card) ---------- */
.kit-list { display: flex; flex-direction: column; gap: 8px; }
.kit-list__label { padding-bottom: 2px; }
@media (min-width: 768px) { .kit-list { gap: 10px; } }

.kit-opt {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  text-align: left;
  border: 1px solid var(--c-line);
  border-radius: var(--r-opt);
  background: transparent;
  color: var(--c-text);
  transition: border-color .2s ease, background-color .2s ease;
}
.kit-opt:hover { border-color: var(--accent-45); }
.kit-opt[aria-pressed="true"] { border-color: var(--c-accent); background: var(--accent-08); }

.kit-opt__radio {
  width: 20px; height: 20px;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill);
  border: 2px solid var(--c-ring);
}
.kit-opt[aria-pressed="true"] .kit-opt__radio { border-color: var(--c-accent); }
.kit-opt[aria-pressed="true"] .kit-opt__radio::after {
  content: "";
  width: 10px; height: 10px;
  border-radius: var(--r-pill);
  background: var(--c-accent);
}
.kit-opt__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.kit-opt__name { font-size: 15px; font-weight: 600; }
.kit-opt__note { font-size: 13px; line-height: 1.45; color: var(--c-text-2); }
.kit-opt__price {
  font-family: var(--f-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--c-accent);
  white-space: nowrap;
}
@media (min-width: 768px) {
  .kit-opt { gap: 16px; padding: 14px 18px; }
  .kit-opt__body { gap: 4px; }
  .kit-opt__name { font-size: 16px; }
  .kit-opt__note { font-size: 14px; }
  .kit-opt__price { font-size: 18px; }
}

/* ---------- 8. Pill chips (kit filter) ---------- */
.pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-btn {
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line);
  color: var(--c-text);
  font-size: 13px;
  font-weight: 500;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.pill-btn:hover { border-color: var(--accent-45); }
.pill-btn[aria-pressed="true"] {
  border-color: var(--c-accent);
  background: rgba(24, 229, 254, 0.12);
  color: var(--c-accent);
}
@media (min-width: 768px) { .pill-btn { padding: 0 18px; font-size: 14px; } }

/* ---------- 9. Quantity stepper ---------- */
.qty {
  display: inline-flex;
  align-items: center;
  height: 52px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-btn);
  flex-shrink: 0;
}
.qty__btn {
  width: 44px; height: 50px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-text);
  border-radius: var(--r-btn);
}
.qty__btn:hover { color: var(--c-accent); }
.qty__btn:disabled { color: var(--c-off); }
.qty__btn .icon { width: 16px; height: 16px; }
.qty__val {
  min-width: 28px;
  text-align: center;
  font-family: var(--f-head);
  font-size: 17px;
  font-weight: 600;
}
.qty--sm { height: 46px; }
.qty--sm .qty__btn { height: 44px; width: 44px; }
@media (min-width: 768px) { .qty__val { min-width: 36px; font-size: 18px; } }

/* ---------- 10. Price ---------- */
.price { font-family: var(--f-head); font-weight: 700; color: var(--c-accent); white-space: nowrap; }

/* ---------- 11. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  border-bottom: 1px solid var(--c-line);
  background: var(--c-bg);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 10px 0 var(--gutter);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--c-text);
}
.logo__img { display: block; width: auto; height: 44px; }
.footer-brand .logo__img { height: 60px; }

.main-nav { display: none; }
.main-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  color: var(--c-text);
  border-bottom: 2px solid transparent;
  transition: color .2s ease;
}
.main-nav__link:hover { color: var(--c-accent); }
.main-nav__link[aria-current="page"] { color: var(--c-accent); font-weight: 600; border-bottom-color: var(--c-accent); }

.header-actions { display: flex; align-items: center; gap: 4px; }

.icon-btn {
  position: relative;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-text);
  border-radius: var(--r-btn);
}
.icon-btn:hover { color: var(--c-accent); }
.icon-btn .icon { width: 24px; height: 24px; }

.cart-count {
  position: absolute;
  right: 3px; top: 4px;
  min-width: 17px; height: 17px;
  padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill);
  background: var(--c-accent);
  color: var(--c-on-accent);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.cart-count.is-bump { animation: bump .4s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }

.header-zalo { display: none; }

/* Mobile menu panel */
.mobile-nav {
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px var(--gutter) 24px;
  background: var(--c-bg);
  border-bottom: 1px solid var(--accent-45);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
}
.mobile-nav__link {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--c-line);
  font-size: 17px;
  font-weight: 500;
}
.mobile-nav__link[aria-current="page"] { color: var(--c-accent); }
.mobile-nav__link .icon { color: var(--c-muted); width: 18px; height: 18px; }
.mobile-nav .btn { margin-top: 20px; }

@media (min-width: 768px) {
  .site-header__inner { padding: 0 var(--gutter); }
  .logo__img { height: 56px; }
  .footer-brand .logo__img { height: 68px; }
  .main-nav { display: flex; align-items: center; gap: clamp(24px, 3vw, 44px); }
  .header-actions { gap: 12px; }
  .icon-btn .icon { width: 22px; height: 22px; }
  .cart-count { right: 4px; min-width: 18px; height: 18px; }
  .header-zalo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border: 1.5px solid var(--c-accent);
    border-radius: var(--r-pill);
    color: var(--c-accent);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 0 14px var(--accent-15);
    transition: background-color .2s ease;
  }
  .header-zalo:hover { background: var(--accent-08); }
  .menu-toggle, .mobile-nav { display: none !important; }
}

/* ---------- 12. Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
  font-size: 13px;
  color: var(--c-muted);
}
.breadcrumb a, .breadcrumb span { display: inline-flex; align-items: center; min-height: 44px; }
.breadcrumb a { color: var(--c-text-2); }
.breadcrumb a:hover { color: var(--c-accent); }
.breadcrumb [aria-current="page"] { color: var(--c-text); }
@media (min-width: 768px) {
  .breadcrumb { gap: 10px; padding-top: 20px; font-size: 14px; }
}

/* ---------- 13. Tables ---------- */
.table-wrap {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: 14px;
  overflow: hidden;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table th, .table td { padding: 13px 10px; text-align: left; vertical-align: middle; }
.table th:first-child { padding-left: 12px; }
.table thead th { font-weight: 500; color: var(--c-muted); }
.table tr { border-bottom: 1px solid var(--c-line); }
.table tbody tr:last-child { border-bottom: 0; }
.table tbody th { font-weight: 500; color: var(--c-text-2); }
.table .is-col-on { background: rgba(24, 229, 254, 0.07); }
.table thead .is-col-on { box-shadow: inset 0 -2px 0 var(--c-accent); }
.table td.price, .table .price { font-size: 15px; }
@media (min-width: 768px) {
  .table-wrap { border-radius: var(--r-card); }
  .table { font-size: 16px; }
  .table th, .table td { padding: 17px 28px; }
  .table th:first-child { padding-left: 28px; }
  .table td.price, .table .price { font-size: 18px; }
}

/* ---------- 14. Forms ---------- */
.form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-size: 14px; font-weight: 500; color: var(--c-text-2); }
.field__label .req { color: var(--c-accent); }
.field__input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--r-btn);
  color: var(--c-text);
  font-size: 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
textarea.field__input { padding: 14px 16px; line-height: 1.5; resize: vertical; min-height: 120px; }
.field__input::placeholder { color: var(--c-muted); opacity: 1; }
.field__input:hover { border-color: #2A3F4B; }
.field__input:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--accent-15); }
.field__input[aria-invalid="true"] { border-color: var(--c-danger); }
.field__error { font-size: 13px; color: var(--c-danger); }
.field__error:empty { display: none; }

/* ---------- 15. Notes / alerts ---------- */
.note {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  background: var(--accent-06);
  border: 1px solid var(--accent-45);
  border-radius: var(--r-opt);
  font-size: 14px;
  line-height: 1.55;
}
.note__text { display: flex; align-items: flex-start; gap: 10px; }
.note__text .icon { color: var(--c-accent); margin-top: 2px; }
.note .placeholder { color: var(--c-text-2); }
@media (min-width: 768px) {
  .note { flex-direction: row; align-items: center; gap: 16px; padding: 20px 24px; font-size: 15px; }
  .note__text { flex: 1 1 auto; gap: 16px; align-items: center; }
  .note__text .icon { margin-top: 0; width: 22px; height: 22px; }
  .note .link-arrow { flex-shrink: 0; }
}

/* ---------- 16. Accordion (FAQ) ---------- */
.accordion { border-top: 1px solid var(--c-line); }
.acc-item { border-bottom: 1px solid var(--c-line); }
.acc-item__btn {
  width: 100%;
  min-height: 64px;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--c-text);
}
.acc-item__btn:hover { color: var(--c-accent); }
.acc-item__sign {
  width: 32px; height: 32px;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--c-line);
  color: var(--c-accent);
  transition: border-color .2s ease, transform .25s ease;
}
.acc-item__sign .icon { width: 16px; height: 16px; }
.acc-item__sign .i-minus { display: none; }
.acc-item__btn[aria-expanded="true"] .acc-item__sign { border-color: var(--c-accent); }
.acc-item__btn[aria-expanded="true"] .i-plus { display: none; }
.acc-item__btn[aria-expanded="true"] .i-minus { display: block; }
.acc-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .25s ease;
}
.acc-item__panel > div { overflow: hidden; }
.acc-item__panel.is-open { grid-template-rows: 1fr; }
.acc-item__panel p {
  padding: 0 44px 22px 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-text-2);
  white-space: pre-line; /* "\n" in products.json faq answers = line break */
}
@media (min-width: 768px) {
  .acc-item__btn { padding: 22px 0; font-size: 18px; gap: 24px; }
  .acc-item__panel p { padding: 0 56px 24px 0; font-size: 16px; }
}

/* ---------- 17. Glow CTA band (dải cuối trang) ---------- */
.cta-band {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
}
.cta-band__text { display: flex; flex-direction: column; gap: 12px; }
.cta-band__title { font-family: var(--f-head); font-size: var(--fs-h2-band); font-weight: 700; line-height: 1.18; }
.cta-band__actions { margin-top: 8px; }
@media (min-width: 1024px) {
  .cta-band {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    padding: 48px 56px;
  }
  .cta-band__actions { margin-top: 0; flex-shrink: 0; }
}

/* ---------- 18. Footer ---------- */
.site-footer {
  border-top: 1px solid var(--c-line);
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 20px;
}
.footer-brand { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; }
.footer-brand p { font-size: 15px; line-height: 1.6; color: var(--c-text-2); max-width: 360px; }
.footer-col { display: flex; flex-direction: column; }
.footer-col--contact { grid-column: 1 / -1; }
.footer-col__title { padding-bottom: 4px; }
.footer-col > a {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 44px;
  font-size: 15px;
  color: var(--c-text);
}
.footer-col > a:hover { color: var(--c-accent); }
.footer-col .social-links { margin-top: 8px; }

/* Facebook / TikTok / YouTube icon row (footer + home contact) */
.social-links { display: flex; flex-wrap: wrap; gap: 12px; }
.social-link {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--accent-45);
  color: var(--c-accent);
  transition: background-color .2s ease, box-shadow .2s ease;
}
.social-link:hover { background: var(--accent-08); box-shadow: var(--glow-ring); }
.social-link .icon { width: 20px; height: 20px; }

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  color: var(--c-muted);
}
.footer-bottom__links { display: flex; flex-wrap: wrap; column-gap: 20px; }
.footer-bottom__links a, .footer-bottom__links span {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--c-text-2);
}
.footer-bottom__links a:hover { color: var(--c-accent); }

@media (min-width: 1024px) {
  .site-footer { padding: 64px 0 32px; }
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
  .footer-brand, .footer-col--contact { grid-column: auto; }
  .footer-brand { gap: 16px; }
  .footer-bottom { margin-top: 48px; padding-top: 24px; flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-bottom__links { column-gap: 28px; }
}

/* ---------- 19. Cart drawer ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity .25s ease;
}
.overlay.is-open { opacity: 1; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 90;
  width: min(440px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--c-card);
  border-left: 1px solid var(--accent-45);
  box-shadow: -24px 0 64px rgba(0, 0, 0, 0.6);
  transform: translateX(100%);
  transition: transform .3s ease;
  visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 10px 20px;
  border-bottom: 1px solid var(--c-line);
}
.drawer__title { font-family: var(--f-head); font-size: 20px; font-weight: 700; }
.drawer__body { flex: 1 1 auto; overflow-y: auto; padding: 8px 20px; }
.drawer__foot {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.drawer__total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.drawer__total .price { font-size: 24px; }
.drawer__hint { font-size: 13px; color: var(--c-muted); }

.cart-empty {
  padding: 48px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  color: var(--c-text-2);
}
.cart-empty .icon-ring { width: 56px; height: 56px; }

.line-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--c-line);
}
.line-item:last-child { border-bottom: 0; }
.line-item__img {
  width: 72px; height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--c-line);
  background: var(--c-media);
}
.line-item__info { position: relative; display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-right: 40px; }
.line-item__name { font-family: var(--f-head); font-size: 16px; font-weight: 600; }
.line-item__kit { font-size: 13px; color: var(--c-text-2); }
.line-item__row { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.line-item__price { font-size: 16px; }
.line-item__remove { position: absolute; top: -10px; right: -8px; color: var(--c-muted); }
.line-item__remove:hover { color: var(--c-danger); }

/* ---------- 20. Toast ---------- */
.toast-region {
  position: fixed;
  left: 50%;
  bottom: calc(var(--sticky-h) + 16px);
  z-index: 100;
  width: min(100% - 32px, 440px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 16px;
  background: var(--c-card);
  border: 1px solid var(--accent-45);
  border-radius: var(--r-opt);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 24px var(--accent-10);
  font-size: 14px;
  line-height: 1.45;
  animation: toast-in .25s ease;
}
.toast .icon { color: var(--c-accent); }
.toast__msg { flex: 1 1 auto; }
.toast__action { flex-shrink: 0; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- 21. Lightbox & video ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 16px 16px;
  background: rgba(4, 8, 12, 0.94);
}
.lightbox img { max-height: 100%; width: auto; border-radius: var(--r-opt); background: #fff; }
.lightbox__close { position: absolute; top: 8px; right: 8px; }

.video-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.play-btn {
  width: 60px; height: 60px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill);
  border: 2px solid var(--c-accent);
  background: rgba(4, 8, 12, 0.8);
  color: var(--c-accent);
  box-shadow: 0 0 28px var(--accent-40);
  transition: transform .2s ease, box-shadow .2s ease;
}
.play-btn:hover { transform: scale(1.06); box-shadow: 0 0 40px var(--accent-45); }
.play-btn .icon { width: 26px; height: 26px; margin-left: 3px; }
@media (min-width: 768px) {
  .play-btn { width: 84px; height: 84px; }
  .play-btn .icon { width: 32px; height: 32px; }
}

/* ---------- 22. Loading / error states ---------- */
.skeleton-text { color: transparent !important; background: var(--c-line); border-radius: 4px; }
.data-error {
  margin: 16px var(--gutter);
  padding: 14px 16px;
  border: 1px solid var(--c-danger);
  border-radius: var(--r-opt);
  color: var(--c-danger);
  font-size: 14px;
}

/* ==========================================================================
   PAGES
   ========================================================================== */

/* ---------- HOME: Hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 0 40px;
}
.hero__title {
  font-family: var(--f-head);
  font-size: var(--fs-h1-hero);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.01em;
}
.hero__text { font-size: 16px; line-height: 1.6; color: var(--c-text-2); max-width: 540px; }
.hero__media {
  position: relative;
  container-type: inline-size;
  margin: 8px calc(-1 * var(--gutter)) 0;
}
.hero__img {
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 697;
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 7%, #000 93%, transparent),
    linear-gradient(to bottom, transparent, #000 9%, #000 90%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent, #000 7%, #000 93%, transparent),
    linear-gradient(to bottom, transparent, #000 9%, #000 90%, transparent);
  mask-composite: intersect;
}
.hero__ring {
  position: absolute;
  left: 4.5%;
  top: 47cqw;
  width: 91%;
  height: 22cqw;
  border-radius: 50%;
  border: 2px solid var(--c-accent);
  box-shadow: 0 0 22px var(--accent-40), inset 0 0 22px var(--accent-40);
}
.hero__actions { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.hero__chips { padding: 4px 0 0; margin: 0; }

.hotspots { display: none; }

@media (min-width: 560px) {
  .hero__actions { flex-direction: row; flex-wrap: wrap; }
}

@media (min-width: 768px) {
  .hero { gap: 20px; padding-top: 48px; }
  .hero__text { font-size: 17px; }
  .hero__media { margin: 8px auto 0; width: min(100%, 820px); }
  .hotspots { display: block; position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
  .hotspot {
    position: absolute;
    left: var(--x);
    top: var(--y);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .hotspot__label {
    font-family: var(--f-head);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    color: var(--c-text);
    background: var(--c-card);
    border: 1px solid var(--accent-45);
    border-radius: var(--r-pill);
    padding: 6px 12px;
  }
  .hotspot__line { width: 1px; height: var(--len); margin-left: 6px; background: var(--c-accent); }
  /* Positions measured on the 820×558 desktop image; cqw keeps them locked to the photo */
  .hotspot:nth-child(1) { --x: 48.05%; --y: 3.9cqw;   --len: 18.05cqw; }
  .hotspot:nth-child(2) { --x: 69.63%; --y: 3.9cqw;   --len: 10.98cqw; }
  .hotspot:nth-child(3) { --x: 28.54%; --y: 45.12cqw; --len: 7.8cqw; }
  .hotspot:nth-child(4) { --x: 77.93%; --y: 35.85cqw; --len: 18.29cqw; }
  .hotspot__dot {
    width: 12px; height: 12px;
    border-radius: var(--r-pill);
    border: 2px solid var(--c-accent);
    background: var(--c-bg);
    box-shadow: 0 0 0 4px var(--accent-15);
  }
  /* Right-most label flips left when the image is narrow so it never overflows */
  @container (max-width: 780px) {
    .hotspot:last-child { align-items: flex-end; transform: translateX(calc(-100% + 12px)); }
    .hotspot:last-child .hotspot__line { margin: 0 5px 0 0; }
  }
}

@media (min-width: 1200px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
    grid-template-rows: 1fr auto auto auto auto auto 1fr;
    grid-template-areas:
      ".        media"
      "eyebrow  media"
      "title    media"
      "text     media"
      "actions  media"
      "chips    media"
      ".        media";
    column-gap: 40px;
    row-gap: 24px;
    padding: 56px 0 64px;
  }
  .hero__eyebrow { grid-area: eyebrow; }
  .hero__title { grid-area: title; }
  .hero__text { grid-area: text; max-width: 470px; }
  .hero__actions { grid-area: actions; padding-top: 12px; }
  .hero__chips { grid-area: chips; padding-top: 12px; }
  .hero__media { grid-area: media; width: auto; margin: 0 calc(-1 * var(--gutter)) 0 0; }
}

/* ---------- HOME: Feature strip ---------- */
.features__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--c-line);
  border-block: 1px solid var(--c-line);
}
.feature {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 16px 22px var(--gutter);
  background: var(--c-bg);
}
.feature:nth-child(even) { padding: 20px var(--gutter) 22px 16px; }
.feature__title { font-family: var(--f-head); font-size: 17px; font-weight: 600; line-height: 1.25; }
.feature__text { font-size: 14px; line-height: 1.55; color: var(--c-text-2); }

@media (min-width: 768px) {
  .feature, .feature:nth-child(even) { padding: 28px var(--gutter); }
}
@media (min-width: 1024px) {
  .features { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
  .features__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: none; }
  .feature, .feature:nth-child(even) { padding: 36px 32px; gap: 12px; }
  .feature + .feature { border-left: 1px solid var(--c-line); }
  .feature:first-child { padding-left: 0; }
  .feature:last-child { padding-right: 0; }
  .feature__title { padding-top: 8px; font-size: 20px; }
  .feature__text { font-size: 15px; line-height: 1.6; }
}

/* ---------- HOME: Kit cards ---------- */
.line-switch { margin-bottom: 16px; }
.kit-cards { display: grid; gap: 24px; }
.kit-card {
  display: none;
  flex-direction: column;
  overflow: hidden;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: 18px;
}
.kit-card.is-active { display: flex; }
.kit-card--featured { border-color: var(--accent-45); box-shadow: 0 0 32px var(--accent-08); }
.kit-card__media { position: relative; height: 200px; overflow: hidden; background: var(--c-media); }
.kit-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.kit-card__media .badge { position: absolute; left: 16px; top: 16px; }
.kit-card__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 16px; padding: 20px; }
.kit-card__intro { display: flex; flex-direction: column; gap: 6px; }
.kit-card__title { font-family: var(--f-head); font-size: var(--fs-card-title); font-weight: 700; line-height: 1.15; }
.kit-card__desc { font-size: 15px; line-height: 1.55; color: var(--c-text-2); }
.kit-card .link-arrow { margin-top: -4px; }

@media (min-width: 768px) {
  .kit-card { border-radius: var(--r-card-lg); }
  .kit-card__media { height: 280px; }
  .kit-card__media .badge { left: 24px; top: 24px; }
  .kit-card__body { padding: 32px; gap: 20px; }
  .kit-card__intro { gap: 8px; }
  .kit-card__desc { font-size: 16px; line-height: 1.6; }
}
@media (min-width: 1024px) {
  .line-switch { display: none; }
  .kit-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kit-card { display: flex; }
  .kit-card--featured { box-shadow: var(--glow-card); }
  .kit-card .buy-actions { margin-top: auto; }
}

/* ---------- HOME: 3 steps ---------- */
.steps { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; }
.step__head { grid-column: 1; grid-row: 1 / span 3; display: flex; flex-direction: column; align-items: center; }
.step__head .icon-ring { display: none; }
.step:not(:last-child) .step__head::after {
  content: "";
  width: 1px;
  flex: 1 1 auto;
  margin: 6px 0;
  background: var(--accent-45);
}
.step__num {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill);
  border: 2px solid var(--c-accent);
  box-shadow: 0 0 16px var(--accent-40);
  color: var(--c-accent);
  font-family: var(--f-head);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}
.step__title { grid-column: 2; padding-top: 8px; font-family: var(--f-head); font-size: 20px; font-weight: 600; line-height: 1.25; }
.step__text { grid-column: 2; margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--c-text-2); }
.step__chips { grid-column: 2; margin: 12px 0 0; padding: 0 0 28px; gap: 6px; }
.step__chips .chip { font-size: 12px; padding: 5px 10px; }
.step:last-child .step__chips { padding-bottom: 8px; }

.steps__cta { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.steps__note { font-size: 14px; color: var(--c-text-2); text-align: center; }

@media (min-width: 560px) {
  .steps__cta { flex-direction: row; align-items: center; gap: 20px; }
  .steps__note { text-align: left; }
}
@media (min-width: 1024px) {
  .steps { flex-direction: row; align-items: stretch; gap: 64px; margin-top: 0; }
  .step {
    position: relative;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px;
    background: var(--c-card);
    border: 1px solid var(--c-line);
    border-radius: var(--r-card);
  }
  .step__head { flex-direction: row; justify-content: space-between; align-items: center; }
  .step:not(:last-child) .step__head::after { display: none; }
  .step__head .icon-ring { display: inline-flex; }
  .step__num { width: auto; height: auto; border: 0; box-shadow: none; font-size: 52px; }
  .step__title { padding-top: 0; font-size: 24px; }
  .step__text { margin-top: 0; font-size: 16px; line-height: 1.6; }
  .step__chips, .step:last-child .step__chips { margin-top: auto; padding: 8px 0 0; gap: 8px; }
  .step__chips .chip { font-size: 13px; padding: 6px 12px; }
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -46px;
    top: 50%;
    width: 28px;
    height: 28px;
    transform: translateY(-50%);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318E5FE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .steps__cta { margin-top: 48px; }
  .steps__note { font-size: 15px; }
}

/* ---------- HOME: FAQ ---------- */
.faq { display: grid; grid-template-areas: "intro" "list" "cta"; gap: 24px; }
.faq__intro { grid-area: intro; display: flex; flex-direction: column; gap: 12px; }
.faq__lead { display: none; }
.faq__list { grid-area: list; }
.faq__cta { grid-area: cta; }
.faq__cta-short { display: none; }

@media (min-width: 768px) {
  .faq__lead { display: block; }
  .faq__cta { justify-self: start; }
}
@media (min-width: 1024px) {
  .faq {
    grid-template-columns: 420px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "intro list" "cta list";
    column-gap: 80px;
    row-gap: 0;
  }
  .faq__intro { gap: 14px; }
  .faq__lead { margin-top: 6px; }
  .faq__cta { align-self: start; margin-top: 28px; }
  .faq__cta-long { display: none; }
  .faq__cta-short { display: inline; }
}

/* ---------- HOME: Contact ---------- */
.contact { display: grid; gap: 24px; padding: 24px; }
.contact__info { display: flex; flex-direction: column; gap: 12px; }
.contact-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.contact-item { display: flex; align-items: center; gap: 16px; min-height: 48px; }
a.contact-item:hover .contact-item__value { color: var(--c-accent); }
.contact-item__icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--accent-45);
  color: var(--c-accent);
}
.contact-item__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-item__label { font-size: 13px; color: var(--c-muted); }
.contact-item__value { font-size: 16px; font-weight: 500; overflow-wrap: anywhere; transition: color .2s ease; }
.contact__cta { margin-top: 12px; }
.contact__form-wrap { border-top: 1px solid var(--c-line); padding-top: 24px; }
.contact textarea.field__input { min-height: 128px; }

@media (min-width: 1024px) {
  .contact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; padding: 56px 64px; }
  .contact__info { gap: 14px; }
  .contact-list { margin-top: 14px; gap: 8px; }
  .contact__cta { align-self: flex-start; margin-top: 14px; padding: 0 26px; }
  .contact__form-wrap { border-top: 0; padding-top: 0; }
}

/* ---------- Order / lead form: sending, sent, send error ---------- */
.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.send-result { display: flex; flex-direction: column; gap: 18px; }
.send-result:focus, .send-error:focus { outline: none; }
.send-result__head { display: flex; align-items: flex-start; gap: 14px; }
.send-result__title { font-family: var(--f-head); font-size: 20px; font-weight: 700; line-height: 1.25; }
.send-result__sub { margin-top: 4px; font-size: 14px; color: var(--c-text-2); }
.send-result__details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-opt);
  background: var(--c-bg);
  font-size: 14px;
  line-height: 1.55;
}
.send-result__details div { display: flex; gap: 12px; }
.send-result__details dt { flex: 0 0 88px; color: var(--c-muted); }
.send-result__details dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.send-result__help { font-size: 14px; color: var(--c-text-2); }
.send-result__help a { color: var(--c-accent); }
.send-result__help a:hover { text-decoration: underline; }
.send-error {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--c-danger);
  border-radius: var(--r-opt);
  font-size: 14px;
  line-height: 1.55;
  color: var(--c-text-2);
}
.send-error__text { display: flex; align-items: flex-start; gap: 10px; }
.send-error__text .icon { color: var(--c-danger); margin-top: 1px; }
.send-error__text strong { color: var(--c-text); }

/* ---------- PRODUCT: main ---------- */
.product { display: flex; flex-direction: column; gap: 20px; }
.gallery { display: flex; flex-direction: column; gap: 10px; margin-inline: calc(-1 * var(--gutter)); }
.gallery__main { position: relative; aspect-ratio: 1024 / 697; overflow: hidden; background: var(--c-media); }
.gallery__img { width: 100%; height: 100%; object-fit: cover; }
.gallery__main.is-video .gallery__img { object-fit: contain; }
.gallery__main video { object-fit: contain; background: var(--c-media); }
.gallery__main.is-playing .gallery__badge { display: none; }
.gallery__caption { margin: 0; padding: 0 var(--gutter); color: var(--c-text-2); font-size: 13px; line-height: 1.5; }
.gallery__badge { position: absolute; left: 16px; top: 16px; }
.gallery__video {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(4, 8, 12, 0.65);
}
.gallery__video-label { font-family: var(--f-head); font-size: 14px; font-weight: 600; letter-spacing: 0.06em; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 0 var(--gutter); }
.thumb {
  position: relative;
  aspect-ratio: 162 / 110;
  min-height: 44px;
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid var(--c-line);
  background: var(--c-media);
  transition: border-color .2s ease;
}
.thumb:hover { border-color: var(--accent-45); }
.thumb[aria-pressed="true"] { border-color: var(--c-accent); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb__play {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(4, 8, 12, 0.6);
  color: var(--c-accent);
}
.thumb__play .icon, .gallery__video .play-btn .icon { fill: currentColor; }
.thumb__duration { position: absolute; right: 6px; bottom: 6px; padding: 2px 5px; border-radius: 4px; background: rgba(4, 8, 12, 0.85); color: var(--c-text); font-size: 12px; line-height: 1.3; }

.product__info { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.product__head { display: flex; flex-direction: column; gap: 6px; }
.product__title { font-family: var(--f-head); font-size: var(--fs-h1-product); font-weight: 700; line-height: 1.1; }
.product__tagline { font-size: 15px; line-height: 1.55; color: var(--c-text-2); }
.product__price { display: flex; flex-direction: column; gap: 2px; }
.product__price-val { font-size: var(--fs-price-lg); line-height: 1.15; }
.product__price-note { font-size: 13px; color: var(--c-muted); }
.product__ship { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; font-weight: 500; color: var(--c-accent); }
.product__ship .icon { width: 16px; height: 16px; }

.buy-box { container-type: inline-size; display: flex; flex-direction: column; gap: 10px; }
.buy-box__row { display: flex; flex-wrap: wrap; gap: 10px; }
.buy-box__buy { flex: 1 1 120px; }
.buy-box__cart { padding: 0 18px; gap: 8px; }
@container (max-width: 480px) {
  .buy-box__cart { flex: 1 1 100%; }
}
.buy-box .buy-actions__row { display: flex; gap: 10px; }
.buy-box .buy-actions__row > .btn { flex: 1 1 0; padding: 0 8px; font-size: 14px; gap: 6px; }

.guide-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--r-opt);
  transition: border-color .2s ease;
}
.guide-link:hover { border-color: var(--accent-45); }
.guide-link .icon-ring { box-shadow: 0 0 12px var(--accent-40); }
.guide-link__text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.guide-link__title { font-size: 15px; font-weight: 600; }
.guide-link__sub { font-size: 13px; color: var(--c-text-2); }
.guide-link__arrow { color: var(--c-accent); }

@media (min-width: 768px) {
  .gallery { margin-inline: 0; gap: 16px; }
  .gallery__main { border-radius: var(--r-card); border: 1px solid var(--c-line); }
  .gallery__badge { left: 20px; top: 20px; }
  .gallery__video { gap: 16px; }
  .gallery__video-label { font-size: 15px; }
  .gallery__thumbs { padding: 0; gap: 12px; }
  .gallery__caption { padding: 0; }
  .thumb { border-radius: var(--r-btn); }
  .product__info { gap: 24px; }
  .product__head { gap: 8px; }
  .product__tagline { font-size: 16px; line-height: 1.6; }
  .product__price { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 14px; }
  .product__price-note { font-size: 14px; }
  .product__ship { flex-basis: 100%; font-size: 14px; }
  .buy-box, .buy-box__row, .buy-box .buy-actions__row { gap: 12px; }
  .buy-box .buy-actions__row > .btn { font-size: 15px; gap: 8px; }
  .guide-link { padding: 18px 20px; gap: 16px; }
  .guide-link .icon-ring { width: 44px; height: 44px; box-shadow: 0 0 14px var(--accent-40); }
  .guide-link__sub { font-size: 14px; }
}
@media (min-width: 1024px) {
  .product {
    display: grid;
    grid-template-columns: minmax(0, 1.36fr) minmax(0, 1fr);
    gap: clamp(40px, 4.5vw, 64px);
    align-items: start;
    padding-top: 12px;
  }
  .gallery__thumbs { gap: clamp(12px, 1.4vw, 20px); }
}

/* ---------- PRODUCT: what's in each kit ---------- */
.box-chips { margin-bottom: 12px; }
.box-table-wrap { display: none; }
.box-card { background: var(--c-card); border: 1px solid var(--c-line); border-radius: 14px; overflow: hidden; }
.box-list { list-style: none; margin: 0; padding: 0; }
.box-list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--c-line);
}
.box-list__name { flex: 1 1 auto; min-width: 0; font-size: 15px; }
.box-list__tag { flex: none; white-space: nowrap; font-size: 13px; color: var(--c-accent); }
.box-list__item.is-off .box-list__name,
.box-list__item.is-off .box-list__tag { color: var(--c-muted); }
.box-list__item.is-part .box-list__tag { flex: 0 1 auto; max-width: 40%; white-space: normal; text-align: right; color: var(--c-text-2); }
.box-yes { color: var(--c-accent); }
.box-no { color: var(--c-off); }
.box-part-icon { color: var(--c-text-2); }
.box-comp { display: block; }
.box-comp__detail { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; line-height: 1.4; color: var(--c-muted); }
.box-part { display: inline-block; max-width: 16ch; font-size: 13px; line-height: 1.35; color: var(--c-text-2); }
.box-list__price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--c-muted);
}
.box-list__price .price { font-size: 18px; }

.box-table th, .box-table td { text-align: center; }
.box-table th:first-child { text-align: left; }
.box-table thead th:first-child { width: 34%; }
.box-table thead .box-table__head { font-family: var(--f-head); font-weight: 600; color: var(--c-text); }
.box-table thead .box-table__head.is-col-on { color: var(--c-accent); }
.box-table tbody th { color: var(--c-text); }
.box-table td .icon { margin-inline: auto; }
.box-table__price th { color: var(--c-muted); }

@media (min-width: 768px) {
  .box-chips, .box-card { display: none; }
  .box-table-wrap { display: block; }
  .box-table thead th { padding: 22px 20px; }
  .box-table thead th:first-child { padding-left: 28px; }
  .box-table__head { font-size: 17px; }
  .box-table tbody td { padding: 16px 20px; }
  .box-table tbody th { padding: 16px 28px; }
  .box-table__price th, .box-table__price td { padding-top: 20px; padding-bottom: 20px; }
}

/* ---------- PRODUCT: feature cards (scroll on mobile) ---------- */
.func-cards {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: 0 var(--gutter) 4px;
  scrollbar-width: none;
}
.func-cards::-webkit-scrollbar { display: none; }
.func-cards:focus-visible { outline-offset: -2px; }
.func-card {
  flex: 0 0 min(300px, 80vw);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: 14px;
}
.func-card__media { height: 170px; overflow: hidden; background: var(--c-media); }
.func-card__media img { width: 100%; height: 100%; object-fit: cover; }
.func-card__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 20px; }
.func-card__tag {
  font-family: var(--f-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.func-card__title { font-family: var(--f-head); font-size: 18px; font-weight: 600; line-height: 1.3; }
.func-card__text { font-size: 14px; line-height: 1.55; color: var(--c-text-2); }

@media (min-width: 768px) {
  .func-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    width: min(100% - 2 * var(--gutter), var(--maxw));
    margin-inline: auto;
    padding: 0;
    overflow: visible;
  }
  .func-card { border-radius: var(--r-card); }
  .func-card__media { height: 240px; }
  .func-card__body { gap: 8px; padding: 24px 28px 28px; }
  .func-card__tag { font-size: 13px; }
  .func-card__title { font-size: 22px; }
  .func-card__text { font-size: 16px; line-height: 1.6; }
}

/* ---------- PRODUCT: compare table ---------- */
.compare-table thead th:first-child { width: 34%; }
.compare-table__name { font-family: var(--f-head); font-size: 15px; font-weight: 700; color: var(--c-text); }
.compare-table .is-col-on .compare-table__name { color: var(--c-accent); }
.compare-table__badge { display: none; }
.compare-table tbody td { color: var(--c-text); }
.compare-table tr.is-diff th { color: var(--c-text); box-shadow: inset 3px 0 0 var(--c-accent); }
.table tbody td.price { color: var(--c-accent); }
@media (min-width: 768px) {
  .compare-table thead th:first-child { width: 30%; }
  .compare-table thead th { padding-top: 24px; padding-bottom: 24px; }
  .compare-table__name { font-size: 22px; }
  .compare-table__badge {
    display: inline-flex;
    vertical-align: middle;
    margin-left: 10px;
    padding: 3px 8px;
    border-radius: var(--r-pill);
    background: var(--c-accent);
    color: var(--c-on-accent);
    font-family: var(--f-head);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
  }
  .compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { padding-top: 20px; padding-bottom: 20px; }
}

/* CTA band button full width on mobile */
.cta-band__actions .btn { width: 100%; }
@media (min-width: 1024px) { .cta-band__actions .btn { width: auto; } }

/* ---------- PRODUCT: sticky buy bar (mobile only) ---------- */
.sticky-buy { display: none; }
@media (max-width: 767.98px) {
  .sticky-buy {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    background: var(--c-card);
    border-top: 1px solid var(--accent-45);
    box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.7);
    transform: translateY(110%);
    transition: transform .25s ease;
  }
  .sticky-buy.is-visible { transform: none; }
}
.sticky-buy__btn {
  width: 56px; height: 56px;
  flex-shrink: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-btn);
  color: var(--c-text);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
}
.sticky-buy__btn .icon { color: var(--c-accent); }
.sticky-buy__btn--accent { border: 1.5px solid var(--c-accent); }
.sticky-buy__main {
  flex: 1 1 auto;
  height: 56px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border-radius: var(--r-btn);
  background: var(--c-accent);
  color: var(--c-on-accent);
  box-shadow: 0 0 24px var(--accent-40);
}
.sticky-buy__label { font-size: 16px; font-weight: 700; }
.sticky-buy__price { font-family: var(--f-head); font-size: 13px; font-weight: 600; }

/* ---------- GUIDE: hero + line picker ---------- */
.guide-hero { display: flex; flex-direction: column; gap: 12px; padding-top: 28px; }
.guide-hero__head { margin-bottom: 8px; }
.guide-hero__title { font-family: var(--f-head); font-size: var(--fs-h1-guide); font-weight: 700; line-height: 1.1; }

.line-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.line-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: left;
  background: var(--c-card);
  border: 1.5px solid var(--c-line);
  border-radius: 14px;
  color: var(--c-text);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.line-card:hover { border-color: var(--accent-45); }
.line-card[aria-pressed="true"] { border-color: var(--c-accent); box-shadow: 0 0 32px var(--accent-15); }
.line-card__media { display: block; height: 84px; overflow: hidden; background: var(--c-media); }
.line-card__media img { width: 100%; height: 100%; object-fit: cover; }
.line-card__body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 0; }
.line-card__name { font-family: var(--f-head); font-size: 17px; font-weight: 700; }
.line-card__blurb { display: none; font-size: 14px; color: var(--c-text-2); }
.line-card__status { padding: 2px 12px 12px; font-size: 12px; font-weight: 600; color: var(--c-text-2); white-space: nowrap; }
.line-card[aria-pressed="true"] .line-card__status { color: var(--c-accent); }

.kit-picker { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.kit-picker__label { font-size: 14px; color: var(--c-text-2); }
.guide-hero .note { margin-top: 4px; }

@media (min-width: 768px) {
  .line-cards { gap: 24px; }
  .line-card { border-radius: var(--r-card); }
  .line-card__media { height: 140px; }
  .line-card__body { padding: 14px 16px 0; }
  .line-card__name { font-size: 22px; }
  .line-card__blurb { display: block; }
  .line-card__status { padding: 6px 16px 16px; font-size: 14px; }
  .kit-picker { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .kit-picker__label { font-size: 15px; padding-right: 8px; }
}
@media (min-width: 1024px) {
  .line-card { flex-direction: row; align-items: center; gap: 20px; padding: 16px; }
  .line-card__media { flex: 0 0 140px; height: 88px; border-radius: var(--r-btn); }
  .line-card__body { flex: 1 1 auto; padding: 0; }
  .line-card__name { font-size: 24px; }
  .line-card__status { padding: 0 8px 0 0; }
}
@media (min-width: 1024px) {
  .guide-hero { gap: 32px; padding-top: 64px; }
  .guide-hero__head { margin-bottom: 0; }
  .kit-picker { margin-top: 0; }
  .guide-hero .note { margin-top: 0; }
}

/* ---------- GUIDE: stepper ---------- */
.stepper {
  margin-top: 28px;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: 14px;
}
.stepper__item {
  min-height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--r-btn);
}
.stepper__item:hover .stepper__label { color: var(--c-accent); }
.stepper__line + .stepper__item { border-left: 1px solid var(--c-line); border-radius: 0; }
.stepper__line { display: none; }
.stepper__num {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill);
  border: 2px solid var(--c-accent);
  box-shadow: 0 0 12px var(--accent-40);
  color: var(--c-accent);
  font-family: var(--f-head);
  font-size: 14px;
  font-weight: 700;
}
.stepper__text { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stepper__kicker { display: none; }
.stepper__label { font-size: 13px; font-weight: 600; transition: color .2s ease; }

@media (min-width: 768px) {
  .stepper {
    margin-top: 56px;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    gap: 24px;
    border-radius: var(--r-card);
  }
  .stepper__item { flex-direction: row; gap: 14px; }
  .stepper__line + .stepper__item { border-left: 0; }
  .stepper__line { display: block; flex: 1 1 auto; height: 1px; background: var(--accent-45); }
  .stepper__num { width: 44px; height: 44px; font-size: 18px; box-shadow: 0 0 16px var(--accent-40); }
  .stepper__text { align-items: flex-start; }
  .stepper__kicker {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-muted);
  }
  .stepper__label { font-size: 16px; }
}

/* ---------- GUIDE: step sections ---------- */
.guide-step { display: flex; flex-direction: column; gap: 16px; padding-top: clamp(56px, 41.14px + 3.81vw, 96px); }
.step-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 14px; row-gap: 16px; }
.step-head__num {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill);
  border: 2px solid var(--c-accent);
  box-shadow: 0 0 20px var(--accent-40), inset 0 0 10px var(--accent-15);
  color: var(--c-accent);
  font-family: var(--f-head);
  font-size: 18px;
  font-weight: 700;
}
.step-head__title { display: flex; flex-direction: column; gap: 2px; }
.step-head__title .eyebrow { letter-spacing: 0.24em; }
.step-head__h2 { font-family: var(--f-head); font-size: var(--fs-h2-step); font-weight: 700; line-height: 1.15; }
.step-head__lead { grid-column: 1 / -1; }

@media (min-width: 1024px) {
  .guide-step { gap: 32px; }
  .step-head { grid-template-columns: auto minmax(0, 1fr) 440px; column-gap: 24px; }
  .step-head__num { width: 64px; height: 64px; font-size: 24px; box-shadow: 0 0 24px var(--accent-40), inset 0 0 12px var(--accent-15); }
  .step-head__title { gap: 6px; }
  .step-head__title .eyebrow { font-size: 13px; }
  .step-head__lead { grid-column: auto; }
}

/* Step 1: video + video list */
.assembly { display: flex; flex-direction: column; gap: 16px; }
.video-card {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--c-line);
  background: var(--c-media);
}
.video-card__poster { width: 100%; height: 100%; object-fit: cover; }
.video-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  background: rgba(4, 8, 12, 0.55);
}
.video-card__tag {
  align-self: flex-start;
  font-family: var(--f-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(4, 8, 12, 0.8);
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  padding: 4px 10px;
}
.video-card__play { align-self: center; }
.video-card__title { font-family: var(--f-head); font-size: 16px; font-weight: 700; }

.video-list__label { padding: 4px 0 8px; }
.video-list__list { list-style: none; margin: 0; padding: 0; }
.video-list__list li { border-top: 1px solid var(--c-line); }
.video-list__list li:last-child { border-bottom: 1px solid var(--c-line); }
.video-item {
  width: 100%;
  min-height: 52px;
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  color: var(--c-text);
}
.video-item__num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--accent-45);
  color: var(--c-accent);
  transition: background-color .2s ease, color .2s ease;
}
.video-item__num .icon { width: 14px; height: 14px; }
.video-item__title { flex: 1 1 auto; font-size: 15px; transition: color .2s ease; }
.video-item__dur { flex: none; font-family: var(--f-head); font-size: 14px; font-weight: 600; color: var(--c-muted); }
.video-item:hover .video-item__title,
.video-item[aria-pressed="true"] .video-item__title { color: var(--c-accent); }
.video-item[aria-pressed="true"] .video-item__num { background: var(--c-accent); color: var(--c-on-accent); }

@media (min-width: 768px) {
  .video-card { border-radius: var(--r-card); }
  .video-card__overlay { padding: 28px; }
  .video-card__tag { font-size: 13px; padding: 6px 12px; }
  .video-card__title { font-size: 22px; }
  .play-btn.video-card__play { width: 88px; height: 88px; }
  .video-list__label { padding: 0 0 12px; }
  .video-item { min-height: 60px; padding: 14px 0; gap: 16px; }
  .video-item__num { width: 36px; height: 36px; }
  .video-item__title { font-size: 16px; }
  .video-item__dur { font-size: 15px; }
}
@media (min-width: 1024px) {
  .assembly { display: grid; grid-template-columns: minmax(0, 1.92fr) minmax(0, 1fr); gap: 32px; align-items: start; }
}

/* Circuit diagram card */
.circuit {
  display: grid;
  grid-template-areas: "head" "preview" "actions";
  gap: 14px;
  padding: 18px;
  border-radius: 14px;
  margin-top: 8px;
}
.circuit__head { grid-area: head; display: flex; align-items: center; gap: 12px; }
.circuit__title { font-family: var(--f-head); font-size: 18px; font-weight: 600; line-height: 1.3; }
.circuit__actions { grid-area: actions; display: flex; flex-direction: column; gap: 10px; }
.circuit__actions .btn { width: 100%; }
.circuit__dl { order: -1; }
.circuit__preview {
  grid-area: preview;
  height: 240px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-btn);
  border: 1px dashed var(--accent-45);
  background-color: var(--c-bg);
  background-image: radial-gradient(var(--c-line) 1px, transparent 1px);
  background-size: 16px 16px;
  color: var(--c-muted);
  cursor: zoom-in;
}
.circuit__preview:hover { border-color: var(--c-accent); }
.circuit__img { width: 100%; height: 100%; object-fit: contain; }
.circuit__placeholder { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.circuit__placeholder .icon { width: 28px; height: 28px; color: var(--c-accent); }
.circuit__ph-title { font-family: var(--f-head); font-size: 14px; font-weight: 600; letter-spacing: 0.1em; }
.circuit__ph-hint { font-size: 13px; }

@media (min-width: 768px) {
  .circuit { gap: 20px; padding: 28px; border-radius: var(--r-card); margin-top: 0; }
  .circuit__head { gap: 16px; }
  .circuit__title { font-size: 22px; }
  .circuit__actions { flex-direction: row; gap: 12px; }
  .circuit__actions .btn { flex: 1 1 0; }
  .circuit__preview { height: 400px; border-radius: var(--r-opt); background-size: 20px 20px; }
  .circuit__placeholder { gap: 12px; }
  .circuit__placeholder .icon { width: 32px; height: 32px; }
  .circuit__ph-title { font-size: 16px; }
  .circuit__ph-hint { font-size: 14px; }
}

@media (min-width: 1024px) {
  .circuit {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "head actions" "preview preview";
    align-items: center;
    gap: 24px;
    padding: 32px;
  }
  .circuit__title { font-size: 24px; }
  .circuit__actions .btn { flex: 0 0 auto; width: auto; }
  .circuit__dl { order: 0; }
}

/* Step 2: how-to list + sample code */
.upload { display: flex; flex-direction: column; gap: 16px; }
.how-list { list-style: none; margin: 0; padding: 0; }
.how-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--c-line); }
.how-list li:last-child { border-bottom: 0; }
.how-list--tight li { padding: 14px 0; }
.how-list__body { display: flex; flex-direction: column; gap: 4px; }
.how-list__title { font-size: 16px; font-weight: 600; }
.how-list__text { font-size: 14px; line-height: 1.55; color: var(--c-text-2); }
.upload__note { margin-top: 8px; }

.code-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 14px; }
.code-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.code-card__title { font-family: var(--f-head); font-size: 18px; font-weight: 600; line-height: 1.3; }
.code-card__github { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 600; color: var(--c-accent); white-space: nowrap; }
.code-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.code-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-opt);
}
.code-item__icon {
  display: none;
  width: 44px; height: 44px;
  flex-shrink: 0;
  align-items: center; justify-content: center;
  border-radius: var(--r-btn);
  background: var(--accent-08);
  border: 1px solid var(--accent-25);
  color: var(--c-accent);
}
.code-item__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.code-item__title { font-size: 15px; font-weight: 600; }
.code-item__desc { font-size: 13px; color: var(--c-text-2); }
.code-item__dl { width: 44px; padding: 0; flex-shrink: 0; }
.code-card__help { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.55; color: var(--c-text-2); }
.code-card__help .icon { color: var(--c-accent); margin-top: 1px; }
.code-card__help a { color: var(--c-accent); }
.code-card__help a:hover { text-decoration: underline; }
.code-card__key { display: flex; flex-direction: column; gap: 8px; }
.code-card__key .field__input { text-transform: uppercase; letter-spacing: 0.06em; }
.code-item__dl[aria-busy="true"] { opacity: 0.6; cursor: progress; }

@media (min-width: 768px) {
  .how-list li { gap: 16px; padding: 20px 0; }
  .how-list--tight li { padding: 18px 0; }
  .how-list__title { font-size: 17px; }
  .how-list__text { font-size: 15px; line-height: 1.6; }
  .code-card { gap: 16px; padding: 28px; border-radius: var(--r-card); }
  .code-card__title { font-size: 22px; }
  .code-card__github { font-size: 14px; }
  .code-item { gap: 16px; padding: 16px; }
  .code-item__icon { display: inline-flex; }
  .code-item__title { font-size: 16px; }
  .code-item__desc { font-size: 14px; }
  .code-item__dl { width: auto; padding: 0 16px; }
  .code-card__help { align-items: center; padding-top: 4px; font-size: 14px; }
}
@media (min-width: 1024px) {
  .upload { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
  .how-list:not(.how-list--tight) { margin-top: -20px; }
}

/* Step 3: app */
.app-guide { display: flex; flex-direction: column; gap: 16px; }
.app-shots { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.app-shots__tabs { justify-content: center; }
/* Landscape phone: the app runs sideways */
.phone-mock {
  width: 100%;
  max-width: 600px;
  margin: 8px 0 0;
  padding: 8px;
  border-radius: 22px;
  border: 2px solid var(--c-line);
  background: var(--c-card);
  box-shadow: 0 0 48px var(--accent-12);
}
.phone-mock__screen {
  width: 100%;
  aspect-ratio: 2.08 / 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 14px;
  border: 1px dashed var(--accent-45);
  background: var(--c-bg);
  color: var(--c-muted);
  font-family: var(--f-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
}
.phone-mock__screen .icon { width: 28px; height: 28px; color: var(--c-accent); }
.phone-mock__screen.has-img { border: 0; }
.phone-mock__screen img { width: 100%; height: 100%; object-fit: cover; }
.app-guide__body { display: flex; flex-direction: column; gap: 16px; }
.app-guide__get { display: flex; flex-direction: column; gap: 28px; }
.app-guide__stores { display: flex; flex-direction: column; gap: 12px; }
.app-guide__stores .btn { font-size: 15px; }
.qr { display: none; }

@media (min-width: 768px) {
  .phone-mock { padding: 12px; border-radius: 30px; box-shadow: 0 0 60px var(--accent-12); }
  .phone-mock__screen { border-radius: 20px; font-size: 15px; gap: 14px; }
  .app-guide__body { gap: 28px; }
  .app-guide__get { flex-direction: row; flex-wrap: wrap; align-items: center; row-gap: 20px; }
  .app-guide__stores .btn { width: 240px; }
  .qr { display: flex; align-items: center; gap: 16px; }
  .qr__box {
    width: 116px; height: 116px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    border-radius: var(--r-opt);
    border: 1px dashed var(--accent-45);
    background: var(--c-card);
    color: var(--c-muted);
    font-family: var(--f-head);
    font-size: 13px;
    font-weight: 600;
  }
  .qr__box img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
  /* White quiet zone around the code so phones can scan it on the dark page */
  .qr__box.has-img { padding: 8px; border: 0; background: #fff; }
  .qr__text { width: 110px; font-size: 14px; line-height: 1.5; color: var(--c-text-2); }
}
@media (min-width: 1024px) {
  .app-guide { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
  .phone-mock { margin: 0; }
}

/* Buy band on guide page */
.buy-band__actions { margin-top: 8px; }
.buy-band__kit { font-size: 13px; color: var(--c-muted); text-align: center; }
@media (min-width: 1024px) {
  .buy-band__actions { margin-top: 0; width: 420px; flex-shrink: 0; }
}

/* ---------- CHECKOUT ---------- */
.checkout { padding-bottom: var(--section); }
.checkout__head { display: flex; flex-direction: column; gap: 12px; margin: 8px 0 24px; max-width: 720px; }
.checkout__title { font-family: var(--f-head); font-size: var(--fs-h1-product); font-weight: 700; line-height: 1.1; }
.checkout__grid { display: grid; grid-template-areas: "summary" "form"; gap: 16px; }
.checkout__form-card { grid-area: form; padding: 20px; }
.checkout__summary { grid-area: summary; padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.checkout__summary-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.checkout__source { font-size: 13px; color: var(--c-muted); }
.checkout__h2 { font-family: var(--f-head); font-size: 20px; font-weight: 600; line-height: 1.3; }
.checkout__address { min-height: 96px; }
.checkout__pay {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-opt);
  background: var(--c-bg);
  font-size: 14px;
  line-height: 1.55;
  color: var(--c-text-2);
}
.checkout__pay .icon { color: var(--c-accent); flex-shrink: 0; }
.line-item__qty { font-size: 14px; color: var(--c-text-2); }

.summary { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--c-line); }
.summary:empty { display: none; }
.summary__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--c-text-2); }
.summary__total { padding-top: 12px; border-top: 1px solid var(--c-line); font-size: 16px; font-weight: 600; color: var(--c-text); }
.summary__total .price { font-size: 24px; }

@media (min-width: 768px) {
  .checkout__form-card, .checkout__summary { padding: 28px; }
}
@media (min-width: 1024px) {
  .checkout__head { margin: 20px 0 40px; }
  .checkout__grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    grid-template-areas: "form summary";
    gap: 32px;
    align-items: start;
  }
  .checkout__form-card, .checkout__summary { padding: 32px; }
  .checkout__summary { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* ---------- POLICY page (chinh-sach.html) ---------- */
.policy { padding-bottom: var(--section); }
.policy__head { display: flex; flex-direction: column; gap: 12px; margin: 8px 0 24px; max-width: 720px; }
.policy__title { font-family: var(--f-head); font-size: var(--fs-h1-product); font-weight: 700; line-height: 1.1; }
.policy__updated { font-size: 13px; color: var(--c-muted); }

.policy-highlights {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
.policy-highlight { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.policy-highlight__title { font-family: var(--f-head); font-size: 16px; font-weight: 600; line-height: 1.3; }
.policy-highlight__text { font-size: 13px; line-height: 1.5; color: var(--c-text-2); }

.policy-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 16px; }

.policy__body { display: flex; flex-direction: column; gap: 16px; max-width: 880px; }
.policy-block { display: flex; flex-direction: column; gap: 24px; padding: 24px 20px; }
.policy-block__title { font-family: var(--f-head); font-size: var(--fs-h2-step); font-weight: 700; line-height: 1.15; }
.policy-sub { display: flex; flex-direction: column; gap: 12px; }
.policy-sub + .policy-sub { padding-top: 24px; border-top: 1px solid var(--c-line); }
.policy-sub__title { font-size: 17px; font-weight: 600; }
.policy-sub p { font-size: 15px; line-height: 1.7; color: var(--c-text-2); }
.policy-block strong { color: var(--c-text); font-weight: 600; }
.policy-block a { color: var(--c-accent); }
.policy-block a:hover { text-decoration: underline; }

.policy-list, .policy-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.policy-list li, .policy-steps li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.6; color: var(--c-text-2); }
.policy-list .icon { margin-top: 3px; color: var(--c-accent); }
.policy-list--no .icon { color: var(--c-danger); }
.policy-steps .num-dot { margin-top: -2px; }

.policy-help { display: flex; flex-direction: column; gap: 16px; padding: 24px 20px; }
.policy-help__text { display: flex; flex-direction: column; gap: 6px; }
.policy-help__title { font-family: var(--f-head); font-size: 22px; font-weight: 700; line-height: 1.2; }
.policy-help p { font-size: 15px; line-height: 1.6; color: var(--c-text-2); }
.policy-help p a { color: var(--c-accent); overflow-wrap: anywhere; }

@media (min-width: 768px) {
  .policy__head { margin: 20px 0 40px; }
  .policy-highlights { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .policy-highlight { padding: 24px; gap: 12px; }
  .policy-highlight__title { font-size: 18px; }
  .policy-highlight__text { font-size: 14px; }
  .policy-nav { margin: 40px 0 20px; }
  .policy-block { padding: 40px; gap: 28px; }
  .policy-sub + .policy-sub { padding-top: 28px; }
  .policy-sub__title { font-size: 19px; }
  .policy-sub p, .policy-list li, .policy-steps li { font-size: 16px; }
  .policy-help { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; padding: 32px 40px; }
  .policy-help .btn { flex-shrink: 0; }
  .policy-help__title { font-size: 26px; }
}
