/* Night Bandit website. The look is the app's pass seven (DESIGN.md section 0): Nunito, chunky 3D keys with a
   darker lip, 2px-bordered cards, one meaning per colour (violet = Night Bandit and the main action, green = a good
   choice, orange = streak, gold = XP, blue = info, red = danger). The page alternates the app's two palettes:
   indigo "night" bands and white "day" bands. */

@font-face {
  font-family: 'Nunito';
  src: url('/fonts/nunito-latin.woff2') format('woff2');
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --night: #131A31;
  --night-2: #1C2444;
  --night-line: #2D3761;
  --night-ink: #F5F6FF;
  --night-muted: #A3ABCD;
  --day: #FFFFFF;
  --day-2: #F6F5FC;
  --day-line: #E5E7F1;
  --day-ink: #2F3250;
  --day-muted: #5E6382;
  --accent: #7C4DFF;
  --accent-lip: #5B30DA;
  --accent-soft: #F1ECFF;
  --accent-n: #8C69FF;
  --accent-n-lip: #6644DD;
  --success: #1C7F38;
  --success-lip: #135A27;
  --success-soft: #E8F9EC;
  --streak: #FF9600;
  --streak-lip: #DD7300;
  --streak-soft: #FFF3E2;
  --xp: #FFC21A;
  --xp-lip: #DCA000;
  --info: #1CB0F6;
  --info-soft: #E7F6FE;
  --danger: #FF4B55;
  --danger-soft: #FFECEE;
  --radius: 20px;
  --wrap: 1120px;
  --gutter: 20px;
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: 'Nunito', ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.55;
  color: var(--day-ink);
  background: var(--day);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { text-wrap: pretty; }
h1 { font-weight: 900; font-size: clamp(40px, 6.4vw, 72px); letter-spacing: -0.02em; }
h2 { font-weight: 900; font-size: clamp(32px, 4.6vw, 52px); }
h3 { font-weight: 800; font-size: 22px; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--info); outline-offset: 3px; border-radius: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Bands ---------- */
.band { padding: 96px 0; position: relative; }
.band.night { background: var(--night); color: var(--night-ink); }
.band.soft { background: var(--day-2); }
.band.night .muted, .night .muted { color: var(--night-muted); }
.muted { color: var(--day-muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 900; font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-lip); margin-bottom: 14px;
}
.night .eyebrow { color: #B9A5FF; }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head p { margin-top: 16px; font-size: 20px; }

/* ---------- Keys (the app's 3D buttons) ---------- */
.key {
  --face: var(--accent); --lip: var(--accent-lip); --ink: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px;
  border: 0; border-radius: 16px;
  background: var(--face); color: var(--ink);
  box-shadow: 0 5px 0 var(--lip);
  font: inherit; font-weight: 900; font-size: 18px; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transform: translateY(0); transition: transform .08s, box-shadow .08s, filter .15s;
  -webkit-tap-highlight-color: transparent;
}
.key:hover { filter: brightness(1.06); }
.key:active { transform: translateY(5px); box-shadow: 0 0 0 var(--lip); }
.key.green { --face: var(--success); --lip: var(--success-lip); }
.key.ghost { --face: transparent; --lip: var(--day-line); --ink: var(--accent-lip); border: 2px solid var(--day-line); box-shadow: 0 4px 0 var(--day-line); }
.night .key.ghost { --lip: var(--night-line); --ink: var(--night-ink); border-color: var(--night-line); box-shadow: 0 4px 0 var(--night-line); }
.key.ghost:active { box-shadow: 0 0 0 var(--lip); transform: translateY(4px); }
.key.small { min-height: 44px; padding: 0 18px; font-size: 15px; border-radius: 14px; box-shadow: 0 4px 0 var(--lip); }
.key.small:active { transform: translateY(4px); }
.key.big { min-height: 64px; font-size: 20px; padding: 0 34px; }

/* ---------- Cards and chips ---------- */
.card {
  background: var(--day); border: 2px solid var(--day-line); border-radius: var(--radius);
  padding: 28px;
}
.night .card { background: var(--night-2); border-color: var(--night-line); }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 2px solid var(--night-line);
  font-size: 15px; font-weight: 800; color: var(--night-ink);
}
.chip .ic { width: 20px; height: 20px; }
.bubble {
  position: relative; display: inline-block;
  background: #fff; color: var(--day-ink);
  border: 2px solid var(--day-line); border-radius: 18px;
  padding: 12px 16px; font-weight: 800; font-size: 16px; line-height: 1.35;
}
.bubble::after {
  content: ''; position: absolute; left: 28px; bottom: -10px; width: 16px; height: 16px;
  background: inherit; border: inherit; border-top: 0; border-left: 0;
  transform: rotate(45deg); border-radius: 0 0 4px 0;
}
.bubble.tail-left::after { left: -10px; top: 18px; bottom: auto; border: inherit; border-top: 0; border-right: 0; border-radius: 0 0 0 4px; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(19, 26, 49, .86); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 2px solid rgba(45, 55, 97, .7);
  color: var(--night-ink);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 21px; letter-spacing: -.01em; }
.brand svg { width: 38px; height: 38px; border-radius: 11px; }
.nav { display: flex; gap: 22px; margin-left: auto; font-weight: 800; font-size: 16px; }
.nav a { text-decoration: none; color: var(--night-muted); }
.nav a:hover { color: var(--night-ink); }
.lang { font-weight: 900; font-size: 14px; text-decoration: none; color: var(--night-muted); border: 2px solid var(--night-line); border-radius: 10px; padding: 4px 10px; }
.lang:hover { color: var(--night-ink); }
@media (max-width: 900px) { .nav { display: none; } .top .lang { margin-left: auto; } }
@media (max-width: 480px) { .top .key { display: none; } .top .lang { margin-left: auto; } }
.brand span { white-space: nowrap; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(140, 105, 255, .28), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(46, 184, 255, .10), transparent 60%),
    var(--night);
  color: var(--night-ink);
  padding: 72px 0 104px;
  overflow: hidden;
  position: relative;
}
.stars { position: absolute; inset: 0; pointer-events: none; opacity: .75;
  background-image:
    radial-gradient(2px 2px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 28% 62%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 44% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 58% 80%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 72% 30%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 88% 70%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 94% 14%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 6% 84%, #fff 50%, transparent 51%);
}
.moon { position: absolute; right: 6%; top: 56px; width: 64px; height: 64px; opacity: .9; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; position: relative; }
.hero .pill {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  padding: 6px 14px 6px 8px; border-radius: 999px; background: rgba(140,105,255,.16); border: 2px solid rgba(140,105,255,.4);
  font-weight: 900; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: #CFC2FF;
}
.hero .pill .ic { width: 22px; height: 22px; }
.hero h1 { max-width: 12ch; }
.hero h1 em { font-style: normal; color: var(--accent-n); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ''; position: absolute; left: 0; right: 0; bottom: .04em; height: .14em; border-radius: 99px; background: var(--accent-n); opacity: .35; }
.hero .lede { margin-top: 24px; font-size: 21px; color: #D5DAF2; max-width: 34ch; }
.hero .lede strong { color: #fff; font-weight: 900; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero .chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
@media (max-width: 960px) {
  .hero { padding: 48px 0 72px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero h1 { max-width: 14ch; }
  .moon { display: none; }
}

/* ---------- Phone demo (the block screen) ---------- */
.stage { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: 320px; max-width: 100%; aspect-ratio: 9 / 19.2;
  border-radius: 46px; background: #0A0E1C; padding: 12px;
  box-shadow: 0 0 0 2px #2D3761, 0 40px 80px -20px rgba(0,0,0,.6), 0 0 120px -20px rgba(140,105,255,.45);
}
.phone .screen {
  position: relative; height: 100%; border-radius: 36px; overflow: hidden;
  background: var(--night); color: var(--night-ink);
  display: flex; flex-direction: column; padding: 18px 18px 20px;
}
.phone .notch { position: absolute; top: 10px; left: 50%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: #05070F; z-index: 3; }
.phone .statusbar { display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; color: var(--night-muted); padding: 0 6px; margin-bottom: 14px; }
.phone .hud { display: flex; justify-content: space-between; align-items: center; }
.phone .hud .streak { display: inline-flex; align-items: center; gap: 4px; font-weight: 900; font-size: 18px; color: #FF9F1C; }
.phone .hud .hearts { display: inline-flex; gap: 2px; }
.phone .hud .ic { width: 24px; height: 24px; }
.phone .nox-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 0; }
.phone .nox-wrap .nox { width: 150px; height: 150px; }
.phone .bubble { font-size: 14px; padding: 10px 12px; max-width: 250px; text-align: center; }
.phone .bubble::after { left: 50%; margin-left: -8px; }
.phone .title { text-align: center; font-weight: 900; font-size: 20px; margin: 6px 0 14px; }
.phone .key { width: 100%; min-height: 50px; font-size: 15px; border-radius: 14px; box-shadow: 0 4px 0 var(--lip); padding: 0 12px; }
.phone .key:active { transform: translateY(4px); box-shadow: 0 0 0 var(--lip); }
.phone .key.ghost { --ink: var(--night-ink); --lip: var(--night-line); border-color: var(--night-line); margin-top: 12px; }
.phone .price { text-align: center; font-size: 12.5px; font-weight: 700; color: var(--night-muted); margin-top: 8px; line-height: 1.35; }
.phone .price b { color: #FF9F1C; font-weight: 900; }
.phone [data-view] { display: none; }
.phone[data-state="block"] [data-view="block"],
.phone[data-state="beaten"] [data-view="beaten"],
.phone[data-state="walk"] [data-view="walk"],
.phone[data-state="open"] [data-view="open"] { display: flex; }
.phone .view { flex-direction: column; flex: 1; min-height: 0; }
.phone .center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; }
.phone .big-line { font-weight: 900; font-size: 26px; }
.phone .xp { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; font-size: 20px; color: var(--xp); }
.phone .xp .ic { width: 26px; height: 26px; }
/* The errand camera, drawn: a kettle in the viewfinder, the outline snapping green when it matches. */
.viewfinder { position: relative; width: 100%; flex: 1; border-radius: 22px; overflow: hidden; background: linear-gradient(#2A2F45, #151A2C); margin: 4px 0 12px; }
.viewfinder svg.kettle { position: absolute; left: 50%; top: 50%; width: 58%; transform: translate(-50%, -46%); }
.viewfinder .frame { position: absolute; inset: 22% 16% 20%; border: 3px dashed rgba(255,255,255,.55); border-radius: 18px; transition: border-color .25s, inset .4s var(--ease-spring); }
.viewfinder.matched .frame { border: 4px solid #3FCB62; inset: 24% 20% 22%; box-shadow: 0 0 0 999px rgba(19,26,49,.25), 0 0 30px rgba(63,203,98,.6); }
.viewfinder .mini-nox { position: absolute; right: 8px; bottom: 6px; width: 64px; height: 64px; }
.bar { height: 16px; border-radius: 99px; background: var(--night-line); overflow: hidden; margin-bottom: 10px; }
.bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(#5BE07D, #3FCB62); box-shadow: inset 0 -4px 0 rgba(0,0,0,.12); transition: width .3s; }
.phone .scan-line { font-size: 14px; font-weight: 800; text-align: center; min-height: 40px; }
.stage .float-nox { position: absolute; width: 150px; left: -40px; bottom: -30px; filter: drop-shadow(0 16px 24px rgba(0,0,0,.35)); }
.stage .hint {
  position: absolute; right: -18px; top: 30px; transform: rotate(4deg);
  background: var(--xp); color: #4A3300; font-weight: 900; font-size: 14px; padding: 8px 12px; border-radius: 12px; box-shadow: 0 4px 0 var(--xp-lip);
}
@media (max-width: 960px) { .stage .float-nox { left: 0; width: 110px; bottom: -24px; } .stage .hint { right: 0; } }
@media (max-width: 420px) { .stage .float-nox { display: none; } }

/* ---------- Pain ---------- */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pain { display: flex; flex-direction: column; gap: 12px; }
.pain .time { font-weight: 900; font-size: 30px; color: var(--accent); font-variant-numeric: tabular-nums; }
.pain h3 { font-size: 21px; }
.pain p { color: var(--day-muted); font-size: 17px; }
.verdict { margin: 44px auto 0; max-width: 760px; display: flex; gap: 20px; align-items: center; }
.verdict .nox { width: 120px; flex: none; }
.verdict .bubble { font-size: 19px; padding: 16px 20px; }
@media (max-width: 860px) { .pains { grid-template-columns: 1fr; } }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding-top: 34px; }
.step .num {
  position: absolute; top: -22px; left: 24px; width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 900; font-size: 22px; box-shadow: 0 4px 0 var(--accent-lip);
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--day-muted); font-size: 17px; }
.step .art { min-height: 150px; align-content: center; margin: 18px 0 0; border-radius: 16px; background: var(--day-2); display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 14px; }
.app-tile { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 13px; letter-spacing: .02em; position: relative; }
.app-tile .lock { position: absolute; right: -8px; bottom: -8px; width: 26px; height: 26px; background: #fff; border-radius: 50%; padding: 3px; box-shadow: 0 2px 0 var(--day-line); }
.spot { display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 800; font-size: 13px; color: var(--day-muted); }
.spot .ic { width: 36px; height: 36px; }
.spot-card { width: 76px; height: 76px; border-radius: 16px; background: #fff; border: 2px solid var(--day-line); display: grid; place-items: center; }
.spot-card.on { border-color: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }
.choice { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.choice .key { min-height: 44px; font-size: 13px; width: 100%; box-shadow: 0 4px 0 var(--lip); }
.ladder { margin: 56px auto 0; max-width: 880px; }
.ladder h3 { text-align: center; margin-bottom: 8px; }
.ladder > p { text-align: center; color: var(--day-muted); margin-bottom: 24px; }
.rungs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: end; }
.rung { text-align: center; }
.rung .col { border-radius: 14px 14px 6px 6px; background: linear-gradient(var(--accent-n), var(--accent)); box-shadow: inset 0 -6px 0 var(--accent-lip); margin-bottom: 10px; display: flex; align-items: flex-start; justify-content: center; padding-top: 10px; color: #fff; font-weight: 900; font-size: 22px; }
.rung .lbl { font-weight: 800; font-size: 15px; color: var(--day-muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 44px; } }

/* ---------- Why walking ---------- */
.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.why .points { display: grid; gap: 16px; margin-top: 28px; }
.point { display: flex; gap: 16px; align-items: flex-start; }
.point .ic { width: 36px; height: 36px; flex: none; margin-top: 2px; }
.point h3 { font-size: 19px; margin-bottom: 4px; }
.point p { font-size: 17px; }
.offswitch { display: grid; gap: 14px; }
.offswitch .row { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.offswitch .row .what { flex: 1; font-weight: 800; }
.offswitch .row .cost { font-weight: 900; font-size: 15px; padding: 6px 12px; border-radius: 10px; background: var(--night); color: var(--night-muted); max-width: 48%; text-align: center; }
.offswitch .row.us { border-color: var(--accent-n); background: linear-gradient(135deg, #2B2763, var(--night-2)); }
.offswitch .row.us .cost { background: var(--success); color: #fff; }
.offswitch .row .ic { width: 30px; height: 30px; flex: none; }
.study { margin-top: 24px; font-size: 15px; }
.study a { color: #B9A5FF; }
@media (max-width: 860px) { .why { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

/* ---------- Meet Nox ---------- */
.nox-show { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.nox-stage { position: relative; display: flex; flex-direction: column; align-items: center; }
.nox-stage .nox { width: min(340px, 80vw); height: auto; }
.nox-stage .bubble { font-size: 20px; margin-bottom: 18px; max-width: 420px; text-align: center; min-height: 3.2em; display: flex; align-items: center; justify-content: center; }
.nox-stage .bubble::after { left: 50%; margin-left: -8px; }
.moods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mood {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px 14px;
  border-radius: 18px; border: 2px solid var(--day-line); background: #fff; box-shadow: 0 4px 0 var(--day-line);
  font: inherit; font-weight: 800; font-size: 14px; color: var(--day-ink); cursor: pointer; transition: transform .08s, box-shadow .08s, border-color .15s;
}
.mood .nox { width: 72px; height: 72px; }
.mood:active { transform: translateY(4px); box-shadow: 0 0 0 var(--day-line); }
.mood[aria-pressed="true"] { border-color: var(--info); background: var(--info-soft); box-shadow: 0 4px 0 #1899D6; }
.mood small { font-weight: 700; color: var(--day-muted); font-size: 12.5px; text-align: center; line-height: 1.3; }
@media (max-width: 860px) { .nox-show { grid-template-columns: 1fr; } .moods { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 420px) { .mood .nox { width: 60px; height: 60px; } }

/* ---------- Game ---------- */
.game { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.game .card { display: flex; flex-direction: column; gap: 10px; }
.game .card .ic { width: 44px; height: 44px; }
.game .card .big { font-weight: 900; font-size: 30px; line-height: 1; }
.game .card p { font-size: 16px; color: var(--day-muted); }
.game .streak-card { background: var(--streak-soft); border-color: #FFD9A8; }
.game .streak-card .big { color: #A64B00; }
.week { display: flex; gap: 6px; margin-top: 4px; }
.week span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 900; background: #fff; color: var(--day-muted); border: 2px solid #FFD9A8; }
.week span.on { background: var(--streak); border-color: var(--streak-lip); color: #fff; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--day-2); border: 2px solid var(--day-line); }
.badge .ic { width: 28px !important; height: 28px !important; }
.progress { height: 16px; background: var(--day-line); border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 68%; background: linear-gradient(#FFD44D, var(--xp)); border-radius: 99px; box-shadow: inset 0 -4px 0 rgba(0,0,0,.08); }
@media (max-width: 960px) { .game { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .game { grid-template-columns: 1fr; } }

/* ---------- No gadget needed ---------- */
.gadget { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.gadget .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gadget .fact { padding: 22px; }
.gadget .fact .ic { width: 34px; height: 34px; margin-bottom: 10px; }
.gadget .fact h3 { font-size: 18px; margin-bottom: 4px; }
.gadget .fact p { font-size: 15.5px; }
.keycard { position: relative; display: flex; align-items: center; gap: 16px; margin-top: 28px; padding: 18px 20px; max-width: 420px; border-color: var(--success); box-shadow: 0 5px 0 var(--success-lip); }
.keycard-art { width: 64px; height: 64px; flex: none; border-radius: 16px; background: #0B1022; display: grid; place-items: center; }
.keycard-art svg { width: 52px; height: 52px; }
.keycard-text { display: flex; flex-direction: column; line-height: 1.2; }
.keycard-text small { font-size: 13px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--night-muted); }
.keycard-text b { font-size: 24px; font-weight: 900; }
.keycard-price { white-space: nowrap; margin-left: auto; margin-right: 64px; font-weight: 900; font-size: 22px; color: #5BE07D; }
.keycard .nox { position: absolute; right: -18px; bottom: -6px; width: 92px; height: 92px; }
@media (max-width: 860px) { .gadget { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .gadget .facts { grid-template-columns: 1fr; } }

/* ---------- Compare ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 2px solid var(--day-line); background: #fff; }
table.compare { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 16px; }
.compare th, .compare td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 2px solid var(--day-line); }
.compare thead th { font-weight: 900; font-size: 15px; background: var(--day-2); }
.compare tbody th { font-weight: 800; color: var(--day-muted); width: 20%; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare .us { background: var(--accent-soft); font-weight: 800; color: var(--day-ink); }
.compare thead .us { background: var(--accent); color: #fff; }
.compare .us .ic { display: inline-block; vertical-align: -5px; width: 22px; height: 22px; margin-right: 4px; }
.compare-note { font-size: 14px; margin-top: 14px; text-align: center; }

/* ---------- Audiences ---------- */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.person { display: flex; flex-direction: column; gap: 10px; }
.person .nox { width: 84px; height: 84px; margin: -8px 0 0 -8px; }
.person h3 { font-size: 19px; }
.person p { font-size: 16px; color: var(--day-muted); }
@media (max-width: 960px) { .people { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .people { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 900px; margin: 0 auto; }
.plan { display: flex; flex-direction: column; gap: 16px; padding: 32px; }
.plan .name { font-weight: 900; font-size: 24px; display: flex; align-items: center; gap: 10px; }
.plan .price { font-weight: 900; font-size: 44px; line-height: 1; }
.plan .price small { font-size: 17px; font-weight: 800; color: var(--day-muted); }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; font-size: 16.5px; }
.plan li .ic { width: 22px; height: 22px; flex: none; margin-top: 3px; }
.plan.plus { border-color: var(--accent); box-shadow: 0 6px 0 var(--accent-lip); position: relative; }
.plan .tag { position: absolute; top: -16px; right: 24px; background: var(--xp); color: #4A3300; font-weight: 900; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 10px; box-shadow: 0 3px 0 var(--xp-lip); }
.never { max-width: 900px; margin: 26px auto 0; display: flex; gap: 14px; align-items: center; padding: 18px 22px; }
.never .ic { width: 30px; height: 30px; flex: none; }
.never p { font-size: 16px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 2px solid var(--day-line); border-radius: 18px; background: #fff; box-shadow: 0 4px 0 var(--day-line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 900; font-size: 19px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 3.5px solid var(--accent); border-bottom: 3.5px solid var(--accent); transform: rotate(45deg); transition: transform .2s; border-radius: 2px; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .a { padding: 0 22px 22px; color: var(--day-muted); font-size: 17px; display: grid; gap: 10px; }
.faq .a a { color: var(--accent); font-weight: 800; }

/* ---------- Final CTA + beta form ---------- */
.final { text-align: center; overflow: hidden; }
.final .nox { width: 200px; margin: 0 auto 8px; }
.final h2 { max-width: 16ch; margin: 0 auto; }
.final .lede { max-width: 40ch; margin: 18px auto 0; font-size: 20px; }
.beta { display: flex; gap: 12px; max-width: 520px; margin: 32px auto 0; }
.beta input {
  flex: 1; min-width: 0; min-height: 56px; padding: 0 18px; border-radius: 16px;
  border: 2px solid var(--night-line); background: var(--night-2); color: var(--night-ink);
  font: inherit; font-weight: 700; font-size: 17px;
}
.beta input::placeholder { color: #7E87B0; }
.beta input:focus { outline: none; border-color: var(--accent-n); box-shadow: 0 0 0 4px rgba(140,105,255,.25); }
.beta-note { margin-top: 14px; font-size: 14.5px; }
.beta-status { margin-top: 16px; font-weight: 800; min-height: 1.5em; }
.beta-status.ok { color: #5BE07D; }
.beta-status.err { color: #FF8A91; }
.progress-testers { max-width: 520px; margin: 28px auto 0; text-align: left; }
@media (max-width: 560px) { .beta { flex-direction: column; } }

/* ---------- Footer ---------- */
.foot { background: #0D1226; color: var(--night-muted); padding: 48px 0 56px; font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-start; justify-content: space-between; }
.foot .brand { color: var(--night-ink); }
.foot nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--night-ink); }
.foot .small { width: 100%; font-size: 13.5px; opacity: .8; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
    transform: translateY(140%); transition: transform .35s var(--ease-spring);
  }
  .sticky-cta.show { transform: translateY(0); }
  .sticky-cta .key { width: 100%; }
}

/* ---------- Nox animation ---------- */
.nox .nx-blink { transform-box: view-box; transform-origin: 100px 86px; animation: nx-blink 4.2s infinite; }
.nox .nx-tail { transform-box: view-box; transform-origin: 138px 176px; animation: nx-tail 2.6s ease-in-out infinite; }
.nox .nx-wave { transform-box: view-box; transform-origin: 134px 146px; animation: nx-wave 1.1s ease-in-out infinite; }
.nox .nx-zzz { animation: nx-float 2.4s ease-in-out infinite; }
.nox .nx-spark { animation: nx-twinkle 1.6s ease-in-out infinite; }
.nox .nx-drop { animation: nx-float 2s ease-in-out infinite; }
.nox .nx-pulse { transform-box: fill-box; transform-origin: center; animation: nx-pulse .9s ease-in-out infinite; }
.nox .nx-pupil { transition: transform .25s ease-out; }
.nox.bob { animation: nx-bob 3.2s ease-in-out infinite; }
.pop { animation: nx-pop .5s var(--ease-spring); }
@keyframes nx-blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes nx-tail { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(7deg); } }
@keyframes nx-wave { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-18deg); } }
@keyframes nx-float { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(-4px); opacity: .7; } }
@keyframes nx-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes nx-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }
@keyframes nx-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes nx-pop { 0% { transform: scale(.7); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 2px; animation: fall 1.4s ease-in forwards; }
@keyframes fall { to { transform: translateY(640px) rotate(540deg); opacity: .9; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Additions for the rendered markup ---------- */
.lead { margin-top: 16px; font-size: 19px; }
.hero .chips { list-style: none; padding: 0; }
.app-tile { background: #fff; border: 2px solid var(--day-line); box-shadow: 0 3px 0 var(--day-line); }
.app-tile .lock { display: grid; place-items: center; }
.mini-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 2px solid var(--day-line); font-weight: 800; font-size: 14px; }
.steps { list-style: none; padding: 0; margin: 0; }
.spot-card svg { width: 48px; height: 48px; }
.choice .key { pointer-events: none; }
.rung .col small { font-size: 14px; font-weight: 800; margin-left: 2px; opacity: .85; align-self: flex-start; margin-top: 7px; }
.rung .col.h100 { height: 200px; }
.rung .col.h50 { height: 110px; }
.rung .col.h30 { height: 76px; }
.rung .col.h20 { height: 58px; }
.off-h { margin-bottom: 18px; font-size: 22px; }
.offswitch { list-style: none; padding: 0; margin: 0; }
.game .lvl { font-weight: 900; font-size: 14px; color: #8A6100; margin-top: 4px; }
.person .nox { width: 84px; height: 84px; }
.final .nox { width: 180px; height: 180px; }
.phone .center .nox { width: 140px; height: 140px; }
.phone .view[data-view="open"] .bubble { margin-bottom: 4px; }
.phone .statusbar .batt { width: 22px; height: 11px; border: 2px solid var(--night-muted); border-radius: 3px; position: relative; margin-top: 3px; }
.phone .statusbar .batt::after { content: ''; position: absolute; inset: 1px 6px 1px 1px; background: var(--night-muted); border-radius: 1px; }
.foot .tagline { margin-top: 10px; }
.lost { min-height: 70vh; display: grid; place-items: center; }
.lost .back { margin-top: 28px; }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(36px, 5vw, 52px); }
.prose h2 { font-size: 24px; margin: 36px 0 10px; }
.prose p { color: var(--day-muted); font-size: 18px; }
.prose .updated { margin-top: 10px; font-size: 15px; }
.step .art:has(.art-row) { flex-direction: column; gap: 14px; }
.art-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.plan .price-alt { margin-top: -8px; font-weight: 800; font-size: 15px; color: var(--day-muted); }

/* ---------- Guides (articles and hubs) ---------- */
.band.doc { padding: 40px 0 88px; }
.doc-wrap { max-width: 800px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14.5px; font-weight: 800; color: var(--day-muted); margin-bottom: 28px; }
.crumbs a { color: var(--accent-lip); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.doc-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.doc-head h1 { font-size: clamp(32px, 4.6vw, 48px); }
.doc-nox { width: 140px; height: 140px; }
.doc-meta { margin-top: 14px; font-size: 15px; font-weight: 700; color: var(--day-muted); }
.doc-lede { margin-top: 22px; font-size: 21px; line-height: 1.55; color: var(--day-ink); }
.note { margin: 24px 0; padding: 16px 20px; border-radius: 16px; background: var(--info-soft); border: 2px solid #BFE6FB; font-size: 16px; color: var(--day-ink); }
.note.disclose { background: var(--accent-soft); border-color: #DCD0FF; }
.toc { margin: 28px 0 8px; padding: 18px 22px; border: 2px solid var(--day-line); border-radius: 18px; background: var(--day-2); }
.toc p { font-weight: 900; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--day-muted); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 22px; display: grid; gap: 4px; font-size: 16.5px; }
.toc a { color: var(--accent-lip); text-decoration: none; font-weight: 800; }
.toc a:hover { text-decoration: underline; }
.doc-body { font-size: 18px; line-height: 1.7; }
.doc-body h2 { font-size: clamp(26px, 3.2vw, 32px); margin: 48px 0 14px; scroll-margin-top: 90px; }
.doc-body h3 { font-size: 21px; margin: 30px 0 10px; scroll-margin-top: 90px; }
.doc-body p { margin: 0 0 16px; }
.doc-body ul, .doc-body ol { margin: 0 0 18px; padding-left: 24px; display: grid; gap: 8px; }
.doc-body a { color: var(--accent-lip); font-weight: 800; }
.doc-body strong { font-weight: 900; }
ol.howto { list-style: none; padding-left: 0; counter-reset: howto; gap: 12px; }
ol.howto > li { counter-increment: howto; position: relative; padding: 14px 18px 14px 62px; border: 2px solid var(--day-line); border-radius: 16px; background: #fff; }
ol.howto > li::before { content: counter(howto); position: absolute; left: 16px; top: 13px; width: 32px; height: 32px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 900; font-size: 16px; display: grid; place-items: center; box-shadow: 0 3px 0 var(--accent-lip); }
table.data { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15.5px; line-height: 1.45; }
.data th, .data td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 2px solid var(--day-line); }
.data thead th { background: var(--day-2); font-weight: 900; font-size: 14.5px; }
.data tbody th { font-weight: 900; white-space: nowrap; }
.data tr:last-child th, .data tr:last-child td { border-bottom: 0; }
.doc-body .table-wrap { margin: 8px 0 22px; }
.doc-faq { margin-top: 56px; max-width: none; }
.doc-faq h2 { font-size: clamp(26px, 3.2vw, 32px); margin-bottom: 8px; scroll-margin-top: 90px; }
.cta-card { margin: 56px 0 0; display: flex; gap: 24px; align-items: center; padding: 28px; border-radius: 24px; background: var(--night); color: var(--night-ink); }
.cta-card .nox { width: 120px; height: 120px; flex: none; }
.cta-card h2 { font-size: 26px; margin-bottom: 8px; }
.cta-card p { color: #D5DAF2; margin-bottom: 18px; font-size: 17px; }
.author { margin-top: 36px; display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 2px solid var(--day-line); border-radius: 18px; }
.author img { border-radius: 12px; flex: none; }
.author p { font-size: 16px; color: var(--day-muted); }
.author strong { color: var(--day-ink); }
.related { margin-top: 44px; }
.related h2, .sources h2 { font-size: 24px; margin-bottom: 14px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.related-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; text-decoration: none; box-shadow: 0 4px 0 var(--day-line); transition: transform .08s, box-shadow .08s; }
.related-card:hover { border-color: var(--accent); }
.related-card .eyebrow { margin: 0; font-size: 12px; }
.related-card strong { font-size: 18px; line-height: 1.3; color: var(--day-ink); }
.sources { margin-top: 44px; font-size: 15px; }
.sources ol { padding-left: 22px; display: grid; gap: 6px; margin-top: 10px; }
.sources a { color: var(--accent-lip); word-break: break-word; }
.hub-list { display: grid; gap: 16px; margin-top: 36px; }
.hub-card { display: block; text-decoration: none; padding: 26px 28px; box-shadow: 0 4px 0 var(--day-line); transition: transform .08s, box-shadow .08s, border-color .15s; }
.hub-card:hover { border-color: var(--accent); }
.hub-card:active, .related-card:active { transform: translateY(4px); box-shadow: 0 0 0 var(--day-line); }
.hub-card h2 { font-size: 23px; margin: 2px 0 8px; color: var(--day-ink); }
.hub-card .eyebrow { margin: 0; font-size: 12.5px; }
.hub-card .muted { font-size: 16.5px; }
@media (max-width: 640px) {
  .doc-head { grid-template-columns: minmax(0, 1fr); }
  .doc-nox { display: none; }
  .cta-card { flex-direction: column; text-align: center; }
  .doc-lede { font-size: 19px; }
  ol.howto > li { padding-left: 56px; }
}

/* ---------- Legal and help pages (synced drafts) ---------- */
.legal .eyebrow { margin-bottom: 8px; }
.legal .updated { margin-top: 10px; font-size: 15px; color: var(--day-muted); }
.legal h3 { font-size: 20px; margin: 22px 0 8px; }
.legal ul { padding-left: 22px; display: grid; gap: 8px; margin: 0 0 16px; color: var(--day-muted); font-size: 17.5px; }
.legal li strong, .legal p strong { color: var(--day-ink); }
.legal a { color: var(--accent-lip); font-weight: 800; }
.legal .summary { margin: 26px 0 8px; padding: 20px 24px; border-radius: 18px; background: var(--accent-soft); border: 2px solid #DCD0FF; }
.legal .summary h2 { margin-top: 0; }
.legal .summary ul { color: var(--day-ink); margin-bottom: 0; }
.legal .table-scroll { overflow-x: auto; margin: 10px 0 18px; border: 2px solid var(--day-line); border-radius: 16px; }
.legal table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15.5px; line-height: 1.45; }
.legal th, .legal td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 2px solid var(--day-line); }
.legal thead th { background: var(--day-2); font-weight: 900; }
.legal tr:last-child td { border-bottom: 0; }
.legal details { border: 2px solid var(--day-line); border-radius: 16px; background: #fff; margin: 0 0 10px; box-shadow: 0 3px 0 var(--day-line); }
.legal summary { cursor: pointer; padding: 16px 20px; font-weight: 900; font-size: 18px; color: var(--day-ink); }
.legal details > *:not(summary) { margin-left: 20px; margin-right: 20px; }
.legal details > :last-child { margin-bottom: 16px; }
.legal .note { color: var(--day-ink); }
