/* ============================================================
   MRx Labs - stylesheet
   Colors come from the logo: black and white. The only other color
   on the page is each product's own cap color (set in products.js)
   and the WhatsApp green on order buttons.
   ============================================================ */
:root {
  --accent: #111214;
  --accent-dark: #000;
  --accent-rgb: 17, 18, 20;
  --on-accent: #fff;
  --ink: #111214;
  --dark: #0e0f11;
  --text: #2b2d31;
  --muted: #6b6f76;
  --line: #e6e7ea;
  --soft: #f6f6f4;
  --wa: #117a3d;          /* 5.4:1 on white */
  --wa-dark: #0d6130;
  --r: 18px;
  --font: "Poppins", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { font-family: var(--font); color: var(--text); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
button:disabled { cursor: not-allowed; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 40px; }
.wrap.narrow { max-width: 860px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 500; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

h1, h2, h3 { color: var(--ink); line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
h1 em, h2 em { font-style: italic; font-weight: 300; color: inherit; }

.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.eyebrow.line::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* On dark backgrounds the accent flips to white */
.hero, .section.dark, .foot { --accent: #fff; --accent-dark: #fff; --accent-rgb: 255, 255, 255; --on-accent: #111214; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 28px; border-radius: 999px; font-weight: 500; font-size: 1rem; transition: background .2s, color .2s, border-color .2s, transform .2s; border: 1.5px solid transparent; min-height: 48px; }
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { opacity: .88; }
.btn-ghost { border-color: rgba(255,255,255,0.25); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }
.btn-wa:disabled { background: #b9bbbf; color: #fff; transform: none; }
.btn.full { width: 100%; }

/* Bars */
.bar { text-align: center; font-size: 0.85rem; font-weight: 500; padding: 9px 16px; }
.bar-dark { background: var(--dark); color: #e9e9e9; }
.bar-light { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
.bar-link { font-size: inherit; text-decoration: underline; text-underline-offset: 3px; color: var(--muted); margin-left: 6px; }

/* Header */
.head { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.head-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 84px; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; gap: 38px; }
.nav a { font-size: 1rem; color: var(--ink); position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .2s; }
.nav a:hover::after { transform: scaleX(1); }
.head-tools { display: flex; align-items: center; gap: 14px; justify-self: end; }
.region-select { font: inherit; font-size: 0.8rem; font-weight: 600; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 6px 28px 6px 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23111' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 11px center; appearance: none; cursor: pointer; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button { font-size: 0.78rem; font-weight: 600; padding: 6px 10px; border-radius: 999px; color: var(--muted); min-height: 32px; }
.lang button.on { background: var(--ink); color: #fff; }
.icon-btn { position: relative; padding: 10px; color: var(--ink); min-width: 44px; min-height: 44px; display: grid; place-items: center; }
.count { position: absolute; top: 2px; right: 0; background: var(--ink); color: #fff; font-size: 0.68rem; font-weight: 700; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; display: grid; place-items: center; }
.burger { display: none; flex-direction: column; justify-content: center; gap: 5px; padding: 10px; min-width: 44px; min-height: 44px; }
.burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* Hero */
.hero { background: radial-gradient(900px 600px at 0% 0%, rgba(255,255,255,0.07), transparent 60%), radial-gradient(900px 700px at 100% 100%, rgba(255,255,255,0.04), transparent 60%), var(--dark); color: #c9cacd; padding: 130px 0 140px; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 70px; align-items: center; }
.hero .eyebrow { color: #9fa1a6; }
.hero h1 { color: #fff; font-size: clamp(2.8rem, 6.2vw, 5.6rem); line-height: 1.02; letter-spacing: -0.035em; }
.lede { font-size: 1.18rem; max-width: 560px; margin: 30px 0 40px; color: #b9bbbf; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.dots { list-style: none; display: flex; gap: 30px; flex-wrap: wrap; margin-top: 54px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.82rem; color: #9fa1a6; }
.dots li { display: flex; align-items: center; gap: 8px; }
.dots li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #2fbf6a; }

.spec-card { background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); border: 1px solid rgba(255,255,255,0.12); border-radius: 22px; padding: 28px; box-shadow: 0 40px 80px rgba(0,0,0,0.35); color: #d8d9dc; }
.spec-vial { height: 270px; margin: 22px 0 0; border-radius: 14px; background: radial-gradient(120% 80% at 50% 25%, #ffffff 0%, #eceef1 55%, #dcdfe3 100%); display: grid; place-items: center; overflow: hidden; }
.spec-vial svg { height: 100%; width: auto; margin-top: 6%; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: #d8d9dc; border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.05); padding: 6px 12px; border-radius: 999px; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: #2fbf6a; }
.spec-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin: 24px 0 0; }
.spec-top .right { text-align: right; flex-shrink: 0; white-space: nowrap; }
.lbl { display: block; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: #9a9da3; margin-bottom: 4px; }
.spec-top strong { font-size: 1.35rem; color: #fff; font-weight: 600; display: block; }
.spec-top .accent { color: #fff; font-weight: 500; font-size: 1.2rem; }
.spec-top small { display: block; font-size: 0.78rem; color: #9a9da3; }
.spec-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.1); flex-wrap: wrap; }
.spec-switch { display: flex; gap: 6px; flex-wrap: wrap; }
.spec-switch button { font-family: var(--mono); font-size: 0.7rem; padding: 8px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.15); color: #c9cacd; min-height: 32px; }
.spec-switch button.on { background: #fff; color: var(--ink); border-color: #fff; }

/* Stats */
.stats { border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-grid div { padding: 38px 0 38px 48px; }
.stats-grid div + div { border-left: 1px solid var(--line); }
.stats strong { display: block; font-size: 2.6rem; font-weight: 500; color: var(--ink); line-height: 1.1; }
.stats span { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* Sections */
.section { padding: 120px 0; }
.section.soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.dark { background: radial-gradient(800px 500px at 100% 0%, rgba(255,255,255,0.06), transparent 60%), var(--dark); color: #b9bbbf; }
.section.dark h2 { color: #fff; }
.section.dark .eyebrow { color: #9fa1a6; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 50px; flex-wrap: wrap; }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.card { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.card:hover { box-shadow: 0 24px 50px rgba(17,18,20,0.09); transform: translateY(-3px); }
.card-media { position: relative; aspect-ratio: 1 / 1.05; background: radial-gradient(120% 70% at 50% 30%, #ffffff 0%, #eef0f2 55%, #e2e5e9 100%); display: grid; place-items: center; overflow: hidden; }
.card-media svg { height: 92%; width: auto; margin-top: 8%; transition: transform .35s; }
.card:hover .card-media svg { transform: scale(1.04); }
.tag { position: absolute; top: 14px; left: 14px; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: #5a5e65; display: flex; align-items: center; gap: 6px; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #22a55a; }
.card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.card-body h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.card-body .sub { font-size: 0.85rem; color: var(--muted); }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; flex-wrap: wrap; }
.card-foot .vol { font-size: 0.7rem; color: var(--muted); letter-spacing: 0.04em; }
.price { font-family: var(--mono); font-size: 1.2rem; font-weight: 600; color: var(--ink); }
.price.ask { font-size: 0.8rem; font-weight: 500; }
.add { margin-top: 16px; width: 100%; padding: 12px; min-height: 48px; border-radius: 999px; border: 1.5px solid var(--ink); font-weight: 500; font-size: 0.92rem; transition: background .2s, color .2s; }
.add:hover { background: var(--ink); color: #fff; }

/* How to order (numbered steps) */
.std { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.std-list { list-style: none; margin-top: 44px; border-top: 1px solid var(--line); }
.std-list li { display: grid; grid-template-columns: 60px 1fr; padding: 24px 0; border-bottom: 1px solid var(--line); }
.std-list .mono { color: var(--muted); font-size: 0.85rem; padding-top: 3px; }
.std-list h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 4px; }
.std-list p { color: var(--muted); font-size: 0.95rem; }
.std .btn-wa { margin-top: 28px; }
.std-media { border-radius: 24px; background: radial-gradient(circle at 50% 38%, #ffffff, #e2e3e6 80%); border: 1px solid var(--line); aspect-ratio: 1 / 1.1; display: flex; justify-content: center; align-items: flex-end; gap: 0; padding-bottom: 4%; box-shadow: 0 30px 60px rgba(17,18,20,0.08); overflow: hidden; }
.std-media svg { height: 50%; width: auto; margin: 0 -1%; }
.std-media svg:nth-child(2) { height: 64%; position: relative; z-index: 1; }

/* Markets */
.markets-sub { max-width: 560px; margin-top: 14px; }
.markets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 50px; }
.market { position: relative; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,0.12); border-radius: var(--r); padding: 30px 28px; background: rgba(255,255,255,0.03); text-align: left; color: inherit; transition: border-color .2s, background .2s; }
.market:hover { border-color: rgba(255,255,255,0.35); }
.market .pay { display: block; font-family: var(--mono); font-size: 0.82rem; color: #fff; margin-top: auto; padding-top: 22px; line-height: 1.5; }
.market .pay .lbl { margin-bottom: 6px; }
.market .yours { position: absolute; top: 26px; right: 24px; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; background: #fff; color: var(--ink); padding: 3px 8px; border-radius: 999px; visibility: hidden; }
.market.on .yours { visibility: visible; }
.market .code { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; color: #9fa1a6; display: flex; align-items: center; gap: 10px; }
.market h3 { color: #fff; font-size: 1.35rem; font-weight: 600; margin: 26px 0 6px; letter-spacing: -0.01em; }
.market p { font-size: 0.88rem; }
.market.on { border-color: #fff; background: rgba(255,255,255,0.07); }

/* FAQ */
.faq { margin-top: 44px; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 26px; font-weight: 500; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 300; color: var(--ink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 26px 22px; color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: start; }
.contact .muted { margin-top: 18px; max-width: 440px; }
.c-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.c-btns .mono { white-space: nowrap; }
.c-hours { margin-top: 14px; font-size: 0.85rem; }
.c-hours a { text-decoration: underline; text-underline-offset: 3px; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 34px; display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 7px; font-size: 0.85rem; font-weight: 500; color: var(--ink); }
.form input, .form textarea, .updates input[type="email"] { font: inherit; font-size: 1rem; border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; background: var(--soft); resize: vertical; min-width: 0; width: 100%; }
.form input:focus, .form textarea:focus, .updates input:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(17,18,20,0.12); }
.form .btn { justify-self: start; }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: -6px; }
.form-note a { text-decoration: underline; text-underline-offset: 3px; }
.form-msg { font-size: 0.9rem; font-weight: 500; min-height: 0; }
.form-msg:empty { display: none; }
.form-msg.ok { color: var(--wa); }
.form-msg.err { color: #b3261e; }
form[data-state="sending"] .btn { opacity: .7; }
.updates { margin-top: 34px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; display: grid; gap: 10px; max-width: 460px; }
.updates h3 { font-size: 1.05rem; font-weight: 600; }
.updates .muted { margin-top: 0; font-size: 0.88rem; }
.u-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 6px; }
.u-row .btn { padding: 12px 20px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.8rem; color: var(--muted); }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; cursor: pointer; appearance: none; -webkit-appearance: none; border: 2px solid var(--muted); border-radius: 5px; background: #fff; }
.consent input:checked { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px 12px no-repeat; border-color: var(--ink); }

/* Footer */
.foot { background: radial-gradient(700px 400px at 0% 0%, rgba(255,255,255,0.05), transparent 60%), var(--dark); color: #9fa1a6; padding: 90px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot-logo { width: 220px; }
.foot-tag { margin-top: 18px; font-size: 0.92rem; max-width: 300px; }
.foot h4 { color: #fff; font-weight: 600; margin-bottom: 16px; }
.foot-grid a { display: block; font-size: 0.92rem; margin-bottom: 10px; }
.foot-grid a:hover { color: #fff; }
.foot-legal { margin-top: 70px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.1); display: grid; gap: 12px; font-size: 0.8rem; color: #8b8e94; }

/* Entry page */
.gate { position: fixed; inset: 0; z-index: 300; overflow-y: auto; padding: 40px 16px 30px;
  background: radial-gradient(900px 600px at 50% -10%, #1d1f23, transparent 70%), #08090a;
  display: flex; flex-direction: column; align-items: center; }
.gate[hidden] { display: none; }
body.gated { overflow: hidden; }
.gate-box { width: 100%; max-width: 560px; background: #111214; border: 1px solid #2a2c31; border-radius: 22px;
  padding: 38px 38px 26px; display: grid; gap: 14px; color: #c9cbcf; box-shadow: 0 40px 100px rgba(0,0,0,.6); outline: none; }
.gate-logo { width: 150px; justify-self: center; margin-bottom: 14px; }
.gate-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: #8b8e94; text-align: center; margin-top: 4px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: #08090a; border: 1px solid #2a2c31; border-radius: 14px; padding: 5px; }
.seg button { border-radius: 10px; font-weight: 600; color: #9a9da3; transition: background .15s, color .15s; }
.seg button:hover { color: #fff; }
.seg button.on { background: #fff; color: #0b0c0e; }
.seg-lang button { padding: 15px 10px; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; gap: 10px; }
.seg-region button { padding: 9px 8px; font-size: 0.88rem; }
.gate-kicker { margin-top: 18px; text-align: center; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #2fbf6a; }
.gate-box h2 { color: #fff; text-align: center; font-size: 1.9rem; margin-top: -4px; }
.gate-text { text-align: center; font-size: 0.95rem; line-height: 1.6; margin-bottom: 6px; }
.gate-text b, .gate-card b { color: #fff; font-weight: 600; }
.gate-card { display: flex; gap: 14px; align-items: flex-start; background: #17181b; border: 1px solid #2a2c31; border-radius: 14px; padding: 16px 18px; cursor: pointer; transition: border-color .15s; }
.gate-card:hover { border-color: #3d4046; }
.gate-card:has(input:checked) { border-color: #6b6f76; }
.gate-card input[type="checkbox"] { flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px; cursor: pointer;
  appearance: none; -webkit-appearance: none; border: 2px solid #9a9da3; border-radius: 6px; background: #0b0c0e; display: grid; place-items: center; transition: background .15s, border-color .15s; }
.gate-card input[type="checkbox"]:checked { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat; border-color: #fff; }
.gate-card input[type="checkbox"]:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.gate-card span { display: grid; gap: 4px; }
.gate-card strong { color: #fff; font-weight: 600; font-size: 0.98rem; }
.gate-card small { font-size: 0.84rem; line-height: 1.5; color: #9a9da3; }
.gate-select { display: grid; cursor: default; }
.gs-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.gs-head em { font-style: normal; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: #d8d9dc; border: 1px solid #3d4046; border-radius: 999px; padding: 2px 8px; }
.gate-select select { margin-top: 6px; font: inherit; font-size: 1rem; color: #fff; background: #08090a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 16px center;
  border: 1px solid #2a2c31; border-radius: 10px; padding: 13px 40px 13px 14px; appearance: none; cursor: pointer; width: 100%; text-overflow: ellipsis; }
.gate-select select:focus { outline: none; border-color: #9a9da3; }
.gate-select option { background: #111214; }
.gate-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.gate-enter, .gate-leave { padding: 15px; border-radius: 12px; font-weight: 600; font-size: 1rem; text-align: center; transition: background .15s, color .15s, opacity .15s; min-height: 52px; }
.gate-enter { background: #fff; color: #0b0c0e; }
.gate-enter:disabled { background: #2a2c31; color: #8b8e94; }
.gate-leave { border: 1px solid #2a2c31; color: #fff; }
.gate-leave:hover { border-color: #6b6f76; }
.gate-fine { border-top: 1px solid #2a2c31; margin-top: 10px; padding-top: 18px; text-align: center; font-size: 0.78rem; line-height: 1.6; color: #9a9da3; }
.gate-fine a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.gate-copy { margin-top: 22px; font-size: 0.78rem; color: #8b8e94; text-align: center; }
.gate-box > *, .gate-select > * { min-width: 0; }

/* Order drawer */
.scrim { position: fixed; inset: 0; background: rgba(14,15,17,0.5); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 80; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; width: 420px; max-width: 100%; height: 100%; height: 100dvh; background: #fff; z-index: 90; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s ease, visibility .3s; visibility: hidden; }
.drawer.open { transform: none; box-shadow: -20px 0 50px rgba(0,0,0,0.12); visibility: visible; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px 18px 26px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 1.25rem; margin-right: auto; }
.x { font-size: 1.9rem; line-height: 1; color: var(--ink); min-width: 44px; min-height: 44px; display: grid; place-items: center; }
.back { font-size: 1.3rem; line-height: 1; color: var(--ink); min-width: 44px; min-height: 44px; display: grid; place-items: center; }
.back[hidden] { display: none; }
.drawer-body { flex: 1; overflow-y: auto; padding: 6px 26px; }
.empty { color: var(--muted); padding: 50px 0; text-align: center; }
.item { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.item .thumb { width: 56px; height: 56px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; overflow: hidden; }
.item .thumb svg { height: 54px; width: auto; margin-top: 8px; }
.item .name { font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.item .meta { font-size: 0.8rem; color: var(--muted); }
.item .qty { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 2px; font-size: 0.9rem; }
.item .qty button { font-weight: 600; min-width: 36px; min-height: 36px; border-radius: 999px; display: grid; place-items: center; }
.item .qty button:hover { background: var(--soft); }
.item .qty .q { min-width: 22px; text-align: center; font-family: var(--mono); }
.item .right { text-align: right; font-family: var(--mono); font-weight: 600; color: var(--ink); }
.item .rm { display: block; margin: 6px 0 0 auto; font-family: var(--font); font-weight: 400; font-size: 0.8rem; color: var(--muted); text-decoration: underline; padding: 6px 0; }
.drawer-foot { padding: 18px 26px 22px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.total { display: flex; justify-content: space-between; font-size: 1.05rem; color: var(--ink); }
.total[hidden] { display: none; }
.foot-note { font-size: 0.82rem; }
.view { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.view[hidden] { display: none; }
.done { padding-top: 26px; display: grid; gap: 14px; align-content: start; }
.done .check { width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 1.4rem; }
.done h4 { font-size: 1.35rem; color: var(--ink); }
.done h5 { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.done p { color: var(--muted); font-size: 0.92rem; }
.order-text { font-family: var(--mono); font-size: 0.82rem; line-height: 1.6; white-space: pre-wrap; word-break: break-word; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--ink); }
.pay-list { list-style: none; display: grid; gap: 8px; }
.pay-list li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 0.9rem; }
.pay-list strong { color: var(--ink); font-weight: 600; }
.pay-list .mono { color: var(--muted); font-size: 0.82rem; text-align: right; word-break: break-all; }
.pay-list .copy-handle { padding: 0; text-decoration: underline dotted; text-underline-offset: 3px; cursor: copy; }
.pay-list .copy-handle:hover { color: var(--ink); }
.alt-row { display: grid; gap: 10px; }
.alt-row .btn { font-size: 0.9rem; padding: 12px 18px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 150%); opacity: 0; visibility: hidden; background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 999px; font-size: 0.9rem; z-index: 400; transition: transform .25s, opacity .25s; max-width: calc(100% - 32px); text-align: center; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* Flags */
.flag { width: 26px; height: 19.5px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255,255,255,.18); flex-shrink: 0; }
.flag-stack { display: inline-flex; flex-shrink: 0; gap: 3px; }
.flag-stack img { width: 20px; height: 15px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.globe { width: 20px; height: 20px; flex-shrink: 0; }
.seg-lang .flag { width: 30px; height: 22.5px; }
.seg-region button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 12px 6px; min-height: 64px; }
.seg-region button.on .flag-stack img { box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.seg-region button:not(.on) .flag, .seg-region button:not(.on) .flag-stack, .seg-lang button:not(.on) .flag { opacity: .75; }
.lang button { display: inline-flex; align-items: center; gap: 5px; }
.lang .flag { width: 16px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.market .flag { width: 30px; height: 22.5px; }
.market .flag-stack { gap: 4px; }
.market .flag-stack img { width: 26px; height: 19.5px; }
.market .globe { width: 24px; height: 24px; color: #fff; }

/* Responsive */
@media (max-width: 1100px) {
  .hero-inner, .std, .contact { grid-template-columns: 1fr; gap: 60px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid div:nth-child(3) { border-left: none; }
  .stats-grid div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .std-media { max-width: 520px; }
  .updates { max-width: none; }
}
@media (max-width: 1000px) {
  .head-inner { grid-template-columns: auto 1fr; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(0,0,0,.08); }
  .nav.open { display: flex; }
  .nav a { padding: 16px 20px; border-top: 1px solid var(--line); }
  .nav a::after { display: none; }
  .burger { display: flex; }
}
@media (max-width: 820px) {
  .wrap { padding: 0 18px; }
  .head-inner { height: 70px; }
  .brand img { height: 36px; }
  .head-tools { gap: 6px; }
  .hero { padding: 70px 0 80px; }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 3.4rem); }
  .spec-card { padding: 20px; }
  .stats-grid div { padding: 26px 0 26px 18px; }
  .stats strong { font-size: 1.9rem; }
  .section { padding: 80px 0; }
  /* Phones: two cards per row so several peptides fit in one screenshot */
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card { border-radius: 14px; }
  .card-media { aspect-ratio: 1 / 0.95; }
  .card-media svg { height: 94%; }
  .tag { top: 10px; left: 10px; font-size: 0.6rem; }
  .card-body { padding: 12px 12px 14px; }
  .card-body h3 { font-size: 0.95rem; line-height: 1.2; }
  .card-body .sub { font-size: 0.74rem; line-height: 1.35; margin-top: 2px; }
  .card-foot { flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 10px; }
  .card-foot .vol { font-size: 0.62rem; }
  .price { font-size: 1.05rem; }
  .add { margin-top: 10px; padding: 10px 6px; min-height: 44px; font-size: 0.85rem; }
  .markets { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .form-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .region-select { display: none; }
  .gate { padding-top: 20px; }
  .gate-box { padding: 28px 18px 20px; }
  .gate-btns { grid-template-columns: 1fr; }
  .seg-region .flag-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
  .seg-region .flag-stack img { width: 17px; height: 12.75px; }
  .c-btns .btn { width: 100%; padding: 14px 16px; font-size: 0.95rem; }
  .u-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Legal page (legal.html) */
.legal-head { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
.legal-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 12px; }
.legal-head img { height: 36px; width: auto; }
.legal { max-width: 820px; margin: 0 auto; padding: 60px 18px 90px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 8px; }
.legal .updated { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.legal nav.toc { display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 0 50px; }
.legal nav.toc a { border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 0.9rem; font-weight: 500; color: var(--ink); }
.legal nav.toc a:hover { border-color: var(--ink); }
.legal section { padding: 40px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.legal h2 { font-size: 1.7rem; margin-bottom: 18px; }
.legal h3 { font-size: 1.05rem; font-weight: 600; margin: 24px 0 8px; }
.legal p, .legal li { font-size: 0.97rem; color: var(--text); margin-bottom: 10px; }
.legal ul { padding-left: 20px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal .note { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 0.9rem; }
.legal-foot { text-align: center; font-size: 0.85rem; color: var(--muted); padding: 30px 18px 50px; }
[data-l] { display: none; }
html[lang="en"] [data-l="en"], html[lang="es"] [data-l="es"] { display: block; }
html[lang="en"] span[data-l="en"], html[lang="es"] span[data-l="es"] { display: inline; }
