/* Svalboard Clinical — Premium medical device marketing aesthetic */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --text: #1a1a1a;
  --text-secondary: #666;
  --text-tertiary: #999;
  --bg: #fff;
  --bg-warm: #fafaf8;
  --bg-cool: #f4f6f9;
  --border: #e8e8e8;
  --border-light: #f0f0f0;
  --blue: #2855c3;
  --blue-light: #eef2fc;
  --green: #1a8a5c;
  --green-light: #edf8f3;
  --red: #c43a31;
  --red-light: #fdf1f0;
  --amber: #b5850a;
  --amber-light: #fdf8ec;
  --purple: #6b3fa0;
  --max-width: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Navigation ─── */
.top-nav {
  background: #000;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.top-nav a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.01em;
  padding: 0 0.85rem;
  height: 56px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
  white-space: nowrap;
}
.top-nav a:hover { color: #fff; }
.top-nav a[style*="font-weight:700"] {
  color: #fff !important;
}
.top-nav .brand {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 2rem 0 0;
  height: 56px;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}
.top-nav .brand:hover { color: #fff; }
.brand-wordmark {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}
.brand-divider {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.2);
  margin: 0 10px;
}
.top-nav .brand-text {
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* ─── Hero ─── */
.hero {
  background: #000;
  color: #fff;
  padding: 5rem 2rem 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255,255,255,0.08);
}
.hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.hero .subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  opacity: 0.6;
  max-width: 780px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}
.hero .cta-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: #fff;
  color: #000;
}
.btn-primary:hover {
  background: #e8e8e8;
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
}

/* ─── Content Container ─── */
.content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

/* ─── Typography ─── */
.content h2 {
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--text);
  margin: 3rem 0 1rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.content h2:first-child { margin-top: 0; }

.content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin: 2rem 0 0.6rem;
  line-height: 1.35;
}

.content p {
  margin-bottom: 1rem;
  color: #333;
}

.content ul, .content ol {
  margin: 0.75rem 0 1.25rem 1.25rem;
  color: #333;
}
.content li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}
.content li strong {
  color: var(--text);
}

/* ─── Section Cards ─── */
.section {
  background: var(--bg);
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}
.section.problem {
  background: var(--red-light);
  border-color: #f0dbd9;
}
.section.mechanism {
  background: var(--blue-light);
  border-color: #dde4f8;
}
.section.clinical {
  background: var(--green-light);
  border-color: #d4ede2;
}
.section.surgery {
  background: #f5f0fa;
  border-color: #e4d9f0;
}
.section.provider {
  background: var(--amber-light);
  border-color: #f0e6c8;
}
.section.conversion {
  background: var(--blue-light);
  border-color: #dde4f8;
}

.section h2 {
  font-size: 1.35rem;
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.section h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
}

/* ─── Diagrams ─── */
.diagram-container {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.diagram-container svg {
  max-width: 100%;
  height: auto;
}
.diagram-caption {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 1rem;
  font-style: italic;
  line-height: 1.5;
}

/* ─── Comparison Panels ─── */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.75rem 0;
}
.comparison-panel {
  border-radius: 12px;
  padding: 1.75rem;
  border: 1px solid var(--border);
}
.comparison-panel.conventional {
  background: var(--red-light);
  border-color: #f0dbd9;
}
.comparison-panel.svalboard {
  background: var(--green-light);
  border-color: #d4ede2;
}
.comparison-panel h3, .comparison-panel h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  margin-top: 0;
}
.comparison-panel.conventional h3,
.comparison-panel.conventional h4 { color: var(--red); }
.comparison-panel.svalboard h3,
.comparison-panel.svalboard h4 { color: var(--green); }
.comparison-panel ul {
  margin: 0.5rem 0 0.75rem 1.1rem;
}
.comparison-panel li {
  font-size: 14px;
  margin-bottom: 0.4rem;
}

/* ─── Stats Row ─── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 1.75rem 0;
}
.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  border: 1px solid var(--border);
}
.stat-card strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.stat-card p, .stat-card span, .stat-card div:not(:first-child) {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ─── Tables ─── */
table, .muscle-shift {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 14px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}
th, .muscle-shift th {
  background: var(--bg-cool);
  color: var(--text);
  padding: 10px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}
td, .muscle-shift td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-light);
  color: #444;
}
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: var(--bg-warm); }
.muscle-shift .decrease { color: var(--red); font-weight: 600; }
.muscle-shift .increase { color: var(--green); font-weight: 600; }

/* ─── Callouts ─── */
.callout {
  background: var(--bg-cool);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin: 1.75rem 0;
  font-size: 15px;
  border: 1px solid var(--border);
  line-height: 1.7;
}
.callout.success {
  background: var(--green-light);
  border-color: #d4ede2;
}
.callout.warning {
  background: var(--amber-light);
  border-color: #f0e6c8;
}
.callout strong {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

/* ─── Provider Badge ─── */
.provider-badge {
  display: inline-block;
  background: var(--text);
  color: #fff;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

/* ─── Footer ─── */
.footer {
  background: #000;
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 2.5rem;
  font-size: 13px;
  letter-spacing: 0.01em;
  margin-top: 2rem;
}
.footer p { margin-bottom: 0.35rem; color: rgba(255,255,255,0.5); }
.footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.15s;
}
.footer a:hover { color: #fff; }

/* ─── Index: Condition Cards ─── */
.condition-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 2rem 0;
}
.condition-card {
  background: var(--bg);
  border-radius: 12px;
  padding: 1.75rem;
  text-decoration: none;
  color: var(--text);
  display: block;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.condition-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--blue);
  opacity: 0;
  transition: opacity 0.2s;
}
.condition-card:hover {
  border-color: #ccc;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.condition-card:hover::before { opacity: 1; }
.condition-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text);
}
.condition-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}
.condition-card.carpal::before { background: var(--blue); }
.condition-card.cubital::before { background: var(--purple); }
.condition-card.dystrophy::before { background: var(--red); }
.condition-card.eds::before { background: var(--amber); }
.condition-card.dequervain::before { background: var(--red); }
.condition-card.dupuytren::before { background: var(--amber); }

/* ─── Anatomy Images ─── */
.anatomy-img {
  max-width: 100%;
  border-radius: 12px;
  margin: 1rem 0;
}
.anatomy-figure {
  margin: 1.75rem 0;
  text-align: center;
}
.anatomy-figure figcaption {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 0.75rem;
  font-style: italic;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .hero { padding: 3.5rem 1.5rem 3rem; }
  .hero h1 { font-size: 2rem; }
  .comparison { grid-template-columns: 1fr; }
  .condition-grid { grid-template-columns: 1fr; }
  .section { padding: 1.75rem; }
  .top-nav { padding: 0 1rem; gap: 0; }
  .top-nav a { font-size: 12px; padding: 0 0.5rem; }
}

/* ─── Print ─── */
@media print {
  .top-nav, .cta-group, .btn { display: none; }
  .hero { background: none; color: var(--text); padding: 1rem 0; }
  .section { border: 1px solid #ddd; break-inside: avoid; }
  .footer { display: none; }
}
