/* ==========================================================================
   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; }

/* ==========================================================================
   THANK-YOU page
   ========================================================================== */
.ty-hero { text-align: center; padding: clamp(72px, 9vw, 116px) 0 8px; }
.ty-h1 { font-size: calc(clamp(30px, 6.4vw, 78px) + 2px); white-space: nowrap; }
.ty-hero .lead { margin-top: 16px; color: var(--ink); opacity: 0.72; }

/* ---- prep video faux player ---- */
.prep { max-width: 880px; margin: 56px auto 0; text-align: center; }
.prep .eyebrow { margin-bottom: 10px; }
.prep-line { margin: 0 0 26px; font-size: calc(17px + 2px); color: var(--muted); }
.prep-player { position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: var(--plum); cursor: pointer;
  box-shadow: 0 50px 90px -46px rgba(26, 16, 32, 0.55), 0 0 0 1px var(--hair-soft); }
.prep-player img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; transition: transform 1.2s var(--ease); }
.prep-player:hover img { transform: scale(1.025); }
.prep-player::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 70% at 50% 46%, rgba(26, 16, 32, 0.05), rgba(26, 16, 32, 0.38)), linear-gradient(180deg, transparent 70%, rgba(26, 16, 32, 0.45)); }
.prep-play { position: absolute; z-index: 2; top: 50%; left: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.22), 0 20px 50px -14px rgba(209, 0, 111, 0.7); transition: transform 0.4s var(--ease); }
.prep-play svg { width: 32px; height: 32px; margin-left: 4px; }
.prep-player:hover .prep-play { transform: scale(1.06); }
.prep-bar { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 18px; display: flex; align-items: center; gap: 14px; }
.prep-bar i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.35); position: relative; overflow: hidden; }
.prep-bar i::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4%; background: var(--accent-hot); border-radius: 4px; }
.prep-bar em { font-style: normal; font-size: calc(12px + 2px); font-weight: 600; color: #fff; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }

/* ---- steps ---- */
.steps { max-width: 900px; margin: 84px auto 0; display: flex; flex-direction: column; gap: 28px; }
.step { position: relative; text-align: center; background: var(--surface); border-radius: 28px; padding: 46px clamp(20px, 4vw, 48px) 48px;
  border: 1px solid var(--hair-soft); box-shadow: 0 1px 0 #fff inset, 0 30px 60px -40px rgba(26, 16, 32, 0.35); }
.step-n { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 50%; background: var(--accent); color: #fff;
  font-family: var(--display); font-weight: 600; font-size: calc(22px + 2px); box-shadow: 0 0 0 7px var(--accent-soft); }
.step-h { font-size: calc(clamp(26px, 3vw, 36px) + 2px); line-height: 1.08; max-width: 24ch; margin: 0 auto; }
.step-sub { margin: 12px auto 0; font-size: calc(17px + 2px); color: var(--muted); max-width: 46ch; text-wrap: balance; }

/* calendar buttons */
.cal-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.cal-btn { display: inline-flex; align-items: center; gap: 11px; min-height: 52px; padding: 12px 22px; border-radius: 14px; text-decoration: none;
  font-size: calc(15px + 2px); font-weight: 600; color: var(--ink); background: #fff; border: 1px solid var(--hair); box-shadow: 0 6px 16px -12px rgba(26, 16, 32, 0.4);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.cal-btn:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 14px 26px -16px rgba(209, 0, 111, 0.45); }
.cal-btn svg { width: 22px; height: 22px; flex: none; }

/* ---- Gmail mock ---- */
.gmail { margin: 32px auto 0; width: 100%; border-radius: 16px; overflow: hidden; background: #fff; color: #202124; text-align: left;
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif; font-size: calc(14px + 2px); line-height: 1.3;
  border: 1px solid rgba(0, 0, 0, 0.1); box-shadow: 0 30px 60px -34px rgba(26, 16, 32, 0.45); }
.gmail svg { flex: none; }
.gm-top { display: flex; align-items: center; gap: 16px; padding: 10px 16px; background: #f8fafd; }
.gm-burger { width: 20px; height: 20px; color: #5f6368; }
.gm-logo { display: flex; align-items: center; gap: 8px; }
.gm-logo svg { width: 30px; height: 23px; }
.gm-logo span { font-size: calc(21px + 2px); color: #5f6368; letter-spacing: -0.01em; }
.gm-search { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 12px; background: #e9eef6; border-radius: 24px; padding: 10px 16px; color: #5f6368; }
.gm-search svg { width: 18px; height: 18px; }
.gm-search .ph { font-size: calc(15px + 2px); }
.gm-top-r { display: flex; align-items: center; gap: 16px; margin-left: auto; color: #5f6368; }
.gm-top-r svg { width: 20px; height: 20px; }
.gm-ava { width: 30px; height: 30px; border-radius: 50%; background: #0b8043; color: #fff; display: grid; place-items: center; font-weight: 500; font-size: calc(14px + 2px); }
.gm-body { display: flex; background: #f8fafd; }
.gm-rail { width: 200px; flex: none; padding: 6px 8px 14px 8px; }
.gm-compose { display: inline-flex; align-items: center; gap: 12px; background: #c2e7ff; color: #001d35; font-weight: 500; font-size: calc(14px + 2px); border-radius: 16px; padding: 16px 22px 16px 16px; margin: 2px 0 12px; }
.gm-compose svg { width: 20px; height: 20px; }
.gm-nav div { display: flex; align-items: center; gap: 16px; padding: 6px 12px 6px 18px; border-radius: 0 16px 16px 0; font-size: calc(14px + 2px); color: #202124; }
.gm-nav div svg { width: 18px; height: 18px; color: #444746; }
.gm-nav div.on { background: #d3e3fd; font-weight: 700; color: #041e49; border-radius: 16px; }
.gm-nav .ct { margin-left: auto; font-size: calc(12px + 2px); }
.gm-main { flex: 1; min-width: 0; background: #fff; border-radius: 16px 0 0 0; }
.gm-tabs { display: flex; border-bottom: 1px solid #f1f3f4; }
.gm-tab { display: flex; align-items: center; gap: 12px; padding: 14px 18px; font-size: calc(14px + 2px); color: #444746; border-bottom: 3px solid transparent; flex: 1; max-width: 220px; }
.gm-tab svg { width: 18px; height: 18px; }
.gm-tab.on { color: #0b57d0; border-bottom-color: #0b57d0; font-weight: 500; }
.gm-row { display: grid; grid-template-columns: 18px 18px 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid #f1f3f4; }
.gm-row .cb { width: 15px; height: 15px; border: 2px solid #c4c7c5; border-radius: 3px; }
.gm-row .star { width: 18px; height: 18px; color: #dadce0; }
.gm-av { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; color: #fff; font-weight: 500; font-size: calc(15px + 2px); }
.gm-av img { width: 100%; height: 100%; object-fit: cover; }
.gm-txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.gm-sender { font-size: calc(14px + 2px); color: #444746; }
.gm-line { font-size: calc(13.5px + 2px); color: #5f6368; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-line b { color: #202124; font-weight: 400; }
.gm-time { font-size: calc(12.5px + 2px); color: #5f6368; white-space: nowrap; }
.gm-blur { filter: blur(3.4px); opacity: 0.75; user-select: none; }
.gm-hot { background: #fff; position: relative; box-shadow: inset 4px 0 0 var(--accent), 0 6px 22px -10px rgba(209, 0, 111, 0.35); z-index: 1; padding-top: 14px; padding-bottom: 14px; }
.gm-hot .gm-sender, .gm-hot .gm-line b, .gm-hot .gm-time { font-weight: 700; color: #1f1f1f; }
.gm-hot .star { color: #f4b400; }
.gm-hot .gm-av { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--accent-hot); }

/* ---- WhatsApp ---- */
.wa-btn { display: inline-flex; align-items: center; gap: 14px; margin-top: 30px; min-height: 64px; padding: 12px 30px 12px 20px; border-radius: 999px; text-decoration: none;
  background: #25D366; color: #fff; box-shadow: 0 18px 36px -16px rgba(37, 211, 102, 0.75); transition: transform 0.3s var(--ease), filter 0.3s var(--ease); }
.wa-btn:hover { transform: translateY(-2px); filter: brightness(1.04); }
.wa-btn svg { width: 32px; height: 32px; }
.wa-txt { display: flex; flex-direction: column; text-align: left; line-height: 1.15; }
.wa-txt b { font-size: calc(17px + 2px); font-weight: 700; }
.wa-txt small { font-size: calc(12.5px + 2px); opacity: 0.9; font-weight: 500; margin-top: 2px; }
.wa-note { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 22px auto 0; max-width: 64ch; font-size: calc(15px + 2px); font-weight: 600; color: var(--ink); }
.wa-note svg { width: 20px; height: 20px; flex: none; color: var(--accent); }

#students { padding-top: 120px; }

@media (max-width: 860px) {
  .gm-rail { display: none; }
  .gm-main { border-radius: 0; }
  .gm-top-r svg { display: none; }
}
@media (max-width: 560px) {
  .ty-h1 { font-size: calc(7.3vw + 2px); }
  .step { border-radius: 22px; padding: 38px 16px 38px; }
  .gm-top { gap: 10px; padding: 10px 12px; }
  .gm-logo span { display: none; }
  .gm-search { padding: 9px 12px; }
  .gm-search .ph { font-size: calc(14px + 2px); }
  .gm-tab { padding: 12px 10px; gap: 8px; font-size: calc(13px + 2px); }
  .gm-tab:not(.on) { font-size: 0; gap: 0; flex: 0 0 auto; }
  .gm-row { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; padding: 10px 12px; }
  .gm-row .cb, .gm-row .star { display: none; }
  .gm-line { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .gm-snip { display: none; }
  .wa-btn { padding: 12px 24px 12px 18px; }
  .wa-note { font-size: calc(14px + 2px); text-align: left; }
  .cal-btn { width: 100%; justify-content: center; }
  .prep-play { width: 68px; height: 68px; margin: -34px 0 0 -34px; }
  .prep-play svg { width: 26px; height: 26px; }
  .prep-player { border-radius: 18px; }
}
