/* ============================================================
   LLM PRICE WATCH — design tokens
   Metaphor: a precision instrument / watch face for AI API pricing.
   Midnight + brass-gold instrument panel, parchment reading sections.
   Deliberately NOT the near-black+neon AI cliché: gold, not neon;
   dark used only for the instrument-panel hero band.
   ============================================================ */

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

:root {
  --midnight: #10142A;
  --midnight-deep: #0A0D1C;
  --panel-line: #2A3050;
  --parchment: #FAF7EF;
  --parchment-deep: #F1EBDB;
  --card: #FFFFFF;
  --gold: #C9A15A;
  --gold-bright: #E0BC7C;
  --slate: #48547A;
  --text-dark: #1B1E2B;
  --text-soft: #565F7E;
  --text-light: #F3EFE3;
  --text-light-soft: #A9B0CC;
  --green: #5C8A6B;
  --red: #B5594A;

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius: 12px;
  --radius-sm: 7px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--parchment);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

h1, h2, h3, .display { font-family: var(--font-display); font-weight: 600; margin: 0; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

/* ---------- Instrument-panel header + hero (dark band) ---------- */
.panel {
  background: var(--midnight);
  color: var(--text-light);
  position: relative;
}
.panel::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  opacity: 0.5;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--panel-line);
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--text-light);
  text-decoration: none;
}
.wordmark .dial {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  position: relative;
  flex-shrink: 0;
}
.wordmark .dial::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 6px; height: 1.5px;
  background: var(--gold);
  transform-origin: left center;
  transform: rotate(45deg);
}
nav.links { display: flex; gap: 30px; font-size: 14px; font-weight: 500; }
nav.links a { text-decoration: none; color: var(--text-light-soft); }
nav.links a:hover { color: var(--text-light); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: #1D1503;
  font-weight: 600; font-size: 14px;
  padding: 10px 18px; border-radius: var(--radius-sm);
  text-decoration: none; border: none; cursor: pointer;
  font-family: var(--font-body);
}
.btn:hover { background: var(--gold-bright); }
.btn.ghost { background: transparent; color: var(--text-light); border: 1px solid var(--panel-line); }
.btn.ghost:hover { border-color: var(--gold); }
.btn.dark { background: var(--midnight); color: var(--text-light); }
.btn.dark:hover { background: var(--midnight-deep); }

.hero {
  padding: 68px 0 56px;
}
.hero-eyebrow-row { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(92,138,107,0.25);
}
.hero h1 {
  font-size: 44px;
  line-height: 1.14;
  max-width: 16ch;
  margin-bottom: 18px;
  color: var(--text-light);
}
.hero h1 .accent { color: var(--gold); font-style: italic; }
.hero p.lead {
  font-size: 16.5px;
  color: var(--text-light-soft);
  max-width: 52ch;
  margin-bottom: 28px;
}

/* Ticker / pulse line signature element */
.pulse-wrap {
  margin-top: 40px;
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
  padding: 20px 22px 14px;
}
.pulse-label {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--text-light-soft);
  margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.pulse-svg { width: 100%; height: 90px; display: block; }
.pulse-svg path.line { fill: none; stroke: var(--gold); stroke-width: 1.75; }
.pulse-svg path.fill { fill: url(#pulseGradient); opacity: 0.35; }
.pulse-svg circle { fill: var(--gold); }
.pulse-legend { display: flex; gap: 18px; margin-top: 10px; flex-wrap: wrap; }
.pulse-legend span { font-family: var(--font-mono); font-size: 11px; color: var(--text-light-soft); }
.pulse-legend b { color: var(--text-light); font-weight: 600; }

/* ---------- Body sections (parchment) ---------- */
section.on-parchment { padding: 60px 0; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { font-size: 28px; }
.section-head p { color: var(--text-soft); font-size: 15px; margin-top: 10px; }

.divider { border: none; border-top: 1px solid var(--parchment-deep); margin: 0; }

/* Calculator */
.calc-card {
  background: var(--card);
  border: 1px solid #E6DFCB;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 1px 2px rgba(16,20,42,0.04), 0 20px 40px -24px rgba(16,20,42,0.18);
}
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 22px; }
.field label {
  display: block; font-family: var(--font-mono); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-soft);
  margin-bottom: 8px;
}
.field input {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid #DCD3B8; font-family: var(--font-mono); font-size: 15px;
  background: var(--parchment);
  color: var(--text-dark);
}
.field input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

.result-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.result-table th, .result-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--parchment-deep); font-size: 14px; }
.result-table th { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-soft); font-weight: 500; }
.result-table td.provider { font-family: var(--font-display); font-weight: 600; }
.result-table td.cost { font-family: var(--font-mono); font-weight: 600; text-align: right; }
.result-table td.bar-cell { width: 34%; }
.bar-track { height: 7px; background: var(--parchment-deep); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--gold); border-radius: 4px; }
.result-table tr.cheapest td { color: var(--green); }
.result-table tr.cheapest .bar-fill { background: var(--green); }

/* Provider price table */
.price-table-wrap {
  border: 1px solid #E6DFCB;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}
table.price-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.price-table th, table.price-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--parchment-deep); }
table.price-table th {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-soft); background: var(--parchment); font-weight: 500;
}
table.price-table td.model { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
table.price-table td.provider-tag {
  font-family: var(--font-mono); font-size: 11px; color: var(--slate);
}
table.price-table td.num { font-family: var(--font-mono); text-align: right; font-variant-numeric: tabular-nums; }
table.price-table tr:last-child td { border-bottom: none; }
table.price-table tr:hover td { background: var(--parchment); }
.tier-badge {
  display: inline-block;
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase;
  padding: 3px 8px; border-radius: 20px; letter-spacing: 0.03em;
}
.tier-budget { background: #E4EEE6; color: var(--green); }
.tier-mid { background: #F1E7D2; color: var(--gold); background-color: #F1E4C4; color: #8A6A24; }
.tier-flagship { background: #F1E1DD; color: var(--red); }

/* Source note */
.source-note {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--text-soft);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Footer */
footer.site {
  background: var(--midnight);
  color: var(--text-light-soft);
  padding: 48px 0 32px;
  margin-top: 40px;
}
.foot-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 24px; font-size: 13.5px; flex-wrap: wrap; }
.foot-links a { text-decoration: none; color: var(--text-light-soft); }
.foot-links a:hover { color: var(--text-light); }
.disclosure {
  margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--panel-line);
  font-size: 12.5px; max-width: 80ch; line-height: 1.7;
}

.cookie-banner {
  position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: 620px; margin: 0 auto;
  background: var(--midnight); color: var(--text-light); border-radius: var(--radius);
  padding: 16px 20px; display: flex; align-items: center; gap: 16px; justify-content: space-between;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3); z-index: 100; font-size: 13px;
  border: 1px solid var(--panel-line);
}
.cookie-banner.hidden { display: none; }
.cookie-banner p { margin: 0; color: var(--text-light-soft); }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-actions button { font-family: var(--font-body); font-size: 12.5px; font-weight: 600; padding: 8px 14px; border-radius: 6px; border: none; cursor: pointer; }
.cookie-actions .accept { background: var(--gold); color: #1D1503; }
.cookie-actions .decline { background: transparent; color: var(--text-light); border: 1px solid var(--panel-line); }

@media (max-width: 860px) {
  .calc-grid { grid-template-columns: 1fr; }
  nav.links { display: none; }
  .hero h1 { font-size: 34px; max-width: 100%; }
}
