/* =====================================================================
   APEX BIOTECH — STYLES
   Layout: centered 1200px column, navy bands for emphasis, data-sheet
   tables for specs. Change the brand by editing the tokens below.
   ===================================================================== */
/* Bundled fonts so the site looks right offline (Inter, SIL Open Font License; see fonts/LICENSE.txt) */
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: local("Inter"), url("fonts/Inter-Regular.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: local("Inter Medium"), url("fonts/Inter-Medium.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: local("Inter SemiBold"), url("fonts/Inter-SemiBold.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: local("Inter Bold"), url("fonts/Inter-Bold.woff") format("woff"); }
@font-face { font-family: "Inter Display"; font-weight: 600; font-style: normal; font-display: swap; src: local("Inter Display SemiBold"), url("fonts/InterDisplay-SemiBold.woff") format("woff"); }
@font-face { font-family: "Inter Display"; font-weight: 700; font-style: normal; font-display: swap; src: local("Inter Display Bold"), url("fonts/InterDisplay-Bold.woff") format("woff"); }

:root {
  --bg: #FFFFFF;
  --surface: #F4F7FA;
  --surface-2: #E8EEF4;
  --ink: #0A2540;
  --ink-2: #4A5D73;
  --line: #DCE4EB;
  --accent: #00B894;
  --accent-ink: #00806A;
  --accent-soft: #E2F5F0;
  --cyan: #2DD4E6;
  --band: #0A2540;
  --on-band: #FFFFFF;
  --on-band-2: #B6C4D3;
  --navy-fixed: #0A2540;
  --brand-blue: #1F4FD1;
  --warn: #B45309;
  --star: #E0A100;
  --shadow: 0 10px 30px rgba(10, 37, 64, 0.08);

  --font-display: "Sora", "Inter Display", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius: 14px;
  --wrap: 1200px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07182A; --surface: #0C2238; --surface-2: #12304C; --ink: #E8F0F6; --ink-2: #9FB2C6;
    --line: #1F3A57; --accent: #19D3A8; --accent-ink: #3EE0B8; --accent-soft: #0E3A39; --brand-blue: #6E9BFF; --cyan: #4FE0EF;
    --band: #04111F; --on-band: #FFFFFF; --on-band-2: #A9BACB; --warn: #F59E0B; --star: #F5B82E;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #07182A; --surface: #0C2238; --surface-2: #12304C; --ink: #E8F0F6; --ink-2: #9FB2C6;
  --line: #1F3A57; --accent: #19D3A8; --accent-ink: #3EE0B8; --accent-soft: #0E3A39; --brand-blue: #6E9BFF; --cyan: #4FE0EF;
  --band: #04111F; --on-band: #FFFFFF; --on-band-2: #A9BACB; --warn: #F59E0B; --star: #F5B82E;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { max-width: 100%; }
a { color: var(--ink); }
a:hover { color: var(--accent-ink); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
@media (max-width: 480px) { .wrap { padding-inline: 16px; } }
.section { padding-block: 88px; }
.section-tight { padding-block: 56px; }
.band { background: var(--band); color: var(--on-band); }
.band a { color: var(--on-band); }
.muted { color: var(--ink-2); }
.band .muted { color: var(--on-band-2); }
.eyebrow {
  font-family: var(--font-display); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 14px;
}
.band .eyebrow { color: var(--cyan); }
.h1 { font-size: clamp(38px, 5.4vw, 62px); font-weight: 700; letter-spacing: -0.015em; }
.h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; }
.h3 { font-size: 21px; font-weight: 600; }
.lead { font-size: 18.5px; line-height: 1.65; max-width: 60ch; }
.mono { font-family: var(--font-mono); font-size: 0.92em; }
.num { font-variant-numeric: tabular-nums; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.section-head > div { min-width: 0; max-width: 680px; }
.section-head .lead { margin-top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 15.5px/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent-ink); color: var(--bg); }
.btn-accent { background: var(--accent); color: var(--navy-fixed); }
.btn-accent:hover { background: var(--cyan); color: var(--navy-fixed); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.band .btn-ghost { color: var(--on-band); border-color: rgba(255, 255, 255, 0.35); }
.band .btn-ghost:hover { border-color: var(--on-band); color: var(--on-band); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo-word { display: flex; flex-direction: column; line-height: 1; }

.logo-word b { display: flex; align-items: flex-end; gap: 0.08em; font: 600 22px var(--font-display); letter-spacing: 0.12em; }
.logo-word .lam { flex: none; width: 0.92em; height: 0.9em; margin-bottom: 0.1em; }
.logo-word span { font: 500 10px var(--font-display); letter-spacing: 0.42em; color: var(--brand-blue); margin-top: 5px; text-align: center; }
.logo-word .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.site-footer .logo-word span { color: #6E9BFF; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none;
  font-weight: 500; font-size: 15px; color: var(--ink-2);
}
.nav-links a:hover { color: var(--ink); background: var(--surface); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink);
  background: transparent; text-decoration: none;
}
.cart-btn:hover { border-color: var(--ink); }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--accent); color: var(--navy-fixed);
  font: 700 11.5px/20px var(--font-body); text-align: center;
}
.cart-count.bump { animation: bump 0.45s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
    padding: 12px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--line); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 16px; }
  .nav-actions .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-block: 88px; }
.hero-copy { flex: 1 1 520px; min-width: 0; position: relative; z-index: 1; }
.hero-copy .lead { margin-top: 24px; color: var(--on-band-2); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-note { margin-top: 20px; font-size: 14px; color: var(--on-band-2); }
.hero-visual { flex: 1 1 400px; min-width: 0; max-width: 520px; position: relative; z-index: 1; }
.helix { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; pointer-events: none; }
.hero .h1 .hl { color: var(--cyan); }
.load-in > * { animation: rise 0.8s cubic-bezier(.2,.7,.2,1) both; }
.load-in > *:nth-child(2) { animation-delay: 0.08s; }
.load-in > *:nth-child(3) { animation-delay: 0.16s; }
.load-in > *:nth-child(4) { animation-delay: 0.24s; }
.load-in > *:nth-child(5) { animation-delay: 0.32s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* COA card */
.coa {
  background: var(--bg); color: var(--ink); border-radius: 20px; padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
.coa-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: var(--accent-soft); color: var(--accent-ink); white-space: nowrap;
}
.pill-plain { background: var(--surface-2); color: var(--ink-2); }
.spec { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec th, .spec td { text-align: left; padding: 12px 0; border-top: 1px solid var(--line); vertical-align: top; }
.spec th { color: var(--ink-2); font-weight: 500; width: 44%; padding-right: 12px; }
.spec td { font-weight: 600; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 1px solid var(--line); }
.chrom { display: block; width: 100%; height: 74px; margin: 18px 0 6px; }
.chrom path { stroke: var(--accent); fill: none; stroke-width: 1.6; }
.chrom .fill { fill: var(--accent-soft); stroke: none; }
.chrom line { stroke: var(--line); }
.draw path.trace { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.2s 0.4s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Trust row ---------- */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-item svg { flex: none; color: var(--accent-ink); }
.trust-item b { display: block; font-size: 15.5px; }
.trust-item span { font-size: 14px; color: var(--ink-2); }

/* ---------- Product cards ---------- */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.card {
  display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card-media { background: var(--surface); display: flex; justify-content: center; align-items: center; aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden; }
.card-media svg { height: 86%; width: auto; transition: transform 0.4s ease; }
.card:hover .card-media svg { transform: translateY(-4px) rotate(-3deg); }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 22px; flex: 1; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card-title { font: 600 19px var(--font-display); }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 10px; }
.card-foot .btn { position: relative; z-index: 2; min-height: 40px; padding: 10px 16px; font-size: 14px; }
.price { font: 600 17px var(--font-display); font-variant-numeric: tabular-nums; }
.price small { font: 500 13px var(--font-body); color: var(--ink-2); }

.pimg { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* ---------- Toolbar (shop) ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--bg); color: var(--ink); font: 600 14px var(--font-body); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.field {
  min-height: 44px; padding: 10px 14px; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--bg); color: var(--ink); font: 15px var(--font-body); width: 100%;
}
.field:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.field { resize: vertical; min-height: 110px; }
.toolbar .search { flex: 1 1 240px; min-width: 0; }
.toolbar select.field { width: auto; }
.result-count { font-size: 14px; color: var(--ink-2); }
.empty { padding: 48px 24px; text-align: center; border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--ink-2); }

/* ---------- Product page ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--ink-2); padding-top: 28px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.pdp { display: flex; flex-wrap: wrap; gap: 56px; padding-block: 32px 72px; }
.pdp-media {
  flex: 1 1 420px; min-width: 0; background: var(--surface); border-radius: 20px;
  display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; max-width: 100%; position: relative; overflow: hidden;
}
.pdp-media svg.vial { width: 42%; height: auto; animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.pdp-info { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.pdp-info .price { font-size: 30px; }
.opt-group { display: flex; flex-wrap: wrap; gap: 10px; }
.opt {
  min-height: 46px; min-width: 88px; padding: 10px 16px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--bg); color: var(--ink); font: 600 15px var(--font-body); cursor: pointer;
}
.opt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; }
.qty button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); font-size: 20px; cursor: pointer; border-radius: 999px; }
.qty output, .qty span { min-width: 32px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.buy-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.buy-row .btn { flex: 1 1 200px; }
.notice { font-size: 13.5px; color: var(--ink-2); padding: 14px 16px; background: var(--surface); border-radius: 12px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.tab {
  padding: 14px 18px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer;
  font: 600 15px var(--font-body); border-bottom: 2.5px solid transparent; margin-bottom: -1px;
}
.tab[aria-selected="true"] { color: var(--ink); border-color: var(--accent); }
.tab-panel { max-width: 760px; }

/* ---------- Reviews ---------- */
.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars svg { width: 16px; height: 16px; }
.rating-summary { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.rating-big { font: 700 64px var(--font-display); line-height: 1; font-variant-numeric: tabular-nums; }
.bars { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 52px 1fr 32px; gap: 12px; align-items: center; font-size: 14px; }
.bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w, 0%); background: var(--accent); border-radius: 999px; transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.review-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.review { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.review h3 { font-size: 17.5px; }
.review-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13.5px; color: var(--ink-2); margin-top: auto; padding-top: 8px; }
.review-product { font-size: 13.5px; font-weight: 600; color: var(--accent-ink); text-decoration: none; }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--bg); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.post-card h3 { font-size: 21px; }
.post-card .meta { font-size: 13.5px; color: var(--ink-2); margin-top: auto; }
.post-feature { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding: 40px; border-radius: 22px; }
.post-feature > div { flex: 1 1 380px; min-width: 0; }
.article { max-width: 70ch; margin: 0 auto; padding-block: 40px 88px; }
.article h1 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 700; margin: 14px 0 16px; }
.article h2 { font-size: 24px; margin: 40px 0 12px; }
.article p { font-size: 18px; line-height: 1.75; margin-bottom: 18px; }
.progress { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; height: 3px; width: 0; background: var(--accent); z-index: 60; }

/* ---------- Checkout ---------- */
.checkout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-block: 40px 88px; }
.checkout-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.checkout-side { flex: 1 1 340px; min-width: 0; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); }
.panel { border: 1px solid var(--line); border-radius: 18px; padding: 28px; background: var(--bg); }
.panel h2 { font-size: 20px; margin-bottom: 20px; }
.steps { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 8px; font-size: 14px; }
.steps li { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.steps li b { width: 26px; height: 26px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); font-size: 13px; }
.steps li.on { color: var(--ink); }
.steps li.on b { background: var(--accent); color: var(--navy-fixed); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.fl { display: flex; flex-direction: column; gap: 7px; }
.fl label { font-weight: 600; font-size: 14px; }
.fl .hint { font-size: 13px; color: var(--ink-2); }
.err { font-size: 13px; color: var(--warn); }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.radio-card { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.radio-card input { margin-top: 4px; accent-color: var(--accent-ink); }
.radio-card b { display: block; font-size: 15px; }
.radio-card span { font-size: 13.5px; color: var(--ink-2); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.55; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--accent-ink); }
.line-items { display: flex; flex-direction: column; }
.line { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line-thumb { width: 52px; height: 52px; border-radius: 10px; background: var(--surface); display: flex; align-items: center; justify-content: center; }
.line-thumb svg { width: 60%; height: auto; }
.line-name { font-weight: 600; font-size: 15px; }
.line-sub { font-size: 13px; color: var(--ink-2); }
.line-ctrls { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.line-ctrls .qty button { width: 34px; height: 34px; font-size: 17px; }
.link-btn { background: none; border: 0; padding: 4px; color: var(--ink-2); font: 500 13px var(--font-body); text-decoration: underline; cursor: pointer; }
.totals { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; font-size: 15px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals .grand { font: 700 19px var(--font-display); padding-top: 12px; border-top: 1px solid var(--line); }
.done { text-align: center; padding: 56px 24px; }
.done svg { color: var(--accent-ink); }
.check-anim circle { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 0.8s ease forwards; }
.check-anim path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 0.5s 0.6s ease forwards; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); z-index: 80;
  transform: translate(-50%, 140%); transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; max-width: calc(100% - 32px);
  background: var(--navy-fixed); color: #FFFFFF; border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3); font-size: 15px;
}
.toast { visibility: hidden; }
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.toast a { color: #7CF0D6; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--band); color: var(--on-band-2); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-block: 64px 32px; }
.footer-grid nav { display: flex; flex-wrap: wrap; gap: 48px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-col b { color: var(--on-band); }
.footer-col a { color: var(--on-band-2); text-decoration: none; }
.footer-col a:hover { color: var(--on-band); }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-block: 24px 40px; font-size: 13px; line-height: 1.6; }

/* ---------- Scroll motion (content is visible at rest; it only slides) ---------- */
.reveal { transition: transform 0.8s cubic-bezier(.2,.7,.2,1); }
.reveal.below { transform: translateY(22px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .draw path.trace, .check-anim circle, .check-anim path { stroke-dashoffset: 0 !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Page transitions (native, supporting browsers only) ---------- */
@view-transition { navigation: auto; }

/* ---------- Quick view, compare, dialogs ---------- */
.card-media { position: relative; }
.qv-btn {
  position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 8px); opacity: 0; z-index: 2;
  min-height: 38px; padding: 8px 16px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--ink); color: var(--bg); font: 600 13.5px var(--font-body); transition: opacity .2s, transform .2s;
}
.card:hover .qv-btn, .qv-btn:focus-visible { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .qv-btn { opacity: 1; transform: translate(-50%, 0); } }
.cmp { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); cursor: pointer; align-self: flex-start; }
.cmp input { accent-color: var(--accent-ink); width: 16px; height: 16px; }
.cmp-bar {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); transform: translateX(-50%); z-index: 70;
  display: flex; align-items: center; gap: 16px; padding: 10px 12px 10px 20px; border-radius: 999px;
  background: var(--navy-fixed); color: #fff; box-shadow: 0 16px 40px rgba(0,0,0,.3); max-width: calc(100% - 32px);
}
.cmp-bar .btn { min-height: 40px; padding: 8px 18px; }
.dlg { border: 0; border-radius: 20px; padding: 32px; width: min(860px, calc(100% - 32px)); max-height: 88vh; background: var(--bg); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.dlg::backdrop { background: rgba(7, 24, 42, .55); backdrop-filter: blur(3px); }
.dlg[open] { animation: rise .3s cubic-bezier(.2,.7,.2,1); }
.dlg-x { position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; border-radius: 999px; border: 0; background: var(--surface); color: var(--ink); font-size: 22px; cursor: pointer; }
.qv { display: flex; flex-wrap: wrap; gap: 28px; }
.qv-media { flex: 1 1 260px; min-width: 0; aspect-ratio: 1; max-width: 100%; background: var(--surface); border-radius: 16px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.qv-media svg { height: 80%; width: auto; }
.qv-info { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cmp-table th[scope="col"] { font: 600 15px var(--font-display); color: var(--ink); vertical-align: bottom; min-width: 150px; }
.cmp-table thead th { border-top: 0; }

/* ---------- Sticky buy bar (mobile product page) ---------- */
.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 65; display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px calc(env(safe-area-inset-bottom, 0px) + 12px); background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(10,37,64,.08);
  transform: translateY(100%); transition: transform .3s ease;
}
@media (max-width: 760px) { .sticky-buy { display: flex; } }
.sticky-buy.show { transform: none; }

/* ---------- About ---------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.stat b { display: block; font: 700 34px var(--font-display); color: var(--cyan); }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 28px 28px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 999px; background: var(--accent); }
.cmp-table { table-layout: fixed; } .cmp-table thead th:first-child { width: 160px; }
.logo-img { height: 44px; width: auto; max-width: 220px; object-fit: contain; }
