﻿/* ==========================================================================
   VANTA â€” black + violet
   Vanta states the promise. Everything about the client lives below the fold.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2-variations");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Plex";
  src: url("../fonts/plexmono-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Liberation Sans");
  size-adjust: 98%; ascent-override: 92%; descent-override: 24%; line-gap-override: 0%;
}

:root {
  --bg:       #07060A;   /* black with a violet cast, never flat grey */
  --bg-2:     #0E0B14;
  --bg-3:     #120F1A;
  --line:     #221C30;
  --line-2:   #17131F;

  --text:     #F4F2F8;
  --muted:    #9E96AE;   /* 7.0:1 on --bg */
  --faint:    #6D6680;

  --violet:   #8B5CF6;
  --violet-b: #A78BFA;

  --sans: "Archivo", "Archivo Fallback", Arial, sans-serif;
  --mono: "Plex", Consolas, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --pad: clamp(18px, 4vw, 44px);
  --maxw: 1240px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-variation-settings: "wdth" 100, "wght" 400;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
/* every list here supplies its own marker (tick, dot, superscript) */
ul, ol { list-style: none; }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 2px solid var(--violet-b); outline-offset: 3px; border-radius: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

/* --- nav ------------------------------------------------------------------ */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; gap: clamp(10px, 2vw, 26px);
  padding: 16px var(--pad);
  background: linear-gradient(180deg, rgba(7,6,10,.92), rgba(7,6,10,.55) 65%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* padding + matching negative margin: a bigger hit area, identical position */
.brand {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  padding: 11px 4px; margin: -11px -4px;
}
.brand img { height: 21px; width: auto; }
.brand span {
  font-variation-settings: "wdth" 112, "wght" 700;
  font-size: 16px; letter-spacing: .17em; text-transform: uppercase;
}
.nav__left { display: flex; align-items: center; gap: 4px; margin-left: 14px; }
.nav__right { display: flex; align-items: center; gap: 8px; margin-left: auto; min-height: 36px; }

/* nothing renders until the session is known â€” no flash of the wrong button */
.nav__right[data-state="loading"] [data-when] { visibility: hidden; }
.nav__right[data-state="out"] [data-when="in"],
.nav__right[data-state="in"]  [data-when="out"] { display: none; }

.navlink {
  padding: 8px 12px; border-radius: 8px;
  font-size: 14px; font-variation-settings: "wdth" 100, "wght" 600;
  color: var(--muted);
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.navlink:hover { color: var(--text); background: var(--bg-2); }

/* --- buttons -------------------------------------------------------------- */

/* Pills with a lit top edge. The inset highlight is what stops a dark button
   from reading as a flat grey box. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 48px; padding-inline: 26px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 999px;
  background: rgba(255, 255, 255, .055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 15px;
  font-variation-settings: "wdth" 100, "wght" 600;
  color: var(--text); white-space: nowrap;
  transition: border-color .2s var(--ease), background-color .2s var(--ease),
              transform .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover {
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .19);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; flex: none; }

.btn--sm { height: 40px; padding-inline: 18px; font-size: 13.5px; }

.btn--quiet { background: transparent; border-color: rgba(255, 255, 255, .13); box-shadow: none; }
.btn--quiet:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .22); }

/* the signed-in marker. Three identical pills in the nav read as clutter, so
   only this one carries colour and the sign-out sits back as a plain link. */
.btn--accent {
  border-color: rgba(139, 92, 246, .42);
  background: rgba(139, 92, 246, .13);
  color: var(--violet-b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
}
.btn--accent:hover {
  background: rgba(139, 92, 246, .24);
  border-color: rgba(167, 139, 250, .62);
  color: #fff;
}

.btn--primary {
  background: linear-gradient(180deg, #9E71FF, #7C43F0);
  border-color: rgba(255, 255, 255, .18);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .30),
              0 10px 32px -12px rgba(139, 92, 246, .85);
}
.btn--primary:hover {
  background: linear-gradient(180deg, #AD85FF, #8B54F7);
  border-color: rgba(255, 255, 255, .26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38),
              0 16px 46px -14px rgba(139, 92, 246, 1);
}

/* --- vanta ----------------------------------------------------------------- */

.vanta {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-content: center; justify-items: center;
  gap: clamp(6px, 2vh, 22px);
  text-align: center;
  padding: 96px var(--pad) 84px;
  overflow: hidden;
}
.vanta__text { display: flex; flex-direction: column; align-items: center; }

/* the block lives in its own column so it can never cross the words */
.vanta__stage {
  position: relative;
  width: min(76%, 288px);
  aspect-ratio: 1 / 1;
  order: -1;
}

/* short phones: the block yields space so the buttons stay above the fold */
@media (max-width: 939px) and (max-height: 800px) {
  .vanta__stage { width: min(58%, 208px); }
}

/* very short viewports (small phones, landscape): keep the buttons reachable */
@media (max-width: 939px) and (max-height: 700px) {
  .vanta { padding: 80px var(--pad) 52px; }
  .vanta__stage { width: min(40%, 142px); }
  .vanta .cue { display: none; }
}

@media (min-width: 940px) {
  .vanta {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
    align-items: center; justify-items: stretch;
    gap: clamp(24px, 4.5vw, 68px);
    max-width: var(--maxw); margin-inline: auto;
    text-align: left;
  }
  .vanta__text { align-items: flex-start; }
  .vanta__stage {
    order: 0;
    width: 100%; max-width: none;
    aspect-ratio: auto; height: min(72vh, 580px);
  }
  .vanta .cta { justify-content: flex-start; }
  .vanta .slogan { font-size: clamp(3.2rem, 6.4vw, 6.6rem); max-width: 9.5ch; }
}

/* the only decoration: one violet wash behind the statement */
.vanta__glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(56% 40% at 50% 40%, rgba(139, 92, 246, .22), transparent 68%),
    radial-gradient(34% 26% at 50% 26%, rgba(167, 139, 250, .13), transparent 72%);
  animation: breathe 12s var(--ease) infinite alternate;
}
@keyframes breathe {
  from { opacity: .8; transform: translateY(0) scale(1); }
  to   { opacity: 1;  transform: translateY(-16px) scale(1.05); }
}

/* wireframe objects â€” the same language the client draws in-game. Sits
   above the glow, below every vanta child (those are z-index 1). */
.vanta__wire {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0; transition: opacity 1.1s var(--ease) .25s;
}
.vanta__wire.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .vanta__wire { transition: none; opacity: 1; }
}
/* z-index alone â€” flex items stack without needing `position`, and forcing
   `relative` here broke the absolutely-positioned scroll cue */
.vanta > * { z-index: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 999px; padding: 8px 16px;
  margin-bottom: clamp(22px, 4vh, 36px);
}
.eyebrow i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--violet-b);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, .18);
}

.slogan {
  font-size: clamp(3rem, 11.5vw, 8.5rem);
  font-variation-settings: "wdth" 112, "wght" 700;
  line-height: .92; letter-spacing: -.035em; text-transform: uppercase;
  max-width: 14ch;
}
.slogan .accent { color: var(--violet-b); text-shadow: 0 0 46px rgba(139, 92, 246, .55); }

.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(30px, 5vh, 46px); }

.cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--faint);
}
.cue i { width: 1px; height: 34px; background: linear-gradient(180deg, var(--line), transparent); }
.cue i::after {
  content: ""; position: absolute; width: 1px; height: 12px; background: var(--violet-b);
  animation: drop 2.1s var(--ease) infinite;
}
@keyframes drop { 0% { transform: translateY(0); opacity: 0 } 30% { opacity: 1 } 100% { transform: translateY(34px); opacity: 0 } }

/* --- section chrome ------------------------------------------------------- */

/* two sections stacking their own padding was leaving ~270px of dead black */
.sec { padding-block: clamp(52px, 6vw, 88px); }

.sechead {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint);
}
.sechead b { color: var(--violet-b); font-weight: 400; margin-right: 10px; }
.sechead span { color: var(--muted); }

.stmt {
  margin-top: clamp(34px, 5vw, 56px);
  font-size: clamp(1.6rem, 3.6vw, 2.9rem);
  font-variation-settings: "wdth" 108, "wght" 600;
  line-height: 1.14; letter-spacing: -.02em;
  max-width: 20ch;
}
.stmt em { font-style: normal; color: var(--violet-b); }
/* Â§01 is a centred product reveal; Â§02 keeps the left editorial axis */
.stmt--center { text-align: center; margin-inline: auto; max-width: 22ch; }

/* --- cards ----------------------------------------------------------------
   The page's main visual now. Each one is a flat dark panel that only lights
   up under the cursor â€” the violet is a reaction, not a paint job.          */

.cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: clamp(34px, 5vw, 56px);
}

.card {
  position: relative; isolation: isolate;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 24px 28px;
  background:
    linear-gradient(180deg, rgba(139, 92, 246, .055), rgba(14, 11, 20, 0) 58%),
    var(--bg-2);
  overflow: hidden;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.card:hover { border-color: #3B3153; transform: translateY(-3px); }

/* the light follows the pointer; --mx/--my are set in home.js */
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%),
              rgba(139, 92, 246, .17), transparent 72%);
  opacity: 0; transition: opacity .3s var(--ease);
}
.card:hover::before, .card:focus-within::before { opacity: 1; }

/* a hairline along the top edge, brightest in the middle */
.card::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, .5), transparent);
  opacity: .45; transition: opacity .25s var(--ease);
}
.card:hover::after { opacity: 1; }

.card__i {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center; margin-bottom: 16px;
  border: 1px solid var(--line);
  background: rgba(139, 92, 246, .09);
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.card__i svg { width: 19px; height: 19px; stroke: var(--violet-b); }
.card:hover .card__i { border-color: rgba(139, 92, 246, .45); background: rgba(139, 92, 246, .16); }

.card__n {
  position: absolute; top: 24px; right: 24px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: #3E3752;
}
.card h3 {
  font-size: 17px; font-variation-settings: "wdth" 100, "wght" 700;
  letter-spacing: -.005em; margin-bottom: 9px;
}
.card p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* ==========================================================================
   /prices
   ========================================================================== */

.phead { position: relative; text-align: center; padding: 148px 0 clamp(34px, 5vw, 54px); }
.phead__glow {
  position: absolute; left: 0; right: 0; top: -60px; height: 460px; z-index: 0; pointer-events: none;
  background: radial-gradient(46% 60% at 50% 40%, rgba(139, 92, 246, .20), transparent 70%);
}
.phead > *:not(.phead__glow) { position: relative; z-index: 1; }

/* the two sentences are separate blocks, so the break is exact at every
   width instead of depending on how wide a `ch` happens to be */
.ptitle span, .ptitle em { display: block; }
.ptitle {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-variation-settings: "wdth" 112, "wght" 700;
  line-height: .98; letter-spacing: -.03em; text-transform: uppercase;
}
.ptitle em { font-style: normal; color: var(--violet-b); text-shadow: 0 0 44px rgba(139, 92, 246, .5); }
.psub { margin: 20px auto 0; max-width: 52ch; color: var(--muted); font-size: clamp(15px, 1.4vw, 17px); }

/* an app screen, not a landing page: less air, no giant centred slab */
.phead--tight { text-align: left; padding: 116px 0 clamp(22px, 3vw, 32px); }
.phead--tight .ptitle { font-size: clamp(1.9rem, 4vw, 2.9rem); max-width: none; }
.phead--tight .ptitle span, .phead--tight .ptitle em { display: inline; }
.phead--tight .phead__glow { top: -100px; height: 380px; }

/* --- plan cards ----------------------------------------------------------- */

/* auto-fit, not a hardcoded count: empty tracks collapse, so the row always
   holds exactly as many equal columns as there are plans and stretches them to
   fill the width. It was repeat(4, 1fr) — with the yearly tier retired that
   left a dead fourth column and the three cards hugging the left edge. This
   also means adding or removing a tier later needs no CSS change. The 1000px
   and 560px media queries below still override it for the stacked layouts. */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }

.plan {
  position: relative; isolation: isolate;
  display: block; width: 100%; text-align: left;
  padding: 24px 22px 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(139, 92, 246, .05), rgba(14, 11, 20, 0) 58%), var(--bg-2);
  cursor: pointer;
  transition: border-color .25s var(--ease), transform .25s var(--ease), background-color .25s var(--ease);
}
.plan::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%),
              rgba(139, 92, 246, .16), transparent 72%);
  opacity: 0; transition: opacity .3s var(--ease);
}
.plan:hover::before { opacity: 1; }
.plan:hover { border-color: #3B3153; transform: translateY(-3px); }

/* selected: the violet does the talking, no badge needed */
.plan[aria-checked="true"] {
  border-color: rgba(167, 139, 250, .55);
  background: linear-gradient(180deg, rgba(139, 92, 246, .16), rgba(14, 11, 20, 0) 70%), var(--bg-2);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, .28), 0 18px 50px -22px rgba(139, 92, 246, .9);
}
.plan[aria-checked="true"]::after {
  content: ""; position: absolute; top: 0; left: 14px; right: 14px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet-b), transparent);
}

.plan__term {
  display: block;                 /* stacked, and clear of the tag */
  padding-right: 92px;
  font-size: 15px; font-variation-settings: "wdth" 100, "wght" 700;
  letter-spacing: .01em; margin-bottom: 3px;
}
.plan__days { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
              text-transform: uppercase; color: var(--faint); }
.plan__price {
  display: block; margin-top: 18px;
  font-family: var(--mono); font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.15rem); line-height: 1;
  letter-spacing: -.02em; color: var(--text);
}
.plan__day { display: block; margin-top: 9px; font-size: 13px; color: var(--muted); }

.plan__tag {
  position: absolute; top: 18px; right: 18px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--violet-b);
  border: 1px solid rgba(139, 92, 246, .4);
  background: rgba(139, 92, 246, .12);
  border-radius: 999px; padding: 3px 8px;
}

/* --- what every term includes --------------------------------------------- */

.incl {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin-top: 26px; padding: 18px 4px 0;
  border-top: 1px solid var(--line);
}
.incl li {
  display: flex; align-items: center; gap: 9px;
  font-size: 14px; color: var(--muted);
}
/* a real glyph â€” the CSS-gradient tick read as a dot at this size */
.incl li::before {
  content: "\2713";
  display: grid; place-items: center;
  width: 17px; height: 17px; flex: none; border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, .45);
  background: rgba(139, 92, 246, .12);
  color: var(--violet-b); font-size: 10px; line-height: 1;
}

/* --- checkout ------------------------------------------------------------- */

.checkout {
  display: grid; grid-template-columns: 1fr minmax(280px, 380px);
  gap: clamp(20px, 3vw, 44px);
  margin-top: 30px; padding: 26px;
  border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .028), rgba(14, 11, 20, 0)), var(--bg-2);
}
.checkout__lines { align-self: center; }

.sumrow { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 9px 0; }
.sumrow span { font-size: 14.5px; color: var(--muted); }
.sumrow b { font-family: var(--mono); font-weight: 400; font-size: 14px; color: var(--text); }
.sumrow.is-off { display: none; }
.sumrow.is-off.show { display: flex; }
.sumrow b.is-disc { color: var(--violet-b); }

.sumtotal {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px;
}
.sumtotal span {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--faint);
}
.sumtotal b {
  font-family: var(--mono); font-weight: 400; line-height: 1;
  font-size: clamp(2rem, 4vw, 2.6rem); letter-spacing: -.02em; color: var(--text);
}

.checkout__act { display: flex; flex-direction: column; gap: 10px; }

.coupon { display: flex; gap: 8px; }
.coupon input {
  flex: 1; min-width: 0; height: 38px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  padding: 0 16px;
  font-family: var(--mono); font-size: 13px; color: var(--text);
  text-transform: uppercase;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.coupon input::placeholder { color: var(--faint); text-transform: none; }
.coupon input:focus { outline: none; border-color: rgba(167, 139, 250, .5); background: rgba(255, 255, 255, .07); }

.cmsg { min-height: 15px; font-size: 12.5px; line-height: 1.4; }
.cmsg .ok { color: var(--violet-b); }
.cmsg .err { color: #FF7A6B; }
.cmsg .load { color: var(--faint); }

.checkout__go { width: 100%; height: 50px; }
.authnote { font-size: 12.5px; line-height: 1.5; color: var(--faint); }

.notes { display: grid; gap: 9px; margin-top: 26px; }
.notes li { display: flex; gap: 10px; font-size: 13.5px; color: var(--faint); line-height: 1.55; }
.notes sup { font-family: var(--mono); font-size: 10px; color: var(--violet-b); }

@media (max-width: 1000px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .checkout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .plans { grid-template-columns: 1fr; }
  .phead { padding-top: 120px; }
  .checkout { padding: 20px; }
  .incl { gap: 10px 20px; }
}

/* ==========================================================================
   /tos â€” a legal document, so it is set for reading, not for scanning
   ========================================================================== */

.legal__stamp {
  margin-top: 18px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--faint);
}

.legal__notice {
  border: 1px solid rgba(139, 92, 246, .3);
  background: linear-gradient(180deg, rgba(139, 92, 246, .10), rgba(14, 11, 20, 0));
  border-radius: 14px;
  padding: 18px 22px;
  font-size: 15px; line-height: 1.6; color: var(--muted);
  max-width: 78ch;
}
.legal__notice b { color: var(--text); font-variation-settings: "wdth" 100, "wght" 700; }

.legal { margin-top: 40px; }

.clause {
  display: grid; grid-template-columns: 78px minmax(0, 1fr);
  gap: 0 26px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.clause:last-child { border-bottom: 1px solid var(--line); }

.clause__n {
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em;
  color: var(--violet-b); padding-top: 4px;
}
.clause__body { max-width: 74ch; }
.clause__body h2 {
  font-size: 19px; font-variation-settings: "wdth" 100, "wght" 700;
  letter-spacing: -.005em; margin-bottom: 12px; color: var(--text);
}
.clause__body p { font-size: 15px; line-height: 1.68; color: var(--muted); }
.clause__body p + p { margin-top: 12px; }
.clause__body a { color: var(--violet-b); text-decoration: underline; text-underline-offset: 3px; }
.clause__body a:hover { color: var(--text); }

.clause__list { margin-top: 12px; display: grid; gap: 9px; }
.clause__list li {
  position: relative; padding-left: 20px;
  font-size: 15px; line-height: 1.6; color: var(--muted);
}
.clause__list li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--violet-b);
}

.clause__dl { margin-top: 14px; display: grid; gap: 14px; }
.clause__dl dt {
  font-size: 14px; font-variation-settings: "wdth" 100, "wght" 700; color: var(--text);
  margin-bottom: 4px;
}
.clause__dl dd { font-size: 15px; line-height: 1.6; color: var(--muted); }

.legal__end {
  margin-top: 34px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--faint);
}
.legal__end a { color: var(--violet-b); }

@media (max-width: 700px) {
  .clause { grid-template-columns: 1fr; gap: 10px; padding: 22px 0; }
  .clause__n { padding-top: 0; }
  .legal__notice { padding: 16px 18px; }
}

/* ==========================================================================
   /faq
   ========================================================================== */

/* One continuous list, not nine floating boxes â€” the stack of identical
   rounded rectangles was the whole problem. */
.faqs {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .022), rgba(14, 11, 20, 0)), var(--bg-2);
}

.faq {
  position: relative;
  border-top: 1px solid var(--line-2);
  transition: background-color .25s var(--ease);
}
.faq:first-child { border-top: none; }
.faq:hover { background: rgba(255, 255, 255, .018); }

/* a violet edge marks the open row instead of a whole coloured border */
.faq::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--violet-b);
  opacity: 0; transition: opacity .25s var(--ease);
}
.faq.is-open::before { opacity: 1; }
.faq.is-open { background: rgba(139, 92, 246, .055); }

.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  width: 100%; min-height: 62px;          /* comfortable thumb target */
  padding: 18px 22px;
  text-align: left;
  font-size: 16px; font-variation-settings: "wdth" 100, "wght" 600;
  letter-spacing: -.005em; color: var(--text);
  transition: color .2s var(--ease);
}
.faq__q:hover { color: #fff; }

/* a plus that becomes a minus */
.faq__q i {
  position: relative; flex: none; width: 17px; height: 17px;
}
.faq__q i::before, .faq__q i::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  background: var(--violet-b); border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.faq__q i::before { width: 15px; height: 1.5px; }
.faq__q i::after  { width: 1.5px; height: 15px; }
.faq__q[aria-expanded="true"] i::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

/* 0fr â†’ 1fr animates height without measuring anything in JS */
.faq__wrap {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .34s var(--ease);
}
.faq__q[aria-expanded="true"] + .faq__wrap { grid-template-rows: 1fr; }
.faq__in { overflow: hidden; }
.faq__in p {
  padding: 0 22px 24px;
  font-size: 15px; line-height: 1.65; color: var(--muted); max-width: 76ch;
}
.faq__in a { color: var(--violet-b); text-decoration: underline; text-underline-offset: 3px; }
.faq__in a:hover { color: var(--text); }

.navlink.is-here { color: var(--text); }

.faqcta {
  margin-top: 44px; padding-top: 34px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.faqcta p {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-variation-settings: "wdth" 108, "wght" 700;
  letter-spacing: -.02em; margin-bottom: 20px;
}

@media (max-width: 720px) {
  .faq__q { padding: 16px 18px; font-size: 15.5px; gap: 14px; }
  .faq__in p { padding: 0 18px 18px; font-size: 14.5px; }
}

/* ==========================================================================
   /dashboard
   ========================================================================== */

.dgrid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }

.dcard {
  position: relative; isolation: isolate;
  grid-column: span 12;
  border: 1px solid var(--line); border-radius: 16px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(139, 92, 246, .05), rgba(14, 11, 20, 0) 58%), var(--bg-2);
}
.dcard--6 { grid-column: span 6; }
.dcard__hd {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--faint);
  padding-bottom: 14px; margin-bottom: 16px;
  border-bottom: 1px solid var(--line-2);
}

.drow {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 9px 0; font-size: 14.5px;
}
.drow + .drow { border-top: 1px solid var(--line-2); }
.drow span { color: var(--muted); }
.drow b {
  font-family: var(--mono); font-weight: 400; font-size: 13.5px; color: var(--text);
  text-align: right; word-break: break-word;
}
.drow b.on  { color: #6EE7A8; }
.drow b.off { color: var(--faint); }

/* profile banner */
.dprofile { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.davatar {
  width: 58px; height: 58px; border-radius: 50%; flex: none; overflow: hidden;
  border: 1px solid rgba(139, 92, 246, .4);
  background: rgba(139, 92, 246, .12);
  display: grid; place-items: center;
}
.davatar img { width: 100%; height: 100%; object-fit: cover; }
.davatar span {
  font-size: 22px; font-variation-settings: "wdth" 112, "wght" 700; color: var(--violet-b);
}
.dprofile__id h2 {
  font-size: 22px; font-variation-settings: "wdth" 108, "wght" 700;
  letter-spacing: -.015em; line-height: 1.1;
}
.dprofile__id p { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.dprofile__act { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.badge2 {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .035);
  font-size: 11.5px; color: var(--muted);
  font-variation-settings: "wdth" 100, "wght" 600;
}
.badge2 svg { width: 12px; height: 12px; flex: none; }
.badge2.pb-role-admin, .badge2.pb-plan { border-color: rgba(255,170,80,.45); background: rgba(255,170,80,.14); color: #FFCF99; }
.badge2.pb-role-developer { border-color: rgba(109,200,255,.45); background: rgba(80,200,255,.14); color: #A8DCFF; }
.badge2.pb-role-tester    { border-color: rgba(116,232,163,.5);  background: rgba(116,232,163,.14); color: #A6F0C8; }
.badge2.pb-role-media     { border-color: rgba(255,155,230,.5);  background: rgba(255,120,220,.14); color: #FFBEEF; }
.badge2.pb-role-customer  { border-color: rgba(168,127,255,.4);  background: rgba(168,127,255,.10); color: var(--violet-b); }
.badge2.pb-active { border-color: rgba(110,231,168,.35); background: rgba(110,231,168,.10); color: #6EE7A8; }
.badge2.pb-inactive { color: var(--faint); }
.badge2.pb-key { font-family: var(--mono); font-size: 11px; letter-spacing: .02em; }
.badge2.pb-discord { border-color: rgba(88,101,242,.45); background: rgba(88,101,242,.14); color: #A3B0FF; }
.badge2.pb-unlink { cursor: pointer; }
.badge2.pb-unlink:hover { border-color: #FF7A6B; color: #FF7A6B; }

/* key */
.dkey {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 10px;
  background: rgba(255, 255, 255, .03);
  padding: 11px 14px;
}
.dkey code {
  flex: 1; min-width: 0; font-family: var(--mono); font-size: 13px; color: var(--text);
  word-break: break-all;
}
.iconbtn {
  flex: none; width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 8px; color: var(--muted);
  transition: border-color .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease);
}
.iconbtn svg { width: 14px; height: 14px; }
.iconbtn:hover { border-color: rgba(167,139,250,.5); color: var(--violet-b); background: rgba(139,92,246,.10); }

.dempty {
  display: flex; align-items: center; gap: 11px;
  padding: 16px; border: 1px dashed var(--line); border-radius: 12px;
  font-size: 14px; color: var(--faint);
}
.dempty svg { width: 17px; height: 17px; flex: none; }

.iconbtn:disabled,
.iconbtn[disabled] {
  opacity: .45; pointer-events: none;
}


/* download */
.dl__opts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 16px 0 18px; }
.dl__opt { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.dl__opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.dl__box {
  width: 17px; height: 17px; border-radius: 5px; flex: none;
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
  display: grid; place-items: center;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.dl__box::after {
  content: ""; width: 8px; height: 4px; margin-top: -2px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(.6); opacity: 0;
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.dl__opt input:checked + .dl__box { background: var(--violet); border-color: var(--violet); }
.dl__opt input:checked + .dl__box::after { opacity: 1; transform: rotate(-45deg) scale(1); }
.dl__opt input:focus-visible + .dl__box { outline: 2px solid var(--violet-b); outline-offset: 2px; }

/* form */
.dform { display: grid; gap: 11px; }
.dfield { position: relative; }
.dfield input {
  width: 100%; height: 44px;
  border: 1px solid var(--line); border-radius: 10px;
  background: rgba(255,255,255,.03); padding: 0 44px 0 14px;
  font-size: 14px; color: var(--text);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.dfield input::placeholder { color: var(--faint); }
.dfield input:focus { outline: none; border-color: rgba(167,139,250,.5); background: rgba(255,255,255,.06); }
.dfield__eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; display: grid; place-items: center;
  color: var(--faint); border-radius: 8px;
}
.dfield__eye svg { width: 16px; height: 16px; }
.dfield__eye:hover { color: var(--text); }

.dmsg { font-size: 13px; min-height: 16px; }
.dmsg.ok { color: #6EE7A8; }
.dmsg.err { color: #FF7A6B; }

/* banner */
.dbanner {
  display: none; align-items: center; justify-content: center; gap: 11px;
  border-radius: 14px; padding: 14px 20px; margin-bottom: 22px;
  font-size: 14.5px;
}
.dbanner.show { display: flex; }
.dbanner svg { width: 18px; height: 18px; flex: none; }
.dbanner.is-ok { border: 1px solid rgba(139,92,246,.4); background: rgba(139,92,246,.12); color: var(--violet-b); }
.dbanner.is-dc { border: 1px solid rgba(88,101,242,.45); background: rgba(88,101,242,.12); color: #A3B0FF; }
.dbanner.is-err { border: 1px solid rgba(255,122,107,.4); background: rgba(255,122,107,.10); color: #FF7A6B; }

/* updates */
.upd { display: grid; gap: 0; }
.updrow { padding: 14px 0; border-top: 1px solid var(--line-2); }
.updrow:first-child { border-top: none; padding-top: 0; }
.updrow b {
  font-family: var(--mono); font-size: 12px; color: var(--violet-b); letter-spacing: .06em;
}
.updrow time { font-family: var(--mono); font-size: 11.5px; color: var(--faint); margin-left: 10px; }
.updrow p { font-size: 14px; line-height: 1.6; color: var(--muted); margin-top: 7px; }

/* variant modal */
.modal {
  position: fixed; inset: 0; z-index: 60; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(4, 3, 7, .78);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.modal.show { display: flex; }
.modal__box {
  width: 100%; max-width: 420px;
  border: 1px solid var(--line); border-radius: 18px; padding: 26px;
  background: linear-gradient(180deg, rgba(139,92,246,.10), rgba(14,11,20,0) 60%), var(--bg-3);
}
.modal__box h3 { font-size: 19px; font-variation-settings: "wdth" 100, "wght" 700; margin-bottom: 8px; }
.modal__box p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }
.modal__act { display: grid; gap: 9px; }

@media (max-width: 860px) {
  .dcard--6 { grid-column: span 12; }
  .dprofile__act { margin-left: 0; width: 100%; }
}
/* the app nav has one link too many for a phone â€” Admin and Log out win */
@media (max-width: 720px) { .nav__left--app { display: none; } }
@media (max-width: 720px) {
  .dcard { padding: 18px; }
  .drow { flex-direction: column; align-items: flex-start; gap: 4px; }
  .drow b { text-align: left; }
}

/* ==========================================================================
   /login Â· /register
   ========================================================================== */

.auth {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  padding: 96px 20px 56px;
}
.auth__glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(46% 40% at 50% 34%, rgba(139, 92, 246, .20), transparent 68%);
}

.authbox {
  position: relative; z-index: 1;
  width: 100%; max-width: 420px;
  border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(26px, 4vw, 36px);
  background: linear-gradient(180deg, rgba(139, 92, 246, .07), rgba(14, 11, 20, 0) 55%), var(--bg-2);
}
/* â”€â”€ log in / sign up switch â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.authtabs {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4px; padding: 4px; margin-bottom: 28px;
  border: 1px solid var(--line); border-radius: 13px;
  background: var(--bg);
}
.authtabs__pill {
  position: absolute; z-index: 0;
  top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 6px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-3);
  transition: transform .42s var(--ease);
  view-transition-name: authpill;
}
.authtabs[data-on="register"] .authtabs__pill { transform: translateX(calc(100% + 4px)); }

.authtab {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  height: 38px; border-radius: 10px;
  font-size: 14px; color: var(--muted);
  font-variation-settings: "wdth" 100, "wght" 600;
  transition: color .3s var(--ease);
}
.authtab:hover { color: var(--text); }
.authtab[aria-selected="true"] { color: var(--text); }

/* letter-by-letter heading, filled in by auth.js */
.authbox__top h1 .ch {
  display: inline-block;
  white-space: pre;
  animation: chIn .5s var(--ease) both;
  animation-delay: calc(var(--i) * 26ms + 90ms);
}
@keyframes chIn {
  from { opacity: 0; transform: translateY(.42em); filter: blur(3px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* everything under the heading arrives in sequence */
.js .authbox .stag {
  animation: stagIn .55s var(--ease) both;
  animation-delay: calc(var(--i) * 65ms + 240ms);
}
@keyframes stagIn {
  from { opacity: 0; transform: translateY(9px); }
  to   { opacity: 1; transform: none; }
}

/* cross-page morph: the card and the pill stay put, the contents swap */
@view-transition { navigation: auto; }
.authbox { view-transition-name: authbox; }

::view-transition-old(root) { animation: vtOut .22s var(--ease) both; }
::view-transition-new(root) { animation: vtIn .34s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn  { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .authtabs__pill { transition: none; }
  .authbox__top h1 .ch,
  .js .authbox .stag { animation: none; opacity: 1; transform: none; filter: none; }
}

.authbox__top { text-align: center; margin-bottom: 26px; }
.authbox__top img { height: 30px; width: auto; margin: 0 auto 16px; }
.authbox__top h1 {
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  font-variation-settings: "wdth" 110, "wght" 700;
  letter-spacing: -.02em; line-height: 1.1;
}
.authbox__top h1 em { font-style: normal; color: var(--violet-b); }
.authbox__top p { margin-top: 8px; font-size: 14px; color: var(--muted); }

.afield { display: grid; gap: 7px; margin-bottom: 14px; }
.afield > label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--faint);
}
.afield__wrap { position: relative; }
.afield input {
  width: 100%; height: 46px;
  border: 1px solid var(--line); border-radius: 11px;
  background: rgba(255, 255, 255, .035);
  padding: 0 46px 0 15px;
  font-size: 15px; color: var(--text);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.afield input::placeholder { color: var(--faint); }
.afield input:focus {
  outline: none; border-color: rgba(167, 139, 250, .55);
  background: rgba(255, 255, 255, .06);
}
.afield input[inputmode="numeric"] {
  text-align: center; letter-spacing: .5em; padding-inline: 15px;
  font-family: var(--mono); font-size: 20px;
}
.aeye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 9px; color: var(--faint);
}
.aeye svg { width: 17px; height: 17px; }
.aeye:hover { color: var(--text); }

.arow {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin: 4px 0 18px; font-size: 13.5px;
}
.arow a { color: var(--violet-b); }
.arow a:hover { color: var(--text); }

.acheck { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); cursor: pointer; }
.acheck input { position: absolute; opacity: 0; width: 0; height: 0; }
.acheck i {
  width: 17px; height: 17px; border-radius: 5px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.acheck i::after {
  content: ""; width: 8px; height: 4px; margin-top: -2px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(.6); opacity: 0;
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.acheck input:checked + i { background: var(--violet); border-color: var(--violet); }
.acheck input:checked + i::after { opacity: 1; transform: rotate(-45deg) scale(1); }
.acheck input:focus-visible + i { outline: 2px solid var(--violet-b); outline-offset: 2px; }

.abtn { width: 100%; height: 48px; }

.amsg { min-height: 18px; margin-top: 12px; font-size: 13.5px; text-align: center; }
.amsg.ok  { color: #6EE7A8; }
.amsg.err { color: #FF7A6B; }

.aalt { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-2);
        text-align: center; font-size: 13.5px; color: var(--muted); }
.aalt a { color: var(--violet-b); font-variation-settings: "wdth" 100, "wght" 600; }
.aalt a:hover { color: var(--text); }

/* â”€â”€ 2FA enrolment â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.qrs { margin-bottom: 20px; text-align: center; }
.qrs__lead { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.qrs__lead b { color: var(--text); font-variation-settings: "wdth" 100, "wght" 600; }

/* white plate on purpose â€” a tinted or inverted QR is the classic reason a
   phone camera refuses to lock on */
.qrs__box {
  width: 190px; height: 190px;
  margin: 0 auto 14px;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
}
.qrs__box svg { display: block; width: 100%; height: 100%; }

.qrs__manual { font-size: 12.5px; color: var(--faint); }
.qrs__manual summary {
  cursor: pointer; color: var(--violet-b);
  font-variation-settings: "wdth" 100, "wght" 600;
}
.qrs__manual summary:hover { color: var(--text); }
.qrs__manual p { margin: 10px 0 8px; color: var(--muted); }
.qrs__manual b { color: var(--text); }
.qrs__manual code {
  display: block;
  font-family: var(--mono); font-size: 12px; line-height: 1.7;
  letter-spacing: .1em; word-break: break-all;
  color: var(--text);
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 9px; padding: 10px 12px;
}

.aback {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 14px; font-size: 13px; color: var(--faint);
}
.aback:hover { color: var(--text); }

/* password strength */
.pw { display: flex; align-items: center; gap: 10px; margin: -4px 0 16px; }
.pw__bars { display: flex; gap: 4px; flex: 1; }
.pw__bar { height: 3px; flex: 1; border-radius: 2px; background: var(--line); transition: background-color .25s var(--ease); }
.pw__bar.on-1 { background: #E5A5A5; }
.pw__bar.on-2 { background: #E4C07A; }
.pw__bar.on-3 { background: var(--violet-b); }
.pw__bar.on-4 { background: #8BD6A8; }
.pw__label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
             text-transform: uppercase; color: var(--faint); min-width: 62px; text-align: right; }

/* Turnstile â€” the widget styles itself, we only give it room */
.cf-turnstile { min-height: 65px; display: flex; justify-content: center; margin-bottom: 16px; }

/* ==========================================================================
   404
   ========================================================================== */

.oops {
  position: relative;
  min-height: calc(100svh - 150px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 120px var(--pad) 60px;
}
.oops__glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(50% 42% at 50% 44%, rgba(139, 92, 246, .20), transparent 68%);
}
.oops > * { position: relative; z-index: 1; }

.oops__code {
  font-size: clamp(5rem, 20vw, 12rem);
  font-variation-settings: "wdth" 112, "wght" 700;
  line-height: .88; letter-spacing: -.05em;
  margin: clamp(14px, 3vh, 26px) 0 0;
}
.oops__code em {
  font-style: normal; color: var(--violet-b);
  text-shadow: 0 0 50px rgba(139, 92, 246, .6);
}
.oops__say {
  margin-top: clamp(14px, 3vh, 22px);
  max-width: 42ch;
  font-size: clamp(15px, 1.5vw, 17.5px);
  color: var(--muted);
}

@media (max-width: 720px) {
  .oops { padding-top: 104px; }
  .oops .cta { width: 100%; max-width: 340px; }
  .oops .cta .btn { width: 100%; }
}

/* --- stat strip ----------------------------------------------------------- */

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(180deg, var(--bg-2), rgba(14, 11, 20, 0));
  margin-top: clamp(34px, 5vw, 56px);
  overflow: hidden;
}
.stat { padding: clamp(20px, 3vw, 30px); }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b {
  display: block;
  font-family: var(--mono); font-weight: 400;
  font-size: clamp(1.9rem, 4.2vw, 2.9rem); line-height: 1;
  color: var(--text); letter-spacing: -.02em;
}
.stat span {
  display: block; margin-top: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--faint);
}

/* --- closing -------------------------------------------------------------- */

.close { text-align: center; padding-block: clamp(64px, 8vw, 108px); }
.close h2 {
  font-size: clamp(2rem, 6vw, 4rem);
  font-variation-settings: "wdth" 112, "wght" 700;
  line-height: .98; letter-spacing: -.03em; text-transform: uppercase;
}
.close h2 em { font-style: normal; color: var(--violet-b); }
.close .cta { margin-top: 30px; }

/* --- footer --------------------------------------------------------------- */

.foot {
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 24px 0 calc(28px + env(safe-area-inset-bottom));
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--faint);
}
.foot a { transition: color .18s var(--ease); }
.foot a:hover { color: var(--text); }
.foot__links { display: flex; gap: 18px; flex-wrap: wrap; }

/* --- motion --------------------------------------------------------------- */

.js .rise { opacity: 0; transform: translateY(14px); }
.js.is-ready .rise {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0s);
}

.js .slogan .w { opacity: 0; transform: translateY(.14em); }
.js.is-ready .slogan .w {
  opacity: 1; transform: none;
  transition: opacity .62s var(--ease), transform .62s var(--ease);
  transition-delay: var(--d, 0s);
}
.slogan .w { display: inline-block; }
.slogan .w:nth-child(1) { --d: .10s; }
.slogan .w:nth-child(2) { --d: .20s; }
.slogan .w:nth-child(3) { --d: .30s; }

/* scroll reveals â€” one move, no stagger circus */
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.in {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
}

/* --- mobile: its own rhythm ----------------------------------------------- */

@media (max-width: 1040px) { .cards { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: none; border-top: 1px solid var(--line); }
}

@media (max-width: 720px) {
  .nav { padding: 12px 16px; gap: 6px; }
  .brand span { font-size: 14px; letter-spacing: .14em; }
  .brand img { height: 18px; }
  .badge { display: none; }
  .nav__left { margin-left: 2px; }
  .navlink { padding: 8px 9px; font-size: 13.5px; }

  /* sized so "VANTA OR" holds one line down to a 320px screen */
  .slogan { font-size: clamp(2.4rem, 15vw, 4.5rem); line-height: .95; max-width: 100%; }
  .vanta { padding-top: 104px; }
  .cta { width: 100%; max-width: 340px; gap: 10px; }
  .cta .btn { width: 100%; }
  .stmt { max-width: 100%; }

  /* side-by-side, both halves wrapped mid-phrase â€” stack them instead */
  .sechead { flex-direction: column; align-items: flex-start; gap: 7px; }
  .sechead span { white-space: nowrap; }

  .cards { grid-template-columns: 1fr; gap: 12px; }
  .card { padding: 22px 20px 24px; }
  .foot { flex-direction: column-reverse; justify-content: center; text-align: center; gap: 10px; }
  /* 17px text in a 43px tappable box, without spreading the row apart */
  .foot__links { justify-content: center; gap: 4px; margin-block: -13px; }
  .foot__links a { padding: 13px 10px; }
}

@media (max-width: 400px) {
  .navlink { padding: 8px 7px; font-size: 13px; }
  .eyebrow { font-size: 10.5px; padding: 6px 12px; }
}

/* --- reduced motion ------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .vanta__glow, .cue i::after { animation: none; }
  .js .rise, .js .slogan .w, .js .reveal {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
