/* Featherwall site. Dark glass with one soft violet accent, from ../BRAND.md (Featherwall keeps its dark theme: 08's call).
   Site voice: Newsreader serif for headlines, Segoe UI Variable (the app's own type) for everything else.
   The page glow takes the colour of whichever wallpaper the visitor picks (--tint, set by demo.js). */

@property --tint { syntax: "<color>"; inherits: true; initial-value: #8da0c8; }

:root {
  --bg: #0b0c14;
  --bg-2: #10121c;
  --glass: rgba(22, 24, 34, 0.62);
  --glass-hi: rgba(28, 30, 44, 0.82);
  --glass-2: rgba(255, 255, 255, 0.045);
  --glass-3: rgba(0, 0, 0, 0.25);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --fg: #eef0f8;
  --fg-2: #a9afc4;
  --fg-3: #9ba1b8;
  --accent: #9aa6ff;
  --accent-hi: #b0b9ff;
  --accent-ink: #0f1222;
  --accent-soft: rgba(154, 166, 255, 0.16);
  --accent-line: rgba(154, 166, 255, 0.42);
  --ok: #7fe0b4;
  --warn: #f2c46d;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --ink-fixed: #f4f5fb;
  --shade: rgba(0, 0, 0, .55);
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, sans-serif;
  --head: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  --s: 0.6;
  --tint: #8da0c8;
  transition: --tint 1.2s ease;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; overflow-x: clip; }
body {
  margin: 0; color: var(--fg); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1100px 620px at 50% -120px, color-mix(in srgb, var(--tint) 26%, transparent), transparent 70%),
    radial-gradient(700px 500px at 88% 30%, color-mix(in srgb, var(--tint) 9%, transparent), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  overflow-x: clip;
}
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.defs { position: absolute; }
img, svg, video, canvas { display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hi); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 14px; background: var(--accent); color: var(--accent-ink); border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
em { font-style: italic; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--glass-2); color: var(--fg); font: 600 15px/1.2 var(--sans); text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; }
.btn:hover { background: rgba(255, 255, 255, .09); color: var(--fg); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.hot { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: 0 10px 30px -10px rgba(154, 166, 255, .55); }
.btn.hot:hover { background: var(--accent-hi); color: var(--accent-ink); transform: translateY(-1px); }
.btn.ghost { background: transparent; }
.btn.big { padding: 14px 22px; font-size: 16.5px; border-radius: 14px; }
.btn.small { padding: 7px 12px; font-size: 13.5px; border-radius: 10px; }
.btn.small svg { width: 16px; height: 16px; }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: transparent; color: var(--fg-3); border-style: dashed; cursor: not-allowed; transform: none; }
.linkish { background: none; border: 0; padding: 0; color: var(--fg-2); font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.linkish:hover { color: var(--fg); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 18px; padding: 12px max(24px, calc((100vw - 1240px) / 2));
  background: rgba(11, 12, 20, .72); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font: 600 18px/1 var(--head); letter-spacing: -.01em; }
.logo img { border-radius: 8px; box-shadow: 0 0 22px rgba(114, 88, 227, .45); }
.logo:hover { color: var(--fg); }
.nav { display: flex; gap: 6px; margin-left: 18px; }
.nav a { color: var(--fg-2); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 10px; border-radius: 9px; }
.nav a:hover { color: var(--fg); background: var(--glass-2); }
.tour-btn { margin-left: auto; }

/* ---------- type ---------- */
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--fg-2); font: 600 15px/1.2 var(--sans); }
.kicker::before { content: ""; width: 22px; height: 1.5px; background: var(--accent); border-radius: 2px; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.025em; text-wrap: balance; }
h3, h4 { text-wrap: balance; }
h1 em { color: #c4cbff; font-style: normal; }
h1 { font-size: clamp(42px, 6.2vw, 80px); line-height: 1.02; margin-top: 18px; }
h2 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.06; margin-top: 14px; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--fg-2); max-width: 620px; margin: 20px auto 0; }
.sub { font-size: 18px; color: var(--fg-2); margin-top: 14px; max-width: 640px; }
.facts { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; color: var(--fg-3); font-size: 14px; }
.facts li { display: inline-flex; align-items: center; gap: 7px; }
.facts li::before { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) translateY(-2px); }
.tiny { color: var(--fg-3); font-size: 13px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 64px 24px 0; }
.hero-copy { text-align: center; max-width: 860px; margin: 0 auto; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.cta-row.start { justify-content: flex-start; }

.demo { position: relative; max-width: 1440px; margin: 56px auto 0; scroll-margin-top: 80px; }

/* monitor rig: each screen is drawn at a fixed "virtual" size and scaled by --s (set by demo.js) */
.rig { display: flex; justify-content: center; align-items: flex-end; gap: calc(26px * var(--s) + 6px); }
.mon { flex: none; }
.bezel { padding: calc(10px * var(--s) + 2px); background: #05060a; border-radius: calc(14px * var(--s) + 4px); border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 120px -30px color-mix(in srgb, var(--tint) 55%, transparent); }
.vscreen { position: relative; overflow: hidden; border-radius: calc(4px * var(--s) + 1px); background: #07080d; width: calc(var(--vw) * var(--s)); height: calc(562px * var(--s)); }
.mon.main { --vw: 1000px; }
.mon.side { --vw: 316px; }
.vstage { position: absolute; left: 0; top: 0; width: var(--vw); height: 562px; transform: scale(var(--s)); transform-origin: 0 0; }
.stand { display: block; margin: 0 auto; width: calc(130px * var(--s)); height: calc(44px * var(--s)); background: linear-gradient(#191a22, #0d0e13); clip-path: polygon(34% 0, 66% 0, 78% 100%, 22% 100%); }
.mon.side .stand { width: calc(90px * var(--s)); }
.mon { position: relative; }
.mon::after { content: ""; display: block; margin: 0 auto; width: calc(260px * var(--s)); height: calc(10px * var(--s) + 2px); border-radius: 6px; background: #121319; }
.mon.side::after { width: calc(170px * var(--s)); }

.wp { position: absolute; inset: 0; overflow: hidden; }
.wp > * { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; border: 0; transition: opacity .6s ease; }
.wp > .leaving { opacity: 0; }
.wp > .entering { opacity: 0; }
.wp .depth { overflow: hidden; }
.wp .depth img { position: absolute; inset: -6%; width: 112%; height: 112%; object-fit: cover; will-change: transform; transition: transform .25s ease-out; }
.wp .depth .l1 { -webkit-mask-image: linear-gradient(transparent 0, #000 30%, #000 60%, transparent 78%); mask-image: linear-gradient(transparent 0, #000 30%, #000 60%, transparent 78%); }
.wp .depth .l2 { -webkit-mask-image: linear-gradient(transparent 48%, #000 66%); mask-image: linear-gradient(transparent 48%, #000 66%); }
.paused-note { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 6px 10px; border-radius: 8px; background: rgba(0, 0, 0, .62); color: var(--ink-fixed); font: 600 calc(9px + 6px * var(--s))/1.2 var(--sans); white-space: nowrap; opacity: 0; transition: opacity .3s; pointer-events: none; }
.demo.gaming .paused-note, .demo.paused .paused-note { opacity: 1; }
.mon.side .vscreen > .paused-note { font-size: calc(8px + 5px * var(--s)); }
.mon-num { position: absolute; left: calc(8px * var(--s) + 3px); bottom: calc(8px * var(--s) + 3px); min-width: calc(14px + 10px * var(--s)); height: calc(14px + 10px * var(--s)); padding: 0 4px; border-radius: 6px; display: grid; place-items: center;
  background: rgba(0, 0, 0, .55); color: var(--ink-fixed); font: 700 calc(9px + 4px * var(--s))/1 var(--sans); pointer-events: none; }
.mon.main .mon-num { bottom: calc(48px * var(--s) + 3px); }

/* desktop bits (virtual pixels) */
.icons { position: absolute; left: 14px; top: 14px; display: grid; gap: 10px; z-index: 2; }
.ico { width: 82px; display: grid; justify-items: center; gap: 5px; padding: 7px 2px 6px; border-radius: 7px; border: 1px solid transparent; background: none; color: var(--ink-fixed); font: 12.5px/1.2 var(--sans); text-shadow: 0 1px 3px rgba(0, 0, 0, .9); text-align: center; }
button.ico:hover, button.ico:focus-visible { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .2); }
.ic { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.ic svg { width: 30px; height: 30px; }
.ic.game { background: linear-gradient(160deg, #ff9a62, #e2456b); color: var(--ink-fixed); }
.ic.folder { background: none; box-shadow: none; color: #f6c453; }
.ic.folder svg { width: 44px; height: 44px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .4)); }
.ic.photo { background: linear-gradient(160deg, #57c7f5, #2a77d9); color: var(--ink-fixed); }
.ic.bin { background: none; box-shadow: none; color: #dfe5f2; }
.ic.bin svg { width: 38px; height: 38px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .5)); }
.ico.ping .ic { animation: ping 1.6s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(154, 166, 255, .7); } 100% { box-shadow: 0 0 0 16px rgba(154, 166, 255, 0); } }

.taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 42px; z-index: 6; display: flex; align-items: center; justify-content: center;
  background: rgba(22, 24, 34, .84); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid rgba(255, 255, 255, .08); }
.tb-mid { display: flex; gap: 8px; align-items: center; }
.tb-mid i { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); }
.tb-start { background: radial-gradient(circle at 35% 30%, #9fe6ff, #3d8bfd 70%) !important; }
.tb-s svg { width: 15px; height: 15px; color: #cfd6e6; }
.tb-app { background: linear-gradient(160deg, #3a3f55, #262a3a) !important; }
.tb-app.b { background: linear-gradient(160deg, #ff9a62, #e2456b) !important; }
.tb-app.c { background: linear-gradient(160deg, #57c7f5, #2a77d9) !important; }
.tb-tray { position: absolute; right: 12px; top: 0; bottom: 0; display: flex; align-items: center; gap: 12px; color: var(--ink-fixed); font: 12.5px/1.2 var(--sans); }
.tray-fw { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; cursor: pointer; }
.tray-fw:hover { background: rgba(255, 255, 255, .1); }
.tray-fw img { width: 17px; height: 17px; border-radius: 4px; }
.traytip { position: absolute; right: 10px; bottom: 50px; z-index: 7; display: grid; gap: 2px; padding: 8px 11px; border-radius: 8px; background: rgba(40, 42, 56, .97); border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .45); font: 12.5px/1.35 var(--sans); color: var(--fg); white-space: nowrap; font-variant-numeric: tabular-nums; }
.traytip[hidden] { display: none; }
.traytip b { font-weight: 600; }
.traytip span { color: var(--fg-2); }

/* the pretend game (made up, no real game) */
.gamewin { position: absolute; left: 0; right: 0; top: 0; bottom: 42px; z-index: 5; display: grid; grid-template-rows: 32px 1fr; background: #08090d; animation: gameIn .32s cubic-bezier(.3, .7, .2, 1); }
.gamewin[hidden] { display: none; }
@keyframes gameIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.gbar { display: flex; align-items: center; gap: 12px; padding: 0 0 0 14px; background: #15161d; font: 13px/1 var(--sans); color: var(--ink-fixed); }
.gfps { margin-left: auto; color: var(--ok); font-weight: 700; font-variant-numeric: tabular-nums; }
.gx { width: 46px; height: 32px; border: 0; background: transparent; color: var(--ink-fixed); display: grid; place-items: center; }
.gx svg { width: 15px; height: 15px; }
.gx:hover { background: #c42b1c; }
.gview { position: relative; overflow: hidden; background: linear-gradient(#123a5a 0%, #3f86a8 45%, #f2a65e 64%, #ffd28f 70%); }
.gview .sun { position: absolute; left: 50%; top: 40%; width: 150px; height: 150px; margin-left: -75px; border-radius: 50%; background: radial-gradient(circle, #fff3c4, #ffc76b 60%, transparent 62%); }
.gview .hills { position: absolute; left: -10%; right: -10%; top: 54%; height: 40%; background: radial-gradient(60% 90% at 25% 100%, #1e4a4f 60%, transparent 61%), radial-gradient(55% 80% at 78% 100%, #173a40 60%, transparent 61%); }
.gview .road { position: absolute; left: 50%; bottom: 0; width: 1400px; height: 300px; margin-left: -700px; transform: perspective(260px) rotateX(58deg); transform-origin: 50% 100%;
  background: linear-gradient(90deg, transparent 45.5%, #fff 45.5%, #fff 46%, transparent 46%, transparent 54%, #fff 54%, #fff 54.5%, transparent 54.5%),
    repeating-linear-gradient(transparent 0 40px, #ffd25c 40px 80px) 50% 0 / 14px 100% no-repeat, #22232e; animation: road .5s linear infinite; }
@keyframes road { to { background-position: 0 0, 50% 80px, 0 0; } }
.gview .car { position: absolute; left: 50%; bottom: 34px; width: 120px; height: 46px; margin-left: -60px; border-radius: 16px 16px 8px 8px; background: linear-gradient(#ff5a7a, #c4245a);
  box-shadow: 0 10px 0 -2px #111, inset 0 -8px 0 rgba(0, 0, 0, .25); animation: bob .9s ease-in-out infinite; }
.gview .car::before { content: ""; position: absolute; left: 22px; right: 22px; top: -20px; height: 24px; border-radius: 12px 12px 2px 2px; background: #2a1f3d; }
@keyframes bob { 50% { transform: translateY(-3px); } }

/* ---------- the Featherwall window (copy of ui/library.html) ---------- */
.win { position: relative; width: 100%; max-width: 640px; margin: 22px auto 0; border-radius: 10px; overflow: hidden; container-type: inline-size;
  background: rgba(24, 26, 38, .9); backdrop-filter: blur(28px) saturate(1.4); -webkit-backdrop-filter: blur(28px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .13); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .75); font: 13px/1.45 var(--sans); color: var(--fg); user-select: none; }
.demo.inside .win { position: absolute; z-index: 4; right: 18px; top: 16px; width: 580px; margin: 0; }
.demo.inside #aHelp span { display: none; }
.demo.inside #aHelp { padding: 6px 8px; }
.demo.inside .win.closed { display: none; }
.titlebar { display: flex; align-items: center; gap: 8px; height: 30px; padding-left: 12px; font-size: 12px; color: var(--fg-2); }
.titlebar img { border-radius: 3px; }
.tbtns { margin-left: auto; display: flex; height: 100%; }
.tbtns button { width: 42px; height: 30px; border: 0; background: transparent; color: var(--fg-2); display: grid; place-items: center; }
.tbtns button svg { width: 15px; height: 15px; }
.tbtns button:hover { background: rgba(255, 255, 255, .08); color: var(--fg); }
.tbtns button.close:hover { background: #c42b1c; color: var(--ink-fixed); }
.demo:not(.inside) .tbtns button:not(.close):not([tabindex]) { display: none; }
.demo:not(.inside) .tbtns { display: none; }
.app-head { display: flex; align-items: center; gap: 7px; padding: 9px 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.abrand { display: flex; align-items: center; gap: 8px; }
.amark { width: 18px; height: 18px; border-radius: 6px; background: linear-gradient(160deg, #b9c2ff, #7a86f0 55%, #5a63c9); box-shadow: 0 0 14px rgba(154, 166, 255, .45); }
.abrand b { font: 600 14.5px/1 var(--head); }
.aspacer { flex: 1; }
.astatus { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border-radius: 8px; background: var(--glass-2); color: var(--fg-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.abars { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.abars i { width: 3px; border-radius: 1px; background: var(--ok); animation: eq 1.4s ease-in-out infinite; }
.abars i:nth-child(1) { height: 5px; } .abars i:nth-child(2) { height: 9px; animation-delay: -.5s; } .abars i:nth-child(3) { height: 6px; animation-delay: -.9s; }
@keyframes eq { 50% { transform: scaleY(.45); } }
.abars i { transform-origin: bottom; }
.demo.paused .abars i, .demo.gaming .abars i { background: var(--warn); animation: none; height: 3px; }
.abtn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: var(--glass-2); border: 1px solid var(--line-2); font-weight: 600; font-size: 12px; white-space: nowrap; }
.abtn:hover { background: rgba(255, 255, 255, .09); }
.abtn svg { width: 14px; height: 14px; flex: none; }
.abtn.pro { border-color: var(--accent-line); color: var(--accent); }
.app-main { padding: 10px 12px 12px; display: grid; gap: 9px; }
.apanel { background: var(--glass); border: 1px solid var(--line); border-radius: 13px; padding: 10px 12px; }
.astep { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.astep .ah { font: 600 13.5px/1.2 var(--head); }
.num { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 11px; flex: none; }
.seg { display: inline-flex; padding: 2px; border-radius: 9px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); gap: 2px; margin-left: auto; }
.seg button { padding: 4px 10px; border-radius: 7px; border: 0; background: transparent; color: var(--fg-2); font-weight: 600; font-size: 11.5px; }
.seg button.on { background: var(--accent); color: var(--accent-ink); }
.amap-row { display: flex; align-items: center; gap: 14px; }
.amap { position: relative; width: 142px; height: 62px; flex: none; }
.tile { position: absolute; padding: 0; border-radius: 7px; overflow: hidden; background: #0d0f18 center / cover no-repeat; border: 2px solid var(--line-2); transition: border-color .15s, box-shadow .15s; }
.tile:hover { border-color: rgba(255, 255, 255, .38); }
.tile.sel { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tile.t2 { left: 0; top: 2px; width: 33px; height: 58px; }
.tile.t1 { left: 40px; top: 8px; width: 100px; height: 54px; }
.amap.span .tile { border-color: var(--accent); box-shadow: none; }
.amap.span::after { content: ""; position: absolute; left: -4px; top: -2px; right: -2px; bottom: -4px; border: 2px solid var(--accent); border-radius: 10px; box-shadow: 0 0 0 3px var(--accent-soft); pointer-events: none; }
.tl { position: absolute; left: 4px; bottom: 3px; display: flex; gap: 4px; align-items: center; font-size: 10px; font-weight: 600; color: var(--ink-fixed); text-shadow: 0 1px 3px rgba(0, 0, 0, .9); }
.tl b { width: 15px; height: 15px; border-radius: 4px; display: grid; place-items: center; background: rgba(0, 0, 0, .55); font-size: 9.5px; }
.t2 .tl { font-size: 0; }
.anow { color: var(--fg-2); font-size: 12px; }
.anow b { display: block; color: var(--fg); font-size: 13.5px; }
.agrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.acard { position: relative; padding: 0; border-radius: 10px; overflow: hidden; background: var(--glass-3); border: 1px solid var(--line); text-align: left; transition: transform .18s, border-color .18s, box-shadow .18s; }
.acard:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: 0 10px 22px rgba(0, 0, 0, .35); }
.acard.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.acard .th { display: block; aspect-ratio: 16 / 9; background: #1b1e2e center / cover no-repeat; position: relative; }
.acard .mt { display: flex; align-items: center; gap: 4px; padding: 5px 7px 6px; }
.acard .mt b { flex: 1; min-width: 0; font-size: 11.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acard .mood { font-size: 8.5px; font-weight: 700; color: var(--fg-3); letter-spacing: .06em; text-transform: uppercase; }
.acard .stk { position: absolute; top: 5px; left: 5px; white-space: nowrap; padding: 2px 6px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-size: 9.5px; font-weight: 700; }
.acard.add { border: 1.5px dashed var(--line-2); background: transparent; display: grid; place-items: center; text-align: center; padding: 8px 4px; color: var(--fg-2); font-size: 11px; }
.acard.add .plus { width: 26px; height: 26px; margin: 0 auto 4px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 17px; font-weight: 600; line-height: 1; }
.acard.add b { display: block; color: var(--fg); font-size: 11.5px; }
.dctl { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; }
.dctl b { font: 600 12.5px/1 var(--head); }
.protag { font-size: 10px; font-weight: 800; letter-spacing: .04em; padding: 2px 6px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); white-space: nowrap; }
.sw { width: 40px; height: 22px; border-radius: 999px; border: 0; padding: 0; background: rgba(255, 255, 255, .14); position: relative; flex: none; transition: background .15s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink-fixed); transition: transform .15s; }
.sw[aria-checked="true"] { background: var(--accent); }
.sw[aria-checked="true"]::after { transform: translateX(18px); background: var(--accent-ink); }
.ping-ring { animation: ring 1.6s ease-out infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(154, 166, 255, .65); } 100% { box-shadow: 0 0 0 12px rgba(154, 166, 255, 0); } }
@container (max-width: 520px) {
  .abtn span { display: none; }
  .abtn { padding: 6px 8px; }
}
@container (max-width: 430px) {
  .agrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .seg { margin-left: 0; }
  .astatus { order: 5; width: 100%; }
  .dctl { margin-left: 0; width: 100%; }
  .acard .mood { display: none; }
}

/* ---------- live meter ---------- */
.meter { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 20px; max-width: 1180px; margin: 22px auto 0; padding: 12px 16px 12px 18px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font-variant-numeric: tabular-nums; }
.m-brand { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; }
.m-brand img { border-radius: 5px; }
.m-cell { display: inline-flex; align-items: baseline; gap: 8px; }
.m-k { color: var(--fg-3); font-size: 13.5px; font-weight: 600; }
.m-cell b { font-size: 19px; font-weight: 650; min-width: 3.2ch; }
.spark { display: inline-flex; align-items: flex-end; gap: 2px; height: 18px; width: 70px; align-self: center; }
.spark i { flex: 1; height: 100%; border-radius: 1px; background: var(--accent); opacity: .85; transform-origin: bottom; transition: transform .4s ease; }
.m-state { font-weight: 600; font-size: 14px; color: var(--ok); }
.demo.paused .m-state, .demo.gaming .m-state { color: var(--warn); }
.demo-note { text-align: center; color: var(--fg-3); font-size: 13px; margin-top: 12px; }

/* ---------- show-me-around guide (same look as the app's) ---------- */
.coach { position: absolute; inset: 0; z-index: 40; pointer-events: none; overflow: hidden; }
.coach[hidden] { display: none; }
.coach .hole { position: absolute; border-radius: 14px; border: 2px solid var(--accent); box-shadow: 0 0 0 9999px rgba(5, 6, 12, .58); transition: left .35s, top .35s, width .35s, height .35s; transition-timing-function: cubic-bezier(.3, .7, .2, 1); }
.coach .bubble { position: absolute; width: 330px; max-width: calc(100% - 24px); pointer-events: auto; display: grid; gap: 8px; padding: 15px 17px 14px; border-radius: 16px;
  background: rgba(30, 33, 48, .98); border: 1px solid var(--line-2); box-shadow: 0 22px 54px rgba(0, 0, 0, .55); transition: top .35s cubic-bezier(.3, .7, .2, 1), left .35s cubic-bezier(.3, .7, .2, 1); }
.bstep { color: var(--accent); font-size: 13px; font-weight: 650; }
.bubble h4 { font: 500 21px/1.15 var(--serif); }
.bubble p { color: var(--fg-2); font-size: 14.5px; }
.brow { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.dots { display: flex; gap: 5px; margin-right: auto; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.dots i.on { background: var(--accent); }

.endtoast { position: fixed; left: 50%; bottom: 22px; z-index: 60; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100vw - 32px);
  padding: 12px 12px 12px 14px; border-radius: 16px; background: var(--glass-hi); border: 1px solid var(--line-2); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 20px 50px rgba(0, 0, 0, .55); animation: rise .4s cubic-bezier(.3, .7, .2, 1); }
.endtoast[hidden] { display: none; }
.endtoast img { border-radius: 9px; }
.endtoast > span { display: grid; font-size: 14px; }
.endtoast > span span { color: var(--fg-2); font-size: 13px; }
.tx { width: 32px; height: 32px; border-radius: 9px; border: 0; background: transparent; color: var(--fg-2); display: grid; place-items: center; }
.tx:hover { background: rgba(255, 255, 255, .08); color: var(--fg); }
.tx svg { width: 15px; height: 15px; }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
.dtoast { position: fixed; left: 50%; bottom: 22px; z-index: 61; max-width: calc(100vw - 32px); transform: translate(-50%, 18px); opacity: 0; pointer-events: none;
  padding: 11px 16px; border-radius: 12px; background: rgba(36, 39, 56, .97); border: 1px solid var(--line-2); box-shadow: 0 12px 30px rgba(0, 0, 0, .45); font-weight: 600; font-size: 14.5px; transition: opacity .2s, transform .2s; }
.dtoast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- sections ---------- */
.sec { max-width: 1180px; margin: 0 auto; padding: 150px 24px 0; }
.sec.narrow { max-width: 880px; }
.sec-head { max-width: 760px; margin-bottom: 52px; }
.panel { background: var(--glass); border: 1px solid var(--line); border-radius: 20px; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.stat { padding: 26px 26px 24px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); display: grid; gap: 4px; align-content: start; }
.stat .big { font-variant-numeric: tabular-nums; font: 450 clamp(52px, 6vw, 72px)/1 var(--serif); letter-spacing: -.03em; }
.stat .big small { font-size: .38em; color: var(--fg-2); margin-left: 6px; letter-spacing: 0; font-family: var(--sans); font-weight: 600; }
.stat .lbl { font-weight: 650; font-size: 15px; margin-top: 6px; }
.stat p { color: var(--fg-2); font-size: 15px; margin-top: 6px; }

.weigh { margin-top: 20px; padding: 22px 26px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); display: grid; gap: 14px; }
.wrow { display: grid; grid-template-columns: 140px 1fr 96px; gap: 16px; align-items: center; }
.wname { font-weight: 600; font-size: 15px; }
.wval { text-align: right; color: var(--fg-2); font-variant-numeric: tabular-nums; font-size: 15px; }
.wbar { height: 14px; border-radius: 999px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.wbar i { display: block; height: 100%; width: 100%; border-radius: 999px; transform: scaleX(0); transform-origin: left; transition: transform 1.4s cubic-bezier(.3, .7, .2, 1); }
.wbar.photo i { background: #555c78; }
.wbar.fw i { background: var(--accent); box-shadow: 0 0 16px rgba(154, 166, 255, .7); }
.weigh.in .wbar.photo i { transform: scaleX(1); }
.weigh.in .wbar.fw i { transform: scaleX(.15); }

.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin-top: 64px; }
.howcard { padding: 20px 4px 0; border-top: 2px solid var(--accent-line); }
.howcard h3 { font: 600 17.5px/1.3 var(--head); margin-bottom: 8px; }
.howcard p { color: var(--fg-2); font-size: 15px; }

details.more { margin-top: 48px; border-radius: 20px; border: 1px solid var(--line); background: var(--glass); }
details.more summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 18px 24px; font-weight: 600; }
details.more summary::-webkit-details-marker { display: none; }
.chev { width: 18px; height: 18px; margin-left: auto; color: var(--fg-3); transition: transform .2s; }
details[open] > summary .chev { transform: rotate(90deg); }
.more-in { padding: 0 24px 22px; display: grid; gap: 14px; color: var(--fg-2); font-size: 15px; }
details.more.slim { margin-top: 14px; background: var(--glass-2); }
details.more.slim summary { padding: 13px 18px; font-size: 15px; }
details.more.slim .more-in { padding: 0 18px 16px; }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 560px; }
caption { text-align: left; color: var(--fg-3); font-size: 13px; padding-bottom: 8px; }
th { text-align: left; color: var(--fg-3); font-size: 13.5px; font-weight: 650; padding: 8px 10px; border-bottom: 1px solid var(--line-2); }
td { padding: 10px; border-bottom: 1px solid var(--line); color: var(--fg); font-size: 14.5px; }
td:first-child { color: var(--fg-2); }

/* bring it to life */
.lab { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.stage { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #07080d; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8); }
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage.drift img { animation: drift 12s ease-in-out infinite alternate; }
.stage.breathe img { animation: breathe 6s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.08) translate(-2.5%, 1%); } to { transform: scale(1.12) translate(2.5%, -1.5%); } }
@keyframes breathe { from { transform: scale(1.01); } to { transform: scale(1.06); } }
.beam { position: absolute; inset: -30%; opacity: 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(112deg, transparent 38%, rgba(255, 232, 180, .34) 46%, rgba(255, 232, 180, .08) 54%, transparent 62%); transition: opacity .5s; }
.stage.sunbeam .beam { opacity: 1; animation: sweep 7s ease-in-out infinite alternate; }
@keyframes sweep { from { transform: translateX(-12%); } to { transform: translateX(12%); } }
.stage-tag { position: absolute; left: 14px; bottom: 14px; padding: 6px 11px; border-radius: 10px; background: rgba(10, 11, 18, .7); backdrop-filter: blur(10px); font-size: 13.5px; font-weight: 600; }
.motions { display: grid; gap: 18px; padding: 22px 22px 20px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); }
.mhead { color: var(--fg); font-size: 15px; font-weight: 650; margin-bottom: 10px; }
.mhead .soon { color: var(--accent); margin-left: 4px; }
.mchips { display: flex; flex-wrap: wrap; gap: 8px; }
.mchip { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 11px; border: 1px solid var(--line); background: var(--glass-2); color: var(--fg-2); font-weight: 600; font-size: 14.5px; }
.mchip:hover { color: var(--fg); border-color: var(--line-2); }
.mchip.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--fg); }
.pronudge { padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--accent-line); font-size: 14.5px; font-weight: 600; }
.pronudge[hidden] { display: none; }
.pronudge a { white-space: nowrap; }
.own { position: relative; display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 10px 16px; border-radius: 12px; border: 1px dashed var(--line-2); color: var(--fg); font-weight: 600; font-size: 15px; cursor: pointer; }
.own:hover { background: var(--glass-2); }
.own svg { width: 18px; height: 18px; color: var(--accent); }
.own input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.own:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }

/* free & pro */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.plan { padding: 30px 30px 28px; border-radius: 22px; background: var(--glass); border: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.plan.pro { border-color: var(--accent-line); background: linear-gradient(180deg, rgba(154, 166, 255, .09), rgba(22, 24, 34, .62) 45%); }
.plan h3 { display: flex; align-items: center; gap: 10px; font: 500 26px/1.1 var(--serif); }
.plan h3 img { border-radius: 6px; }
.price { display: flex; align-items: baseline; gap: 10px; }
.price b { font: 450 46px/1 var(--serif); letter-spacing: -.02em; }
.price span { color: var(--fg-2); }
.launch { color: var(--accent); font-weight: 650; font-size: 14.5px; margin-top: -6px; }
.ticks { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--fg-2); font-size: 15.5px; }
.ticks li b { color: var(--fg); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.soonx { color: var(--accent); font-weight: 600; font-size: 13px; white-space: nowrap; margin-left: 4px; }
.plan .btn { justify-self: start; }
.moment { margin-top: 32px; padding: 22px 26px; border-radius: 20px; border: 1px solid var(--line); background: var(--glass-2); display: grid; grid-template-columns: 180px 1fr; gap: 18px; align-items: start; }
.mlabel { font: 500 20px/1.2 var(--serif); }
.msteps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: m; }
.msteps li { counter-increment: m; color: var(--fg-2); font-size: 15px; padding-left: 34px; position: relative; }
.msteps li::before { content: counter(m); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px; }
.msteps b { color: var(--fg); display: block; }

/* get it */
.getbox { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; }
.getcard { padding: 28px; border-radius: 22px; background: var(--glass); border: 1px solid var(--accent-line); display: grid; grid-template-columns: auto 1fr; gap: 16px 20px; align-items: center;
  box-shadow: 0 0 90px -40px color-mix(in srgb, var(--tint) 70%, transparent); }
.gmark { border-radius: 16px; box-shadow: 0 0 34px rgba(114, 88, 227, .5); }
.gtext h3 { font: 500 26px/1.15 var(--serif); }
.gtext p { color: var(--fg-2); font-size: 15px; margin-top: 6px; }
.getcard .btn { grid-column: 1 / -1; justify-self: start; }
.extra { grid-column: 1 / -1; color: var(--fg-2); font-size: 14.5px; }
.smartscreen { padding: 24px 24px 22px; border-radius: 22px; background: var(--glass-2); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.smartscreen h3 { display: flex; align-items: center; gap: 10px; font: 600 17px/1.3 var(--head); }
.smartscreen h3 svg { width: 22px; height: 22px; color: var(--ok); flex: none; }
.smartscreen p { color: var(--fg-2); font-size: 15px; }
.smartscreen b { color: var(--fg); }
.firstrun { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.firstrun li { padding: 4px 8px 4px 20px; border-left: 2px solid var(--line-2); display: grid; gap: 8px; align-content: start; }
.fnum { font: 450 44px/1 var(--serif); color: var(--accent); }
.firstrun h3 { font: 600 17.5px/1.3 var(--head); }
.firstrun p { color: var(--fg-2); font-size: 15px; }
.firstrun b { color: var(--fg); }

/* safety */
.safe { display: grid; grid-template-columns: auto 1fr; gap: 22px; padding: 30px; border-radius: 22px; border: 1px solid var(--line); background: var(--glass); }
.safe-ic { width: 44px; height: 44px; color: var(--ok); }
.safe h2 { font-size: clamp(26px, 3vw, 34px); margin: 12px 0 12px; }
.safe p { color: var(--fg-2); font-size: 16px; }
.safe b { color: var(--fg); }

/* faq */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 20px 4px; font-weight: 600; font-size: 17.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; margin-left: auto; width: 12px; height: 12px; flex: none; border-right: 2px solid var(--fg-3); border-bottom: 2px solid var(--fg-3); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq p { padding: 0 4px 22px; color: var(--fg-2); font-size: 16px; max-width: 700px; }
.faq b { color: var(--fg); }

/* footer */
.foot { margin-top: 130px; border-top: 1px solid var(--line); background: rgba(8, 9, 14, .6); }
.foot-in { max-width: 1180px; margin: 0 auto; padding: 34px 24px 46px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot nav a { color: var(--fg-2); text-decoration: none; font-size: 15px; }
.foot nav a:hover { color: var(--fg); }
.foot .linkish { font-size: 15px; text-decoration: none; }
.legal { width: 100%; color: var(--fg-3); font-size: 13.5px; }

/* ---------- smaller screens ---------- */
@media (max-width: 1000px) {
  .nav { display: none; }
  .stats, .how, .firstrun { grid-template-columns: minmax(0, 1fr); }
  .lab, .plans, .getbox { grid-template-columns: minmax(0, 1fr); }
  .moment { grid-template-columns: minmax(0, 1fr); }
  .sec { padding-top: 110px; }
}
@media (max-width: 760px) {
  .demo:not(.inside) .rig { position: sticky; top: 62px; z-index: 3; padding: 10px 0 8px; margin: 0 -24px; background: linear-gradient(rgba(11, 12, 20, .96) 80%, rgba(11, 12, 20, 0)); }
  .msteps { grid-template-columns: minmax(0, 1fr); }
  .wrow { grid-template-columns: minmax(0, 1fr) 76px; gap: 6px 12px; }
  .wname { grid-column: 1 / -1; }
  .meter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-items: start; gap: 10px 14px; }
  .m-brand, .m-state, #gameBtn { grid-column: 1 / -1; }
  #gameBtn { justify-self: stretch; }
  .safe { grid-template-columns: 1fr; padding: 24px; }
  .getcard { padding: 22px; }
  .getcard .btn { justify-self: stretch; }
}
@media (max-width: 560px) {
  .top { gap: 10px; padding: 10px 16px; }
  .tour-btn span { display: none; }
  .tour-btn { padding: 9px 10px; }
  .top .btn.hot { padding: 9px 14px; font-size: 14.5px; }
  .hero { padding: 40px 16px 0; }
  .sec { padding: 96px 16px 0; }
  .demo:not(.inside) .rig { margin: 0 -16px; }
  .cta-row .btn { flex: 1 1 100%; }
  .plan, .stat { padding: 22px; }
  .weigh { padding: 18px; }
  .foot-in { padding: 30px 16px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
