:root {
  --bg: #fff;
  --bg-rgb: 255, 255, 255;
  --fg: #212529;
  --border: #ced4da;
  --border-rgb: 206, 212, 218;
  --muted: #6c757d;
  --accent: #06b6d4;
  --radius: 6px;
  /* kept for chart JS references */
  --bs-body-bg: var(--bg);
  --bs-body-color-rgb: 33, 37, 41;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1a2e;
    --bg-rgb: 26, 26, 46;
    --fg: #f8f9fa;
    --border: #495057;
    --border-rgb: 73, 80, 87;
    --muted: #adb5bd;
    --accent: #22d3ee;
    --bs-body-bg: #1a1a2e;
    --bs-body-color-rgb: 248, 249, 250;
  }
}

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

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, sans-serif;
  font-size: 14px;
  scrollbar-width: none;
}

body::-webkit-scrollbar { display: none; }

#app {
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 12px 20px;
}

#controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

#controls-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

#controls-slider {
  display: flex;
  align-items: center;
  gap: 12px;
}

#controls-slider input[type="range"] {
  flex: 1;
  height: 6px;
  accent-color: var(--muted);
  cursor: pointer;
}

#brand {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.legend {
  white-space: nowrap;
  font-size: 12px;
  color: var(--muted);
}

#date-label {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  min-width: 72px;
}

select, #model {
  background: var(--bg);
  color: var(--fg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 10px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}

select:focus, #model:focus {
  border-color: #0d6efd;
}

select { cursor: pointer; }
#model { width: 120px; }

#chart-area {
  flex: 1;
  min-height: 0;
}

#llm-cost {
  height: 100%;
}

#llm-cost > svg {
  width: 100%;
  height: 100%;
  display: block;
}

#scrolly-section { display: none; }

/* scrolly styles kept for if/when re-enabled */
.scrolly-step { height: 85vh; position: relative; }
.scrolly-gap  { height: 40vh; }

.scrolly-card {
  position: sticky;
  z-index: 50;
  top: calc(0.75rem + 45vh);
  max-width: 360px;
  width: 38%;
  min-width: 240px;
  padding: 1.1rem 1.35rem 0.9rem;
  border-radius: 14px;
  backdrop-filter: blur(14px) saturate(1.6);
  background: rgba(var(--bg-rgb), 0.18);
  border: 1px solid rgba(var(--border-rgb), 0.35);
  box-shadow: 0 8px 32px rgba(var(--border-rgb), 0.2);
  font-size: 0.8rem;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  margin-right: auto;
}

.scrolly-card.vert-top  { top: 4.75rem; }
.scrolly-card.pos-right { margin-left: auto; margin-right: 0; }
.scrolly-card.pos-center { margin-left: auto; margin-right: auto; }
.scrolly-card.is-active { opacity: 1; transform: translateY(0); }


.scrolly-card h6 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  opacity: 0.75;
}

.scrolly-card p { margin-bottom: 0.55rem; }
.scrolly-card p:last-child { margin-bottom: 0; }

.scrolly-card .card-links {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.scrolly-card .card-links a {
  font-size: 0.72rem;
  opacity: 0.8;
  text-decoration: underline;
  text-underline-offset: 2px;
}
