:root {
  --red: #EE5A00;
  --red-deep: #C94C00;
  --ink: #16161A;
  --paper: #FFFFFF;
  --fog: #F2F2F3;
  --hair: #E4E4E7;
  --muted: #76767E;
  --cheese: #F7C13B;
  --crust: #D98A2B;
  --steady: #C7C7CD;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
a { color: var(--red); text-decoration: none; }

.page { width: 100%; max-width: 600px; margin: 0 auto; padding: 0 20px 56px; }

.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.26em; text-transform: uppercase; color: var(--red); }
.kicker { font-size: 11px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }

.masthead { text-align: center; padding: 14px 0 2px; }
.masthead .eyebrow { display: block; }

.hero { text-align: center; padding-top: 2px; }
.hero h1 { font-size: clamp(18px, 5vw, 26px); margin: 6px auto 0; max-width: 22ch; color: var(--ink); }

.rate {
  margin: 16px 0 2px; font-weight: 800; color: var(--red);
  font-size: clamp(54px, 18vw, 92px); line-height: 0.88; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.rate small { font-size: 0.42em; vertical-align: super; font-weight: 800; }
.rate-cap { font-size: 13px; font-weight: 700; color: var(--muted); }

.drop {
  position: relative;
  height: clamp(330px, 50vh, 480px);
  margin: 18px auto 0; width: 100%;
  --top: 7%; --span: 78%;
}
.drop .line {
  position: absolute; left: 50%; transform: translateX(-50%);
  top: var(--top); height: var(--span); width: 3px; background: var(--hair);
}
.drop .line::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%;
  height: calc(var(--progress, 0) * 100%); background: var(--red);
  transition: height 1.4s cubic-bezier(.4, .9, .3, 1);
}

.tick { position: absolute; left: 50%; width: 50%;
  top: calc(var(--top) + var(--pos) * var(--span)); transform: translateY(-50%);
  display: flex; align-items: center; gap: 8px; }
.tick .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--paper);
  border: 3px solid var(--hair); margin-left: -7px; flex: 0 0 auto; }
.tick .lbl { font-size: 12px; font-weight: 700; color: var(--muted); }
.tick.lit .dot { background: var(--red); border-color: var(--red); }
.tick.lit .lbl { color: var(--ink); }
.tick.next .dot { border-color: var(--red); box-shadow: 0 0 0 0 rgba(238,90,0,.5); animation: ping 1.8s infinite; }
.tick.next .lbl { color: var(--red); font-weight: 800; }
@keyframes ping { 0%,100% { box-shadow: 0 0 0 0 rgba(238,90,0,.45); } 50% { box-shadow: 0 0 0 7px rgba(238,90,0,0); } }

.slice {
  position: absolute; left: 50%;
  top: calc(var(--top) + var(--progress, 0) * var(--span));
  transform: translate(-50%, -50%);
  transition: top 1.4s cubic-bezier(.4, .9, .3, 1); z-index: 3;
}
.slice svg { width: clamp(70px, 19vw, 88px); height: auto; display: block;
  filter: drop-shadow(0 10px 10px rgba(120, 60, 20, .22)); }
.slice-bob { animation: bob 3.4s ease-in-out infinite; transform-origin: 50% 80%; display: block; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-5px) rotate(4deg); } }

.dip { position: absolute; left: 50%; top: calc(var(--top) + var(--span)); transform: translate(-50%, -34%); z-index: 2; }
.dip svg { width: clamp(116px, 31vw, 146px); height: auto; display: block;
  filter: drop-shadow(0 12px 12px rgba(120, 30, 20, .2)); }

.scale { display: flex; justify-content: space-between; align-items: center; max-width: 320px;
  margin: 10px auto 0; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.scale .g { color: var(--red); }

.nudge { text-align: center; margin-top: 14px; font-size: 15px; font-weight: 700; color: var(--ink); }
.nudge b { color: var(--red); }
.nudge .done { color: var(--red); }

.ask { text-align: center; margin: 10px auto 0; max-width: 30ch; color: var(--muted); font-size: 14px; font-weight: 500; }

.band { margin-top: 52px; }
.band > .kicker { display: block; text-align: center; }
.band h2 { text-align: center; font-size: clamp(22px, 5.5vw, 30px); margin: 6px auto 0; }
.band .lead { text-align: center; color: var(--muted); font-size: 14px; margin: 8px auto 20px; max-width: 36ch; }

.geo-wrap { position: relative; border: 1px solid var(--hair); border-radius: 6px; overflow: hidden; }
#geo { display: block; width: 100%; height: 340px; touch-action: none; }
.geo-tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; font-size: 12px;
  font-weight: 700; padding: 6px 10px; border-radius: 4px; opacity: 0; transform: translate(-50%, -130%); transition: opacity .12s; white-space: nowrap; }
.geo-key { display: flex; gap: 18px; justify-content: center; margin-top: 12px; font-size: 12px; font-weight: 700; color: var(--muted); }
.geo-key i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

.foot { text-align: center; margin-top: 52px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; }

.empty { max-width: 30ch; margin: 18vh auto; text-align: center; }
.empty h1 { font-size: 30px; }
.empty p { color: var(--muted); margin-top: 10px; }

@media (min-width: 720px) {
  .page { max-width: 640px; }
  .drop { --span: 80%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
