/* ================================================================
   TICKET CHECKER PREVIEW PAGE (ticket-checker.html)
   Dark ParkSplain page: notice, Alfonso's player beside the Roadshow's checker recording,
   then the black beta-testing sign-up. Uses the site's tokens (--ps-yellow, --ps-ink, fonts).
   ================================================================ */
.tcp-page { background: var(--ps-dark, #0a0c0f); color: #f3ead6; }
.tcp-page main { padding-top: 64px; }
.tcp { padding: clamp(16px, 2.4vw, 28px) var(--page-gutter, 20px) clamp(40px, 6vw, 80px); }
.tcp-inner { max-width: 1100px; margin: 0 auto; }

.tcp-back {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  font-family: var(--font-body); font-weight: 800; color: #fff; text-decoration: none;
  border-bottom: 3px solid var(--ps-yellow);
}
.tcp-back:hover { background: rgba(243, 167, 18, 0.18); }
.tcp-back:focus-visible { outline: 3px solid var(--ps-yellow); outline-offset: 3px; }

.tcp-eyebrow {
  margin: 0 0 8px; font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ps-yellow);
}
.tcp-title {
  margin: 0 0 clamp(16px, 2.4vw, 26px); font-family: var(--font-body); font-weight: 900; color: #fff;
  font-size: clamp(24px, 3vw, 36px); line-height: 1.1; letter-spacing: 0.005em;
}
.tcp-back { margin-bottom: 12px; }

/* the demonstration notice: discreet amber outline, always visible */
.tcp-notice {
  margin: 0; padding: 12px 16px;
  border: 1px solid rgba(243, 167, 18, 0.55); border-left: 4px solid var(--ps-yellow);
  background: rgba(243, 167, 18, 0.08);
}
.tcp-notice-title {
  display: flex; align-items: center; gap: 8px; margin: 0 0 4px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ps-yellow);
}
.tcp-notice-title svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.tcp-notice-text { margin: 0; font-size: 15px; line-height: 1.5; color: #f3ead6; }

/* the checker recording dominates. Phones: notice, recording, Alfonso. Wide screens: the recording in
   the big column, the notice and Alfonso in a narrower column beside it */
.tcp-layout {
  display: grid; gap: 22px; align-items: start;
  grid-template-areas: "notice" "demo" "intro" "beta";
}
.tcp-notice { grid-area: notice; }
.tcp-demo { grid-area: demo; }
.tcp-intro { grid-area: intro; }
.tcp-beta { grid-area: beta; }
@media (min-width: 860px) {
  .tcp-layout {
    grid-template-columns: minmax(0, 1fr) minmax(290px, 360px);
    grid-template-rows: auto auto auto 1fr;
    grid-template-areas: "demo notice" "demo intro" "demo beta" "demo .";
    column-gap: clamp(28px, 4vw, 56px); row-gap: 18px;
  }
}
.tcp-h2 {
  margin: 0 0 12px; font-family: var(--font-body); font-weight: 900; color: #fff;
  font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2;
}

/* Alfonso's player: the yellow of the tutorial panels */
.tcp-player {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--ps-yellow); color: var(--ps-ink);
}
.tcp-play, .tcp-replay {
  flex: none; display: grid; place-items: center; padding: 0; border-radius: 50%; cursor: pointer;
}
.tcp-play { width: 48px; height: 48px; border: 0; background: var(--ps-ink); color: #fff; }
.tcp-play svg { width: 22px; height: 22px; fill: currentColor; }
.tcp-replay { width: 38px; height: 38px; border: 2px solid var(--ps-ink); background: transparent; color: var(--ps-ink); }
.tcp-replay svg { width: 18px; height: 18px; fill: currentColor; }
.tcp-play:hover { background: #2b2620; }
.tcp-replay:hover { background: rgba(20, 18, 15, 0.12); }
.tcp-play:focus-visible, .tcp-replay:focus-visible { outline: 3px solid var(--ps-ink); outline-offset: 3px; }
.tcp-play:disabled, .tcp-replay:disabled { opacity: 0.45; cursor: default; }
.tcp-player-main { flex: 1 1 auto; min-width: 0; display: grid; gap: 8px; }
.tcp-player-state { font-family: var(--font-body); font-weight: 800; font-size: 16px; line-height: 1.2; }
.tcp-track { display: block; height: 5px; border-radius: 3px; background: rgba(20, 18, 15, 0.22); overflow: hidden; }
.tcp-fill { display: block; height: 100%; width: 0; background: var(--ps-ink); }
.tcp-time { flex: none; font-family: var(--font-mono); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
/* the browser held the sound back: a gentle pulse on Play */
.tcp-player.is-waiting .tcp-play { box-shadow: 0 0 0 0 rgba(20, 18, 15, 0.55); animation: tcpPulse 1.8s ease-out infinite; }
@keyframes tcpPulse { 70% { box-shadow: 0 0 0 12px rgba(20, 18, 15, 0); } 100% { box-shadow: 0 0 0 0 rgba(20, 18, 15, 0); } }
@media (prefers-reduced-motion: reduce) { .tcp-player.is-waiting .tcp-play { animation: none; } }

.tcp-transcript { margin-top: 12px; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.03); }
.tcp-transcript summary {
  cursor: pointer; padding: 12px 16px; font-family: var(--font-body); font-weight: 800; color: #fff;
  list-style-position: inside;
}
.tcp-transcript summary:focus-visible { outline: 3px solid var(--ps-yellow); outline-offset: -3px; }
.tcp-transcript-body { padding: 0 16px 14px; font-size: 15px; line-height: 1.6; color: #e6dfd1; }
.tcp-transcript-body p { margin: 0 0 10px; }
.tcp-transcript-todo { color: #ffd27a; font-style: italic; }
.tcp-fictional { margin: 0; font-size: 14px; line-height: 1.5; color: #d6d1c8; }

/* the recording, in a phone-shaped frame */
/* as tall as the window allows (it is portrait, so height is what makes it big) */
.tcp-screen {
  position: relative; width: min(100%, 440px, calc(max(520px, min(100vh - 200px, 940px)) / 2)); margin: 0 auto; aspect-ratio: 1 / 2;
  border: 10px solid #1d1b18; border-radius: 36px; overflow: hidden; background: #f5f0e7;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 2px rgba(243, 167, 18, 0.55), 0 0 80px rgba(243, 167, 18, 0.12);
}
@media (max-width: 859px) { .tcp-screen { width: min(100%, 420px); } }
.tcp-video { display: block; width: 100%; height: 100%; object-fit: contain; background: #f5f0e7; }
.tcp-screen-badge {
  position: absolute; z-index: 1; left: 50%; bottom: 10px; transform: translateX(-50%);
  padding: 4px 10px; background: var(--ps-ink); color: var(--ps-yellow); border-radius: 3px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  pointer-events: none;
}
.tcp-demo-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px;
  margin: 14px auto 0; max-width: 440px; text-align: center;
}
.tcp-demo-step { order: -1; flex: 1 1 100%; font-size: 14px; color: #f3ead6; }
.tcp-demo-btn {
  padding: 7px 12px; border: 2px solid var(--ps-yellow); background: transparent; color: var(--ps-yellow); cursor: pointer;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.tcp-demo-btn:hover { background: var(--ps-yellow); color: var(--ps-ink); }
.tcp-demo-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.tcp-demo-note { margin: 10px auto 0; max-width: 440px; font-size: 13.5px; line-height: 1.45; text-align: center; color: #d6d1c8; }

/* beta-testing sign-up: the black capture block of the tutorial panels, full width */
.tcp-beta-form {
  margin: 0; padding: 18px;
  background: var(--ps-ink); border: 1px solid rgba(243, 167, 18, 0.45); color: #fff;
}
.tcp-beta-title { margin: 0 0 6px; font-family: var(--font-body); font-weight: 900; font-size: 20px; line-height: 1.2; color: #fff; }
.tcp-beta-text { margin: 0 0 14px; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, 0.86); }
.tcp-beta-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tcp-beta-input {
  flex: 1 1 160px; min-width: 0; height: 44px; padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 0; background: #fff; color: var(--ps-ink);
  font-family: var(--font-body); font-size: 16px;
}
.tcp-beta-input::placeholder { color: #6b6660; opacity: 1; }
.tcp-beta-input:focus-visible { outline: 3px solid var(--ps-yellow); outline-offset: 1px; }
.tcp-beta-input[aria-invalid="true"] { border-color: #ff8a7a; box-shadow: 0 0 0 1px #ff8a7a; }
.tcp-beta-btn {
  flex: 0 0 auto; height: 44px; padding: 0 20px; border: 0; border-radius: 0; cursor: pointer;
  background: var(--ps-yellow); color: var(--ps-ink);
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.tcp-beta-btn:hover { background: #ffbf3d; }
.tcp-beta-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.tcp-beta-btn:disabled { opacity: 0.6; cursor: wait; }
.tcp-beta-msg { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.4; }
.tcp-beta-msg:not(:empty) { margin-top: 10px; }
.tcp-beta-msg.is-error { color: #ffb3a8; }
.tcp-beta-msg.is-ok { color: #ffd27a; }
.tcp-beta-form.is-done .tcp-beta-row { display: none; }

.tcp-disclaimer { margin: 10px 0 0; font-size: 14px; color: #d6d1c8; }
.tcp-beta-privacy { margin: 10px 0 0; font-size: 13px; }
.tcp-beta-privacy a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.tcp-beta-privacy a:hover { color: var(--ps-yellow); }
.tcp-beta-privacy a:focus-visible { outline: 2px solid var(--ps-yellow); outline-offset: 2px; }
