@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/geist-latin-300.woff2") format("woff2");
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/geist-latin-400.woff2") format("woff2");
}
:root {
  --ink: #e7e5e0;
  --quiet: #9c9c96;
  --green: #34c759;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #000;
  color: var(--ink);
  font-family: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.skip { position: absolute; left: 12px; top: -40px; background: var(--ink); color: #000; padding: 8px 12px; }
.skip:focus { top: 12px; }
.bar {
  position: sticky; top: 0; z-index: 3;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 28px; background: rgba(0, 0, 0, 0.9);
}
.logo {
  color: var(--ink); text-decoration: none; font-weight: 300;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem); letter-spacing: 0.08em; text-indent: 0.08em;
  text-transform: none;
}
.trial {
  display: inline-block; border-bottom: 1px solid rgba(231, 229, 224, 0.55);
  color: var(--ink); text-decoration: none; padding: 0.35rem 0;
  font-size: 0.78rem; font-weight: 400; letter-spacing: 0.22em;
}
.scene { min-height: 100vh; }
.call { min-height: 320vh; }
.call .sticky, #resize .sticky { position: sticky; top: 0; height: 100vh; min-height: 100vh; }
.sticky {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 12vh 7vw 8vh; gap: 22px; text-align: center;
}
.line {
  margin: 0; max-width: 16ch; font-weight: 300;
  font-size: clamp(2.3rem, 5.4vw, 3.8rem); line-height: 1.05; letter-spacing: -0.02em;
}
.quiet { margin: 0; max-width: 32rem; color: var(--quiet); font-size: 1.05rem; }
.play { width: min(44vw, 40rem); display: flex; flex-direction: column; gap: 16px; text-align: left; }
.heard, .spoken {
  margin: 0;
  max-width: 100%;
  font-size: 1.02rem;
  line-height: 1.35;
  color: var(--ink);
}
.heard-label, .spoken-label {
  display: block;
  margin: 0 0 0.3rem;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--quiet);
}
.resolve { margin: 0; color: var(--quiet); }
.call .us, .call .widget, .call .resolve { opacity: 0; }
.call[data-beat="2"] .widget,
.call[data-beat="3"] .widget,
.call[data-beat="4"] .widget,
.call[data-beat="3"] .us,
.call[data-beat="4"] .us,
.call[data-beat="4"] .resolve { opacity: 1; }
.widget {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #111;
  border: 3px solid var(--green);
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  padding: 0;
  overflow: hidden;
}
.widget-body { padding: 1.05rem 1.3rem 1rem; flex: 1; }
.banner {
  margin: 0;
  padding: 0.8rem 1.1rem;
  background: #e8e6e1;
  color: #111;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.3;
}
.call-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.62rem 0.8rem 0.62rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  color: #333;
  text-align: left;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #d70015;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  flex: 0 0 auto;
}
.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d70015;
  box-shadow: 0 0 0 0 rgba(215, 0, 21, 0.5);
  animation: rec-pulse 1.4s ease-out infinite;
}
@keyframes rec-pulse {
  0% { box-shadow: 0 0 0 0 rgba(215, 0, 21, 0.5); opacity: 1; }
  70% { box-shadow: 0 0 0 7px rgba(215, 0, 21, 0); opacity: 0.85; }
  100% { box-shadow: 0 0 0 0 rgba(215, 0, 21, 0); opacity: 1; }
}
.call-who {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #111;
  font-size: 0.82rem;
  font-weight: 400;
}
.call-timer {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  color: #111;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
}
.call-actions { display: inline-flex; align-items: center; gap: 0.3rem; flex: 0 0 auto; }
.call-btn {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  background: #f0f0f0;
  color: #111;
}
.call-btn.hangup { background: #d70015; color: #fff; }
.call-btn.mute .mic-off { display: none; }
.call-btn.mute[aria-pressed="true"] { background: #111; color: #fff; }
.call-btn.mute[aria-pressed="true"] .mic-on { display: none; }
.call-btn.mute[aria-pressed="true"] .mic-off { display: block; }
.label {
  margin: 0; font-size: 0.72rem; font-weight: 400; letter-spacing: 0.18em;
  text-transform: uppercase; color: #333;
}
.say-label {
  color: #d70015;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-align: center;
}
.say {
  margin: 0.45rem 0 0;
  font-weight: 700;
  color: #111;
  text-align: center;
  font-size: clamp(1.55rem, 2.5vw, 2.05rem);
  line-height: 1.2;
}
.cite { margin: 0.75rem 0 0; color: #111; font-size: 0.85rem; }
.status { margin: 0.9rem 0 0; color: #111; font-size: 14px; text-align: center; font-weight: 400; }
.tiles { margin-top: 0.8rem; border-top: 1px solid rgba(0, 0, 0, 0.12); }
.tiles details { border-bottom: 1px solid rgba(0, 0, 0, 0.12); }
.tiles summary {
  cursor: pointer; padding: 0.5rem 0; font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: #333; list-style: none;
}
.tiles summary::-webkit-details-marker { display: none; }
.checks { list-style: none; margin: 0 0 0.7rem; padding: 0; }
.checks li { display: flex; justify-content: space-between; gap: 12px; padding: 0.15rem 0; }
.state { position: relative; min-width: 4.6rem; text-align: right; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.state .done { position: absolute; right: 0; opacity: 0; }
.show .checks li:nth-child(1) .pending { opacity: 0; transition: opacity 0.25s 0.4s; }
.show .checks li:nth-child(1) .done { opacity: 1; transition: opacity 0.25s 0.4s; }
.show .checks li:nth-child(2) .pending { opacity: 0; transition: opacity 0.25s 0.9s; }
.show .checks li:nth-child(2) .done { opacity: 1; transition: opacity 0.25s 0.9s; }
.timer-line { margin: 0 0 0.4rem; }
.cue-log { margin: 0 0 0.7rem; padding: 0; list-style: none; color: #333; font-size: 0.88rem; }
.cue-log li + li { margin-top: 0.3rem; }
@container (max-width: 22rem) { .tiles { display: none; } }
@container (max-width: 16rem) {
  .tiles { display: none; }
  .call-who { font-size: 0.74rem; }
  .call-btn { width: 24px; height: 24px; }
  .banner { font-size: 0.8rem; padding: 0.65rem 0.7rem; }
}
#resize { min-height: 280vh; }
#resize .stage { width: 15rem; }
.stage { width: min(44vw, 40rem); }
.actions { display: flex; gap: 22px; align-items: center; }
footer { padding: 28px 8vw 56px; color: var(--quiet); font-size: 14px; text-align: center; }
footer a { color: var(--ink); margin: 0 0.7em; }
.kicker { margin: 0; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--quiet); }
.hold { margin: 10px 0 0; font-size: 1.5rem; }
@media (max-width: 720px) {
  .sticky { padding: 12vh 20px 8vh; }
  .line { max-width: 12ch; }
  .play, .stage, #resize .stage { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .call .us, .call .widget, .call .resolve { opacity: 1; }
  .rec-dot { animation: none; }
  .state .pending { display: none; }
  .state .done { position: static; opacity: 1; }
  #resize .stage { width: min(44vw, 40rem); }
}

/* Price-match scene: the cue adapts as the caller pushes. */
#gap .sticky { padding: 5vh 7vw 2.5vh; gap: 12px; }
#gap .play { gap: 10px; }
#gap .line { font-size: clamp(1.9rem, 4.2vw, 3rem); }
#gap .us, #gap .resolve { height: 0; overflow: hidden; margin: 0; }
#gap[data-beat="4"] .us,
#gap[data-beat="4"] .resolve { height: auto; overflow: visible; }
#gap[data-beat="4"] .sticky { padding: 5vh 7vw 3vh; gap: 12px; }
#gap[data-beat="4"] .heard:not(.heard-push) { display: none; }
#gap .say-alt,
#gap .banner-alt,
#gap .heard-push { display: none; }
#gap[data-beat="3"] .say-first,
#gap[data-beat="4"] .say-first,
#gap[data-beat="3"] .banner-first,
#gap[data-beat="4"] .banner-first { display: none; }
#gap[data-beat="3"] .say-alt,
#gap[data-beat="4"] .say-alt,
#gap[data-beat="3"] .banner-alt,
#gap[data-beat="4"] .banner-alt,
#gap[data-beat="3"] .heard-push,
#gap[data-beat="4"] .heard-push { display: block; }
