/* ForgedVials Research LLC — Staging RUO Site */
:root {
  --bg: #0b0f14;
  --bg-elev: #121821;
  --bg-card: #161d28;
  --border: #243041;
  --border-strong: #3a4a5f;
  --text: #e6edf5;
  --text-muted: #9aa8b8;
  --accent: #3d8bfd;
  --accent-dim: #1e4a8c;
  --warn: #c9a227;
  --warn-bg: #2a2410;
  --danger: #c44;
  --ok: #3a9e6a;
  --ruo: #d4a017;
  --font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "Consolas", monospace;
  --max: 1100px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* Age/geo gate */
#age-geo-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 8, 12, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
#age-geo-gate[hidden] { display: none !important; }
.gate-card {
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 2rem 2.25rem;
  max-width: 560px;
  width: 100%;
}
.gate-card h1 {
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.gate-card p,
.gate-lead { color: var(--text-muted); font-size: 0.95rem; margin: 0 0 1rem; line-height: 1.55; }
.gate-footer { margin-top: 1.25rem !important; font-size: 0.8rem !important; color: var(--text-muted); }
.gate-checks { display: flex; flex-direction: column; gap: 1rem; margin: 1.25rem 0; }
.gate-checks label.gate-check {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.95rem;
  line-height: 1.55;
  cursor: pointer;
  color: var(--text);
}
.gate-checks label.gate-check span {
  display: block;
  text-wrap: pretty;
  hyphens: none;
}
.gate-checks input[type="checkbox"] {
  margin-top: 0.3rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.gate-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 550;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary {
  background: #f0c040; /* match RUO banner yellow */
  color: #0b0f14;
  border-color: #f0c040;
}
.btn-primary:hover:not(:disabled) {
  background: #f5d06a;
  border-color: #f5d06a;
  color: #0b0f14;
}
.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-muted);
}
.btn-ghost:hover:not(:disabled) { border-color: var(--text-muted); color: var(--text); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.85rem; }

/* Site-wide RUO banner */
.ruo-banner {
  background: var(--warn-bg);
  border-bottom: 1px solid #5a4a18;
  color: var(--ruo);
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  font-weight: 550;
  letter-spacing: 0.03em;
  line-height: 1.4;
}
.ruo-banner strong { color: #f0c040; }

/* Header */
.site-header {
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.logo {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo:hover { text-decoration: none; color: var(--accent); }
.logo span { color: var(--accent); font-weight: 400; }
.nav {
  display: flex;
  gap: 0.15rem 1.1rem;
  flex-wrap: wrap;
  align-items: center;
}
.nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
}
.nav a:hover, .nav a.active { color: var(--text); }
.cart-link { position: relative; }
.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.3rem;
  background: var(--accent);
  color: #fff;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-left: 0.25rem;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius);
  cursor: pointer;
}

/* Main */
main {
  flex: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  width: 100%;
}

/* Hero */
.hero {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 650;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.hero .lede {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 38rem;
  margin: 0 0 1.5rem;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.pill {
  display: inline-block;
  font-size: 0.75rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ruo);
  border: 1px solid #5a4a18;
  background: var(--warn-bg);
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 1rem;
}

/* Cards / grid */
.section-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s;
}
.product-card:hover { border-color: var(--border-strong); }
.product-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
}
.product-card h3 a { color: var(--text); text-decoration: none; }
.product-card h3 a:hover { color: var(--accent); }
.product-card .meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--mono);
  margin-bottom: 0.75rem;
}
.product-card .desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1;
  margin: 0 0 1rem;
}
.product-card .card-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
}

/* Product detail */
.product-detail .breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.product-detail .breadcrumb a { color: var(--text-muted); }
.product-detail h1 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin: 0 0 0.5rem;
}
.disclaimer-box {
  background: var(--warn-bg);
  border: 1px solid #5a4a18;
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
  font-size: 0.9rem;
  color: #e0c86a;
}
.disclaimer-box strong { color: var(--ruo); }
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.92rem;
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
}
.spec-table th {
  background: var(--bg-elev);
  color: var(--text-muted);
  font-weight: 550;
  width: 40%;
  font-family: var(--mono);
  font-size: 0.8rem;
}
.spec-table td { background: var(--bg-card); }
.coa-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  border-left: 3px solid var(--accent-dim);
  padding-left: 1rem;
  margin: 1.5rem 0;
}

/* Cart / checkout */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.cart-table th, .cart-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.cart-table th {
  color: var(--text-muted);
  font-weight: 550;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cart-empty {
  color: var(--text-muted);
  padding: 2rem 0;
  text-align: center;
}
.qty-input {
  width: 4rem;
  padding: 0.35rem 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 4px;
  font: inherit;
}
.checkout-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.checkout-panel h2 {
  font-size: 1.1rem;
  margin: 0 0 1rem;
}
.form-row {
  margin-bottom: 1rem;
}
.form-row label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: var(--radius);
  font: inherit;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.attestation-box {
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.15rem;
  margin: 1.25rem 0;
}
.attestation-box label {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.5;
}
.attestation-box input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.attestation-footer {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}
.staging-notice {
  background: #1a2030;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--warn);
  text-align: center;
}
.order-summary {
  font-family: var(--mono);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.order-summary .row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
}
.order-summary .total {
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
  padding-top: 0.65rem;
  font-weight: 600;
}

/* Policy pages */
.policy-content h1 {
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
}
.policy-content .updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.policy-content h2 {
  font-size: 1.1rem;
  margin: 1.75rem 0 0.65rem;
}
.policy-content p, .policy-content li {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.policy-content ul { padding-left: 1.25rem; }
.policy-content li { margin-bottom: 0.4rem; }

/* About / contact */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
}
.info-card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 550;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
}
.info-card p { margin: 0; font-size: 0.95rem; }

/* Footer */
.site-footer {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  padding: 2rem 1.25rem;
  margin-top: auto;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}
.footer-col h4 {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 550;
}
.footer-col a, .footer-col p {
  display: block;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
  text-decoration: none;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: var(--max);
  margin: 1.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}
.footer-ruo {
  color: var(--ruo);
  font-size: 0.78rem;
  margin-top: 0.5rem;
}

/* Features / notes on home */
.feature-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.feature {
  padding: 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.feature h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}
.feature p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  margin: 1rem 0;
  font-size: 0.9rem;
}
.alert-info {
  background: #122033;
  border: 1px solid var(--accent-dim);
  color: #a8c8f0;
}
.alert-warn {
  background: var(--warn-bg);
  border: 1px solid #5a4a18;
  color: #e0c86a;
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    padding-top: 0.5rem;
  }
  .nav.open { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .cart-table { font-size: 0.85rem; }
  .cart-table th:nth-child(3),
  .cart-table td:nth-child(3) { display: none; }
}
