/* ═══════════════════════════════════════════════════════════════
   CLINEVIDENT — clinevident.com
   Clinical Evidence for Healthspan
   Purple + Aqua variant of the Scientari design system.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* ── BRAND: purple primary (from Scientari tokens) ── */
  --purple:        #6d5c99;
  --purple-deep:   #4a3d6b;
  --purple-dark:   #2d2545;
  --purple-light:  #8a7db3;

  /* ── ACCENT: aqua replaces amber as THE highlight ── */
  --aqua:          #2eb8a6;
  --aqua-light:    #3dd6c0;
  --aqua-dark:     #259485;

  /* legacy alias names kept so existing markup resolves */
  --amber:         var(--aqua);
  --amber-light:   var(--aqua-light);
  --amber-dark:    var(--aqua-dark);
  --teal:          var(--purple);
  --teal-light:    var(--purple-light);
  --teal-deep:     var(--purple-deep);
  --gold:          var(--aqua);
  --gold-light:    var(--aqua-light);
  --navy:          #1e1a28;
  --navy-light:    #2d2545;

  /* ── NEUTRALS (warm, slight purple tint) ── */
  --white:         #ffffff;
  --off-white:     #faf9fc;
  --gray-50:       #f7f6f9;
  --gray-100:      #efedf3;
  --gray-200:      #d8d4e0;
  --gray-400:      #9b95a8;
  --gray-600:      #6b6578;
  --gray-800:      #3a3545;
  --gray-900:      #1e1a28;

  /* page-level aliases used in old markup */
  --body-text:     #3a3545;
  --body-light:    #6b6578;
  --bg-primary:    #f7f6f9;
  --bg-white:      #ffffff;
  --bg-dark:       #1e1a28;
  --border:        #efedf3;
  --border-light:  #f7f6f9;

  /* ── EVIDENCE GRADES ── */
  --grade-a:       #259485;
  --grade-b:       #2eb8a6;
  --grade-c:       #6d5c99;
  --grade-d:       #b08968;
  --grade-e:       #c0392b;

  /* ── SEMANTIC ── */
  --green:         #27AE60;
  --red:           #C0392B;
  --risk-low:      #27AE60;
  --risk-moderate: #F39C12;
  --risk-high:     #E74C3C;
  --risk-critical: #8E44AD;

  /* ── TYPE: Scientari three-font system ── */
  --font-display:      'Titillium Web', 'Helvetica Neue', sans-serif;
  --font-italic-serif: 'Crimson Pro', Georgia, serif;
  --font-body:         'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:         'DM Sans', monospace;

  --max-width:     1140px;
  --content-width: 820px;
  --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Titillium needs explicit weight to read as a headline ── */
.stat-number, .hero-title, .page-header h1, .section-header h2,
.compound-title, .grade-letter, .dim-number, .pricing-price,
.auth-card h1, .card-title, .layer-num {
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--body-text);
  background: var(--bg-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--purple); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--aqua-dark); }
img { max-width: 100%; display: block; }

/* ── THE ITALIC-AQUA MOMENT ── */
.hero-title em, .section-header h2 em, .page-header h1 em, h1 em, h2 em {
  font-family: var(--font-italic-serif);
  font-style: italic; font-weight: 600; font-size: 1.1em; color: var(--aqua);
}

/* ═══ NAVIGATION ═══ */
.main-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100); transition: box-shadow var(--transition);
}
.main-nav.scrolled { box-shadow: 0 2px 20px rgba(45,37,69,0.08); }
.nav-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; height: 84px; gap: 1.5rem; }
.nav-logo { display: flex; align-items: center; gap: 0.6rem; color: var(--purple-deep); font-weight: 700; font-size: 1.15rem; font-family: var(--font-display); flex-shrink: 0; }
.nav-logo-img { height: 45px; width: auto; max-width: 220px; display: block; object-fit: contain; }
.logo-mark { width: 38px; height: 38px; border-radius: 9px; background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; letter-spacing: -0.02em; }
.logo-text { color: var(--purple-deep); }
.nav-links { display: flex; align-items: center; gap: 1.4rem; margin-left: auto; }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: var(--gray-600); letter-spacing: 0.02em; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--purple); }
.nav-auth { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.nav-link-auth { font-size: 0.875rem; font-weight: 500; color: var(--gray-600); white-space: nowrap; }
.nav-link-auth:hover { color: var(--purple); }
.nav-user { font-size: 0.875rem; font-weight: 600; color: var(--purple-deep); }
.nav-mobile-toggle { display: none; background: none; border: none; font-size: 1.4rem; color: var(--purple-deep); cursor: pointer; }

/* ═══ BUTTONS ═══ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.875rem 2rem; border-radius: 6px; cursor: pointer; font-family: var(--font-body); font-weight: 700; font-size: 0.875rem; letter-spacing: 0.03em; text-transform: uppercase; border: none; transition: all var(--transition); }
.btn-primary, .btn-accent { background: var(--aqua); color: var(--gray-900); }
.btn-primary:hover, .btn-accent:hover { background: var(--aqua-light); color: var(--gray-900); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(46,184,166,0.32); }
.btn-outline { background: transparent; border: 1px solid var(--gray-200); color: var(--purple-deep); }
.btn-outline:hover { border-color: var(--purple); color: var(--purple); background: var(--off-white); }
/* Outline buttons on dark backgrounds (hero, CTA) need light text + light border */
.hero .btn-outline, .section-cta .btn-outline {
    border-color: rgba(255,255,255,0.45); color: #fff; background: transparent;
}
.hero .btn-outline:hover, .section-cta .btn-outline:hover {
    border-color: #fff; color: #fff; background: rgba(255,255,255,0.10);
}
.btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,0.28); color: rgba(255,255,255,0.9); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.55); color: #fff; background: rgba(255,255,255,0.06); }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.78rem; white-space: nowrap; }
.btn-full { width: 100%; }

/* ═══ LAYOUT ═══ */
.site-main { min-height: 60vh; }
.container, .section-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
section { padding: 5rem 0; }
.content-section { max-width: var(--content-width); margin: 0 auto; padding: 3rem 2rem; }
.section-dark, .section-light { background: var(--gray-50); }

/* ═══ HERO ═══ */
.hero { padding: 7rem 0 5rem; background: linear-gradient(170deg, var(--gray-900) 0%, var(--purple-dark) 45%, var(--purple-deep) 100%); position: relative; overflow: hidden; color: #fff; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 20%, rgba(109,92,153,0.32) 0%, transparent 60%), radial-gradient(ellipse at 20% 80%, rgba(46,184,166,0.10) 0%, transparent 50%); }
.hero-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 0 2rem; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.375rem 1rem; margin-bottom: 1.5rem; background: rgba(46,184,166,0.15); border: 1px solid rgba(46,184,166,0.35); border-radius: 100px; color: var(--aqua-light); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-eyebrow::before { content:''; width:6px; height:6px; background: var(--aqua); border-radius: 50%; }
.hero-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); color: #fff; line-height: 1.12; margin-bottom: 1.25rem; }
.hero-subtitle { font-size: 1.15rem; color: rgba(255,255,255,0.78); line-height: 1.7; max-width: 620px; margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid rgba(255,255,255,0.12); }
.hero-stats .stat-number { color: var(--aqua-light); }
.hero-stats .stat-label { color: rgba(255,255,255,0.6); }

/* ═══ STATS ═══ */
.stat, .stat-item { text-align: center; }
.stat-number { font-family: var(--font-display); font-size: 2.5rem; color: var(--purple); line-height: 1; margin-bottom: 0.25rem; }
.stat-label { font-size: 0.8125rem; color: var(--gray-600); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.stat-row { display: flex; gap: 2rem; }

/* ═══ PAGE / SECTION HEADERS ═══ */
.page-header { background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple-deep) 100%); color: #fff; padding: 7rem 2rem 3rem; text-align: center; }
.page-header > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.page-header h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.2vw, 2.5rem); color: #fff; line-height: 1.18; margin-bottom: 1rem; }
.page-header h1 em { color: var(--aqua-light); }
.page-header p, .page-header .page-intro { font-size: 1.0625rem; color: rgba(255,255,255,0.82); line-height: 1.7; }
.page-header a { color: var(--aqua-light); }
.page-header a:hover { color: #fff; }
.page-intro { font-size: 1.0625rem; color: var(--gray-600); line-height: 1.7; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.section-header h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 2.5vw, 1.9rem); color: var(--navy); line-height: 1.2; margin-bottom: 1rem; }
.section-header p, .section-intro { font-size: 1.0625rem; color: var(--gray-600); line-height: 1.7; }
.section-label { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--aqua-dark); margin-bottom: 0.75rem; }

/* ═══ COMPOUND GRID / CARDS ═══ */
.compound-grid, .compound-hero-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.compound-card, .card { background: var(--white); border: 1px solid var(--gray-100); border-radius: 10px; padding: 1.75rem; transition: all var(--transition); display: flex; flex-direction: column; }
.compound-card:hover, .card:hover { border-color: var(--purple-light); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(74,61,107,0.12); }
.card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 0.75rem; }
.card-title, .compound-title { font-family: var(--font-display); font-size: 1.25rem; color: var(--navy); line-height: 1.25; }
.card-meta, .card-summary { font-size: 0.9375rem; color: var(--gray-600); line-height: 1.6; }
.card-summary { flex-grow: 1; margin: 0.75rem 0 1rem; }
.card-stats { display: flex; gap: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--gray-100); font-size: 0.8125rem; color: var(--gray-600); }

/* ═══ GRADE BADGES ═══ */
.grade-badge, .grade-display, .compound-hero-grade { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; height: 56px; padding: 0 0.75rem; border-radius: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: #fff; }
.grade-badge-sm { min-width: 40px; height: 40px; font-size: 1.1rem; border-radius: 8px; }
.grade-letter { font-family: var(--font-display); }
.grade-composite { font-size: 0.75rem; opacity: 0.85; }
.grade-a, [data-grade^="A"] { background: var(--grade-a); }
.grade-b, [data-grade^="B"] { background: var(--grade-b); }
.grade-c, [data-grade^="C"] { background: var(--grade-c); }
.grade-d, [data-grade^="D"] { background: var(--grade-d); }
.grade-e, [data-grade^="E"] { background: var(--grade-e); }

/* ═══ TAGS / FILTER BAR ═══ */
.tag, .tag-class, .tag-organ { display: inline-block; padding: 0.25rem 0.7rem; border-radius: 100px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.03em; background: var(--gray-100); color: var(--gray-600); }
.tag-organ { background: rgba(46,184,166,0.12); color: var(--aqua-dark); }
.tag-class { background: rgba(109,92,153,0.12); color: #fff; }
.tag-vertical { background: var(--aqua-dark); color: #fff; font-weight: 700; }
.filter-bar, .section-filters { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; padding: 1.25rem; background: var(--white); border: 1px solid var(--gray-100); border-radius: 10px; margin-bottom: 2rem; }
.filter-select { padding: 0.6rem 0.9rem; border: 1px solid var(--gray-200); border-radius: 6px; font-family: var(--font-body); font-size: 0.9rem; color: var(--gray-800); background: var(--white); }
.filter-clear { font-size: 0.85rem; color: var(--purple); font-weight: 600; cursor: pointer; }

/* ═══ COMPOUND DETAIL ═══ */
.compound-hero { background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple-deep) 100%); color: #fff; padding: 7rem 0 3rem; }
/* Redesigned hero: text | structure | grade */
.compound-hero .compound-hero-grid { display: grid; grid-template-columns: 1fr auto auto; gap: 2.5rem; align-items: center; max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.compound-hero-main { display: block; max-width: none; margin: 0; padding: 0; }
.compound-hero .compound-title { color: #fff; font-size: 2.25rem; margin: 0.75rem 0 0; }
.compound-meta-row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 0; }
.compound-chem-identity { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1.25rem; font-size: 0.9rem; color: rgba(255,255,255,0.85); }
.chem-label { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--aqua-light); margin-right: 0.35rem; }
.chem-formula { font-family: var(--font-display); font-weight: 600; }
.chem-link { color: var(--aqua-light); }
.chem-link:hover { color: #fff; }
.compound-iupac { margin-top: 0.6rem; font-size: 0.82rem; color: rgba(255,255,255,0.6); line-height: 1.5; max-width: 520px; }
/* Pronunciation guide + speaker button */
.compound-pronunciation { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.75rem; }
.pronounce-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.28); background: rgba(255,255,255,0.1); color: #fff; cursor: pointer; flex-shrink: 0; transition: all var(--transition); }
.pronounce-btn:hover { background: var(--aqua); color: var(--purple-deep); border-color: var(--aqua); }
.pronounce-btn.speaking { background: var(--aqua); color: var(--purple-deep); border-color: var(--aqua); animation: ce-pulse 1s ease-in-out infinite; }
@keyframes ce-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(46,184,166,0.5); } 50% { box-shadow: 0 0 0 6px rgba(46,184,166,0); } }
.pronounce-text { font-size: 0.95rem; font-style: italic; color: rgba(255,255,255,0.82); letter-spacing: 0.02em; }
.pronounce-source { font-size: 0.6rem; letter-spacing: 0.1em; font-weight: 700; color: var(--aqua-light); border: 1px solid rgba(46,184,166,0.4); border-radius: 4px; padding: 0.1rem 0.35rem; }
.compound-smiles { margin-top: 1.1rem; display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.compound-smiles code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.8rem; color: #fff; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18); border-radius: 6px; padding: 0.4rem 0.65rem; word-break: break-all; max-width: 460px; }
.smiles-copy { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--purple-deep); background: var(--aqua-light); border: none; border-radius: 5px; padding: 0.35rem 0.7rem; cursor: pointer; }
.smiles-copy:hover { background: #fff; }
.compound-hero-structure { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; flex-shrink: 0; }
.structure-canvas { background: #fff; border-radius: 12px; box-shadow: 0 8px 28px rgba(0,0,0,0.22); width: 300px; height: 220px; max-width: 300px; flex-shrink: 0; display: block; }
.structure-caption { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.compound-hero .compound-hero-grade { width: 92px; height: 92px; min-width: 92px; flex-direction: column; gap: 0.1rem; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); border-radius: 14px; }
.compound-hero .grade-letter { font-size: 2.2rem; line-height: 1; }
.compound-hero .grade-composite { font-size: 0.72rem; font-weight: 600; color: rgba(255,255,255,0.8); }
.compound-layout { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; max-width: var(--max-width); margin: 0 auto; padding: 3rem 2rem; }
.compound-body { min-width: 0; }
.compound-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.sidebar-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: 10px; padding: 1.5rem; }
.sidebar-card h4 { font-family: var(--font-display); font-size: 1rem; color: var(--navy); margin-bottom: 0.75rem; }
.sidebar-meta { font-size: 0.875rem; color: var(--gray-600); line-height: 1.7; }

/* ═══ DIMENSION SCORE BARS ═══ */
.dimension-panel, .dim-grid { display: flex; flex-direction: column; gap: 1rem; margin: 1.5rem 0; }
.dim-card, .dim-row { background: var(--white); border: 1px solid var(--gray-100); border-radius: 8px; padding: 1rem 1.25rem; }
.dim-label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.5rem; }
.dim-label .dim-number, .dim-score { font-family: var(--font-display); font-weight: 700; color: var(--purple); }
.dim-weight, .dim-pct { font-size: 0.8rem; color: var(--gray-400); }
.dim-bar-wrap { height: 8px; background: var(--gray-100); border-radius: 100px; overflow: hidden; }
.dim-bar { height: 100%; background: linear-gradient(90deg, var(--purple) 0%, var(--aqua) 100%); border-radius: 100px; transition: width var(--transition); }

/* ═══ EVIDENCE / DATA TABLES ═══ */
.table-responsive { overflow-x: auto; border-radius: 10px; }
.evidence-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.evidence-table th { background: var(--purple-deep); color: #fff; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.9rem 1.1rem; text-align: left; }
.evidence-table td { padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--gray-100); font-size: 0.9rem; color: var(--gray-600); }
.evidence-table td strong { color: var(--navy); }
.evidence-table tbody tr:nth-child(even) { background: var(--gray-50); }
.evidence-table tbody tr:last-child td { border-bottom: none; }

/* ═══ DOSE SIGNALS ═══ */
.dose-signals { display: flex; flex-direction: column; gap: 1rem; }
.dose-card { background: var(--white); border: 1px solid var(--gray-100); border-left: 3px solid var(--aqua); border-radius: 0 8px 8px 0; padding: 1.1rem 1.25rem; }
.dose-indication { font-weight: 600; color: var(--navy); margin-bottom: 0.25rem; }
.dose-range { font-family: var(--font-display); font-weight: 600; color: var(--purple); }
.dose-notes { font-size: 0.85rem; color: var(--gray-600); margin-top: 0.4rem; }

/* ═══ REGULATORY PANEL ═══ */
.regulatory-panel { background: var(--white); border: 1px solid var(--gray-100); border-radius: 10px; padding: 1.5rem; }
.reg-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.reg-row { display: flex; justify-content: space-between; padding: 0.6rem 0; border-bottom: 1px solid var(--gray-100); font-size: 0.9rem; }
.reg-label { color: var(--gray-600); }
.reg-value { font-weight: 600; color: var(--navy); }
.reg-rationale { font-size: 0.85rem; color: var(--gray-600); margin-top: 0.75rem; line-height: 1.6; }
.reg-alert { padding: 0.875rem 1rem; border-radius: 6px; font-size: 0.85rem; margin-top: 0.75rem; }
.risk-badge { display: inline-block; padding: 0.25rem 0.7rem; border-radius: 100px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.reg-verifications, .verify-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.verify-badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.7rem; border-radius: 6px; font-size: 0.75rem; font-weight: 600; }
.verify-yes { background: rgba(39,174,96,0.12); color: var(--green); }
.verify-no { background: rgba(192,57,43,0.10); color: var(--red); }

/* ═══ INTERACTION CHECKER ═══ */
.checker-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: 12px; padding: 2rem; max-width: 720px; margin: 0 auto; }
.checker-form { display: flex; gap: 1rem; align-items: end; flex-wrap: wrap; }
.checker-form .form-group { flex: 1; min-width: 200px; }
.checker-plus { font-size: 1.5rem; color: var(--purple); font-weight: 700; padding-bottom: 0.5rem; }
.checker-results { margin-top: 2rem; }
.checker-limit { text-align: center; font-size: 0.8rem; color: var(--gray-400); margin-top: 1rem; }
.checker-no-result { background: var(--gray-50); border-radius: 10px; padding: 2rem; text-align: center; }
.interaction-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: 10px; padding: 1.5rem; margin-bottom: 1rem; }
.int-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.int-compounds { font-family: var(--font-display); font-weight: 600; color: var(--navy); }
.int-type { padding: 0.25rem 0.7rem; border-radius: 100px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; }
.int-mechanism { font-size: 0.9rem; color: var(--gray-600); line-height: 1.6; }
.int-source { font-size: 0.8rem; color: var(--gray-400); font-style: italic; margin-top: 0.5rem; }

/* ═══ PRODUCTS (reference layer — visibly subordinate to the grade) ═══ */
.product-list { margin-top: 1rem; }
.product-grade-note { font-size: 0.875rem; color: var(--gray-600); line-height: 1.6; background: var(--gray-50); border: 1px dashed var(--gray-200); border-radius: 8px; padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.product-grade-note strong { color: var(--navy); }
.product-evidence-dose { display: block; margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px solid var(--gray-200); color: var(--purple-deep); }
.product-cards { display: flex; flex-direction: column; gap: 0.75rem; }
.product-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: 8px; padding: 1rem 1.25rem; }
.product-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.product-name { font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.product-brand { font-weight: 400; color: var(--gray-400); font-size: 0.85rem; }
.product-dose { font-family: var(--font-display); font-weight: 700; color: var(--purple); font-size: 1.05rem; white-space: nowrap; }
.product-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.4rem; font-size: 0.8rem; color: var(--gray-600); }
.product-meta .product-form { font-style: italic; }
.product-flags { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.6rem; }
.product-flag { font-size: 0.78rem; padding: 0.3rem 0.6rem; border-radius: 6px; line-height: 1.4; }
.product-flag-warn { background: rgba(192,57,43,0.08); color: var(--red); }
.product-flag-other { background: rgba(176,137,104,0.15); color: #7a5638; }
.product-stamp { margin-top: 1rem; font-size: 0.78rem; color: var(--gray-400); font-style: italic; }

/* ═══ CLINIC DIRECTORY (listing, not rating) ═══ */
.clinic-list { display: flex; flex-direction: column; gap: 1rem; }
.clinic-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: 10px; padding: 1.25rem 1.5rem; }
.clinic-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.clinic-name { font-family: var(--font-display); font-size: 1.1rem; color: var(--navy); margin: 0 0 0.25rem; }
.clinic-location { font-size: 0.85rem; color: var(--gray-600); }
.clinic-services { font-size: 0.9rem; color: var(--gray-800); margin: 0.75rem 0 0.4rem; }
.clinic-tests { font-size: 0.85rem; color: var(--gray-800); margin: 0.2rem 0; }
.clinic-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 0.85rem; padding-top: 0.85rem; border-top: 1px solid var(--gray-100); }
.clinic-link { font-size: 0.88rem; font-weight: 600; color: var(--aqua-dark); }
.clinic-verified { font-size: 0.75rem; color: var(--gray-400); font-style: italic; }

/* ═══ GATED CONTENT ═══ */
.gated, .gated-block { position: relative; background: var(--gray-50); border: 1px dashed var(--gray-200); border-radius: 10px; padding: 2.5rem 2rem; text-align: center; }
.gated-icon { font-size: 1.75rem; color: var(--purple); margin-bottom: 0.75rem; }
.gated-message { color: var(--gray-600); font-size: 0.95rem; margin-bottom: 1.25rem; }

/* ═══ FORMS ═══ */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--gray-800); margin-bottom: 0.4rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.75rem 0.9rem; border: 1px solid var(--gray-200); border-radius: 6px; font-family: var(--font-body); font-size: 0.95rem; color: var(--gray-800); transition: border-color var(--transition); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(109,92,153,0.12); }

/* ═══ AUTH PAGES ═══ */
.auth-page { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 7rem 2rem 4rem; background: var(--gray-50); }
.auth-container { width: 100%; max-width: 440px; }
.auth-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: 14px; padding: 2.5rem; box-shadow: 0 4px 24px rgba(45,37,69,0.06); }
.auth-card h1 { font-family: var(--font-display); font-size: 1.6rem; color: var(--navy); margin-bottom: 0.5rem; }
.auth-subtitle { color: var(--gray-600); font-size: 0.95rem; margin-bottom: 1.75rem; }
.auth-error { background: rgba(192,57,43,0.08); color: var(--red); padding: 0.8rem 1rem; border-radius: 6px; font-size: 0.875rem; margin-bottom: 1.25rem; }
.auth-success { text-align: center; }
.auth-success h1 { color: var(--aqua-dark); }
.auth-links, .auth-switch { text-align: center; margin-top: 1.5rem; font-size: 0.875rem; color: var(--gray-600); }
.auth-form .btn { margin-top: 0.5rem; }

/* ═══ PRICING ═══ */
.pricing-section { padding: 7rem 0 5rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; max-width: var(--max-width); margin: 0 auto; align-items: stretch; }
.pricing-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: 14px; padding: 2rem; display: flex; flex-direction: column; }
.pricing-featured { border-color: var(--aqua); box-shadow: 0 8px 28px rgba(46,184,166,0.15); position: relative; }
.pricing-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--aqua); color: var(--gray-900); padding: 0.3rem 1rem; border-radius: 100px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.pricing-header h3 { font-family: var(--font-display); font-size: 1.25rem; color: var(--navy); margin-bottom: 0.5rem; }
.pricing-price { font-family: var(--font-display); font-size: 2.5rem; color: var(--purple); line-height: 1; }
.pricing-period { font-size: 0.85rem; color: var(--gray-400); }
.pricing-features { list-style: none; margin: 1.5rem 0; flex-grow: 1; }
.pricing-features li { padding: 0.5rem 0; padding-left: 1.5rem; position: relative; font-size: 0.9rem; color: var(--gray-600); }
.pricing-features li::before { content: '✓'; position: absolute; left: 0; color: var(--aqua); font-weight: 700; }
.pricing-card.current-plan { opacity: 0.7; }
.pricing-faq { max-width: 760px; margin: 4rem auto 0; }
.faq-item { padding: 1.5rem 0; border-bottom: 1px solid var(--gray-100); }
.faq-item h4 { font-family: var(--font-display); font-size: 1.05rem; color: var(--navy); margin-bottom: 0.5rem; }
.faq-item p { font-size: 0.9rem; color: var(--gray-600); line-height: 1.65; }

/* ═══ DASHBOARD ═══ */
.dashboard-section { padding: 7rem 0 5rem; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.dash-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: 10px; padding: 1.5rem; }
.dash-card h3 { font-family: var(--font-display); font-size: 1.1rem; color: var(--navy); margin-bottom: 1rem; }
.dash-alert { padding: 1rem 1.25rem; border-radius: 8px; margin-bottom: 1.5rem; font-size: 0.9rem; }
.dash-alert-success { background: rgba(39,174,96,0.1); color: var(--green); }
.dash-links { display: flex; flex-direction: column; gap: 0.5rem; }
.dash-link { padding: 0.6rem 0; color: var(--purple); font-weight: 500; font-size: 0.9rem; border-bottom: 1px solid var(--gray-100); }
.activity-item { display: flex; justify-content: space-between; padding: 0.6rem 0; border-bottom: 1px solid var(--gray-100); font-size: 0.875rem; }
.activity-time { color: var(--gray-400); font-size: 0.8rem; }

/* ═══ METHODOLOGY / LAYERS / PROSE ═══ */
.methodology-section { padding: 2rem 0 4rem; }
.prose { max-width: var(--content-width); margin: 0 auto; }
.prose h2 { font-family: var(--font-display); color: var(--navy); font-size: 1.5rem; margin: 2.5rem 0 1rem; }
.prose h3 { font-family: var(--font-display); color: var(--purple); font-size: 1.15rem; margin: 1.75rem 0 0.5rem; }
.prose p { margin-bottom: 1.25rem; color: var(--gray-600); }
.prose ul { margin: 0 0 1.25rem 1.25rem; color: var(--gray-600); }
.prose li { margin-bottom: 0.4rem; }
.layer-num { width: 48px; height: 48px; border-radius: 50%; background: var(--purple); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.15rem; box-shadow: 0 4px 12px rgba(109,92,153,0.25); }

/* ═══ CTA / SAFETY / DISCLAIMER ═══ */
.section-cta, .section-cta-final { background: linear-gradient(170deg, var(--purple-dark) 0%, var(--purple-deep) 60%, var(--gray-900) 100%); color: #fff; text-align: center; padding: 5rem 2rem; }
.section-cta h2, .section-cta-final h2 { font-family: var(--font-display); font-size: clamp(1.7rem,3vw,2.35rem); color: #fff; margin-bottom: 1rem; }
.section-cta p { color: rgba(255,255,255,0.78); max-width: 600px; margin: 0 auto 2rem; }
.safety-box, .safety-section { background: rgba(46,184,166,0.06); border: 1px solid rgba(46,184,166,0.22); border-radius: 10px; padding: 1.5rem; margin: 1.5rem 0; }
.safety-box h4 { color: var(--aqua-dark); font-family: var(--font-display); margin-bottom: 0.5rem; }
.mandatory-flag { display: inline-block; background: var(--aqua); color: var(--gray-900); padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.disclaimer, .disclaimer-section { font-size: 0.8rem; color: var(--gray-400); line-height: 1.6; max-width: var(--content-width); margin: 2rem auto 0; padding: 1.5rem; background: var(--gray-50); border-radius: 8px; }
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--gray-400); }
.muted { color: var(--gray-400); }
.optional { color: var(--gray-400); font-weight: 400; }

/* ═══ FOOTER ═══ */
.site-footer { background: var(--gray-900); color: rgba(255,255,255,0.7); padding: 3.5rem 0 2rem; margin-top: 4rem; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand .footer-scientari-logo { height: 48px; width: auto; max-width: 240px; display: block; margin-bottom: 1rem; object-fit: contain; }
.footer-product-name { font-size: 0.9rem; font-weight: 600; color: rgba(255,255,255,0.78); letter-spacing: 0.04em; margin-bottom: 0.75rem; font-family: var(--font-display); }
.footer-brand p { font-size: 0.83rem; color: rgba(255,255,255,0.48); max-width: 340px; line-height: 1.65; }
.footer-tagline { font-size: 0.9rem; color: rgba(255,255,255,0.55); line-height: 1.6; margin-top: 0.5rem; max-width: 280px; }
.footer-col h5, .footer-links h5 { font-family: var(--font-display); font-size: 0.8rem; color: #fff; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; }
.footer-col a, .footer-links a { display: block; font-size: 0.875rem; color: rgba(255,255,255,0.6); padding: 0.3rem 0; }
.footer-col a:hover, .footer-links a:hover { color: var(--aqua-light); }
.footer-bottom { max-width: var(--max-width); margin: 2.5rem auto 0; padding: 1.5rem 2rem 0; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.78rem; color: rgba(255,255,255,0.4); line-height: 1.6; text-align: center; }
.footer-bottom-disclaimer { max-width: 720px; margin: 0 auto 0.75rem; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
  .compound-hero .compound-hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .compound-hero-structure { order: 3; align-items: flex-start; }
  .compound-hero .compound-hero-grade { order: 2; }
  .structure-canvas { width: 100%; max-width: 300px; height: 220px; }
  .compound-layout { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 84px; left: 0; right: 0; flex-direction: column; background: #fff; padding: 1rem 2rem; border-bottom: 1px solid var(--gray-100); gap: 1rem; }
  .nav-links.open { display: flex; }
  .nav-mobile-toggle { display: block; margin-left: auto; }
  .nav-auth { margin-left: 0; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .stat-row { flex-direction: column; gap: 1rem; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .compound-hero-main { flex-direction: column; text-align: center; }
}
