/* ==========================================================================
   Founder Island Fest 2026 — Countdown Party Replay page, v1
   Same tokens, background and footer as the Thank You page and the checkouts.

   PART 1 · GoHighLevel. Everything down to the "PART 2" line goes into the
   page's Custom CSS. It styles the two Custom HTML blocks (hero, footer).
   ========================================================================== */
.co, .cr-page {
  --co-ink: #130C19;
  --co-orange: #FF751F;
  --co-orange-hi: #FF9A55;
  --co-on-ink: #F8F3FA;
  --co-on-ink-2: rgba(248, 243, 250, .76);
  --co-on-ink-3: rgba(248, 243, 250, .56);
  --co-text: #1C1422;
  --co-grad: linear-gradient(100deg, #FF751F 0%, #E0607E 52%, #975AB6 100%);
  --co-font: "Work Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.co { font-family: var(--co-font); color: var(--co-text); -webkit-font-smoothing: antialiased; }
.co *, .co *::before, .co *::after { box-sizing: border-box; }
/* resets carry no specificity (:where), so every component rule below wins over them */
.co :where(p, h1, h2, ul) { margin: 0; padding: 0; }
.co :where(img) { max-width: 100%; }
.co :where(button) { margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }

/* ---- hero: logo, title, the replay, the two buttons ---- */
.cr { display: grid; justify-items: center; max-width: 960px; margin: 0 auto; text-align: center; color: var(--co-on-ink); }
.cr-logo { width: auto; height: clamp(56px, 5vw, 70px); margin-bottom: clamp(16px, 2.6vh, 24px); filter: drop-shadow(0 8px 30px rgba(255, 117, 31, .25)); }
.cr-chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); font-size: .78rem; font-weight: 700; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; color: #fff; }
.cr-chip i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--co-orange); box-shadow: 0 0 0 4px rgba(255, 117, 31, .22); }
.cr-title { margin: 14px 0 clamp(22px, 3.4vh, 34px); font-size: clamp(2.4rem, 1.1rem + 3.4vw, 4.2rem); font-weight: 800; line-height: 1.02; letter-spacing: -.04em; color: #fff; text-wrap: balance; }

/* the hand-drawn underline from the landing page's hero, drawn in once */
.cr-scb { position: relative; display: inline-block; padding-right: .08em; font-style: italic; font-weight: 300; letter-spacing: -.03em; }
.cr-scb svg { position: absolute; left: -3%; bottom: -.1em; width: 104%; height: .3em; overflow: visible; }
.cr-scb path { fill: none; stroke: var(--co-orange); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 360; stroke-dashoffset: 360; animation: crDraw 1.1s .45s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes crDraw { to { stroke-dashoffset: 0; } }

/* the replay: a gradient-edged frame, the still, and the play button */
/* on desktop the video takes the height that is left, so the two buttons stay in the first screen */
.cr-frame { position: relative; width: min(100%, max(560px, calc((100vh - 430px) * 16 / 9))); padding: 2px; border-radius: 28px; background: var(--co-grad); box-shadow: 0 50px 110px -40px rgba(0, 0, 0, .95), 0 0 90px -24px rgba(151, 90, 182, .6), 0 0 70px -30px rgba(255, 117, 31, .55); }
.cr-video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 26px; background: #000; }
.cr-video__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.cr-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cr-video.is-playing .cr-video__poster { visibility: hidden; }
.cr-play { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(60% 70% at 50% 50%, rgba(19, 12, 25, .05) 0%, rgba(19, 12, 25, .45) 100%); }
.cr-play__btn { position: relative; display: grid; place-items: center; width: clamp(72px, 9vw, 96px); height: clamp(72px, 9vw, 96px); border-radius: 50%; background: var(--co-orange); color: var(--co-ink); box-shadow: 0 20px 50px -12px rgba(255, 117, 31, .85), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .3s cubic-bezier(.2, .7, .2, 1), background .3s; }
.cr-play__btn::before, .cr-play__btn::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1.5px solid rgba(255, 154, 85, .7); animation: crRing 2.4s ease-out infinite; }
.cr-play__btn::after { animation-delay: 1.2s; }
@keyframes crRing { 0% { transform: scale(.88); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.cr-play__btn svg { width: 42%; height: 42%; margin-left: 7%; fill: currentColor; }
.cr-play:hover .cr-play__btn, .cr-play:focus-visible .cr-play__btn { transform: scale(1.08); background: var(--co-orange-hi); }
.cr-play:hover ~ .cr-video__poster, .cr-video:hover .cr-video__poster { transform: scale(1.025); }
.cr-play:focus-visible { outline: 3px solid #fff; outline-offset: -6px; border-radius: 26px; }

/* the two buttons */
.cr-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: clamp(24px, 3.6vh, 36px); }
.cr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 60px; padding: 0 30px; border-radius: 999px; font-size: 1.06rem; font-weight: 700; letter-spacing: -.005em; line-height: 1.2; text-decoration: none; transition: transform .25s cubic-bezier(.2, .7, .2, 1), background .25s, box-shadow .25s; }
.cr-btn svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.cr-btn:hover { transform: translateY(-2px); }
.cr-btn:hover svg { transform: translateX(3px); }
.cr-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.cr-btn--primary { background: var(--co-orange); color: var(--co-ink); box-shadow: 0 18px 40px -14px rgba(255, 117, 31, .9), inset 0 1px 0 rgba(255, 255, 255, .35); }
.cr-btn--primary:hover { background: var(--co-orange-hi); }
.cr-btn--glass { padding-left: 9px; background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.cr-btn--glass:hover { background: rgba(255, 255, 255, .14); }
.cr-btn__ava { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--co-orange), 0 0 0 4px rgba(255, 117, 31, .2); }

/* ---- footer (same as the Thank You page and the checkouts) ---- */
.co-foot { background: #0B070F; font-size: .95rem; color: var(--co-on-ink-2); }
.co-foot__in { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; max-width: 1180px; margin: 0 auto; padding: clamp(56px, 7vw, 88px) clamp(16px, 4vw, 44px) 32px; }
.co-foot__logo { width: auto; height: 76px; margin-bottom: 18px; }
.co-foot__ask { font-size: 1.1rem; font-weight: 700; color: #fff; }
.co-foot__mail { display: inline-flex; margin-top: 14px; padding: 10px 18px; border-radius: 999px; background: var(--co-orange); font-weight: 700; color: var(--co-ink); text-decoration: none; }
.co-foot__col { display: grid; align-content: start; gap: 10px; }
.co-foot__col p { font-weight: 700; color: #fff; }
.co-foot__col a { color: var(--co-on-ink-2); text-decoration: none; }
.co-foot__col a:hover, .co-foot__bottom a:hover { color: #fff; }
.co-foot__col--plain { padding-top: calc(1.65em + 10px); }
.co-foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px 24px; max-width: 1180px; margin: 0 auto; padding: 22px clamp(16px, 4vw, 44px) calc(26px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .1); font-size: .84rem; color: var(--co-on-ink-3); }
.co-foot__credit { margin-top: 4px; }
.co-foot__legal { display: flex; gap: 20px; }
.co-foot__bottom a { color: var(--co-on-ink-2); }

@media (max-width: 760px) {
  .cr-logo { height: 46px; margin-bottom: 16px; }
  .cr-chip { padding: 6px 13px; font-size: .68rem; }
  .cr-title { margin: 12px 0 22px; font-size: 2.15rem; }
  .cr-frame { width: 100%; border-radius: 20px; }
  .cr-video { border-radius: 18px; }
  .cr-play:focus-visible { border-radius: 18px; }
  .cr-ctas { flex-direction: column; align-items: stretch; width: 100%; gap: 12px; margin-top: 24px; }
  .cr-btn { min-height: 56px; font-size: 1rem; }
  .co-foot__in { grid-template-columns: 1fr 1fr; gap: 22px 16px; padding: 40px 20px 22px; }
  .co-foot__brand { grid-column: 1 / -1; }
  .co-foot__logo { height: 56px; margin-bottom: 12px; }
  .co-foot__col--plain { padding-top: 0; }
  .co-foot__bottom { padding: 16px 20px calc(20px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .cr-scb path { animation: none; stroke-dashoffset: 0; }
  .cr-play__btn::before, .cr-play__btn::after { animation: none; opacity: 0; }
  .cr-video__poster, .cr-play__btn, .cr-btn, .cr-btn svg { transition: none; }
}

/* ==========================================================================
   PART 2 · PREVIEW ONLY — not for GoHighLevel.
   In GHL the dark background and the row are section and row settings.
   These rules only make the preview look the same.
   ========================================================================== */
.cr-page *, .cr-page *::before, .cr-page *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.cr-page { margin: 0; background: var(--co-ink); font-family: var(--co-font); color: var(--co-text); -webkit-font-smoothing: antialiased; }

/* the section and its row */
.cr-hero { display: grid; align-content: center; min-height: 100svh; padding: clamp(32px, 5vh, 64px) clamp(16px, 4vw, 44px) clamp(40px, 6vh, 72px); background: var(--co-ink) url("../img/ty-bg.webp") center / cover no-repeat; }
.cr-row { width: 100%; max-width: 1180px; margin: 0 auto; }

/* the note the preview's buttons show */
.cr-toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 10; width: max-content; max-width: calc(100vw - 32px); margin: 0; padding: 12px 18px; border-radius: 14px; background: #fff; box-shadow: 0 20px 50px -18px rgba(0, 0, 0, .7); font: 600 .9rem/1.4 var(--co-font); color: var(--co-text); transform: translateX(-50%); }

@media (max-width: 760px) {
  .cr-hero { align-content: start; min-height: 0; padding: 28px 16px 56px; }
}
