/* The thank you page and the simple pages (waitlist, a missing link): the landing page's night and ice.
   Entrances are load animations that end on the base style, so reduced motion and "stop animations" show a still page. */
@property --th-a{syntax:'<angle>';inherits:false;initial-value:0deg}
.th{display:flex;flex-direction:column;background:#080c12;color:#eef5f8;min-height:100vh;min-height:100dvh;overflow-x:clip}
/* the footer sits at the bottom of the screen when the page is shorter than it */
.th>.th-main{flex:1 0 auto}
.th>.th-header,.th>.th-footer{flex:none}
/* room for the round accessibility button in the corner; these pages have no floating dock on phones */
.th-footer{padding-inline-end:76px}
.th .a11y{bottom:16px}
.th-bg{position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(60% 50% at 85% 0%,#1b4a6440,transparent 70%),radial-gradient(45% 40% at 5% 95%,#54bde41c,transparent 70%),#080c12}
.th-bg::before{content:'';position:absolute;inset:0;background-image:radial-gradient(#b4edff17 1px,transparent 1.2px);background-size:28px 28px;-webkit-mask-image:radial-gradient(70% 55% at 60% 25%,#000,transparent);mask-image:radial-gradient(70% 55% at 60% 25%,#000,transparent)}
.th-bg::after{content:'';position:absolute;inset:-20%;background:radial-gradient(28% 32% at 72% 28%,#b4edff14,transparent 70%);animation:th-aurora 18s ease-in-out infinite alternate}
.th-header{height:88px;display:flex;align-items:center;border-bottom:1px solid #ffffff14;animation:th-down .8s var(--ease) backwards}
.th-header .wordmark{font-size:24px}
.th-main{padding-block:56px 64px}

/* hero: the greeting and the steps on one side, the ticket on the other */
.th-hero{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);grid-template-areas:"intro ticket" "steps ticket";gap:30px 64px;align-items:start}
.th-intro{grid-area:intro}
.th-hero-solo{grid-template-columns:minmax(0,1fr);grid-template-areas:"intro" "steps";max-width:760px}
.th-steps:empty{display:none}
.th-steps{grid-area:steps}
.th-ticket{grid-area:ticket}
.th-mark{position:relative;width:66px;height:66px;margin-bottom:22px}
.th-mark svg{width:100%;height:100%;overflow:visible}
.th-ring,.th-check{fill:none;stroke:var(--sky);stroke-linecap:round;stroke-linejoin:round}
.th-ring{--len:158;stroke-width:2.5;stroke-dasharray:158;filter:drop-shadow(0 0 10px #b4edff8c);animation:th-draw .9s var(--ease) .15s backwards}
.th-check{--len:36;stroke-width:3.6;stroke-dasharray:36;animation:th-draw .55s var(--ease) .8s backwards}
.th-mark::after{content:'';position:absolute;inset:-7px;border-radius:50%;border:1px solid #b4edff66;opacity:0;animation:th-halo 3s ease-out 1.4s infinite}
.th-intro h1{font-size:clamp(40px,5.2vw,72px);line-height:1.1;font-weight:900;letter-spacing:-2px;margin:18px 0 14px;animation:th-up .9s var(--ease) .45s backwards}
.th-name{color:var(--sky);text-shadow:0 0 34px #b4edff47}
.th-lead{font-size:19px;line-height:1.7;color:#c4ced8;margin:0;max-width:520px;animation:th-up .9s var(--ease) .55s backwards}

/* the steps: done ones turn green and get a check */
.th-steps{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:14px}
.th-step{display:grid;grid-template-columns:44px minmax(0,1fr);gap:16px;padding:20px 22px;border-radius:18px;background:linear-gradient(155deg,#ffffff0e,#ffffff04 60%,#b4edff08);border:1px solid #ffffff1c;box-shadow:inset 0 1px 0 #ffffff12;transition:border-color .45s,background .45s;animation:th-up .8s var(--ease) backwards}
.th-step:nth-child(1){animation-delay:.7s}
.th-step:nth-child(2){animation-delay:.82s}
.th-step:nth-child(3){animation-delay:.94s}
.th-step-n{position:relative;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;border:1px solid #b4edff66;color:var(--sky);font-weight:700;font-size:18px;transition:background .4s,border-color .4s,color .4s}
.th-step.is-done{border-color:#4ade8066;background:linear-gradient(155deg,#4ade8014,#ffffff03)}
.th-step.is-done .th-step-n{font-size:0;background:#4ade80;border-color:#4ade80;color:#06150e}
.th-step.is-done .th-step-n::after{content:'✓';font-size:21px;font-weight:800;animation:th-pop .45s cubic-bezier(.34,1.56,.64,1)}
.th-step h2{margin:0;font-size:19px;line-height:1.4;font-weight:700;letter-spacing:0;color:#f4f9fb}
.th-step p{margin:4px 0 14px;color:#a7b4c2;font-size:15px;line-height:1.6}
.th-step-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px}
.th-cta{min-height:52px;max-width:none;margin:0;font-size:15px;gap:16px;padding:8px 16px}
.th-cta .cta-arrow{height:34px}
.th-alt{color:var(--sky);font-size:14px;text-decoration:underline;text-underline-offset:3px}
.th-link{display:flex;align-items:center;gap:10px;width:100%;padding:8px 8px 8px 12px;border-radius:12px;background:#0a1a25;border:1px solid #ffffff21}
.th-link-url{flex:1;min-width:0;color:var(--sky);font-size:15px;text-align:left;overflow-wrap:anywhere}
.th-copy{flex:none;min-height:40px;padding:8px 16px;border-radius:10px;border:1px solid #b4edff66;background:#b4edff17;color:var(--sky);font:inherit;font-size:14px;font-weight:700;cursor:pointer;transition:background .3s,border-color .3s,color .3s}
.th-copy:hover{background:#b4edff29}
.th-copy.is-copied{background:#4ade80;border-color:#4ade80;color:#06150e}

/* the ticket: lands in 3D, a light runs on its rim, notches where it tears */
.th-ticket{position:relative;isolation:isolate;margin:0;color:var(--ink);animation:th-land 1.25s var(--ease) .5s backwards;transform-origin:50% 100%}
.th-ticket::before{content:'';position:absolute;inset:0;border-radius:inherit;padding:1.5px;background:conic-gradient(from var(--th-a),transparent 0 18%,#54bde4cc 26%,#b4edff 28%,transparent 34% 68%,#54bde4cc 76%,#b4edff 78%,transparent 84%);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;animation:th-orbit 9s linear infinite;z-index:3;pointer-events:none}
.th-topic{font-size:30px;line-height:1.3;margin:18px 0 0;letter-spacing:-.5px;color:#151e28}
.th-ticket dl{margin:20px 0 26px}
.th-ticket .ticket-bottom{position:relative;border-top:2px dashed #ffffff26}
.th-ticket .ticket-bottom::before,.th-ticket .ticket-bottom::after{content:'';position:absolute;top:-15px;width:28px;height:28px;border-radius:50%;background:#080c12}
.th-ticket .ticket-bottom::before{right:-14px}
.th-ticket .ticket-bottom::after{left:-14px}
.th-countdown{margin:0}
.th-countdown .cd-box{animation:th-up .7s var(--ease) backwards}
.th-countdown .cd-box:nth-child(1){animation-delay:1.25s}
.th-countdown .cd-box:nth-child(2){animation-delay:1.33s}
.th-countdown .cd-box:nth-child(3){animation-delay:1.41s}
.th-countdown .cd-box:nth-child(4){animation-delay:1.49s}

/* what we cover, what to prepare */
.th-more{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:56px}
.th-card{padding:24px 26px;border-radius:18px;background:linear-gradient(155deg,#ffffff0c,#ffffff03);border:1px solid #ffffff1a;transition:opacity .8s var(--ease),translate .8s var(--ease)}
.th-mo .th-card:not(.th-in){opacity:0;translate:0 26px}
.th-card:nth-child(2){transition-delay:.12s}
.th-card h2{margin:0 0 12px;font-size:19px;letter-spacing:0;color:#f4f9fb}
.th-card ul{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.th-card li{position:relative;padding-inline-start:22px;color:#c4ced8;font-size:16px;line-height:1.6}
.th-card li::before{content:'';position:absolute;inset-inline-start:2px;top:.62em;width:8px;height:8px;border-radius:50%;background:var(--sky);box-shadow:0 0 10px #b4edffa6}
.th-private{display:block;margin:28px 0 0;color:#d5f8e2;font-size:15px}
.th-private a{color:#7ff0a6;font-weight:700;text-decoration:underline;text-underline-offset:3px}

/* simple pages */
.th-simple{max-width:720px}
.th-simple h1{font-size:clamp(34px,5vw,56px);line-height:1.15;font-weight:900;letter-spacing:-1.5px;margin:0 0 16px;animation:th-up .9s var(--ease) .2s backwards}
.th-simple .th-lead{animation-delay:.3s}
.th-simple-actions{margin-top:28px;animation:th-up .9s var(--ease) .4s backwards}
.th-simple-actions .cta{max-width:360px}

/* the legal pages: one readable column */
.legal{max-width:820px}
.legal h1{font-size:clamp(36px,5vw,58px);line-height:1.15;font-weight:900;letter-spacing:-1.5px;margin:0;animation:th-up .9s var(--ease) .15s backwards}
.legal-updated{margin:10px 0 18px;color:#8fa6b3;font-size:14px}
.legal-intro{max-width:none;animation-delay:.25s}
.legal-body{margin-top:34px;display:grid;gap:14px;animation:th-up .9s var(--ease) .35s backwards}
.legal-body section{padding:22px 26px;border-radius:18px;background:linear-gradient(155deg,#ffffff0b,#ffffff03);border:1px solid #ffffff17}
.legal-body h2{margin:0 0 10px;font-size:20px;line-height:1.4;letter-spacing:0;color:#f4f9fb}
.legal-body p,.legal-body li{color:#c4ced8;font-size:16px;line-height:1.85}
.legal-body p{margin:0}
.legal-body p+p,.legal-body ul+p,.legal-body p+ul{margin-top:10px}
.legal-body ul{margin:0;padding:0;list-style:none;display:grid;gap:8px}
.legal-body li{position:relative;padding-inline-start:20px}
.legal-body li::before{content:'';position:absolute;inset-inline-start:2px;top:.75em;width:7px;height:7px;border-radius:50%;background:var(--sky)}
.legal-body a{color:var(--sky);text-decoration:underline;text-underline-offset:3px}
@media(max-width:700px){.legal-body section{padding:18px 18px}.legal-body p,.legal-body li{font-size:15px}}

.th-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px;padding-block:26px 40px;border-top:1px solid #ffffff14;color:#8fa6b3;font-size:14px}
@media(max-width:700px){.th-footer{flex-direction:column;align-items:flex-start;gap:12px;padding-block:22px calc(28px + env(safe-area-inset-bottom,0px))}}
.th-footer p{margin:0}
.th-spark{position:fixed;top:0;left:0;border-radius:50%;pointer-events:none;z-index:60}

@media(min-width:901px){.th-ticket{position:sticky;top:28px}}
@media(max-width:900px){
  .th-hero{grid-template-columns:minmax(0,1fr);grid-template-areas:"intro" "ticket" "steps";gap:26px}
  .th-more{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:700px){
  .th-header{height:72px}
  .th-main{padding-block:34px 48px}
  .th-mark{width:56px;height:56px;margin-bottom:16px}
  .th-intro h1{letter-spacing:-1.2px}
  .th-lead{font-size:17px}
  .th-step{grid-template-columns:38px minmax(0,1fr);gap:12px;padding:18px 16px}
  .th-step-n{width:38px;height:38px;font-size:16px}
  .th-cta{width:100%;justify-content:space-between}
  .th-topic{font-size:25px}
  .th-more{margin-top:40px}
}

@keyframes th-up{from{opacity:0;transform:translateY(22px)}}
@keyframes th-down{from{opacity:0;transform:translateY(-14px)}}
@keyframes th-draw{from{stroke-dashoffset:var(--len)}}
@keyframes th-halo{0%{opacity:.8;transform:scale(.92)}70%,100%{opacity:0;transform:scale(1.35)}}
@keyframes th-pop{from{transform:scale(.3);opacity:0}}
@keyframes th-land{from{opacity:0;transform:perspective(1400px) rotateX(22deg) translateY(70px) scale(.95)}}
@keyframes th-orbit{to{--th-a:360deg}}
@keyframes th-aurora{to{transform:translate(-4%,3%) scale(1.1)}}
