/* Alpha Primal Aminos — preview theme
   Black, sleek, futuristic. Port-friendly static CSS. */
:root {
  --bg: #050507;
  --bg-elev: #0b0b10;
  --panel: rgba(12, 12, 16, 0.72);
  --panel-solid: #101014;
  --chrome: #e8eaed;
  --chrome-dim: #a8adb6;
  --chrome-dark: #6e747e;
  --red: #c81e28;
  --red-hot: #ef3a3a;
  --red-glow: rgba(200, 30, 40, 0.45);
  --red-line: rgba(200, 30, 40, 0.85);
  --text: #e6e8ec;
  --muted: #9aa0aa;
  --line: rgba(232, 234, 237, 0.12);
  --line-strong: rgba(232, 234, 237, 0.22);
  --header-h: 72px;
  --radius: 14px;
  --font-display: "Orbitron", sans-serif;
  --font-label: "Rajdhani", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; margin: 0; }
p { margin: 0; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Backdrop: slow grid + vignette + faint particles */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(200, 30, 40, 0.16), transparent 55%),
    radial-gradient(ellipse 40% 40% at 90% 20%, rgba(200, 30, 40, 0.06), transparent 50%),
    var(--bg);
}
.site-bg .grid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(200, 30, 40, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 30, 40, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: grid-shift 48s linear infinite;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 15%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 15%, transparent 72%);
}
.site-bg .noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
}
@keyframes grid-shift {
  from { transform: translateY(0); }
  to { transform: translateY(56px); }
}

.wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(5, 5, 7, 0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, var(--red) 50%, transparent 95%);
  opacity: 0.7;
  pointer-events: none;
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(var(--max), calc(100% - 32px));
}
.logo {
  display: flex;
  align-items: center;
  flex: none;
  filter: drop-shadow(0 0 10px rgba(200, 30, 40, 0.25));
}

/* Reusable spinning-gear logo. Origin is the true rim center on the 784x671 canvas. */
.ap-logo {
  position: relative;
  display: block;
  aspect-ratio: 784 / 671;
  width: auto;
  height: 60px;
  flex: none;
  overflow: visible;
  line-height: 0;
}
.ap-logo img,
.logo .ap-logo img,
.hero-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
  display: block;
  pointer-events: none;
  border: 0;
  filter: none;
}
.ap-logo-rim {
  z-index: 0;
  transform-origin: 50.037% 49.747%;
  animation: ap-gear-spin 20s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}
.ap-logo-face {
  z-index: 1;
}
@keyframes ap-gear-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chrome-dim);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .2s, background .2s, text-shadow .2s;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--chrome);
  text-shadow: 0 0 12px var(--red-glow);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
}
.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--chrome);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.icon-btn:hover {
  border-color: var(--line-strong);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 0 16px rgba(200, 30, 40, 0.18);
}
.icon-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  display: none;
}
.cart-count.show { display: block; }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  background: none;
  border: 0;
  padding: 0;
  color: var(--chrome);
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  position: relative;
  margin: 0 auto;
  transition: transform .2s, opacity .2s;
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
body.nav-open .menu-toggle span { background: transparent; }
body.nav-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 20px 0 40px;
}
.hero-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 8px;
}
.hero-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 8px 0 0;
  font-size: 0;
}
.hero-mark::before {
  content: "";
  position: absolute;
  width: min(420px, 70%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,30,40,0.34) 0%, rgba(200,30,40,0.1) 42%, transparent 70%);
  filter: blur(6px);
  pointer-events: none;
  z-index: 0;
}
.hero-logo {
  position: relative;
  z-index: 1;
  width: min(400px, 40vw);
  height: auto;
  filter: drop-shadow(0 0 28px rgba(200, 30, 40, 0.4));
}
.hero-floor {
  position: absolute;
  left: -15%;
  right: -15%;
  bottom: -8%;
  height: 58%;
  background-image:
    linear-gradient(90deg, rgba(200,30,40,0.16) 1px, transparent 1px),
    linear-gradient(rgba(200,30,40,0.16) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(500px) rotateX(62deg);
  transform-origin: center top;
  animation: floor-scroll 24s linear infinite;
  mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 60%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 60%, transparent);
  pointer-events: none;
}
@keyframes floor-scroll {
  from { background-position: 0 0; }
  to { background-position: 0 64px; }
}
.hero-glow {
  position: absolute;
  right: 8%;
  top: 18%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,30,40,0.28) 0%, rgba(200,30,40,0.08) 40%, transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}
.eyebrow {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--chrome-dim);
  margin-bottom: 18px;
}
.hero h1 .line {
  display: block;
}
.chrome {
  background: linear-gradient(185deg, #ffffff 0%, #f3f4f6 18%, #c5c8ce 42%, #8a9099 50%, #d8dbe0 62%, #f7f8fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(200, 30, 40, 0.22));
}
.hero h1 .brand {
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  letter-spacing: 0.04em;
  font-weight: 800;
}
.hero h1 .rule {
  display: block;
  width: min(280px, 70%);
  height: 2px;
  margin: 14px 0 16px;
  background: linear-gradient(90deg, var(--red), rgba(200,30,40,0.15));
  box-shadow: 0 0 12px var(--red-glow);
}
.hero h1 .aminos {
  font-size: clamp(1.15rem, 2.8vw, 1.7rem);
  letter-spacing: 0.62em;
  font-weight: 600;
  padding-left: 0.08em;
}
.lede {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 34ch;
}
.hero-copy .eyebrow { margin-bottom: 14px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
}
.vial-ring {
  position: absolute;
  width: min(420px, 90%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(200, 30, 40, 0.35);
  box-shadow:
    0 0 0 1px rgba(232,234,237,0.06),
    0 0 40px rgba(200,30,40,0.2),
    inset 0 0 40px rgba(200,30,40,0.08);
  animation: ring-pulse 6s ease-in-out infinite;
  pointer-events: none;
}
.vial-ring::before,
.vial-ring::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  border: 1px dashed rgba(232,234,237,0.14);
}
.vial-ring::after { inset: -14px; border-style: solid; border-color: rgba(232,234,237,0.08); }
@keyframes ring-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.03); opacity: 0.75; }
}
.hero-visual img {
  position: relative;
  height: min(380px, 50vw);
  width: auto;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,0.65)) drop-shadow(0 0 24px rgba(200,30,40,0.2));
  z-index: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 10px;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(200,30,40,0.4), 0 0 22px rgba(200,30,40,0.35);
}
.btn-primary:hover {
  background: var(--red-hot);
  box-shadow: 0 0 0 1px rgba(239,58,58,0.5), 0 0 28px rgba(200,30,40,0.55);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--chrome);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--red);
  box-shadow: 0 0 18px rgba(200,30,40,0.25);
}
.btn:disabled, .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* Trust */
.trust {
  padding: 8px 0 72px;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.trust-card,
.panel {
  position: relative;
  background: var(--panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
}
.trust-card::before,
.product-card::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0.85;
}
.corner {
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
}
.corner-tl { top: -1px; left: -1px; border-top: 1px solid var(--chrome-dim); border-left: 1px solid var(--chrome-dim); }
.corner-tr { top: -1px; right: -1px; border-top: 1px solid var(--chrome-dim); border-right: 1px solid var(--chrome-dim); }
.corner-bl { bottom: -1px; left: -1px; border-bottom: 1px solid var(--chrome-dim); border-left: 1px solid var(--chrome-dim); }
.corner-br { bottom: -1px; right: -1px; border-bottom: 1px solid var(--chrome-dim); border-right: 1px solid var(--chrome-dim); }
.trust-card svg {
  width: 22px;
  height: 22px;
  stroke: var(--red);
  fill: none;
  stroke-width: 1.6;
  margin-bottom: 12px;
}
.trust-card h2,
.section-title {
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--chrome);
  margin-bottom: 8px;
}
.trust-card p,
.muted { color: var(--muted); font-size: 0.95rem; }

/* Shop / products */
.section, .trust, .page-hero, .pdp { scroll-margin-top: calc(var(--header-h) + 12px); }
.section {
  padding: 24px 0 88px;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.section-head h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.section-head p { color: var(--muted); font-size: 0.95rem; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.product-card:hover {
  border-color: rgba(200, 30, 40, 0.55);
  box-shadow: 0 0 0 1px rgba(200,30,40,0.2), 0 10px 40px rgba(200,30,40,0.18), 0 0 28px rgba(200,30,40,0.12);
  transform: translateY(-3px);
}
.product-media {
  display: grid;
  place-items: center;
  padding: 28px 16px 8px;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(200,30,40,0.16), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  min-height: 300px;
}
.product-media img {
  height: 260px;
  width: auto;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,0.55));
}
.product-body {
  padding: 8px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-body h3 {
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sku {
  font-family: var(--font-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--chrome-dim);
  font-size: 0.9rem;
  margin-top: 4px;
}
.price-slot {
  min-height: 1.75rem;
  margin: 10px 0 14px;
}
.product-body .btn { width: 100%; }

/* Product detail */
.pdp {
  padding: 40px 0 88px;
}
.pdp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.pdp-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(ellipse at 50% 60%, rgba(200,30,40,0.2), transparent 62%),
    var(--panel);
}
.pdp-media img {
  height: min(560px, 70vh);
  width: auto;
  filter: drop-shadow(0 24px 30px rgba(0,0,0,0.6));
}
.pdp-copy .eyebrow { margin-bottom: 10px; }
.pdp-copy h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.pdp-copy .price-slot { min-height: 2rem; margin: 16px 0 22px; }
.pdp-copy .lede { max-width: 42ch; margin: 0 0 22px; }
.disclaimer-box {
  margin-top: 28px;
  padding: 14px 16px;
  border-left: 2px solid var(--red);
  background: rgba(200,30,40,0.06);
  color: var(--muted);
  font-size: 0.88rem;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 48px 0 16px;
}
.page-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.page-hero p { color: var(--muted); margin-top: 10px; max-width: 50ch; }

.placeholder-page {
  padding: 8px 0 96px;
}
.placeholder-page .panel { padding: 28px; max-width: 720px; }
.placeholder-page .panel p + p { margin-top: 12px; }

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  position: relative;
  background: rgba(5,5,7,0.85);
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, var(--red) 50%, transparent 95%);
  opacity: 0.7;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.1fr;
  gap: 32px;
  padding: 40px 0 28px;
}
.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.footer-brand img { height: 64px; width: auto; }
.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 6px;
}
.footer-col h2 {
  font-family: var(--font-label);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--chrome);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0 0 8px; }
.footer-col a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color .2s;
}
.footer-col a:hover { color: var(--chrome); }
.pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pay-chip {
  font-family: var(--font-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--chrome);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.03);
}
.footer-note {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 0 28px;
  color: var(--chrome-dark);
  font-size: 0.8rem;
}

/* Cart drawer */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 100%);
  background: #0a0a0e;
  border-left: 1px solid var(--line);
  z-index: 90;
  transform: translateX(100%);
  transition: transform .35s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 50px rgba(0,0,0,0.45);
}
body.cart-open .cart-overlay { opacity: 1; pointer-events: auto; }
body.cart-open .cart-drawer { transform: translateX(0); }
.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.cart-head h2 {
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.cart-body {
  flex: 1;
  overflow: auto;
  padding: 16px 20px;
}
.cart-empty {
  color: var(--muted);
  text-align: center;
  padding: 48px 8px;
  font-size: 0.95rem;
}
.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
}
.cart-item h3 {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cart-item .qty {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 4px;
}
.cart-item .qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.qty-btn {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 6px;
  color: var(--chrome);
  line-height: 1;
}
.cart-price {
  min-width: 4.5rem;
  min-height: 1.25rem;
}
.cart-foot {
  padding: 16px 20px 24px;
  border-top: 1px solid var(--line);
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-family: var(--font-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--chrome-dim);
}
.cart-total-row .cart-price { min-height: 1.5rem; min-width: 5rem; }
.cart-foot .btn { width: 100%; }
.cart-pay {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

/* Account */
.account-panel {
  max-width: 440px;
  margin: 8px auto 96px;
  padding: 32px 28px;
  text-align: center;
}
.account-panel h1 {
  font-size: 1.3rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.account-panel p { color: var(--muted); }

/* Reveals */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-reveal].in { opacity: 1; transform: none; }

/* Gate — kept close to the approved original */
#apGate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#apGate video { width: 100%; height: 100%; object-fit: cover; }
#apSkip {
  position: absolute;
  right: 16px;
  bottom: 16px;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
}
#apPanel {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: .6s ease;
  background: rgba(10,10,12,.82);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(200,30,40,.6);
  border-radius: 14px;
  padding: 22px 24px;
  width: min(420px, 88vw);
  box-shadow: 0 0 30px rgba(200,30,40,.35);
  color: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
#apGate.done #apPanel { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#apGate.done #apSkip { display: none; }
#apSnd {
  position: absolute;
  right: 16px;
  top: 16px;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
  display: none;
}
#apGate.muted #apSnd { display: block; }

#apPanel label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.35;
  margin: 10px 0;
  cursor: pointer;
}
#apPanel input {
  width: 20px;
  height: 20px;
  accent-color: #c81e28;
  flex: none;
  margin-top: 1px;
}
#apEnter {
  margin-top: 14px;
  width: 100%;
  padding: 13px;
  border: 0;
  border-radius: 10px;
  background: #c81e28;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .06em;
  cursor: pointer;
}
#apEnter:disabled { opacity: .4; cursor: not-allowed; }
html.gate-ok #apGate { display: none !important; }

/* Responsive */
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .menu-toggle { display: grid; place-items: center; }
  .header-actions { margin-left: auto; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 10px 20px 18px;
    background: #0a0a0e;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(0,0,0,0.55);
    z-index: 45;
  }
  body.nav-open .nav { display: flex; }
  .nav a { padding: 14px 8px; }
  .logo .ap-logo { height: 48px; }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-head .btn { display: none; }
  .hero { padding: 12px 0 32px; min-height: auto; }
  .hero-stage { gap: 2px; }
  .hero-mark { padding: 2px 0 0; }
  .hero-logo { width: min(300px, 78vw); }
  .hero-inner { grid-template-columns: 1fr; gap: 4px; text-align: left; }
  .hero-visual { min-height: 260px; }
  .hero-visual img { height: min(280px, 62vw); }
  .hero-glow { width: 280px; height: 280px; right: 50%; transform: translateX(50%); top: 18%; }
  .lede { margin-left: auto; margin-right: auto; }
  .hero-inner .hero-copy { text-align: center; }
  .hero-inner .hero-copy .rule { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .trust-grid, .product-grid, .pdp-grid, .footer-inner {
    grid-template-columns: 1fr;
  }
  .pdp-media { min-height: 380px; }
  .pdp-media img { height: min(420px, 70vw); }
  .footer-inner { padding: 32px 0 20px; }
  .hero-floor { height: 40%; }
}
@media (max-width: 520px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .hero h1 .brand { letter-spacing: 0.02em; }
  .lede { font-size: 1rem; text-wrap: balance; }
  .product-media { min-height: 260px; }
  .product-media img { height: 220px; }
  .footer-legal { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .site-bg .grid, .hero-floor, .vial-ring { animation: none; }
  .ap-logo-rim { animation: none !important; will-change: auto; }
}


/* Strength options (PPR-3(R)) */
.strength-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 4px;
}
.strength-opt {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--chrome-dim);
  font-family: var(--font-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.88rem;
  transition: border-color .2s, color .2s, box-shadow .2s, background .2s;
}
.strength-opt.is-on,
.strength-opt[aria-pressed="true"] {
  color: var(--chrome);
  border-color: var(--red);
  box-shadow: 0 0 14px rgba(200,30,40,0.28);
  background: rgba(200,30,40,0.1);
}
.product-body h3 {
  min-height: 2.3em;
  font-size: 0.98rem;
}
.product-media img {
  max-width: 100%;
  object-fit: contain;
}

/* Two-column shop on mid widths; keep 1 col on phones */
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr !important; }
}

/* Portrait intro: cover, shift video up, compact panel under the title */
@media (max-aspect-ratio: 3/4) {
  #apGate video {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    height: 108%;
    object-fit: cover;
    object-position: center 35%;
  }
  #apPanel {
    bottom: 8px;
    width: min(400px, 94vw);
    padding: 5px 12px 6px;
    border-radius: 12px;
  }
  #apPanel label {
    font-size: 13px;
    line-height: 1.2;
    margin: 2px 0;
    gap: 8px;
  }
  #apPanel input { width: 16px; height: 16px; }
  #apEnter {
    margin-top: 4px;
    height: 44px;
    padding: 0;
    font-size: 14px;
    box-sizing: border-box;
  }
}

