/* ==========================================================================
   The Answer Is You — waitlist page for the newly updated course
   Ported from "The Answer Is You" design. The doorway is a plain rectangle
   (no arches on the site) and the hero is still: the doors stand ajar with
   light spilling out. The moving part sits lower down: the formula drawn as a
   beam of light, which switches between "Living from the past" and "Choosing
   on purpose" (slowly: the light sweeps take 7-9 s). Behaviour:
   assets/js/answer-is-you.js and main.js (forms).
   ========================================================================== */

.a-page { overflow: hidden; background: linear-gradient(180deg, #0A0410 0%, #110717 22%, #0A0410 46%, #110717 70%, #1A0B26 100%); }

/* ---------- hero (static) ---------- */
.a-hero { padding: 0 0 40px; background: radial-gradient(42% 46% at 76% 46%, rgba(122, 61, 184, .30) 0%, rgba(122, 61, 184, 0) 70%), radial-gradient(36% 30% at 8% 12%, rgba(86, 48, 138, .20) 0%, rgba(86, 48, 138, 0) 70%); }
.a-hg { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; gap: 32px; padding-top: 32px; }
.a-ht { position: relative; z-index: 2; padding-bottom: 40px; }
.a-eye { display: inline-flex; align-items: center; gap: 14px; font-size: 11.5px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: #D9C2F5; }
.a-dot { width: 7px; height: 7px; border-radius: 50%; background: #E9D5FF; box-shadow: 0 0 0 5px rgba(233, 213, 255, .12), 0 0 12px rgba(233, 213, 255, .9); }
.a-h1 { margin-top: 30px; font-family: var(--serif); font-weight: 500; line-height: .92; }
.a-h1 .l1 { display: block; font-size: clamp(50px, 6.6vw, 104px); letter-spacing: -.012em; color: var(--cream); }
.a-h1 .l2 { display: block; width: max-content; margin-left: -.03em; padding: 0 .08em .06em 0; font-style: italic; font-size: clamp(118px, 14.6vw, 226px); line-height: .88; background: linear-gradient(100deg, #B98CE8 0%, #E4C8FF 30%, #FFFFFF 44%, #F3E8FF 52%, #C9A6F0 70%, #9E63E0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 30px rgba(201, 166, 240, .42)); }
.a-tag { margin-top: 22px; font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.25; color: #EFE6F7; }
.a-intro { margin-top: 18px; max-width: 540px; font-size: 17px; line-height: 1.75; color: var(--text); }

/* waitlist form (used twice: in the hero and in the closing) */
.a-form { max-width: 560px; margin-top: 36px; scroll-margin-top: 40px; }
.a-lab { display: block; margin: 0 0 12px 22px; font-size: 11px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--lilac); }
.a-row { display: flex; gap: 8px; padding: 6px; border-radius: 999px; border: 1px solid rgba(217, 194, 245, .30); background: rgba(26, 11, 38, .6); transition: border-color .3s, box-shadow .3s; }
.a-row:focus-within { border-color: rgba(233, 213, 255, .8); box-shadow: 0 0 0 4px rgba(185, 140, 232, .16); }
.a-row:has([aria-invalid="true"]) { border-color: #F0A6C8; }
.a-in { flex: 1 1 auto; min-width: 0; height: 52px; padding: 0 20px; border: 0; background: transparent; color: var(--cream); font-family: var(--sans); font-weight: 300; font-size: 16px; outline: none; }
.a-in::placeholder { color: #A99DBB; }
.a-form .btn { flex: none; min-height: 52px; padding: 0 28px; }
.a-msg { margin: 10px 0 0 22px; font-size: 13.5px; color: var(--lilac-3); }
.a-msg:empty { display: none; }
.a-note { margin: 10px 0 0 22px; font-size: 13.5px; color: var(--muted); }
.a-thanks { display: flex; align-items: flex-start; gap: 18px; max-width: 560px; margin-top: 36px; padding: 22px 26px; border-radius: 24px; border: 1px solid rgba(217, 194, 245, .28); background: rgba(26, 11, 38, .6); text-align: left; }
.a-thanks[hidden] { display: none; }
.a-thanks svg { flex: none; width: 34px; height: 34px; margin-top: 2px; }
.a-thanks h3 { font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.1; color: var(--white); }
.a-thanks h3:focus { outline: none; }
.a-thanks p { margin-top: 6px; font-size: 15px; line-height: 1.6; color: var(--text); }

/* the doorway: a plain rectangle, doors ajar, light spilling across the floor (still) */
.a-stage { position: relative; display: flex; align-items: flex-start; justify-content: center; height: 720px; --dw: 290px; }
.a-door { position: relative; width: var(--dw); height: calc(var(--dw) * 1.74); margin-top: 60px; perspective: 1200px; }
.a-halo { position: absolute; left: 50%; top: 48%; width: calc(var(--dw) * 3.4); height: calc(var(--dw) * 3.4); transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(201, 166, 240, .42) 0%, rgba(122, 61, 184, .22) 42%, rgba(122, 61, 184, 0) 100%); opacity: .6; pointer-events: none; }
.a-frame { position: absolute; top: -16px; left: -16px; right: -16px; bottom: 0; border: 1px solid rgba(217, 194, 245, .34); border-bottom: 0; }
.a-frame::after { content: ""; position: absolute; top: -1px; left: 50%; width: 5px; height: 5px; margin: -2px 0 0 -2.5px; border-radius: 50%; background: #E9D5FF; box-shadow: 0 0 12px 2px rgba(233, 213, 255, .8); }
.a-light { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(70% 55% at 50% 64%, #FFFFFF 0%, #F3E8FF 20%, #D9C2F5 42%, #9E63E0 78%, #5B2A92 100%); }
.a-light::after { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 34% at 50% 62%, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, 0) 72%); opacity: .8; }
.a-leaf { position: absolute; top: 0; bottom: 0; width: calc(50% - 1px); }
.a-leaf::before { content: ""; position: absolute; top: 30px; bottom: 30px; left: 22px; right: 16px; border: 1px solid rgba(217, 194, 245, .12); }
.a-leaf.l { left: 0; transform-origin: 0 50%; transform: rotateY(15deg); background: linear-gradient(90deg, #140920 0%, #1C0C29 70%, #2A1440 100%); box-shadow: inset -1px 0 0 rgba(233, 213, 255, .42); }
.a-leaf.r { right: 0; transform-origin: 100% 50%; transform: rotateY(-15deg); background: linear-gradient(270deg, #140920 0%, #1C0C29 70%, #2A1440 100%); box-shadow: inset 1px 0 0 rgba(233, 213, 255, .42); }
.a-leaf.r::before { left: 16px; right: 22px; }
.a-seam { position: absolute; left: 50%; top: 4%; bottom: 0; width: 10px; margin-left: -5px; background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .9) 22%, #FFFFFF 100%); filter: blur(4px); opacity: .45; pointer-events: none; }
.a-sill { position: absolute; left: -30%; right: -30%; bottom: -1px; height: 2px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .95), rgba(255, 255, 255, 0)); box-shadow: 0 0 22px 2px rgba(233, 213, 255, .7); opacity: .78; }
.a-floor { position: absolute; left: -90%; right: -90%; top: 100%; height: 1px; background: linear-gradient(90deg, rgba(217, 194, 245, 0), rgba(217, 194, 245, .24), rgba(217, 194, 245, 0)); }
.a-spill { position: absolute; top: 100%; left: 50%; width: calc(var(--dw) * 2.7); height: calc(var(--dw) * .78); margin-left: calc(var(--dw) * -1.35); clip-path: polygon(calc(50% - var(--dw) / 2) 0, calc(50% + var(--dw) / 2) 0, 100% 100%, 0 100%); background: linear-gradient(180deg, rgba(246, 238, 255, .62) 0%, rgba(201, 166, 240, .24) 38%, rgba(122, 61, 184, 0) 100%); transform-origin: 50% 0; transform: scaleX(.24); opacity: .7; pointer-events: none; }

/* ---------- why this course: the formula as a beam of light ---------- */
.a-why { padding-top: 130px; background: radial-gradient(44% 34% at 12% 70%, rgba(122, 61, 184, .20) 0%, rgba(122, 61, 184, 0) 70%), radial-gradient(40% 30% at 92% 40%, rgba(201, 166, 240, .10) 0%, rgba(201, 166, 240, 0) 70%); }
.a-wh { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: 40px 80px; }
.a-whl { display: flex; flex-direction: column; gap: 20px; }
.a-wps { display: flex; flex-direction: column; gap: 22px; max-width: 640px; }
.a-wp { font-family: var(--serif); font-size: clamp(22px, 1.9vw, 27px); line-height: 1.45; color: #EDE4F6; opacity: .38; transition: opacity 2s ease; }
.a-wp.on { opacity: 1; }
.a-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.a-pill { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(217, 194, 245, .24); background: transparent; color: #DCD4E8; font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: all .5s ease; }
.a-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .6; }
.a-pill:hover { border-color: rgba(233, 213, 255, .6); color: var(--cream); }
.a-pill.on { border-color: rgba(233, 213, 255, .75); background: rgba(245, 238, 252, .08); color: var(--white); }
.a-pill.on::before { opacity: 1; box-shadow: 0 0 10px rgba(233, 213, 255, .9); }

.fx { position: relative; margin-top: 64px; }
.fx-vis { position: relative; height: 440px; }
.fx-vis svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.fx-nw svg { top: 140px; width: calc(100% - 140px); height: calc(100% - 280px); }
.fx-past { transition: opacity 2.4s ease; }
.fx.now .fx-past { opacity: .22; }
.fx-loop { transition: opacity 2s ease; }
.fx.now .fx-loop { opacity: 0; }
.fx-comet { animation: a-comet 8s linear infinite; }
.fx-psweep { opacity: .55; animation: a-sweep 9s linear infinite; }
.fx-nw { position: absolute; top: -140px; bottom: -140px; left: 0; right: -140px; opacity: 0; clip-path: inset(0 100% 0 0); transition: opacity 1.6s ease, clip-path 0s linear 1.6s; }
.fx.now .fx-nw { opacity: 1; clip-path: inset(0 0 0 0); transition: opacity .5s ease, clip-path 4.2s cubic-bezier(.45, 0, .25, 1); }
.fx-sweep { animation: a-sweep 7s linear infinite; }
.fx-lens { transform-box: fill-box; transform-origin: 50% 50%; }
.fx.now .fx-lens { animation: a-flash 2.2s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 1s + .6s); }
.fx-bloom { opacity: 0; transition: opacity 1.6s ease; }
.fx.now .fx-bloom { opacity: 1; transition: opacity 2.4s ease 3.4s; }
.fx-src { position: absolute; left: calc(5% - 5px); top: 0; width: 240px; }
.fx-tick { position: absolute; left: 5%; top: 70px; width: 1px; height: calc(40.9% - 92px); background: linear-gradient(180deg, rgba(217, 194, 245, .55), rgba(217, 194, 245, 0)); }
.fx-sw { position: relative; height: 58px; }
.fx-sw > span { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; gap: 6px; transition: opacity 1.6s ease; }
.fx-sn { font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--white); }
.fx-ss { font-size: 10.5px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.fx .is-n { opacity: 0; }
.fx.now .is-p { opacity: 0; }
.fx.now .is-n { opacity: 1; }
.fx-again { position: absolute; left: 50%; top: 91.5%; transform: translateX(-50%); font-family: var(--serif); font-style: italic; font-size: 20px; white-space: nowrap; color: #DCD4E8; transition: opacity 1s ease; }
.fx.now .fx-again { opacity: 0; }
.fx-labs { position: relative; height: 96px; margin-top: 6px; }
.fx-l { position: absolute; top: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; transform: translateX(-50%); text-align: center; }
.fx-l.r { left: auto; right: 0; align-items: flex-end; transform: none; text-align: right; }
.fx-n { font-size: 10.5px; font-weight: 500; letter-spacing: .28em; color: var(--lilac); }
.fx-nm { font-family: var(--serif); font-size: clamp(22px, 2.3vw, 34px); line-height: 1; color: var(--cream); transition: color 2s ease, text-shadow 2s ease; }
.fx.now .fx-nm { color: var(--white); text-shadow: 0 0 22px rgba(201, 166, 240, .6); }
.fx-rs { position: relative; width: 220px; height: 16px; }
.fx-rs > span { position: absolute; right: 0; top: 0; white-space: nowrap; font-size: 10.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); transition: opacity .9s ease; }
.fx-worlds { position: relative; height: 40px; margin-top: 4px; }
.fx-w { position: absolute; top: 0; display: flex; align-items: center; gap: 14px; white-space: nowrap; font-size: 10.5px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: #C9A6F0; }
.fx-w::before, .fx-w::after { content: ""; flex: 1; height: 1px; background: rgba(217, 194, 245, .26); }
.fx-w.i { left: 17%; width: 41%; }
.fx-w.o { left: 60%; width: 40%; }

/* ---------- what you'll explore ---------- */
.a-ex { padding-bottom: 70px; background: radial-gradient(50% 40% at 85% 20%, rgba(122, 61, 184, .18) 0%, rgba(122, 61, 184, 0) 70%); }
.a-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px clamp(28px, 3.4vw, 64px); margin-top: 64px; }
.a-it { position: relative; padding-top: 30px; transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i) * .1s); }
.a-it::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(217, 194, 245, .16); }
.a-it::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, #FFFFFF, rgba(201, 166, 240, .7) 45%, rgba(201, 166, 240, 0)); box-shadow: 0 0 12px rgba(201, 166, 240, .6); transform-origin: 0 50%; transition: transform 1.6s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i) * .12s + .2s); }
.a-n { font-family: var(--serif); font-style: italic; font-size: 22px; color: #C9A6F0; }
.a-itt { margin-top: 18px; font-family: var(--serif); font-weight: 500; font-size: clamp(27px, 2.3vw, 34px); line-height: 1.08; color: var(--white); }
.a-itd { margin-top: 14px; max-width: 380px; font-size: 16px; line-height: 1.7; color: var(--text); }
.a-ex.pre .a-it { opacity: 0; transform: translateY(18px); }
.a-ex.pre .a-it::after { transform: scaleX(0); }

/* ---------- is this for you? ---------- */
.a-fy .fy li { transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i) * .18s); }
.a-fy.pre .fy li { opacity: 0; transform: translateY(16px); }

/* ---------- closing ---------- */
.a-cl { position: relative; overflow: hidden; padding: 150px 0 130px; text-align: center; }
.a-cl-frame { position: absolute; left: 50%; top: 70px; width: min(700px, 88vw); height: 1060px; transform: translateX(-50%); border: 1px solid rgba(217, 194, 245, .16); border-bottom: 0; background: radial-gradient(60% 46% at 50% 58%, rgba(201, 166, 240, .16) 0%, rgba(122, 61, 184, .08) 50%, rgba(122, 61, 184, 0) 80%); transition: background 2.4s ease, border-color 2.4s ease; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 96%); mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 96%); }
/* the light behind the closing words brightens as you reach for the button */
.a-cl-frame::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 46% at 50% 58%, rgba(246, 238, 255, .3) 0%, rgba(185, 140, 232, .14) 50%, rgba(122, 61, 184, 0) 82%); opacity: 0; transition: opacity 1.6s ease; }
.a-cl:has(.a-cl-btn:hover) .a-cl-frame, .a-cl:has(.a-cl-btn:focus-visible) .a-cl-frame { border-color: rgba(233, 213, 255, .42); }
.a-cl:has(.a-cl-btn:hover) .a-cl-frame::after, .a-cl:has(.a-cl-btn:focus-visible) .a-cl-frame::after { opacity: 1; }
.a-buy { margin-top: 36px; }
.a-cl-btn { margin-top: 48px; }
.a-cl-in { position: relative; display: flex; flex-direction: column; align-items: center; max-width: 900px; margin: 0 auto; }
.a-c1 { font-family: var(--serif); font-weight: 500; font-size: clamp(46px, 5.4vw, 82px); line-height: 1.02; letter-spacing: -.01em; color: var(--white); }
.a-c2 { max-width: 720px; margin-top: 26px; font-family: var(--serif); font-style: italic; font-size: clamp(25px, 2.4vw, 34px); line-height: 1.35; color: #F1ECF7; text-wrap: balance; }
.a-c3 { max-width: 820px; margin-top: 56px; font-family: var(--serif); font-style: italic; font-size: clamp(30px, 3vw, 42px); line-height: 1.2; color: #F3E8FF; text-shadow: 0 0 34px rgba(201, 166, 240, .55); text-wrap: balance; }
.a-cl .sig { margin-top: 18px; font-size: 40px; }
.a-cl .a-form { width: 100%; margin: 48px auto 0; text-align: left; }
.a-cl .a-lab, .a-cl .a-msg { margin-left: 0; text-align: center; }
.a-cl .a-thanks { margin: 48px auto 0; }
.a-wait { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; max-width: 760px; margin-top: 64px; padding-top: 34px; border-top: 1px solid rgba(217, 194, 245, .18); }
.a-wait .lbl { color: var(--lilac); }
.a-wl { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-family: var(--serif); font-size: clamp(21px, 1.8vw, 25px); line-height: 1.3; color: var(--cream); text-decoration: none; }
.a-wl span { text-decoration: underline; text-decoration-color: rgba(217, 194, 245, .45); text-decoration-thickness: 1px; text-underline-offset: 7px; text-wrap: balance; }
.a-wl:hover span { text-decoration-color: #E9D5FF; }
.a-wl svg { flex: none; width: 22px; height: 22px; }

@keyframes a-sweep { from { transform: translateX(0); } to { transform: translateX(1480px); } }
@keyframes a-comet { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes a-flash { 0% { transform: scale(1); } 35% { transform: scale(1.22); } 100% { transform: scale(1); } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .a-hg { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .a-stage { order: -1; height: 360px; --dw: 160px; }
  .a-door { margin-top: 40px; }
  .a-ht { padding-bottom: 20px; text-align: center; }
  .a-eye { justify-content: center; gap: 10px; font-size: 10px; letter-spacing: .18em; }
  .a-h1 { margin-top: 22px; }
  .a-h1 .l1 { font-size: clamp(44px, 12vw, 56px); }
  .a-h1 .l2 { margin-left: auto; margin-right: auto; font-size: clamp(104px, 30vw, 132px); }
  .a-intro { margin-left: auto; margin-right: auto; font-size: 16px; }
  .a-form { margin-left: auto; margin-right: auto; }
  .a-row { flex-direction: column; padding: 6px; border-radius: 28px; }
  .a-in { height: 50px; text-align: center; }
  .a-form .btn { width: 100%; }
  .a-lab, .a-msg, .a-note { margin-left: 0; text-align: center; }
  .a-thanks { margin-left: auto; margin-right: auto; }
  .a-why { padding-top: 88px; }
  .a-wh { grid-template-columns: minmax(0, 1fr); }
  .fx { margin-top: 46px; }
  .fx-vis { height: 300px; }
  .fx-src { width: 180px; }
  .fx-sn { font-size: 24px; }
  .fx-ss { font-size: 9.5px; letter-spacing: .18em; }
  .fx-again { font-size: 16px; }
  .fx-labs { height: 84px; }
  .fx-n { font-size: 9px; letter-spacing: .18em; }
  .fx-nm { font-size: 17px; }
  .fx-rs { width: 120px; height: 30px; }
  .fx-rs > span { white-space: normal; font-size: 9px; letter-spacing: .14em; line-height: 1.4; }
  .fx-w { gap: 6px; font-size: 8.5px; letter-spacing: .16em; }
  .a-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .a-c1 { font-size: 38px; }
  .a-cl { padding: 110px 0 96px; }
  .a-cl-frame { top: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-comet, .fx-psweep, .fx-sweep, .fx.now .fx-lens { animation: none; }
  .a-it, .a-it::after, .a-fy .fy li, .fx-nw, .fx.now .fx-nw, .fx-past, .fx-loop, .fx-bloom, .a-wp, .a-cl-frame, .a-cl-frame::after { transition: none; }
}
