/* Executive Ink palette */
:root {
  --bg: #F5F3F0;
  --surface: #FFFFFF;
  --primary: #2C2C34;
  --secondary: #3D4560;
  --accent: #5C6B8A;
  --text: #1A1A22;
  --muted: #7A7B85;
  --line: #D6D4D0;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.7; }
.container { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }

/* Hero */
.hero { position: relative; min-height: 400px; display: flex; align-items: center; padding: 5rem 0 4rem; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(44,44,52,0.85) 0%, rgba(61,69,96,0.78) 100%); }
.hero-content { position: relative; z-index: 1; color: #fff; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }
.badge { display: inline-block; padding: 0.2rem 0.7rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; background: rgba(255,255,255,0.18); color: #fff; border: 1px solid rgba(255,255,255,0.35); }
.badge-result { background: rgba(92,107,138,0.7); border-color: rgba(92,107,138,0.9); }
h1 { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; line-height: 1.25; margin-bottom: 0.75rem; color: #fff; }
.hero-journal { font-size: 0.88rem; color: rgba(255,255,255,0.65); margin-bottom: 0.7rem; }
.hero-hook { font-size: 1.05rem; color: rgba(255,255,255,0.88); max-width: 660px; margin-bottom: 1.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn { display: inline-block; padding: 0.55rem 1.3rem; border-radius: 6px; font-weight: 600; font-size: 0.92rem; text-decoration: none; background: rgba(255,255,255,0.15); color: #fff; border: 1.5px solid rgba(255,255,255,0.5); transition: background 0.2s; }
.btn:hover { background: rgba(255,255,255,0.28); }

/* Sections */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--surface); }
h2 { font-family: 'Playfair Display', serif; font-size: 1.7rem; font-weight: 700; color: var(--primary); margin-bottom: 1.25rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--line); }
h3 { font-family: 'Inter', sans-serif; font-size: 1.1rem; font-weight: 600; color: var(--secondary); margin-bottom: 0.6rem; margin-top: 1.5rem; }
p { margin-bottom: 1rem; }

/* Metrics row */
.metrics-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.metric-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.25rem; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.07); }
.metric-card.metric-highlight { border-color: var(--accent); border-width: 2px; }
.metric-number { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 700; color: var(--primary); display: block; }
.metric-label { font-size: 0.82rem; color: var(--muted); margin-top: 0.3rem; line-height: 1.3; }

/* Summary box */
.summary-box { padding: 1.25rem 1.5rem; background: #EEEDF0; border-radius: 8px; border: 1px solid var(--line); margin-top: 0.5rem; }

/* Two-col layout */
.two-col-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 680px) { .two-col-layout { grid-template-columns: 1fr; } }
.drug-info-box { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.drug-info-box h3 { margin-top: 0; color: var(--primary); }
.drug-info-box ul { margin: 0.75rem 0 0 1.25rem; }
.drug-info-box ul li { margin-bottom: 0.4rem; font-size: 0.93rem; }

/* Design grid */
.design-grid { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.5rem; margin-bottom: 1.5rem; align-items: baseline; }
.design-label { font-weight: 600; color: var(--muted); font-size: 0.88rem; white-space: nowrap; }
.design-value { font-size: 0.93rem; }

/* Tables */
.table-scroll { overflow-x: auto; margin: 1rem 0; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.data-table th { background: var(--primary); color: #fff; padding: 0.6rem 0.8rem; text-align: left; font-weight: 600; }
.data-table td { padding: 0.55rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: var(--bg); }

/* Figures */
.paper-figure { margin: 1.5rem 0; text-align: center; }
.paper-figure img { max-width: 100%; border-radius: 8px; border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
figcaption { margin-top: 0.7rem; font-size: 0.87rem; color: var(--muted); text-align: left; max-width: 680px; margin-left: auto; margin-right: auto; line-height: 1.5; }

/* Safety card */
.safety-card { background: #F0F4F0; border: 1px solid #C8D8C8; border-radius: 8px; padding: 1.1rem 1.4rem; margin: 1rem 0; }
.safety-card p { margin: 0; }

/* Limitations & Conclusions boxes */
.limitations-box { background: #FFF8F0; border: 1px solid #E8D8C8; border-radius: 8px; padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.limitations-box h3 { margin-top: 0; color: #7A4510; }
.limitations-box ul { margin-left: 1.2rem; }
.limitations-box ul li { margin-bottom: 0.4rem; font-size: 0.92rem; }
.conclusions-box { background: #EEEDF0; border: 1px solid var(--line); border-radius: 8px; padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.conclusions-box h3 { margin-top: 0; color: var(--primary); }
.conclusions-box ul { margin-left: 1.2rem; margin-top: 0.5rem; }
.conclusions-box ul li { margin-bottom: 0.4rem; font-size: 0.93rem; }

/* Accordion */
.accordion { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.accordion summary { padding: 0.9rem 1.25rem; font-weight: 600; cursor: pointer; background: var(--bg); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.accordion summary::after { content: '▸'; transition: transform 0.2s; }
.accordion[open] summary::after { transform: rotate(90deg); }
.accordion-body { padding: 1.25rem; background: var(--surface); }
.refs-note { font-size: 0.87rem; color: var(--muted); margin-bottom: 0.75rem; font-style: italic; }
.refs-list { margin-left: 1.5rem; }
.refs-list li { font-size: 0.87rem; margin-bottom: 0.5rem; line-height: 1.5; }

/* Footer */
.site-footer { background: #1A1A22; color: rgba(255,255,255,0.65); padding: 1.5rem 0; text-align: center; font-size: 0.88rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } }

/* Flecto UI classes */
.flecto-note { padding: 0.65rem 1rem; border-left: 4px solid var(--accent); background: rgba(92,107,138,0.08); border-radius: 0 6px 6px 0; font-size: 0.9rem; margin: 1rem 0; }
.flecto-note::before, .flecto-callout::before, .flecto-card::before, .flecto-panel::before { content: '🤖 AI explanation'; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; color: #60a5fa; letter-spacing: 0.06em; display: block; margin-bottom: 0.5em; }
.flecto-callout { padding: 1rem 1.25rem; background: #FFF8E1; border: 1px solid #FFE082; border-radius: 8px; margin: 1rem 0 1.5rem; }
.flecto-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1.25rem; box-shadow: 0 2px 6px rgba(0,0,0,0.06); margin: 1rem 0; }
.flecto-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.5rem; margin: 1.5rem 0; }

@media (max-width: 768px) { h1 { font-size: 1.55rem; } h2 { font-size: 1.35rem; } .metrics-row { grid-template-columns: repeat(2, 1fr); } }
