/* Biohack Peptides — site styles */

@font-face {
  font-family: 'Sora';
  src: url('/assets/fonts/sora-latin-var.woff2') format('woff2');
  font-weight: 100 800;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-latin-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #04070e;
  --bg-raise: #08101f;
  --panel: rgba(12, 21, 39, 0.72);
  --panel-solid: #0b1426;
  --line: rgba(110, 170, 255, 0.13);
  --line-strong: rgba(110, 170, 255, 0.3);
  --text: #eaf1fb;
  --muted: #93a3bf;
  --faint: #5f6e8a;
  --blue: #38b6ff;
  --blue-deep: #1a6dff;
  --glow: rgba(56, 182, 255, 0.35);
  --ok: #3ddc97;
  --warn: #ffb547;
  --chrome: linear-gradient(180deg, #ffffff 0%, #e3e9f1 36%, #9aa6b8 52%, #dfe6ef 68%, #ffffff 100%);
  --blue-text: linear-gradient(90deg, #7fd0ff 0%, #38b6ff 45%, #1a6dff 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --font-display: 'Sora', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --header-h: 72px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(56, 182, 255, 0.35); }

.wrap { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue));
}

.chrome {
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.blue-text {
  background: var(--blue-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--h);
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary {
  background: linear-gradient(135deg, #5cc6ff 0%, var(--blue) 40%, var(--blue-deep) 100%);
  color: #021022;
  box-shadow: 0 8px 30px -8px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 40px -10px rgba(56, 182, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--blue); background: rgba(56, 182, 255, 0.08); }
.btn-lg { --h: 56px; padding: 0 28px; font-size: 16px; }
.btn-sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.icon-btn:hover { border-color: var(--blue); background: rgba(56, 182, 255, 0.1); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- Age gate ---------- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  overflow-y: auto;
  background:
    radial-gradient(60% 50% at 50% 30%, rgba(26, 109, 255, 0.22), transparent 70%),
    url('/assets/img/hex.svg') center / 56px 97px,
    var(--bg);
}
.gate-card {
  width: 100%;
  max-width: 560px;
  padding: clamp(28px, 5vw, 44px);
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(14, 25, 46, 0.92), rgba(6, 11, 22, 0.96));
  box-shadow: 0 40px 120px -30px rgba(26, 109, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: center;
  animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.gate-logo { width: 104px; margin: 0 auto 22px; filter: drop-shadow(0 0 24px rgba(56, 182, 255, 0.35)); }
.gate-card h1 { font-size: clamp(26px, 5vw, 34px); margin: 14px 0 12px; }
.gate-card > p { color: var(--muted); }
.gate-age {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-top: 18px;
  border-radius: 50%;
  border: 1px solid var(--blue);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--blue);
  box-shadow: 0 0 30px -6px var(--glow), inset 0 0 20px -8px var(--glow);
}
.check {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 26px 0 22px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(56, 182, 255, 0.05);
  text-align: left;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text);
  cursor: pointer;
}
.check input {
  appearance: none;
  flex: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  border-radius: 6px;
  border: 1.5px solid var(--blue);
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.check input::after {
  content: '';
  width: 6px;
  height: 11px;
  border: solid #021022;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) translate(-1px, -1px);
  opacity: 0;
}
.check input:checked { background: var(--blue); }
.check input:checked::after { opacity: 1; }
.gate-actions { display: grid; gap: 12px; }
.gate-card > p + .gate-actions { margin-top: 28px; }
.gate-fine { margin-top: 20px; font-size: 13px; color: var(--faint); }
.gate-noscript { margin-top: 16px; color: var(--warn); font-weight: 600; }

/* Gate visibility: content stays hidden until the visitor confirms. */
html:not(.gate-ok) .site { display: none; }
html:not(.gate-ok) body { overflow: hidden; }
html.gate-ok .gate { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.site-header.scrolled,
.site-header.solid {
  background: rgba(4, 7, 14, 0.78);
  border-color: var(--line);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none !important; margin-right: auto; }
.brand img { width: 50px; height: auto; filter: drop-shadow(0 0 14px rgba(56, 182, 255, 0.3)); }
.brand-text { display: grid; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-sub { margin-top: 5px; font-family: var(--font-display); font-weight: 600; font-size: 9.5px; letter-spacing: 0.42em; color: var(--muted); }
.nav { display: flex; gap: 4px; }
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--blue);
  color: #021022;
  font-size: 12px;
  font-weight: 700;
}
.count.bump { animation: bump 0.4s ease; }
.menu-toggle { display: none; }
.mobile-nav {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  padding: 12px var(--gutter) 20px;
  background: rgba(4, 7, 14, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.mobile-nav a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--text); font-family: var(--font-display); font-weight: 600; }
.mobile-nav a:last-child { border-bottom: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + clamp(40px, 8vw, 90px)) 0 0;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(50% 60% at 78% 40%, rgba(26, 109, 255, 0.28), transparent 70%),
    radial-gradient(40% 40% at 10% 10%, rgba(56, 182, 255, 0.1), transparent 70%),
    url('/assets/img/hex.svg') center / 56px 97px;
  mask-image: linear-gradient(180deg, #000 60%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent);
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.9;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.45) 40%, #000 70%);
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.45) 40%, #000 70%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.hero-title { font-size: clamp(42px, 7vw, 84px); font-weight: 800; letter-spacing: -0.035em; margin: 22px 0 22px; }
.hero-title span { display: block; }
.hero-title .tagline { font-size: 0.5em; font-weight: 600; letter-spacing: -0.01em; margin-top: 10px; }
.lede { max-width: 560px; font-size: clamp(16px, 1.6vw, 18.5px); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-flags { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 28px 0 0; }
.hero-flags li { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.hero-flags li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue); }
.hero-visual { position: relative; display: grid; place-items: center; }
.orb {
  position: relative;
  width: min(100%, 470px);
  aspect-ratio: 1;
  animation: float 9s ease-in-out infinite;
}
.orb img { position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 50%; filter: drop-shadow(0 30px 80px rgba(26, 109, 255, 0.45)); }
.orb::before,
.orb::after {
  content: '';
  position: absolute;
  inset: -7%;
  border-radius: 50%;
  border: 1px solid rgba(56, 182, 255, 0.22);
}
.orb::after {
  inset: -15%;
  border-style: dashed;
  border-color: rgba(56, 182, 255, 0.14);
  animation: spin 60s linear infinite;
}
.orbit-dot {
  position: absolute;
  inset: -7%;
  border-radius: 50%;
  animation: spin 14s linear infinite;
}
.orbit-dot::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 18px 4px var(--glow);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: clamp(48px, 8vw, 90px);
  border-top: 1px solid var(--line);
}
.stat { display: flex; align-items: center; gap: 16px; padding: 26px 0 30px; border-right: 1px solid var(--line); padding-left: 24px; }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat svg { flex: none; width: 30px; height: 30px; color: var(--blue); }
.stat strong { font-family: var(--font-display); font-size: clamp(17px, 2.2vw, 24px); font-weight: 700; line-height: 1.25; }

/* ---------- Compliance ribbon ---------- */
.ribbon {
  position: relative;
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(26, 109, 255, 0.08), rgba(56, 182, 255, 0.14), rgba(26, 109, 255, 0.08));
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ribbon-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.ribbon-group { display: flex; }
.ribbon span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 16px 14px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ribbon span::after { content: '⬡'; color: var(--blue); letter-spacing: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 11vw, 130px) 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head h2 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 700; margin: 16px 0 16px; }
.section-head p { color: var(--muted); font-size: 17px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ''; width: 28px; height: 1px; background: linear-gradient(90deg, var(--blue), transparent); }

/* ---------- Catalog ---------- */
.catalog-tools { margin-bottom: 28px; }
.search {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 440px;
}
.search svg { position: absolute; left: 18px; width: 18px; height: 18px; color: var(--faint); pointer-events: none; }
.search input {
  width: 100%;
  height: 52px;
  padding: 0 20px 0 48px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search input::placeholder { color: var(--faint); }
.search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(56, 182, 255, 0.15); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.popular {
  margin-bottom: clamp(40px, 6vw, 64px);
  padding-bottom: clamp(40px, 6vw, 64px);
  border-bottom: 1px solid var(--line);
}
.popular-head { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.popular-head svg { flex: none; width: 22px; height: 22px; color: var(--blue); }
.popular-head h3 { font-size: clamp(20px, 2.4vw, 26px); }
.popular .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 24, 44, 0.75), rgba(7, 12, 24, 0.85));
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(56, 182, 255, 0.45); box-shadow: 0 24px 60px -24px rgba(26, 109, 255, 0.55); }
.card-open {
  all: unset;
  display: flex;
  flex-direction: column;
  flex: 1;
  cursor: pointer;
}
.card-open:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; border-radius: var(--radius); }
.media {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(70% 70% at 50% 60%, rgba(26, 109, 255, 0.22), transparent 70%),
    url('/assets/img/hex.svg') center / 42px 73px,
    #060c18;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.media img.ph { object-fit: contain; padding: 6% 0 14%; }
.card:hover .media img { transform: scale(1.04); }
.media-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(207, 230, 255, 0.55);
}
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(4, 7, 14, 0.75);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.available { color: var(--ok); }
.badge.limited { color: var(--warn); }
.badge.unavailable { color: var(--faint); }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 6px; flex: 1; }
.card-title { font-size: 21px; font-weight: 700; }
.card-type { font-size: 13.5px; color: var(--muted); }
.sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.size-pill { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 12px; font-weight: 600; color: var(--text); }
.size-pill.muted { border-style: dashed; color: var(--faint); font-weight: 500; }
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px 18px;
}
.price { font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.price.request { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
.add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--blue);
  background: rgba(56, 182, 255, 0.08);
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.add-btn svg { width: 15px; height: 15px; }
.add-btn:hover { background: var(--blue); color: #021022; }
.add-btn.added { background: var(--blue); color: #021022; }
.empty { padding: 60px 0; text-align: center; color: var(--muted); }
.skeleton { border-radius: var(--radius); border: 1px solid var(--line); height: 400px; background: linear-gradient(100deg, rgba(255, 255, 255, 0.02) 30%, rgba(56, 182, 255, 0.07) 50%, rgba(255, 255, 255, 0.02) 70%) 0 0 / 300% 100%; animation: shimmer 1.6s linear infinite; }

/* ---------- Process ---------- */
.process { background: linear-gradient(180deg, transparent, rgba(26, 109, 255, 0.05), transparent); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative;
  padding: 30px 28px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}
.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(180deg, rgba(56, 182, 255, 0.9), rgba(56, 182, 255, 0.05));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 18px;
}
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Standards ---------- */
.standards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.standard {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12, 21, 39, 0.6), rgba(6, 11, 22, 0.6));
  transition: border-color 0.3s;
}
.standard:hover { border-color: var(--line-strong); }
.standard-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 50%;
  border: 1px solid var(--blue);
  color: var(--blue);
  box-shadow: 0 0 24px -8px var(--glow), inset 0 0 16px -8px var(--glow);
}
.standard-icon svg { width: 22px; height: 22px; }
.standard h3 { font-size: 18px; margin-bottom: 8px; }
.standard p { font-size: 14.5px; color: var(--muted); }
.notice {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 181, 71, 0.35);
  background: rgba(255, 181, 71, 0.06);
  font-size: 14.5px;
  color: #f2dcb8;
}
.notice svg { flex: none; width: 22px; height: 22px; color: var(--warn); margin-top: 1px; }

/* ---------- Contact ---------- */
.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(28px, 5vw, 60px);
  border-radius: 28px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(26, 109, 255, 0.25), transparent 70%),
    linear-gradient(180deg, rgba(12, 21, 39, 0.9), rgba(5, 9, 18, 0.9));
  overflow: hidden;
}
.contact-panel h2 { font-size: clamp(30px, 4vw, 46px); margin: 16px 0 14px; }
.contact-intro > p { color: var(--muted); max-width: 520px; }
.contact-list { display: grid; gap: 2px; margin: 0; }
.contact-row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-row dt { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); padding-top: 2px; }
.contact-row dd { margin: 0; font-weight: 500; }
.hours { display: grid; gap: 4px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; }
.hours span:first-child { color: var(--muted); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Footer ---------- */
.site-footer { padding: 70px 0 40px; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(26, 109, 255, 0.04)); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; margin-bottom: 40px; }
.footer-brand p { margin-top: 14px; color: var(--muted); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 28px; align-content: flex-start; }
.footer-links a { color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.disclaimer {
  padding: 22px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.disclaimer strong { color: var(--text); letter-spacing: 0.02em; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 28px; font-size: 13px; color: var(--faint); }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--text); }

/* ---------- Dialogs ---------- */
dialog {
  padding: 0;
  border: 0;
  color: var(--text);
  background: transparent;
  max-width: none;
  max-height: none;
}
dialog::backdrop { background: rgba(2, 4, 9, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.product-dialog {
  width: min(960px, calc(100% - 32px));
  margin: auto;
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #0c1629, #060b16);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
.product-dialog[open] { animation: rise 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
.pd { display: grid; grid-template-columns: 0.95fr 1.05fr; max-height: min(88vh, 760px); }
.pd .media { aspect-ratio: auto; min-height: 100%; border-bottom: 0; border-right: 1px solid var(--line); }
.pd .media img.ph { padding: 14% 0 20%; }
/* Show the whole vial and box in the detail view rather than cropping to the tall panel. */
.pd .media { display: flex; align-items: center; }
.pd .media img:not(.ph) { height: auto; object-fit: contain; }
.pd-body { position: relative; padding: 36px 34px 30px; overflow-y: auto; }
.pd-close { position: absolute; top: 18px; right: 18px; }
.pd-body h2 { font-size: clamp(28px, 3.4vw, 38px); margin: 12px 48px 6px 0; }
.pd-type { color: var(--muted); font-size: 15px; }
.pd-desc { margin-top: 18px; color: #c9d5e8; }
.spec-table { display: grid; margin-top: 22px; border-radius: var(--radius-sm); border: 1px solid var(--line); overflow: hidden; }
.spec-row { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 11px 16px; font-size: 14px; border-bottom: 1px solid var(--line); }
.spec-row:last-child { border-bottom: 0; }
.spec-row dt { color: var(--faint); font-weight: 500; }
.spec-row dd { margin: 0; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 13.5px; word-break: break-word; }
.field-label { display: block; margin: 24px 0 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.size-options { display: flex; flex-wrap: wrap; gap: 8px; }
.size-option { position: relative; }
.size-option input { position: absolute; opacity: 0; pointer-events: none; }
.size-option span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.size-option span em { font-style: normal; color: var(--muted); font-weight: 500; }
.size-option input:checked + span { border-color: var(--blue); background: rgba(56, 182, 255, 0.12); color: #fff; box-shadow: inset 0 0 0 1px var(--blue); }
.size-option input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.pd-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; flex-wrap: wrap; }
.pd-price { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.pd-price.request { font-size: 15px; color: var(--muted); font-weight: 600; }
.ruo {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 181, 71, 0.3);
  background: rgba(255, 181, 71, 0.05);
  font-size: 13px;
  color: #e9d3ae;
}
.ruo svg { flex: none; width: 18px; height: 18px; color: var(--warn); margin-top: 2px; }

/* Request drawer */
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(460px, 100%);
  height: 100%;
  margin: 0 0 0 auto;
  border-left: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #0b1528, #050a14);
  box-shadow: -40px 0 120px -20px rgba(0, 0, 0, 0.7);
}
.drawer[open] { display: flex; flex-direction: column; animation: slide-in 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 22px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px 24px; }
.req-empty { padding: 48px 8px; text-align: center; color: var(--muted); }
.req-empty svg { width: 46px; height: 46px; margin: 0 auto 16px; color: var(--faint); }
.req-item {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.req-thumb { width: 54px; height: 54px; border-radius: 12px; border: 1px solid var(--line); background: #060c18; overflow: hidden; }
.req-thumb img { width: 100%; height: 100%; object-fit: cover; }
.req-thumb img.ph { object-fit: contain; padding: 4px; }
.req-name { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.req-meta { font-size: 13px; color: var(--muted); }
.req-meta select {
  margin-top: 6px;
  height: 32px;
  padding: 0 28px 0 10px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--panel-solid);
  color: var(--text);
  font: inherit;
  font-size: 13px;
}
.req-remove { width: 34px; height: 34px; }
.drawer-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); background: rgba(4, 7, 14, 0.6); }
.form-grid { display: grid; gap: 12px; margin-bottom: 14px; }
.input {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.input input {
  height: 48px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
}
.input input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(56, 182, 255, 0.15); }
.input input[aria-invalid='true'] { border-color: #ff6b6b; }
.check-compact { margin: 16px 0 10px; padding: 12px 14px; gap: 12px; font-size: 13px; line-height: 1.5; }
.check input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.check input[aria-invalid='true'] { border-color: #ff6b6b; }
.drawer-foot .btn + .btn { margin-top: 10px; }
.check-legal { font-size: 12.5px; line-height: 1.5; }
.drawer-foot { max-height: 70vh; overflow-y: auto; }

.ack-dialog {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  margin: auto;
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #0c1629, #060b16);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.8);
  overflow-y: auto;
}
.ack-dialog[open] { animation: rise 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
.ack-body { padding: 30px 28px 26px; }
.ack-body h2 { font-size: 22px; margin-top: 6px; }
.ack-actions { display: flex; gap: 10px; justify-content: flex-end; }
.ack-actions .btn { flex: 1 1 auto; }
@media (max-width: 560px) {
  .ack-body { padding: 26px 20px 22px; }
  .ack-actions { flex-direction: column-reverse; }
}
.form-error { min-height: 1.2em; margin-bottom: 8px; font-size: 13px; color: #ff8a8a; }

.request-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: none;
  box-shadow: 0 16px 40px -10px rgba(26, 109, 255, 0.7);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(10, 18, 34, 0.95);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6);
  font-size: 14px;
  font-weight: 500;
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.35s;
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast svg { width: 18px; height: 18px; color: var(--ok); }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(56px, 8vw, 96px) 0 90px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(34px, 5vw, 50px); margin: 16px 0 10px; }
.legal .updated { color: var(--faint); font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-size: 21px; margin: 40px 0 12px; }
.legal p,
.legal li { color: #c3cfe2; }
.legal p + p { margin-top: 14px; }
.legal ul { padding-left: 20px; display: grid; gap: 8px; margin: 12px 0 0; }
.legal .callout {
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 181, 71, 0.35);
  background: rgba(255, 181, 71, 0.06);
  color: #f2dcb8;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes slide-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes shimmer { to { background-position: -300% 0; } }
@keyframes bump { 50% { transform: scale(1.3); } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .orb { width: min(72vw, 340px); }
  .steps,
  .contact-panel { grid-template-columns: 1fr; }
  .popular .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Stack photo then text as plain blocks: Safari collapses the grid row and draws the text over the photo. */
  .pd { display: block; max-height: 90vh; overflow-y: auto; }
  .pd .media { display: block; aspect-ratio: auto; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .pd .media img:not(.ph) { width: 100%; height: auto; }
  .pd-body { overflow: visible; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .brand img { width: 42px; }
  .brand-name { font-size: 17px; }
  .request-toggle .label { display: none; }
  .request-toggle { padding: 0 12px; }
  .hero-title { margin-top: 16px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .steps,
  .standards-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .grid .badge { top: 8px; left: 8px; padding: 3px 8px; font-size: 10px; }
  .card-body { gap: 6px; padding: 12px 12px 4px; }
  .card-title { font-size: 16px; }
  .card-type { font-size: 12px; line-height: 1.4; }
  .size-pill { padding: 2px 8px; font-size: 11px; }
  .card-foot { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 12px 12px; }
  .price.request { font-size: 12px; }
  .add-btn { justify-content: center; height: 36px; }
  .skeleton { height: 300px; }
  .contact-actions .btn { flex: 1 1 100%; }
  .contact-actions { margin-top: 24px; }
  .eyebrow { letter-spacing: 0.2em; font-size: 11px; }
  .gate-card .eyebrow::before { display: none; }
  .contact-row { grid-template-columns: 1fr; gap: 4px; }
  .pd-body { padding: 26px 20px 24px; }
  .product-dialog { width: calc(100% - 16px); border-radius: 20px; }
  .spec-row { grid-template-columns: 110px 1fr; }
  .request-fab.has-items { display: inline-flex; }
  .stat { flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 0 22px 16px; }
  .stat svg { width: 24px; height: 24px; }
  .stat strong { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .ribbon-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .ribbon-group[aria-hidden='true'] { display: none; }
  .ribbon-group { flex-wrap: wrap; justify-content: center; }
}
