/* ═══════════════════════════════════════════════════
   SCHNITZEL TRACKER — Dark v4 · Hero-first layout
   ═══════════════════════════════════════════════════ */

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

:root {
  --bg:       #0C0A09;
  --s1:       #161210;
  --s2:       #1E1814;
  --s3:       #2A221C;
  --s4:       #362C26;

  --red:      #C93030;
  --red-hi:   #E84848;
  --red-lo:   #7A1C1C;
  --red-glow: rgba(201,48,48,.18);
  --amber:    #C47A18;

  --t1:  #EDE5DC;
  --t2:  #9A8878;
  --t3:  #5A4E46;
  --t4:  #3A3028;

  --border:   rgba(237,229,220,.07);
  --border-r: rgba(201,48,48,.28);

  --r:   16px;
  --rsm: 10px;
  --ease:   cubic-bezier(.25,.46,.45,.94);
  --bounce: cubic-bezier(.34,1.56,.64,1);
  --shadow: 0 2px 28px rgba(0,0,0,.5), 0 1px 4px rgba(0,0,0,.3);
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg); color: var(--t1);
  min-height: 100vh;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 48px 20px 80px;
  overflow-x: hidden; position: relative;
}

/* ── NOISE ── */
.noise-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── ORBS ── */
.bg-orb {
  position: fixed; border-radius: 50%; pointer-events: none;
  z-index: 0; filter: blur(100px); opacity: .18;
}
.orb-1 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, var(--red), transparent 68%);
  top: -180px; right: -140px;
  animation: drift 22s ease-in-out infinite alternate;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--amber), transparent 68%);
  bottom: -80px; left: -100px;
  animation: drift 30s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(28px,20px) scale(1.08); }
}

/* ── PAGE ── */
.page {
  position: relative; z-index: 1;
  width: 100%; max-width: 560px;
  display: flex; flex-direction: column; gap: 12px;
}

/* ── HEADER ── */
.site-header {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; padding-bottom: 4px;
}
.eyebrow {
  font-size: .62rem; font-weight: 500; letter-spacing: .2em;
  text-transform: uppercase; color: var(--t3);
}
.site-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900; font-size: 1.5rem; color: var(--t1);
}
.site-title em { color: var(--red); font-style: italic; }

/* ══════════════════════════════════════
   HERO — the big YES / NO
   ══════════════════════════════════════ */
.hero {
  background: var(--s1); border: 1px solid var(--border);
  border-radius: 24px; box-shadow: var(--shadow);
  padding: 40px 32px 36px;
  text-align: center;
  position: relative; overflow: hidden;
}
/* subtle inner glow ring that inherits status color */
.hero::before {
  content: '';
  position: absolute; inset: 0; border-radius: 24px;
  box-shadow: inset 0 0 60px transparent;
  transition: box-shadow .6s var(--ease);
  pointer-events: none;
}
.hero.glow-yes::before { box-shadow: inset 0 0 80px rgba(50,180,80,.08); }
.hero.glow-no::before  { box-shadow: inset 0 0 80px rgba(200,48,48,.1); }

.hero-label {
  font-size: .68rem; font-weight: 500; letter-spacing: .2em;
  text-transform: uppercase; color: var(--t3); margin-bottom: 20px;
}

.hero-answer {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  line-height: 1;
  padding: 18px 32px;
  border-radius: 18px;
  transition: background .5s var(--ease), color .5s var(--ease),
              border-color .5s var(--ease), transform .4s var(--bounce);
}
.hero-dot {
  width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0;
  animation: blink 2.4s infinite;
}
@keyframes blink {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.3; transform:scale(.65); }
}

.hero-loading {
  background: var(--s3); color: var(--t2); border: 1px solid var(--border);
}
.hero-loading .hero-dot { background: var(--t3); }

.hero-yes {
  background: rgba(28,90,44,.32); color: #7AE08A;
  border: 1px solid rgba(60,170,80,.22);
}
.hero-yes .hero-dot {
  background: #4DD468;
  box-shadow: 0 0 0 4px rgba(77,212,104,.18), 0 0 12px rgba(77,212,104,.3);
}

.hero-no {
  background: rgba(180,28,28,.22); color: #F07878;
  border: 1px solid var(--border-r);
}
.hero-no .hero-dot {
  background: var(--red);
  box-shadow: 0 0 0 4px var(--red-glow), 0 0 12px var(--red-glow);
}

/* ══════════════════════════════════════
   STATS BAR — forecast + count + chart btn
   ══════════════════════════════════════ */
.stats-bar {
  display: flex; align-items: stretch; gap: 10px;
}

.stat-cards {
  flex: 1; min-width: 0;
  display: flex; align-items: stretch;
  background: var(--s1); border: 1px solid var(--border);
  border-radius: var(--r); box-shadow: var(--shadow);
  overflow: hidden;
}

.stat-card {
  flex: 1; padding: 18px 20px;
  display: flex; flex-direction: column; gap: 0;
}
.stat-label {
  font-size: .6rem; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: var(--t3); margin-bottom: 10px;
}
.stat-row {
  display: flex; align-items: flex-end; gap: 7px;
  margin-bottom: 12px;
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-weight: 900; font-size: 2.2rem; line-height: 1;
  transition: all .6s var(--bounce);
}
.stat-num--red   { color: var(--red-hi); }
.stat-num--white { color: var(--t1); }
.stat-unit {
  font-size: .62rem; line-height: 1.45; color: var(--t3);
  font-weight: 400; padding-bottom: 3px; flex-shrink: 0;
}

.prob-track {
  width: 100%; height: 3px;
  background: var(--s3); border-radius: 100px; overflow: hidden;
}
.prob-fill {
  height: 100%; border-radius: 100px;
  background: linear-gradient(90deg, var(--red-lo), var(--red-hi));
  width: 0%; transition: width 1.3s var(--ease) .35s;
}

.stat-divider {
  width: 1px; background: var(--border); flex-shrink: 0;
  margin: 16px 0;
}

/* ── CHART ICON-BUTTON ── */
.btn-chart {
  flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  background: var(--s1); color: var(--t2);
  border: 1px solid var(--border); border-radius: var(--r);
  padding: 16px 14px; cursor: pointer;
  box-shadow: var(--shadow);
  transition: background .2s, border-color .2s, color .2s, transform .15s;
  min-width: 64px;
}
.btn-chart:hover {
  background: var(--s2); border-color: var(--border-r);
  color: var(--red-hi); transform: translateY(-1px);
}
.btn-chart:active { transform: translateY(0); }
.btn-chart[aria-expanded="true"] {
  background: var(--red-lo); border-color: var(--border-r); color: var(--t1);
}
.btn-chart-label {
  font-size: .6rem; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase;
}
.btn-chevron {
  transition: transform .35s var(--ease);
}
.btn-chart[aria-expanded="true"] .btn-chevron { transform: rotate(180deg); }

/* ── CHART PANEL ── */
.chart-panel {
  background: var(--s1); border: 1px solid var(--border);
  border-radius: var(--r); box-shadow: var(--shadow);
  overflow: hidden; max-height: 0; opacity: 0;
  transition: max-height .55s var(--ease), opacity .35s ease, transform .4s var(--ease);
  transform: translateY(-6px);
}
.chart-panel.is-open { max-height: 440px; opacity: 1; transform: translateY(0); }
.chart-inner { padding: 20px 20px 16px; }
.chart-title {
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: .95rem; color: var(--t1); margin-bottom: 2px;
}
.chart-sub { font-size: .68rem; color: var(--t3); margin-bottom: 16px; }

/* ══════════════════════════════════════
   DRAWER BUTTONS — quiet, at the bottom
   ══════════════════════════════════════ */
.drawer-buttons {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding-top: 6px;
}
.btn-drawer {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: .72rem; font-weight: 500;
  letter-spacing: .08em; color: var(--t3);
  padding: 4px 2px;
  transition: color .18s;
}
.btn-drawer:hover { color: var(--t2); }
.btn-drawer[aria-expanded="true"] { color: var(--t1); }
.btn-drawer[aria-expanded="true"] .btn-chevron { transform: rotate(180deg); }
.btn-drawer .btn-chevron { transition: transform .3s var(--ease); }

.drawer-sep { color: var(--t4); font-size: .8rem; }

/* ── INFO DRAWERS ── */
.info-drawer {
  background: var(--s1); border: 1px solid var(--border);
  border-radius: var(--r); box-shadow: var(--shadow);
  overflow: hidden; max-height: 0; opacity: 0;
  transition: max-height .55s var(--ease), opacity .35s ease, transform .4s var(--ease);
  transform: translateY(-6px);
}
.info-drawer.is-open { max-height: 1200px; opacity: 1; transform: translateY(0); }

.info-inner {
  padding: 24px 24px 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.info-section-label {
  font-size: .6rem; font-weight: 500; letter-spacing: .2em;
  text-transform: uppercase; color: var(--red); margin-bottom: -4px;
}
.info-title {
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: 1.05rem; color: var(--t1); line-height: 1.25;
}

/* FAQ */
.faq-item { border-top: 1px solid var(--border); padding-top: 12px; }
.faq-q {
  font-size: .78rem; font-weight: 500; color: var(--t1); margin-bottom: 4px;
}
.faq-a { font-size: .76rem; line-height: 1.7; color: var(--t2); }
.faq-a em { color: var(--t1); font-style: italic; }
.inline-link {
  color: var(--red-hi); text-decoration: none;
  border-bottom: 1px solid var(--border-r);
  transition: color .15s, border-color .15s;
}
.inline-link:hover { color: #ff7070; border-color: #ff7070; }
.sig {
  margin-top: 8px; font-size: .68rem; font-style: italic; color: var(--t3);
  border-left: 2px solid var(--border-r); padding-left: 9px;
}
.disclaimer {
  font-size: .65rem; color: var(--t4); text-align: center;
  border-top: 1px solid var(--border); padding-top: 12px; margin-top: 2px;
}

/* Links */
.link-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--s2); border: 1px solid var(--border);
  border-radius: var(--rsm); padding: 11px 13px;
  text-decoration: none; color: inherit;
  transition: background .2s, border-color .2s, transform .15s;
}
.link-row + .link-row { margin-top: 6px; }
.link-row:hover { background: var(--s3); transform: translateX(3px); }
.link-row--muted { opacity: .5; }
.link-row--muted:hover { opacity: 1; }
.link-icon {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px;
  background: var(--s3); display: flex; align-items: center; justify-content: center;
  color: var(--t2);
}
.link-body { flex: 1; min-width: 0; }
.link-title { display: block; font-size: .78rem; font-weight: 500; color: var(--t1); }
.link-sub   { display: block; font-size: .68rem; color: var(--t3); margin-top: 1px; }
.link-arrow { font-size: .9rem; color: var(--t3); flex-shrink: 0; }

/* Tech stack */
.tech-stack { border-top: 1px solid var(--border); padding-top: 14px; }
.tech-label {
  font-size: .6rem; text-transform: uppercase; letter-spacing: .18em;
  color: var(--t3); margin-bottom: 8px;
}
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip {
  background: var(--s2); border: 1px solid var(--border);
  border-radius: 100px; padding: 2px 10px;
  font-size: .66rem; color: var(--t2);
}

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(16px); animation: rise .55s var(--ease) forwards; }
.reveal--d1 { animation-delay: .07s; }
.reveal--d2 { animation-delay: .14s; }
.reveal--d3 { animation-delay: .21s; }
@keyframes rise { to { opacity:1; transform:translateY(0); } }

/* ── COUNT POP ── */
@keyframes pop { 0%,100% { transform:scale(1); } 50% { transform:scale(1.1); } }
.count-pop { animation: pop .4s var(--bounce); }

/* ── RESPONSIVE ── */
@media (max-width: 420px) {
  body { padding: 28px 14px 64px; }
  .hero-answer { font-size: 2rem; padding: 14px 22px; }
  .stat-num { font-size: 1.8rem; }
  .site-title { font-size: 1.25rem; }
  .stat-card { padding: 14px 14px; }
}
