/* Beyond the Wire: public pages (home, order, status, legal, 404).
   One stylesheet for the whole public site. The panel (/panel/) keeps app.css + btw-theme.css.
   Colors and fonts must match brand/tokens.json (checked by brand/check-tokens.mjs). */

@font-face { font-family: 'Sora'; font-style: normal; font-weight: 100 800; font-display: swap; src: url('/fonts/sora-latin-wght-normal.woff2') format('woff2-variations'), url('/fonts/sora-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('/fonts/manrope-latin-wght-normal.woff2') format('woff2-variations'), url('/fonts/manrope-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  --bg: #0a1120;
  --surface: #111a2c;
  --inset: #0d1526;
  --line: #26344d;
  --text: #f3ead8;
  --muted: #a39c8f;
  --red: #ef4444;
  --on-red: #0a1120;
  --red-deep-fg: #fca5a5;
  --red-deep-bg: #450a0a;
  --ok: #4ade80;
  --maint: #f59e0b;
  --off: #8b93a3;
  --term-bg: #070c17;
  --term-text: #d9e1ee;
  --on-photo-muted: #a39c8f;
  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --glass: rgba(10, 17, 32, 0.72);
  --tint: rgba(243, 234, 216, 0.04);
  --tint-2: rgba(243, 234, 216, 0.08);
  --red-tint: rgba(239, 68, 68, 0.12);
  --btn-fill: #c81e1e;           /* solid crimson button, cream text 5.4:1 */
  --btn-fill-hover: #b01818;
  --on-btn: #fff8ee;
  --shadow: 0 1px 0 rgba(255,255,255,0.02), 0 12px 32px -18px rgba(0,0,0,0.7);
  --shadow-float: 0 30px 80px -30px rgba(0,0,0,0.75);
  --scrim: linear-gradient(180deg, rgba(10,17,32,0.45) 0%, rgba(10,17,32,0.55) 45%, #0a1120 100%);

  --gutter: clamp(20px, 5vw, 112px);
  --section: clamp(88px, 10vw, 176px);
  --max: 1920px;
  --read: 1240px;
  --r-sm: 8px; --r-control: 10px; --r-panel: 14px; --r-big: 28px; --r-pill: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f6f0e4;
  --surface: #fbf7ef;
  --inset: #f1e9da;
  --line: #dccfb8;
  --text: #0b1526;
  --muted: #5f5a52;
  --red: #dc2626;
  --on-red: #fff8ee;
  --red-deep-fg: #991b1b;
  --red-deep-bg: #991b1b1f;
  --ok: #15803d;
  --maint: #b45309;
  --off: #6b7280;
  --term-bg: #0b1526;
  --term-text: #e8eef8;
  --on-photo-muted: #3d3933;

  --glass: rgba(246, 240, 228, 0.78);
  --tint: rgba(11, 21, 38, 0.035);
  --tint-2: rgba(11, 21, 38, 0.07);
  --red-tint: rgba(220, 38, 38, 0.09);
  --shadow: 0 1px 0 rgba(255,255,255,0.6), 0 12px 28px -20px rgba(60,40,10,0.35);
  --shadow-float: 0 30px 70px -34px rgba(60,40,10,0.45);
  --scrim: linear-gradient(180deg, rgba(246,240,228,0.55) 0%, rgba(246,240,228,0.7) 45%, #f6f0e4 100%);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
@media (max-width: 1100px) { body { font-size: 16px; } }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; margin: 0; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.1em; height: 1.1em; flex: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--btn-fill); color: var(--on-btn); padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }
::selection { background: var(--red); color: var(--on-red); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.read { max-width: var(--read); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section.tight { padding-top: 0; }
/* Small labels stay muted (red text under 24px fails contrast on light bg); a red mark carries the accent. */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 14px/1.4 var(--font-body); color: var(--muted); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 1px; background: var(--red); }
.h-xl { font-size: clamp(48px, 7.4vw, 148px); letter-spacing: -0.045em; line-height: 0.98; }
.h-lg { font-size: clamp(36px, 4.8vw, 92px); letter-spacing: -0.04em; line-height: 1.02; }
.h-md { font-size: clamp(28px, 3vw, 56px); }
.lede { font-size: clamp(18px, 1.45vw, 26px); line-height: 1.5; color: var(--muted); max-width: 46ch; }
.center { text-align: center; margin-inline: auto; }
.center .lede { margin-inline: auto; }
.sec-head { margin-bottom: clamp(40px, 5vw, 88px); }
.sec-head .lede { margin-top: 20px; }
.grad { background: linear-gradient(100deg, var(--text) 10%, var(--red) 75%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn { --h: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--h); padding: 0 22px; border-radius: var(--r-pill); border: 1px solid transparent; font: 600 15px/1.2 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--btn-fill); color: var(--on-btn); }
.btn-primary:hover { background: var(--btn-fill-hover); }
.btn-ghost { background: var(--tint); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--tint-2); }
.btn-lg { --h: 56px; padding: 0 30px; font-size: 17px; }
.btn-sm { --h: 36px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.link { color: var(--red); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Nav (one header for every public page) ---------- */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); view-transition-name: site-nav; transition: background-color .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.scrolled, .nav.open { background: var(--glass); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); border-bottom-color: var(--line); }
.nav-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.nav-brand { display: flex; align-items: center; flex: none; }
.nav-brand img { height: 48px; width: auto; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a, .nav-login { padding: 8px 14px; border-radius: var(--r-pill); text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); transition: color .2s, background-color .2s; }
.nav-links a:hover, .nav-login:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--tint); }
.nav-end { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-pill); border: 0; background: transparent; color: var(--muted); cursor: pointer; transition: background-color .2s, color .2s; }
.icon-btn:hover { background: var(--tint); color: var(--text); }
.theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }
.logo-light { display: none !important; }
:root[data-theme="light"] .logo-light { display: block !important; }
:root[data-theme="light"] .logo-dark { display: none !important; }
.nav-menu { display: none; }
.nav-links .sheet-only { display: none; }
@media (max-width: 900px) {
  .nav-links, .nav-login { display: none; }
  .nav-menu { display: grid; }
  .nav-end { margin-left: auto; }
  .nav.open .nav-links { display: flex; position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; gap: 0; padding: 12px var(--gutter) 28px; background: var(--glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); animation: drop .3s var(--ease); }
  .nav.open .nav-links .sheet-only { display: block; }
  .nav.open .nav-links a { font-size: 22px; font-family: var(--font-head); color: var(--text); padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--line); background: none; }
  .nav-brand img { height: 40px; }
}
@media (max-width: 420px) { .nav-end .btn { display: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; margin-top: calc(var(--nav-h) * -1); padding-top: var(--nav-h); overflow: clip; isolation: isolate; }
/* Living island scene behind the finale (drawn by world/scenes.js; pixel-crisp at 1x). */
.finale-world { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }
.hero-inner { padding-block: clamp(64px, 10vh, 140px) clamp(220px, 34vh, 380px); text-align: center; }
.hero-proof { margin-top: 18px; font: 500 14px/1.4 var(--font-mono); color: var(--muted); }
.hero-proof b { color: var(--text); font-weight: 600; }

/* Story: a sticky stage while the island settles onto our rack, then onto the map. */
.world-story { position: relative; height: 300vh; }
.ws-sticky { position: sticky; top: 0; height: 100svh; overflow: clip; display: grid; align-items: end; }
.ws-canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.ws-stages { position: relative; padding: 0 var(--gutter, clamp(16px, 5vw, 112px)) clamp(32px, 8vh, 96px); display: grid; }
.ws-stage { grid-area: 1 / 1; max-width: 440px; padding: 22px 24px; border-radius: var(--r-panel, 14px); border: 1px solid var(--line); opacity: 0; transform: translateY(16px); transition: opacity var(--t-base) var(--ease-out), transform var(--t-slow) var(--ease-snap); }
.ws-stage.on { opacity: 1; transform: none; }
.ws-stage h2 { margin: 8px 0 6px; }
.ws-stage p { margin: 0; color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  .world-story { height: auto; }
  .ws-sticky { position: relative; height: auto; display: block; }
  .ws-canvas { position: relative; height: 60vh; }
  .ws-stages { gap: 16px; padding-top: 16px; }
  .ws-stage { grid-area: auto; opacity: 1; transform: none; }
}
.hero h1 { margin: 22px auto 0; max-width: 14ch; }
.hero .lede { margin: 28px auto 0; color: var(--on-photo-muted); max-width: 40ch; }
:root:not([data-theme="light"]) .hero .lede { color: color-mix(in srgb, var(--text) 82%, var(--muted)); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 40px; }
.hero-fine { margin-top: 26px; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.hero-fine span { display: inline-flex; align-items: center; gap: 6px; }
.hero-fine .icon { color: var(--ok); width: 16px; height: 16px; }
/* Filmed hero: a short loop per theme and shape (site.js picks it). The still below shows first, and stays under "reduce motion". */
.hero-film { position: absolute; inset: 0; z-index: -1; background: #020a1c url(/assets/film/wide-night-poster.jpg) 70% 50% / cover no-repeat; -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); pointer-events: none; }
:root[data-theme="light"] .hero-film { background-image: url(/assets/film/wide-day-poster.jpg); background-color: #a9cbf2; }
.hero-film::after { content: ""; position: absolute; inset: 0 0 auto; height: 150px; background: linear-gradient(color-mix(in srgb, #020a1c 85%, transparent), transparent); }
:root[data-theme="light"] .hero-film::after { background: linear-gradient(color-mix(in srgb, #a9cbf2 85%, transparent), transparent); }
.hero-film video { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; display: block; opacity: 0; transition: opacity var(--t-slow) var(--ease-out); }
.hero-film video.on { opacity: 1; }
:root[data-theme="light"] .hero .lede, :root[data-theme="light"] .hero-fine { color: #22304a; }
@media (min-width: 1000px) {
  .hero-inner { text-align: left; padding-block: clamp(64px, 10vh, 140px); }
  .hero .hero-inner > h1, .hero .hero-inner > .lede { margin-inline: 0; }
  .hero h1 { max-width: 9ch; }
  .hero .lede { max-width: 34ch; }
  .hero .hero-cta, .hero .hero-fine { justify-content: flex-start; max-width: 46%; }
}
@media (max-width: 999px) {
  .hero { align-items: start; }
  .hero-inner { padding-block: clamp(28px, 5vh, 64px) min(142vw, 800px); }
  .hero-film { inset: auto 0 0; margin-inline: auto; width: min(100%, 560px); aspect-ratio: 9 / 16; background-color: transparent; background-image: url(/assets/film/phone-night-poster.jpg); background-position: 50% 50%;
    -webkit-mask-image: linear-gradient(transparent 12%, #000 34% 84%, transparent); mask-image: linear-gradient(transparent 12%, #000 34% 84%, transparent); }
  :root[data-theme="light"] .hero-film { background-image: url(/assets/film/phone-day-poster.jpg); background-color: transparent; }
  .hero-film video { object-position: 50% 50%; }
  .hero-film::after { content: none; }
}
@media (min-width: 561px) and (max-width: 999px) {
  .hero-film { -webkit-mask-image: linear-gradient(transparent 12%, #000 34% 84%, transparent), linear-gradient(90deg, transparent, #000 18% 82%, transparent); mask-image: linear-gradient(transparent 12%, #000 34% 84%, transparent), linear-gradient(90deg, transparent, #000 18% 82%, transparent); -webkit-mask-composite: source-in; mask-composite: intersect; }
}
.hero-scroll { position: absolute; left: 50%; bottom: 28px; translate: -50% 0; width: 26px; height: 42px; border: 2px solid var(--line); border-radius: 14px; }
.hero-scroll::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--muted); animation: wheel 2s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

.live-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: var(--r-pill); background: var(--glass); border: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 14px; font-weight: 600; text-decoration: none; color: var(--text); transition: border-color .2s; }
.live-pill:hover { border-color: var(--muted); }
.live-pill .icon { width: 14px; height: 14px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--off); flex: none; position: relative; }
.dot.ok { background: var(--ok); } .dot.maint { background: var(--maint); } .dot.off { background: var(--off); }
.dot.ok::after, .dot.ping::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; color: var(--ok); opacity: 0; animation: ping 2.4s var(--ease) infinite; }
.dot.maint::after { color: var(--maint); }
.dot.off::after { color: var(--off); }
.dot.no-ping::after { display: none; }
@keyframes ping { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }

/* Word-by-word headline entrance */
.split .w { display: inline-block; opacity: 0; transform: translateY(0.2em); animation: word .45s var(--ease) forwards; animation-delay: calc(var(--w) * 40ms + 60ms); }
@keyframes word { to { opacity: 1; transform: none; } }
.rise { opacity: 0; transform: translateY(9px); animation: rise .45s var(--ease) forwards; animation-delay: calc(var(--d, 0ms) / 2); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Scroll-driven hero: the copy lifts away as you scroll (where supported); the island dims to night in scenes.js. */
@supports (animation-timeline: scroll()) {
  .hero-inner { animation: hero-lift linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
  @keyframes hero-lift { to { transform: translateY(-12vh); opacity: 0; } }
}

/* ---------- Reveal on scroll (JS adds .in) ---------- */
/* Hover lift uses `translate`, so it never fights the reveal's `transform`. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .45s var(--ease) calc(var(--i, 0) * 45ms), transform .45s var(--ease) calc(var(--i, 0) * 45ms), translate .4s var(--ease), border-color .3s; }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-scale { opacity: 0; transform: scale(.94); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.js .reveal-scale.in { opacity: 1; transform: none; }

/* ---------- Story: the panel builds itself as you scroll ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 120px); align-items: start; }
.story-steps { padding-block: 6vh 8vh; }
.story-step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .5s var(--ease); }
.story-step.active { opacity: 1; }
.story-step .n { font: 500 14px var(--font-mono); color: var(--muted); margin-bottom: 14px; }
.story-step h3 { font-size: clamp(30px, 3.4vw, 60px); letter-spacing: -0.035em; }
.story-step p { margin-top: 18px; font-size: clamp(17px, 1.3vw, 21px); color: var(--muted); max-width: 34ch; }
.story-stage { position: sticky; top: calc(var(--nav-h) + 6vh); height: calc(88vh - var(--nav-h)); display: grid; place-items: center; }

.device { width: 100%; max-width: 760px; border-radius: var(--r-big); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-float); overflow: hidden; position: relative; }
.device::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(120% 60% at 50% -10%, var(--red-tint), transparent 60%); }
.dv-top { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.dv-mark { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--red-tint); color: var(--red); font: 600 18px var(--font-head); }
.dv-name { font: 600 17px var(--font-head); letter-spacing: -0.02em; }
.dv-sub { font: 400 13px var(--font-mono); color: var(--muted); }
.dv-state { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: var(--r-pill); background: var(--tint); transition: color .4s; }
.dv-tabs { display: flex; gap: 4px; padding: 10px 22px 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.dv-tabs span { padding: 8px 12px; border-bottom: 2px solid transparent; transition: color .3s, border-color .3s; }
.dv-body { position: relative; height: clamp(300px, 40vh, 420px); }
.dv-screen { position: absolute; inset: 0; padding: 22px; opacity: 0; transform: translateY(7px) scale(.98); transition: opacity .3s var(--ease), transform .35s var(--ease); pointer-events: none; }
.device[data-step="1"] .s1, .device[data-step="2"] .s2, .device[data-step="3"] .s3 { opacity: 1; transform: none; }
.device[data-step="1"] .t1, .device[data-step="2"] .t2, .device[data-step="3"] .t3 { color: var(--text); border-color: var(--red); }

.dv-search { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-control); background: var(--inset); border: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.dv-search b { color: var(--text); font-weight: 500; }
.dv-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.dv-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-control); border: 1px solid var(--line); background: var(--bg); font-size: 14px; }
.dv-list .ico { width: 34px; height: 34px; border-radius: 8px; background: var(--tint-2); display: grid; place-items: center; font: 600 13px var(--font-head); }
.dv-list .meta { display: flex; flex-direction: column; line-height: 1.3; }
.dv-list .meta small { color: var(--muted); font-size: 12px; }
.dv-list .act { margin-left: auto; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: var(--r-pill); background: var(--btn-fill); color: var(--on-btn); }
.dv-list .act.done { background: transparent; color: var(--ok); padding-inline: 0; }
.dv-list .auto { border-style: dashed; }
.device[data-step="1"] .s1 .dv-list li { animation: slot .3s var(--ease) both; animation-delay: calc(var(--k) * 70ms + 120ms); }
@keyframes slot { from { opacity: 0; transform: translateY(5px); } }

.dv-console { height: 100%; border-radius: var(--r-control); background: var(--term-bg); color: var(--term-text); font: 400 13px/1.75 var(--font-mono); padding: 16px 18px; overflow: hidden; }
.dv-console span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv-console .ok { color: #4ade80; } .dv-console .dim { color: #7b8699; } .dv-console .warn { color: #fbbf24; } .dv-console .bad { color: #f87171; }
.device[data-step="2"] .s2 .dv-console span, .device[data-step="3"] .s3 .dv-console span { opacity: 0; animation: line .3s ease forwards; animation-delay: calc(var(--k) * 260ms + 200ms); }
@keyframes line { to { opacity: 1; } }

.dv-timeline { display: grid; gap: 12px; margin-top: 16px; }
.dv-ev { display: flex; align-items: center; gap: 12px; font-size: 14px; padding: 12px 14px; border-radius: var(--r-control); border: 1px solid var(--line); background: var(--bg); }
.dv-ev time { margin-left: auto; font: 400 12px var(--font-mono); color: var(--muted); }
.device[data-step="3"] .s3 .dv-ev { animation: slot .6s var(--ease) both; animation-delay: calc(var(--k) * 500ms + 300ms); }
.dv-ev .dot { width: 10px; height: 10px; }
.dv-ev .dot.bad { background: var(--off); }

@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; }
  .story-stage { position: sticky; top: calc(var(--nav-h) + 8px); height: auto; z-index: 2; order: -1; padding-bottom: 8px; background: linear-gradient(var(--bg) 85%, transparent); }
  .dv-body { height: 168px; }
  .dv-screen { padding: 12px; }
  .dv-top { padding: 12px 14px; }
  .dv-mark { width: 32px; height: 32px; }
  .dv-search, .dv-list li:nth-child(3) { display: none; }
  .dv-list { margin-top: 0; gap: 8px; }
  .dv-list li { padding: 8px 10px; }
  .dv-console { font-size: 11px; line-height: 1.6; padding: 10px 12px; }
  .dv-timeline { margin-top: 0; gap: 8px; }
  .dv-ev { padding: 9px 12px; font-size: 13px; }
  .dv-tabs { display: none; }
  .story-steps { padding-block: 0 10vh; }
  .story-step { min-height: 60vh; }
}

/* ---------- Numbers ---------- */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.num { padding: clamp(32px, 4vw, 64px) clamp(16px, 2vw, 40px); border-left: 1px solid var(--line); }
.num:first-child { border-left: 0; padding-left: 0; }
.num b { display: block; font: 600 clamp(44px, 5.4vw, 104px)/1 var(--font-head); letter-spacing: -0.05em; }
.num b small { font-size: .42em; letter-spacing: -0.02em; color: var(--muted); margin-left: 4px; }
.num > span { display: block; margin-top: 14px; color: var(--muted); font-size: clamp(15px, 1.1vw, 18px); max-width: 22ch; }
@media (max-width: 900px) { .numbers { grid-template-columns: 1fr 1fr; } .num:nth-child(3) { border-left: 0; padding-left: 0; } .num:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(14px, 1.4vw, 24px); }
.tile { --mx: 50%; --my: 0%; position: relative; grid-column: span 2; min-height: 340px; padding: clamp(26px, 2.4vw, 44px); border-radius: var(--r-big); background: var(--surface); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; isolation: isolate; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; background: radial-gradient(500px circle at var(--mx) var(--my), var(--red-tint), transparent 45%); }
.tile:hover::before { opacity: 1; }
.tile.wide { grid-column: span 4; }
.tile.half { grid-column: span 3; }
.tile .k { font-size: 14px; font-weight: 600; color: var(--muted); }
.tile h3 { margin-top: 12px; font-size: clamp(26px, 2.2vw, 40px); letter-spacing: -0.035em; }
.tile p { margin-top: 14px; color: var(--muted); max-width: 40ch; }
.tile .art { margin-top: auto; padding-top: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--bg); font-size: 14px; font-weight: 600; }
.chip.on { border-color: var(--red); color: var(--red); background: var(--red-tint); }
.big-glyph { font: 600 clamp(64px, 7vw, 132px)/0.9 var(--font-head); letter-spacing: -0.06em; }
.ticket { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-control); border: 1px solid var(--line); background: var(--bg); font-size: 14px; }
.ticket + .ticket { margin-top: 8px; }
.ticket .sev { font: 500 12px var(--font-mono); padding: 3px 8px; border-radius: 6px; background: var(--tint-2); color: var(--muted); }
.ticket.urgent .sev { background: var(--red-tint); color: var(--red); }
.ticket .when { margin-left: auto; color: var(--muted); font-size: 12px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; }
.bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--tint-2); height: var(--h); transform-origin: bottom; }
.bars i.hl { background: var(--red); }
.in .bars i { animation: grow 1s var(--ease) both; animation-delay: calc(var(--k) * 80ms + 200ms); }
@keyframes grow { from { transform: scaleY(0); } }
@media (max-width: 1100px) { .tile, .tile.wide, .tile.half { grid-column: span 3; } }
@media (max-width: 700px) { .bento { grid-template-columns: 1fr; } .tile, .tile.wide, .tile.half { grid-column: auto; min-height: 0; } }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.4vw, 24px); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: clamp(26px, 2.2vw, 40px); border-radius: var(--r-big); background: var(--surface); border: 1px solid var(--line); transition: translate .4s var(--ease), border-color .3s; }
.plan:hover { translate: 0 -6px; }
.plan.featured { border-color: var(--red); background: linear-gradient(180deg, var(--red-tint), var(--surface) 55%); }
.plan .tag { align-self: flex-start; margin-bottom: 14px; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: var(--r-pill); background: var(--btn-fill); color: var(--on-btn); }
.plan h3 { font-size: 24px; }
.plan .for { margin-top: 6px; color: var(--muted); font-size: 15px; }
.price { display: flex; align-items: baseline; gap: 4px; margin: 26px 0 4px; }
.price b { font: 600 clamp(48px, 4.2vw, 76px)/1 var(--font-head); letter-spacing: -0.05em; }
.price span { color: var(--muted); }
.specs { display: flex; gap: 22px; margin: 18px 0 22px; padding: 16px 0; border-block: 1px solid var(--line); }
.specs div { display: flex; flex-direction: column; }
.specs strong { font: 600 22px var(--font-head); letter-spacing: -0.02em; }
.specs small { color: var(--muted); font-size: 13px; }
.ticks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; font-size: 15px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .icon { color: var(--ok); margin-top: 3px; width: 16px; height: 16px; }
.plan .btn { margin-top: auto; }
.addons { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.4vw, 24px); margin-top: clamp(14px, 1.4vw, 24px); }
.addon-card { padding: 26px 28px; border-radius: var(--r-panel); border: 1px solid var(--line); background: var(--tint); }
.addon-card .row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.addon-card h4 { font-size: 19px; letter-spacing: -0.02em; }
.addon-card .amt { font: 600 18px var(--font-head); color: var(--text); white-space: nowrap; }
.addon-card p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.founding { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 28px; border-radius: var(--r-panel); border: 1px dashed var(--red); background: var(--red-tint); }
.founding p { max-width: 70ch; }
details.all-prices { margin-top: 24px; border-radius: var(--r-panel); border: 1px solid var(--line); background: var(--surface); }
details.all-prices summary { cursor: pointer; padding: 20px 26px; font-weight: 600; list-style: none; display: flex; align-items: center; justify-content: space-between; }
details.all-prices summary::-webkit-details-marker { display: none; }
.table-box { overflow-x: auto; padding: 0 26px 22px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
th, td { padding: 14px 12px; text-align: left; border-bottom: 1px solid var(--line); }
thead th { font-size: 12px; font-weight: 600; color: var(--muted); }
tbody th { font-weight: 600; }
td small { display: block; color: var(--muted); font: 400 12px var(--font-mono); }
@media (max-width: 1200px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .plans, .addons { grid-template-columns: 1fr; } }

/* ---------- Compare ---------- */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.4vw, 24px); }
.vs-col { padding: clamp(28px, 3vw, 56px); border-radius: var(--r-big); border: 1px solid var(--line); }
.vs-col.them { background: var(--tint); }
.vs-col.us { background: var(--surface); border-color: var(--red); }
.vs-col h3 { font-size: clamp(22px, 1.8vw, 30px); margin-bottom: 26px; }
.vs-col.them h3 { color: var(--muted); }
.vs-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.vs-list li { padding: 18px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 130px 1fr; gap: 16px; font-size: 16px; }
.vs-list li b { font-size: 13px; color: var(--muted); font-weight: 600; padding-top: 2px; }
.them .vs-list span { color: var(--muted); text-decoration: line-through; text-decoration-color: transparent; transition: text-decoration-color .8s var(--ease) .4s; }
.them.in .vs-list span { text-decoration-color: var(--red); }
@media (max-width: 900px) { .versus { grid-template-columns: 1fr; } .vs-list li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 56px); position: relative; counter-reset: s; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: var(--line); }
.steps::after { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .2s; }
.steps.in::after { transform: scaleX(1); }
.steps li { position: relative; }
.steps .n { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 2px solid var(--line); font: 600 18px var(--font-head); position: relative; z-index: 1; transition: border-color .4s, color .4s; }
.steps.in .n { border-color: var(--red); color: var(--red); transition-delay: calc(var(--i) * 500ms + 200ms); }
.steps h3 { margin-top: 26px; font-size: clamp(22px, 1.8vw, 32px); }
.steps p { margin-top: 10px; color: var(--muted); max-width: 32ch; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } .steps::before, .steps::after { display: none; } }

/* ---------- FAQ ---------- */
.faq { max-width: 1040px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0; font: 600 clamp(19px, 1.5vw, 24px)/1.3 var(--font-head); letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); position: relative; flex: none; transition: transform .4s var(--ease), background-color .2s; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: currentColor; border-radius: 1px; }
.faq summary .pm::after { transform: rotate(90deg); transition: transform .4s var(--ease); }
.faq details[open] .pm { transform: rotate(180deg); background: var(--tint); }
.faq details[open] .pm::after { transform: rotate(0deg); }
.faq details p { padding: 0 56px 28px 0; color: var(--muted); max-width: 72ch; }
/* Documented exception to "transform/opacity only": the answer's height eases open (off under reduced motion). */
@supports (interpolate-size: allow-keywords) {
  .faq details { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: clip; transition: height .45s var(--ease), content-visibility .45s allow-discrete; }
  .faq details[open]::details-content { height: auto; }
}

/* ---------- Closing CTA ---------- */
.finale { position: relative; overflow: clip; isolation: isolate; text-align: center; padding-block: clamp(120px, 16vw, 260px); }
.finale { padding-bottom: clamp(240px, 30vw, 420px); }
.finale .lede { margin: 24px auto 0; }
.finale .hero-cta { margin-top: 40px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 72px 40px; font-size: 15px; }
.f-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.f-brand img { height: 56px; width: auto; }
.f-brand p { margin-top: 18px; color: var(--muted); max-width: 36ch; }
.f-col h2 { font: 600 13px var(--font-body); color: var(--muted); margin-bottom: 14px; letter-spacing: 0; }
.f-col a { display: block; text-decoration: none; padding: 5px 0; color: var(--text); opacity: .85; }
.f-col a:hover { opacity: 1; color: var(--red); }
.f-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; }
@media (max-width: 900px) { .f-grid { grid-template-columns: 1fr 1fr; } .f-brand { grid-column: 1 / -1; } }

/* ---------- Forms (order, whitelist) ---------- */
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.label, .field > label, legend { font: 600 13px/1.4 var(--font-body); color: var(--muted); }
.opt { font-weight: 400; }
.input { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--r-control); border: 1px solid var(--line); background: var(--inset); color: var(--text); font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.input:hover { border-color: color-mix(in srgb, var(--line) 50%, var(--muted)); }
.input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px var(--red-tint); }
textarea.input { min-height: 110px; resize: vertical; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.hint { font-size: 13px; color: var(--muted); }
.ok-text { color: var(--ok); } .warn-text { color: var(--maint); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
.toggles { display: flex; flex-wrap: wrap; gap: 10px; }
.toggle { position: relative; }
.toggle input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.toggle span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--inset); font-size: 15px; font-weight: 600; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.toggle span::before { content: ""; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--muted); transition: background-color .2s, border-color .2s; }
.toggle input:checked + span { border-color: var(--red); background: var(--red-tint); }
.toggle input:checked + span::before { background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--red); }
.toggle input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.toggle input:disabled + span { opacity: .7; cursor: default; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.check input { width: 20px; height: 20px; accent-color: var(--red); margin-top: 2px; flex: none; }
.check a { color: var(--text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { padding: 14px 16px; border-radius: var(--r-control); background: var(--red-deep-bg); color: var(--red-deep-fg); font-size: 15px; }
.form-ok { padding: 14px 16px; border-radius: var(--r-control); background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); font-size: 15px; }
.linkish { border: 0; background: none; padding: 0; color: var(--red); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Order page ---------- */
.page-head { padding-block: clamp(48px, 7vw, 120px) clamp(32px, 4vw, 64px); }
.page-head .lede { margin-top: 20px; }
.order { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: clamp(24px, 4vw, 80px); align-items: start; padding-bottom: var(--section); }
.o-sec { padding: clamp(24px, 2.6vw, 44px); border-radius: var(--r-big); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 22px; }
.o-sec + .o-sec { margin-top: 20px; }
.o-sec > h2 { font-size: clamp(22px, 1.8vw, 30px); display: flex; align-items: center; gap: 14px; }
.o-sec > h2 .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; background: var(--red-tint); color: var(--red); flex: none; }
.plan-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pp { position: relative; }
.pp input { position: absolute; opacity: 0; inset: 0; cursor: pointer; z-index: 1; }
.pp-card { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 18px; border-radius: var(--r-panel); border: 1.5px solid var(--line); background: var(--inset); transition: border-color .2s, background-color .2s, transform .3s var(--ease); }
.pp-card b { font: 600 17px var(--font-head); }
.pp-card .p { font: 600 26px var(--font-head); letter-spacing: -0.03em; margin-top: 6px; }
.pp-card .p small { font-size: 13px; color: var(--muted); font-family: var(--font-body); font-weight: 500; letter-spacing: 0; }
.pp-card .s { font-size: 13px; color: var(--muted); }
.pp input:checked + .pp-card { border-color: var(--red); background: var(--red-tint); }
.pp input:focus-visible + .pp-card { outline: 2px solid var(--red); outline-offset: 2px; }
.pp:hover .pp-card { transform: translateY(-2px); }
@media (max-width: 1100px) { .plan-pick { grid-template-columns: 1fr 1fr; } }
.fit { padding: 12px 16px; border-radius: var(--r-control); background: color-mix(in srgb, var(--ok) 10%, transparent); font-size: 15px; }
.fit.warn { background: color-mix(in srgb, var(--maint) 14%, transparent); }
.addon-pick { display: grid; gap: 12px; }
.ap { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-panel); border: 1.5px solid var(--line); background: var(--inset); cursor: pointer; transition: border-color .2s, background-color .2s; }
.ap:has(input:checked) { border-color: var(--red); background: var(--red-tint); }
.ap input { width: 20px; height: 20px; accent-color: var(--red); flex: none; }
.ap .t { display: flex; flex-direction: column; }
.ap .t small { color: var(--muted); font-size: 13px; }
.ap .amt { margin-left: auto; font: 600 16px var(--font-head); white-space: nowrap; }
.stepper { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.stepper button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 18px; }
.stepper input { width: 64px; text-align: center; min-height: 38px; padding: 6px; }
.summary { position: sticky; top: calc(var(--nav-h) + 24px); padding: 30px; border-radius: var(--r-big); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-float); }
.summary h2 { font-size: 20px; }
.sum-lines { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; font-size: 15px; }
.sum-lines li { display: flex; justify-content: space-between; gap: 12px; }
.sum-lines li span:last-child { font-family: var(--font-mono); }
.sum-lines li.dim { color: var(--muted); }
.sum-total { display: flex; align-items: baseline; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--line); }
.sum-total b { font: 600 52px/1 var(--font-head); letter-spacing: -0.05em; display: inline-block; }
.sum-total b.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.08); color: var(--red); } }
.sum-ram { margin-top: 6px; color: var(--muted); font-size: 14px; text-align: right; }
.summary .check { margin-top: 22px; font-size: 14px; }
.summary .btn { margin-top: 20px; }
.summary .form-error { margin-top: 14px; }
.summary .fine { margin-top: 16px; font-size: 13px; color: var(--muted); }
.done { text-align: center; padding: clamp(48px, 8vw, 140px) 0 var(--section); }
.done .tick { width: 96px; height: 96px; margin: 0 auto 32px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.done .tick svg { width: 44px; height: 44px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .7s var(--ease) .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (max-width: 1000px) { .order { grid-template-columns: 1fr; } .summary { position: static; } }

/* ---------- Status page ---------- */
.st-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.st-big { display: flex; align-items: center; gap: 18px; }
.st-big .dot { width: 16px; height: 16px; }
.st-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; color: var(--muted); font-size: 15px; }
.st-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(32px, 4vw, 56px); }
.st-tile { padding: 24px 26px; border-radius: var(--r-panel); background: var(--surface); border: 1px solid var(--line); }
.st-tile b { display: block; font: 600 clamp(36px, 3.4vw, 60px)/1 var(--font-head); letter-spacing: -0.04em; }
.st-tile span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; }
@media (max-width: 800px) { .st-tiles { grid-template-columns: 1fr 1fr; } }
.server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); gap: 20px; margin-top: 20px; }
.server-card { border-radius: var(--r-big); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color .4s, box-shadow .4s; }
.server-card.changed { box-shadow: 0 0 0 3px var(--red-tint); }
.sc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.host { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 6px 10px; margin-left: -10px; border-radius: var(--r-sm); cursor: pointer; font: 400 14px var(--font-mono); color: var(--muted); transition: background-color .2s, color .2s; }
.host:hover { background: var(--tint); color: var(--text); }
.host.copied { color: var(--ok); }
.card-body { padding: 22px; }
.card-head { display: flex; align-items: center; gap: 14px; }
.server-icon img, .server-mark { width: 52px; height: 52px; border-radius: 12px; image-rendering: pixelated; }
.server-mark { display: grid; place-items: center; background: var(--red-tint); color: var(--red); font: 600 22px var(--font-head); }
.server-name { font: 600 22px var(--font-head); letter-spacing: -0.02em; }
.badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; font-weight: 600; }
.badge.ok { color: var(--ok); } .badge.maint { color: var(--maint); } .badge.off { color: var(--off); } .badge.loading { color: var(--muted); }
.badge .icon { width: 14px; height: 14px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.stat { padding: 14px; border-radius: var(--r-control); background: var(--inset); }
.stat-val { display: block; font: 600 24px var(--font-head); letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-val.ok { color: var(--ok); } .stat-val.dim, .dim { color: var(--muted); }
.stat .label { font-size: 12px; }
.motd { margin-top: 16px; font-size: 15px; color: var(--muted); }
.notice { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: var(--r-control); font-size: 14px; }
.notice.maint { background: color-mix(in srgb, var(--maint) 14%, transparent); color: var(--maint); }
.notice.off { background: var(--tint); color: var(--muted); }
.players { margin-top: 18px; display: grid; gap: 10px; }
.players-list { display: flex; flex-wrap: wrap; gap: 6px; }
.player-pill { padding: 5px 10px; border-radius: var(--r-pill); background: var(--tint-2); font: 400 13px var(--font-mono); animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
.player-pill.new { box-shadow: 0 0 0 2px var(--ok); }
.no-players { color: var(--muted); font-size: 14px; }
.shimmer { display: inline-block; width: 60%; height: 1em; border-radius: 6px; background: linear-gradient(90deg, var(--tint), var(--tint-2), var(--tint)); background-size: 200% 100%; animation: shim 1.4s linear infinite; }
@keyframes shim { to { background-position: -200% 0; } }
.spinning .icon, .icon.spinner { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.server-card.fresh { animation: rise .6s var(--ease); }
.wl { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 96px); align-items: start; }
.wl-form { padding: clamp(24px, 2.6vw, 44px); border-radius: var(--r-big); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 18px; }
.wl-form .form-error, .wl-form .form-ok { display: none; }
@media (max-width: 900px) { .wl { grid-template-columns: 1fr; } }

/* ---------- Legal & 404 ---------- */
.legal { padding-block: clamp(48px, 6vw, 100px) var(--section); }
.legal h1 { font-size: clamp(40px, 4.6vw, 80px); letter-spacing: -0.04em; }
.legal-meta { margin-top: 14px; color: var(--muted); }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 40px; }
.legal-nav a { padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line); text-decoration: none; font-size: 14px; font-weight: 600; color: var(--muted); }
.legal-nav a:hover, .legal-nav a[aria-current="page"] { color: var(--text); border-color: var(--red); }
.legal-body { max-width: 860px; font-size: 17px; line-height: 1.75; }
.legal-body h2 { font-size: clamp(22px, 1.8vw, 30px); margin: 48px 0 14px; }
.legal-body h3 { font-size: 20px; margin: 30px 0 10px; }
.legal-body p, .legal-body ul, .legal-body ol { margin: 0 0 16px; color: color-mix(in srgb, var(--text) 86%, var(--muted)); }
.legal-body a { color: var(--red); }
.legal-body table { min-width: 0; margin-bottom: 20px; }
.nf { min-height: calc(100svh - var(--nav-h) - 200px); display: grid; place-items: center; text-align: center; }
.nf .code { font: 600 clamp(120px, 20vw, 320px)/0.9 var(--font-head); letter-spacing: -0.07em; color: var(--red); }

/* ---------- Page-to-page transitions (same-origin navigation) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .25s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .45s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }
/* Theme switch: a plain cross-fade, no slide. */
html.vt-theme::view-transition-old(root) { animation: vt-fade .3s ease both; }
html.vt-theme::view-transition-new(root) { animation: vt-fade .3s ease both reverse; }
@keyframes vt-fade { to { opacity: 0; } }

/* ---------- Reduced motion: everything lands in its final state ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .hero-inner { animation: none !important; }
  .split .w, .rise { opacity: 1; transform: none; }
  .js .reveal, .js .reveal-scale { opacity: 1; transform: none; }
  .hero-scroll { display: none; }
  @view-transition { navigation: none; }
}

/* Order page: your server as an island of blocks. */
.order-world { display: block; width: 100%; height: 200px; margin: 4px 0 12px; image-rendering: pixelated; border-radius: var(--r-panel, 14px); }


/* ---------- Status: island map, time travel, terrain, reports, incidents, subscribe ---------- */
.sw { margin-top: clamp(24px, 4vw, 48px); }
.sw-map-wrap { position: relative; height: clamp(340px, 40vw, 560px); }
.sw-map { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.sw-islands { position: absolute; inset: 0; }
.sw-isl { position: absolute; width: 96px; height: 88px; margin: -70px 0 0 -48px; background: none; border: 0; border-radius: 12px; cursor: pointer; color: inherit; font: inherit; }
.sw-isl:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.sw-isl .sw-mini, .sw-isl .sw-isl-s { display: none; }
.sw-isl .sw-isl-n { position: absolute; left: 50%; bottom: -14px; translate: -50% 0; white-space: nowrap; font: 600 12px/1.2 var(--font-body); padding: 3px 8px; border-radius: var(--r-pill, 999px); background: color-mix(in srgb, var(--surface) 86%, transparent); border: 1px solid var(--line); }
.sw-map-wrap.narrow { height: auto; }
.sw-map-wrap.narrow .sw-map { display: none; }
.sw-map-wrap.narrow .sw-islands { position: static; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.sw-map-wrap.narrow .sw-isl { position: static; width: auto; height: auto; margin: 0; padding: 10px; display: grid; justify-items: center; gap: 4px; background: color-mix(in srgb, var(--surface) 86%, transparent); border: 1px solid var(--line); }
.sw-map-wrap.narrow .sw-isl .sw-mini { display: block; width: 96px; height: 72px; image-rendering: pixelated; }
.sw-map-wrap.narrow .sw-isl .sw-isl-n { position: static; translate: none; border: 0; background: none; padding: 0; }
.sw-map-wrap.narrow .sw-isl .sw-isl-s { display: block; font-size: 12px; color: var(--muted); }
.sw-tip { position: absolute; z-index: 3; translate: -50% -100%; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); display: grid; gap: 2px; font-size: 13px; pointer-events: none; white-space: nowrap; }
.sw-tip span { color: var(--muted); }
.sw-empty { position: absolute; inset: auto 0 40% 0; text-align: center; color: var(--muted); }
.sw-time { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px 16px; padding: 14px 18px; border-radius: var(--r-panel, 14px); border: 1px solid var(--line); margin-top: 12px; }
.sw-time-l { font-weight: 600; }
.sw-time input[type=range] { width: 100%; accent-color: var(--diamond); }
.sw-time output { font: 500 14px var(--font-mono); min-width: 6ch; }
.sw-since { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--muted); }
.sw-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.sw-legend li { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 12px; height: 12px; display: inline-block; border-radius: 2px; }
.lg.sunny { background: var(--grass); } .lg.clouds { background: #c9d3df; } .lg.rain { background: var(--cloud-rain); } .lg.storm { background: var(--cloud-storm); box-shadow: inset 0 -3px 0 var(--lava); } .lg.lanterns { background: var(--torch); }
.lg.still { background: var(--void); box-shadow: inset 0 0 0 1px var(--line); }
.sw-confirm { max-width: 520px; margin: 15vh auto; padding: 0 16px; display: grid; gap: 16px; justify-items: start; }
.sw-isl-li { display: block; }
.sw-strip-day { margin: 4px 0 0; min-height: 1.3em; font-size: 12px; color: var(--muted); }
.sw-services { margin-top: clamp(48px, 6vw, 96px); }
.sw-rows { display: grid; gap: 10px; margin-top: 18px; }
.sw-row { padding: 12px 16px; border-radius: var(--r-panel, 14px); border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 86%, transparent); transition: box-shadow var(--t-base); }
.sw-row.flash { box-shadow: 0 0 0 2px var(--diamond); }
.sw-row-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.sw-pct { margin-left: auto; font: 500 14px var(--font-mono); }
.sw-strip { display: block; width: 100%; height: 34px; image-rendering: pixelated; }
.sw-pill { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); }
.st-up, .inc-resolved { color: var(--ok); } .st-slow, .st-maintenance, .inc-monitoring, .inc-identified { color: var(--maint); } .st-degraded, .st-down, .inc-investigating { color: var(--off); }
.st-down { box-shadow: inset 0 -2px 0 var(--lava); }
.st-restarting { color: var(--maint); } .st-offline, .st-nodata { color: var(--muted); }
.sw-strip { touch-action: pan-y; }
.sw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--gap, 24px); margin-top: clamp(48px, 6vw, 96px); }
.sw-card { padding: 22px; border-radius: var(--r-panel, 14px); border: 1px solid var(--line); }
.sw-card h2, .sw-sub h2 { margin: 0 0 6px; font-size: 22px; }
.sw-row-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.sw-row-form .input { flex: 1 1 180px; }
.jm-out { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.jm-out li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.jm-out li.ok span { color: var(--ok); } .jm-out li.bad span { color: var(--off); }
.jm-verdict { margin: 12px 0 0; font-weight: 600; }
.sw-chart { display: block; width: 100%; height: 90px; margin-top: 12px; }
.sw-incidents { margin-top: clamp(48px, 6vw, 96px); }
.sw-inc-item { padding: 16px 18px; border-radius: var(--r-panel, 14px); border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 86%, transparent); margin-top: 12px; }
.sw-inc-item.on-day { box-shadow: 0 0 0 2px var(--torch); }
.sw-inc-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.sw-updates { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; border-left: 2px solid var(--line); padding-left: 14px; }
.sw-updates time { display: block; font: 500 12px var(--font-mono); color: var(--muted); }
.sw-calm { color: var(--muted); }
.sw-past { margin-top: 14px; } .sw-past summary { cursor: pointer; color: var(--muted); }
.sw-sub { display: grid; grid-template-columns: 1fr 1.3fr; gap: 18px 32px; align-items: center; padding: 24px; border-radius: var(--r-panel, 14px); border: 1px solid var(--line); margin-block: clamp(48px, 6vw, 96px); }
.sw-sub .hint { grid-column: 1 / -1; margin: 0; }
@media (max-width: 760px) { .sw-sub { grid-template-columns: 1fr; } .sw-time { grid-template-columns: 1fr auto; } .sw-time input[type=range] { grid-column: 1 / -1; } }
