/* ========================================
   closelook@health — Supplement Intelligence
   Light theme · DM Sans · Red #DC2626
   ======================================== */

:root {
  --bg: #fafafa;
  --bg-card: #ffffff;
  --red: #DC2626;
  --red-light: #FEE2E2;
  --dark: #1a1a1a;
  --mid: #4a4a4a;
  --light: #8a8a8a;
  --border: #e5e5e5;
  --green: #16a34a;
  --green-bg: #DCFCE7;
  --yellow: #ca8a04;
  --yellow-bg: #FEF9C3;
  --blue-bg: #DBEAFE;
  --slate-bg: #F1F5F9;
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --serif: 'DM Serif Display', Georgia, serif;
}

/* RESET */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font); background: var(--bg); color: var(--dark); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--red); text-decoration: none; transition: color 0.15s; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ---- NAV ---- */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(250,250,250,0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 12px rgba(0,0,0,0.04);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 14px 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.nav-brand {
  display: flex; align-items: baseline; gap: 1px; text-decoration: none;
}
.nav-brand .cl { font-weight: 700; font-size: 18px; color: var(--red); }
.nav-brand .at { font-weight: 400; font-size: 18px; color: var(--mid); }
.nav-links {
  display: flex; gap: 28px; align-items: center;
  font-size: 14px; font-weight: 500;
}
.nav-links a { color: var(--mid); text-decoration: none; }
.nav-links a:hover { color: var(--red); }
.nav-tag {
  font-size: 11px; color: var(--light);
  border: 1px solid var(--border); padding: 3px 10px; border-radius: 20px;
}
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--dark);
  margin: 5px 0; transition: 0.2s;
}

/* ---- HERO ---- */
.hero { padding: 140px 24px 80px; }
.hero-inner { max-width: 1100px; margin: 0 auto; }
.hero-label {
  font-size: 12px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--red); margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--serif); font-size: 52px; color: var(--dark);
  line-height: 1.15; margin-bottom: 20px; font-weight: 400;
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero-sub {
  font-size: 19px; color: var(--mid); max-width: 680px;
  line-height: 1.7; margin-bottom: 32px;
}
.hero-method {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--dark);
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 10px 20px; border-radius: 6px;
}
.hero-method .arrow { color: var(--red); font-size: 16px; }

/* ---- SECTIONS ---- */
.section { padding: 80px 24px; }
.section-alt { background: var(--bg-card); }
.container { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 11px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--red); margin-bottom: 12px;
}
.section-title {
  font-family: var(--serif); font-size: 36px; color: var(--dark);
  margin-bottom: 12px; font-weight: 400;
}
.section-sub {
  font-size: 16px; color: var(--mid); max-width: 600px;
  margin-bottom: 48px; line-height: 1.7;
}

/* ---- DIMENSIONS ---- */
.dimensions { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.dim-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 36px;
}
.section-alt .dim-card { background: var(--bg); }
.dim-card h3 {
  font-size: 12px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--red); margin-bottom: 14px;
}
.dim-card h4 {
  font-family: var(--serif); font-size: 24px; color: var(--dark);
  margin-bottom: 12px; font-weight: 400;
}
.dim-card p { font-size: 15px; color: var(--mid); line-height: 1.7; margin-bottom: 20px; }
.dim-flow {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--dark); flex-wrap: wrap;
}
.dim-flow .arr { color: var(--red); }

/* ---- CONDITIONS GRID ---- */
.conditions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cond-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 28px; position: relative;
  overflow: hidden; transition: border-color 0.2s;
}
.section-alt .cond-card { background: var(--bg); }
.cond-card:hover { border-color: var(--red); }
.cond-card.active { border-color: var(--red); border-width: 2px; }
.cond-card.active::after {
  content: 'LIVE'; position: absolute; top: 12px; right: 12px;
  font-size: 10px; font-weight: 700; letter-spacing: 1px; color: #fff;
  background: var(--red); padding: 2px 8px; border-radius: 3px;
}
.cond-card.soon::after {
  content: 'Q2 2026'; position: absolute; top: 12px; right: 12px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.5px;
  color: var(--light); background: var(--slate-bg); padding: 2px 8px; border-radius: 3px;
}
.cond-card.planned::after {
  content: 'PLANNED'; position: absolute; top: 12px; right: 12px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.5px;
  color: var(--light); background: var(--slate-bg); padding: 2px 8px; border-radius: 3px;
}
.cond-icon { font-size: 28px; margin-bottom: 12px; }
.cond-card h3 { font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.cond-sub { font-size: 13px; color: var(--mid); line-height: 1.6; margin-bottom: 14px; }
.cond-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.cond-tag {
  font-size: 11px; color: var(--mid); background: var(--slate-bg);
  padding: 2px 8px; border-radius: 3px;
}
.cond-tag.evidence { background: var(--green-bg); color: var(--green); }

/* ---- COMPOUNDS GRID ---- */
.compounds-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.comp-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 22px; transition: border-color 0.2s;
  position: relative;
}
.section-alt .comp-card { background: var(--bg); }
.comp-card:hover { border-color: var(--red); }
.comp-card.active { border-color: var(--red); border-width: 2px; }
.comp-card.active::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--red); border-radius: 8px 8px 0 0;
}
.comp-name { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.comp-claim { font-size: 12px; color: var(--mid); margin-bottom: 10px; line-height: 1.5; }
.comp-ev {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 3px;
}
.comp-ev.inline { font-size: 10px; }
.comp-ev.l5, .comp-ev.l4 { background: var(--green-bg); color: var(--green); }
.comp-ev.l3, .comp-ev.l2 { background: var(--yellow-bg); color: var(--yellow); }
.comp-ev.l1 { background: var(--red-light); color: var(--red); }

/* ---- EVIDENCE LADDER ---- */
.ladder { display: flex; flex-direction: column; gap: 8px; max-width: 700px; margin-bottom: 48px; }
.ladder-row { display: flex; align-items: stretch; border-radius: 6px; overflow: hidden; }
.ladder-level {
  width: 80px; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.ladder-level.l5 { background: #166534; }
.ladder-level.l4 { background: #16a34a; }
.ladder-level.l3 { background: #ca8a04; }
.ladder-level.l2 { background: #d97706; }
.ladder-level.l1 { background: #dc2626; }
.ladder-desc {
  padding: 12px 16px; flex: 1; border: 1px solid var(--border); border-left: none;
}
.ladder-desc strong { font-size: 14px; color: var(--dark); }
.ladder-desc span { font-size: 13px; color: var(--mid); margin-left: 8px; }

/* METHOD COLS */
.method-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; }
.method-col h4 { font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.method-col p { font-size: 14px; color: var(--mid); line-height: 1.7; }
.purity-scale { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.purity-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--mid); }
.purity-stars { font-size: 14px; color: var(--green); min-width: 70px; letter-spacing: 1px; }

/* ---- REVIEW PREVIEW ---- */
.review-preview {
  background: var(--bg-card); border: 2px solid var(--red);
  border-radius: 12px; padding: 40px;
}
.review-header {
  display: flex; justify-content: space-between;
  align-items: flex-start; margin-bottom: 8px;
}
.review-preview h3 {
  font-family: var(--serif); font-size: 28px; color: var(--dark);
  margin-bottom: 4px; font-weight: 400;
}
.rev-sub { font-size: 15px; color: var(--mid); margin-bottom: 28px; }
.tier-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 4px;
  flex-shrink: 0;
}
.tier-free { background: var(--green-bg); color: var(--green); }
.tier-premium { background: var(--red-light); color: var(--red); }

.stack-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.stack-table th {
  text-align: left; font-size: 11px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--light); padding: 8px 12px;
  border-bottom: 2px solid var(--border);
}
.stack-table td {
  padding: 12px; border-bottom: 1px solid var(--border);
  font-size: 14px; color: var(--mid); vertical-align: top;
}
.stack-table td:first-child { font-weight: 700; color: var(--dark); }
.stack-table td.small { font-size: 13px; }
.stack-table td.price { font-weight: 700; color: var(--dark); }

.stack-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; border-top: 2px solid var(--dark);
}
.stack-total-label { font-size: 14px; font-weight: 600; color: var(--dark); }
.stack-total-price { font-size: 24px; font-weight: 700; color: var(--red); }
.stack-total-note { font-size: 13px; color: var(--mid); }
.review-compare { font-size: 13px; color: var(--mid); margin-top: 16px; line-height: 1.7; }

/* ---- HOW GRID ---- */
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.how-step { text-align: center; }
.how-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--red);
  color: #fff; font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.how-step h4 { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.how-step p { font-size: 13px; color: var(--mid); line-height: 1.6; }

/* ---- TEAM ---- */
.team-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 48px; }
.team-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 32px;
}
.section-alt .team-card { background: var(--bg); }
.team-role {
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--red); margin-bottom: 8px;
}
.team-name { font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.team-desc { font-size: 14px; color: var(--mid); line-height: 1.7; }

/* DISCLAIMER */
.disclaimer {
  background: var(--slate-bg); border-radius: 10px; padding: 28px;
}
.disclaimer h4 { font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.disclaimer p { font-size: 13px; color: var(--mid); line-height: 1.7; }

/* ---- FOOTER ---- */
footer { border-top: 1px solid var(--border); padding: 48px 24px 32px; }
.footer-grid {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 32px; margin-bottom: 24px; border-bottom: 1px solid var(--border);
}
.footer-brand { font-size: 20px; }
.footer-brand .cl { color: var(--red); font-weight: 700; }
.footer-tagline { font-size: 14px; color: var(--light); margin-top: 4px; }
.footer-links { display: flex; gap: 64px; }
.footer-links h5 {
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--light); margin-bottom: 12px;
}
.footer-links a {
  display: block; font-size: 14px; color: var(--mid);
  margin-bottom: 6px; text-decoration: none;
}
.footer-links a:hover { color: var(--red); }
.footer-bottom p { font-size: 13px; color: var(--light); text-align: center; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero h1 { font-size: 36px; }
  .section-title { font-size: 28px; }
  .dimensions { grid-template-columns: 1fr; }
  .conditions-grid { grid-template-columns: 1fr 1fr; }
  .compounds-grid { grid-template-columns: 1fr 1fr; }
  .how-grid { grid-template-columns: 1fr 1fr; }
  .method-cols { grid-template-columns: 1fr; }
  .team-row { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; gap: 32px; }
  .footer-links { gap: 40px; }
  .review-header { flex-direction: column; gap: 12px; }
  .stack-table { font-size: 12px; }
  .stack-table th, .stack-table td { padding: 8px 6px; }
}

@media (max-width: 640px) {
  .hero { padding: 120px 20px 60px; }
  .section { padding: 60px 20px; }
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 16px; }
  .hero-method { font-size: 12px; flex-wrap: wrap; }
  .conditions-grid { grid-template-columns: 1fr; }
  .compounds-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .review-preview { padding: 24px; }
  .footer-links { flex-direction: column; gap: 24px; }

  /* Mobile nav */
  .nav-toggle { display: block; }
  .nav-links {
    display: none; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: var(--bg);
    border-bottom: 1px solid var(--border); padding: 16px 24px;
    gap: 16px;
  }
  nav.open .nav-links { display: flex; }

  /* Hide table columns on mobile */
  .stack-table td:nth-child(3),
  .stack-table th:nth-child(3) { display: none; }
}
