/* Sigmund — sigmunds.ai */

:root {
  --bg: #F5F1E8;
  --paper: #FFFFFF;
  --sage: #9DB89A;
  --sage-soft: #C8D6C5;
  --sage-dark: #6E8C6A;
  --brown: #9A6B3F;
  --brown-soft: #C9A382;
  --brown-dark: #4A2F1C;
  --cigar: #D04A2A;
  --ink: #1F1A14;
  --muted: #6F6557;
  --rule: #E0D9C9;
  --shadow: 0 1px 2px rgba(31, 26, 20, 0.04), 0 8px 24px rgba(31, 26, 20, 0.06);
  --shadow-lg: 0 2px 4px rgba(31, 26, 20, 0.06), 0 24px 56px rgba(31, 26, 20, 0.10);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container: 1120px;
  --container-narrow: 760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--brown-dark);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); transition: border-color 160ms ease; }
a:hover { border-color: var(--cigar); }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.4em 0;
}
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 400; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.875rem, 3.5vw, 2.75rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; font-weight: 600; }
p { margin: 0 0 1em 0; }
.lead { font-family: var(--serif); font-size: 1.375rem; line-height: 1.5; color: var(--brown-dark); }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cigar);
  margin-bottom: 1.25rem;
}

/* Container */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 241, 232, 0.85);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; border: 0; }
.brand img { width: 32px; height: 32px; border-radius: 50%; }
.brand-mark { font-family: var(--serif); font-size: 1.4rem; letter-spacing: 0.04em; color: var(--ink); font-weight: 500; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, background 160ms ease, border-color 160ms ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn-primary:hover { background: var(--brown-dark); border-color: var(--brown-dark); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 0; color: var(--ink);
  font-weight: 600; padding: 12px 0;
}
.btn-link:hover { color: var(--cigar); }

/* Hero */
.hero { padding: 80px 0 96px; }
.hero-grid {
  display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: center;
}
.hero-art { position: relative; }
.hero-art img { width: 100%; max-width: 460px; margin: 0 auto; filter: drop-shadow(0 20px 40px rgba(31, 26, 20, 0.12)); }
.hero-wordmark {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  letter-spacing: 0.03em;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 8px 0;
  line-height: 1;
}
.hero-tagline {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  line-height: 1.25;
  color: var(--brown-dark);
  font-style: italic;
  margin: 0 0 24px 0;
}
.hero-lead { color: var(--muted); max-width: 540px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sections */
.section { padding: 96px 0; }
.section-cream { background: var(--bg); }
.section-paper { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-sage { background: var(--sage-soft); }
.section-ink { background: var(--ink); color: var(--bg); }
.section-ink h2, .section-ink h3 { color: var(--bg); }

.section-head { margin-bottom: 48px; max-width: 760px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 1.125rem; }

/* The gap */
.gap-stat {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
  color: var(--cigar);
  line-height: 1;
  margin: 32px 0 16px;
}
.gap-stat-caption { color: var(--muted); font-size: 1rem; max-width: 520px; }

/* Stat cards */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.stat-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: left;
}
.stat-card .value {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}
.stat-card .label {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}
.stat-caption { color: var(--muted); font-size: 0.875rem; margin-top: 24px; }

/* Affiliations strip */
.affiliations {
  padding: 40px 0;
  background: var(--bg);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.affiliations-label {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.logo-wall {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
}
.logo-wall a {
  display: inline-flex;
  align-items: center;
  border-bottom: none;
  filter: grayscale(1) opacity(0.62);
  transition: filter 280ms ease, transform 280ms ease;
}
.logo-wall a:hover {
  filter: grayscale(0) opacity(1);
  transform: translateY(-1px);
}
.logo-wall img {
  height: 40px;
  width: auto;
  display: block;
}
.logo-wall .logo-nyp img { height: 44px; }
.logo-wall .logo-ip img { height: 48px; }
@media (max-width: 720px) {
  .logo-wall { gap: 36px; }
  .logo-wall img { height: 32px; }
  .logo-wall .logo-nyp img { height: 36px; }
  .logo-wall .logo-ip img { height: 40px; }
}

/* Note mockup (case study replacement) */
.note {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  font-family: var(--sans);
}
.note-header {
  background: var(--bg);
  padding: 16px 28px;
  border-bottom: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8125rem;
  color: var(--muted);
}
.note-header strong { color: var(--ink); }
.note-body { padding: 32px; }
.note-section { margin-bottom: 28px; }
.note-section:last-of-type { margin-bottom: 12px; }
.note-section h4 {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brown);
  margin: 0 0 10px 0;
}
.note-section p {
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--brown-dark);
  margin: 0 0 8px 0;
}
.note-mse {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 8px 20px;
  font-family: var(--serif);
  font-size: 1rem;
}
.note-mse dt { color: var(--muted); font-style: italic; }
.note-mse dd { color: var(--brown-dark); margin: 0; }
.note-section ul {
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--brown-dark);
  padding-left: 20px;
  margin: 0;
}
.note-section ul li { margin-bottom: 6px; }
.cite {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--cigar);
  vertical-align: 2px;
  margin-left: 2px;
}
.note-citations {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--rule);
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.6;
}
.note-citations div { padding: 3px 0; }
.note-citations .cite-num {
  font-weight: 600;
  color: var(--cigar);
  margin-right: 8px;
}
.note-footer {
  background: var(--bg);
  padding: 14px 28px;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8125rem;
}
.note-footer-left { color: var(--muted); }
.note-footer-left strong { color: var(--ink); }
.note-sign {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
}

/* Data safety section */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.safety-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 24px 22px;
}
.safety-card h4 {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 8px 0;
}
.safety-card p {
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--brown-dark);
  margin: 0;
}
.safety-fine {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 20px;
  max-width: 720px;
}

@media (max-width: 860px) {
  .safety-grid { grid-template-columns: repeat(2, 1fr); }
  .note-body { padding: 24px; }
  .note-mse { grid-template-columns: 1fr; gap: 4px; }
  .note-mse dt { font-weight: 600; margin-top: 8px; }
  .affiliations-list { font-size: 1rem; line-height: 1.8; }
}

/* Trust grid */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.trust-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.trust-card h4 {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 10px 0;
  letter-spacing: -0.01em;
}
.trust-card p {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--brown-dark);
  margin: 0;
}
@media (max-width: 720px) {
  .trust-grid { grid-template-columns: 1fr; }
}

/* Demo */
.demo {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  align-items: stretch;
}
.demo-portrait {
  background: var(--sage-soft);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 380px;
  position: relative;
  overflow: hidden;
}
.demo-portrait img { width: 100%; max-width: 240px; }
.demo-status {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brown-dark);
}
.demo-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cigar); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.demo-chat { display: flex; flex-direction: column; gap: 14px; min-height: 380px; }
.demo-msg {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--brown-dark);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 280ms ease, transform 280ms ease;
}
.demo-msg.visible { opacity: 1; transform: none; }
.demo-msg-meta {
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.demo-msg-text { font-family: var(--serif); font-size: 1.0625rem; line-height: 1.5; }
.demo-msg-text em { color: var(--cigar); font-style: italic; }
.demo-controls {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8125rem; color: var(--muted);
}
.demo-controls button {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.demo-controls button:hover { border-color: var(--ink); }

/* Treatment ranker mockup */
.ranker {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.ranker-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 20px;
}
.ranker-patient {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--muted);
}
.ranker-patient strong { color: var(--ink); font-weight: 600; }
.ranker-row {
  display: grid;
  grid-template-columns: 36px 1.4fr 2fr 1.4fr;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.ranker-row:last-child { border-bottom: 0; }
.ranker-rank {
  font-family: var(--serif);
  font-size: 1.625rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1;
}
.ranker-rank.top { color: var(--cigar); }
.ranker-tx {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ink);
}
.ranker-tx-score {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.ranker-bar {
  height: 8px;
  background: var(--rule);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.ranker-bar-fill { height: 100%; background: var(--ink); border-radius: 999px; }
.ranker-bar-fill.warm { background: var(--cigar); }
.ranker-bar-fill.brown { background: var(--brown); }
.ranker-note {
  font-size: 0.875rem;
  color: var(--brown-dark);
}
.ranker-note .flag {
  display: inline-block;
  padding: 2px 8px;
  margin-right: 8px;
  border-radius: 4px;
  background: rgba(208, 74, 42, 0.12);
  color: var(--cigar);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: 1px;
}
.ranker-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between;
  font-size: 0.8125rem; color: var(--muted);
}

/* Multi-vector diagram */
.vector-diagram {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow);
}
.vector-row {
  display: grid;
  grid-template-columns: 140px 1fr 60px;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.vector-row:last-child { border-bottom: 0; }
.vector-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brown-dark);
  font-weight: 600;
}
.vector-track {
  height: 12px;
  background: var(--rule);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.vector-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sage-dark), var(--brown));
  border-radius: 999px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.vector-strength {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  text-align: right;
}

/* Citation chain */
.citation-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.citation-rec {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin: 0 0 8px 0;
  color: var(--ink);
}
.citation-rec-score { color: var(--muted); font-size: 1rem; font-family: var(--sans); }
.citation-divider {
  height: 1px; background: var(--rule); margin: 24px 0; position: relative;
}
.citation-divider::before {
  content: "EVIDENCE";
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: var(--paper); padding: 0 12px;
  font-size: 0.6875rem; letter-spacing: 0.18em; color: var(--muted);
}
.citation-paper {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 100px 1fr 120px;
  gap: 16px;
  align-items: center;
  font-size: 0.9375rem;
}
.citation-paper:last-child { border-bottom: 0; }
.citation-pmid {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--cigar);
  font-weight: 600;
}
.citation-title { color: var(--brown-dark); line-height: 1.4; }
.citation-meta {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* In-chart mockup */
.chart {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 0;
  box-shadow: var(--shadow);
  overflow: hidden;
  font-family: var(--sans);
}
.chart-header {
  background: var(--bg);
  padding: 16px 24px;
  border-bottom: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.875rem;
}
.chart-header strong { color: var(--ink); }
.chart-body { padding: 24px; display: grid; grid-template-columns: 1fr; gap: 12px; }
.chart-field { display: grid; grid-template-columns: 140px 1fr; gap: 12px; font-size: 0.9375rem; padding: 8px 0; border-bottom: 1px dashed var(--rule); }
.chart-field-label { color: var(--muted); }
.chart-field-value { color: var(--ink); }
.chart-prompt {
  margin: 16px 24px 24px;
  background: var(--sage-soft);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex; align-items: center; gap: 12px;
}
.chart-prompt-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.chart-prompt-text { font-family: var(--serif); font-size: 1.0625rem; color: var(--brown-dark); }
.chart-prompt-text strong { color: var(--ink); }
.chart-voice {
  margin: 0 24px 24px;
  display: flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--bg);
  border-radius: 999px; padding: 12px 20px;
  font-size: 0.875rem;
}
.chart-voice-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cigar); animation: pulse 1.6s ease-in-out infinite; }

/* Roadmap */
.roadmap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.roadmap-step {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 24px;
  position: relative;
}
.roadmap-step.now { border-color: var(--cigar); }
.roadmap-step.now::before {
  content: "DEPLOYED";
  position: absolute; top: -10px; left: 16px;
  background: var(--cigar); color: var(--bg);
  font-size: 0.6875rem; letter-spacing: 0.14em;
  padding: 4px 10px; border-radius: 4px; font-weight: 600;
}
.roadmap-step h4 { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; margin: 0 0 8px 0; }
.roadmap-step p { color: var(--muted); font-size: 0.875rem; margin: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }
.about-photo { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); }
.about-photo img { width: 100%; display: block; }

/* Waitlist form */
.waitlist {
  background: var(--ink); color: var(--bg);
  border-radius: 20px;
  padding: 64px 48px;
  text-align: center;
}
.waitlist h2 { color: var(--bg); margin-bottom: 12px; }
.waitlist .lead { color: rgba(245, 241, 232, 0.75); margin: 0 auto 32px; max-width: 540px; }
.waitlist-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 620px;
  margin: 0 auto;
  text-align: left;
}
.waitlist-form label {
  display: block;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.6);
  margin-bottom: 6px;
}
.waitlist-form input, .waitlist-form select {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(245, 241, 232, 0.2);
  background: rgba(245, 241, 232, 0.06);
  color: var(--bg);
}
.waitlist-form input:focus, .waitlist-form select:focus {
  outline: none; border-color: var(--bg); background: rgba(245, 241, 232, 0.12);
}
.waitlist-form .full { grid-column: 1 / -1; }
.waitlist-form button {
  background: var(--bg); color: var(--ink);
  border: 0;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background 160ms ease;
}
.waitlist-form button:hover { background: var(--sage); }
.waitlist-fine { font-size: 0.8125rem; color: rgba(245, 241, 232, 0.5); margin-top: 16px; }
.waitlist-thanks { display: none; padding: 24px; }
.waitlist-thanks.show { display: block; }

/* EHR integration row */
.integrations {
  padding: 56px 0;
  background: var(--bg);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.integrations-label {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.integrations-list {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.integrations-list .sep { color: var(--muted); padding: 0 14px; }
.integrations-fine {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 16px;
}

/* Publications strip */
.pubs {
  padding: 48px 0;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.pubs-label {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cigar);
  text-align: center;
  margin-bottom: 24px;
}
.pubs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pub-item {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--brown-dark);
  border-left: 2px solid var(--cigar);
  padding-left: 18px;
}
.pub-item .pub-journal {
  display: block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 6px;
}
.pub-item .pub-title {
  display: block;
  color: var(--ink);
  font-style: italic;
  margin-bottom: 4px;
}
.pub-item .pub-meta {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--muted);
}
.pub-item a { color: inherit; border-bottom: none; }
.pub-item a:hover .pub-title { color: var(--cigar); }

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}
.faq-item {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 24px 28px;
}
.faq-q {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 10px 0;
}
.faq-a {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--brown-dark);
  margin: 0;
}

/* Pricing tag inside waitlist */
.pricing-tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cigar);
  background: rgba(208, 74, 42, 0.10);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* Floating waitlist CTA */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 60;
  display: none;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--ink);
  box-shadow: var(--shadow-lg);
  transition: transform 160ms ease, background 160ms ease;
}
.floating-cta:hover { background: var(--brown-dark); transform: translateY(-2px); }
.floating-cta.visible { display: inline-block; }
@media (max-width: 520px) { .floating-cta { bottom: 16px; right: 16px; padding: 12px 18px; font-size: 0.875rem; } }

/* Footer */
.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--muted);
}
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.site-footer a { color: var(--brown-dark); border-color: var(--rule); }

/* Utility */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.muted { color: var(--muted); }
.divider { height: 1px; background: var(--rule); margin: 48px 0; }

/* Responsive */
@media (max-width: 860px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-art img { max-width: 320px; }
  .section { padding: 64px 0; }
  .demo { grid-template-columns: 1fr; padding: 24px; }
  .demo-portrait { min-height: 240px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .ranker-row { grid-template-columns: 28px 1fr; }
  .ranker-row > *:nth-child(3), .ranker-row > *:nth-child(4) { grid-column: 2; }
  .citation-paper { grid-template-columns: 1fr; gap: 4px; }
  .citation-meta { text-align: left; }
  .roadmap { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .waitlist { padding: 40px 24px; }
  .waitlist-form { grid-template-columns: 1fr; }
}
