/* ==========================================================================
   Funnel base (shared by register / thank-you / replay).
   Tokens come from ../assets/brand.css. Page-specific rules follow below.
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { line-height: 1.6; font-size: calc(17px + 2px); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }

/* ---- one continuous page canvas: blooms + faint ledger lines, sections stay transparent ---- */
.page { position: relative; isolation: isolate; overflow: hidden; background: var(--bg); }
.page::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1100px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 520px at 50% -40px, rgba(255, 0, 153, 0.16), transparent 72%),
    radial-gradient(40% 380px at 12% 120px, rgba(255, 79, 168, 0.08), transparent 70%),
    radial-gradient(40% 380px at 88% 160px, rgba(255, 79, 168, 0.07), transparent 70%); }
.page::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 900px; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(26, 16, 32, 0.035) 0 1px, transparent 1px 38px);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 18%, #000 20%, transparent 75%);
          mask-image: radial-gradient(70% 70% at 50% 18%, #000 20%, transparent 75%); }
.bloom-low { position: absolute; left: 0; right: 0; height: 900px; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 0, 153, 0.06), transparent 70%); }

/* tinted band that fades in and out (never a hard edge) */
.band { background: linear-gradient(180deg, rgba(252, 239, 245, 0) 0, var(--bg-2) 180px, var(--bg-2) calc(100% - 180px), rgba(252, 239, 245, 0) 100%); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 104px 0; position: relative; }

/* ---- type ---- */
h1, h2, h3 { margin: 0; font-family: var(--display); text-transform: uppercase; color: var(--ink); font-weight: 700; }
h1 { font-size: calc(clamp(38px, 6.2vw, 84px) + 2px); line-height: 1.02; letter-spacing: -0.005em; text-wrap: balance; }
h2 { font-size: calc(clamp(32px, 4.4vw, 54px) + 2px); line-height: 1.04; letter-spacing: 0; text-wrap: balance; }
h3 { font-weight: 600; letter-spacing: 0.01em; }
.hl { color: var(--accent); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: calc(12px + 2px); font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin: 0 0 20px; }
.eyebrow::before, .eyebrow::after { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--accent-hot); opacity: 0.55; }
.lead { font-size: calc(clamp(17px, 1.7vw, 20px) + 2px); color: var(--muted); line-height: 1.55; margin: 22px auto 0; max-width: 56ch; text-wrap: balance; }
.sec-head { text-align: center; max-width: 820px; margin: 0 auto 64px; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 60px; padding: 18px 42px; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  font-family: var(--display); font-weight: 600; font-size: calc(20px + 2px); letter-spacing: 0.08em; text-transform: uppercase; line-height: 1;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 18px 40px -16px rgba(209, 0, 111, 0.6);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease); }
.btn:hover { transform: translateY(-2px); background: #E0007A; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 24px 48px -16px rgba(209, 0, 111, 0.7); }
.btn:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 3px; }
.btn .ar { display: inline-block; transition: transform 0.35s var(--ease); font-family: var(--sans); font-weight: 600; }
.btn:hover .ar { transform: translateX(4px); }

/* ---- video testimonial cards (click-to-play: thumb swaps to the real iframe) ---- */
.vgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 36px; max-width: 980px; margin: 0 auto; }
.vcard { text-align: center; margin: 0; }
.vframe { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--plum);
  box-shadow: var(--shadow); border: 0; padding: 0; width: 100%; cursor: pointer; display: block; }
.vframe img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.vframe::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 70% at 50% 50%, rgba(26, 16, 32, 0), rgba(26, 16, 32, 0.32)); transition: opacity 0.4s var(--ease); }
.vframe:hover img { transform: scale(1.03); }
.vplay { position: absolute; z-index: 2; top: 50%; left: 50%; width: 66px; height: 66px; margin: -33px 0 0 -33px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, 0.96); color: var(--accent);
  box-shadow: 0 14px 34px -10px rgba(26, 16, 32, 0.55); transition: transform 0.35s var(--ease); }
.vplay svg { width: 24px; height: 24px; margin-left: 3px; }
.vframe:hover .vplay { transform: scale(1.08); }
.vframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vframe.is-playing { cursor: default; }
.vname { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: calc(22px + 2px); margin: 22px 0 4px; color: var(--ink); }
.vdesc { font-size: calc(16px + 2px); color: var(--muted); margin: 0 auto; max-width: 42ch; text-wrap: balance; line-height: 1.5; }

/* ---- proof grid: 8 identical white cards, screenshots contained (never cropped) ---- */
.proof-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.shot { position: relative; margin: 0; aspect-ratio: 1 / 1; min-height: 0; overflow: hidden; background: var(--surface); border-radius: var(--radius);
  box-shadow: 0 1px 0 var(--hair-soft), 0 16px 40px -26px rgba(26, 16, 32, 0.35); border: 1px solid var(--hair-soft); cursor: zoom-in;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.shot:hover { transform: translateY(-4px); box-shadow: 0 1px 0 var(--hair-soft), 0 26px 50px -26px rgba(209, 0, 111, 0.35); }
.shot img { position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); object-fit: contain; border-radius: 6px; }

/* lightbox for proof */
.lightbox { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 28px;
  background: rgba(26, 16, 32, 0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease); }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(900px, 100%); max-height: 86vh; width: auto; height: auto; border-radius: 14px; background: #fff; padding: 12px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.6); }
.lightbox .x { position: absolute; top: 18px; right: 18px; }

/* round close control used by modal + lightbox (visible on any surface) */
.x { box-sizing: content-box; width: 44px; height: 44px; padding: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--surface); color: var(--ink); border: 1px solid var(--hair); box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease); }
.x:hover { transform: rotate(90deg); color: var(--accent); border-color: var(--accent); }
.x svg { width: 16px; height: 16px; }

/* ---- footer: plum branding banner, 1.5x the lockup ---- */
.footfade { height: 120px; background: linear-gradient(180deg, rgba(255, 248, 251, 0), var(--bg)); }
.brandfoot .brand__word { font-size: calc(17px + 2px); }

/* ---- reveal on scroll (only when JS is running and motion is allowed) ---- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* headline mask reveal (signature moment on thank-you / replay) */
.mask { display: block; overflow: hidden; padding-bottom: 0.06em; }
.mask > span { display: block; animation: maskUp 1.15s var(--ease) both 0.1s; }
@keyframes maskUp { from { transform: translateY(105%); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .mask > span { animation: none; }
}

@media (max-width: 900px) {
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 700px) {
  body { font-size: calc(16px + 2px); }
  .section { padding: 76px 0; }
  .sec-head { margin-bottom: 44px; }
  .vgrid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .shot img { inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
  .btn { font-size: calc(18px + 2px); padding: 18px 30px; }
}

/* ---- mobile hardening (references/mobile.md) ---- */
img, svg, video, canvas, iframe { max-width: 100%; }
p, li, td, th, blockquote, figcaption, h1, h2, h3, h4, h5, h6 { overflow-wrap: anywhere; }
table, pre { display: block; max-width: 100%; overflow-x: auto; }

/* ==========================================================================
   REGISTER page
   ========================================================================== */

/* ---- hero ---- */
.hero { text-align: center; padding: clamp(72px, 10vw, 128px) 0 40px; }
.hero h1 { max-width: 1080px; margin: 0 auto; font-size: calc(clamp(38px, 5.8vw, 80px) + 2px); }
.hero .lead { font-size: calc(clamp(18px, 1.9vw, 22px) + 2px); color: var(--ink); opacity: 0.78; max-width: 46ch; }
.hero-cta { margin-top: 44px; }

/* hero entrance: quiet staggered rise */
.js .rise { opacity: 0; transform: translateY(18px); animation: rise 1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---- countdown: variant A flip-board, re-skinned ---- */
.cd { margin: 52px auto 0; max-width: 620px; }
.cd-when { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; font-size: calc(14px + 2px); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-hot); box-shadow: 0 0 0 0 rgba(255, 0, 153, 0.45); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 0, 153, 0.45); } 80%, 100% { box-shadow: 0 0 0 10px rgba(255, 0, 153, 0); } }
.cd-flip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 2vw, 18px); }
.cd-flip .u { min-width: 0; }
.cd-flip .card { position: relative; overflow: hidden; border-radius: 16px; padding: clamp(16px, 2.4vw, 24px) 0;
  font-family: var(--display); font-weight: 600; font-size: calc(clamp(40px, 6.4vw, 66px) + 2px); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: 0.01em;
  color: #fff; background: linear-gradient(180deg, var(--plum-2) 0%, var(--plum-2) 50%, var(--plum) 50%, var(--plum) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 22px 44px -22px rgba(26, 16, 32, 0.55); transform-origin: 50% 50%; }
.cd-flip .card::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, 0.55); }
.cd-flip .card::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--accent-hot), transparent); opacity: 0.85; }
.cd-flip .u:last-child .card { color: var(--accent-on-dark); }
.cd-flip .card.tick { animation: flip 0.55s cubic-bezier(0.3, 0.7, 0.3, 1); }
@keyframes flip { 0% { transform: perspective(500px) rotateX(0); } 45% { transform: perspective(500px) rotateX(-18deg); filter: brightness(1.25); } 100% { transform: none; } }
.cd-flip .lbl { display: block; margin-top: 12px; font-size: calc(11px + 2px); font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

/* ---- pillars: variant A connected step cards ---- */
.pillars { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.pline { position: absolute; top: 22px; left: 16%; right: 16%; height: 2px; background: linear-gradient(90deg, transparent, rgba(255, 0, 153, 0.45), transparent); }
.pillar { position: relative; text-align: center; background: var(--surface); border-radius: 22px; padding: 64px 30px 38px; margin-top: 22px;
  border: 1px solid var(--hair-soft); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 26px 50px -34px rgba(26, 16, 32, 0.35);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.pillar::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent-hot); opacity: 0; transition: opacity 0.5s var(--ease); }
.pillar:hover { transform: translateY(-6px); box-shadow: 0 1px 0 #fff inset, 0 34px 60px -34px rgba(209, 0, 111, 0.35); }
.pillar:hover::after { opacity: 1; }
.pillar .num { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-family: var(--display); font-weight: 600; font-size: calc(17px + 2px); letter-spacing: 0.04em; box-shadow: 0 0 0 6px var(--bg), 0 10px 22px -8px rgba(209, 0, 111, 0.6); }
.pillar .badge { width: 58px; height: 58px; margin: 0 auto; border-radius: 16px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); }
.pillar .badge svg { width: 28px; height: 28px; }
.pillar h3 { font-size: calc(clamp(22px, 2.1vw, 27px) + 2px); line-height: 1.12; margin: 22px auto 12px; max-width: 16ch; }
.pillar p { margin: 0 auto; font-size: calc(16px + 2px); color: var(--muted); line-height: 1.55; max-width: 30ch; text-align: center; }

/* ---- host: variant A split card ---- */
.host { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 52px; align-items: center; background: var(--surface); border-radius: 28px; padding: 30px;
  border: 1px solid var(--hair-soft); box-shadow: var(--shadow); max-width: 1060px; margin: 0 auto; }
.host-photo { aspect-ratio: 1 / 1; border-radius: 20px; overflow: hidden; background: var(--accent-hot); }
.host-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.host-body { padding-right: 18px; }
.host-name { font-size: calc(clamp(30px, 3vw, 40px) + 2px); line-height: 1.05; font-weight: 700; }
.host-role { margin: 10px 0 18px; font-size: calc(15px + 2px); font-weight: 600; color: var(--accent); }
.host-bio { margin: 0; font-size: calc(17px + 2px); color: var(--muted); line-height: 1.65; }
.host-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.hstat { background: var(--bg); border: 1px solid var(--hair-soft); border-radius: 16px; padding: 18px 12px; text-align: center; }
.hstat b { display: block; font-family: var(--display); font-weight: 600; font-size: calc(clamp(28px, 2.8vw, 34px) + 2px); line-height: 1; color: var(--accent); }
.hstat span { display: block; margin-top: 8px; font-size: calc(13px + 2px); line-height: 1.35; color: var(--muted); }
.press { margin: 22px 0 0; font-size: calc(13px + 2px); letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; font-weight: 600; text-align: center; }
.press span { color: var(--ink); opacity: 0.55; margin-right: 6px; }

/* ---- gift: variant A split ---- */
.gift { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 64px; align-items: center; max-width: 980px; margin: 0 auto; }
.gift-name { font-size: calc(clamp(32px, 3.8vw, 48px) + 2px); }
.gift-val { margin: 18px 0 0; font-size: calc(clamp(17px, 1.7vw, 20px) + 2px); color: var(--muted); line-height: 1.55; max-width: 34ch; }
.deliver { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 12px 20px; border-radius: 999px; font-size: calc(14px + 2px); font-weight: 700;
  color: #128C4A; background: rgba(37, 211, 102, 0.12); border: 1px solid rgba(37, 211, 102, 0.35); }
.deliver svg { width: 18px; height: 18px; flex: none; color: #25D366; }
.gift-art { display: grid; place-items: center; }
.gift-cover { width: min(340px, 100%); aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; background: #fff; transform: rotate(-4deg);
  box-shadow: 0 40px 70px -34px rgba(26, 16, 32, 0.45), 0 0 0 1px var(--hair-soft); transition: transform 0.7s var(--ease); }
.gift-cover:hover { transform: rotate(0) scale(1.02); }
.gift-cover img { width: 100%; height: 100%; object-fit: cover; }

/* ---- bottom CTA ---- */
.bottom-cta { text-align: center; padding: 8px 0 40px; }

/* ---- opt-in modal ---- */
.modal-overlay { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(26, 16, 32, 0.55); -webkit-backdrop-filter: blur(12px) saturate(120%); backdrop-filter: blur(12px) saturate(120%);
  opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease); }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal { position: relative; width: 100%; max-width: 460px; max-height: calc(100dvh - 40px); overflow-y: auto; text-align: center;
  background: radial-gradient(120% 60% at 50% 0%, #FFE6F2, var(--surface) 62%); border-radius: 28px; padding: 46px 38px 32px;
  box-shadow: 0 50px 120px -40px rgba(26, 16, 32, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  transform: translateY(14px) scale(0.965); opacity: 0; transition: transform 0.45s var(--ease), opacity 0.35s var(--ease); }
.modal-overlay.open .modal { transform: none; opacity: 1; }
.modal-x { position: absolute; top: 16px; right: 16px; }
.modal-bear { width: 74px; height: auto; margin: 0 auto 16px; }
.modal h3 { font-size: calc(36px + 2px); line-height: 1; }
.modal-sub { margin: 12px 0 28px; color: var(--muted); font-size: calc(16px + 2px); }
.field { text-align: left; margin-bottom: 14px; }
.field label { display: block; margin-bottom: 8px; font-size: calc(12px + 2px); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); opacity: 0.75; }
.field input { width: 100%; min-height: 54px; padding: 14px 18px; font-family: var(--sans); font-size: calc(16px + 2px); color: var(--ink); background: #fff;
  border: 1.5px solid var(--hair); border-radius: 14px; outline: none; transition: border-color 0.25s ease, box-shadow 0.25s ease; }
.field input::placeholder { color: #A99DAD; }
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(209, 0, 111, 0.12); }
.field input.err { border-color: #C2185B; box-shadow: 0 0 0 4px rgba(194, 24, 91, 0.12); }
.modal-err { min-height: 20px; margin: 4px 0 8px; font-size: calc(14px + 2px); font-weight: 600; color: #B0124F; }
.modal .btn { width: 100%; }
.modal-fine { margin: 14px 0 0; font-size: calc(13px + 2px); color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .js .rise { animation: none; opacity: 1; transform: none; }
  .cd-flip .card.tick, .live-dot { animation: none; }
  .modal-overlay, .modal { transition: none; }
}

@media (max-width: 900px) {
  .pillars { grid-template-columns: minmax(0, 1fr); gap: 44px; max-width: 520px; margin: 0 auto; }
  .pline { display: none; }
  .host { grid-template-columns: minmax(0, 1fr); gap: 30px; max-width: 560px; padding: 22px; }
  .host-body { padding: 0 6px 8px; text-align: center; }
  .gift { grid-template-columns: minmax(0, 1fr); gap: 44px; text-align: center; }
  .gift-val { margin-left: auto; margin-right: auto; }
}
@media (max-width: 520px) {
  .host-stats { grid-template-columns: minmax(0, 1fr); }
  .hstat { display: flex; align-items: baseline; justify-content: center; gap: 12px; padding: 14px 12px; }
  .hstat span { margin-top: 0; }
  .cd-flip .card { border-radius: 12px; }
  .cd-when { font-size: calc(12.5px + 2px); letter-spacing: 0.1em; }
  .modal { padding: 42px 22px 26px; border-radius: 22px; }
  .modal h3 { font-size: calc(30px + 2px); }
  .deliver { font-size: calc(13px + 2px); padding: 11px 16px; }
}
