/* =========================================================================
   STEADY STATE · replay page (extends brand.css + funnel-page.css)
   Hero (expiry in the eyebrow) · faux 16:9 player · Typeform application
   (dark theme in his colours) → gated Calendly (Calendly's own light look)
   · 4 videos · 8 viewer comments.
   ========================================================================= */

/* ---------------------------------------------------------------- hero */
.hero--rp { padding: clamp(84px, 12vh, 120px) 0 clamp(30px, 4vh, 44px); --flank-gap: 470px; }
.rp-title { max-width: 980px; }
.hero--rp .lead { margin-top: 20px; }

/* -------------------------------------------------------------- player */
.replay { position: relative; padding: clamp(12px, 2vh, 20px) 0 0; }
.replay .container { max-width: calc(1000px + 2 * var(--gutter)); }
.replay__player .player__img { object-position: 50% 40%; }
.player__time { font-size: calc(12px + var(--bump)); font-weight: 600; font-variant-numeric: tabular-nums; color: rgba(238, 243, 246, 0.86); }

/* ---------------------------------------------------------- apply head */
.apply { padding-top: clamp(72px, 10vh, 112px); }
.apply__head { margin-bottom: clamp(36px, 5vh, 48px); }
.apply__head .lead { margin-top: 16px; }

/* =========================================================================
   TYPEFORM · one question at a time, letter keys, OK / Enter, progress
   ========================================================================= */
.tf {
  position: relative; display: flex; flex-direction: column; max-width: 880px; min-height: 540px; margin: 0 auto;
  border-radius: 20px; overflow: hidden; text-align: left;
  background: radial-gradient(80% 60% at 100% 0%, rgba(12, 191, 240, 0.07), transparent 60%), #0c1215;
  border: 1px solid var(--hair-2); box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.95);
}
.tf:focus { outline: none; }
.tf__stage { flex: 1; display: flex; align-items: center; padding: clamp(40px, 6vw, 68px) clamp(22px, 7vw, 84px) 36px; }
.tf-slide, .tf-done { width: 100%; max-width: 640px; margin: 0 auto; }
.tf-slide.is-active { animation: tfIn 0.5s var(--ease) both; }
.tf-slide.is-back { animation-name: tfInBack; }
@keyframes tfIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes tfInBack { from { opacity: 0; transform: translateY(-26px); } to { opacity: 1; transform: none; } }
.tf-qnum { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; color: var(--accent); font-weight: 700; font-size: calc(15px + var(--bump)); }
.tf-qnum svg { width: 15px; height: 15px; }
.tf-q { margin: 0; color: var(--ink); font-family: var(--sans); font-weight: 500; font-size: calc(clamp(1.35rem, 2.3vw, 1.7rem) + var(--bump)); line-height: 1.3; letter-spacing: -0.005em; text-wrap: balance; }
.tf-req { margin-left: 4px; color: var(--accent); }
.tf-opts { display: flex; flex-direction: column; gap: 10px; max-width: 540px; margin-top: 28px; }
.tf-opt {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 8px 14px 8px 10px; border-radius: 8px;
  border: 1px solid rgba(12, 191, 240, 0.42); background: rgba(12, 191, 240, 0.07); color: var(--accent-2);
  font-family: var(--sans); font-weight: 600; font-size: calc(16px + var(--bump)); line-height: 1.3; text-align: left; cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.tf-opt:hover { background: rgba(12, 191, 240, 0.15); }
.tf-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tf-opt[aria-checked="true"] { background: rgba(12, 191, 240, 0.2); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.tf-opt.is-blink { animation: tfBlink 0.36s steps(1) 1; }
@keyframes tfBlink { 0%, 50% { opacity: 0.45; } 25%, 75%, 100% { opacity: 1; } }
.tf-key {
  flex: none; width: 28px; height: 28px; border-radius: 5px; display: grid; place-items: center;
  border: 1px solid rgba(12, 191, 240, 0.6); background: #0a1013; color: var(--accent-2);
  font-weight: 800; font-size: calc(12px + var(--bump));
}
.tf-opt[aria-checked="true"] .tf-key { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tf-label { flex: 1; min-width: 0; }
.tf-tick { width: 18px; height: 18px; flex: none; color: var(--accent); opacity: 0; }
.tf-opt[aria-checked="true"] .tf-tick { opacity: 1; }
.tf-err { margin: 14px 0 0; }
.tf-err:empty { display: none; }
.tf-err:not(:empty) {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 6px;
  background: rgba(255, 93, 108, 0.12); color: #ff9aa3; font-weight: 600; font-size: calc(13px + var(--bump));
}
.tf-actions { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.tf-ok {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 22px; border: 0; border-radius: 6px;
  background: var(--accent); color: var(--accent-ink); font-family: var(--sans); font-weight: 800; font-size: calc(16px + var(--bump));
  cursor: pointer; box-shadow: 0 10px 26px -12px var(--accent-glow); transition: filter 0.15s ease, transform 0.15s ease;
}
.tf-ok:hover { filter: brightness(1.08); }
.tf-ok:active { transform: translateY(1px); }
.tf-ok svg { width: 18px; height: 18px; }
.tf-hint { color: var(--faint); font-size: calc(12.5px + var(--bump)); }
.tf-hint b { color: var(--muted); font-weight: 700; }

.tf-done { display: flex; flex-direction: column; align-items: center; text-align: center; animation: tfIn 0.55s var(--ease) both; }
.tf-done[hidden] { display: none; }
.tf-done__chk {
  width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 22px;
  background: var(--accent-soft); border: 1px solid rgba(12, 191, 240, 0.5); color: var(--accent);
  box-shadow: 0 0 0 8px rgba(12, 191, 240, 0.06);
}
.tf-done__chk svg { width: 32px; height: 32px; }
.tf-done__h { margin: 0; max-width: 24ch; color: var(--ink); font-weight: 600; font-size: calc(clamp(1.4rem, 2.4vw, 1.75rem) + var(--bump)); line-height: 1.25; text-wrap: balance; }
.tf-done__p { margin: 10px 0 0; color: var(--muted); font-size: calc(1rem + var(--bump)); }

.tf__foot { position: relative; }
.tf-progress { height: 4px; background: rgba(238, 243, 246, 0.08); }
.tf-progress i { display: block; width: 0; height: 100%; background: var(--accent); border-radius: 0 3px 3px 0; transition: width 0.45s var(--ease); }
.tf-brandbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 20px; }
.tf-count { color: var(--faint); font-size: calc(12.5px + var(--bump)); font-variant-numeric: tabular-nums; }
.tf-nav { display: flex; align-items: center; gap: 4px; }
.tf-nav button {
  width: 44px; height: 44px; border: 0; border-radius: 6px; display: grid; place-items: center; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); transition: opacity 0.2s ease, filter 0.15s ease;
}
.tf-nav button:hover { filter: brightness(1.08); }
.tf-nav button:disabled { opacity: 0.35; cursor: default; filter: none; }
.tf-nav button svg { width: 18px; height: 18px; }
.tf-brand {
  display: inline-flex; align-items: center; gap: 5px; min-height: 44px; margin-left: 8px; padding: 0 14px; border-radius: 6px;
  background: var(--accent); color: var(--accent-ink); font-size: calc(12.5px + var(--bump)); white-space: nowrap;
}
.tf-brand b { font-weight: 800; }

/* =========================================================================
   CALENDLY · gated: revealed only once the Typeform is complete
   ========================================================================= */
.booking { margin-top: clamp(72px, 10vh, 104px); }
.booking.is-revealed { animation: bookIn 0.7s var(--ease) both; }
@keyframes bookIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.booking__head { margin-bottom: clamp(32px, 4vh, 44px); }

.calendly {
  position: relative; display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr) minmax(200px, 250px);
  max-width: 1020px; min-height: 580px; margin: 0 auto; border-radius: 10px; overflow: hidden; text-align: left;
  background: #fff; color: #0a0a0a; font-family: var(--sans); font-size: calc(14px + var(--bump)); line-height: 1.4;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08), 0 40px 90px -46px rgba(0, 0, 0, 0.95);
}
.cy-ribbon {
  position: absolute; top: 26px; right: -44px; z-index: 2; width: 170px; padding: 6px 0 5px; transform: rotate(45deg);
  background: #505960; color: #fff; text-align: center; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.1;
  font-size: calc(9px + var(--bump)); font-weight: 600; pointer-events: none;
}
.cy-ribbon b { display: block; text-transform: none; letter-spacing: 0; font-size: calc(11px + var(--bump)); font-weight: 800; }
.cy-info { padding: 28px 26px; border-right: 1px solid #e7e7e7; }
.cy-av { display: block; width: 64px; height: 64px; }
.cy-av.facecrop, .cy-booked__av.facecrop { --fx: 52%; --fy: 31%; --fz: 300%; }
.cy-host { margin: 16px 0 4px; color: #6b6b6b; font-weight: 700; }
.cy-title { margin: 0 0 22px; color: #0a0a0a; font-weight: 700; font-size: calc(24px + var(--bump)); line-height: 1.2; }
.cy-meta p { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 14px; color: #6b6b6b; font-weight: 600; }
.cy-meta svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.cy-desc { margin: 20px 0 0; color: #4d5055; line-height: 1.55; }
.cy-cal { padding: 28px 26px 26px; }
.cy-h { margin: 0 0 22px; color: #0a0a0a; font-weight: 700; font-size: calc(19px + var(--bump)); }
.cy-month { display: flex; align-items: center; justify-content: center; gap: 22px; margin-bottom: 18px; }
.cy-month b { min-width: 9em; text-align: center; font-weight: 500; color: #0a0a0a; }
.cy-mnav { width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center; background: #e6efff; color: #006bff; cursor: pointer; }
.cy-mnav:disabled { background: transparent; color: #c2c2c2; cursor: default; }
.cy-mnav svg { width: 18px; height: 18px; }
.cy-dow, .cy-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cy-dow { margin-bottom: 8px; }
.cy-dow span { text-align: center; color: #1a1a1a; font-weight: 500; font-size: calc(10.5px + var(--bump)); letter-spacing: 0.04em; }
.cy-grid { row-gap: 6px; }
/* November 2026 opens on a Sunday, so the grid needs no leading blanks */
.cy-day {
  justify-self: center; width: 100%; max-width: 48px; aspect-ratio: 1; border: 0; border-radius: 50%; padding: 0;
  display: grid; place-items: center; background: transparent; color: #a8a8a8; font-family: inherit; font-size: calc(15px + var(--bump));
}
.cy-day.is-av { background: #e6efff; color: #006bff; font-weight: 700; cursor: pointer; transition: background 0.15s ease; }
.cy-day.is-av:hover { background: #d1e2ff; }
.cy-day.is-sel, .cy-day.is-sel:hover { background: #006bff; color: #fff; }
.cy-day:focus-visible, .cy-slot:focus-visible, .cy-confirm:focus-visible, .cy-mnav:focus-visible { outline: 2px solid #006bff; outline-offset: 2px; }
.cy-tz { margin-top: 24px; }
.cy-tz b { display: block; margin-bottom: 6px; font-weight: 700; color: #0a0a0a; }
.cy-tz span { display: inline-flex; align-items: center; gap: 8px; color: #1a1a1a; }
.cy-tz svg { width: 17px; height: 17px; }
.cy-times { display: flex; flex-direction: column; min-width: 0; padding: 28px 22px 24px 4px; }
.cy-lab { margin: 64px 0 18px; color: #1a1a1a; font-weight: 500; }
.cy-slots { display: flex; flex-direction: column; gap: 10px; }
.cy-row { display: flex; gap: 8px; }
.cy-slot {
  flex: 1 1 100%; min-width: 0; min-height: 52px; border: 1px solid rgba(0, 107, 255, 0.5); border-radius: 4px;
  background: #fff; color: #006bff; font-family: inherit; font-weight: 700; font-size: calc(15px + var(--bump)); cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, flex-basis 0.25s var(--ease);
}
.cy-slot:hover { border-color: #006bff; box-shadow: inset 0 0 0 1px #006bff; }
.cy-confirm {
  display: none; flex: 1 1 50%; min-height: 52px; border: 0; border-radius: 4px; background: #006bff; color: #fff;
  font-family: inherit; font-weight: 700; font-size: calc(15px + var(--bump)); cursor: pointer;
}
.cy-confirm:hover { background: #0057d4; }
.cy-row.is-sel .cy-slot { flex-basis: 50%; background: #666a73; border-color: #666a73; color: #fff; box-shadow: none; }
.cy-row.is-sel .cy-confirm { display: block; animation: cyIn 0.25s var(--ease) both; }
@keyframes cyIn { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }

.calendly.is-booked { grid-template-columns: 1fr; min-height: 0; }
.calendly.is-booked .cy-info, .calendly.is-booked .cy-cal, .calendly.is-booked .cy-times { display: none; }
.cy-booked { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 56px 24px 64px; animation: tfIn 0.5s var(--ease) both; }
.cy-booked[hidden] { display: none; }
.cy-booked__av { display: block; width: 64px; height: 64px; margin-bottom: 18px; }
.cy-booked__h { display: flex; align-items: center; gap: 10px; margin: 0; color: #0a0a0a; font-weight: 700; font-size: calc(22px + var(--bump)); }
.cy-booked__h svg { width: 26px; height: 26px; flex: none; }
.cy-booked__p { margin: 10px 0 26px; color: #4d5055; }
.cy-booked__card { width: 100%; max-width: 440px; padding: 20px 22px; border: 1px solid #e7e7e7; border-radius: 8px; text-align: left; }
.cy-booked__card p { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 10px; color: #4d5055; font-weight: 600; }
.cy-booked__card p:last-child { margin-bottom: 0; }
.cy-booked__card svg { width: 19px; height: 19px; flex: none; margin-top: 1px; color: #6b6b6b; }
.cy-booked__title { color: #0a0a0a !important; font-weight: 700 !important; font-size: calc(17px + var(--bump)); }

/* ------------------------------------------------------------ mobile */
@media (max-width: 960px) {
  .calendly { grid-template-columns: 1fr; min-height: 0; }
  .cy-info { border-right: 0; border-bottom: 1px solid #e7e7e7; padding: 24px 22px; }
  .cy-cal { padding: 24px 18px 8px; }
  .cy-times { padding: 18px 18px 24px; border-top: 1px solid #f0f0f0; }
  .cy-lab { margin: 0 0 14px; text-align: center; }
  .cy-grid { row-gap: 4px; }
}
@media (max-width: 760px) {
  .hero--rp { padding: 92px 0 26px; }
  .tf { min-height: 0; border-radius: 18px; }
  .tf__stage { padding: 36px 18px 28px; }
  .tf-hint { display: none; }
  .tf-brandbar { padding: 10px 10px 10px 14px; }
  .tf-brand { padding: 0 10px; margin-left: 4px; }
  .tf-count { display: none; }
  .tf-brandbar { justify-content: flex-end; }
  .cy-ribbon { top: 18px; right: -52px; }
}
@media (prefers-reduced-motion: reduce) {
  .tf-slide.is-active, .tf-done, .booking.is-revealed, .cy-booked, .cy-row.is-sel .cy-confirm, .tf-opt.is-blink { animation: none; }
  .tf-progress i, .cy-slot { transition: none; }
}
html.reduced .tf-slide.is-active, html.reduced .tf-done, html.reduced .booking.is-revealed, html.reduced .cy-booked { animation: none; }
