/* =========================================================
   CoachPro landing — pure dark + chartreuse, neural sports background
   ========================================================= */
:root {
  --bg: #030303;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f2f2;
  --muted: #9a9a9a;
  --dim: #616161;
  --accent: #c6ff3d;            /* chartreuse */
  --accent-2: #a8e61d;          /* deeper chartreuse */
  --accent-soft: rgba(198, 255, 61, 0.12);
  --accent-line: rgba(198, 255, 61, 0.45);
  --accent-glow: rgba(198, 255, 61, 0.35);
  --on-accent: #0a0f00;
  --radius: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}
h1, h2, h3, .quote, .brand-name, .stats strong { font-family: "Sora", sans-serif; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--on-accent); }

/* ---------- Neural background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
#neural {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  /* dim the net behind center content so text stays readable */
  -webkit-mask-image: radial-gradient(ellipse 48% 46% at 50% 46%, rgba(0,0,0,.28) 0%, rgba(0,0,0,.45) 55%, #000 100%);
          mask-image: radial-gradient(ellipse 48% 46% at 50% 46%, rgba(0,0,0,.28) 0%, rgba(0,0,0,.45) 55%, #000 100%);
}
.bg .glow {
  position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(198,255,61,.07) 0%, transparent 60%);
  top: -25vmax; left: 50%; transform: translateX(-50%);
  animation: breathe 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes breathe { 50% { opacity: .55; transform: translateX(-50%) scale(1.08); } }
.bg .vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,.75) 100%);
}
.noise {
  position: absolute; inset: 0; opacity: .05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 48px);
  backdrop-filter: blur(12px);
  background: linear-gradient(to bottom, rgba(3,3,3,.85), rgba(3,3,3,0));
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); box-shadow: 0 0 24px var(--accent-glow);
}
.brand-name { font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.topbar-link { color: var(--muted); font-size: .92rem; font-weight: 500; transition: color .2s; }
.topbar-link:hover { color: var(--accent); }

/* ---------- Views ---------- */
main { flex: 1; position: relative; }
.view {
  display: none;
  min-height: calc(100vh - 140px);
  padding: 24px clamp(16px, 4vw, 48px) 64px;
}
.view.active { display: flex; justify-content: center; animation: viewIn .7s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(24px) scale(.985); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- Shared bits ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(10,10,10,.7); border: 1px solid var(--border);
  font-size: .82rem; color: var(--muted); font-weight: 500;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent-glow); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(198,255,61,0); } 100% { box-shadow: 0 0 0 0 rgba(198,255,61,0); } }
.grad-text {
  background: linear-gradient(100deg, var(--accent-2) 0%, var(--accent) 40%, #efffc4 50%, var(--accent) 60%, var(--accent-2) 100%);
  background-size: 250% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 5s linear infinite;
}
@keyframes shine { from { background-position: 100% center; } to { background-position: -150% center; } }
.lead { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.65; max-width: 600px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; font-weight: 600; color: var(--accent); margin-bottom: 12px; }
.glass {
  background: linear-gradient(160deg, rgba(22,22,22,.78), rgba(8,8,8,.82));
  border: 1px solid var(--border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.05);
}
.hidden { display: none !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 14px; font-weight: 600; font-size: 1rem;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s;
}
.btn-lg { padding: 18px 34px; font-size: 1.08rem; border-radius: 16px; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 40px -10px var(--accent-glow); }
.btn-primary:hover { transform: translateY(-2px); background: #d6ff6b; box-shadow: 0 16px 50px -8px rgba(198,255,61,.55); }
.btn-primary svg { transition: transform .25s var(--ease); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost { background: rgba(14,14,14,.8); border: 1px solid var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent-line); color: var(--accent); transform: translateY(-2px); }

/* ---------- Page 1: Hero / Quote ---------- */
.hero { max-width: 900px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding-top: 4vh; }
.quote-mark { width: 54px; height: 54px; color: var(--accent); opacity: .9; margin-top: 10px; filter: drop-shadow(0 0 12px var(--accent-glow)); }
.quote { font-size: clamp(2rem, 4.6vw, 3.6rem); text-wrap: balance; font-weight: 800; line-height: 1.12; letter-spacing: -.03em; text-shadow: 0 4px 30px rgba(0,0,0,.8); }
.quote-author { color: var(--dim); font-size: 1rem; font-style: italic; margin-top: -6px; }
.hero-actions { margin-top: 10px; }
.stats { display: flex; gap: clamp(24px, 6vw, 64px); margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--border); }
.stats div { display: flex; flex-direction: column; gap: 4px; }
.stats strong { font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 700; }
.stats span { color: var(--dim); font-size: .85rem; }

/* ---------- Page 2: Quotes + choice ---------- */
.pick-wrap { width: 100%; max-width: 860px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.quote-stage { position: relative; width: 100%; min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.qs-item {
  position: absolute; left: 0; right: 0; top: 50%;
  font-family: "Sora", sans-serif; font-weight: 800; letter-spacing: -.03em; line-height: 1.12;
  font-size: clamp(2rem, 5.4vw, 4rem); text-wrap: balance; padding: 0 8px;
  text-shadow: 0 4px 30px rgba(0,0,0,.85);
  opacity: 0; transform: translateY(-50%) scale(.82); filter: blur(10px);
  pointer-events: none;
}
.qs-item.in  { animation: qsIn .55s var(--ease) forwards; }
.qs-item.out { animation: qsOut .45s var(--ease) forwards; }
@keyframes qsIn  { from { opacity: 0; transform: translateY(-50%) scale(.82); filter: blur(10px); } to { opacity: 1; transform: translateY(-50%) scale(1); filter: blur(0); } }
@keyframes qsOut { from { opacity: 1; transform: translateY(-50%) scale(1); filter: blur(0); } to { opacity: 0; transform: translateY(-50%) scale(1.12); filter: blur(10px); } }
.qs-foot { position: absolute; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.qs-bar { width: 160px; height: 3px; border-radius: 3px; background: var(--border); overflow: hidden; }
.qs-bar i { display: block; height: 100%; width: 0; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }
.qs-bar i.run { animation: qsBar linear forwards; }
@keyframes qsBar { to { width: 100%; } }
.skip { color: var(--dim); font-size: .88rem; transition: color .2s; }
.skip:hover { color: var(--accent); }

.pick { width: 100%; display: flex; flex-direction: column; align-items: center; padding-top: 6vh; animation: viewIn .7s var(--ease) both; }
.q-title { font-size: clamp(1.8rem, 4.4vw, 2.8rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: 36px; line-height: 1.2; text-wrap: balance; }
.pick-grid { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pick-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; text-align: left;
  padding: 32px 28px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(22,22,22,.85), rgba(8,8,8,.9));
  border: 1px solid var(--border); backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.9);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
  animation: cardUp .7s var(--ease) both;
}
.pick-card:nth-child(2) { animation-delay: .12s; }
@keyframes cardUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.pick-card:hover { transform: translateY(-6px); border-color: var(--accent-line); box-shadow: 0 0 60px -20px var(--accent-glow), 0 30px 80px -20px rgba(0,0,0,.9); }
.pick-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 6px; transition: background .3s, color .3s; }
.pick-card:hover .pick-icon { background: var(--accent); color: var(--on-accent); }
.pick-card h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; }
.pick-card p { color: var(--muted); line-height: 1.6; font-size: .95rem; }
.pick-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--accent); font-weight: 600; }
.pick-go svg { transition: transform .25s var(--ease); }
.pick-card:hover .pick-go svg { transform: translateX(5px); }

.link-back { margin-top: 28px; color: var(--dim); font-size: .9rem; transition: color .2s; }
.link-back:hover { color: var(--accent); }
.link-back.top { align-self: flex-start; margin: 0 0 8px; }

/* ---------- Page 3: Offer ---------- */
.offer { width: 100%; max-width: 1100px; display: flex; flex-direction: column; align-items: center; gap: clamp(48px, 8vw, 96px); }
.offer-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 8px; }
.offer-title { font-size: clamp(2.1rem, 5.5vw, 4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; max-width: 820px; text-shadow: 0 4px 30px rgba(0,0,0,.8); }

.video-frame { width: 100%; max-width: 960px; aspect-ratio: 16 / 9; overflow: hidden; padding: 0; position: relative; margin-top: -24px; border-color: var(--accent-line); box-shadow: 0 0 0 1px rgba(198,255,61,.08), 0 30px 90px -20px rgba(198,255,61,.18), 0 30px 80px -20px rgba(0,0,0,.9); }
.video-frame iframe, .video-frame video { width: 100%; height: 100%; border: 0; display: block; }
.video-poster {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background:
    radial-gradient(circle at 50% 45%, rgba(198,255,61,.12), transparent 50%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 48px),
    #070707;
  cursor: pointer;
}
.play {
  width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); padding-left: 6px;
  box-shadow: 0 0 0 14px rgba(198,255,61,.1), 0 0 0 28px rgba(198,255,61,.04), 0 0 60px var(--accent-glow);
  transition: transform .3s var(--ease);
  animation: ring 2.6s ease-in-out infinite;
}
@keyframes ring { 50% { box-shadow: 0 0 0 20px rgba(198,255,61,.07), 0 0 0 40px rgba(198,255,61,.02), 0 0 80px var(--accent-glow); } }
.video-poster:hover .play { transform: scale(1.08); }
.video-caption { color: var(--muted); font-size: .95rem; }

/* ---------- Register (Gmail) ---------- */
.register { width: 100%; max-width: 560px; padding: clamp(28px, 5vw, 44px); text-align: center; scroll-margin-top: 90px; }
.register h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; }
.reg-sub { color: var(--muted); margin-bottom: 26px; }
.reg-google { display: flex; justify-content: center; min-height: 44px; }
.btn-google {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; max-width: 320px; padding: 13px 22px; border-radius: 999px;
  background: #fff; color: #1f1f1f; font-weight: 600; font-size: .98rem;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.btn-google:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(255,255,255,.35); }
.reg-or { display: flex; align-items: center; gap: 14px; margin: 24px 0 18px; color: var(--dim); font-size: .85rem; }
.reg-or::before, .reg-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.reg-form { display: flex; flex-direction: column; gap: 12px; }
.reg-form input {
  width: 100%; padding: 14px 16px; border-radius: 12px; font: inherit; font-size: 1rem; color: var(--text);
  background: rgba(0,0,0,.5); border: 1px solid var(--border-strong); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.reg-form input::placeholder { color: var(--dim); }
.reg-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.reg-form .btn { width: 100%; margin-top: 4px; }
.reg-error { color: #ff8a8a; font-size: .88rem; min-height: 1.2em; margin-top: 10px; }
.reg-note { color: var(--dim); font-size: .8rem; }
.register.done { padding: 20px 24px; border-color: var(--accent-line); }
.reg-done { display: flex; align-items: center; gap: 14px; text-align: left; }
.reg-check { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); box-shadow: 0 0 24px var(--accent-glow); }
.reg-done-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.reg-done-text strong { font-family: "Sora", sans-serif; font-size: 1.05rem; }
.reg-done-text span { color: var(--muted); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reg-done .link-back { margin: 0; }

/* ---------- Package ---------- */
.package .eyebrow { margin-bottom: 28px; }
.package { width: 100%; max-width: 900px; display: flex; flex-direction: column; align-items: center; scroll-margin-top: 90px; animation: cardUp .8s var(--ease) both; }
.pkg {
  position: relative; width: 100%; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center;
  padding: clamp(28px, 5vw, 44px);
  border-color: var(--accent-line);
  background: linear-gradient(160deg, rgba(198,255,61,.08), rgba(8,8,8,.92) 50%);
  box-shadow: 0 0 80px -24px var(--accent-glow), 0 30px 80px -20px rgba(0,0,0,.9);
}
.plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 5px 14px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .74rem; font-weight: 700; white-space: nowrap; }
.pkg-info h3 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); font-weight: 700; letter-spacing: -.01em; margin-bottom: 18px; }
.pkg-desc { color: var(--muted); line-height: 1.55; margin-bottom: 20px; }
.pkg-perks { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.pkg-perks li { display: flex; gap: 10px; color: #d6d6d6; font-size: .95rem; line-height: 1.4; }
.pkg-perks li svg { flex-shrink: 0; color: var(--accent); margin-top: 1px; }
.pkg-buy { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 28px 20px; border-radius: 18px; background: rgba(0,0,0,.45); border: 1px solid var(--border); text-align: center; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price strong { font-family: "Sora", sans-serif; font-size: clamp(2.4rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; color: var(--accent); }
.price span { color: var(--dim); font-size: .95rem; }
.pkg-buy .btn { width: 100%; }
.secure { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: .8rem; text-align: center; flex-wrap: wrap; justify-content: center; }
.secure svg { color: var(--accent); }

/* ---------- Footer & toast ---------- */
.footer { text-align: center; padding: 28px 16px; color: var(--dim); font-size: .85rem; border-top: 1px solid var(--border); background: rgba(3,3,3,.8); }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  padding: 14px 22px; border-radius: 14px; background: #0e0e0e; border: 1px solid var(--accent-line);
  box-shadow: 0 20px 50px rgba(0,0,0,.7); font-size: .92rem; transition: all .4s var(--ease); z-index: 50; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .pkg { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  #neural { -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.3) 18%, rgba(0,0,0,.3) 85%, #000 100%); mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.3) 18%, rgba(0,0,0,.3) 85%, #000 100%); }
  .pick-grid { grid-template-columns: 1fr; }
  .pick-card { padding: 26px 22px; }
  .stats { gap: 20px; }
  .topbar-link { font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Package shine (every 3s) ---------- */
.pkg { animation: pkgGlow 3s ease-in-out infinite; }
.pkg::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(198,255,61,.22) 46%, rgba(255,255,255,.35) 50%, rgba(198,255,61,.22) 54%, transparent 60%);
  background-size: 260% 100%; background-repeat: no-repeat;
  z-index: 2; mix-blend-mode: screen;
  animation: pkgShine 3s ease-in-out infinite;
}
@keyframes pkgShine {
  0%   { background-position: 115% 0; }
  45%  { background-position: -15% 0; }
  100% { background-position: -15% 0; }
}
@keyframes pkgGlow {
  0%, 100% { box-shadow: 0 0 80px -24px var(--accent-glow), 0 30px 80px -20px rgba(0,0,0,.9); }
  18%      { box-shadow: 0 0 110px -14px rgba(198,255,61,.55), 0 30px 80px -20px rgba(0,0,0,.9); }
}
.pkg-buy .btn { position: relative; overflow: hidden; }
.pkg-buy .btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 45%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.65), transparent);
  transform: skewX(-20deg);
  animation: btnShine 3s ease-in-out infinite; animation-delay: .35s;
}
@keyframes btnShine {
  0%   { left: -60%; }
  25%  { left: 130%; }
  100% { left: 130%; }
}
.pkg-info, .pkg-buy { position: relative; z-index: 1; }

/* ---------- Price box: solid chartreuse ---------- */
.pkg-buy {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 0 50px -10px var(--accent-glow);
}
.pkg-buy .price strong { color: var(--on-accent); }
.pkg-buy .price span { color: rgba(10,15,0,.65); }
.pkg-buy .btn-primary {
  background: #0a0a0a; color: var(--accent);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.6);
}
.pkg-buy .btn-primary:hover { background: #000; box-shadow: 0 14px 34px -10px rgba(0,0,0,.75); }
.pkg-buy .btn::after { background: linear-gradient(100deg, transparent, rgba(198,255,61,.35), transparent); }
.pkg-buy .secure { color: rgba(10,15,0,.7); }
.pkg-buy .secure svg { color: var(--on-accent); }

/* ---------- Video cover image ---------- */
.video-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .6s var(--ease); }
.video-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(circle at 50% 50%, rgba(0,0,0,.15), rgba(0,0,0,.6)); }
.video-cover.hidden + .video-shade { display: none; }
.video-poster .play, .video-poster .video-caption { position: relative; z-index: 2; }
.video-poster .video-caption { color: #e8e8e8; text-shadow: 0 2px 10px rgba(0,0,0,.8); }
.video-poster:hover .video-cover { transform: scale(1.03); }

/* ---------- YouTube player + our end screen ---------- */
.video-frame .yt-mount, .video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.video-end {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px;
  background: radial-gradient(circle at 50% 45%, rgba(198,255,61,.14), transparent 55%), #070707;
  animation: viewIn .6s var(--ease) both;
}
.video-end h3 { font-size: clamp(1.4rem, 3.4vw, 2.2rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: 14px; }
.video-end-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- Shielded YouTube player ---------- */
/* Crop: player is 2x taller than the box, so YouTube's title bar (top) and
   logo / "Watch on YouTube" (bottom) sit in the cut-off area. */
.video-frame.yt-on { background: #000; }
.video-frame.yt-on .yt-mount, .video-frame.yt-on iframe {
  position: absolute; left: 0; width: 100%; top: -50%; height: 200%; border: 0; z-index: 3; pointer-events: none;
}
.yt-shield { position: absolute; inset: 0; z-index: 5; cursor: pointer; background: transparent; }
.yt-pause {
  position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; cursor: pointer;
  background: #050505 center / cover no-repeat;
}
.yt-pause::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.yt-pause .play { position: relative; }
.yt-spin {
  position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; z-index: 6;
  border-radius: 50%; border: 3px solid rgba(198,255,61,.2); border-top-color: var(--accent);
  animation: ytspin .8s linear infinite; pointer-events: none;
}
@keyframes ytspin { to { transform: rotate(360deg); } }

.yt-controls {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 7;
  display: flex; align-items: center; gap: 12px; padding: 26px 16px 14px;
  background: linear-gradient(to top, rgba(0,0,0,.85), transparent);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.video-frame.yt-idle .yt-controls { opacity: 0; transform: translateY(8px); pointer-events: none; }
.video-frame.yt-idle .yt-shield { cursor: none; }
.yt-btn { width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; color: var(--accent); transition: background .2s; }
.yt-btn:hover { background: rgba(198,255,61,.12); }
.yt-btn .i-pause, .video-frame.yt-playing .yt-btn .i-play { display: none; }
.video-frame.yt-playing .yt-btn .i-pause { display: block; }
.yt-btn .i-mute, .video-frame.yt-muted .yt-btn .i-vol { display: none; }
.video-frame.yt-muted .yt-btn .i-mute { display: block; }
.yt-time { color: #e6e6e6; font-size: .85rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.yt-seek { flex: 1; height: 16px; display: flex; align-items: center; cursor: pointer; position: relative; }
.yt-seek::before { content: ""; position: absolute; left: 0; right: 0; height: 4px; border-radius: 4px; background: rgba(255,255,255,.18); }
.yt-seek-fill { position: relative; height: 4px; border-radius: 4px; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); width: 0; }
.yt-seek-fill::after { content: ""; position: absolute; right: -6px; top: -4px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.video-frame:fullscreen { border-radius: 0; max-width: none; }
.video-end { z-index: 8; }
@media (max-width: 520px) {
  .yt-controls { gap: 6px; padding: 20px 8px 8px; }
  .yt-time { font-size: .72rem; margin-right: 6px; }
}

/* ---------- Thank-you page ---------- */
.thanks { align-self: flex-start; width: 100%; max-width: 640px; margin-top: 6vh; padding: 48px 36px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.thanks .eyebrow { margin-bottom: 0; }
.thanks-check { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); box-shadow: 0 0 50px var(--accent-glow); margin-bottom: 6px; }
.thanks-title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.thanks .btn { margin-top: 10px; }
.thanks-note { color: var(--dim); font-size: .88rem; }
.thanks-note:empty { display: none; }
@media (max-width: 520px) { .thanks { padding: 36px 22px; } .thanks .btn { width: 100%; justify-content: center; } }

/* Thank-you animation: tick storm, then pop-up card */
.tick-rain { position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden; }
.tick-rain i { position: absolute; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); box-shadow: 0 0 30px var(--accent-glow); opacity: 0; transform: scale(0) rotate(-60deg); animation: tickIn .55s cubic-bezier(.34, 1.56, .64, 1) var(--d) forwards; }
.tick-rain i svg { width: 52%; height: 52%; }
.tick-rain.out i { animation: tickOut .8s ease-out var(--d2) forwards; }
@keyframes tickIn { to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes tickOut { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1); } }

.thanks.pre { opacity: 0; transform: scale(.5); }
.thanks.pop { animation: thanksPop .75s cubic-bezier(.34, 1.56, .64, 1) .15s both; }
.thanks.pop > * { animation: thanksRise .55s var(--ease) both; }
.thanks.pop > :nth-child(1) { animation: checkPop .7s cubic-bezier(.34, 1.8, .64, 1) .45s both; }
.thanks.pop > :nth-child(2) { animation-delay: .6s; }
.thanks.pop > :nth-child(3) { animation-delay: .7s; }
.thanks.pop > :nth-child(4) { animation-delay: .8s; }
.thanks.pop > :nth-child(5) { animation: btnPop .6s cubic-bezier(.34, 1.56, .64, 1) .95s both; }
.thanks.pop > :nth-child(6) { animation-delay: 1.1s; }
@keyframes thanksPop { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: scale(1); } }
@keyframes thanksRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes checkPop { 0% { opacity: 0; transform: scale(0) rotate(-90deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes btnPop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .tick-rain { display: none; } .thanks.pop, .thanks.pop > * { animation: none !important; } }
