/* ACEUSD — design system.
   White pages, ACE blue (#3874d8), Ostrich Sans capitals for headings (Oswald as fallback), Open Sans for text,
   hairline-ruled sections. The ACE PRIVATE replica (.rp) uses the desktop app's own palette
   (apps/desktop nv_ui theme.cpp) and Segoe UI, like the app itself.
   Fonts are self-hosted (see /public/fonts/OFL.txt); the CSP allows 'self' only. Motion is
   CSS-first and switched off for prefers-reduced-motion. */

/* Ostrich Sans comma reads like a full stop at display sizes, so commas fall back to Oswald. */
@font-face { font-family: 'Ostrich Sans'; src: url('/assets/fonts/ostrich-sans-medium.otf') format('opentype'); font-weight: 100 449; font-style: normal; font-display: swap; unicode-range: U+0000-002B, U+002D-FFFF; }
@font-face { font-family: 'Ostrich Sans'; src: url('/assets/fonts/ostrich-sans-heavy.otf') format('opentype'); font-weight: 450 900; font-style: normal; font-display: swap; unicode-range: U+0000-002B, U+002D-FFFF; }
@font-face { font-family: 'Oswald'; src: url('/assets/fonts/oswald-var.woff2') format('woff2'); font-weight: 200 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url('/assets/fonts/open-sans-regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url('/assets/fonts/open-sans-semibold.ttf') format('truetype'); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/fonts/inter-var.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/assets/fonts/jetbrains-mono.woff2') format('woff2'); font-weight: 100 800; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --blue: #3874d8; --blue-600: #2e66c4; --blue-700: #2553a3; --blue-50: #f2f6fd; --blue-100: #dbe7fb; --blue-200: #c2d6f7; --blue-light: #6ea2f2;
  --ink: #333333; --text: #262626; --soft: #4a4d52; --mute: #6b6f76; --dim: #9a9ea5;
  --line: #e3e5e8; --line-2: #cdd2d8; --bg: #ffffff; --tint: #f7f9fc;
  --ok: #2c6a4c; --ok-soft: #e5efe8; --warn: #8a5a10; --warn-soft: #f6eddc; --danger: #b0362d; --danger-soft: #f7e5e2;
  --display: 'Ostrich Sans', 'Oswald', 'Bahnschrift', 'Arial Narrow', Arial, sans-serif;
  --body: 'Open Sans', 'Segoe UI', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --app: 'Segoe UI Variable Text', 'Segoe UI', 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .75, .1, 1); --ease-io: cubic-bezier(.65, 0, .35, 1);
  --r: 4px; --r-lg: 8px;
  --wrap: 1180px; --gutter: clamp(16px, 4vw, 40px); --mast-h: 76px;
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23333' stroke-width='1.6'/%3E%3C/svg%3E");
  interpolate-size: allow-keywords;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: var(--display); font-weight: 400; line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--blue-100); color: var(--ink); }
svg { display: block; }
.i { flex: none; width: 18px; height: 18px; }
[hidden] { display: none !important; }
code { font-family: var(--mono); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: var(--r); background: var(--blue); color: #fff; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: calc(880px + 2 * var(--gutter)); }
.small { font-size: 13.5px; } .muted { color: var(--mute); } .center { text-align: center; }
.row { display: flex; align-items: center; } .gap { gap: 16px; } .gap-sm { gap: 10px; } .wrap-row { flex-wrap: wrap; } .between { justify-content: space-between; }
.eyebrow { margin: 0; color: var(--blue); font: 500 17px/1.4 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.lede { max-width: 62ch; color: var(--soft); font-size: clamp(16.5px, 1.4vw, 18.5px); }

/* The mark: two blue facets from the desktop app's logo geometry. */
.mark .mk-l { fill: var(--blue-light); } .mark .mk-r { fill: var(--blue); } .mark .mk-s { fill: #1f4f9e; opacity: .45; }

/* ---------- Buttons ---------- */
.btn { --h: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: var(--h); padding: 0 20px; border: 1px solid transparent; border-radius: var(--r); font: 600 15px/1 var(--body); text-decoration: none !important; white-space: nowrap; cursor: pointer; transition: background-color .25s, border-color .25s, color .25s, box-shadow .25s, transform .25s var(--ease); }
.btn .i { width: 17px; height: 17px; transition: transform .35s var(--ease); }
.btn:hover .i:last-child:not(:first-child) { transform: translateX(3px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-600); box-shadow: 0 8px 18px -10px rgba(56, 116, 216, .8); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-soft { background: var(--blue-100); color: var(--blue-700); }
.btn-soft:hover { background: var(--blue-200); }
.btn-quiet { background: none; color: var(--mute); }
.btn-quiet:hover { color: var(--ink); }
.btn-danger { background: #fff; color: var(--danger); border-color: currentColor; }
.btn-danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-sm { --h: 34px; padding: 0 13px; font-size: 13.5px; }
.btn-lg { --h: 52px; padding: 0 26px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }
.btn:disabled { opacity: .55; cursor: progress; }
.text-button { padding: 0; border: 0; background: none; color: var(--blue); font: inherit; text-decoration: underline; cursor: pointer; }
.btn-hero { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: min(100%, 340px); min-height: 70px; padding: 12px 34px; border: 0; border-radius: var(--r); background: var(--blue); color: #fff; font-family: var(--body); text-decoration: none !important; cursor: pointer; box-shadow: 0 1px 0 rgba(0, 0, 0, .08); transition: background-color .25s, transform .35s var(--ease), box-shadow .35s var(--ease); }
.btn-hero b { font-size: 20px; font-weight: 600; }
.btn-hero small { font-size: 13.5px; opacity: .92; }
.btn-hero:hover { background: var(--blue-600); transform: translateY(-2px); box-shadow: 0 16px 30px -18px rgba(37, 83, 163, .9); }
.btn-hero-soft { flex-direction: row; gap: 12px; background: var(--blue-100); color: var(--blue-700); }
.btn-hero-soft:hover { background: var(--blue-200); }
.btn-hero-soft .i { width: 20px; height: 20px; }
.btn-hero-wide { flex-direction: row; gap: 12px; min-width: min(100%, 380px); min-height: 56px; }

/* ---------- Masthead ---------- */
.masthead { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px); transition: box-shadow .3s; view-transition-name: masthead; }
.masthead.is-scrolled { box-shadow: 0 6px 24px -18px rgba(20, 40, 80, .5); }
.mast-inner { display: flex; align-items: center; gap: 18px; height: var(--mast-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none !important; flex: none; }
.brand .mark { width: 36px; height: 36px; transition: transform .6s var(--ease); }
.brand:hover .mark { transform: translateY(-2px) rotate(-6deg); }
.brand-word { font: 300 30px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; color: var(--ink); }
.brand-word b { font-weight: 700; }
.mast-nav { display: flex; flex: 1; justify-content: center; gap: clamp(8px, 2.4vw, 34px); }
.mast-nav a, .mast-link { position: relative; padding: 8px 4px; color: var(--ink); font: 600 20px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; text-decoration: none !important; transition: color .2s; }
.mast-nav a::after { content: ''; position: absolute; left: 4px; right: 4px; bottom: 0; height: 2px; background: var(--blue); transform: scaleX(0); transition: transform .35s var(--ease); }
.mast-nav a:hover, .mast-link:hover { color: var(--blue); }
.mast-nav a:hover::after { transform: scaleX(1); }
.mast-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.mast-cart { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--r); color: var(--ink); }
.mast-cart:hover { background: var(--tint); color: var(--blue); }
.mast-cart .i { width: 21px; height: 21px; }
.cart-count { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--blue); color: #fff; font: 700 10.5px/18px var(--body); text-align: center; }
.mast-dash { display: inline-flex; align-items: center; padding: 11px 22px; border-radius: var(--r); background: var(--blue-100); color: var(--blue); font: 600 20px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; text-decoration: none !important; transition: background-color .25s; }
.mast-dash:hover { background: var(--blue-200); }
.dashboard-label-short { display: none; }
.mast-menu { display: none; }
.mast-menu summary { list-style: none; display: grid; place-content: center; gap: 4px; width: 46px; height: 40px; border: 1px solid var(--line-2); border-radius: var(--r); cursor: pointer; }
.mast-menu summary::-webkit-details-marker { display: none; }
.mast-menu summary span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .35s var(--ease), opacity .2s; }
.mast-menu[open] summary span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mast-menu[open] summary span:nth-child(2) { opacity: 0; }
.mast-menu[open] summary span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mast-sheet { position: absolute; left: 0; right: 0; top: 100%; height: calc(100dvh - var(--mast-h)); overflow: auto; display: flex; flex-direction: column; padding: 8px var(--gutter) 40px; background: #fff; border-top: 1px solid var(--line); }
.mast-sheet a { padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--ink); font: 500 30px/1.1 var(--display); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.mast-sheet a:hover { color: var(--blue); }
html.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: #fff; }
.hero-pattern { position: absolute; inset: 0; pointer-events: none; }
.hp { position: absolute; display: block; color: #eef0f3; transform: translate(calc(var(--px, 0) * var(--d, 10px)), calc(var(--py, 0) * var(--d, 10px))); transition: transform .9s var(--ease); }
.hp-mark { width: 100%; height: 100%; }
.hp-1 { --d: 14px; left: 6%; top: 10%; width: 170px; height: 170px; rotate: -14deg; }
.hp-2 { --d: 26px; left: 18%; top: 54%; width: 110px; height: 110px; rotate: 18deg; color: #f1f2f5; }
.hp-3 { --d: 10px; left: -3%; top: 62%; width: 230px; height: 230px; rotate: 8deg; color: #f3f4f6; }
.hp-4 { --d: 30px; left: 34%; top: 6%; width: 70px; height: 70px; rotate: -30deg; }
.hp-5 { --d: 18px; right: 6%; top: 9%; width: 200px; height: 200px; rotate: 12deg; color: #eff1f4; }
.hp-6 { --d: 32px; right: 22%; top: 60%; width: 90px; height: 90px; rotate: -18deg; }
.hp-7 { --d: 12px; right: -4%; top: 52%; width: 260px; height: 260px; rotate: -6deg; color: #f3f4f6; }
.hp-8 { --d: 22px; left: 46%; bottom: -60px; width: 220px; height: 220px; rotate: 180deg; color: #f2f3f5; }
.hp-9 { --d: 36px; right: 36%; top: 14%; width: 46px; height: 46px; rotate: 22deg; color: #e8ebf0; }
.hp-10 { --d: 28px; left: 27%; top: 28%; width: 40px; height: 40px; rotate: -8deg; color: #e8ebf0; }
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; padding-block: clamp(70px, 10vw, 128px) clamp(40px, 6vw, 70px); text-align: center; }
.hero-title { color: var(--ink); font: 200 clamp(68px, 11.5vw, 150px)/.92 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.ht-heavy { font-weight: 700; }
.ht-thin { font-weight: 200; }
.hero-tag { margin-top: clamp(16px, 2.2vw, 26px); color: #7a7d82; font: 500 clamp(21px, 2.6vw, 34px)/1.2 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; width: 100%; margin-top: clamp(40px, 5vw, 64px); }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; margin: 30px 0 0; padding: 0; color: var(--mute); font-size: 14.5px; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts .i { color: var(--blue); width: 17px; height: 17px; }
.hero-down { display: grid; place-items: center; width: 44px; height: 44px; margin-top: clamp(36px, 5vw, 60px); border-radius: 50%; color: var(--dim); }
.hero-down:hover { color: var(--blue); background: var(--tint); }
.hero-down .i { width: 24px; height: 24px; }
.br-desk { display: inline; }

/* ---------- Sections ---------- */
.sec { padding: clamp(40px, 6vw, 72px) 0 clamp(60px, 8vw, 100px); }
.sec-tint { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-title { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: clamp(32px, 4vw, 52px); padding: 26px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); text-align: center; }
.sec-title h2 { display: inline-flex; align-items: center; gap: 16px; color: var(--ink); font: 300 clamp(36px, 4.2vw, 50px)/1.05 var(--display); letter-spacing: .03em; text-transform: uppercase; }
.sec-title h2 .i { width: clamp(30px, 3vw, 38px); height: clamp(30px, 3vw, 38px); color: var(--ink); stroke-width: 1.9; }
.sec-sub { max-width: 760px; margin: 0 auto clamp(30px, 4vw, 48px); color: var(--soft); font-size: 17px; text-align: center; }
.sec-title .sec-sub { margin-bottom: 0; }

/* ---------- Try it: the replica ---------- */
.try-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(24px, 3vw, 44px); align-items: start; }
.try-side { position: sticky; top: calc(var(--mast-h) + 24px); display: flex; flex-direction: column; gap: 18px; }
.guide { list-style: none; margin: 0; padding: 0; counter-reset: g; }
.guide li { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); transition: opacity .35s; }
.guide li:first-child { border-top: 1px solid var(--line); }
.guide-no { display: grid; place-items: center; width: 32px; height: 32px; border: 1.5px solid var(--line-2); border-radius: 50%; color: var(--mute); font: 500 15px/1 var(--display); transition: background-color .35s, border-color .35s, color .35s; }
.guide b { display: block; color: var(--ink); font: 500 21px/1.15 var(--display); letter-spacing: .03em; text-transform: uppercase; }
.guide small { display: block; margin-top: 3px; color: var(--mute); font-size: 13.5px; line-height: 1.5; }
.guide li.is-now .guide-no { border-color: var(--blue); background: var(--blue); color: #fff; box-shadow: 0 0 0 5px var(--blue-100); }
.guide li.is-now b { color: var(--blue); }
.guide li.is-done .guide-no { border-color: var(--blue-200); background: var(--blue-50); color: var(--blue); }
.guide.is-live li:not(.is-now):not(.is-done) { opacity: .6; }
.try-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.try-actions .i { width: 15px; height: 15px; }
.watch-link { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .25s, box-shadow .25s; }
.watch-link > .i { flex: none; width: 44px; height: 44px; padding: 13px; border-radius: 50%; background: var(--blue); color: #fff; transition: transform .4s var(--ease); }
.watch-link b { display: block; font: 500 21px/1.15 var(--display); letter-spacing: .03em; text-transform: uppercase; }
.watch-link small { color: var(--mute); font-size: 13.5px; }
.watch-link:hover { border-color: var(--blue-200); box-shadow: 0 10px 24px -18px rgba(37, 83, 163, .7); }
.watch-link:hover > .i { transform: scale(1.08); }

.rp-stage { container-type: inline-size; }
.rp-caption { margin-top: 14px; color: var(--mute); font-size: 13.5px; text-align: center; }
.rp {
  --rp-bg: #f6f5f2; --rp-surface: #ffffff; --rp-sunken: #efede8; --rp-raised: #ffffff;
  --rp-text: #1c1d1f; --rp-muted: #55575c; --rp-subtle: #6b6d72; --rp-divider: #dcd9d2; --rp-border: #8d8a83;
  --rp-accent: #2f4a6d; --rp-accent-soft: #e6ebf2; --rp-primary: #2f4a6d; --rp-primary-h: #263d5a; --rp-on-primary: #ffffff;
  --rp-good: #2c6a4c; --rp-good-soft: #e5efe8; --rp-warn: #81540f; --rp-warn-soft: #f5ecdb; --rp-danger: #a1362f; --rp-danger-soft: #f6e4e1;
  --rp-select-line: #c9d1dc; --rp-title: linear-gradient(#fbfaf8, #f6f5f2);
  position: relative; overflow: hidden; border: 1px solid rgba(0, 0, 0, .14); border-radius: 9px; background: var(--rp-bg); color: var(--rp-text);
  font: 400 clamp(11px, calc(100cqi / 54), 15px)/1.45 var(--app); box-shadow: 0 40px 80px -40px rgba(23, 40, 70, .45), 0 2px 6px rgba(23, 40, 70, .08);
  transition: background-color .35s, color .35s;
}
.rp[data-theme='dark'] {
  --rp-bg: #171a1f; --rp-surface: #20242a; --rp-sunken: #12151a; --rp-raised: #2b313b;
  --rp-text: #f0f2f5; --rp-muted: #b8bec9; --rp-subtle: #a4abb8; --rp-divider: #383e47; --rp-border: #7c8592;
  --rp-accent: #b8c9e1; --rp-accent-soft: #293344; --rp-primary: #596980; --rp-primary-h: #65758c; --rp-on-primary: #ffffff;
  --rp-good: #8cc7a6; --rp-good-soft: #1c2c23; --rp-warn: #e0b76e; --rp-warn-soft: #302617; --rp-danger: #ec9a90; --rp-danger-soft: #34201e;
  --rp-select-line: #5b6576; --rp-title: linear-gradient(#1c2026, #171a1f);
  border-color: rgba(0, 0, 0, .5);
}
.rp .ri { flex: none; width: 1.45em; height: 1.45em; stroke-width: 1.5; }
.rp button { font: inherit; color: inherit; }
.rp-title { display: flex; align-items: center; height: 3.7em; padding: 0 0 0 1.6em; background: var(--rp-title); border-bottom: 1px solid var(--rp-divider); }
.rp-logo { display: inline-flex; align-items: center; gap: .85em; font-size: .93em; font-weight: 600; }
.rp-mark { width: 1.75em; height: 1.75em; }
.rp-win { display: flex; height: 100%; margin-left: auto; }
.rp-win i { position: relative; display: block; width: 3.3em; height: 100%; }
.rp-min::after { content: ''; position: absolute; left: 50%; top: 50%; width: .8em; height: 1px; background: var(--rp-muted); transform: translate(-50%, -50%); }
.rp-cls::before, .rp-cls::after { content: ''; position: absolute; left: 50%; top: 50%; width: 1.05em; height: 1px; background: var(--rp-muted); transform: translate(-50%, -50%) rotate(45deg); }
.rp-cls::after { transform: translate(-50%, -50%) rotate(-45deg); }
.rp-body { display: grid; grid-template-columns: 15em minmax(0, 1fr); min-height: 40em; }
.rp-side { display: flex; flex-direction: column; gap: .3em; padding: 1.9em 1.3em 1.3em; border-right: 1px solid var(--rp-divider); }
.rp-label { margin: 0 0 .9em .6em; color: var(--rp-subtle); font-size: .66em; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.rp-nav { display: flex; align-items: center; gap: .9em; height: 2.95em; padding: 0 1.05em; border: 1px solid transparent; border-radius: .6em; background: none; text-align: left; cursor: pointer; font-size: .9em !important; transition: background-color .2s, border-color .2s; }
.rp-nav:hover { background: var(--rp-sunken); }
.rp-nav.is-on { border-color: var(--rp-select-line); background: var(--rp-accent-soft); }
.rp[data-theme='dark'] .rp-nav.is-on { background: #4a5466; border-color: #66728a; }
.rp-side-foot { margin-top: auto; padding-top: 1.4em; border-top: 1px solid var(--rp-divider); }
.rp-side-foot .rp-label { margin-left: 0; }
.rp-acct { display: flex; align-items: center; gap: .7em; margin: 0 0 .8em; font-size: .9em; }
.rp-badge { display: inline-flex; align-items: center; gap: .5em; padding: .35em .75em; border-radius: .45em; font-size: .72em; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.rp-badge::before { content: ''; width: .45em; height: .45em; border-radius: 50%; background: currentColor; }
.rp-good { background: var(--rp-good-soft); color: var(--rp-good); }
.rp-main { position: relative; padding: 2.2em 2.1em 2.4em; }
.rp-page { display: none; flex-direction: column; align-items: flex-start; gap: .95em; }
.rp[data-page='workspace'] [data-p='workspace'], .rp[data-page='open'] [data-p='open'], .rp[data-page='working'] [data-p='working'],
.rp[data-page='unlocked'] [data-p='unlocked'], .rp[data-page='account'] [data-p='account'], .rp[data-page='security'] [data-p='security'] { display: flex; animation: rp-in .38s var(--ease) both; }
.rp-eyebrow { margin-bottom: -.4em; color: var(--rp-subtle); font-size: .7em; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.rp-h { color: var(--rp-text); font: 600 1.95em/1.2 var(--app); letter-spacing: -.01em; }
.rp-sub { color: var(--rp-muted); font-size: .86em; }
.rp-body-text { font-size: .95em; }
.rp-small { color: var(--rp-muted); font-size: .8em; }
.rp-card { width: 100%; margin-top: .6em; border: 1px solid var(--rp-divider); border-radius: 1em; background: var(--rp-surface); }
.rp-card + .rp-card { margin-top: .2em; }
.rp-card-h { display: flex; align-items: center; gap: .9em; padding: 1em 1.4em; border-bottom: 1px solid var(--rp-divider); }
.rp-card-h b { font-size: .95em; font-weight: 600; }
.rp-card-h-big { align-items: flex-start; }
.rp-card-h-big span b { display: block; font-size: 1.05em; }
.rp-card-h-big small { color: var(--rp-muted); font-size: .82em; }
.rp-card-b { display: flex; flex-direction: column; align-items: flex-start; gap: .7em; padding: 1em 1.4em 1.3em; }
.rp-pill { display: inline-flex; align-items: center; gap: .55em; padding: .35em .8em; border-radius: .45em; background: var(--rp-good-soft); color: var(--rp-good); font-size: .82em; transition: background-color .35s, color .35s; }
.rp-pill::before { content: ''; width: .45em; height: .45em; border-radius: 50%; background: currentColor; }
.rp[data-vault='open'] .rp-pill { background: var(--rp-warn-soft); color: var(--rp-warn); }
.rp-fact { display: grid; grid-template-columns: 16em minmax(0, 1fr); width: 100%; padding: .75em 0; border-bottom: 1px solid var(--rp-divider); font-size: .84em; }
.rp-fact > span:first-child { color: var(--rp-muted); }
.rp-dotted { display: inline-flex; align-items: center; gap: .55em; }
.rp-dotted::before { content: ''; width: .45em; height: .45em; border-radius: 50%; background: var(--rp-good); }
.rp[data-vault='open'] .rp-dotted::before { background: var(--rp-warn); }
.rp-when-secured, .rp-when-open { display: flex; flex-direction: column; align-items: flex-start; gap: .8em; margin-top: .4em; }
.rp[data-vault='secured'] .rp-when-open, .rp[data-vault='open'] .rp-when-secured { display: none; }
.rp-row { display: flex; flex-wrap: wrap; gap: .7em; }
.rp-btn { display: inline-flex; align-items: center; gap: .6em; height: 2.55em; padding: 0 1.15em; border: 1px solid var(--rp-border); border-radius: .58em; background: transparent; font-size: .86em !important; cursor: pointer; transition: background-color .2s, border-color .2s, box-shadow .2s, transform .15s; }
.rp-btn:hover { background: var(--rp-sunken); }
.rp-btn:active { transform: translateY(1px); }
.rp-primary { border-color: transparent; background: var(--rp-primary); color: var(--rp-on-primary) !important; }
.rp-primary:hover { background: var(--rp-primary-h); }
.rp-tall { height: 2.85em; padding: 0 1.4em; }
.rp-link { padding: .2em .4em; border: 0; background: none; color: var(--rp-accent) !important; font-size: .86em !important; cursor: pointer; }
.rp-link:hover { text-decoration: underline; }
.rp-hint .rp-link { padding: 0; font-size: 1em !important; }
.rp-hint { color: var(--rp-subtle); font-size: .78em; }
.rp-field { display: flex; flex-direction: column; gap: .4em; width: min(100%, 26em); font-size: .86em; }
.rp-field > span:first-child { color: var(--rp-muted); }
.rp-input { position: relative; display: flex; }
.rp-input input { width: 100%; height: 2.6em; padding: 0 4.4em 0 .9em; border: 1px solid var(--rp-border); border-radius: .58em; background: var(--rp-surface); color: var(--rp-text); font: inherit; font-size: 1.05em; }
.rp-input input:focus { outline: none; border-color: var(--rp-accent); box-shadow: 0 0 0 2px var(--rp-accent-soft); }
.rp-input button { position: absolute; right: .3em; top: 50%; padding: .3em .6em; border: 0; border-radius: .4em; background: none; color: var(--rp-accent); font-size: .9em; transform: translateY(-50%); cursor: pointer; }
.rp-error { padding: .6em .9em; border-radius: .5em; background: var(--rp-danger-soft); color: var(--rp-danger); font-size: .8em; }
.rp-progress { position: relative; overflow: hidden; width: 100%; height: .35em; border-radius: 1em; background: var(--rp-sunken); }
.rp-progress i { position: absolute; inset: 0 auto 0 0; width: 35%; border-radius: inherit; background: var(--rp-primary); animation: rp-bar 1.1s var(--ease-io) infinite; }
.rp-notice { margin-bottom: 1.2em; padding: .7em 1em; border-radius: .6em; background: var(--rp-accent-soft); color: var(--rp-text); font-size: .84em; animation: rp-in .35s var(--ease) both; }
.rp-seg { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; padding: .2em; border: 1px solid var(--rp-divider); border-radius: .6em; background: var(--rp-sunken); }
.rp-seg button { height: 2.35em; border: 0; border-radius: .45em; background: none; color: var(--rp-muted); font-size: .84em !important; cursor: pointer; }
.rp-seg button[aria-checked='true'] { background: var(--rp-primary); color: #fff; }
.rp-light-only { display: block; }

/* Scenes inside the replica window: Windows sign-in and the private desktop (stylised). */
.rp-scene { position: absolute; inset: 3.7em 0 0; z-index: 3; overflow: hidden; background: #16243a; color: #fff; animation: rp-fade .45s var(--ease) both; }
.rp-scene::before { content: ''; position: absolute; right: -8%; bottom: -18%; width: 60%; aspect-ratio: 1; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%23ffffff' fill-opacity='.05' d='M128 16 24 214.5 128 173.5V138l-56 26 56-102.5zM128 16 232 214.5 128 173.5V138l56 26-56-102.5z'/%3E%3C/svg%3E") no-repeat center / contain; }
.rp-signin { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9em; background: radial-gradient(120% 90% at 50% 0%, #22385a, #121d30); }
.rp-clock { position: absolute; top: 1.4em; left: 1.8em; font-size: 2.4em; font-weight: 300; opacity: .85; }
.rp-avatar { display: grid; place-items: center; width: 6.4em; height: 6.4em; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.rp-avatar .ri { width: 3em; height: 3em; }
.rp-who { font-size: 1.5em; font-weight: 600; }
.rp-pw { display: flex; align-items: center; width: 16em; height: 2.4em; padding: 0 .9em; border: 1px solid rgba(255, 255, 255, .35); border-radius: .4em; background: rgba(255, 255, 255, .08); letter-spacing: .3em; }
.rp-status { color: rgba(255, 255, 255, .72); font-size: .86em; }
.rp-desk { position: absolute; inset: 0; background: #23426e; animation: rp-fade .5s var(--ease) both; }
.rp-desk-toast { position: absolute; top: 1.2em; right: 1.2em; z-index: 2; display: flex; align-items: center; gap: .6em; padding: .7em 1em; border-radius: .6em; background: rgba(15, 22, 35, .82); font-size: .8em; animation: rp-in .5s var(--ease) .3s both; }
.rp-desk-toast i { width: .55em; height: .55em; border-radius: 50%; background: #e0b76e; }
.rp-explorer { position: absolute; left: 7%; top: 12%; width: 68%; overflow: hidden; border-radius: .7em; background: var(--rp-surface); color: var(--rp-text); box-shadow: 0 1.6em 3em -1em rgba(0, 0, 0, .55); animation: rp-in .55s var(--ease) .15s both; }
.rp-ex-bar { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: .8em 1em; border-bottom: 1px solid var(--rp-divider); font-size: .84em; }
.rp-ex-bar > span:first-child { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; }
.rp-ex-path { color: var(--rp-muted); }
.rp-ex-body { display: grid; grid-template-columns: 9em minmax(0, 1fr); }
.rp-ex-side, .rp-ex-files { list-style: none; margin: 0; padding: .6em; font-size: .82em; }
.rp-ex-side { border-right: 1px solid var(--rp-divider); background: var(--rp-bg); }
.rp-ex-side li, .rp-ex-files li { display: flex; align-items: center; gap: .55em; padding: .45em .6em; border-radius: .4em; }
.rp-ex-side li.is-on { background: var(--rp-accent-soft); }
.rp-ex-files li span { flex: 1; }
.rp-ex-files small { color: var(--rp-muted); }
.rp-ex-files li:nth-child(n) { animation: rp-in .45s var(--ease) both; }
.rp-ex-files li:nth-child(2) { animation-delay: .35s; } .rp-ex-files li:nth-child(3) { animation-delay: .42s; } .rp-ex-files li:nth-child(4) { animation-delay: .49s; } .rp-ex-files li:nth-child(5) { animation-delay: .56s; }
.rp-ex-files .ri, .rp-ex-side .ri { width: 1.2em; height: 1.2em; color: #4b72a8; }
.rp-taskbar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: .6em; height: 3.4em; background: rgba(14, 20, 32, .86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.rp-startbtn { position: relative; display: grid; place-items: center; width: 2.4em; height: 2.4em; border: 0; border-radius: .5em; background: rgba(255, 255, 255, .08); cursor: pointer; }
.rp-startbtn i { position: absolute; width: .35em; height: .35em; border-radius: 50%; background: #c9daf5; }
.rp-startbtn i:nth-child(1) { transform: translate(-.45em, -.45em); } .rp-startbtn i:nth-child(2) { transform: translate(.45em, -.45em); } .rp-startbtn i:nth-child(3) { transform: translate(-.45em, .45em); } .rp-startbtn i:nth-child(4) { transform: translate(.45em, .45em); }
.rp-startbtn:hover, .rp-startbtn.is-hot { background: rgba(255, 255, 255, .2); box-shadow: 0 0 0 2px rgba(110, 162, 242, .7); }
.rp-task-app { display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: .5em; background: rgba(255, 255, 255, .12); }
.rp-task-app .ri { width: 1.3em; height: 1.3em; color: #e8d38c; }
.rp-task-time { position: absolute; right: 1.2em; font-size: .78em; opacity: .85; }
.rp-start { position: absolute; left: 50%; bottom: 4em; z-index: 3; width: 17em; padding: 1em; border-radius: .8em; background: rgba(28, 36, 52, .97); box-shadow: 0 1.2em 2.4em -1em rgba(0, 0, 0, .6); transform: translateX(-50%); animation: rp-up .35s var(--ease) both; }
.rp-start p { display: flex; align-items: center; gap: .6em; margin: 0 0 .8em; font-size: .9em; }
.rp-start button { display: flex; align-items: center; gap: .6em; width: 100%; padding: .7em .8em; border: 0; border-radius: .5em; background: rgba(255, 255, 255, .08); color: #fff; font-size: .86em; cursor: pointer; }
.rp-start button:hover, .rp-start button.is-hot { background: rgba(110, 162, 242, .35); }
.rp .is-hot { box-shadow: 0 0 0 3px rgba(56, 116, 216, .45); }

/* ---------- What is it ---------- */
.what-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.what-text { display: flex; flex-direction: column; gap: 30px; }
.what-text h3, .feat-item h3 { color: var(--blue); font: 400 clamp(27px, 2.6vw, 33px)/1.1 var(--display); letter-spacing: .03em; text-transform: uppercase; }
.what-text p { margin-top: 10px; color: var(--soft); font-size: 16.5px; }
.what-art { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(var(--tint), #fff); }
.wa-pc { display: grid; gap: 14px; }
.wa-acct { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: #fff; transition: border-color .6s var(--ease), box-shadow .6s var(--ease), opacity .6s; }
.wa-tag { color: var(--mute); font: 500 16px var(--display); letter-spacing: .1em; text-transform: uppercase; }
.wa-acct b { color: var(--ink); font: 500 26px/1.1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.wa-files { display: flex; gap: 8px; margin-top: 10px; }
.wa-files i { width: 44px; height: 32px; border-radius: 4px; background: var(--tint); border: 1px solid var(--line); transition: background-color .6s, border-color .6s; }
.wa-private { border-style: dashed; opacity: .62; }
.wa-private .wa-files i { background: repeating-linear-gradient(-45deg, #eef1f6 0 5px, #f7f9fc 5px 10px); }
.wa-lock { position: absolute; right: 18px; top: 18px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; transition: background-color .5s, transform .6s var(--ease); }
.wa-lock .i { width: 19px; height: 19px; }
.wa-disk { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--r-lg); background: var(--ink); color: #fff; transition: background-color .6s; }
.wa-disk .i { width: 30px; height: 30px; color: #9fc0f5; }
.wa-disk b { display: block; font: 500 21px var(--display); letter-spacing: .04em; text-transform: uppercase; }
.wa-disk small { color: #c8d3e6; font-size: 13.5px; }
.wa-pcname { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; color: var(--mute); font: 500 17px var(--display); letter-spacing: .1em; text-transform: uppercase; }
.wa-pcname .i { width: 16px; height: 16px; }
.what-art.is-open .wa-private { opacity: 1; border-style: solid; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-100); }
.what-art.is-open .wa-private .wa-files i { background: var(--blue-50); border-color: var(--blue-200); }
.what-art.is-open .wa-lock { background: var(--blue); transform: rotate(-12deg); }
.what-art.is-open .wa-disk { background: var(--blue-700); }

/* ---------- How it works ---------- */
.how { position: relative; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); margin: 0; padding: 0; }
.how::before { content: ''; position: absolute; left: 12.5%; right: 12.5%; top: 32px; height: 2px; background: var(--line-2); }
.how::after { content: ''; position: absolute; left: 12.5%; right: 12.5%; top: 32px; height: 2px; background: var(--blue); transform: scaleX(var(--how, 0)); transform-origin: left; transition: transform 1s var(--ease); }
.how li { position: relative; z-index: 1; text-align: center; }
.how-no { position: absolute; top: -8px; left: calc(50% + 18px); z-index: 2; display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid var(--blue); border-radius: 50%; background: #fff; color: var(--blue); font: 500 15px/1 var(--display); }
.how-ico { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 20px; border: 2px solid var(--line-2); border-radius: 50%; background: #fff; color: var(--ink); transition: border-color .5s, background-color .5s, color .5s, transform .6s var(--ease); }
.how-ico .i { width: 26px; height: 26px; }
.how li.in .how-ico { border-color: var(--blue); background: var(--blue); color: #fff; transform: scale(1.04); }
.how h3 { color: var(--ink); font: 400 28px/1.1 var(--display); letter-spacing: .03em; text-transform: uppercase; }
.how p { margin-top: 10px; color: var(--soft); font-size: 15.5px; }
.how-note { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 44px; color: var(--soft); font-size: 15.5px; text-align: center; }
.how-note .i { color: var(--blue); }

/* ---------- Features ---------- */
.feat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 72px); }
.feat-item { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.feat-item:nth-child(-n+2) { border-top: 1px solid var(--line); }
.feat-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--blue-50); color: var(--blue); transition: background-color .3s, color .3s, transform .5s var(--ease); }
.feat-ico .i { width: 25px; height: 25px; }
.feat-item:hover .feat-ico { background: var(--blue); color: #fff; transform: rotate(-8deg); }
.feat-item h3 { font-size: 28px; }
.feat-item p { margin-top: 6px; color: var(--soft); font-size: 15.5px; }

/* ---------- Why ---------- */
.why { max-width: 980px; margin: 0 auto; text-align: center; }
.why-say { color: var(--ink); font: 300 clamp(32px, 4vw, 50px)/1.2 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.why-pick { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; vertical-align: baseline; }
.why-pick button { padding: 0 2px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--dim); font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; transition: color .3s, border-color .3s; }
.why-pick button:hover { color: var(--blue-600); }
.why-pick button[aria-selected='true'] { color: var(--blue); border-bottom-color: var(--blue); font-weight: 400; }
.why-answer { max-width: 760px; margin: 34px auto 0; animation: rise-in .5s var(--ease) both; }
.why-answer p { color: var(--soft); font-size: 19px; }
.why-answer ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: 20px 0 0; padding: 0; color: var(--ink); font-weight: 600; font-size: 15px; }
.why-answer li { display: inline-flex; align-items: center; gap: 8px; }
.why-answer .i { color: var(--blue); }

/* ---------- Boundaries + get ---------- */
.bounds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.bounds-col h3 { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 2px solid var(--blue); color: var(--ink); font: 400 29px var(--display); letter-spacing: .03em; text-transform: uppercase; }
.bounds-no h3 { border-bottom-color: var(--line-2); }
.bounds-col h3 .i { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--blue); color: #fff; }
.bounds-no h3 .i { background: var(--line-2); color: var(--ink); }
.bounds-col ul { list-style: none; margin: 0; padding: 0; }
.bounds-col li { padding: 14px 0 14px 26px; border-bottom: 1px solid var(--line); color: var(--soft); position: relative; }
.bounds-col li::before { content: ''; position: absolute; left: 4px; top: 24px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.bounds-no li::before { background: var(--dim); }
.get { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: clamp(48px, 6vw, 72px); padding: clamp(24px, 3vw, 36px) clamp(22px, 3vw, 40px); border: 1px solid var(--blue-100); border-radius: var(--r-lg); background: var(--blue-50); }
.get-title { color: var(--ink); font: 200 clamp(38px, 4.2vw, 52px)/1 var(--display); text-transform: uppercase; }
.get-title b { font-weight: 700; }
.get-sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-top: 10px; color: var(--mute); font-size: 14.5px; }
.get-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.price-tag { display: inline-flex; align-items: baseline; gap: 6px; }
.price-tag b { color: var(--ink); font: 500 clamp(28px, 2.8vw, 36px)/1 var(--display); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.price-tag small { color: var(--mute); font-size: 13.5px; }

/* ---------- Store list ---------- */
.shelf + .shelf { margin-top: clamp(36px, 5vw, 56px); }
.shelf-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px 22px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.shelf-title { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; }
.shelf-title .i { width: 24px; height: 24px; color: var(--blue); }
.shelf-title h3 { font: 500 32px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.shelf-title:hover h3 { color: var(--blue); }
.shelf-head p { color: var(--mute); font-size: 14.5px; }
.shelf-all { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; }
.shelf-all .i { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.shelf-all:hover .i { transform: translateX(4px); }
.ix-list { list-style: none; margin: 0; padding: 0; }
.ix { border-bottom: 1px solid var(--line); }
.ix-link { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 44px; align-items: center; gap: 22px; padding: 24px 14px; border-radius: var(--r); color: var(--text); text-decoration: none !important; transition: background-color .3s, padding .45s var(--ease); }
.ix-link:hover, .ix-link:focus-visible { background: var(--blue-50); padding-inline: 22px; }
.ix-no { color: var(--dim); font: 300 24px/1 var(--display); }
.ix-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ix-name { color: var(--ink); font-size: 20px; font-weight: 600; line-height: 1.3; transition: color .25s; }
.ix-link:hover .ix-name { color: var(--blue); }
.ix-tag { color: var(--soft); font-size: 15.5px; }
.ix-meta { color: var(--mute); font-size: 13px; font-weight: 600; }
.ix-price { text-align: right; }
.ix-go { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; color: var(--ink); transition: background-color .3s, border-color .3s, color .3s, transform .45s var(--ease); }
.ix-go .i { width: 17px; height: 17px; }
.ix-link:hover .ix-go { border-color: var(--blue); background: var(--blue); color: #fff; transform: translateX(4px); }
.ix-empty { padding: 26px 14px; border-bottom: 1px solid var(--line); color: var(--mute); }
.cat-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin-top: 56px; }
.cat-switch a { display: flex; align-items: center; gap: 12px; padding: 22px 0; border-top: 2px solid var(--ink); color: var(--ink); font: 400 31px var(--display); letter-spacing: .04em; text-transform: uppercase; text-decoration: none !important; }
.cat-switch a .i:first-child { width: 24px; height: 24px; color: var(--blue); }
.cat-switch a .i:last-child { margin-left: auto; transition: transform .35s var(--ease); }
.cat-switch a:hover { color: var(--blue); }
.cat-switch a:hover .i:last-child { transform: translateX(6px); }

/* ---------- Buying + receipt ---------- */
.buying { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: clamp(28px, 6vw, 88px); align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps button { all: unset; box-sizing: border-box; position: relative; display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 14px; width: 100%; padding: 22px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.steps li:first-child button { border-top: 1px solid var(--line); }
.steps button:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.steps button::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; }
.steps.is-live li.is-active button::after { animation: fill var(--step-ms, 3600ms) linear forwards; }
.steps.is-manual li.is-active button::after { animation: none; transform: scaleX(1); }
.step-no { color: var(--dim); font: 200 44px/1 var(--display); transition: color .4s; }
.step-body b { display: block; color: var(--ink); font: 400 29px/1.1 var(--display); letter-spacing: .03em; text-transform: uppercase; transition: color .4s; }
.step-body > span { display: block; margin-top: 8px; color: var(--soft); font-size: 15.5px; }
.steps.is-live li:not(.is-active) .step-body b, .steps.is-live li:not(.is-active) .step-no { color: var(--dim); }
.steps li.is-active .step-no, .steps li.is-active .step-body b { color: var(--blue); }
.receipt { position: relative; padding: 26px 26px 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; color: var(--text); font-size: 14px; box-shadow: 0 30px 60px -40px rgba(23, 40, 70, .5); }
.receipt-head { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; border-bottom: 1px dashed var(--line-2); color: var(--ink); font: 600 20px var(--display); letter-spacing: .05em; text-transform: uppercase; }
.receipt-head .mark { width: 24px; height: 24px; }
.receipt-kind { margin-left: auto; color: var(--mute); font: 500 15px var(--display); letter-spacing: .1em; }
.receipt-rows { margin: 0; }
.receipt-rows div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.receipt-rows dt { color: var(--mute); font-size: 13.5px; }
.receipt-rows dd { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ink); font: 500 13.5px var(--mono); text-align: right; }
.receipt-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); transition: background-color .4s; }
.receipt[data-stage='0'] .receipt-dot { background: var(--dim); }
.receipt[data-stage='1'] .receipt-dot { background: #e0a53a; animation: pulse .9s infinite; }
.receipt-key { margin-top: 16px; padding: 14px 16px; border-radius: var(--r); background: var(--blue-50); border: 1px solid var(--blue-100); }
.receipt-key span { display: block; color: var(--blue-700); font: 500 15px var(--display); letter-spacing: .1em; text-transform: uppercase; }
.receipt-key code { display: block; margin-top: 6px; overflow: hidden; color: var(--ink); white-space: nowrap; font: 600 clamp(13.5px, 1.25vw, 16px) var(--mono); letter-spacing: .04em; transition: color .4s; }
.receipt[data-stage='0'] .receipt-key code, .receipt[data-stage='1'] .receipt-key code { color: var(--dim); }
.receipt-bar { height: 3px; margin-top: 18px; border-radius: 3px; background: var(--line); }
.receipt-bar i { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--blue); transform-origin: left; transition: transform .9s var(--ease); }
.receipt[data-stage='0'] .receipt-bar i { transform: scaleX(.12); }
.receipt[data-stage='1'] .receipt-bar i { transform: scaleX(.6); }
.receipt-static .receipt-bar { display: none; }

/* ---------- FAQ / hand ---------- */
.faq { max-width: 900px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:first-child { border-top: 1px solid var(--line-2); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 2px; color: var(--ink); font-size: 18px; font-weight: 600; cursor: pointer; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 16px; height: 16px; background: linear-gradient(var(--blue), var(--blue)) center / 100% 2px no-repeat, linear-gradient(var(--blue), var(--blue)) center / 2px 100% no-repeat; transition: transform .45s var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq summary:hover { color: var(--blue); }
.faq details p { max-width: 70ch; padding: 0 2px 22px; color: var(--soft); }
.hand { max-width: 860px; margin: 0 auto 28px; color: var(--soft); font-size: 17px; text-align: center; }

/* ---------- Footer ---------- */
.site-foot { padding: 56px 0 40px; border-top: 1px solid var(--line-2); background: #fff; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.foot-cols h4 { margin-bottom: 16px; color: var(--ink); font: 600 23px var(--display); letter-spacing: .05em; text-transform: uppercase; }
.foot-cols a { display: block; padding: 3px 0; color: #444; font-size: 14.5px; }
.foot-cols a:hover { color: var(--blue); }
.foot-brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 52px; color: var(--ink); text-decoration: none !important; }
.foot-brand .mark { width: 40px; height: 40px; }
.foot-brand .brand-word { font-size: 34px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-top: 18px; color: var(--mute); font-size: 14px; text-align: center; }

/* ---------- Interior pages ---------- */
.page-head { position: relative; padding: clamp(36px, 5vw, 64px) 0 clamp(30px, 4vw, 48px); border-bottom: 1px solid var(--line); background: var(--tint); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; color: var(--mute); font-size: 13.5px; text-transform: capitalize; }
.crumbs a { color: var(--blue); }
.page-title { margin-top: 6px; color: var(--ink); font: 300 clamp(46px, 7vw, 84px)/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.page-head .eyebrow + .page-title { margin-top: 10px; }
.narrow .page-title { font-size: clamp(42px, 6vw, 72px); }
.page-head .lede { margin-top: 16px; }
.head-meta { margin-top: 18px; color: var(--mute); font-size: 14px; font-weight: 600; }
.head-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.sec-body { padding: clamp(32px, 4vw, 56px) 0 clamp(70px, 9vw, 110px); }
.message-head { padding-bottom: clamp(70px, 9vw, 110px); text-align: center; }
.message-head .lede { margin-inline: auto; }
.message-code { color: var(--blue); font: 200 clamp(96px, 14vw, 180px)/1 var(--display); }
.message-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }

/* ---------- Product ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); align-items: start; gap: clamp(32px, 6vw, 88px); }
.body-lg { max-width: 60ch; margin-bottom: 40px; color: var(--ink); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; }
.product-info > .eyebrow { margin-bottom: 14px; }
.spec-list { list-style: none; margin: 0 0 44px; padding: 0; border-top: 1px solid var(--line); }
.spec-list li { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 16.5px; }
.spec-list .i { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--blue-50); color: var(--blue); }
.fact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; }
.fact-list div { padding: 16px 0; border-top: 1px solid var(--line); }
.fact-list dt { color: var(--ink); font: 500 20px var(--display); letter-spacing: .06em; text-transform: uppercase; }
.fact-list dd { margin: 6px 0 0; color: var(--soft); font-size: 15px; }
.buy { position: sticky; top: calc(var(--mast-h) + 24px); display: flex; flex-direction: column; gap: 16px; padding: 28px; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--r-lg); background: #fff; box-shadow: 0 30px 60px -44px rgba(23, 40, 70, .55); }
.buy-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--ink); font: 500 22px var(--display); letter-spacing: .04em; text-transform: uppercase; }
.buy-kind { padding: 4px 10px; border-radius: var(--r); background: var(--blue-50); color: var(--blue); font-size: 16px; }
.buy-price .price-tag b { font-size: clamp(44px, 4.4vw, 56px); }
.buy-total { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.buy-total span { color: var(--mute); font-weight: 600; }
.buy-total b { color: var(--ink); font: 500 30px var(--display); font-variant-numeric: tabular-nums; }
.buy-total b.is-changed { animation: tick .5s var(--ease); }
.buy-note { color: var(--mute); font-size: 13.5px; }

/* ---------- Forms ---------- */
.sheet { padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.form { display: flex; flex-direction: column; gap: 18px; }
.form-step { display: flex; align-items: center; gap: 12px; margin-top: 10px; color: var(--ink); font: 400 27px var(--display); letter-spacing: .03em; text-transform: uppercase; }
.form-step:first-of-type { margin-top: 0; }
.form-step span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 15px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { color: var(--ink); font-size: 14px; font-weight: 600; }
.field small { color: var(--mute); font-size: 12.5px; }
input, select, textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; color: var(--text); font: 400 16px/1.4 var(--body); transition: border-color .2s, box-shadow .2s; }
input::placeholder, textarea::placeholder { color: var(--dim); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-100); }
select { appearance: none; padding-right: 40px; background-image: var(--chev); background-repeat: no-repeat; background-position: right 15px center; cursor: pointer; }
textarea { resize: vertical; min-height: 110px; }
.mono-input { font-family: var(--mono); letter-spacing: .05em; }
.coins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; margin: 0; padding: 0; border: 0; }
.coins legend { margin-bottom: 8px; padding: 0; color: var(--ink); font-size: 14px; font-weight: 600; }
.coin-opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 15px 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.coin-opt input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.coin-opt::after { content: ''; flex: none; width: 18px; height: 18px; margin-left: auto; border: 1px solid var(--line-2); border-radius: 50%; transition: border-width .2s var(--ease), border-color .2s; }
.coin-opt:has(input:checked) { border-color: var(--blue); background: var(--blue-50); box-shadow: inset 0 0 0 1px var(--blue); }
.coin-opt:has(input:checked)::after { border: 6px solid var(--blue); }
.coin-opt:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.coin { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; color: #fff; font: 700 15px var(--body); }
.c-usdt { background: #26a17b; } .c-usdc { background: #2775ca; }
.coin-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.coin-text b { color: var(--ink); font-size: 15px; }
.coin-text small { color: var(--mute); font-size: 12.5px; }
.check { display: flex; align-items: flex-start; gap: 12px; color: var(--soft); font-size: 14px; cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; padding: 0; accent-color: var(--blue); }
.alert { padding: 13px 16px; border: 1px solid #f0c9c4; border-left: 4px solid var(--danger); border-radius: var(--r); background: var(--danger-soft); color: var(--text); font-size: 14.5px; }
.alert-ok { border-color: #c3dccd; border-left-color: var(--ok); background: var(--ok-soft); }
.empty { padding: 44px 24px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--soft); text-align: center; }

/* ---------- Cart / checkout ---------- */
.cart-sheet { display: flex; flex-direction: column; }
.cart-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-row:first-child { padding-top: 0; }
.cart-row b { display: block; color: var(--ink); font-size: 18px; font-weight: 600; }
.cart-row small { display: block; margin-top: 2px; color: var(--mute); font-size: 13.5px; }
.cart-row .price { color: var(--ink); font: 500 22px var(--display); font-variant-numeric: tabular-nums; }
.sum-total { display: flex; align-items: baseline; justify-content: space-between; padding: 18px 0; }
.sum-total span { color: var(--mute); font-weight: 600; }
.sum-total b { color: var(--ink); font: 500 34px var(--display); font-variant-numeric: tabular-nums; }
.cart-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
.checkout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .8fr); align-items: start; gap: clamp(24px, 4vw, 56px); }
.summary { position: sticky; top: calc(var(--mast-h) + 24px); }
.sum-line { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.sum-line b { display: block; color: var(--ink); font-size: 15.5px; }
.sum-line small { display: block; margin-top: 2px; color: var(--mute); font-size: 13px; }
.sum-line > span { color: var(--ink); font: 500 14px var(--mono); }

/* ---------- Order ---------- */
.track { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 30px 0 0; padding: 0; }
.track li { position: relative; overflow: hidden; padding-top: 12px; color: var(--dim); font-size: 14px; font-weight: 600; }
.track li::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 3px; background: var(--line-2); }
.track li span { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background: var(--line); color: var(--mute); font-size: 12px; }
.track li.done { color: var(--ink); }
.track li.done::before { background: var(--blue); }
.track li.done span { background: var(--blue); color: #fff; }
.track-ok li.now::before { background: var(--ok); }
.track-warn li.now::before { background: #e0a53a; }
.track-wait li.now::after { content: ''; position: absolute; top: 0; left: 0; width: 40%; height: 3px; background: #fff; opacity: .7; animation: sweep 1.6s var(--ease-io) infinite; }
.order { display: flex; flex-direction: column; gap: 18px; }
.order-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.order-meta dt { color: var(--mute); font-size: 13px; font-weight: 600; }
.order-meta dd { margin: 4px 0 0; color: var(--ink); font-weight: 600; }
.order-line { display: flex; flex-direction: column; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.order-line-head { display: flex; justify-content: space-between; gap: 16px; }
.order-line-head b { color: var(--ink); font-size: 18px; }
.order-line-head span { font: 500 15px var(--mono); }
.key-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 16px; padding: 16px 18px; border: 1px solid var(--blue-100); border-radius: var(--r); background: var(--blue-50); }
.key-label { grid-column: 1 / -1; color: var(--blue-700); font: 500 16px var(--display); letter-spacing: .1em; text-transform: uppercase; }
.key-box code { color: var(--ink); font: 600 clamp(15px, 2vw, 19px) var(--mono); letter-spacing: .05em; overflow-wrap: anywhere; }
.status { display: inline-block; padding: 3px 10px; border: 1px solid var(--line-2); border-radius: 99px; color: var(--soft); font-size: 12px; font-weight: 600; text-transform: capitalize; white-space: nowrap; }
.status-ok, .status-paid, .status-fulfilled, .status-active { border-color: #b9d6c4; background: var(--ok-soft); color: var(--ok); }
.status-wait, .status-awaiting_payment, .status-confirming { border-color: var(--blue-200); background: var(--blue-50); color: var(--blue-700); }
.status-warn, .status-underpaid, .status-expired, .status-revoked { border-color: #ead3aa; background: var(--warn-soft); color: var(--warn); }

/* ---------- Demo video player ---------- */
.player { width: min(100% - 24px, 1080px); max-width: none; max-height: none; padding: 0; border: 0; border-radius: 10px; background: #0f1724; color: #fff; box-shadow: 0 50px 120px rgba(0, 0, 0, .5); }
.player::backdrop { background: rgba(14, 22, 36, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.player[open] { animation: player-in .45s var(--ease) both; }
.player-frame { display: flex; flex-direction: column; }
.player-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 12px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); font: 500 19px var(--display); letter-spacing: .06em; text-transform: uppercase; }
.player-top span { display: inline-flex; align-items: center; gap: 10px; }
.player-top .mark { width: 22px; height: 22px; }
.player-x { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: var(--r); background: none; color: #fff; cursor: pointer; }
.player-x:hover { background: rgba(255, 255, 255, .1); }
.player-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0b111c; }
.player-stage video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player-soon { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; background: radial-gradient(80% 80% at 50% 30%, #1d3256, #0b111c); }
.player-soon .mark { width: 64px; height: 64px; color: #6ea2f2; margin-bottom: 8px; animation: float 4s ease-in-out infinite; }
.player-soon-title { font: 300 clamp(32px, 4vw, 48px)/1.05 var(--display); letter-spacing: .03em; text-transform: uppercase; }
.player-soon p:not(.player-soon-title) { max-width: 44ch; color: #c3cee0; }
.player-soon .btn { margin-top: 10px; }
.player-stage[data-ready='true'] .player-soon { display: none; }
.player-stage[data-ready='false'] .player-big, .player-stage.is-playing .player-big { display: none; }
.player-big { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 86px; height: 86px; border: 0; border-radius: 50%; background: var(--blue); color: #fff; transform: translate(-50%, -50%); cursor: pointer; box-shadow: 0 0 0 10px rgba(56, 116, 216, .25); transition: transform .3s var(--ease); }
.player-big .i { width: 34px; height: 34px; margin-left: 5px; }
.player-big:hover { transform: translate(-50%, -50%) scale(1.06); }
.player-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid rgba(255, 255, 255, .08); }
.player-bar button { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border: 0; border-radius: var(--r); background: none; color: #fff; cursor: pointer; }
.player-bar button:hover { background: rgba(255, 255, 255, .1); }
.player-bar button:disabled { opacity: .35; cursor: default; }
.player-time { min-width: 3.2em; color: #c3cee0; font: 500 13px var(--mono); text-align: center; }
.player-seek { flex: 1; height: 4px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .18); accent-color: var(--blue); }
.player-seek:focus { box-shadow: none; }

/* ---------- Client dashboard ---------- */
.client-site { background: var(--tint); }
.client-topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 18px; height: 64px; padding: 0 24px; border-bottom: 1px solid var(--line); background: #fff; view-transition-name: masthead; }
.client-topbar .brand .mark { width: 30px; height: 30px; }
.client-topbar .brand-word { font-size: 27px; }
.client-topbar-label { padding-left: 18px; border-left: 1px solid var(--line-2); color: var(--mute); font: 500 19px var(--display); letter-spacing: .08em; text-transform: uppercase; }
.client-store-link { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 9px 16px; border-radius: var(--r); background: var(--blue-100); color: var(--blue); font: 600 19px var(--display); letter-spacing: .05em; text-transform: uppercase; text-decoration: none !important; }
.client-store-link:hover { background: var(--blue-200); }
.client-store-link .i { width: 16px; height: 16px; }
.client-shell { display: grid; grid-template-columns: 268px minmax(0, 1fr); min-height: calc(100vh - 64px); }
.client-sidebar { position: sticky; top: 64px; display: flex; flex-direction: column; gap: 3px; height: calc(100vh - 64px); overflow: auto; padding: 22px 16px; border-right: 1px solid var(--line); background: #fff; }
.client-space { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; padding: 6px 8px 20px; border-bottom: 1px solid var(--line); }
.client-space-mark { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: var(--r-lg); background: var(--blue-50); }
.client-space-mark .mark { width: 24px; height: 24px; }
.client-space b { display: block; color: var(--ink); font-size: 14.5px; }
.client-space span:not(.client-space-mark) { color: var(--mute); font-size: 12.5px; }
.client-label { padding: 16px 10px 6px; color: var(--dim); font: 500 16px var(--display); letter-spacing: .14em; }
.client-navigation { display: flex; flex-direction: column; gap: 2px; }
.client-nav { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r); color: #444; font-size: 14.5px; font-weight: 600; text-decoration: none !important; transition: background-color .2s, color .2s; }
.client-nav svg { flex: none; width: 19px; height: 19px; }
.client-nav:hover { background: var(--tint); color: var(--blue); }
.client-nav.selected { background: var(--blue-50); color: var(--blue); }
.client-nav.selected::before { content: ''; position: absolute; left: -16px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--blue); }
.client-sidebar-bottom { display: flex; flex-direction: column; gap: 14px; margin-top: auto; padding-top: 22px; }
.client-help { padding: 16px; border: 1px solid var(--blue-100); border-radius: var(--r-lg); background: var(--blue-50); }
.client-help b { color: var(--ink); font-size: 14px; }
.client-help p { margin-top: 6px; color: var(--soft); font-size: 13px; line-height: 1.5; }
.client-identity { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 4px 6px; }
.client-identity > div { min-width: 0; }
.client-avatar { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 600; }
.client-identity b { display: block; color: var(--ink); font-size: 14px; }
.client-identity span:not(.client-avatar) { display: block; overflow: hidden; color: var(--mute); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.client-signout { align-self: flex-start; margin-left: 6px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; color: var(--soft); font: 600 13.5px var(--body); cursor: pointer; }
.client-signout:hover { border-color: var(--blue); color: var(--blue); }
.client-content { width: 100%; max-width: 1180px; padding: clamp(22px, 3.4vw, 48px) clamp(16px, 3.4vw, 56px) 80px; }
.client-breadcrumb { display: flex; gap: 8px; color: var(--mute); font-size: 13px; }
.client-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 18px 0 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line-2); }
.client-eyebrow { margin: 0 0 8px; color: var(--blue); font: 500 17px var(--display); letter-spacing: .12em; }
.client-page-heading h1 { color: var(--ink); font: 300 clamp(40px, 5.4vw, 68px)/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.client-description { max-width: 60ch; margin-top: 12px; color: var(--soft); font-size: 16px; }
.client-notice { margin-bottom: 20px; padding: 12px 16px; border: 1px solid var(--blue-100); border-left: 4px solid var(--blue); border-radius: var(--r); background: #fff; color: var(--soft); font-size: 14px; }
.client-notice.is-error { border-color: #f0c9c4; border-left-color: var(--danger); background: var(--danger-soft); color: var(--text); }
.client-loading { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.client-loading div { height: 220px; border-radius: var(--r-lg); background: linear-gradient(100deg, #eef2f7 30%, #f8fafc 50%, #eef2f7 70%) 0 0 / 300% 100%; animation: shimmer 1.6s linear infinite; }
.client-auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: 0 30px 60px -48px rgba(23, 40, 70, .6); }
.client-auth-copy { position: relative; display: flex; flex-direction: column; gap: 20px; overflow: hidden; padding: clamp(26px, 4vw, 48px); background: var(--blue); color: #fff; }
.client-auth-copy::after { content: ''; position: absolute; right: -70px; bottom: -90px; width: 320px; height: 320px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%23ffffff' fill-opacity='.1' d='M128 16 24 214.5 128 173.5V138l-56 26 56-102.5zM128 16 232 214.5 128 173.5V138l56 26-56-102.5z'/%3E%3C/svg%3E") no-repeat center / contain; pointer-events: none; }
.client-auth-emblem svg { width: 40px; height: 40px; color: #fff; }
.client-auth-copy h2 { color: #fff; font: 300 clamp(38px, 4.2vw, 54px)/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.client-auth-copy > p { max-width: 42ch; color: #e3ecfb; }
.client-auth-copy ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .22); }
.client-auth-copy li { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .22); font-size: 15px; }
.client-auth-copy li svg { flex: none; width: 19px; height: 19px; }
.client-returning { position: relative; z-index: 1; margin-top: auto; padding-top: 6px; }
.client-returning b { font-size: 15px; }
.client-returning p { margin-top: 6px; color: #dbe6fa; font-size: 13.5px; }
.client-auth-forms { padding: clamp(24px, 4vw, 48px); }
.client-auth-forms .client-panel { padding: 0; border: 0; background: none; box-shadow: none; }
.client-form h2 { color: var(--ink); font: 400 36px var(--display); letter-spacing: .03em; text-transform: uppercase; }
.client-form h2 + p { margin-top: 4px; }
.client-form-note { color: var(--soft); font-size: 14px; }
.client-password { position: relative; display: flex; }
.client-password input { padding-right: 76px; }
.client-password button { position: absolute; right: 6px; top: 50%; padding: 7px 10px; border: 0; border-radius: var(--r); background: none; color: var(--blue); font: 600 13px var(--body); transform: translateY(-50%); cursor: pointer; }
.client-panel { display: flex; flex-direction: column; gap: 16px; padding: clamp(20px, 2.6vw, 30px); border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.client-panel-heading h2 { color: var(--ink); font: 400 29px var(--display); letter-spacing: .03em; text-transform: uppercase; }
.client-panel-heading p { margin-top: 4px; font-size: 14.5px; }
[data-library] > * + *, [data-product-dashboard] > * + *, [data-account-dashboard] > * + * { margin-top: 16px; }
.client-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 36px !important; }
.client-metrics > div { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.client-metrics span { display: block; color: var(--mute); font: 500 17px var(--display); letter-spacing: .1em; text-transform: uppercase; }
.client-metrics b { display: block; margin-top: 6px; color: var(--ink); font: 400 clamp(22px, 2.4vw, 30px)/1.1 var(--display); }
.client-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.client-section-heading h2 { color: var(--ink); font: 400 31px var(--display); letter-spacing: .03em; text-transform: uppercase; }
.client-inline-link { color: var(--blue); font-weight: 600; font-size: 14.5px; }
.client-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 16px; margin-bottom: 36px !important; }
.client-product-card { position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 280px; overflow: hidden; padding: 26px; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--r-lg); background: #fff; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.client-product-card::after { content: ''; position: absolute; right: -40px; bottom: -60px; width: 230px; height: 230px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%233874d8' fill-opacity='.06' d='M128 16 24 214.5 128 173.5V138l-56 26 56-102.5zM128 16 232 214.5 128 173.5V138l56 26-56-102.5z'/%3E%3C/svg%3E") no-repeat center / contain; pointer-events: none; transition: transform 1s var(--ease); }
.client-product-card:hover { transform: translateY(-3px); box-shadow: 0 26px 50px -36px rgba(23, 40, 70, .7); }
.client-product-card:hover::after { transform: rotate(-8deg) scale(1.06); }
.client-product-card > * { position: relative; z-index: 1; }
.client-product-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.client-product-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--r-lg); background: var(--blue); color: #fff; font: 700 21px var(--display); }
.client-product-card .client-eyebrow { margin: auto 0 0; color: var(--mute); }
.client-product-card h2 { color: var(--ink); font: 500 clamp(30px, 3vw, 38px)/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.client-product-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.client-status { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border: 1px solid var(--line-2); border-radius: 99px; color: var(--mute); font-size: 12px; font-weight: 600; white-space: nowrap; }
.client-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.client-status.is-active { border-color: #b9d6c4; background: var(--ok-soft); color: var(--ok); }
.client-status.is-pending { border-color: #ead3aa; background: var(--warn-soft); color: var(--warn); }
.client-bottom-grid, .client-product-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.client-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.client-detail { padding: 14px 16px 0 0; }
.client-detail dt { color: var(--mute); font-size: 13px; font-weight: 600; }
.client-detail dd { margin: 4px 0 0; color: var(--ink); font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.client-access-panel { position: relative; }
.client-access-brand { position: absolute; top: clamp(20px, 2.6vw, 30px); right: clamp(20px, 2.6vw, 30px); display: flex; align-items: center; gap: 12px; }
.client-access-brand .client-product-mark { width: 38px; height: 38px; font-size: 17px; }
.client-access-panel .client-panel-heading { padding-right: 160px; }
.client-access-note { padding: 16px; border-radius: var(--r); background: var(--blue-50); }
.client-access-note p { margin-top: 6px; }
.client-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.client-release { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--tint); }
.client-release p { margin-top: 2px; }
.client-platform { padding: 7px 10px; border-radius: var(--r); background: var(--blue); color: #fff; font: 500 16px var(--display); letter-spacing: .08em; text-transform: uppercase; }
.client-preview-note { color: var(--warn); font-size: 13.5px; }
.client-setup-steps { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; counter-reset: step; }
.client-setup-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: start; color: var(--soft); font-size: 14.5px; counter-increment: step; }
.client-setup-steps li::before { content: counter(step); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--blue-50); color: var(--blue); font-size: 12.5px; font-weight: 600; }
.client-code-wrap { display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px; border-radius: var(--r); background: #1c2633; color: #e8eef8; }
.client-code { flex: 1; min-width: 0; font: 500 14.5px/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.client-copy { flex: none; padding: 6px 11px; border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--r); background: none; color: #fff; font: 600 12px var(--body); cursor: pointer; }
.client-copy:hover { border-color: var(--blue-light); color: var(--blue-light); }
.client-device, .client-member { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.client-device b, .client-member b { color: var(--ink); font-size: 15.5px; }
.client-device p, .client-member p { margin-top: 2px; }
.client-capacity { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; padding: 14px 16px; border-radius: var(--r); background: var(--blue-50); }
.client-capacity b { color: var(--ink); font: 400 21px var(--display); }
.client-invite { flex-direction: row !important; align-items: flex-end; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.client-invite .field { flex: 1; }
.client-invitation { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--blue-100); border-radius: var(--r); background: var(--blue-50); }
.client-slot-note { color: var(--soft); font-size: 14px; }
.client-empty { padding: 20px; border: 1px dashed var(--line-2); border-radius: var(--r); background: #fcfdfe; }
.client-empty h3 { color: var(--ink); font: 400 23px var(--display); letter-spacing: .03em; text-transform: uppercase; }
.client-empty p { margin-top: 6px; font-size: 14px; }
.client-password-disclosure { border-top: 1px solid var(--line); }
.client-password-disclosure summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 14px 0; color: var(--ink); font-weight: 600; cursor: pointer; }
.client-password-disclosure summary::-webkit-details-marker { display: none; }
.client-password-disclosure summary::after { content: ''; width: 13px; height: 13px; background: linear-gradient(var(--blue), var(--blue)) center / 100% 2px no-repeat, linear-gradient(var(--blue), var(--blue)) center / 2px 100% no-repeat; transition: transform .45s var(--ease); }
.client-password-disclosure[open] summary::after { transform: rotate(135deg); }
.client-password-form { padding-bottom: 8px; }
.client-dialog { width: calc(100% - 32px); max-width: 480px; padding: 30px; border: 0; border-top: 4px solid var(--danger); border-radius: var(--r-lg); background: #fff; color: var(--text); box-shadow: 0 50px 120px rgba(0, 0, 0, .35); }
.client-dialog[open] { display: flex; flex-direction: column; gap: 14px; animation: player-in .4s var(--ease); }
.client-dialog::backdrop { background: rgba(14, 22, 36, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.client-dialog h2 { color: var(--ink); font: 400 34px var(--display); letter-spacing: .03em; text-transform: uppercase; }
.client-destruct-target { font: 600 15px var(--mono); }
.client-dialog-error { color: var(--danger); font-size: 14px; }
.client-destruct-confirm { display: flex; flex-direction: column; gap: 10px; }
.client-device-name { color: var(--ink); font: 400 26px var(--display); letter-spacing: .03em; }
.client-session-actions { display: flex; align-items: center; gap: 18px; margin-top: 16px; }
.client-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 18px 24px calc(18px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: #fff; color: var(--mute); font-size: 13.5px; }

/* ---------- Admin console ---------- */
body.admin { background: var(--tint); }
body.admin .nav { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: #fff; }
.nav-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; min-height: 68px; padding-block: 10px; }
body.admin .brand { gap: 10px; }
body.admin .brand::before { content: ''; width: 32px; height: 32px; background: url('/assets/logo.svg') no-repeat center / contain; }
body.admin .brand span { color: var(--ink); font: 700 28px var(--display); letter-spacing: .03em; text-transform: uppercase; }
body.admin .brand small { margin-left: 6px; padding: 4px 9px; border-radius: var(--r); background: var(--blue-100); color: var(--blue); font: 600 16px var(--display); letter-spacing: .06em; text-transform: uppercase; }
.nav-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-left: auto; }
.nav-links a { padding: 8px 2px; color: var(--ink); font: 600 19px var(--display); letter-spacing: .07em; text-transform: uppercase; }
.nav-links a:hover { color: var(--blue); text-decoration: none; }
.admin-main { display: flex; flex-direction: column; gap: 18px; padding-block: 34px 64px; }
.admin-main h1 { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--ink); font: 300 clamp(36px, 4vw, 52px) var(--display); letter-spacing: .02em; text-transform: uppercase; }
.admin-main h2 { color: var(--ink); font: 400 27px var(--display); letter-spacing: .03em; text-transform: uppercase; }
.admin-login { max-width: 440px; margin: 64px auto; border-top: 4px solid var(--blue); }
.panel { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.panel-inner { padding: 16px; border: 1px solid var(--line); border-radius: var(--r); }
.panel-inner legend { padding: 0 6px; color: var(--soft); font-size: 13px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border: 1px solid var(--line-2); border-radius: 99px; background: #fff; color: var(--soft); font-size: 13px; font-weight: 600; text-transform: capitalize; }
.chip:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.chip-on { border-color: var(--blue); background: var(--blue); color: #fff; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.stats div { display: flex; flex-direction: column; padding: 16px 18px; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: var(--r-lg); background: #fff; }
.stats span { color: var(--mute); font: 500 17px var(--display); letter-spacing: .08em; text-transform: uppercase; }
.stats b { margin-top: 4px; color: var(--ink); font: 400 30px var(--display); font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { background: var(--tint); color: var(--ink); font: 500 17px var(--display); letter-spacing: .08em; text-transform: uppercase; }
.table tbody tr:hover { background: var(--blue-50); }
.table td.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.table td.actions input { width: 76px; padding: 6px 8px; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.admin-grid .panel { display: flex; flex-direction: column; gap: 12px; }
.kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 12px; margin: 0; font-size: 14.5px; }
.kv dt { color: var(--mute); font-weight: 600; } .kv dd { margin: 0; overflow-wrap: anywhere; }
.pre { white-space: pre-wrap; }
.search { max-width: 560px; } .search input { flex: 1; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.product-form { max-width: 900px; }

/* ---------- Motion ---------- */
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes reveal { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes rp-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes rp-up { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes rp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rp-bar { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
@keyframes pulse { 50% { opacity: .3; } }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes shimmer { to { background-position: -300% 0; } }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@keyframes tick { 40% { transform: translateY(-3px); color: var(--blue); } }
@keyframes drift { from { translate: 0 0; } to { translate: 0 -14px; } }
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes nudge { 50% { transform: translateY(5px); } }
@keyframes player-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes title-in { from { opacity: 0; letter-spacing: .14em; } to { opacity: 1; letter-spacing: .01em; } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hp { animation: drift 9s ease-in-out infinite alternate; }
  .hp:nth-child(2n) { animation-duration: 12s; animation-delay: -3s; }
  .hp:nth-child(3n) { animation-duration: 15s; animation-delay: -6s; }
  .hero-title { animation: title-in 1.3s var(--ease) both; }
  .hero-tag { animation: rise-in 1s var(--ease) .25s both; }
  .hero-cta { animation: rise-in 1s var(--ease) .4s both; }
  .hero-facts { animation: rise-in 1s var(--ease) .55s both; }
  .hero-down .i { animation: nudge 2.2s ease-in-out infinite; }
  .page-head .wrap > * { animation: rise-in .8s var(--ease) both; }
  .page-head .wrap > :nth-child(2) { animation-delay: .05s; }
  .page-head .wrap > :nth-child(n+3) { animation-delay: .1s; }
  .client-content > * { animation: rise-in .7s var(--ease) both; }
  .client-content > :nth-child(n+2) { animation-delay: .06s; }
  .mast-menu[open] .mast-sheet a { animation: rise-in .5s var(--ease) both; }
  .mast-menu[open] .mast-sheet a:nth-child(n+3) { animation-delay: .04s; }
  .mast-menu[open] .mast-sheet a:nth-child(n+6) { animation-delay: .08s; }
  .faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .5s var(--ease), content-visibility .5s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
  @supports (animation-timeline: view()) {
    .rv { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 50%; }
  }
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: .2s ease both fade-out; }
  ::view-transition-new(root) { animation: .4s var(--ease) both rise-in; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .mast-nav { gap: 16px; }
  .mast-nav a { font-size: 18px; }
}
@media (max-width: 1060px) {
  .mast-nav, .mast-link { display: none; }
  .mast-menu { display: block; }
  .try-grid { grid-template-columns: 1fr; }
  .try-side { position: static; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .try-side .guide { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .try-side .guide li { grid-template-columns: 1fr; border-top: 1px solid var(--line); }
}
@media (max-width: 960px) {
  .what-grid, .buying, .product, .checkout { grid-template-columns: 1fr; }
  .how { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .how::before, .how::after { display: none; }
  .buy, .summary { position: static; }
  .buy { order: -1; }
  .client-shell { grid-template-columns: 1fr; }
  .client-sidebar { position: static; flex-direction: row; align-items: center; gap: 4px; height: auto; padding: 8px 12px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .client-sidebar::-webkit-scrollbar { display: none; }
  .client-space, .client-label, .client-help, .client-identity > div { display: none; }
  .client-navigation { display: contents; }
  .client-nav { flex: none; padding: 9px 12px; white-space: nowrap; }
  .client-nav.selected::before { left: 12px; right: 12px; top: auto; bottom: -8px; width: auto; height: 3px; border-radius: 3px 3px 0 0; }
  .client-sidebar-bottom { flex: none; flex-direction: row; align-items: center; gap: 6px; margin: 0 0 0 auto; padding: 0 0 0 12px; }
  .client-signout { margin: 0; }
  .client-auth-layout { grid-template-columns: 1fr; }
  .client-loading { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --mast-h: 64px; }
  .brand .mark { width: 30px; height: 30px; }
  .brand-word { font-size: 26px; }
  .br-desk { display: none; }
  .hero-cta { flex-direction: column; align-items: stretch; width: 100%; }
  .btn-hero { min-width: 0; width: 100%; }
  .hero-facts { flex-direction: column; align-items: center; gap: 8px; }
  .rp-body { grid-template-columns: 4.6em minmax(0, 1fr); min-height: 38em; }
  .rp-side { padding: 1.2em .6em; align-items: center; }
  .rp-side .rp-label, .rp-nav span, .rp-side-foot { display: none; }
  .rp-nav { justify-content: center; width: 3.2em; padding: 0; }
  .rp-main { padding: 1.6em 1.3em 1.8em; }
  .rp-fact { grid-template-columns: 9em minmax(0, 1fr); }
  .rp-explorer { left: 4%; width: 92%; }
  .rp-ex-body { grid-template-columns: 1fr; }
  .rp-ex-side { display: none; }
  .try-side { grid-template-columns: 1fr; }
  .try-side .guide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat, .bounds { grid-template-columns: 1fr; }
  .feat-item:nth-child(2) { border-top: 0; }
  .shelf-head { grid-template-columns: minmax(0, 1fr) auto; }
  .shelf-head p { grid-column: 1 / -1; grid-row: 2; }
  .ix-link { grid-template-columns: 30px minmax(0, 1fr) 40px; grid-template-areas: 'no main go' '. price price'; gap: 10px 14px; padding: 20px 4px; }
  .ix-link:hover, .ix-link:focus-visible { padding-inline: 12px; }
  .ix-no { grid-area: no; align-self: start; padding-top: 2px; }
  .ix-main { grid-area: main; }
  .ix-price { grid-area: price; text-align: left; }
  .ix-go { grid-area: go; align-self: start; width: 40px; height: 40px; }
  .cat-switch, .fact-list, .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-switch { grid-template-columns: 1fr; }
  .fact-list { grid-template-columns: 1fr; }
  .track { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
  .order-meta { grid-template-columns: 1fr; }
  .client-page-heading { flex-direction: column; align-items: flex-start; }
  .client-topbar-label { display: none; }
  .client-topbar { padding: 0 14px; }
  .client-store-link { padding: 8px 12px; font-size: 14px; }
  .client-metrics { grid-template-columns: 1fr; }
  .client-bottom-grid, .client-product-columns { grid-template-columns: 1fr; }
  .client-access-brand { position: static; }
  .client-access-panel .client-panel-heading { padding-right: 0; }
  .client-invite { flex-direction: column !important; align-items: stretch; }
  .nav-links { margin-left: 0; gap: 2px 14px; }
  .nav-links a { font-size: 17.5px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats b { font-size: 24px; }
  .hp { scale: .55; }
  .hp-3, .hp-7, .hp-8, .hp-5 { display: none; }
}
@media (max-width: 560px) {
  .dashboard-label { display: none; }
  .dashboard-label-short { display: inline; }
  .mast-dash { padding: 10px 14px; font-size: 18px; }
  .mast-actions { gap: 6px; }
  .brand-word { display: none; }
  .hero-title { font-size: clamp(60px, 19vw, 90px); }
  .hero-title .ht-thin { display: block; }
  .sec-title h2 { flex-direction: column; gap: 8px; }
  .try-side .guide { grid-template-columns: 1fr; gap: 0; }
  .try-side .guide li { grid-template-columns: 38px minmax(0, 1fr); border-top: 0; }
  .try-side .guide li:first-child { border-top: 1px solid var(--line); }
  .coins { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: minmax(0, 1fr) auto; }
  .cart-row .btn { grid-column: 1 / -1; justify-self: start; }
  .key-box { grid-template-columns: 1fr; }
  .key-box .btn { justify-self: start; }
  .buy { padding: 22px; }
  .sheet { padding: 20px; }
  .get-cta, .get-cta .btn { width: 100%; }
  .client-device, .client-member { flex-direction: column; align-items: flex-start; }
}

/* ---------- Announcement bar, admin content tools ---------- */
.announce { background: var(--blue); color: #fff; font-size: 14.5px; }
.announce .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; padding-block: 9px; text-align: center; }
.announce a { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
.announce a .i { width: 15px; height: 15px; }
.stats .stat-alert { border-top-color: #e0a53a; background: var(--warn-soft); }
.media-panel { gap: 14px; }
.media-preview { display: block; width: 100%; max-height: 320px; border-radius: var(--r); background: #0b111c; object-fit: contain; }
.upload { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.upload label { cursor: pointer; }
.upload-bar { width: 100%; height: 6px; overflow: hidden; border-radius: 6px; background: var(--line); }
.upload-bar i { display: block; width: 0; height: 100%; background: var(--blue); transition: width .2s; }
.audit-table td { font-size: 13.5px; }
.audit-table pre { max-width: 420px; max-height: 260px; overflow: auto; margin: 6px 0 0; padding: 10px; border-radius: var(--r); background: var(--tint); }
.table details summary { cursor: pointer; color: var(--blue); }
.table td.actions a.small { align-self: center; }
.admin-main .form > .btn:not(.btn-block) { align-self: flex-start; }
.checklist { display: grid; gap: 10px; margin: 0; padding-left: 20px; color: var(--soft); font-size: 14.5px; }
.checklist b { color: var(--ink); }


/* ---------- Admin shell: sidebar layout shared with the licence console ---------- */
body.admin { --ad-surface: #ffffff; --bg: #f5f7fb; --tint: #eef2f7; background: var(--bg); color: var(--text); }
.ad-shell { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; }
.ad-side { position: sticky; top: 0; display: flex; flex-direction: column; gap: 24px; height: 100vh; overflow-y: auto; padding: 20px 12px; border-right: 1px solid var(--line); background: var(--ad-surface); }
.ad-brand { display: flex; align-items: center; gap: 10px; padding: 0 12px; color: var(--ink); text-decoration: none !important; }
.ad-mark { flex: none; width: 26px; height: 26px; }
.ad-mark .mk-l { fill: var(--blue-light); } .ad-mark .mk-r { fill: var(--blue); }
.ad-brand span { font: 400 1.55rem/1 var(--display); letter-spacing: .03em; text-transform: uppercase; }
.ad-brand b { font-weight: 600; }
.ad-brand small { margin-left: 2px; padding: 3px 7px; border-radius: var(--r); background: var(--blue-100); color: var(--blue-700); font: 600 .85rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.ad-nav { display: flex; flex: 1; flex-direction: column; gap: 22px; }
.ad-group { display: flex; flex-direction: column; gap: 2px; }
.ad-label { margin: 0 0 6px; padding: 0 12px; color: var(--mute); font: 600 .98rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.ad-link { position: relative; padding: 8px 12px; border-radius: 6px; color: var(--soft); font-size: 14.5px; font-weight: 600; text-decoration: none !important; transition: background-color .15s, color .15s; }
.ad-link:hover { background: var(--blue-50); color: var(--blue); }
.ad-link.is-on { background: var(--blue-100); color: var(--blue-700); }
.ad-link.is-on::before { content: ''; position: absolute; left: -12px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--blue); }
.ad-foot { display: grid; gap: 12px; padding: 14px 12px 0; border-top: 1px solid var(--line); }
.ad-who { display: grid; gap: 6px; margin: 0; }
.ad-who b { overflow: hidden; color: var(--ink); font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.ad-role { justify-self: start; padding: 2px 9px; border: 1px solid var(--line-2); border-radius: 99px; color: var(--soft); font-size: 12px; font-weight: 600; }
.ad-theme { display: inline-flex; justify-self: start; padding: 2px; border: 1px solid var(--line); border-radius: 6px; background: var(--tint); }
.ad-theme button { padding: 3px 9px; border: 0; border-radius: 4px; background: none; color: var(--mute); font: 600 12px var(--body); cursor: pointer; }
.ad-theme button[aria-checked='true'] { background: var(--ad-surface); color: var(--ink); box-shadow: 0 1px 2px rgba(20, 40, 80, .12); }
.ad-signout { justify-self: start; padding: 4px 0; border: 0; background: none; color: var(--ink); font: 600 14px var(--body); text-decoration: none; cursor: pointer; }
.ad-signout:hover { color: var(--blue); text-decoration: none; }
.ad-body { min-width: 0; }
.ad-top { display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--ad-surface); }
.ad-top-plain { display: flex; }
.ad-menu summary { list-style: none; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; }
.ad-menu summary::-webkit-details-marker { display: none; }
.ad-sheet { position: absolute; left: 0; right: 0; z-index: 40; display: grid; gap: 20px; max-height: calc(100dvh - 60px); overflow-y: auto; padding: 18px 16px 24px; border-bottom: 1px solid var(--line); background: var(--ad-surface); box-shadow: 0 20px 40px -24px rgba(20, 40, 80, .5); }
body.admin .admin-main { width: 100%; max-width: 1240px; margin: 0; padding: 36px clamp(16px, 4vw, 52px) 72px; }
body.admin .admin-main-plain { margin: 0 auto; }
@media (max-width: 1023px) {
  .ad-shell { grid-template-columns: 1fr; }
  .ad-side { display: none; }
  .ad-top { position: sticky; top: 0; z-index: 30; display: flex; }
  body.admin .admin-main { padding-top: 24px; }
}

/* Dark theme: follows the console's choice (localStorage nv.theme on this host) or the system. */
html[data-theme='dark'] body.admin { --bg: #0e131b; --tint: #0a0e14; --text: #edf1f7; --ink: #edf1f7; --soft: #c3cad6; --mute: #97a2b3; --dim: #6a788c;
  --line: #253041; --line-2: #33415a; --blue: #7ea7ee; --blue-600: #9cbcf3; --blue-700: #b4cdf6; --blue-50: #142033; --blue-100: #1c2b46; --blue-200: #24375a;
  --ok: #8cc7a6; --ok-soft: #1c2c23; --warn: #e0b76e; --warn-soft: #302617; --danger: #ec9a90; --danger-soft: #34201e; --ad-surface: #151c27;
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23edf1f7' stroke-width='1.6'/%3E%3C/svg%3E");
  color-scheme: dark; }
html[data-theme='dark'] body.admin :is(.panel, .stats div, .table-wrap, .chip, .btn-ghost, input, select, textarea, .sheet, .empty, .media-panel) { background-color: var(--ad-surface); }
html[data-theme='dark'] body.admin .btn-primary, html[data-theme='dark'] body.admin .chip-on { color: #0b1220; }
html[data-theme='dark'] body.admin .alert { color: var(--text); }
html[data-theme='dark'] body.admin .media-preview { background: #05080d; }
html[data-theme='dark'] body.admin .stats .stat-alert { background: var(--warn-soft); }
@media (prefers-color-scheme: dark) {
  html:not([data-theme='light']) body.admin { --bg: #0e131b; --tint: #0a0e14; --text: #edf1f7; --ink: #edf1f7; --soft: #c3cad6; --mute: #97a2b3; --dim: #6a788c;
    --line: #253041; --line-2: #33415a; --blue: #7ea7ee; --blue-600: #9cbcf3; --blue-700: #b4cdf6; --blue-50: #142033; --blue-100: #1c2b46; --blue-200: #24375a;
    --ok: #8cc7a6; --ok-soft: #1c2c23; --warn: #e0b76e; --warn-soft: #302617; --danger: #ec9a90; --danger-soft: #34201e; --ad-surface: #151c27;
    --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23edf1f7' stroke-width='1.6'/%3E%3C/svg%3E");
    color-scheme: dark; }
  html:not([data-theme='light']) body.admin :is(.panel, .stats div, .table-wrap, .chip, .btn-ghost, input, select, textarea, .sheet, .empty, .media-panel) { background-color: var(--ad-surface); }
  html:not([data-theme='light']) body.admin .btn-primary, html:not([data-theme='light']) body.admin .chip-on { color: #0b1220; }
  html:not([data-theme='light']) body.admin .alert { color: var(--text); }
  html:not([data-theme='light']) body.admin .media-preview { background: #05080d; }
  html:not([data-theme='light']) body.admin .stats .stat-alert { background: var(--warn-soft); }
}
.ad-sheet { top: 100%; }
.ad-brand { white-space: nowrap; }
.ad-brand span { font-size: 1.45rem; }
.ad-brand small { padding: 3px 6px; font-size: .78rem; }
html[data-theme='dark'] body.admin .chip-on { background-color: var(--blue); }
@media (prefers-color-scheme: dark) { html:not([data-theme='light']) body.admin .chip-on { background-color: var(--blue); } }
