/* Atlas Peptides — clinical laboratory-supplier aesthetic.
   Brand tokens live here; change them to retheme the whole site. */
:root {
  /* Brand: navy and white. Change these tokens to retheme the whole site. */
  --ink: #0b1b33;
  --navy: #12305a;
  --steel: #2a5ea8;        /* accent blue for links and highlights */
  --steel-2: #e8f0fb;      /* light blue tint */
  --accent-on-dark: #9cc0f5;
  --paper: #f5f7fa;
  --card: #ffffff;
  --line: #dfe5ee;
  --line-2: #eef2f7;
  --text: #17243a;
  --muted: #5b6b80;
  --ok: #127a4c;
  --ok-bg: #e6f4ec;
  --warn: #8a5200;
  --warn-bg: #fff4df;
  --bad: #a42727;
  --bad-bg: #fbeaea;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(11, 27, 51, .05), 0 6px 24px rgba(11, 27, 51, .06);
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.55; color: var(--text); background: var(--paper); }
img, svg { max-width: 100%; height: auto; }
a { color: var(--steel); text-underline-offset: 2px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4, h5, h6 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
h3 { font-size: 1.15rem; }
.h3 { font-size: 1.5rem; } .h4 { font-size: 1.2rem; } .h5 { font-size: 1.05rem; } .h6 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
p { margin: 0 0 1em; }
.lead { font-size: 1.12rem; color: #34465f; }
.small { font-size: .875rem; } .tiny { font-size: .76rem; } .muted { color: var(--muted); } .center { text-align: center; }
.mono { font-family: var(--mono); font-size: .92em; }
.break { word-break: break-all; }
.prewrap { white-space: pre-wrap; }
.eyebrow { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); font-weight: 700; margin-bottom: .6em; }
.pos { color: var(--ok); } .neg { color: var(--bad); } .warn { color: var(--warn); } .error { color: var(--bad); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.hp { position: absolute; left: -9999px; }
.mt { margin-top: 1.5rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.narrow-text { max-width: 720px; }
.page-pad { padding-top: 28px; padding-bottom: 56px; }
.section { padding-top: 44px; padding-bottom: 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
:focus-visible { outline: 3px solid #8fb3ee; outline-offset: 2px; }

/* Buttons and forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 600 .95rem/1 var(--sans); color: #fff; background: var(--ink);
  border: 1px solid var(--ink); border-radius: var(--radius-sm); padding: 12px 18px; text-decoration: none; cursor: pointer; transition: background .15s, transform .05s; }
.btn:hover { background: var(--navy); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-lg { padding: 15px 22px; font-size: 1rem; }
.btn-gold { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-gold:hover { background: var(--navy); color: #fff; }
.btn-outline-light { background: transparent; color: var(--ink); border-color: #c4cfdd; }
.btn-outline-light:hover { background: var(--steel-2); color: var(--ink); }
.btn-sm { padding: 8px 12px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--ink); border-color: #c4cfdd; }
.btn-ghost:hover { background: var(--steel-2); color: var(--ink); }
.btn-danger { background: transparent; color: var(--bad); border-color: #e5b8b8; }
.btn-danger:hover { background: var(--bad-bg); color: var(--bad); }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.link-btn { background: none; border: 0; padding: 0; color: var(--steel); cursor: pointer; text-decoration: underline; font: inherit; }
label { display: block; font-size: .9rem; font-weight: 600; color: var(--ink); }
input, select, textarea { display: block; width: 100%; margin-top: 6px; font: 400 1rem var(--sans); color: var(--text); background: #fff; border: 1px solid #c9d3e0;
  border-radius: var(--radius-sm); padding: 10px 12px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--steel); outline: 3px solid #d7e5fb; }
input[type=checkbox], input[type=radio] { display: inline; width: auto; margin: 0; accent-color: var(--ink); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 4px; flex: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 10px; }
.stack > * + * { margin-top: 12px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form input { flex: 1 1 220px; margin: 0; }
.inline-form.tight input { flex: 1 1 120px; }
.qty { width: 74px; text-align: center; margin: 0; }

/* Header */
.announce { background: var(--ink); color: #dbe5f3; font-size: .82rem; text-align: center; padding: 8px 16px; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: flex; flex: none; }
.logo img { height: 40px; width: auto; }
.main-nav { display: none; gap: 22px; align-items: center; margin-left: 12px; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .93rem; }
.main-nav > a, .main-nav > .dropdown > a { color: var(--ink); }
.main-nav > a:hover, .main-nav > .dropdown > a:hover { color: var(--steel); }
.dropdown { position: relative; }
.dropdown-panel { display: none; position: absolute; top: 100%; left: -16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 10px; min-width: 260px; }
.dropdown:hover .dropdown-panel, .dropdown:focus-within .dropdown-panel { display: grid; }
.dropdown-panel a { padding: 8px 10px; border-radius: 6px; font-weight: 500; }
.dropdown-panel a:hover { background: var(--paper); }
.dropdown-panel .strong { font-weight: 700; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.search { display: none; }
.search input { margin: 0; width: 220px; padding: 8px 12px; font-size: .9rem; background: var(--paper); }
.icon-link, .cart-link { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.cart-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 11px; background: var(--ink); color: #fff; font-weight: 700; font-size: .75rem; margin-left: 4px; padding: 0 6px; }
.ruo-strip { background: var(--steel-2); color: var(--navy); font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-align: center; padding: 5px 16px; text-transform: uppercase; }
.mobile-nav summary { list-style: none; cursor: pointer; display: grid; gap: 4px; padding: 8px 4px; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
.mobile-panel { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 16px 16px; display: grid; max-height: 75vh; overflow: auto; }
.mobile-panel a { padding: 11px 4px; border-bottom: 1px solid var(--line-2); color: var(--ink); text-decoration: none; font-weight: 600; }
.mobile-panel a.sub { padding-left: 18px; font-weight: 400; font-size: .93rem; }
@media (min-width: 980px) {
  .mobile-nav { display: none; } .main-nav { display: flex; } .search { display: block; }
}

/* Footer */
.site-footer { background: var(--ink); color: #b9c6d8; margin-top: 40px; padding: 48px 0 28px; font-size: .92rem; }
.site-footer a { color: #dbe5f3; text-decoration: none; display: block; padding: 3px 0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer h2 { color: #fff; font-size: 1.25rem; }
.site-footer h3 { color: #fff; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.footer-signup { display: grid; gap: 16px; padding-bottom: 32px; border-bottom: 1px solid #22385a; margin-bottom: 32px; }
.footer-signup input { background: #102544; border-color: #2c4670; color: #fff; }
.footer-signup .btn { background: #fff; color: var(--ink); border-color: #fff; }
.footer-cols { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.footer-cols > div:first-child { grid-column: 1 / -1; }
.footer-cols p a { display: inline; }
.footer-logo { height: 44px; width: auto; margin-bottom: 10px; }
.legal-block { border-top: 1px solid #22385a; margin-top: 32px; padding-top: 20px; font-size: .8rem; color: #93a3ba; }
@media (min-width: 820px) {
  .footer-signup { grid-template-columns: 1.2fr 1fr; align-items: center; }
  .footer-cols { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .footer-cols > div:first-child { grid-column: auto; }
}

/* Hero and home */
.hero { background: linear-gradient(180deg, #fff 0%, var(--paper) 100%); border-bottom: 1px solid var(--line); padding: 44px 0 48px; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero h1 { max-width: 15ch; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 18px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; color: #34465f; }
.hero-points li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 6px; }
.hero-art { display: flex; justify-content: center; align-items: flex-end; gap: 0; }
.hero-art .vial { width: 32%; max-width: 170px; }
.hero-art .vial:nth-child(2) { transform: translateY(-14px); width: 36%; max-width: 190px; }
@media (min-width: 900px) { .hero { padding: 72px 0 64px; } .hero-grid { grid-template-columns: 1.15fr 1fr; } }

.cat-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.cat-tile { display: grid; gap: 4px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.cat-tile:hover { border-color: var(--steel); box-shadow: var(--shadow); }
.cat-tile strong { color: var(--ink); }
@media (min-width: 640px) { .cat-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }

.band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 48px; padding: 44px 0; }
.standard { display: grid; gap: 28px; }
.checks { counter-reset: c; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { counter-increment: c; display: grid; grid-template-columns: 38px 1fr; gap: 4px 12px; }
.checks li::before { content: counter(c); grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--steel-2); color: var(--navy); font-weight: 700; }
.checks span { color: var(--muted); font-size: .92rem; }
@media (min-width: 900px) { .standard { grid-template-columns: 1fr 1.3fr; } }

.split { display: grid; gap: 16px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.promo-card { background: var(--ink); color: #c8d4e5; border-radius: var(--radius); padding: 28px; }
.promo-card h2 { color: #fff; }
.promo-card .eyebrow { color: var(--accent-on-dark); }
.promo-card .btn { background: #fff; color: var(--ink); border-color: #fff; }
.promo-card.alt { background: #fff; color: var(--text); border: 1px solid var(--line); }
.promo-card.alt h2 { color: var(--ink); }
.promo-card.alt .eyebrow { color: var(--steel); }
.promo-card.alt .btn { background: transparent; color: var(--ink); border-color: #c4cfdd; }
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0 18px; }
.tier { display: grid; text-align: center; padding: 12px 6px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
.tier-pct { font-size: 1.35rem; font-weight: 800; color: var(--ink); }
.verify-band { display: grid; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 44px; }
@media (min-width: 900px) { .verify-band { grid-template-columns: 1fr 1fr; align-items: center; } }

/* Cards and grids */
.product-grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (min-width: 760px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.product-card:hover { box-shadow: var(--shadow); border-color: #c9d6e8; }
.card-media { display: grid; place-items: center; background: linear-gradient(180deg, #f8fafc, #eef2f7); padding: 18px 10px 6px; }
.card-media .vial { width: 62%; max-width: 140px; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin: 0 0 2px; font-size: 1.02rem; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body .eyebrow { font-size: .66rem; margin-bottom: 4px; }
.card-body p { margin-bottom: 8px; }
.card-body > p.small:not(.mono) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.price { font-weight: 700; color: var(--ink); }
.coa-link { margin-top: 8px; text-decoration: none; }
@media (max-width: 480px) { .card-body > p.small:not(.mono) { display: none; } .card-foot .btn { width: 100%; } }

.post-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--text); }
.post-card:hover { box-shadow: var(--shadow); }
.post-card h2, .post-card h3 { color: var(--ink); }
.post-card > span { margin-top: auto; color: var(--steel); font-weight: 600; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.panel-head h2 { margin: 0; }
.callout { background: var(--steel-2); border: 1px solid #cddcf2; border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; }
.callout.warn { background: var(--warn-bg); border-color: #f1d7a6; }
.callout ul { margin: 8px 0 0; padding-left: 18px; }
.empty { text-align: center; padding: 40px 16px; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }
.flash { max-width: var(--wrap); margin: 14px auto 0; padding: 12px 16px; border-radius: var(--radius-sm); font-size: .93rem; }
main > .flash { width: calc(100% - 32px); }
.flash ul { margin: 0; padding-left: 18px; }
.flash-success { background: var(--ok-bg); color: #0d5b39; border: 1px solid #bfe3cf; }
.flash-error { background: var(--bad-bg); color: #7d1d1d; border: 1px solid #efc4c4; }
.flash-info { background: var(--steel-2); color: var(--navy); border: 1px solid #cddcf2; }
.ruo-note { font-size: .82rem; color: var(--muted); border-left: 3px solid var(--line); padding: 4px 0 4px 12px; }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: var(--steel-2); color: var(--navy); padding: 2px 7px; border-radius: 4px; }
.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 26px; position: relative; margin-bottom: 8px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; font-size: .83rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #b2bdcc; }
.crumbs a { color: var(--muted); }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 18px; }

/* Shop */
.shop-layout { display: grid; gap: 22px; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.filters > a { white-space: nowrap; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; text-decoration: none; color: var(--ink); font-size: .88rem; }
.filters > a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters .h6, .filter-note { display: none; }
@media (min-width: 900px) {
  .shop-layout { grid-template-columns: 230px 1fr; }
  .filters { flex-direction: column; overflow: visible; gap: 2px; }
  .filters .h6, .filter-note { display: block; }
  .filters > a { border: 0; border-radius: 6px; background: none; display: flex; justify-content: space-between; }
  .filters > a.active { background: var(--steel-2); color: var(--ink); font-weight: 700; }
  .filter-note { margin-top: 16px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
}

/* Product page */
.pdp { display: grid; gap: 24px; }
.pdp-media { display: grid; place-items: center; background: linear-gradient(180deg, #fff, #eef2f7); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.pdp-media .vial { width: 52%; max-width: 280px; }
@media (min-width: 900px) { .pdp { grid-template-columns: 1fr 1.1fr; align-items: start; } .pdp-media { position: sticky; top: 120px; padding: 48px; } }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin: 18px 0; }
.specs > div { background: #fff; padding: 10px 12px; }
.specs dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.specs dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); word-break: break-word; }
.buy-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.size-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.size-opt { position: relative; }
.size-opt input { position: absolute; opacity: 0; }
.size-opt > span { display: grid; gap: 2px; padding: 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-weight: 400; }
.size-opt input:checked + span { border-color: var(--ink); background: var(--steel-2); }
.size-opt input:focus-visible + span { outline: 3px solid #8fb3ee; }
.size-opt.oos > span { opacity: .5; cursor: not-allowed; }
.qty-row { display: flex; gap: 10px; align-items: center; margin: 14px 0; }
.qty-row .btn { flex: 1; }
.ruo-inline { font-size: .82rem; background: var(--warn-bg); border: 1px solid #f1d7a6; color: #5f3a00; border-radius: var(--radius-sm); padding: 9px 12px; }
.pdp-sections { margin-top: 28px; display: grid; gap: 0; }
.seq { background: var(--paper); border: 1px solid var(--line); padding: 10px 12px; border-radius: var(--radius-sm); word-break: break-all; font-size: .85rem; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--paper); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.data tr:last-child td { border-bottom: 0; }
.data td.mono, .data a.mono { white-space: nowrap; }
.panel .data, .data.compact { font-size: .86rem; }
.data.compact td { padding: 7px 8px; }
.result { margin-top: 18px; padding: 18px; border-radius: var(--radius); }
.result.ok { background: var(--ok-bg); border: 1px solid #bfe3cf; }
.result.bad { background: var(--bad-bg); border: 1px solid #efc4c4; }

/* FAQ / prose */
.faq { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 600; color: var(--ink); }
.faq p { padding: 0 16px 14px; margin: 0; color: #34465f; }
.prose { font-size: 1.02rem; }
.prose h2 { margin-top: 1.8em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1em 0; padding: 12px 16px; background: #fff; border-left: 3px solid var(--steel); font-size: .92rem; }
.steps { padding-left: 22px; } .steps li { margin-bottom: 10px; }

/* Cart & checkout */
.cart-layout, .checkout-layout { display: grid; gap: 20px; align-items: start; }
@media (min-width: 960px) { .cart-layout, .checkout-layout { grid-template-columns: 1fr 380px; } .cart-summary, .checkout-side { position: sticky; top: 120px; }
  .cart-layout > .cart-summary { grid-column: 2; grid-row: 1 / span 2; } .cart-extra { grid-column: 1; } }
.nudges { display: grid; gap: 8px; margin-bottom: 14px; }
.nudge { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font-size: .92rem; }
.nudge p { margin: 0 0 6px; }
.nudge p:last-child { margin: 0; }
.bar { height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--ok); }
.w-0{width:0}.w-5{width:5%}.w-10{width:10%}.w-15{width:15%}.w-20{width:20%}.w-25{width:25%}.w-30{width:30%}.w-35{width:35%}.w-40{width:40%}.w-45{width:45%}.w-50{width:50%}
.w-55{width:55%}.w-60{width:60%}.w-65{width:65%}.w-70{width:70%}.w-75{width:75%}.w-80{width:80%}.w-85{width:85%}.w-90{width:90%}.w-95{width:95%}.w-100{width:100%}
.cart-lines { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 14px 14px; }
.line { display: grid; grid-template-columns: 56px 1fr auto; grid-template-areas: "m i t" "m q r"; gap: 6px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.line-media { grid-area: m; } .line-media .vial { width: 56px; }
.line-info { grid-area: i; display: grid; } .line-info a { color: var(--ink); text-decoration: none; }
.line .qty { grid-area: q; } .line-total { grid-area: t; font-weight: 700; text-align: right; } .line .link-btn { grid-area: r; text-align: right; }
.cart-lines > .btn { margin-top: 12px; }
.upsells { margin-top: 18px; }
.upsell-row { display: grid; gap: 10px; }
@media (min-width: 700px) { .upsell-row { grid-template-columns: repeat(3, 1fr); } }
.upsell { display: flex; flex-direction: column; gap: 10px; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; }
.upsell p { margin: 2px 0 0; }
.summary { margin: 0 0 14px; }
.summary > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: .93rem; }
.summary dt, .summary dd { margin: 0; }
.summary .disc dd, .summary .disc dt { color: var(--ok); }
.summary .total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-size: 1.12rem; font-weight: 800; color: var(--ink); }
.narrow-sum { max-width: 360px; margin-left: auto; margin-top: 10px; }
.code-form { margin: 14px 0 10px; }
.code-form input { margin: 0; }
.points-form { margin-bottom: 10px; }
.checkout-main .panel legend { font-weight: 700; }
.checkout-main label + label, .checkout-main .grid-3 { margin-top: 12px; }
.pay-opt { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 8px; cursor: pointer; font-weight: 400; }
.pay-opt input { margin-top: 4px; }
.pay-opt > span { display: grid; }
.pay-opt:has(input:checked) { border-color: var(--ink); background: var(--steel-2); }
.attest { border-color: #f1d7a6; background: #fffaf0; }
.renewal-terms { margin-top: 14px; padding-top: 12px; border-top: 1px solid #f1d7a6; }
.mini-lines { list-style: none; padding: 0; margin: 0 0 12px; }
.mini-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: .9rem; }
.pay-box { border-color: var(--steel); background: #f7faff; }

/* Club Box */
.box-layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .box-layout { grid-template-columns: 1fr 420px; } }
.box-slot { margin-bottom: 10px; }
.intervals { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.intervals legend { width: 100%; }
.pill { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; font-weight: 500; cursor: pointer; }
.pill:has(input:checked) { border-color: var(--ink); background: var(--steel-2); }
.box-price { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 14px; flex-wrap: wrap; }
.box-price strong { font-size: 1.8rem; color: var(--ink); }

/* Age gate & popup */
.age-gate { position: fixed; inset: 0; z-index: 90; background: rgba(11, 27, 51, .72); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; }
.age-card { background: #fff; border-radius: 14px; max-width: 440px; width: 100%; padding: 28px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.age-card .btn { margin-top: 8px; }
.age-card .logo-stack { width: 170px; margin: 0 auto 12px; display: block; }
.welcome { border: 0; padding: 0; border-radius: 14px; max-width: 420px; width: calc(100% - 32px); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.welcome::backdrop { background: rgba(11, 27, 51, .55); }
.welcome-card { padding: 28px; position: relative; text-align: center; }
.welcome-card input { margin: 10px 0; }
.welcome-card .close { position: absolute; top: 8px; right: 12px; background: none; border: 0; font-size: 1.6rem; color: var(--muted); cursor: pointer; }

/* Auth & account */
.auth-wrap { display: grid; place-items: center; }
.auth-card { width: 100%; max-width: 440px; }
.account-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.account-layout { display: grid; gap: 20px; margin-top: 10px; }
.side-nav { display: flex; gap: 6px; overflow-x: auto; }
.side-nav a { white-space: nowrap; padding: 8px 12px; border-radius: 6px; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); font-size: .9rem; }
.side-nav a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (min-width: 900px) { .account-layout { grid-template-columns: 210px 1fr; } .side-nav { flex-direction: column; } .side-nav a { border: 0; background: none; } .side-nav a.active { background: var(--steel-2); color: var(--ink); font-weight: 700; } }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; }
.stat-n { font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.pill-status { display: inline-block; font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--line-2); color: var(--muted); white-space: nowrap; text-transform: capitalize; }
.s-pending_payment { background: var(--warn-bg); color: var(--warn); }
.s-paid, .s-processing, .s-active { background: var(--steel-2); color: var(--navy); }
.s-shipped, .s-delivered { background: var(--ok-bg); color: var(--ok); }
.s-cancelled, .s-refunded { background: var(--bad-bg); color: var(--bad); }
.s-paused { background: var(--warn-bg); color: var(--warn); }
.sub-head { display: flex; justify-content: space-between; align-items: center; }

/* Admin */
.admin-body .announce, .admin-body .site-header, .admin-body .site-footer { display: none; }
.admin { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; }
.admin-nav, .admin-main { min-width: 0; }
.admin-nav { background: var(--ink); color: #c8d4e5; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.admin-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; }
.admin-brand img { height: 34px; width: auto; }
.admin-brand span { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent-on-dark); }
.admin-nav nav { display: flex; gap: 4px; overflow-x: auto; }
.admin-nav nav a { white-space: nowrap; color: #c8d4e5; text-decoration: none; padding: 8px 10px; border-radius: 6px; font-size: .9rem; }
.admin-nav nav a.active, .admin-nav nav a:hover { background: #18365f; color: #fff; }
.admin-foot { display: none; }
.admin-foot a, .admin-foot .link-btn { color: var(--accent-on-dark); }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #e0a52c; color: var(--ink); font-size: .72rem; font-weight: 800; }
.admin-main { padding: 18px 16px 48px; min-width: 0; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-head h1 { font-size: 1.5rem; margin: 0; }
@media (min-width: 1000px) {
  .admin { grid-template-columns: 230px minmax(0, 1fr); }
  .admin-nav { position: sticky; top: 0; height: 100vh; padding: 20px 14px; }
  .admin-nav nav { flex-direction: column; overflow: visible; }
  .admin-foot { display: grid; gap: 8px; margin-top: auto; }
  .admin-main { padding: 28px 32px 64px; }
}
.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
@media (min-width: 1100px) { .kpi-grid { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 2px; }
.kpi-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.kpi-v { font-size: 1.55rem; font-weight: 800; color: var(--ink); }
.kpi-sub { font-size: .78rem; color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 140px; padding-top: 8px; }
.bar-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.bar-fill { width: 100%; background: var(--steel); border-radius: 2px 2px 0 0; min-height: 1px; height: 0; }
.bar-x { font-size: .6rem; color: var(--muted); margin-top: 4px; }
.bar-col:nth-child(odd) .bar-x { visibility: hidden; }
.filters-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: flex-end; }
.filters-bar input, .filters-bar select { width: auto; flex: 1 1 150px; margin: 0; padding: 8px 10px; font-size: .9rem; }
.filters-bar label { display: flex; gap: 6px; align-items: center; font-weight: 400; }
.row-form, .lot-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.row-form input, .row-form select, .lot-form input { width: auto; flex: 1 1 110px; margin: 0; padding: 7px 9px; font-size: .88rem; }
.lot-form { padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-sm); }
.checklist li > span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-weight: 800; font-size: .8rem; flex: none; }
.checklist li.ok { background: var(--ok-bg); } .checklist li.ok > span { background: var(--ok); color: #fff; }
.checklist li.bad { background: var(--warn-bg); } .checklist li.bad > span { background: var(--warn); color: #fff; }
.msg.handled { opacity: .6; }
details.panel summary { cursor: pointer; }

@media print { .site-header, .site-footer, .announce, .age-gate { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Keep fieldset legends inside their panel instead of on the border. */
fieldset.panel > legend { float: left; width: 100%; margin-bottom: 12px; }
fieldset.panel > legend + * { clear: both; }
.grid-2 > *, .grid-3 > * { min-width: 0; }
.admin-main .panel { overflow-x: auto; }
.pdp > *, .shop-layout > *, .cart-layout > *, .checkout-layout > *, .box-layout > *, .account-layout > * { min-width: 0; }
.pdp-sections > * { min-width: 0; }

/* Rendered product images */
.vial-photo { display: block; width: 100%; height: auto; }
.card-media:has(.vial-photo) { padding: 0; background: #e9eef5; }
.card-media .vial-photo { aspect-ratio: 4 / 5; object-fit: cover; }
.pdp-media:has(.vial-photo) { padding: 0; overflow: hidden; background: #e9eef5; }
.pdp-media .vial-photo { max-width: 560px; margin: 0 auto; }
.line-media .vial-photo { width: 56px; border-radius: 6px; }
.hero-art { position: relative; justify-content: center; align-items: center; min-height: 260px; }
.hero-shot { display: block; width: 62%; max-width: 360px; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(11, 27, 51, .18); border: 1px solid var(--line); position: relative; z-index: 2; }
.hero-shot.side { width: 46%; max-width: 260px; margin-left: -12%; z-index: 1; transform: translateY(26px); opacity: .97; }

/* ===================== Science & fun layer ===================== */
.grid-bg { background-color: #fff;
  background-image: linear-gradient(rgba(42,94,168,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(42,94,168,.07) 1px, transparent 1px);
  background-size: 28px 28px; background-position: -1px -1px; }
.hero.grid-bg { background-color: #fbfcfe; }
.hl { background: linear-gradient(transparent 62%, #cfe0fa 62%); padding: 0 .08em; }
.hero-copy { position: relative; z-index: 2; }

/* Hero art: rotating molecular network behind the vial, with annotation chips */
.hero-art { position: relative; min-height: 360px; display: grid; place-items: center; }
.molecule { position: absolute; inset: -6% -4%; width: 108%; height: 112%; z-index: 0; pointer-events: none; }
.hero-shot { position: relative; z-index: 2; width: 62%; max-width: 340px; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 70px rgba(11,27,51,.2); border: 1px solid var(--line); transition: transform .4s ease; }
.hero-shot:hover { transform: translateY(-4px) rotate(-.6deg); }
.hero-shot.side { display: none; }
.chip { position: absolute; z-index: 3; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 13px; font-size: .78rem; color: var(--ink); box-shadow: 0 6px 18px rgba(11,27,51,.1); white-space: nowrap; animation: floaty 6s ease-in-out infinite; }
.chip b { color: var(--steel); margin-right: 3px; font-family: var(--mono); }
.chip::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #1fa36b; margin-right: 7px; vertical-align: 1px; }
.chip-a { top: 12%; left: 2%; }
.chip-b { top: 46%; right: 0; animation-delay: -2s; }
.chip-c { bottom: 10%; left: 6%; animation-delay: -4s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (max-width: 520px) { .chip { font-size: .7rem; padding: 6px 10px; } .chip-b { right: -4px; } .hero-art { min-height: 300px; } }

/* Dispatch countdown pill */
.dispatch { display: inline-flex; align-items: center; gap: 9px; font-size: .86rem; color: #13603f; background: #e8f6ee; border: 1px solid #c4e6d3;
  border-radius: 999px; padding: 7px 14px; margin: 16px 0 0; }
.dispatch.in-buy { margin: 0 0 12px; }
.dispatch.later { color: var(--navy); background: var(--steel-2); border-color: #cddcf2; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #1fa36b; box-shadow: 0 0 0 0 rgba(31,163,107,.5); animation: pulse 1.8s infinite; flex: none; }
.dispatch.later .pulse { background: var(--steel); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31,163,107,.45); } 70% { box-shadow: 0 0 0 9px rgba(31,163,107,0); } 100% { box-shadow: 0 0 0 0 rgba(31,163,107,0); } }

/* Lot release ticker */
.ticker { display: flex; align-items: center; background: var(--ink); color: #dbe5f3; font-size: .84rem; overflow: hidden; border-bottom: 1px solid #22385a; }
.ticker-label { flex: none; background: var(--steel); color: #fff; font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: 11px 14px; position: relative; z-index: 1; }
.ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-row { display: inline-flex; gap: 34px; padding: 10px 0; white-space: nowrap; animation: tick 60s linear infinite; }
.ticker:hover .ticker-row { animation-play-state: paused; }
.tick { color: #dbe5f3; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.tick strong { color: #fff; } .tick .muted { color: #93a3ba; }
.tick:hover strong { text-decoration: underline; }
.tick-dot { width: 6px; height: 6px; border-radius: 50%; background: #3fd08f; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Promises */
.promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .promises { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .promises { grid-template-columns: repeat(4, 1fr); } }
.promises li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; transition: transform .2s, box-shadow .2s; }
.promises li:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.promises svg { width: 34px; height: 34px; flex: none; padding: 7px; border-radius: 10px; background: var(--steel-2); fill: none; stroke: var(--steel); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.promises strong { display: block; color: var(--ink); font-size: .95rem; }
.promises span { display: block; color: var(--muted); font-size: .84rem; margin-top: 2px; }
.mini-promises { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; color: #34465f; }
.mini-promises li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 8px; }

/* The Atlas Table */
.ptable { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); margin: 18px 0 12px; }
.el { --c: var(--steel); position: relative; display: grid; grid-template-rows: auto 1fr auto auto; aspect-ratio: 1 / 1.08; padding: 8px 9px; border-radius: 8px;
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--c); text-decoration: none; color: var(--ink); overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, background .18s; }
.el::after { content: ""; position: absolute; inset: 0; background: var(--c); opacity: 0; transition: opacity .18s; }
.el:hover, .el:focus-visible { transform: translateY(-3px) scale(1.03); box-shadow: 0 12px 26px rgba(11,27,51,.14); z-index: 2; }
.el:hover::after { opacity: .06; }
.el-n { font-family: var(--mono); font-size: .68rem; color: var(--muted); }
.el-sym { font-size: 1.9rem; font-weight: 800; line-height: 1; color: var(--c); align-self: center; letter-spacing: -.02em; }
.el-name { font-size: .72rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.el-mw { font-size: .68rem; color: var(--muted); }
.el-res { position: absolute; top: 8px; right: 8px; font-size: .6rem; font-family: var(--mono); color: var(--muted); }
.ptable-legend { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .82rem; }
.ptable-legend a { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.ptable-legend a:hover { color: var(--steel); }
.dot { --c: var(--steel); width: 10px; height: 10px; border-radius: 3px; background: var(--c); display: inline-block; }

/* Chromatogram */
.chrom-wrap { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .chrom-wrap { grid-template-columns: .9fr 1.1fr; } }
.chrom { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.chrom svg { width: 100%; height: auto; display: block; }
.chrom .ax { stroke: #9aa8ba; stroke-width: 1; }
.chrom .axt { font: 10px var(--sans); fill: var(--muted); text-anchor: middle; }
.chrom .trace { fill: none; stroke: var(--steel); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 3000; stroke-dashoffset: 3000; }
.chrom.in .trace { animation: draw 2.4s ease-out forwards; }
.no-js .chrom .trace, .reduce .chrom .trace { stroke-dashoffset: 0; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pk { cursor: pointer; outline: none; }
.pk-dot { fill: #fff; stroke: var(--steel); stroke-width: 1.6; transition: fill .15s; }
.pk-n { font: 700 10px var(--sans); fill: var(--steel); text-anchor: middle; pointer-events: none; }
.pk:hover .pk-dot, .pk:focus .pk-dot, .pk.active .pk-dot { fill: var(--steel); }
.pk:hover .pk-n, .pk:focus .pk-n, .pk.active .pk-n { fill: #fff; }
.chrom-notes { position: relative; min-height: 86px; margin-top: 8px; }
.chrom-note { display: none; padding: 10px 12px; background: var(--steel-2); border-radius: var(--radius-sm); }
.chrom-note.active { display: block; animation: fadeup .25s ease; }
.chrom-note p { margin: 4px 0 0; }
.no-js .chrom-note { display: block; margin-bottom: 6px; }
@keyframes fadeup { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Sequence beads */
.beads-fig { margin: 0 0 12px; }
.beads { display: flex; flex-wrap: wrap; gap: 4px 0; padding: 10px 4px; }
.bead { position: relative; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 .78rem var(--mono); color: #fff;
  margin-right: 6px; box-shadow: inset 0 -3px 6px rgba(0,0,0,.18), inset 0 2px 4px rgba(255,255,255,.35); cursor: help;
  opacity: 0; transform: scale(.4); transition: transform .2s; }
.bead::after { content: ""; position: absolute; left: 100%; top: 50%; width: 6px; height: 2px; background: #b9c6d8; }
.bead:last-child::after { display: none; }
.bead:hover { transform: scale(1.18) !important; z-index: 2; }
.beads.in .bead { animation: pop .35s cubic-bezier(.3,1.6,.6,1) forwards; animation-delay: calc(var(--i, 0) * 35ms); }
.no-js .bead, .reduce .bead { opacity: 1; transform: none; }
@keyframes pop { to { opacity: 1; transform: scale(1); } }
.b-hydrophobic { background: #2a5ea8; } .b-polar { background: #0f8a8a; } .b-basic { background: #6b4fbb; }
.b-acidic { background: #c0453a; } .b-modified { background: #b5651d; } .b-cap { background: #8a97a8; }
.beads-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); }
.beads-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }

/* Journey */
.journey { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 14px; grid-template-columns: 1fr; counter-reset: j; position: relative; }
@media (min-width: 900px) { .journey { grid-template-columns: repeat(5, 1fr); }
  .journey::before { content: ""; position: absolute; left: 6%; right: 6%; top: 34px; height: 2px; background: repeating-linear-gradient(90deg, #b9c6d8 0 6px, transparent 6px 12px); } }
.journey li { position: relative; display: grid; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.j-k { display: inline-grid; place-items: center; justify-self: start; min-width: 64px; height: 36px; padding: 0 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .82rem; font-weight: 700; margin-bottom: 6px; position: relative; z-index: 1; }

/* Sticky mobile buy bar */
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(11,27,51,.08); transform: translateY(110%); transition: transform .25s ease; }
.sticky-buy.show { transform: none; }
.sticky-buy > div { display: grid; min-width: 0; }
.sticky-buy strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 900px) { .sticky-buy { display: none; } }

/* Playful empty states */
.fun-empty .big-code { font-size: clamp(2rem, 7vw, 3.4rem); font-weight: 800; color: var(--steel); letter-spacing: -.02em; margin-bottom: 6px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal, .reduce .reveal { opacity: 1; transform: none; }
.product-card { transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-3px); }
.product-card .vial-photo { transition: transform .5s ease; }
.product-card:hover .vial-photo { transform: scale(1.04); }

@media (prefers-reduced-motion: reduce) {
  .chip, .ticker-row, .pulse { animation: none !important; }
  .ticker-track { overflow-x: auto; }
}

/* ===================== Simple flow (gate, hero, cards) ===================== */
.age-gate { background: #fff; backdrop-filter: none; place-items: start center; overflow-y: auto; padding: 0; }
.gate-inner { width: 100%; max-width: 560px; margin: 0 auto; padding: 28px 18px 40px; text-align: center; }
.gate-logo { height: 44px; width: auto; margin: 6px auto 18px; display: block; }
.gate-strip { overflow: hidden; margin: 0 -18px 22px; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.gate-row { display: inline-flex; gap: 10px; animation: tick 40s linear infinite; }
.gate-row img { width: 96px; height: 120px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: #e9eef5; }
.gate-form { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: 0 18px 50px rgba(11,27,51,.08); }
.gate-form h2 { text-align: center; margin-bottom: 6px; }
.gate-intro { text-align: center; color: var(--muted); font-size: .95rem; }
.gate-check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; padding: 14px; border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 10px; cursor: pointer; transition: border-color .15s, background .15s; }
.gate-check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.gate-check:has(input:checked) { border-color: var(--ink); background: var(--steel-2); }
.gate-form .btn { margin-top: 8px; }
.gate-form .btn[disabled] { opacity: .35; }
.gate-fine { font-size: .74rem; color: var(--muted); margin: 14px 0 6px; text-align: center; }
.gate-exit { text-align: center; margin: 0; font-size: .86rem; }
.gate-exit a { color: var(--muted); }

.hero-simple { padding: 36px 0 40px; }
@media (min-width: 900px) { .hero-simple { padding: 56px 0 56px; } }
.card-body.simple { gap: 2px; }
.card-body.simple h3 { font-size: 1.05rem; margin-bottom: 2px; }
.card-meta { margin: 0 0 10px; }
.card-meta a { color: var(--steel); }
.card-body.simple .card-foot { flex-wrap: nowrap; }
@media (max-width: 480px) { .card-body.simple .card-foot .btn { width: auto; } }
.club-band { display: grid; gap: 18px; align-items: center; background: var(--ink); color: #c8d4e5; border-radius: 16px; padding: 28px; }
.club-band h2 { color: #fff; }
.club-band .eyebrow { color: var(--accent-on-dark); }
.club-band .btn { background: #fff; color: var(--ink); border-color: #fff; }
.club-band .btn-ghost { background: transparent; color: #fff; border-color: #3a5684; }
@media (min-width: 900px) { .club-band { grid-template-columns: 1.4fr auto; padding: 36px 40px; } }
.table-toggle { margin: 10px 0 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.table-toggle summary { cursor: pointer; font-weight: 600; color: var(--ink); }

/* ===================== Accounts: rewards, addresses, orders ===================== */
.tier-card { background: var(--ink); color: #c8d4e5; border-radius: 16px; padding: 22px; margin-bottom: 16px; position: relative; overflow: hidden; }
.tier-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(156,192,245,.25), transparent 70%); pointer-events: none; }
.tier-card h2 { color: #fff; margin: 0 0 4px; font-size: 1.6rem; }
.tier-card .eyebrow { color: var(--accent-on-dark); }
.tier-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.tier-points { text-align: right; display: grid; }
.tp-n { font-size: 2rem; font-weight: 800; color: #fff; line-height: 1; }
.tier-progress { margin-top: 16px; }
.tier-progress .bar { background: #22385a; height: 8px; border-radius: 4px; }
.tier-progress .bar span { background: linear-gradient(90deg, #9cc0f5, #fff); }
.tier-progress p { margin: 8px 0 0; }
.tier-progress strong { color: #fff; }
.tier-ladder { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .tier-ladder { grid-template-columns: repeat(4, 1fr); } }
.tier-ladder li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: #12284a; border: 1px solid #22385a; }
.tier-ladder li strong { color: #fff; font-size: .9rem; }
.tier-ladder li.reached { border-color: #3a5684; }
.tier-ladder li.current { background: #fff; color: var(--ink); border-color: #fff; }
.tier-ladder li.current strong { color: var(--ink); }
.quick-grid { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin: 16px 0; }
@media (min-width: 900px) { .quick-grid { grid-template-columns: repeat(4, 1fr); } }
.quick { display: grid; gap: 2px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.quick:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.order-cards { display: grid; gap: 12px; }
.order-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.oc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.oc-items { margin: 8px 0; color: #34465f; }
.oc-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line-2); padding-top: 10px; }
.pill-tabs { display: flex; gap: 6px; margin: 0 0 14px; flex-wrap: wrap; }
.pill-tabs a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); font-size: .86rem; }
.pill-tabs a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.addr-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .addr-grid { grid-template-columns: 1fr 1fr; } }
.addr-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.addr-card.default { border-color: var(--ink); }
.addr-head { display: flex; justify-content: space-between; align-items: center; }
.addr-card p { margin: 8px 0 10px; }
.saved-addrs { margin-bottom: 8px; }
.perk-list { list-style: none; padding: 12px 14px; margin: 0 0 16px; background: var(--steel-2); border-radius: 10px; display: grid; gap: 6px; }
.perk-list li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 8px; }
.tier-ladder.public { margin: 20px 0 28px; }
.tier-ladder.public li { background: #fff; border: 1px solid var(--line); color: var(--text); padding: 16px; }
.tier-ladder.public li strong { color: var(--ink); font-size: 1rem; }
.tier-ladder.public li:last-child { background: var(--ink); color: #c8d4e5; border-color: var(--ink); }
.tier-ladder.public li:last-child strong, .tier-ladder.public li:last-child .tl-perk { color: #fff; }
.tl-perk { font-weight: 800; color: var(--steel); font-size: 1.05rem; }

/* ---------- Venmo / Cash App payment directions ---------- */
.p2p-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.p2p-facts > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; min-width: 0; }
.p2p-facts dt { font-size: 12px; color: var(--muted); margin: 0; }
.p2p-facts dd { margin: 2px 0 0; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.p2p-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: start; }
.p2p-steps { margin: 0; padding-left: 20px; }
.p2p-steps li { margin: 0 0 8px; }
.p2p-qr { margin: 0; text-align: center; }
.p2p-qr img { display: block; width: 200px; height: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.pay-flow { list-style: none; counter-reset: pf; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0; margin: 20px 0; }
.pay-flow li { counter-increment: pf; display: grid; gap: 2px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; min-width: 0; }
.pay-flow li::before { content: counter(pf); width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.pay-method { margin-top: 16px; scroll-margin-top: 90px; }
@media (max-width: 640px) {
  .p2p-grid { grid-template-columns: minmax(0, 1fr); }
  .p2p-qr img { margin: 0 auto; width: 180px; }
  .pay-flow { grid-template-columns: minmax(0, 1fr); }
  .p2p-facts { grid-template-columns: minmax(0, 1fr); }
}
