/* MedIndia — style.css
   2026-08-19 REWRITE: moved off the StatePhysics dark-glass theme after
   review — it read as a coaching app (near-black bg, everything in small
   monospace, mobile-width column even on desktop), wrong for a document
   people are meant to trust and actually read.
   2026-08-19 FONT PASS (later same day, per Sumit): the Cormorant Garamond
   display serif (light weights, some italic) plus small mono labels tested
   as genuinely hard to read — "too small, italic, looks bad" on the new
   why-us page especially. Replaced entirely: no more serif, no more custom
   mono webfont. Now -apple-system (native San Francisco on Mac/iOS) first,
   with Google's Inter as the cross-platform fallback for Windows/Android/
   Linux, so everyone gets a clean, high-legibility sans instead of half the
   audience getting a system default and half getting a delicate serif.
   Monospace is now the OS's own system mono (no webfont) and is kept only
   where it's functionally useful — the copyable extraction-prompt box —
   not for labels/pills/headers, which now read in the same sans as
   everything else, just uppercase+letter-spaced for the "label" feel.
*/

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

/* ==========================================================
   TOKENS
   ========================================================== */
:root {
  --bg:           #f7f5f0;   /* warm paper, not white, not black */
  --bg-deep:      #efece3;
  --surface:      #ffffff;   /* card/input background */
  --border:       rgba(20,18,15,0.09);
  --border-light: rgba(20,18,15,0.18);
  --ink:          #1c1a17;   /* body text — warm near-black, not pure black */
  --ink-soft:     rgba(28,26,23,0.88);
  --muted:        rgba(28,26,23,0.55);
  --faint:        rgba(28,26,23,0.32);
  --gold:         #b3874a;   /* accents, borders, icons */
  --gold-ink:     #8a6530;   /* darker — safe contrast for gold TEXT on light bg */
  --gold-glow:    rgba(179,135,74,0.12);
  --red:          #b23a3a;
  --red-bg:       rgba(178,58,58,0.08);
  --green:        #2f8a55;
  --green-bg:     rgba(47,138,85,0.08);
  --font-display: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-sans:    -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', Menlo, Consolas, 'Courier New', monospace;
  --radius:       12px;
  --radius-sm:    8px;
  --shadow-card:  0 1px 2px rgba(20,18,15,0.05), 0 6px 20px rgba(20,18,15,0.04);
  --transition:   0.2s ease;
}

/* ==========================================================
   RESET + BASE
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  /* 2026-08-19: stop mobile browsers' forced-dark-mode from auto-inverting
     this page (a known cause of "white on black" rendering on a page whose
     CSS never asked for dark mode — Safari/Android WebView "smart"/forced
     dark can do this to pages that don't declare a color-scheme). */
  color-scheme: light;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.7;
  min-height: 100vh;
}

/* ==========================================================
   TYPOGRAPHY
   ========================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; font-weight: 600; }

/* No more italic emphasis inside headings (was reading as delicate/small) —
   emphasis now shown as a gold color + weight bump instead. */
h1 em, h2 em, h3 em, h4 em {
  font-style: normal;
  font-weight: 700;
  color: var(--gold-ink);
}

.label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.gold { color: var(--gold-ink); }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }

/* ==========================================================
   LAYOUT — responsive: mobile-narrow by default, opens up on
   tablet/desktop instead of staying capped at a phone width.
   ========================================================== */
.app {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 0 0 48px 0;
}

@media (min-width: 768px) {
  .app { max-width: 680px; }
}
@media (min-width: 1100px) {
  .app { max-width: 760px; padding-top: 24px; }
}

.page { padding: 24px 20px; display: none; animation: fadeIn 0.3s ease; }
.page.active { display: block; }

@media (min-width: 768px) {
  .page { padding: 28px 32px; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================
   CARD
   ========================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 20px;
  margin-bottom: 12px;
}

.card.gold-border {
  border-color: rgba(179,135,74,0.35);
  background: linear-gradient(135deg, var(--surface), rgba(179,135,74,0.05));
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

/* ==========================================================
   INPUTS + FORMS
   ========================================================== */
.input-group { margin-bottom: 18px; }

.input-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 13px 14px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

input::placeholder, textarea::placeholder { color: var(--faint); }
textarea { resize: vertical; min-height: 150px; line-height: 1.6; }
select option { background: var(--surface); }

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all var(--transition);
  width: 100%;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary { background: var(--ink); color: var(--surface); }
.btn-primary:hover { background: #35312b; }
.btn-primary:active { transform: scale(0.99); }

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-light);
}
.btn-ghost:hover { background: var(--bg-deep); }

.btn-gold {
  background: linear-gradient(135deg, #c8a15c, #9c7534);
  color: #fff;
}
.btn-gold:hover { opacity: 0.92; }

.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }

/* ==========================================================
   PROGRESS + STEP INDICATOR
   ========================================================== */
.progress-bar { height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; margin-bottom: 16px; }
.progress-fill { height: 100%; background: var(--ink); border-radius: 2px; transition: width 0.4s ease; }
.progress-fill.gold { background: var(--gold); }

.step-indicator { display: flex; gap: 4px; margin-bottom: 20px; }
.step-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--faint); transition: all var(--transition); }
.step-dot.active { background: var(--ink); width: 18px; border-radius: 3px; }
.step-dot.done   { background: var(--gold); }

/* ==========================================================
   ALERT / TOAST
   ========================================================== */
.alert { padding: 13px 16px; border-radius: var(--radius-sm); font-size: 0.95rem; line-height: 1.55; margin-bottom: 12px; border: 1px solid; }
.alert-error   { background: var(--red-bg);   border-color: rgba(178,58,58,0.25);  color: var(--red); }
.alert-success { background: var(--green-bg); border-color: rgba(47,138,85,0.25);  color: var(--green); }
.alert-warning { background: var(--gold-glow); border-color: rgba(179,135,74,0.3); color: var(--gold-ink); }
.alert-info    { background: var(--surface); border-color: var(--border-light); color: var(--muted); }

/* 2026-08-19: indeterminate progress bar for composed-language background
   generation (app.js pollForTranslation) — we don't know real % done on a
   17-40 call chain, so this just proves the page is alive, not frozen. */
.progress-bar-indeterminate { width: 100%; height: 6px; border-radius: 4px; background: var(--gold-glow); overflow: hidden; margin-top: 4px; }
.progress-bar-fill { width: 40%; height: 100%; border-radius: 4px; background: var(--gold); animation: progress-sweep 1.4s ease-in-out infinite; }
@keyframes progress-sweep {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(28,26,23,0.94);
  color: #fff;
  padding: 11px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
  z-index: 1000;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ==========================================================
   TOP HEADER
   ========================================================== */
.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 0;
  margin-bottom: 4px;
}
@media (min-width: 768px) { .top-header { padding: 24px 32px 0; } }

.app-wordmark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.app-wordmark span { color: var(--gold-ink); }

/* ==========================================================
   STATUS PILL
   ========================================================== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--border-light);
  color: var(--muted);
  font-family: var(--font-sans);
}
.pill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.pill.active { color: var(--green); border-color: rgba(47,138,85,0.3); }
.pill.active::before { background: var(--green); }
.pill.gold   { color: var(--gold-ink);  border-color: rgba(179,135,74,0.35); }
.pill.gold::before   { background: var(--gold); }

/* ==========================================================
   DIVIDER
   ========================================================== */
.divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.divider-text {
  display: flex; align-items: center; gap: 12px; margin: 16px 0;
  color: var(--faint); font-size: 0.75rem; letter-spacing: 0.08em;
}
.divider-text::before, .divider-text::after { content: ''; flex: 1; border-top: 1px solid var(--border); }

/* ==========================================================
   LOADING
   ========================================================== */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border-light);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
  position: fixed; inset: 0;
  background: rgba(247,245,240,0.94);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 500;
  text-align: center;
  padding: 24px;
}
.loading-overlay.show { display: flex; }
.loading-text { font-size: 1rem; font-weight: 500; color: var(--ink-soft); line-height: 1.6; max-width: 380px; margin-top: 14px; }

/* ==========================================================
   REPORT DISPLAY
   ========================================================== */
.report-section { margin-bottom: 24px; }
.report-section-title {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(179,135,74,0.2);
}
.report-body {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink-soft);
  /* 2026-08-19: bounded, scrollable inline container — was an
     ever-growing block that made the page itself the scroll surface,
     which is also what made teaser-overlay chase a moving bottom edge.
     Text stays selectable/copyable either way, just contained now. */
  max-height: 65vh;
  overflow-y: auto;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
}
/* 2026-08-19: report markdown (title, blockquote intro, tables) had no
   rules at all — h1/blockquote/table all fell back to raw browser
   defaults (h1 ~2em bold = "huge fonts" complaint; blockquote = plain
   indent, no visual distinction; table = no borders/spacing at all). */
.report-body h1 {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 6px;
}
.report-body h1 + p em,
.report-body h1 + p {
  font-size: 0.82rem;
  color: var(--ink-soft);
  opacity: 0.75;
  margin-bottom: 18px;
}
.report-body h2 { font-size: 1.2rem; }
.report-body h3 { font-size: 1.02rem; }
.report-body h2, .report-body h3 { margin: 22px 0 10px; font-weight: 500; }
.report-body p { margin-bottom: 14px; }
.report-body ul, .report-body ol { margin: 0 0 14px 22px; }
.report-body strong { color: var(--ink); }
.report-body blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  background: var(--gold-glow);
  border-left: 2px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.95rem;
}
.report-body blockquote p:last-child { margin-bottom: 0; }
.report-body hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.report-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.9rem;
}
.report-body th, .report-body td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.report-body th {
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-deep);
}
.report-body table { display: block; overflow-x: auto; }

.callout-highlight {
  background: var(--gold-glow);
  border-left: 2px solid var(--gold);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 14px 0;
}

.teaser-wrap { position: relative; }
/* 2026-08-19: post-payment confirmation + download links land here — a
   sibling of teaser-wrap, not a child of teaser-overlay, so it's
   unaffected by teaser-overlay being hidden. */
.report-footnote { margin-top: 16px; text-align: left; }
/* 2026-08-19, third pass: was position:absolute, bottom:0, height:240px —
   a fixed-height gradient fade that made sense when report-body was one
   long unbounded page and the overlay only visually appeared near the
   TRUE bottom. Now report-body is a bounded, internally-scrolling box
   (see .report-body above) and the preview text itself is short/complete
   (no truncation happens anymore, see output_generator.py) — an overlay
   permanently eating the box's bottom 240px just hid real content with
   no way to reach it (scrolling report-body doesn't move a sibling
   absolute-positioned element). Now: normal block flow BELOW the box,
   no overlap at all, sticky to the viewport bottom while scrolling so
   it stays reachable without hiding anything. */
.teaser-overlay {
  position: sticky;
  bottom: 12px;
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

/* ==========================================================
   BANNER (destination_note, dismissible)
   ========================================================== */
.banner-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--gold-glow);
  border: 1px solid rgba(179,135,74,0.3);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.banner-note .dismiss {
  margin-left: auto;
  cursor: pointer;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1;
  background: none;
  border: none;
}

/* ==========================================================
   COPY BOX (extraction prompt inside the needs-more-input alert)
   ========================================================== */
.copy-box {
  margin-top: 10px;
}
.copy-box pre {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ink-soft);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 220px;
  overflow-y: auto;
}
.copy-box .btn { width: auto; padding: 8px 16px; font-size: 0.8rem; }

/* ==========================================================
   PHASE CHECKLIST (phase_summary)
   ========================================================== */
.phase-checklist { display: flex; flex-direction: column; gap: 10px; }
.phase-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.phase-row .phase-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.phase-row.done .phase-num { background: var(--green); border-color: var(--green); color: #fff; }
.phase-row .phase-label { font-size: 0.95rem; }
.phase-row .phase-meta { margin-left: auto; font-size: 0.8rem; color: var(--muted); font-family: var(--font-sans); }

/* ==========================================================
   ONBOARDING / HERO
   ========================================================== */
.onboard-hero { text-align: center; padding: 44px 24px 30px; }
.onboard-hero h1 { margin-bottom: 14px; }
.onboard-hero .subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 440px;
  margin: 0 auto;
}

/* ==========================================================
   SCROLLBAR
   ========================================================== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 4px; }

/* ==========================================================
   SCOPE NOTE (2026-08-19) — Sumit flagged the covered-categories
   note on index.php as unreadable: plain .muted (0.55 opacity ink)
   at 0.72rem washes out against the paper background and read as
   "plain white." This gives inline notes a visibly different
   treatment — gold-tinted box, higher-contrast ink — so a "note"
   actually looks like one instead of trailing body copy.
   ========================================================== */
.scope-note {
  background: var(--gold-glow);
  border: 1px solid rgba(179,135,74,0.25);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 4px 0 16px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--gold-ink);
  text-align: center;
}

/* Lighter-weight inline note (e.g. the language-select hint) — still
   higher contrast than .muted, but not a full boxed callout, so two
   notes stacked don't both compete for attention. */
.field-note {
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(28,26,23,0.7);
  margin: -6px 0 16px;
}

/* ==========================================================
   SELECT (custom chevron, 2026-08-19) — the language dropdown was
   reading as a bare, unstyled browser control. appearance:none +
   a drawn SVG chevron (gold-ink, matches the theme) so it reads as
   a designed control instead of default OS chrome. Applies to all
   <select> elements site-wide, not just this one, for consistency.
   ========================================================== */
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%238a6530' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

/* ==========================================================
   CUSTOM LANGUAGE SELECT (2026-08-19) — a native <select>'s dropdown
   panel can't be restyled cross-browser (still "looks like a normal
   form" no matter what the closed-state chevron looks like). This is a
   real custom component: a styled trigger + a styled options panel.
   The actual <select id="intake-lang"> stays in the DOM, hidden, as the
   real form value — app.js reads .value from it unchanged, so no JS
   flow logic needed to change, only how the value gets set.
   ========================================================== */
.lang-select { position: relative; }
.lang-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 13px 14px;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.lang-select-trigger:focus,
.lang-select-trigger.open {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
  outline: none;
}
.lang-select-trigger::after {
  content: '';
  width: 10px; height: 10px;
  border-right: 1.6px solid var(--gold-ink);
  border-bottom: 1.6px solid var(--gold-ink);
  transform: rotate(45deg);
  margin-left: 10px;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.lang-select-trigger.open::after { transform: rotate(-135deg); }

.lang-select-panel {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 6px);
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  max-height: 260px;
  overflow-y: auto;
  z-index: 50;
  display: none;
}
.lang-select-panel.open { display: block; }
.lang-option {
  padding: 11px 14px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.lang-option:hover { background: var(--bg-deep); }
.lang-option.active { background: var(--gold-glow); color: var(--gold-ink); font-weight: 600; }

/* ==========================================================
   STAT GRID (2026-08-19) — country wait-time cards on
   pages/why-medindia.php. Grid, not prose paragraphs, so a page
   with 6+ sourced stats stays scannable instead of cluttered.
   ========================================================== */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 16px 0 20px;
}
@media (min-width: 600px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.stat-card .stat-country {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 8px;
}
.stat-card .stat-figure {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.4;
}
.stat-card .stat-india {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.stat-card .stat-source {
  font-size: 0.76rem;
  color: var(--faint);
  font-family: var(--font-sans);
}

/* ==========================================================
   SAMPLE VIEWER (pages/samples.php) — 2026-08-19
   ========================================================== */
.sample-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.sample-tab-btn {
  background: none;
  border: none;
  padding: 10px 4px;
  margin-right: 16px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.sample-tab-btn.active { color: var(--gold-ink); border-bottom-color: var(--gold); }

.sample-persona-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.sample-persona-btn {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 7px 14px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
}
.sample-persona-btn.active {
  background: var(--gold-glow);
  border-color: rgba(179,135,74,0.4);
  color: var(--gold-ink);
  font-weight: 600;
}

.sample-report-scroll { display: none; }
.sample-report-scroll.active { display: block; }
.sample-page-img {
  display: block;
  width: 100%;
  max-width: 700px;
  margin: 0 auto 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  -webkit-user-select: none;
  user-select: none;
}