/* overlay.win — one sheet, one typeface, no outlines. Dark by default, light by the sun.
   Tokens and shapes follow the approved design: a flat sheet with a soft spotlight, cards with a hairline, big quiet type. */
@font-face { font-family: "DM Sans"; src: url("/fonts/DMSans-Regular.woff2") format("woff2"), url("/fonts/DMSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/DMSans-Medium.woff2") format("woff2"), url("/fonts/DMSans-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/DMSans-Bold.woff2") format("woff2"), url("/fonts/DMSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --sheet: #0d0e13;
  --sheet-2: #14161d;
  --paper: #eceef3;
  --ash: rgba(236,238,243,.66);
  --smoke: rgba(236,238,243,.5);
  --card: #14161d;
  --card-2: #1a1d26;
  --hair: rgba(255,255,255,.1);
  --glass: rgba(255,255,255,.05);
  --glass-2: rgba(255,255,255,.09);
  --well: rgba(0,0,0,.35);
  --accent: #eceef3;
  --on-accent: #0d0e13;
  --focus: #8fb0ff;
  --signal: #ff5a4f;
  --good: #2ed57a;
  --panel: #10121a;
  --r1: #181b27; --r2: #131622; --r3: #0d0e13;
  --spot: rgba(255,255,255,.075);
  --navbg: rgba(20,22,29,.72);
  --card-shadow: 0 0 0 1px rgba(255,255,255,.08);
  --keytop: linear-gradient(#f6f7fa,#d5d8e0); --keyside: #9ea3b0; --keyink: #0d0e13;
  --stack-shadow: rgba(0,0,0,.6);
  --ground-shadow: rgba(0,0,0,.6);
  --r-panel: 24px;
  --r-control: 11px;
  --shadow: 0 24px 60px rgba(0,0,0,.5), 0 2px 8px rgba(0,0,0,.3);
  --ease: cubic-bezier(.22,.8,.2,1);
  --spring: cubic-bezier(.34,1.3,.64,1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --sheet: #eef0f5;
  --sheet-2: #f7f8fb;
  --paper: #14161d;
  --ash: rgba(20,22,29,.7);
  --smoke: rgba(20,22,29,.56);
  --card: #ffffff;
  --card-2: #f3f5fa;
  --hair: rgba(20,22,29,.1);
  --glass: rgba(20,22,29,.04);
  --glass-2: rgba(20,22,29,.07);
  --well: rgba(20,22,29,.06);
  --accent: #14161d;
  --on-accent: #ffffff;
  --focus: #3b6ae0;
  --signal: #e5484d;
  --panel: #e3e7f1;
  --r1: #d6dbe9; --r2: #cad0e1; --r3: #bec5d9;
  --spot: rgba(255,255,255,.95);
  --navbg: rgba(255,255,255,.78);
  --card-shadow: 0 0 0 1px rgba(20,22,29,.07), 0 18px 44px rgba(20,24,40,.07);
  --keytop: linear-gradient(#2c2f3b,#14161d); --keyside: #05060a; --keyink: #eceef3;
  --stack-shadow: rgba(20,24,40,.32);
  --ground-shadow: rgba(20,24,40,.3);
  --shadow: 0 24px 60px rgba(20,24,40,.16), 0 2px 8px rgba(20,24,40,.06);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.55;
  color: var(--paper); background: var(--sheet); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .45s var(--ease), color .45s var(--ease);
  overflow-x: hidden;
}
/* One soft spotlight at the top of every page. It is part of the page, so it scrolls away with it. */
body::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 900px; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 70% at 50% 0%, var(--spot), transparent 70%);
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; animation-iteration-count: 1 !important; } html { scroll-behavior: auto; } }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
::selection { background: rgba(143,176,255,.35); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.brand, .nocopy { user-select: none; -webkit-user-select: none; }

/* ----------------------------------------------------------- scroll progress (thin line at the very top) */
.progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 120; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--accent); opacity: .85; pointer-events: none; }

/* ----------------------------------------------------------- layout */
.wrap { width: min(1312px, calc(100% - 40px)); margin: 0 auto; }
.nav {
  position: sticky; top: 12px; z-index: 80; display: flex; align-items: center; gap: 4px; height: 58px;
  padding: 0 8px 0 18px; margin-top: 14px; border-radius: 16px;
  background: var(--navbg); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: inset 0 0 0 1px var(--hair);
  transition: box-shadow .3s var(--ease), background-color .3s, transform .35s var(--ease);
}
.nav.scrolled { box-shadow: inset 0 0 0 1px var(--hair), 0 14px 40px -14px rgba(0,0,0,.45); }
:root[data-theme="light"] .nav.scrolled { box-shadow: inset 0 0 0 1px var(--hair), 0 14px 40px -14px rgba(20,24,40,.22); }
.nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.03em; font-size: 19px; margin-right: 22px; }
.nav .brand img { width: 30px; height: 30px; display: block; }
.nav .links { display: flex; gap: 2px; }
.nav .links a { padding: 9px 14px; border-radius: 9px; color: var(--ash); font-weight: 500; font-size: 15px; transition: color .2s, background-color .2s; }
.nav .links a:hover, .nav .links a[aria-current] { color: var(--paper); background: var(--glass); }
.nav .spacer { flex: 1; }
.nav .cta { display: flex; align-items: center; gap: 4px; }
.nav .cta .btn { height: 40px; padding: 0 18px; font-size: 15px; }
.nav .menu { display: none; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--paper); cursor: pointer; place-items: center; }
.nav .menu:hover { background: var(--glass-2); }
.nav .menu svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 760px) {
  .nav { height: 54px; padding-left: 14px; }
  .nav .brand { margin-right: 0; font-size: 18px; }
  .nav .menu { display: grid; }
  .nav .links { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); flex-direction: column; padding: 8px; border-radius: 16px; background: var(--card); box-shadow: var(--card-shadow), var(--shadow); }
  .nav.open .links { display: flex; animation: drop .28s var(--ease) both; }
  .nav .links a { padding: 13px 14px; font-size: 16px; }
  .nav .cta .btn.ghost { display: none; }
  .nav .cta .btn { padding: 0 14px; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* ----------------------------------------------------------- type */
h1, h2, h3 { margin: 0; letter-spacing: -.035em; line-height: 1.05; font-weight: 700; }
.mega { font-size: clamp(46px, 9.2vw, 132px); letter-spacing: -.05em; line-height: .98; }
.mega .sub { display: block; margin-top: .1em; font-size: .455em; line-height: 1.08; letter-spacing: -.035em; color: var(--ash); }
.display { font-size: clamp(38px, 5.8vw, 80px); letter-spacing: -.045em; line-height: 1; }
.h1 { font-size: clamp(36px, 4.8vw, 60px); letter-spacing: -.04em; line-height: 1.02; }
.h2 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.035em; }
.h3 { font-size: clamp(18px, 1.7vw, 21px); letter-spacing: -.02em; line-height: 1.2; }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--ash); max-width: 52ch; }
.meta { color: var(--ash); font-size: 15px; }
.eyebrow { font-size: 15px; font-weight: 500; color: var(--ash); }
.grad { color: var(--paper); }
.sub-ash { color: var(--ash); }

/* ----------------------------------------------------------- controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: var(--r-control); border: 0; font: inherit; font-weight: 500; font-size: 15.5px; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .2s, color .2s, box-shadow .25s, opacity .2s;
}
.btn:active { transform: scale(.975); }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { transform: translateY(-1px); opacity: .93; box-shadow: 0 10px 26px -10px var(--accent); }
.btn.secondary { background: var(--glass-2); color: var(--paper); box-shadow: inset 0 0 0 1px var(--hair); }
.btn.secondary:hover { background: var(--glass); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ash); }
.btn.ghost:hover { color: var(--paper); background: var(--glass); }
.btn.inv { background: var(--on-accent); color: var(--accent); }
.btn.lg { height: 52px; padding: 0 26px; font-size: 16.5px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; transform: none !important; }
.btn .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; display: none; }
.btn.busy .spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 500; color: var(--ash); }
.input {
  height: 50px; padding: 0 16px; border-radius: var(--r-control); border: 1px solid transparent; font: inherit; font-size: 16px; color: var(--paper);
  background: var(--well); box-shadow: inset 0 0 0 1px var(--hair); outline: none; transition: border-color .2s, box-shadow .25s, background-color .2s; width: 100%;
}
.input::placeholder { color: var(--smoke); }
.input:focus { border-color: var(--focus); box-shadow: 0 0 0 4px rgba(143,176,255,.16); }
.input.bad { border-color: rgba(255,90,79,.7); }
.hint { font-size: 13px; color: var(--smoke); }
.error { font-size: 14px; color: var(--signal); min-height: 20px; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--ash); cursor: pointer; line-height: 1.45; }
.check input { appearance: none; width: 22px; height: 22px; border-radius: 7px; background: var(--well); box-shadow: inset 0 0 0 1px var(--hair); margin: 0; flex: none; position: relative; cursor: pointer; transition: background-color .2s; }
.check input:checked { background: var(--accent); }
.check input:checked::after { content: ""; position: absolute; left: 7.5px; top: 3.5px; width: 5px; height: 10px; border: solid var(--on-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.check a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }

.switch { position: relative; width: 46px; height: 28px; border-radius: 14px; background: var(--glass-2); cursor: pointer; flex: none; transition: background-color .25s; border: 0; padding: 0; }
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); transition: transform .3s var(--spring), background-color .25s; }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"]::after { transform: translateX(18px); background: var(--on-accent); }

/* ----------------------------------------------------------- theme toggle: the sun and the moon */
.theme {
  position: relative; flex: none; width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; cursor: pointer; color: var(--paper);
  display: grid; place-items: center; transition: background-color .2s;
}
.theme:hover { background: var(--glass-2); }
.theme svg { width: 20px; height: 20px; overflow: visible; }
.theme .sun-core { transform-origin: 12px 12px; transition: transform .6s var(--spring), fill .3s; }
.theme .ray { transform-origin: 12px 12px; transition: transform .5s var(--spring), opacity .3s; }
.theme .moon-mask { transition: transform .6s var(--spring); }
:root[data-theme="light"] .theme .ray { transform: scale(0); opacity: 0; }
:root[data-theme="light"] .theme .sun-core { transform: scale(1.35) rotate(-40deg); }
:root[data-theme="light"] .theme .moon-mask { transform: translate(-6px, -6px); }
:root:not([data-theme="light"]) .theme .moon-mask { transform: translate(14px, -14px); }

/* ----------------------------------------------------------- panels */
.panel, .card { position: relative; background: var(--card); border-radius: var(--r-panel); box-shadow: var(--card-shadow); }
.panel { padding: 28px; }
.card { padding: 26px; transition: transform .45s var(--ease), box-shadow .3s; }
a.card:hover, .lift:hover { transform: translateY(-4px); }
.grid { display: grid; gap: 16px; }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid.c3, .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; } }
.badge { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 7px; background: var(--glass-2); font-size: 12.5px; font-weight: 700; color: var(--ash); }
.badge.accent { background: rgba(143,176,255,.18); color: #a9c1ff; }
:root[data-theme="light"] .badge.accent { color: #2f5fd0; }
.badge.good { background: rgba(46,213,122,.14); color: var(--good); }
:root[data-theme="light"] .badge.good { color: #17a25b; }
.hr { height: 1px; background: var(--hair); margin: 20px 0; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.row + .row { border-top: 1px solid var(--hair); }
.row .t { font-weight: 700; font-size: 15px; }
.row .d { color: var(--ash); font-size: 14px; }
.ico { width: 46px; height: 46px; border-radius: 12px; background: var(--glass-2); display: inline-flex; align-items: center; justify-content: center; color: var(--paper); flex: none; }
.ico svg, .tile svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ----------------------------------------------------------- reveals, on scroll: once, from below, with a small stagger */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; } .reveal[data-delay="2"] { transition-delay: .16s; } .reveal[data-delay="3"] { transition-delay: .24s; } .reveal[data-delay="4"] { transition-delay: .32s; } .reveal[data-delay="5"] { transition-delay: .4s; }
/* Anything with data-parallax drifts against the scroll; motion.js writes --py (px). */
[data-parallax] { transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
/* Tilt toward the pointer, for images that carry data-tilt; motion.js writes --rx, --ry. */
[data-tilt] { transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s var(--ease); will-change: transform; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes ringA { from { opacity: .55; transform: translate(-50%,-50%) scale(.1); } to { opacity: 0; transform: translate(-50%,-50%) scale(9); } }
@keyframes ringB { from { opacity: .55; transform: translate(-50%,-50%) scale(.1); } to { opacity: 0; transform: translate(-50%,-50%) scale(9); } }
@keyframes marquee { to { transform: translateX(-50%); } }
.rise { animation: rise .9s var(--ease) both; }

/* ----------------------------------------------------------- fit: a canvas drawn in fixed pixels, scaled to the width it has */
.fit { position: relative; width: 100%; }
.fit-in { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.fit.crop { overflow: hidden; }

/* ----------------------------------------------------------- home: hero */
.hero { position: relative; padding-top: clamp(56px, 8vw, 100px); text-align: center; }
.hero .head { position: relative; z-index: 4; }
.hero .head > * { animation: rise .9s var(--ease) both; }
.hero .head > :nth-child(2) { animation-delay: .1s; } .hero .head > :nth-child(3) { animation-delay: .2s; } .hero .head > :nth-child(4) { animation-delay: .3s; } .hero .head > :nth-child(5) { animation-delay: .38s; }
.hero .lead { margin: 26px auto 0; max-width: 700px; }
.hero .actions { margin-top: 30px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero .note { margin-top: 20px; font-size: 14.5px; color: var(--smoke); }
.stage { margin-top: clamp(-10px, 1vw, 10px); cursor: pointer; touch-action: pan-y; }
.stage .fit-in { width: 1440px; height: 760px; }
.display-panel { position: absolute; left: 100px; top: 60px; width: 1240px; height: 620px; border-radius: 30px; overflow: hidden; background: var(--panel); box-shadow: inset 0 0 0 1px var(--hair), 0 50px 110px -30px var(--ground-shadow); }
.display-panel .spot { position: absolute; inset: 0; background: radial-gradient(50% 60% at 50% 30%, var(--spot), transparent 72%); opacity: .6; }
.display-panel .ridge { position: absolute; left: -40px; width: 1320px; transition: transform .5s var(--ease); }
.display-panel .ridge svg { display: block; }
.display-panel .ridge.far { top: 300px; height: 320px; } .display-panel .ridge.mid { top: 400px; height: 220px; } .display-panel .ridge.near { top: 500px; height: 120px; }
.display-panel .ridge polygon { fill: var(--r1); } .display-panel .ridge.mid polygon { fill: var(--r2); } .display-panel .ridge.near polygon { fill: var(--r3); }
.hud { position: absolute; inset: 0; opacity: .5; transition: opacity .9s ease; }
.stage.hidden-overlay .hud { opacity: 1; }
.hud i { position: absolute; display: block; }
.hud .map { left: 1090px; top: 34px; width: 116px; height: 116px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--paper); background: var(--glass); }
.hud .mv { left: 1147px; top: 34px; width: 1.5px; height: 116px; background: var(--smoke); }
.hud .mh { left: 1090px; top: 91px; width: 116px; height: 1.5px; background: var(--smoke); }
.hud .md { left: 1142px; top: 86px; width: 11px; height: 11px; background: var(--paper); transform: rotate(45deg); }
.hud .ch { left: 612px; top: 309px; width: 16px; height: 1.5px; background: var(--paper); }
.hud .cv { left: 619.25px; top: 301.5px; width: 1.5px; height: 16px; background: var(--paper); }
.hud .hp { left: 36px; top: 566px; width: 240px; height: 10px; border-radius: 3px; box-shadow: inset 0 0 0 1.5px var(--paper); overflow: hidden; }
.hud .hp::after { content: ""; display: block; width: 78%; height: 100%; background: var(--paper); }
.layer { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform, opacity; }
.layer .bob { width: 100%; height: 100%; animation: bob 9s ease-in-out infinite; will-change: transform; }
.layer img { display: block; width: 100%; height: 100%; filter: drop-shadow(0 34px 44px var(--stack-shadow)); }
.rig { position: absolute; left: 0; top: 0; width: 1440px; height: 760px; perspective: 1800px; perspective-origin: 50% 40%; pointer-events: none; z-index: 6; }
.rig-3d { position: absolute; left: 0; top: 0; width: 1440px; height: 760px; transform-style: preserve-3d; }
.ring { position: absolute; width: 120px; height: 120px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--paper); pointer-events: none; opacity: 0; z-index: 8; }
.ring.a { animation: ringA 1s ease-out both; } .ring.b { animation: ringB 1s ease-out both; }
.stage-status { position: absolute; left: 128px; top: 86px; z-index: 5; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ash); }
.stage-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--paper); animation: blink 2.6s ease-in-out infinite; }
.stage.hidden-overlay .stage-status i { background: var(--smoke); }
.stage-bar { display: flex; justify-content: center; margin-top: 18px; }
.hudbtn { display: inline-flex; align-items: center; gap: 12px; height: 46px; padding: 0 18px 0 9px; border-radius: 11px; border: 0; background: var(--navbg); box-shadow: inset 0 0 0 1px var(--hair); backdrop-filter: blur(16px); color: var(--paper); cursor: pointer; font: inherit; font-size: 15px; font-weight: 500; transition: background-color .2s, transform .25s var(--ease); }
.hudbtn:hover { background: var(--glass-2); transform: translateY(-1px); }
.kbd, .key-cap { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 7px; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 700; box-shadow: 0 2px 0 var(--smoke); }

/* the island: the overlay's top notch. A Private badge at rest, opens at the top edge */
.isl { position: absolute; overflow: hidden; background: #17191f; color: #eceef3; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 16px 36px -10px rgba(0,0,0,.6); }
.isl .rest { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 500; color: rgba(236,238,243,.86); opacity: 1; transition: opacity .2s .12s; }
.isl .full { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; gap: 12px; opacity: 0; pointer-events: none; transition: opacity .15s; }
.isl.open .rest { opacity: 0; transition-delay: 0s; transition-duration: .12s; }
.isl.open .full { opacity: 1; pointer-events: auto; transition: opacity .32s .16s; }
.isl svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.isl .seg { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: inherit; font: inherit; font-size: 14px; cursor: pointer; padding: 6px 8px; margin: 0 -8px; border-radius: 9px; }
.isl .seg svg { width: 17px; height: 17px; }
.isl .seg:hover { background: rgba(255,255,255,.08); }
.isl .seg b { font-weight: 700; } .isl .seg em { font-style: normal; color: rgba(236,238,243,.6); }
.isl .sdot { width: 7px; height: 7px; border-radius: 50%; background: #2ed57a; flex: none; }
.isl .sdot.off { background: rgba(236,238,243,.4); }
.isl .sep { width: 3px; height: 3px; border-radius: 50%; background: rgba(236,238,243,.35); flex: none; }
.isl .clock { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.isl .clock b { font-size: 15px; font-weight: 700; letter-spacing: -.01em; } .isl .clock span { font-size: 11px; color: rgba(236,238,243,.6); }
.isl .music { display: flex; align-items: center; gap: 9px; min-width: 0; }
.isl .cover { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, #6d7bff, #ff8a6b); flex: none; }
.isl .mt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.isl .mt b { font-size: 13px; font-weight: 700; white-space: nowrap; } .isl .mt span { font-size: 11px; color: rgba(236,238,243,.6); white-space: nowrap; }
.isl .eq { display: flex; align-items: flex-end; gap: 2px; height: 14px; flex: none; }
.isl .eq i { width: 3px; height: 100%; background: #eceef3; border-radius: 1px; transform-origin: bottom; transform: scaleY(.3); }
.isl.open .eq i { animation: eq 1s ease-in-out infinite; }
.isl.open .eq i:nth-child(2) { animation-delay: -.4s; } .isl.open .eq i:nth-child(3) { animation-delay: -.75s; }
@keyframes eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
/* the island inside its own card: opens on hover, on tap and on keyboard focus */
.islandbox { position: relative; min-height: 210px; }
.islandbox .isl { left: calc(50% - 48px); top: 34px; width: 96px; height: 28px; border-radius: 10px; transition: width .55s var(--spring), height .55s var(--spring), left .55s var(--spring), border-radius .5s; }
.islandbox:hover .isl, .islandbox.open .isl, .islandbox:focus-within .isl { left: calc(50% - 210px); width: 420px; height: 58px; border-radius: 20px; }
.islandbox:hover .isl .rest, .islandbox.open .isl .rest, .islandbox:focus-within .isl .rest { opacity: 0; transition-delay: 0s; transition-duration: .12s; }
.islandbox:hover .isl .full, .islandbox.open .isl .full, .islandbox:focus-within .isl .full { opacity: 1; pointer-events: auto; transition: opacity .32s .16s; }
.islandbox:hover .isl .eq i, .islandbox.open .isl .eq i, .islandbox:focus-within .isl .eq i { animation: eq 1s ease-in-out infinite; }
@media (max-width: 520px) { .islandbox:hover .isl, .islandbox.open .isl, .islandbox:focus-within .isl { left: 8px; width: calc(100% - 16px); } .isl .music .mt { display: none; } }

/* ----------------------------------------------------------- home: plugin names, sliding */
.marquee { position: relative; overflow: hidden; height: 96px; margin-top: 40px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.mq { display: flex; width: max-content; height: 96px; align-items: center; animation: marquee 50s linear infinite; }
.mq:hover { animation-play-state: paused; }
.mq span { display: flex; align-items: center; font-size: 22px; font-weight: 500; letter-spacing: -.02em; color: var(--ash); padding: 0 26px; white-space: nowrap; }
.mq span::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--smoke); margin-left: 52px; }

/* ----------------------------------------------------------- home: sections and the bento */
.block { margin-top: clamp(80px, 11vw, 150px); }
.block > .top { text-align: center; }
.block > .top .lead { margin: 22px auto 0; }
.block > .top .display { margin-top: 12px; }
.bento { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.bento .card { overflow: hidden; padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; }
.bento h3 { font-size: clamp(28px, 3vw, 44px); line-height: 1.04; letter-spacing: -.04em; }
.bento h3.s { font-size: clamp(26px, 2.5vw, 36px); line-height: 1.06; letter-spacing: -.035em; }
.bento p { margin: 16px 0 0; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.5; color: var(--ash); }
.bento .s3 { grid-column: span 4; } .bento .s8 { grid-column: span 8; } .bento .s12 { grid-column: span 12; }
.bento .card:hover { transform: translateY(-4px); }
.bento .tall { min-height: 500px; } .bento .mid { min-height: 420px; } .bento .low { min-height: 320px; }
.bento .txt { max-width: 340px; position: relative; z-index: 2; }
.bento .shot { position: absolute; right: -60px; bottom: -50px; width: min(560px, 62%); height: auto; filter: drop-shadow(0 30px 44px var(--stack-shadow)); transition: transform .7s var(--ease); pointer-events: none; }
.bento .card:hover .shot { transform: perspective(1400px) rotateY(-4deg) rotateX(2deg) translate(-12px, -8px) scale(1.03); }
.bento .icons { display: flex; gap: 10px; margin-bottom: 28px; }
.bento .rec { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ash); margin-bottom: 16px; }
.bento .rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); animation: blink 1.6s ease-in-out infinite; }
.ticks { margin-top: auto; padding-top: 24px; display: flex; align-items: flex-end; gap: 4px; height: 88px; }
.ticks i { flex: 1 1 0; border-radius: 2px; background: var(--smoke); transition: height .6s var(--ease); }
.ticks i.now { background: var(--paper); } .ticks i.next { background: var(--glass-2); }
.bento .foot { margin-top: 12px; display: flex; justify-content: space-between; font-size: 14px; font-weight: 500; color: var(--smoke); }
.bento .foot b { color: var(--paper); font-weight: 500; }
.swatches { margin-top: auto; padding-top: 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.swatches i { display: flex; align-items: flex-end; height: 54px; border-radius: 12px; padding: 9px; box-shadow: inset 0 0 0 1px rgba(128,128,128,.28); transition: transform .3s var(--spring); }
.swatches i:hover { transform: translateY(-3px) scale(1.04); }
.swatches i b { width: 16px; height: 16px; border-radius: 5px; }
.bento .island-card { flex-direction: row; padding: 0; align-items: stretch; }
.bento .island-card .txt { flex: 0 0 min(560px, 48%); max-width: none; padding: clamp(28px, 3vw, 44px); }
.bento .island-card .islandbox { flex: 1 1 auto; margin: 12px 12px 12px 0; border-radius: 16px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--hair); overflow: hidden; }
.bento .island-card .islandbox::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 70% at 50% 0%, var(--spot), transparent 72%); }
@media (max-width: 980px) {
  .bento .s3, .bento .s8 { grid-column: span 12; }
  .bento .tall { min-height: 0; } .bento .shot { position: relative; right: auto; bottom: auto; width: 112%; margin: 28px -8% -8% 12%; }
  .bento .island-card { flex-direction: column; } .bento .island-card .txt { flex: none; }
  .bento .island-card .islandbox { margin: 0 12px 12px; min-height: 190px; }
  .bento .mid, .bento .low { min-height: 0; }
}

/* ----------------------------------------------------------- home: what you see and what viewers see */
.tint { background: var(--sheet-2); padding: clamp(70px, 9vw, 110px) 0; margin-top: clamp(80px, 11vw, 150px); }
.tint .block { margin-top: 0; }
.cap { position: relative; margin-top: clamp(36px, 4vw, 56px); border-radius: 30px; overflow: hidden; background: var(--panel); box-shadow: inset 0 0 0 1px var(--hair), 0 40px 90px -30px var(--ground-shadow); }
.cap .fit-in { width: 1312px; height: 600px; }
.cap .bg { position: absolute; inset: 0; }
.cap .bg svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cap .bg .a { fill: var(--r1); } .cap .bg .b { fill: var(--r2); } .cap .bg .c { fill: var(--r3); }
.cap .hud i { opacity: .7; }
.cap .hud { opacity: 1; }
.cap .hud .map { left: 1150px; top: 40px; width: 112px; height: 112px; } .cap .hud .ch { left: 648px; top: 292px; } .cap .hud .cv { left: 655.25px; top: 284.5px; } .cap .hud .hp { left: 32px; top: 548px; }
.cap .mine { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--split, 58) * 1%) 0 0); }
.cap .mine img { position: absolute; filter: drop-shadow(0 26px 38px var(--stack-shadow)); }
.cap .handle { position: absolute; top: 0; height: 600px; width: 2px; background: var(--paper); left: calc(var(--split, 58) * 1%); pointer-events: none; }
.cap .handle span { position: absolute; left: -21px; top: 278px; width: 44px; height: 44px; border-radius: 12px; background: var(--accent); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.cap .handle svg { width: 22px; height: 22px; stroke: var(--on-accent); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tag { position: absolute; bottom: 20px; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 10px; background: var(--navbg); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px var(--hair); font-size: 14px; font-weight: 500; }
.tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--paper); } .tag.r i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--paper); }
.tag.l { left: 20px; } .tag.r { right: 20px; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: ew-resize; margin: 14px 0 0; }
.range::-webkit-slider-runnable-track { height: 4px; background: var(--hair); border-radius: 2px; }
.range::-moz-range-track { height: 4px; background: var(--hair); border-radius: 2px; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -12px; border-radius: 9px; background: var(--accent); border: 0; box-shadow: 0 0 0 6px var(--glass-2); }
.range::-moz-range-thumb { width: 28px; height: 28px; border-radius: 9px; background: var(--accent); border: 0; box-shadow: 0 0 0 6px var(--glass-2); }

/* ----------------------------------------------------------- plugins on the home page and the plugins list */
.strip .list { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .strip .list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .strip .list { grid-template-columns: 1fr; } }
.strip .item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--card); box-shadow: var(--card-shadow); transition: transform .35s var(--ease); }
.strip .item:hover { transform: translateY(-3px); }
.strip .item .tile { width: 42px; height: 42px; border-radius: 12px; background: var(--glass-2); display: grid; place-items: center; flex: none; }
.strip .item .tile svg { width: 20px; height: 20px; }
.strip .item .text { min-width: 0; flex: 1; }
.strip .item .name { font-weight: 700; font-size: 15.5px; display: block; }
.strip .item .sum { color: var(--ash); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.strip .item .get { font-size: 13.5px; font-weight: 500; color: var(--paper); opacity: .6; transition: opacity .2s; }
.strip .item:hover .get { opacity: 1; }

/* ----------------------------------------------------------- plans (home and pricing) */
.plans { margin-top: clamp(36px, 4vw, 60px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; } }
.plan { position: relative; border-radius: var(--r-panel); padding: clamp(28px, 3vw, 36px); display: flex; flex-direction: column; gap: 20px; background: var(--card); box-shadow: var(--card-shadow); transition: transform .45s var(--ease); }
.plan:hover { transform: translateY(-6px); }
.plan.best { background: var(--accent); color: var(--on-accent); box-shadow: 0 30px 70px -20px rgba(0,0,0,.45); }
.plan .name { display: flex; align-items: center; justify-content: space-between; font-size: 18px; font-weight: 700; }
.plan .tagline { padding: 5px 10px; border-radius: 7px; background: var(--on-accent); color: var(--accent); font-size: 13px; font-weight: 700; }
.plan .price { display: flex; align-items: baseline; gap: 8px; font-size: clamp(54px, 6vw, 76px); line-height: 1; font-weight: 700; letter-spacing: -.05em; }
.plan .price small { font-size: 17px; font-weight: 400; color: var(--ash); letter-spacing: 0; }
.plan.best .price small { color: inherit; opacity: .7; }
.plan p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ash); }
.plan.best p { color: inherit; opacity: .78; }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.plan li { display: flex; align-items: center; gap: 10px; }
.plan li svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.plan .btn { margin-top: auto; }
.plan .strike { text-decoration: line-through; opacity: .8; }
.fine { margin: 26px 0 0; text-align: center; font-size: 15px; color: var(--smoke); }

/* ----------------------------------------------------------- final: one big key */
.final { padding: clamp(70px, 9vw, 100px) 0 clamp(60px, 8vw, 90px); text-align: center; background: var(--sheet-2); margin-top: clamp(80px, 11vw, 150px); }
.keycap { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 220px; height: 128px; border-radius: 26px; background: var(--keytop); color: var(--keyink); font-size: 40px; font-weight: 700; letter-spacing: -.03em; box-shadow: 0 10px 0 var(--keyside), 0 34px 50px -10px rgba(0,0,0,.45); transition: transform .15s, box-shadow .15s; }
.keycap:hover { transform: translateY(3px); box-shadow: 0 7px 0 var(--keyside), 0 26px 44px -10px rgba(0,0,0,.45); }
.keycap:active { transform: translateY(10px); box-shadow: 0 0 0 var(--keyside), 0 12px 20px -6px rgba(0,0,0,.4); }
.final h2 { margin-top: 60px; font-size: clamp(40px, 5.4vw, 72px); letter-spacing: -.045em; }
.final p { margin: 18px auto 0; max-width: 560px; font-size: 19px; color: var(--ash); }

/* footer */
footer { margin: 90px 0 30px; padding-top: 28px; color: var(--smoke); font-size: 14px; display: flex; gap: 6px 22px; flex-wrap: wrap; align-items: center; box-shadow: 0 -1px 0 var(--hair); }
footer .brand { font-weight: 700; font-size: 17px; letter-spacing: -.02em; color: var(--paper); }
footer a { color: var(--ash); transition: color .2s; }
footer a:hover { color: var(--paper); }
footer .spacer { flex: 1; }
.final + .wrap footer, .final ~ footer { margin-top: 0; }

/* ----------------------------------------------------------- inner pages: a header, then content */
.page-head { padding-top: clamp(56px, 8vw, 96px); }
.page-head.center { text-align: center; }
.page-head .h1 { margin-top: 12px; }
.page-head .lead { margin-top: 20px; }
.page-head.center .lead { margin-left: auto; margin-right: auto; }
.page-body { margin-top: clamp(36px, 5vw, 64px); }
.mt6 { margin-top: clamp(56px, 8vw, 96px); }

/* pricing extras */
.qa { margin-top: clamp(56px, 8vw, 96px); }
.qa .card { padding: 28px; } .qa .card p { margin: 10px 0 0; }
.paylist { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.paylist li { padding: 9px 13px; border-radius: 10px; background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--hair); font-size: 14px; font-weight: 500; }
.facts { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; color: var(--ash); font-size: 15.5px; line-height: 1.5; }
.facts li { padding-left: 24px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 8px; height: 8px; border-radius: 3px; background: var(--paper); opacity: .7; }
.facts b { color: var(--paper); }
.has-tip { cursor: help; text-decoration: underline dotted; text-decoration-color: var(--smoke); text-underline-offset: 4px; }

/* ----------------------------------------------------------- auth pages: art on the left, the form on the right */
.auth { min-height: calc(100vh - 90px); display: grid; place-items: center; padding: 40px 0; }
.auth.split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; justify-items: stretch; }
.auth .art { position: relative; height: min(620px, 70vh); border-radius: 30px; overflow: hidden; background: var(--panel); box-shadow: inset 0 0 0 1px var(--hair), 0 50px 110px -40px var(--ground-shadow); display: flex; align-items: flex-end; }
.auth .art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 0%, var(--spot), transparent 72%); }
.auth .art svg.ridge { position: absolute; left: 0; bottom: 0; width: 100%; height: 42%; }
.auth .art .r1 { fill: var(--r1); } .auth .art .r2 { fill: var(--r2); } .auth .art .r3 { fill: var(--r3); }
.auth .art img { position: absolute; filter: drop-shadow(0 30px 40px var(--stack-shadow)); pointer-events: none; }
.auth .art .a-market { left: 9%; top: 10%; width: 82%; } .auth .art .a-assistant { right: 6%; bottom: 14%; width: 38%; }
.auth .art .cap-line { position: absolute; left: 28px; bottom: 26px; font-size: 14px; font-weight: 500; color: var(--ash); display: flex; align-items: center; gap: 10px; z-index: 2; }
.auth .art .cap-line .kbd { box-shadow: 0 2px 0 var(--smoke); }
.auth .panel { width: min(460px, 100%); padding: clamp(26px, 3vw, 38px); justify-self: center; }
.auth.solo .panel { justify-self: center; }
.auth form { display: grid; gap: 18px; margin-top: 24px; }
.auth .foot { margin-top: 20px; text-align: center; font-size: 15px; color: var(--ash); }
.auth .foot a { color: var(--paper); font-weight: 700; }
.auth .brandmark { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.auth .brandmark img { width: 32px; height: 32px; }
.auth .center { text-align: center; }
@media (max-width: 960px) { .auth.split { grid-template-columns: 1fr; } .auth .art { display: none; } }
.trust { margin-top: 20px; display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--smoke); }
.trust svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ----------------------------------------------------------- checkout */
.co { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: clamp(28px, 4vw, 48px); }
@media (max-width: 900px) { .co { grid-template-columns: 1fr; } }
.co .steps { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--smoke); margin-bottom: 18px; flex-wrap: wrap; }
.co .steps b { display: inline-flex; align-items: center; gap: 8px; color: var(--paper); font-weight: 500; }
.co .steps b i { width: 22px; height: 22px; border-radius: 7px; display: inline-grid; place-items: center; background: var(--accent); color: var(--on-accent); font-style: normal; font-size: 12.5px; font-weight: 700; }
.co .steps span { display: inline-flex; align-items: center; gap: 8px; }
.co .steps span i { width: 22px; height: 22px; border-radius: 7px; display: inline-grid; place-items: center; background: var(--glass-2); font-style: normal; font-size: 12.5px; font-weight: 700; }
.co .steps u { width: 28px; height: 1px; background: var(--hair); }
.picker { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.opt { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: var(--well); box-shadow: inset 0 0 0 1px var(--hair); cursor: pointer; transition: box-shadow .2s, background-color .2s, transform .25s var(--ease); }
.opt:hover { transform: translateY(-1px); }
.opt input { appearance: none; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--smoke); flex: none; margin: 0; cursor: pointer; transition: box-shadow .2s, background-color .2s; }
.opt input:checked { background: var(--accent); box-shadow: inset 0 0 0 6px var(--accent), inset 0 0 0 11px var(--on-accent); }
.opt:has(input:checked) { background: var(--glass-2); box-shadow: inset 0 0 0 2px var(--accent); }
.opt .o-t { flex: 1; min-width: 0; } .opt .o-t b { display: block; font-size: 16px; } .opt .o-t span { font-size: 13.5px; color: var(--ash); }
.opt .o-p { font-size: 20px; font-weight: 700; letter-spacing: -.02em; text-align: right; } .opt .o-p small { display: block; font-size: 12.5px; font-weight: 400; color: var(--smoke); letter-spacing: 0; }
.summary { position: sticky; top: 90px; padding: 28px; }
@media (max-width: 900px) { .summary { position: static; } }
.summary .s-plan { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.summary .s-plan b { font-size: 20px; letter-spacing: -.02em; display: block; } .summary .s-plan span { color: var(--ash); font-size: 14px; }
.summary .lines { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 11px; font-size: 15px; color: var(--ash); }
.summary .lines li { display: flex; gap: 10px; align-items: center; }
.summary .lines svg { width: 18px; height: 18px; stroke: var(--good); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; }
.summary .total span { font-size: 15px; color: var(--ash); } .co-price { font-size: 40px; font-weight: 700; letter-spacing: -.045em; line-height: 1; }
.summary .tax { margin-top: 8px; font-size: 13px; color: var(--smoke); }
.pay-box { margin-top: 22px; padding: 16px 18px; border-radius: 16px; background: var(--well); box-shadow: inset 0 0 0 1px var(--hair); }
.pay-box .pb-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14.5px; font-weight: 700; }
.pay-box .pb-h span { font-weight: 400; color: var(--smoke); font-size: 13px; }
.done-box { text-align: center; }
.done-box .ok { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 18px; display: grid; place-items: center; background: rgba(46,213,122,.14); color: var(--good); }
.done-box .ok svg { width: 30px; height: 30px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.done-box .key { text-align: center; }

/* ----------------------------------------------------------- legal pages: a contents list that follows the reading */
.legal-wrap { display: grid; grid-template-columns: 260px minmax(0, 720px); gap: clamp(28px, 5vw, 72px); justify-content: center; margin-top: clamp(28px, 4vw, 48px); align-items: start; }
@media (max-width: 960px) { .legal-wrap { grid-template-columns: minmax(0, 720px); } .toc { display: none; } }
.toc { position: sticky; top: 92px; display: grid; gap: 2px; max-height: calc(100vh - 120px); overflow: auto; padding-right: 6px; }
.toc b { font-size: 13px; font-weight: 700; color: var(--smoke); letter-spacing: .02em; padding: 0 12px 8px; }
.toc a { display: block; padding: 7px 12px; border-radius: 9px; font-size: 14.5px; color: var(--ash); line-height: 1.35; transition: color .2s, background-color .2s; }
.toc a:hover { color: var(--paper); background: var(--glass); }
.toc a.on { color: var(--paper); background: var(--glass-2); font-weight: 500; }
.legal { max-width: 720px; }
.legal-head { padding-top: clamp(48px, 7vw, 84px); text-align: center; }
.legal-head .h1 { margin-top: 12px; }
.legal h2 { font-size: 24px; margin: 44px 0 12px; letter-spacing: -.03em; scroll-margin-top: 96px; }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { color: var(--ash); font-size: 16px; line-height: 1.65; }
.legal p { margin: 0 0 14px; }
.legal ul { padding-left: 20px; display: grid; gap: 8px; margin: 0 0 14px; }
.legal a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--smoke); }
.legal b { color: var(--paper); font-weight: 700; }
.legal .note { padding: 18px 20px; border-radius: 16px; background: var(--card); box-shadow: var(--card-shadow); margin: 0 0 28px; }
.legal .note p { margin: 0; }

/* ----------------------------------------------------------- dashboard */
.dash { display: grid; grid-template-columns: 250px 1fr; gap: 20px; margin-top: 28px; align-items: start; }
@media (max-width: 860px) { .dash { grid-template-columns: 1fr; } }
.side { position: sticky; top: 90px; display: grid; gap: 4px; }
.side a { padding: 11px 14px; border-radius: 11px; color: var(--ash); font-weight: 500; font-size: 15px; display: flex; gap: 10px; align-items: center; transition: background-color .2s, color .2s; }
.side a:hover, .side a.on { background: var(--glass-2); color: var(--paper); }
.side .who { padding: 16px; margin-bottom: 8px; border-radius: 18px; }
.side .who b { display: block; font-size: 16px; }
.side .who span { font-size: 13px; color: var(--smoke); word-break: break-all; }
.section { display: none; }
.section.on { display: block; animation: rise .5s var(--ease) both; }
.stat { padding: 20px 22px; }
.stat .v { font-size: 30px; font-weight: 700; letter-spacing: -.035em; }
.stat .l { font-size: 13px; color: var(--smoke); font-weight: 500; }
.key { letter-spacing: .1em; font-weight: 700; font-size: 20px; padding: 16px 20px; border-radius: 14px; background: var(--well); box-shadow: inset 0 0 0 1px var(--hair); user-select: all; word-break: break-all; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: grid; gap: 8px; }
.toast div { padding: 13px 17px; border-radius: 14px; background: #14161d; color: #eceef3; box-shadow: 0 20px 50px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.08); font-size: 14.5px; animation: toastin .4s var(--spring); max-width: 340px; }
.toast div.bad { border-left: 3px solid var(--signal); }
.toast div.good { border-left: 3px solid var(--good); }
@keyframes toastin { from { opacity: 0; transform: translateX(30px) scale(.96); } }
.toast div.out { opacity: 0; transition: opacity .4s; }

/* plugin cards (plugins page) */
.plug { display: grid; gap: 14px; align-content: start; }
.plug .top { display: flex; gap: 14px; align-items: center; }
.plug .tile { width: 46px; height: 46px; border-radius: 13px; background: var(--glass-2); display: grid; place-items: center; flex: none; }
.plug .t { font-weight: 700; font-size: 17px; letter-spacing: -.015em; }
.plug .t a:hover { text-decoration: underline; text-underline-offset: 3px; }
.plug .btn { height: 40px; font-size: 14.5px; }
.swatch { width: 100%; aspect-ratio: 16/8; border-radius: 12px; position: relative; overflow: hidden; }
.swatch i { position: absolute; left: 14%; top: 24%; width: 52%; height: 52%; border-radius: 8px; background: rgba(255,255,255,.14); }
.swatch b { position: absolute; right: 12%; top: 46%; width: 12%; height: 8%; border-radius: 6px; }
.count { color: var(--smoke); font-size: 15px; font-weight: 500; }

/* progress */
.bar { height: 6px; border-radius: 3px; background: var(--well); overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--accent); transition: width .4s var(--ease); }

.muted { color: var(--smoke); }
.center { text-align: center; }
.mt1 { margin-top: 8px; } .mt2 { margin-top: 16px; } .mt3 { margin-top: 26px; } .mt4 { margin-top: 40px; }
.stack { display: grid; gap: 10px; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
[hidden] { display: none !important; }

/* small utilities (the CSP allows no inline styles) */
.m0 { margin: 0; }
.lead-center { margin-left: auto; margin-right: auto; text-align: center; }
.narrow { max-width: 420px; }
.narrow-note { max-width: 34ch; }
.wide { width: min(520px, 100%) !important; }
.warn { padding: 16px; background: rgba(255,90,79,.10); box-shadow: none; }
.key-sm { font-size: 15px; }
.v-sm { font-size: 18px !important; }
.reveal-now { opacity: 1; transform: none; }

/* dashboard: forms in a row, inline actions, two-factor setup, recovery codes */
.row-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.row-form .grow { flex: 1 1 200px; }
.actions-inline { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.setup { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.qr { width: 176px; height: 176px; border-radius: 12px; background: #fff; padding: 8px; flex: none; }
.steps-list { margin: 0; padding-left: 20px; color: var(--ash); font-size: 14.5px; display: grid; gap: 4px; }
.codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.codes .key { font-size: 14px; letter-spacing: .06em; padding: 10px 8px; text-align: center; white-space: nowrap; }

@media (max-width: 860px) {
  .side { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .side .who { flex: 1 1 100%; margin-bottom: 4px; }
  .side a { padding: 9px 13px; }
  .row { flex-wrap: wrap; }
  .actions-inline { justify-content: flex-start; }
}

/* the human check card (shown while Cloudflare verifies), and the covered IP addresses in the dashboard */
.captcha-host { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; background: rgba(6,7,10,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.captcha-host.on { display: flex; }
.captcha-card { padding: 24px 26px 18px; border-radius: 22px; background: var(--card); box-shadow: var(--card-shadow), var(--shadow); text-align: center; min-width: min(340px, calc(100vw - 32px)); }
.captcha-title { font-weight: 700; font-size: 17px; letter-spacing: -.01em; margin-bottom: 14px; }
.captcha-widget { min-height: 65px; display: flex; justify-content: center; }
.captcha-note { margin-top: 12px; font-size: 12.5px; color: var(--smoke); }
.ip { font: inherit; color: inherit; background: var(--glass-2); border: 0; border-radius: 6px; padding: 1px 8px; cursor: pointer; letter-spacing: .04em; font-variant-numeric: tabular-nums; transition: background-color .2s; }
.ip:hover { background: var(--well); }
.ip[aria-pressed="true"] { letter-spacing: 0; color: var(--paper); }

/* Before launch (Site:Launched=false): the server adds data-closed to <body>; every way in is switched off. */
.soon-bar { position: sticky; top: 0; z-index: 110; padding: 10px 16px; text-align: center; font-size: 14px; color: var(--ash); background: var(--navbg); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--hair); }
[data-closed] a[href="/login"], [data-closed] a[href="/register"], [data-closed] a[href^="/checkout"], [data-closed] a[href="/download"], [data-closed] a[href^="/dashboard"], [data-closed] a[href^="overlaywin:"] { display: none !important; }

/* Cookie notice */
.switch.locked { opacity: .5; cursor: not-allowed; }
.consent { position: fixed; left: 16px; bottom: 16px; z-index: 150; width: min(440px, calc(100vw - 32px)); padding: 22px 24px; border-radius: 22px; background: var(--card); box-shadow: var(--card-shadow), var(--shadow); animation: consent-in .5s var(--ease) both; }
.consent-title { margin: 0 0 6px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.consent p { margin: 0 0 8px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.consent-details { margin-top: 12px; display: flex; flex-direction: column; gap: 14px; }
.consent-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.consent-row b { font-weight: 700; }
.consent-row p { margin: 2px 0 0; }
@keyframes consent-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Rich tooltips */
.tip { position: absolute; z-index: 160; max-width: 300px; padding: 14px 16px; border-radius: 14px; background: var(--card); color: var(--paper); box-shadow: var(--card-shadow), var(--shadow); font-size: 14px; line-height: 1.45; opacity: 0; transform: translateY(4px); transition: opacity .16s, transform .2s var(--ease); }
.tip.in { opacity: 1; transform: none; }
.tip b { display: block; margin-bottom: 4px; font-weight: 700; }
.tip p { margin: 0; color: var(--ash); }
.tip a { display: inline-block; margin-top: 8px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* The logo is white: on the light theme it becomes dark */
:root[data-theme="light"] .brand img, :root[data-theme="light"] .brandmark img { filter: brightness(0); }
@media (prefers-reduced-motion: reduce) { .consent, .tip, .reveal { animation: none; transition: none; opacity: 1; transform: none; } .layer .bob, .mq { animation: none !important; } }

.stage-wrap { width: min(1440px, 100%); margin: 0 auto; }
.cap .mine img:nth-child(1) { left: 800px; top: 44px; width: 376px; }
.cap .mine img:nth-child(2) { left: 180px; top: 70px; width: 588px; }
.cap .mine img:nth-child(3) { left: 34px; top: 48px; width: 112px; }
.cap .mine img:nth-child(4) { left: 780px; top: 216px; width: 324px; }
.cap .mine img:nth-child(5) { left: 1052px; top: 290px; width: 238px; }

.co:has(.summary[hidden]) { grid-template-columns: minmax(0, 640px); justify-content: center; }
.dl { display: flex; gap: 28px; align-items: center; padding: clamp(26px, 4vw, 44px); }
.dl-icon { width: 96px; height: 96px; border-radius: 26px; background: var(--glass-2); display: grid; place-items: center; flex: none; }
.dl-icon img { width: 56px; height: 56px; }
:root[data-theme="light"] .dl-icon img { filter: brightness(0); }
.dl-main { flex: 1; min-width: 0; }
.dl-main #rel-loader { word-break: break-all; }
@media (max-width: 640px) { .dl { flex-direction: column; align-items: flex-start; } }
