@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500,700&family=Work+Sans:wght@400;500;600;700&display=swap');

/* ========== ClinicBuddy.AI site styles ========== */

/* ---- Design tokens ---- */
:root{
  --brand: #1c1a15;
  --brand-ink: #0e0d0a;
  --accent: #c7a469;
  --accent-2: #8aa1a7;

  --ink: #1c1a15;
  --muted-ink: #6b645a;
  --bg: #f7f3ec;
  --surface: #ffffff;
  --surface-2: #f1ece3;
  --line: #e4ddd1;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(24, 20, 14, 0.12);

  /* exact navy for the wordmark to match the logo */
  --logo-dark: #1c1a15;
}

/* ---- Base ---- */
*{ box-sizing: border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family: "Work Sans", "Noto Sans", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  position: relative;
}
body::before{
  content:"";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1200px circle at 10% 0%, rgba(199,164,105,0.2), transparent 65%),
    radial-gradient(1100px circle at 92% 8%, rgba(138,161,167,0.18), transparent 65%);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}
h1, h2, h3, h4{
  font-family: "Fraunces", "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}
a{ color: inherit; text-decoration: none; }
a:hover{ color: var(--brand); text-decoration: underline; text-decoration-thickness:2px; text-underline-offset: 3px; }
.container{ max-width:1180px; margin:0 auto; padding:0 24px; }

/* ---- Header & Brand ---- */
.site-header{
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,243,236,0.92);
  border-bottom:1px solid var(--line);
  backdrop-filter: blur(10px);
}
.header-inner{
  height:84px; display:flex; align-items:center; justify-content:space-between; gap:20px;
}

/* Lock the brand color on all states so global link rules never override it */
.site-header a.brand,
.site-header a.brand:link,
.site-header a.brand:visited,
.site-header a.brand:hover,
.site-header a.brand:active,
.site-header a.brand:focus{
  color: var(--logo-dark) !important;
  text-decoration: none;
  display:flex; align-items:center; gap:10px;
}

.brand-mark{
  height:44px; width:auto;
  filter: saturate(0.78) contrast(0.92) brightness(1.06);
  opacity: 0.92;
}
.brand-name{ color:inherit; font-weight:700; font-size:24px; font-family: "Fraunces", "Times New Roman", serif; }
.brand-dot{ color: var(--accent); }

/* ---- Navigation ---- */
.site-nav{ display:flex; align-items:center; gap:18px; }
.site-nav ul{ display:flex; gap:20px; list-style:none; margin:0; padding:0; }
.site-nav a{ color: var(--muted-ink); font-weight:600; }
.site-nav a:hover{ color: var(--ink); text-decoration:none; }

.site-nav .nav-cta{ display:flex; gap:12px; margin-left:8px; }

/* ---- Buttons ---- */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  height:44px; padding:0 18px; border-radius:10px;
  font-weight:600; border:1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn.primary{ background:var(--brand); color:#f7f3ec; box-shadow:0 14px 30px rgba(24,20,14,.2); }
.btn.primary:hover{ background:var(--brand-ink); transform: translateY(-1px); }
.btn.ghost{ color:var(--ink); border:1px solid var(--line); background: rgba(255,255,255,0.7); }
.btn.ghost:hover{ border-color: var(--ink); background:#fff; }

/* ---- Page layout ---- */
.site-main{ padding:48px 0 80px; }
.site-header,
.site-main,
.site-footer{
  position: relative;
  z-index: 1;
}
.page{ display:grid; gap:24px; }
.page-header{
  display:grid; gap:10px;
  padding-bottom:18px; border-bottom:1px solid var(--line);
}
.page-header h1, .page-header h2{
  margin:0; font-size:clamp(28px,3.4vw,42px); line-height:1.15; letter-spacing:-.01em;
}
.page-header .lead{ margin:0; color:var(--muted-ink); font-size:18px; max-width:75ch; }

/* ---- Landing page ---- */
.hero{ padding:48px 0 30px; }
.hero-grid{ display:grid; grid-template-columns: 1.1fr 0.9fr; gap:48px; align-items:center; }
.hero-title{ margin:0; font-size:clamp(40px,5vw,64px); line-height:1.05; }
.hero-subtitle{ margin:16px 0 0; color:var(--muted-ink); font-size:18px; max-width:60ch; }
.hero-cta{ display:flex; gap:12px; margin-top:22px; flex-wrap:wrap; }
.hero-meta{ display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }
.eyebrow{
  text-transform: uppercase; letter-spacing:.18em; font-size:12px; color:var(--muted-ink); margin:0 0 14px;
}
.pill{
  display:inline-flex; align-items:center; gap:8px; padding:6px 12px;
  border-radius:999px; border:1px solid var(--line); background:#fff; font-size:12px; font-weight:600; color:var(--muted-ink);
}

.hero-panel{ display:flex; flex-direction:column; gap:18px; }
.hero-card{
  background:var(--surface); border:1px solid var(--line); border-radius:20px; padding:22px;
  box-shadow: var(--shadow);
}
.hero-card-secondary{ background: var(--surface-2); }
.card-kicker{ font-size:12px; text-transform:uppercase; letter-spacing:.14em; color:var(--muted-ink); }
.hero-card h3{ margin:8px 0 8px; font-size:22px; }
.hero-card p{ margin:0 0 14px; color:var(--muted-ink); }

.hero-stats{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:12px; margin:14px 0 12px; }
.stat-label{ display:block; font-size:12px; text-transform:uppercase; letter-spacing:.12em; color:var(--muted-ink); }
.stat-value{ display:block; font-size:20px; font-weight:700; }
.stat-note{ display:block; font-size:12px; color:var(--muted-ink); }

.hero-qa{ display:grid; gap:10px; padding-top:10px; border-top:1px dashed var(--line); }
.qa-row{ display:flex; gap:10px; align-items:flex-start; }
.qa-tag{ font-size:12px; text-transform:uppercase; letter-spacing:.12em; color:#fff; background:var(--brand); padding:4px 8px; border-radius:999px; }
.qa-tag.light{ background:#fff; color:var(--ink); border:1px solid var(--line); }
.qa-text{ color:var(--muted-ink); font-size:14px; }

.mini-list{ list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.mini-list li{
  padding-left:18px; position:relative; color:var(--muted-ink); font-size:14px;
}
.mini-list li:before{
  content:""; position:absolute; left:0; top:8px; width:8px; height:8px; border-radius:50%; background:var(--accent);
}

.section{ padding:56px 0; }
.section-divider{
  position: relative;
}
.section-divider::before{
  content:"";
  position:absolute;
  top:0;
  left:50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 48px));
  border-top: 1px solid var(--line);
}
.section-head{ display:grid; gap:12px; margin-bottom:26px; }
.section-title{ margin:0; font-size:clamp(28px,3.2vw,40px); }
.section-subtitle{ margin:0; color:var(--muted-ink); max-width:70ch; }

.feature-grid{ display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:20px; }
.feature-card{
  padding:22px; border-radius:18px; background:#fff; border:1px solid var(--line);
  box-shadow: 0 16px 40px rgba(24,20,14,0.08);
}
.feature-card h3{ margin:0 0 10px; font-size:20px; }
.feature-card p{ margin:0; color:var(--muted-ink); }

.step-grid{ display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:18px; }
.step{
  border:1px solid var(--line); border-radius:18px; padding:20px; background:var(--surface);
}
.step-index{
  display:inline-flex; align-items:center; justify-content:center;
  width:34px; height:34px; border-radius:12px; background:var(--surface-2);
  font-weight:700; margin-bottom:12px;
}
.step p{ margin:0; color:var(--muted-ink); }

.split-grid{ display:grid; grid-template-columns: 1.1fr 0.9fr; gap:36px; align-items:center; }
.checklist{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.checklist li{
  padding-left:22px; position:relative; color:var(--muted-ink);
}
.checklist li:before{
  content:""; position:absolute; left:0; top:8px; width:10px; height:10px; border-radius:50%; background:var(--accent);
}

.cta-banner{
  border:1px solid var(--line); border-radius:22px; padding:28px;
  background: linear-gradient(120deg, #fff, #f6f1e7);
  display:flex; align-items:center; justify-content:space-between; gap:24px;
  box-shadow: var(--shadow);
}
.cta-actions{ display:flex; gap:12px; flex-wrap:wrap; }
.cta-banner h2{ margin:0 0 8px; font-size:28px; }
.cta-banner p{ margin:0; color:var(--muted-ink); }

.reveal{ animation: rise .7s ease both; animation-delay: var(--delay, 0s); }
@keyframes rise{
  from{ opacity:0; transform: translateY(12px); }
  to{ opacity:1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce){
  .reveal{ animation: none; }
}

/* ---- Prose defaults (subpages) ---- */
.prose{ max-width:72ch; }
.prose h2{ margin-top:24px; margin-bottom:12px; font-size:22px; }
.prose h3{ margin-top:18px; margin-bottom:8px; font-size:18px; }
.prose p{ margin:12px 0; }
.prose ul, .prose ol{ padding-left:20px; margin:12px 0; }
.prose li{ margin:6px 0; }

/* ---- Tables ---- */
.table{
  border-collapse:collapse; width:100%; background:#fff;
  border:1px solid var(--line); border-radius:12px; overflow:hidden;
}
.table th, .table td{ padding:12px 14px; border-bottom:1px solid var(--line); text-align:left; }
.table th{ background:#f5f1ea; font-weight:700; color:#1c1a15; }

/* ---- Footer ---- */
.site-footer{ border-top:1px solid var(--line); background:rgba(255,255,255,0.7); }
.footer-inner{
  height:72px; display:flex; align-items:center; justify-content:center;
  color:#7a7266; font-size:14px;
}

/* ---- Responsive ---- */
@media (max-width: 1020px){
  .hero-grid, .split-grid{ grid-template-columns: 1fr; }
  .feature-grid, .step-grid{ grid-template-columns: 1fr; }
}
@media (max-width:860px){
  .header-inner{ height:72px; }
  .brand-mark{ width:60px; height:44px; }
  .brand-name{ font-size:22px; }
  .site-nav ul{ display:none; }
  .cta-banner{ flex-direction:column; align-items:flex-start; }
}
