/* calixtenics.com - the waiting-list page in the app's "Olympus" dress.
   Tokens restate frontend/global.css and frontend/src/theme/tokens.ts;
   type and controls follow docs/design/DESIGN-SPEC.md.

   Two faces, no third: Montserrat for every heading, sentence, button, label
   and number; Cinzel (.ins) only for the wordmark, the rank and small capital
   labels. The page follows the triangle rule: the headline, the lit sky and
   the sign-up sit on a triangle that ends on the sign-up, and every triangle
   drawn on the page - the pediment over each sign-up, the trail's markers -
   points at it. */

@font-face{font-family:Cinzel;font-weight:600;font-display:swap;src:url(fonts/cinzel-600.woff2) format("woff2")}
@font-face{font-family:Montserrat;font-weight:400;font-display:swap;src:url(fonts/montserrat-400.woff2) format("woff2")}
@font-face{font-family:Montserrat;font-weight:500;font-display:swap;src:url(fonts/montserrat-500.woff2) format("woff2")}
@font-face{font-family:Montserrat;font-weight:600;font-display:swap;src:url(fonts/montserrat-600.woff2) format("woff2")}
@font-face{font-family:Montserrat;font-weight:700;font-display:swap;src:url(fonts/montserrat-700.woff2) format("woff2")}

:root{
  --bg:#0B1020;--bg-deep:#070A15;--bg-soft:#101526;--card:#151B2E;--secondary:#1F2740;--border:#28304A;--input:#68739A;
  --fg:#F2EDE3;--muted:#9BA4BA;--placeholder:#6F7891;--gold:#D4A94A;--gold-pale:#EDD08C;--gold-ivory:#F5E4B8;
  --lightning:#6FA8FF;--danger:#E08670;
  --gold-10:rgba(212,169,74,.10);--gold-25:rgba(212,169,74,.25);--gold-35:rgba(212,169,74,.35);--gold-55:rgba(212,169,74,.55);
  --f-ins:Cinzel,Georgia,"Times New Roman",serif;
  --f-body:Montserrat,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --sky-bg:radial-gradient(circle at 50% 46%,#18203A,#111830 45%,var(--bg));
  color-scheme:dark}
*{box-sizing:border-box}
html{background:var(--bg);-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--fg);font:16px/1.55 var(--f-body);overflow-x:hidden}
img,video,svg{display:block;max-width:100%}
a{color:var(--gold)}
a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid var(--gold-35);outline-offset:2px}
[hidden]{display:none!important}
.defs{position:absolute}
.ins{font-family:var(--f-ins);font-weight:600;text-transform:uppercase;letter-spacing:.14em}
/* numbers that change in place: every digit the same width */
.num{font-variant-numeric:tabular-nums;font-weight:600}
.muted{color:var(--muted)}
.small{font-size:14px}

/* ── buttons and the form ─────────────────────────────────────────────────── */
.btn{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:0 22px;border-radius:6px;font:600 16px/1 var(--f-body);cursor:pointer;text-decoration:none;white-space:nowrap}
.btn-primary{position:relative;isolation:isolate;overflow:hidden;background:var(--fg);color:var(--bg);border:1.5px solid var(--gold)}
.btn-primary::before{content:"";position:absolute;inset:0;background:url(img/marble-veins.png) center/256px;filter:brightness(0);opacity:.12;z-index:-1}
.btn-primary:hover{background:#fff}
.btn-primary:disabled{cursor:progress;background:var(--fg);opacity:.75}
.link{appearance:none;background:none;border:0;padding:0;color:var(--gold);font:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}

.wl{width:100%}
.wl-label{display:block;font:500 14px var(--f-body);color:var(--fg);margin:0 0 6px}
.wl-row{display:flex;flex-direction:column;gap:10px}
.wl input{width:100%;min-height:52px;border-radius:6px;border:1px solid var(--input);background:var(--bg-soft);color:var(--fg);font:400 16px var(--f-body);padding:0 16px}
.wl input::placeholder{color:var(--placeholder)}
.wl input:focus{outline:none;border-color:var(--gold);box-shadow:0 0 0 3px var(--gold-25)}
.wl.invalid input{border-color:var(--danger);box-shadow:0 0 0 3px rgba(224,134,112,.2)}
.wl-err{display:flex;align-items:flex-start;gap:6px;color:var(--danger);font-size:14px;margin:8px 0 0}
.wl-err:empty{display:none}
.wl-err svg{flex:none;width:18px;height:18px;margin-top:1px}
.wl-note{font-size:13.5px;color:var(--muted);margin:10px 0 0}
.wl-note a{color:var(--muted)}

.wl-done{border:1px solid var(--gold-35);border-radius:8px;background:var(--card);padding:20px}
.wl-done .head{display:flex;align-items:center;gap:12px;margin:0 0 10px}
.wl-done .seal{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;border:1.5px solid var(--gold);color:var(--gold)}
.wl-done .seal svg{width:20px;height:20px}
.wl-done h3{margin:0;font-size:17px;font-weight:700;line-height:1.3;color:var(--gold-pale)}
.wl-done h3:focus{outline:none}
.wl-done p{margin:0 0 8px;font-size:15px}
.wl-done p.small{font-size:13.5px;color:var(--muted);margin:0}
.wl-done b{font-weight:600;color:var(--fg);overflow-wrap:anywhere}

/* the line a visitor lands on from a link in the email */
.banner{display:flex;align-items:center;justify-content:center;gap:10px;padding:12px 16px;background:var(--card);border-bottom:1px solid var(--gold-35);color:var(--gold-pale);font-size:14.5px;text-align:center}
.banner svg{flex:none;width:18px;height:18px}
.banner.warn{color:var(--fg);border-bottom-color:var(--border)}
.banner.warn svg{display:none}

#toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:var(--card);border:1px solid var(--gold);color:var(--fg);padding:10px 16px;border-radius:6px;font-size:14px;opacity:0;pointer-events:none;transition:opacity .25s;z-index:60;max-width:calc(100vw - 32px)}
#toast.on{opacity:1}

/* ── the constellation ────────────────────────────────────────────────────── */
svg.sky{width:100%;height:auto;--u:1}
.sky .bgs circle{fill:var(--fg)}
.sky .fig{fill:none;stroke:var(--gold-pale);stroke-width:calc(var(--u)*.85px);stroke-linecap:round;stroke-linejoin:round;opacity:.14;transition:opacity .6s}
.sky .fig.on{opacity:.5}
.sky .edge{stroke:var(--gold);stroke-width:calc(var(--u)*1.1px);stroke-linecap:round;opacity:.9;transition:opacity .4s}
.sky .edge.off{opacity:0}
.sky .glow{fill:url(#starGlow);opacity:0;transition:opacity .35s}
.sky .on>.glow{opacity:1}
.sky .core{fill:var(--muted);opacity:.55;transition:fill .3s,opacity .3s}
.sky .on>.core{fill:#FBF6EA;opacity:1}
.sky .next{fill:none;stroke:var(--lightning);stroke-width:calc(var(--u)*1.1px);opacity:0}
.sky .next.on{opacity:.9;animation:cue 1.6s ease-in-out infinite}
@keyframes cue{50%{opacity:.35}}

.skypanel{position:relative;border:1px solid var(--gold-35);border-radius:8px;background:var(--sky-bg);padding:8px 8px 12px}
.skypanel svg.sky{width:100%;margin:0 auto}
.skycap{display:flex;justify-content:space-between;align-items:baseline;gap:10px;padding:8px 6px 0;font-size:13px}
.skycap .ins{font-size:12px;color:var(--gold-pale)}
.skycap .step{color:var(--muted);text-align:right}
.skycap .step .num{color:var(--gold-pale)}
.skypanel.lit{border-color:var(--gold);box-shadow:0 0 36px rgba(212,169,74,.18);transition:border-color .6s,box-shadow .6s}

/* ── skill ladder (the app's tree, flattened to a trail) ──────────────────── */
.ladder{list-style:none;margin:0;padding:0;position:relative}
.ladder li{position:relative;display:flex;align-items:center;gap:12px;min-height:36px;padding-left:2px;font-size:14.5px}
.ladder li+li::before{content:"";position:absolute;left:13px;top:-12px;height:24px;border-left:1.5px solid var(--border)}
.ladder li.done+li::before{border-color:var(--gold)}
.ladder .node{flex:none;position:relative;z-index:1;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;border:1.5px solid var(--border);background:var(--bg);color:var(--muted)}
.ladder .node svg{width:13px;height:13px}
.ladder .done .node{border-color:var(--gold);background:var(--gold);color:var(--bg)}
.ladder .next .node{border-color:var(--lightning);color:var(--lightning);box-shadow:0 0 0 4px rgba(111,168,255,.15)}
.ladder .locked{color:var(--muted)}
.ladder .gap{min-height:24px;color:var(--muted);font:500 12px var(--f-body);font-variant-numeric:tabular-nums;padding-left:34px}
.ladder .gap::before{border-left-style:dashed!important}
.ladder .n{font:500 12px var(--f-body);font-variant-numeric:tabular-nums;color:var(--muted);min-width:22px}
.ladder .next .tag{font:600 10px var(--f-ins);letter-spacing:.14em;text-transform:uppercase;color:var(--lightning);border:1px solid rgba(111,168,255,.5);border-radius:3px;padding:2px 5px 1px;margin-left:auto}

/* ── three angles ─────────────────────────────────────────────────────────── */
.angles{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.angles figure{margin:0}
.angles img{width:100%;height:auto;aspect-ratio:336/432;object-fit:cover;border-radius:4px;background:#232323}
.angles figcaption{font:600 10.5px/1.3 var(--f-ins);letter-spacing:.14em;text-transform:uppercase;color:var(--muted);text-align:center;margin-top:8px;text-wrap:balance}

/* ── the locked clip ──────────────────────────────────────────────────────── */
.locktag{display:inline-flex;align-items:center;gap:6px;font:600 11px/1 var(--f-ins);letter-spacing:.16em;text-transform:uppercase;color:var(--gold-pale);border:1px solid var(--gold-55);border-radius:3px;padding:6px 8px 5px;background:rgba(11,16,32,.75)}
.locktag svg{width:13px;height:13px;margin-top:-1px}
.track{position:relative;height:4px;background:var(--secondary);border-radius:1px}
.track i{position:absolute;left:0;top:0;bottom:0;width:0;background:var(--gold);border-radius:1px;transition:width .3s}
.track i::after{content:"";position:absolute;right:-5px;top:-3px;width:10px;height:10px;background:var(--gold);transform:rotate(45deg);border:2px solid var(--bg)}
.clipwrap{position:relative;overflow:hidden;background:#232323}
.clipwrap video{width:100%;height:100%;object-fit:cover}

/* ── page structure: the sky is the spine ─────────────────────────────────── */
.strip{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:18px;padding:10px 16px;background:rgba(11,16,32,.92);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--border)}
.strip img{width:64px;height:auto}
.strip .track{flex:1}
.strip .c{font-size:12.5px;color:var(--gold-pale);white-space:nowrap}
/* the phone's lit sky: drops under the strip wherever the visitor is */
.strip .drop{position:absolute;left:16px;right:16px;top:calc(100% + 8px);opacity:0;transform:translateY(-8px);visibility:hidden;transition:opacity .35s,transform .35s,visibility 0s .35s;cursor:pointer}
.strip .drop.on{opacity:1;transform:none;visibility:visible;transition:opacity .35s,transform .35s}
.strip .drop .skypanel{background:var(--sky-bg),var(--bg);box-shadow:0 18px 40px rgba(7,10,21,.7)}
.strip .drop svg.sky{max-height:28vh}

.grid{max-width:1180px;margin:0 auto}
.content{position:relative;padding:0 16px;min-width:0}
.hero{padding:18px 0 40px}
.eyebrow{color:var(--gold);font-size:12px;margin:0 0 12px}
h1{font:700 clamp(30px,8.2vw,52px)/1.08 var(--f-body);letter-spacing:-.025em;margin:0 0 16px;text-wrap:balance}
h1 .h1b{display:block;font-size:clamp(13px,3.4vw,16px);line-height:1.4;color:var(--gold-pale);letter-spacing:.16em;margin-top:14px}
.lead{font-size:16px;color:var(--muted);margin:0;max-width:32em}
/* The triangle, on a phone: the headline across the top, the sky standing to
   the right of the lead, the sign-up under both. */
/* the temple clears this float, which swallows its top margin: the float keeps the pediment's room */
.skycol{float:right;width:min(44%,200px);margin:4px 0 clamp(36px,9vw,52px) 16px}
.skycol .skycap{flex-direction:column;align-items:flex-start;gap:2px;padding:6px 2px 0}
.skycol .skycap .step{text-align:left;font-size:12px}
.trail{list-style:none;margin:0;padding:0 0 0 34px;position:relative}
.trail::before{content:"";position:absolute;left:11px;top:6px;bottom:6px;border-left:1.5px solid var(--border)}
.trail>li{position:relative;padding:0 0 48px}
/* the trail's markers point down it, to the sign-up at its end */
.trail>li::before{content:"";position:absolute;left:-30px;top:4px;border-style:solid;border-width:12px 7px 0;border-color:rgba(155,164,186,.45) transparent transparent;transition:border-color .3s,filter .3s}
.trail>li.lit::before{border-top-color:var(--gold);filter:drop-shadow(0 0 6px rgba(212,169,74,.6))}
.trail .k{font:600 11px var(--f-ins);letter-spacing:.16em;text-transform:uppercase;color:var(--gold);margin:0 0 6px}
h2{font:700 clamp(21px,5.6vw,28px)/1.2 var(--f-body);letter-spacing:-.015em;margin:0 0 10px}
.trail>li>p{margin:0 0 14px;font-size:16px;opacity:.9}
.cliprow{display:grid;grid-template-columns:120px 1fr;gap:14px;align-items:center;background:var(--card);border:1px solid var(--gold-35);border-radius:8px;padding:10px}
.cliprow .clipwrap{aspect-ratio:1/1;border-radius:4px}
.cliprow .locktag{margin:0 0 8px}
.cliprow b{display:block;font-size:15px;margin-bottom:2px}
/* The temple: every sign-up stands under a pediment, the end of the page's
   triangle. The card's top edge is the pediment's base. */
.temple{position:relative;clear:both;margin-top:clamp(36px,9vw,52px);border:1px solid var(--gold);border-radius:0 0 8px 8px;padding:20px;background:var(--card);box-shadow:0 0 30px rgba(212,169,74,.08)}
.trail .temple{margin-top:clamp(30px,8vw,44px)}
.pediment{position:absolute;left:-1px;bottom:100%;width:calc(100% + 2px);height:clamp(26px,7vw,40px);overflow:visible;pointer-events:none}
.pediment .tympanum{fill:var(--card)}
.pediment .cornice{fill:none;stroke:var(--gold);stroke-width:1px;vector-effect:non-scaling-stroke}
.temple .wl-done{border:0;border-radius:0;background:none;padding:0}

.skypanel svg.sky{max-height:26vh}
.skycap{padding-top:4px}

@media (min-width:640px){.wl-row{flex-direction:row}.wl input{flex:1}}
@media (min-width:960px){
  .strip{display:none}
  /* The triangle, wide: the headline top left, the sky down the right, the
     sign-up under the headline. The sky stays in its own column as the page
     scrolls; it sits after the headline in reading order. */
  .grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:56px;padding:0 24px}
  .skycol{float:none;position:absolute;top:0;bottom:0;left:calc(100% + 56px);width:100%;margin:0}
  .skycol .skycap{flex-direction:row;align-items:baseline;gap:10px;padding:8px 6px 0}
  .skycol .skycap .step{text-align:right;font-size:13px}
  .skycol .skypanel{position:sticky;top:24px;margin-top:24px}
  .skycol .skypanel svg.sky{max-height:calc(100vh - 140px)}
  .content{padding:0}
  .hero{padding:72px 0 56px}
  .lead{font-size:17px}
  .cliprow{grid-template-columns:200px 1fr}
}

/* ── footer ───────────────────────────────────────────────────────────────── */
.foot{border-top:1px solid var(--border);padding:32px 16px 40px;color:var(--muted);font-size:14px}
.foot .in{max-width:1080px;margin:0 auto;display:flex;flex-direction:column;gap:18px}
.foot .brand img{width:96px;height:auto}
.foot nav{display:flex;flex-wrap:wrap;gap:8px 22px}
.foot nav a{display:inline-flex;align-items:center;gap:7px;color:var(--fg);text-decoration:none;min-height:44px}
.foot nav a:hover{color:var(--gold-pale)}
.foot nav svg{width:20px;height:20px;color:var(--gold)}
.foot small{font-size:12.5px}
@media (min-width:800px){.foot .in{flex-direction:row;align-items:center;justify-content:space-between}}

@media (prefers-reduced-motion:reduce){
  .sky .next.on{animation:none}
  .sky *,.skypanel.lit,.track i,.trail>li::before,#toast,.strip .drop,.strip .drop.on{transition:none!important}
}
