/* ═══════════════════════════════════════════════════════════
   IGSTARTED.COM — Design System
   Inspired by voice-agent-pro aesthetic
   Dark/Light system mode, monospace/grotesque type stack
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ── TOKENS: DARK (default) ──────────────────────────────── */
:root {
  --c-bg:         #040404;
  --c-surface:    #0b0b0b;
  --c-s2:         #141414;
  --c-s3:         #1a1a1a;
  --c-border:     rgba(255,255,255,0.055);
  --c-border-hi:  rgba(255,255,255,0.22);
  --c-text:       #e8e8e8;
  --c-dim:        #888888;
  --c-muted:      rgba(255,255,255,0.026);
  --c-accent:     #e8e8e8;
  --c-accent-inv: #080808;
  --c-green:      #22c55e;
  --c-green-dim:  rgba(34,197,94,0.15);
  --c-blue:       #3b82f6;
  --c-blue-dim:   rgba(59,130,246,0.12);
  --c-amber:      #f59e0b;
  --c-amber-dim:  rgba(245,158,11,0.12);
  --c-red:        #ef4444;
  --nav-h:        56px;
}

/* ── TOKENS: LIGHT ───────────────────────────────────────── */
.light {
  --c-bg:         #f0f0f0;
  --c-surface:    #fafafa;
  --c-s2:         #e4e4e4;
  --c-s3:         #d8d8d8;
  --c-border:     rgba(0,0,0,0.07);
  --c-border-hi:  rgba(0,0,0,0.28);
  --c-text:       #0c0c0c;
  --c-dim:        #666666;
  --c-muted:      rgba(0,0,0,0.035);
  --c-accent:     #0c0c0c;
  --c-accent-inv: #f0f0f0;
  --c-green:      #16a34a;
  --c-green-dim:  rgba(22,163,74,0.1);
  --c-blue:       #2563eb;
  --c-blue-dim:   rgba(37,99,235,0.08);
  --c-amber:      #d97706;
  --c-amber-dim:  rgba(217,119,6,0.08);
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.2s, color 0.2s;
}

/* ── GRID BACKGROUND (dark only) ─────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--c-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-border) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  transition: opacity 0.3s;
}
.light body::before { opacity: 0; }
main, nav, footer, section, .above-fold { position: relative; z-index: 1; }

/* ── SCROLLBAR ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--c-s2); border-radius: 2px; }

/* ── CONTAINER ───────────────────────────────────────────── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.container-lg { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
.label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-dim);
  line-height: 1.4;
}
.label-accent {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-green);
  line-height: 1.4;
}
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
p { color: var(--c-dim); line-height: 1.7; }
a { color: inherit; text-decoration: none; }

.data-num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

/* ── BRACKET ─────────────────────────────────────────────── */
.bracket { position: relative; }
.bracket::before, .bracket::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
}
.bracket::before {
  top: -1px; left: -1px;
  border-top: 1px solid var(--c-border-hi);
  border-left: 1px solid var(--c-border-hi);
}
.bracket::after {
  bottom: -1px; right: -1px;
  border-bottom: 1px solid var(--c-border-hi);
  border-right: 1px solid var(--c-border-hi);
}

/* ── NAV ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  transition: background 0.2s;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.nav-logo img { height: 26px; width: auto; }
.nav-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-dim);
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: all 0.12s;
  cursor: pointer;
  text-decoration: none;
  background: none;
}
.nav-link:hover { color: var(--c-text); border-color: var(--c-border); background: var(--c-muted); }
.nav-link.active { color: var(--c-text); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-mobile-toggle { display: none; }

@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-border);
    padding: 16px 20px;
    gap: 4px;
    z-index: 199;
  }
  .nav-mobile-toggle { display: flex; }
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 18px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--c-border);
  background: transparent;
  color: var(--c-text);
  cursor: pointer;
  transition: all 0.12s;
  border-radius: 2px;
  white-space: nowrap;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1;
  text-decoration: none;
}
.btn:hover { border-color: var(--c-border-hi); background: var(--c-muted); }
.btn:active { transform: scale(0.98); }
.btn-sm { padding: 5px 12px; font-size: 9px; }
.btn-lg { padding: 13px 28px; font-size: 11px; }
.btn-primary {
  background: var(--c-accent);
  color: var(--c-accent-inv);
  border-color: var(--c-accent);
}
.btn-primary:hover { opacity: 0.85; background: var(--c-accent); }
.btn-green {
  background: var(--c-green);
  color: #fff;
  border-color: var(--c-green);
}
.btn-green:hover { opacity: 0.85; }

/* ── INPUTS ──────────────────────────────────────────────── */
.input {
  width: 100%;
  background: var(--c-s2);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  padding: 10px 14px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.12s;
  font-family: inherit;
  border-radius: 2px;
  line-height: 1.4;
  appearance: none;
}
.input:focus { border-color: var(--c-border-hi); }
.input::placeholder { color: var(--c-dim); font-size: 12px; }
select.input { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }

/* ── RANGE SLIDER ────────────────────────────────────────── */
.range-input {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 2px;
  background: var(--c-border-hi);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--c-text);
  border: 2px solid var(--c-bg);
  cursor: pointer;
  transition: transform 0.1s;
}
.range-input::-webkit-slider-thumb:hover { transform: scale(1.2); }

/* ── RADIO PILLS ─────────────────────────────────────────── */
.pill-group {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.pill {
  padding: 6px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--c-border);
  background: transparent;
  color: var(--c-dim);
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.12s;
}
.pill:hover { border-color: var(--c-border-hi); color: var(--c-text); }
.pill.active {
  background: var(--c-accent);
  color: var(--c-accent-inv);
  border-color: var(--c-accent);
}

/* ── CARDS ───────────────────────────────────────────────── */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 2px;
  padding: 24px;
  transition: border-color 0.15s, background 0.15s;
}
.card:hover { border-color: var(--c-border-hi); }
.card-sm { padding: 16px; }
.card-lg { padding: 32px; }

/* ── RESULT BOX ──────────────────────────────────────────── */
.result-box {
  background: var(--c-green-dim);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 2px;
  padding: 24px;
  position: relative;
}
.result-box .bracket::before { border-color: var(--c-green); }
.result-box .bracket::after { border-color: var(--c-green); }

.result-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--c-green);
  line-height: 1;
}
.result-unit {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-green);
  opacity: 0.7;
}

/* ── STAT GRID ───────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--c-border);
}
.stat-cell {
  padding: 24px;
  border-right: 1px solid var(--c-border);
  text-align: center;
}
.stat-cell:last-child { border-right: none; }
@media (max-width: 768px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2) { border-right: none; }
  .stat-cell:nth-child(n+3) { border-top: 1px solid var(--c-border); }
}

/* ── SECTION ─────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-divider {
  height: 1px;
  background: var(--c-border);
  margin: 0;
}

/* ── AD SLOT ─────────────────────────────────────────────── */
.ad-slot {
  border: 1px dashed var(--c-border);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.4;
  transition: opacity 0.15s;
}
.ad-slot:hover { opacity: 0.7; }
.ad-banner { height: 90px; width: 100%; }
.ad-rect { height: 250px; width: 300px; max-width: 100%; }
.ad-inline { height: 100px; width: 100%; }

/* ── CALCULATOR LAYOUT ───────────────────────────────────── */
.calc-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2px;
  align-items: start;
}
@media (max-width: 960px) {
  .calc-layout { grid-template-columns: 1fr; }
}

.calc-form {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
}
.calc-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.calc-results {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  padding: 24px;
}

.form-row { padding: 20px 24px; border-bottom: 1px solid var(--c-border); }
.form-row:last-child { border-bottom: none; }
.form-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-dim);
  margin-bottom: 8px;
}
.form-hint {
  font-size: 11px;
  color: var(--c-dim);
  margin-top: 6px;
  opacity: 0.7;
}

/* ── PLAN TABLE ──────────────────────────────────────────── */
.plan-table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.plan-table td, .plan-table th {
  padding: 10px 14px;
  border: 1px solid var(--c-border);
  font-size: 12px;
}
.plan-table th {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-dim);
  background: var(--c-s2);
  text-align: left;
}
.plan-table tr.highlight td { background: var(--c-green-dim); border-color: rgba(34,197,94,0.2); }
.plan-table td.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--c-green);
}

/* ── PROGRESS BAR ────────────────────────────────────────── */
.progress-bar {
  height: 4px;
  background: var(--c-s2);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--c-green);
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
}

/* ── COMPARISON TABLE ────────────────────────────────────── */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.compare-col {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
}
.compare-col.winner { border-color: rgba(34,197,94,0.35); }
.compare-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.compare-row {
  padding: 12px 24px;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
}
.compare-row:last-child { border-bottom: none; }
.compare-check { color: var(--c-green); flex-shrink: 0; margin-top: 2px; }
.compare-x { color: var(--c-red); flex-shrink: 0; margin-top: 2px; }
@media (max-width: 600px) { .compare-grid { grid-template-columns: 1fr; } }

/* ── TABS ────────────────────────────────────────────────── */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--c-border);
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 12px 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-dim);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  transition: all 0.12s;
  white-space: nowrap;
}
.tab:hover { color: var(--c-text); }
.tab.active {
  color: var(--c-text);
  border-bottom-color: var(--c-text);
}

/* ── CHECKLIST ───────────────────────────────────────────── */
.checklist { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--c-dim);
}
.checklist li::before {
  content: '✓';
  color: var(--c-green);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── TOOLTIP ─────────────────────────────────────────────── */
.tooltip-wrap { position: relative; display: inline-flex; cursor: help; }
.tooltip-wrap .tooltip-text {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-s3);
  border: 1px solid var(--c-border-hi);
  color: var(--c-text);
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 2px;
  white-space: nowrap;
  z-index: 50;
  pointer-events: none;
}
.tooltip-wrap:hover .tooltip-text { display: block; }

/* ── BLOG CARD ───────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2px;
}
.blog-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  padding: 24px;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
  text-decoration: none;
  display: block;
  color: inherit;
}
.blog-card:hover { border-color: var(--c-border-hi); background: var(--c-s2); }
.blog-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-green);
  margin-bottom: 10px;
  display: block;
}
.blog-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--c-text);
  margin-bottom: 8px;
}
.blog-excerpt { font-size: 12px; color: var(--c-dim); line-height: 1.6; }
.blog-meta { font-family: 'JetBrains Mono', monospace; font-size: 9px; color: var(--c-dim); margin-top: 16px; letter-spacing: 0.06em; }

/* ── ARTICLE ─────────────────────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; padding: 0 20px; } }
.article-body { max-width: 680px; }
.article-body h2 { font-size: 1.4rem; margin: 2rem 0 0.75rem; color: var(--c-text); }
.article-body h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; color: var(--c-text); }
.article-body p { color: var(--c-dim); margin-bottom: 1rem; font-size: 14px; }
.article-body ul, .article-body ol { margin: 0 0 1rem 1.5rem; color: var(--c-dim); font-size: 14px; line-height: 1.7; }
.article-body strong { color: var(--c-text); }
.article-body blockquote {
  border-left: 2px solid var(--c-green);
  padding: 12px 20px;
  background: var(--c-green-dim);
  margin: 1.5rem 0;
  font-size: 14px;
  color: var(--c-dim);
}
.article-sticky { position: sticky; top: calc(var(--nav-h) + 24px); }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--c-border);
  padding: 48px 0 32px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand-logo img { height: 22px; width: auto; margin-bottom: 12px; }
.footer-desc { font-size: 12px; color: var(--c-dim); line-height: 1.7; max-width: 280px; }
.footer-col-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-dim);
  margin-bottom: 14px;
}
.footer-link {
  display: block;
  font-size: 12px;
  color: var(--c-dim);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.12s;
}
.footer-link:hover { color: var(--c-text); }
.footer-bottom {
  border-top: 1px solid var(--c-border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--c-dim);
  letter-spacing: 0.06em;
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  padding: calc(var(--nav-h) + 80px) 0 80px;
  border-bottom: 1px solid var(--c-border);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-green);
  border: 1px solid rgba(34,197,94,0.25);
  padding: 5px 12px;
  border-radius: 2px;
  margin-bottom: 24px;
}
.hero-eyebrow .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--c-green); box-shadow: 0 0 6px var(--c-green); animation: blink 1.4s step-end infinite; }
@keyframes blink { 0%,100% { opacity:1 } 50% { opacity:0 } }

.hero-title { margin-bottom: 20px; }
.hero-title em { font-style: normal; color: var(--c-green); }
.hero-sub { font-size: 16px; color: var(--c-dim); max-width: 580px; line-height: 1.7; margin-bottom: 40px; }

/* ── FADE IN ─────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── NOTIFICATION TOAST ──────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--c-s2);
  border: 1px solid var(--c-border-hi);
  padding: 12px 18px;
  border-radius: 2px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--c-text);
  z-index: 999;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
  max-width: 320px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-color: rgba(34,197,94,0.4); color: var(--c-green); }

/* ── THEME TOGGLE ────────────────────────────────────────── */
#themeToggle { cursor: pointer; }

/* ── PRODUCT CTA CARD ────────────────────────────────────── */
.product-cta {
  background: linear-gradient(135deg, var(--c-green-dim), transparent);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 2px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.product-cta::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,197,94,0.08), transparent 70%);
  pointer-events: none;
}
.product-badge {
  display: inline-block;
  background: var(--c-green);
  color: #000;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 10px;
}

/* ── WEEK PLAN TABLE ─────────────────────────────────────── */
.week-table { width: 100%; }
.week-row {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--c-border);
  gap: 12px;
  font-size: 12px;
}
.week-row:last-child { border-bottom: none; }
.week-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--c-dim);
  min-width: 60px;
}
.week-phase { flex: 1; color: var(--c-text); }
.week-dose {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--c-green);
  min-width: 80px;
  text-align: right;
}

/* ── IMAGES ─────────────────────────────────────────────── */
img { max-width: 100%; height: auto; }

/* ── MOBILE ──────────────────────────────────────────────── */
@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.05rem; }
  .hero { padding: calc(var(--nav-h) + 40px) 0 48px; }
  .hero-sub { font-size: 14px; margin-bottom: 24px; }
  .section { padding: 48px 0; }
  .section-sm { padding: 36px 0; }
  .nav { padding: 0 16px; }
  .container { padding: 0 16px; }
  .stat-cell { padding: 14px 12px; }
  .form-row { padding: 14px 16px; }
  .ad-rect { height: 200px; width: 100%; }
  .ad-banner { height: 60px; }
  .ad-inline { height: 60px; }
  .calc-results { padding: 16px; }
  .result-num { font-size: 2rem; }
  .article-body h2 { font-size: 1.2rem; }
  .nav-logo-text { font-size: 11px; }
  .two-col-grid { grid-template-columns: 1fr !important; gap: 2px !important; }
  .product-cta-inner { flex-direction: column !important; }
}
/* ══════════════════════════════════════════════════════════
   CART
══════════════════════════════════════════════════════════ */

/* Cart nav button */
.cart-nav-btn {
  position: relative;
  padding: 6px 10px;
}

/* Badge counter */
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--c-green);
  color: #000;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  font-weight: 700;
  min-width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0 2px;
}

/* Overlay backdrop */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 299;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* Drawer panel */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 100vw;
  background: var(--c-surface);
  border-left: 1px solid var(--c-border);
  z-index: 300;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.cart-drawer.open {
  transform: translateX(0);
}

/* Drawer header */
.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--c-border);
  flex-shrink: 0;
}
.cart-drawer-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--c-text);
}

/* Scrollable items area */
.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

/* Empty state */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
  text-align: center;
}

/* Cart item row */
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--c-border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-info { flex: 1; }
.cart-item-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 4px;
}
.cart-item-sub {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--c-dim);
}
.cart-item-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.cart-qty-row {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--c-border);
  border-radius: 2px;
  overflow: hidden;
}
.cart-qty-btn {
  background: none;
  border: none;
  color: var(--c-text);
  cursor: pointer;
  padding: 4px 10px;
  font-size: 14px;
  line-height: 1;
  transition: background 0.12s;
}
.cart-qty-btn:hover { background: var(--c-s2); }
.cart-qty-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 4px 8px;
  border-left: 1px solid var(--c-border);
  border-right: 1px solid var(--c-border);
  min-width: 28px;
  text-align: center;
  color: var(--c-text);
}
.cart-item-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-green);
}
.cart-remove-btn {
  background: none;
  border: none;
  color: var(--c-dim);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.05em;
  padding: 0;
  text-decoration: underline;
  transition: color 0.12s;
}
.cart-remove-btn:hover { color: var(--c-text); }

/* Drawer footer */
.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--c-border);
  flex-shrink: 0;
  background: var(--c-surface);
}
.cart-subtotal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

@media (max-width: 480px) {
  .cart-drawer { width: 100vw; }
}

/* ── MOBILE UTILITY CLASSES ──────────────────────────────── */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.two-col-grid-gap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.why-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.product-cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .two-col-grid { grid-template-columns: 1fr !important; }
  .two-col-grid-gap { grid-template-columns: 1fr !important; }
  .why-col-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .product-cta-inner { grid-template-columns: 1fr !important; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}