/* ============================================================
   Tapliner demo page — trailer screen + guest phone simulations
   ============================================================ */

#trailer-screen, #guest-phone { scroll-margin-top: 90px; }

.demo-note {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .95rem;
  border-radius: 999px;
  background: rgba(236,207,156,.1);
  border: 1px solid rgba(236,207,156,.24);
  color: var(--sand);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.demo-note::before {
  content: "";
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--sand);
  flex-shrink: 0;
}

/* ---------------- Trailer screen (TV) ---------------- */
.tv-frame {
  border-radius: 30px;
  background: #0d0b0a;
  padding: clamp(.7rem, 1.6vw, 1.1rem);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 40px 90px rgba(0,0,0,.5);
}
.tv-screen {
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  background:
    radial-gradient(circle at 85% 0%, rgba(236,207,156,.09), transparent 24rem),
    linear-gradient(150deg, #1c1712 0%, #12100d 70%);
  border: 1px solid rgba(255,255,255,.07);
  padding: clamp(1rem, 2.4vw, 1.7rem);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1.1rem;
  overflow: hidden;
  color: var(--warm-white);
}

.tv-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: .9rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.tv-event {
  display: flex;
  align-items: center;
  gap: .9rem;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 900;
  letter-spacing: -.03em;
}
.tv-live {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .16em;
  color: #ff9a86;
  padding: .34rem .7rem;
  border-radius: 999px;
  background: rgba(224,90,78,.14);
  border: 1px solid rgba(224,90,78,.3);
}
.tv-live i {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: #e05a4e;
  animation: tv-pulse 1.6s ease-in-out infinite;
}
@keyframes tv-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.78); }
}
.tv-clock {
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: -.02em;
  color: rgba(255,250,243,.75);
  font-variant-numeric: tabular-nums;
}

.tv-main {
  display: grid;
  grid-template-columns: 1.2fr .92fr;
  gap: 1.1rem;
  min-height: 0;
}
.tv-panel-title {
  margin: 0 0 .85rem;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 900;
  color: var(--sand);
}

.tv-board {
  border-radius: 16px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
  padding: 1rem 1.1rem;
  min-width: 0;
}
.tv-rows { display: flex; flex-direction: column; gap: .55rem; }
.tv-row {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .55rem .65rem;
  border-radius: 12px;
  transition: background .5s ease;
}
.tv-row.bump { animation: tv-bump .7s ease; }
@keyframes tv-bump {
  0% { background: rgba(236,207,156,.22); }
  100% { background: transparent; }
}
.tv-rank {
  flex: 0 0 30px;
  font-weight: 950;
  font-size: .85rem;
  color: rgba(255,250,243,.45);
  font-variant-numeric: tabular-nums;
}
.tv-row-main { flex: 1; min-width: 0; }
.tv-row-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .8rem;
  margin-bottom: .38rem;
}
.tv-row-top strong {
  font-size: .95rem;
  letter-spacing: -.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tv-row-top span {
  font-size: .78rem;
  font-weight: 800;
  color: rgba(255,250,243,.55);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.tv-bar {
  height: 9px;
  border-radius: 99px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.tv-bar i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 99px;
  transition: width .7s cubic-bezier(.2,.8,.2,1);
}
.tv-keg {
  flex: 0 0 8px;
  width: 8px;
  height: 40px;
  border-radius: 99px;
  background: rgba(255,255,255,.08);
  position: relative;
  overflow: hidden;
}
.tv-keg i {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  border-radius: 99px;
  opacity: .85;
  transition: height .7s ease;
}

.tv-side { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.tv-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.tv-stat {
  border-radius: 16px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
  padding: .85rem .95rem;
  display: grid;
  gap: .18rem;
}
.tv-stat span {
  font-size: 1.7rem;
  font-weight: 950;
  letter-spacing: -.05em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.tv-stat.tv-stat-text span {
  font-size: 1rem;
  letter-spacing: -.02em;
  line-height: 1.25;
}
.tv-stat small {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 850;
  color: rgba(255,250,243,.5);
}

.tv-photo {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 130px;
  flex: 1;
  border: 1px solid rgba(255,255,255,.08);
}
.tv-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.tv-photo img.showing { opacity: 1; }
.tv-photo-tag {
  position: absolute;
  left: .8rem;
  bottom: .7rem;
  z-index: 2;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .02em;
  padding: .35rem .75rem;
  border-radius: 999px;
  background: rgba(13,11,10,.72);
  backdrop-filter: blur(6px);
  color: var(--sand);
}

.tv-feed {
  border-radius: 16px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
  padding: 1rem 1.1rem;
}
.tv-feed ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.tv-feed li {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  font-size: .86rem;
  color: rgba(255,250,243,.72);
  line-height: 1.4;
  animation: feed-in .45s ease;
}
@keyframes feed-in {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: none; }
}
.tv-feed li strong { color: var(--warm-white); }
.tv-feed li span {
  margin-left: auto;
  font-size: .72rem;
  color: rgba(255,250,243,.4);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.tv-feed li.you strong { color: var(--sand); }
.tv-feed li.you { color: rgba(236,207,156,.85); }

.tv-caption {
  margin: .9rem 0 0;
  text-align: center;
  font-size: .85rem;
  color: rgba(255,250,243,.5);
}

/* ---------------- Guest phone ---------------- */
.demo-split {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(1.6rem, 4vw, 3.4rem);
  align-items: center;
}

.demo-steps { display: grid; gap: .35rem; }
.demo-step { position: relative; display: flex; gap: 1.1rem; padding: .95rem 0; }
.demo-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 52px;
  bottom: -6px;
  width: 1px;
  background: rgba(255,255,255,.12);
}
.demo-step-num {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--sand);
  color: var(--charcoal);
  display: grid;
  place-items: center;
  font-weight: 950;
  position: relative;
  z-index: 1;
}
.demo-step h3 { margin: 0 0 .3rem; font-size: 1.14rem; letter-spacing: -.02em; }
.demo-step p { margin: 0; color: rgba(255,250,243,.66); line-height: 1.55; font-size: .95rem; }

.phone-frame {
  width: min(360px, 100%);
  margin-inline: auto;
  border-radius: 48px;
  background: #0d0b0a;
  padding: 11px;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 90px rgba(0,0,0,.5);
}
.phone-viewport {
  position: relative;
  border-radius: 38px;
  overflow: hidden;
  height: 660px;
  background:
    radial-gradient(circle at 80% -5%, rgba(236,207,156,.1), transparent 18rem),
    linear-gradient(165deg, #1d1813 0%, #14110e 75%);
  border: 1px solid rgba(255,255,255,.06);
  color: var(--warm-white);
}
.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 108px;
  height: 25px;
  border-radius: 99px;
  background: #0d0b0a;
  z-index: 10;
}

.phone-screen {
  position: absolute;
  inset: 0;
  padding: 3.4rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: none;
  opacity: 0;
  transform: translateX(26px);
  pointer-events: none;
  transition: opacity .32s ease, transform .32s ease;
}
.phone-screen::-webkit-scrollbar { display: none; }
.phone-screen.active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.phone-eyebrow {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 900;
  color: var(--sand);
  margin-bottom: .55rem;
}
.phone-h {
  margin: 0 0 .6rem;
  font-size: 1.65rem;
  font-weight: 950;
  letter-spacing: -.05em;
  line-height: 1.02;
}
.phone-copy {
  margin: 0 0 1.3rem;
  color: rgba(255,250,243,.66);
  line-height: 1.55;
  font-size: .93rem;
}

.phone-btn {
  border: 0;
  border-radius: 999px;
  min-height: 50px;
  padding: .85rem 1.2rem;
  background: var(--sand);
  color: var(--charcoal);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
  width: 100%;
}
.phone-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(236,207,156,.2); }
.phone-btn-ghost {
  background: rgba(255,255,255,.07);
  color: var(--warm-white);
  border: 1px solid rgba(255,255,255,.16);
}
.phone-btn-ghost:hover { box-shadow: none; background: rgba(255,255,255,.12); }

.phone-back {
  align-self: flex-start;
  border: 0;
  background: none;
  color: rgba(255,250,243,.62);
  font: inherit;
  font-size: .88rem;
  font-weight: 850;
  cursor: pointer;
  padding: .3rem .3rem .3rem 0;
  margin-bottom: .7rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.phone-back:hover { color: var(--warm-white); }

/* Scan screen */
.phone-screen-scan { justify-content: center; text-align: center; }
.phone-screen-scan .phone-eyebrow { margin-bottom: .8rem; }
.qr-card {
  width: 190px;
  margin: 0 auto 1.4rem;
  padding: 1rem;
  border-radius: 24px;
  background: var(--warm-white);
  cursor: pointer;
  border: 0;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 18px 46px rgba(0,0,0,.4);
}
.qr-card:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 24px 54px rgba(0,0,0,.5); }
.qr-card svg { display: block; width: 100%; height: auto; }
.qr-hint {
  display: block;
  margin-top: .7rem;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--amber-deep);
}

/* Check-in screen */
.phone-field { display: grid; gap: .45rem; margin-bottom: 1rem; text-align: left; }
.phone-field label { color: rgba(255,250,243,.8); font-size: .84rem; font-weight: 850; }
.phone-field input {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 15px;
  background: rgba(255,255,255,.06);
  color: var(--warm-white);
  padding: .9rem 1rem;
  font: inherit;
  outline: none;
}
.phone-field input:focus { border-color: rgba(236,207,156,.6); box-shadow: 0 0 0 4px rgba(236,207,156,.12); }
.phone-field input::placeholder { color: rgba(255,250,243,.35); }

.wristband-chip {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .9rem 1rem;
  border-radius: 18px;
  background: rgba(236,207,156,.08);
  border: 1px dashed rgba(236,207,156,.35);
  margin-bottom: 1.3rem;
  text-align: left;
}
.wristband-chip svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--sand); }
.wristband-chip span { font-size: .82rem; color: rgba(255,250,243,.7); line-height: 1.45; }

/* Tap list screen */
.tap-list { display: grid; gap: .6rem; }
.tap-item {
  display: flex;
  align-items: center;
  gap: .85rem;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  padding: .85rem .95rem;
  color: var(--warm-white);
  font: inherit;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.tap-item:hover { background: rgba(255,255,255,.09); transform: translateY(-1px); border-color: rgba(236,207,156,.3); }
.tap-dot {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255,255,255,.07);
}
.tap-item-main { flex: 1; min-width: 0; display: grid; gap: .12rem; }
.tap-item-main strong { font-size: .98rem; letter-spacing: -.02em; }
.tap-item-main small { color: rgba(255,250,243,.55); font-size: .78rem; font-weight: 700; }
.tap-chevron { color: rgba(255,250,243,.4); font-size: 1.3rem; font-weight: 800; line-height: 1; }

/* Detail screen */
.detail-hero {
  border-radius: 22px;
  padding: 1.3rem 1.2rem 1.15rem;
  margin-bottom: 1.1rem;
  color: #191410;
  position: relative;
  overflow: hidden;
}
.detail-hero small {
  display: block;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-weight: 950;
  opacity: .75;
  margin-bottom: .35rem;
}
.detail-hero h3 {
  margin: 0 0 .2rem;
  font-size: 1.55rem;
  font-weight: 950;
  letter-spacing: -.05em;
  line-height: 1;
}
.detail-hero p { margin: 0; font-size: .88rem; font-weight: 800; opacity: .8; }
.detail-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; margin-bottom: 1.05rem; }
.detail-stat {
  border-radius: 15px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  padding: .65rem .6rem;
  text-align: center;
  display: grid;
  gap: .1rem;
}
.detail-stat strong { font-size: 1.02rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.detail-stat small { font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 850; color: rgba(255,250,243,.5); }
.detail-notes { margin: 0 0 1.05rem; color: rgba(255,250,243,.7); line-height: 1.6; font-size: .92rem; }
.detail-keg { margin-bottom: 1.2rem; }
.detail-keg-top {
  display: flex;
  justify-content: space-between;
  font-size: .74rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,250,243,.5);
  margin-bottom: .4rem;
}
.detail-keg-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.detail-keg-bar i { display: block; height: 100%; border-radius: 99px; }

/* Pour screen */
.phone-screen-pour { text-align: center; }
.pour-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; min-height: 0; }
.pour-glass {
  width: 108px;
  height: 152px;
  border: 3px solid rgba(255,255,255,.26);
  border-top-width: 2px;
  border-radius: 10px 10px 26px 26px;
  background: rgba(255,255,255,.04);
  position: relative;
  overflow: hidden;
}
.pour-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0%;
}
.pour-glass.has-liquid .pour-fill::after {
  content: "";
  position: absolute;
  top: -7px;
  left: 0;
  right: 0;
  height: 7px;
  background: rgba(255,252,244,.92);
}
.pour-oz {
  font-size: 2.5rem;
  font-weight: 950;
  letter-spacing: -.06em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.pour-oz small { font-size: 1rem; font-weight: 850; letter-spacing: 0; color: rgba(255,250,243,.55); margin-left: .25rem; }
.pour-hold {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 0;
  background: radial-gradient(circle at 32% 28%, var(--sand), var(--amber));
  color: var(--charcoal);
  font: inherit;
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .1em;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(185,121,31,.35);
  transition: transform .15s ease, box-shadow .15s ease;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.pour-hold.pouring {
  transform: scale(.92);
  box-shadow: 0 8px 22px rgba(185,121,31,.5), 0 0 0 10px rgba(236,207,156,.14);
}
.pour-hint { margin: 0; font-size: .8rem; color: rgba(255,250,243,.5); }

/* Done screen */
.phone-screen-done { justify-content: center; text-align: center; }
.done-badge {
  width: 62px;
  height: 62px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: var(--sand);
  color: var(--charcoal);
  display: grid;
  place-items: center;
}
.done-badge svg { width: 28px; height: 28px; }
.done-summary {
  margin: 0 auto 1.4rem;
  padding: .9rem 1.1rem;
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  font-size: .92rem;
  color: rgba(255,250,243,.75);
  line-height: 1.55;
}
.done-summary strong { color: var(--warm-white); }
.done-actions { display: grid; gap: .6rem; }
.done-screen-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: .84rem;
  font-weight: 850;
  color: var(--sand);
}
.done-screen-link:hover { text-decoration: underline; }

/* ---------------- Responsive ---------------- */
@media (max-width: 940px) {
  .tv-screen { aspect-ratio: auto; } /* stacked layout is taller than 16:9 */
  .tv-main { grid-template-columns: 1fr; }
  .demo-split { grid-template-columns: 1fr; }
  .phone-viewport { height: 620px; }
}

@media (max-width: 620px) {
  .tv-stats { grid-template-columns: 1fr 1fr; }
  .tv-photo { min-height: 150px; }
  .tv-row { gap: .55rem; padding-inline: .35rem; }
  .tv-rank { flex-basis: 20px; }
  .tv-row-top strong { font-size: .86rem; }
  .tv-row-top span { font-size: .72rem; }
}

@media (prefers-reduced-motion: reduce) {
  .tv-live i { animation: none; }
  .tv-row.bump { animation: none; }
  .tv-feed li { animation: none; }
  .tv-bar i, .tv-keg i, .phone-screen, .tv-photo img { transition: none; }
}
