/* vDrop — Wild Vision OS palette, blueprint layout. */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/manrope-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/manrope-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/space-mono-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/space-mono-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/fonts/space-mono-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand constants (same in both themes) */
  --ink: #090c17;
  --ink-2: #151a2b;
  --ink-3: #232a40;
  --on-ink: #fffdfa;
  --orange: #ff681f;
  --orange-2: #ff8a4c;
  --radius: 12px;
  --radius-sm: 8px;
  --display: 'Manrope', system-ui, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Space Mono', ui-monospace, Consolas, monospace;
  --chev: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 10px 50%);

  /* Light theme (default) */
  --bg: #f7f3ed;
  --surface: #fffdfa;
  --surface-2: #ece5db;
  --fg: #090c17;
  --text: #1b1f2c;
  --muted: #55555e;
  --faint: #8a8791;
  --line: rgba(9, 12, 23, 0.12);
  --line-strong: rgba(9, 12, 23, 0.22);
  --rail: rgba(9, 12, 23, 0.14);
  --contour: rgba(9, 12, 23, 0.07);
  --hatch: rgba(9, 12, 23, 0.09);
  --nav-bg: rgba(247, 243, 237, 0.86);
  --band-dark: #090c17;
  --toast-bg: #090c17;
  --accent-text: #ce3f08;
  --orange-soft: #ffe8db;
  --ok: #138a43;
  --ok-soft: #dcf3e4;
  --warn: #b45309;
  --warn-soft: #fdf0d8;
  --warn-text: #7a3a06;
  --bad: #c9302c;
  --bad-soft: #fbe3e1;
  --bad-text: #8a1f1b;
  --sky: #0b6fa8;
  --sky-soft: #dcefff;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 18px 40px -22px rgba(9, 12, 23, 0.35);
  color-scheme: light;
}

/* Dark theme: chosen in the header, or following the system when not chosen. */
:root[data-theme='dark'] {
  --bg: #0a0d18;
  --surface: #131826;
  --surface-2: #1d2334;
  --fg: #f7f3ed;
  --text: #dedad3;
  --muted: #a8a5ae;
  --faint: #7d7a86;
  --line: rgba(247, 243, 237, 0.11);
  --line-strong: rgba(247, 243, 237, 0.2);
  --rail: rgba(247, 243, 237, 0.11);
  --contour: rgba(247, 243, 237, 0.05);
  --hatch: rgba(247, 243, 237, 0.08);
  --nav-bg: rgba(10, 13, 24, 0.86);
  --band-dark: #05070f;
  --toast-bg: #232a40;
  --accent-text: #ff8a4c;
  --orange-soft: rgba(255, 104, 31, 0.16);
  --ok: #4ade80;
  --ok-soft: rgba(74, 222, 128, 0.14);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.14);
  --warn-text: #fcd38a;
  --bad: #f87171;
  --bad-soft: rgba(248, 113, 113, 0.14);
  --bad-text: #fecaca;
  --sky: #7dd3fc;
  --sky-soft: rgba(125, 211, 252, 0.14);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 22px 48px -24px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0a0d18;
    --surface: #131826;
    --surface-2: #1d2334;
    --fg: #f7f3ed;
    --text: #dedad3;
    --muted: #a8a5ae;
    --faint: #7d7a86;
    --line: rgba(247, 243, 237, 0.11);
    --line-strong: rgba(247, 243, 237, 0.2);
    --rail: rgba(247, 243, 237, 0.11);
    --contour: rgba(247, 243, 237, 0.05);
    --hatch: rgba(247, 243, 237, 0.08);
    --nav-bg: rgba(10, 13, 24, 0.86);
    --band-dark: #05070f;
    --toast-bg: #232a40;
    --accent-text: #ff8a4c;
    --orange-soft: rgba(255, 104, 31, 0.16);
    --ok: #4ade80;
    --ok-soft: rgba(74, 222, 128, 0.14);
    --warn: #fbbf24;
    --warn-soft: rgba(251, 191, 36, 0.14);
    --warn-text: #fcd38a;
    --bad: #f87171;
    --bad-soft: rgba(248, 113, 113, 0.14);
    --bad-text: #fecaca;
    --sky: #7dd3fc;
    --sky-soft: rgba(125, 211, 252, 0.14);
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 22px 48px -24px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
html, body { margin: 0; }

body {
  font: 16px/1.55 var(--sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
  overflow-x: hidden;
}

a { color: inherit; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------------------------------------------------------------- frame & bands */

.frame {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  border-left: 1px dashed var(--rail);
  border-right: 1px dashed var(--rail);
}
.frame.ruled::before,
.frame.ruled::after {
  content: '+';
  position: absolute;
  top: -12px;
  font: 400 18px/1 var(--mono);
  color: var(--orange);
}
.frame.ruled::before { left: -6px; }
.frame.ruled::after { right: -6px; }

.band { position: relative; border-top: 1px solid var(--rail); }
.band .frame { padding-top: 96px; padding-bottom: 96px; }
.band.dark { background: var(--band-dark); color: #f7f3ed; --rail: rgba(247, 243, 237, 0.14); --line: rgba(247, 243, 237, 0.14); }

.tag {
  display: inline-block;
  font: 400 13px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--accent-text);
  margin-bottom: 18px;
}
.dark .tag { color: var(--orange-2); }

h1, h2, h3 { font-family: var(--display); color: var(--fg); margin: 0; }
.dark h2, .dark h3 { color: var(--on-ink); }
h1 { font-weight: 800; font-size: clamp(48px, 7.4vw, 104px); line-height: 0.95; letter-spacing: -0.045em; }
h2 { font-weight: 800; font-size: clamp(34px, 4.6vw, 60px); line-height: 1; letter-spacing: -0.035em; }
h3 { font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.hl { color: var(--orange); }

.band-head { max-width: 760px; margin-bottom: 48px; }
.band-head .sub { margin: 18px 0 0; font-size: 18px; color: var(--muted); max-width: 620px; }
.dark .band-head .sub { color: rgba(247, 243, 237, 0.68); }

/* ---------------------------------------------------------------- announce + nav */

.announce {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding: 9px 16px;
  background: var(--orange);
  color: var(--ink);
  font: 600 14px/1.3 var(--sans);
  text-align: center;
}
.announce a { font: 700 13px var(--mono); text-decoration: underline; text-underline-offset: 3px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rail);
}
.nav-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.wolf { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.wordmark { font: 800 22px/1 var(--display); letter-spacing: -0.03em; }
.wordmark b { font-weight: 800; color: var(--orange); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { font: 400 12px var(--mono); text-transform: uppercase; letter-spacing: 0.8px; text-decoration: none; color: var(--fg); opacity: 0.8; }
.nav-links a:hover { opacity: 1; color: var(--accent-text); }
.nav-cta { margin-left: 8px; }
.theme-btn { margin-left: 4px; color: var(--fg); }
.theme-btn .i-sun { display: none; }
:root[data-theme='dark'] .theme-btn .i-sun { display: block; }
:root[data-theme='dark'] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-btn .i-sun { display: block; }
  :root:not([data-theme='light']) .theme-btn .i-moon { display: none; }
}
body.den .theme-btn { margin-left: auto; }

/* ---------------------------------------------------------------- hero */

.hero { border-top: 0; overflow: hidden; }
.hero .frame { padding-top: 72px; padding-bottom: 88px; }
.contours {
  position: absolute;
  width: 980px;
  height: 980px;
  right: -260px;
  top: -200px;
  fill: none;
  stroke: var(--contour);
  stroke-width: 1.2;
  pointer-events: none;
}
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 56px; align-items: center; }
.hero-copy { min-width: 0; }
.lede { margin: 28px 0 0; font-size: 19px; color: var(--muted); max-width: 520px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 32px 0 0; }
.hero-points li { padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font-size: 14px; color: var(--muted); }
.hero-points b { color: var(--fg); }
.hero-app { min-width: 0; position: relative; }

/* Hatched frame around cards (blueprint style). */
.hatch {
  padding: 10px;
  background: repeating-linear-gradient(135deg, var(--hatch) 0 1px, transparent 1px 7px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 10px);
}
.dark-hatch { background: repeating-linear-gradient(135deg, rgba(247, 243, 237, 0.1) 0 1px, transparent 1px 7px); border-color: rgba(247, 243, 237, 0.14); }

/* Receiver pages: just the app. */
body.den .announce, body.den .nav-links, body.den .nav-cta, body.den main > .band:not(.hero), body.den .hero-copy, body.den .footer .foot-mark { display: none; }
body.den .hero-in { grid-template-columns: minmax(0, 640px); justify-content: center; }
body.den .hero .frame { padding-top: 56px; min-height: calc(100svh - 68px - 120px); }

/* ---------------------------------------------------------------- marketing sections */

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step-card { background: var(--ink-2); border: 1px solid rgba(247, 243, 237, 0.12); border-radius: var(--radius); padding: 28px; height: 100%; }
.step-card p { color: rgba(247, 243, 237, 0.7); margin: 10px 0 0; }
.step-no { display: inline-block; font: 700 13px var(--mono); color: var(--ink); background: var(--orange); padding: 4px 9px; border-radius: 4px; margin-bottom: 22px; }
.steps .hatch { height: 100%; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.stat { padding: 28px 24px 30px; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); background: var(--surface); }
.stat b { display: block; font: 800 34px/1 var(--display); letter-spacing: -0.03em; color: var(--fg); margin-bottom: 12px; }
.stat span { color: var(--muted); font-size: 15px; }

.sec-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(247, 243, 237, 0.16); }
.sec-list li { padding: 26px 28px 26px 0; border-bottom: 1px solid rgba(247, 243, 237, 0.16); color: rgba(247, 243, 237, 0.72); font-size: 17px; }
.sec-list li:nth-child(odd) { padding-right: 36px; border-right: 1px solid rgba(247, 243, 237, 0.16); }
.sec-list li:nth-child(even) { padding-left: 36px; }
.sec-list b { color: var(--on-ink); font-family: var(--display); font-weight: 800; }

.faq { border-top: 1px solid var(--line-strong); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 40px 22px 0;
  font: 800 19px var(--display);
  color: var(--fg);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 18px; font: 400 24px var(--mono); color: var(--orange); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 720px; }

.footer .frame { padding-top: 72px; padding-bottom: 36px; }
.foot-mark {
  font: 800 clamp(80px, 19vw, 260px)/0.82 var(--display);
  letter-spacing: -0.06em;
  color: var(--on-ink);
  margin-left: -0.04em;
  user-select: none;
}
.foot-mark span { color: var(--orange); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(247, 243, 237, 0.16); font: 400 12px var(--mono); text-transform: uppercase; letter-spacing: 0.8px; color: rgba(247, 243, 237, 0.6); }
.foot-row a { color: var(--orange-2); }

/* ---------------------------------------------------------------- app card */

.app { position: relative; }
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  animation: rise 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.card-head h2 { margin: 0; font-size: 24px; letter-spacing: -0.03em; flex: 1; min-width: 0; line-height: 1.15; }
.step {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 30px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--fg);
  color: var(--bg);
  font: 700 12px/1 var(--mono);
}
.step .ico { width: 16px; height: 16px; }

.card h3 { font-size: 18px; margin-bottom: 6px; }
.section-title { margin: 28px 0 10px; font: 400 12px var(--mono); text-transform: uppercase; letter-spacing: 1.2px; color: var(--faint); }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.hint { margin: 8px 0 0; font-size: 13px; color: var(--faint); }
.error { margin: 8px 0 0; font-size: 14px; color: var(--bad); font-weight: 600; }
.offscreen { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------------------------------------------------------------- icons & buttons */

.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--fg);
  font: 700 15px/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { border-color: var(--fg); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .icon-btn:focus-visible, .drop:focus-visible, input:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.btn[disabled] { opacity: 0.4; cursor: not-allowed; transform: none; }

/* Chevron buttons: the primary action shape. */
.btn.primary, .btn.chev {
  border: 0;
  border-radius: 0;
  clip-path: var(--chev);
  padding: 12px 30px 12px 26px;
}
.btn.primary { background: var(--orange); color: var(--ink); }
.btn.primary:hover { background: var(--orange-2); }
.btn.primary:focus-visible, .btn.chev:focus-visible { outline: 2px solid var(--ink); outline-offset: -5px; }
.btn.dark { background: var(--fg); color: var(--bg); }
.btn.dark:hover { opacity: 0.86; }
.btn.ghost { background: transparent; }
.btn.small { padding: 7px 13px; font-size: 14px; }
.btn.big { width: 100%; padding: 16px 30px 16px 26px; font-size: 17px; margin-top: 22px; }
.btn.danger { background: transparent; border-color: rgba(201, 48, 44, 0.4); color: var(--bad); }
.btn.danger:hover { background: var(--bad-soft); border-color: var(--bad); }

.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--faint); cursor: pointer; }
.icon-btn:hover { color: var(--fg); background: var(--surface-2); }

.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- drop zone */

.drop {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 34px 18px 26px;
  border-radius: var(--radius);
  border: 1.5px dashed var(--line-strong);
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.drop:hover { border-color: var(--orange); }
.drop.over { border-color: var(--orange); background: var(--orange-soft); }
.drop.has-files { padding: 20px 18px; }
.drop.has-files .drop-sub { display: none; }
.drop-glow { display: none; }
.drop-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--orange); color: var(--ink); margin-bottom: 6px; }
.drop-icon .ico { width: 26px; height: 26px; stroke-width: 2.2; }
.drop.has-files .drop-icon { width: 42px; height: 42px; border-radius: 12px; }
.drop-title { font: 800 19px var(--display); color: var(--fg); letter-spacing: -0.01em; }
.drop-sub { color: var(--muted); font-size: 14px; max-width: 380px; }
.drop-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }

/* ---------------------------------------------------------------- file lists */

.file-list { list-style: none; margin: 14px 0 0; padding: 0; max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.file-list:empty { display: none; }
.file-list li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 14px; min-width: 0; }
.file-list li:last-child { border-bottom: 0; }
.file-list li.more { color: var(--faint); justify-content: center; }
.file-list li.got .file-name { color: var(--muted); }
.file-list li.got .file-size { color: var(--ok); }
.file-list li.now { background: var(--orange-soft); }
.file-icon { color: var(--accent-text); display: inline-flex; }
.file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { color: var(--muted); font: 12px var(--mono); white-space: nowrap; }

.summary, .list-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.summary b { color: var(--fg); }
.limit { color: var(--faint); font: 12px var(--mono); }
.limit.bad { color: var(--bad); font-weight: 700; }

.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; min-width: 0; flex: 1; }
.check > span { display: inline-flex; flex-direction: column; min-width: 0; }
.check input { accent-color: var(--orange); width: 17px; height: 17px; flex: none; }

/* ---------------------------------------------------------------- inputs */

.field { margin-top: 22px; }
.field label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 8px; color: var(--fg); }
.input-row { display: flex; gap: 8px; align-items: center; }
input[type='password'], input[type='text'], .link-input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--fg);
  font: 15px var(--sans);
}
input::placeholder { color: var(--faint); }
input:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px rgba(255, 104, 31, 0.18); }
.link-input { font: 13px var(--mono); background: var(--bg); }
.pw-form label { display: block; font: 800 18px var(--display); margin-bottom: 12px; color: var(--fg); }

/* ---------------------------------------------------------------- live den */

.link-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.link-row .link-input { flex: 1 1 240px; }
.live-grid { display: grid; grid-template-columns: auto 1fr; gap: 20px; margin-top: 20px; align-items: start; }
.qr-box { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.qr { width: 140px; height: 140px; border-radius: 10px; border: 1px solid var(--line); image-rendering: pixelated; background: #fff; }
.live-info { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.info-line { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.info-line .ico { margin-top: 2px; color: var(--accent-text); }
.info-line b { color: var(--fg); }
.info-line.warn .ico { color: var(--warn); }

.pack { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--bg); }
.pack summary { cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; list-style: none; color: var(--fg); }
.pack summary::-webkit-details-marker { display: none; }
.pack[open] summary { margin-bottom: 10px; }
.pack-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }

.pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; font: 700 12px var(--mono); text-transform: uppercase; letter-spacing: 0.6px; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
.pill.ok { color: var(--ok); background: var(--ok-soft); }
.pill.warn { color: var(--warn); background: var(--warn-soft); }
.pill.bad { color: var(--bad); background: var(--bad-soft); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font: 700 11px var(--mono); text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted); background: var(--surface-2); white-space: nowrap; }
.chip .ico { width: 13px; height: 13px; }
.chip.ok { color: var(--ok); background: var(--ok-soft); }
.chip.sky { color: var(--sky); background: var(--sky-soft); }
.chip.warn { color: var(--warn); background: var(--warn-soft); }

.peers { display: flex; flex-direction: column; gap: 10px; }
.peer { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--line); }
.peer-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--fg); color: var(--orange); }
.peer-name { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--fg); }
.peer-meta { margin-left: auto; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.peer .bar { margin-top: 10px; }
.peer[data-state='done'] .bar i { background: var(--ok); }
.peer[data-state='lost'] .peer-meta, .peer[data-state='failed'] .peer-meta, .peer[data-state='locked-out'] .peer-meta { color: var(--bad); }

.empty, .busy { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: var(--radius-sm); border: 1px dashed var(--line-strong); color: var(--muted); }
.busy { border: 0; padding: 26px 8px; }
.busy b { color: var(--fg); font-size: 17px; font-family: var(--display); }
.busy p { margin: 4px 0 0; }
.radar { position: relative; width: 34px; height: 34px; flex: none; border-radius: 50%; background: radial-gradient(circle, var(--orange) 0 4px, transparent 5px); }
.radar::before, .radar::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--orange); animation: ping 1.8s cubic-bezier(0, 0.4, 0.4, 1) infinite; }
.radar::after { animation-delay: 0.9s; }
@keyframes ping { from { transform: scale(0.2); opacity: 0.9; } to { transform: scale(1.5); opacity: 0; } }

.live-actions { display: flex; justify-content: flex-end; margin-top: 20px; }

/* ---------------------------------------------------------------- progress */

.bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar.big { height: 14px; margin: 14px 0 10px; }
.bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(-45deg, var(--orange) 0 10px, var(--orange-2) 10px 20px);
  background-size: 28px 28px;
  animation: flow 0.9s linear infinite;
  transition: width 0.4s ease;
}
@keyframes flow { to { background-position: 28px 0; } }
.stats { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; font-variant-numeric: tabular-nums; color: var(--muted); }
.stats b { font: 800 30px var(--display); color: var(--fg); letter-spacing: -0.03em; }
.mode { display: flex; gap: 8px; align-items: center; }
.saves { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.saves:empty { display: none; }

.notice { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: var(--radius-sm); margin: 0 0 14px; font-size: 14px; background: var(--surface-2); color: var(--fg); }
.notice.warn { background: var(--warn-soft); color: var(--warn-text); }
.notice.bad { background: var(--bad-soft); color: var(--bad-text); }
.notice a { color: var(--accent-text); font-weight: 700; }

.end-note { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 18px 6px 6px; }
.end-note p { max-width: 440px; margin: 0 0 12px; }
.end-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--surface-2); color: var(--fg); margin-bottom: 8px; }
.end-icon .ico { width: 30px; height: 30px; }
.end-note.ok .end-icon { background: var(--ok-soft); color: var(--ok); }

/* ---------------------------------------------------------------- toasts */

.toasts { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 50; width: min(92vw, 420px); }
.toast { padding: 12px 16px; border-radius: 10px; background: var(--toast-bg); color: var(--on-ink); box-shadow: 0 18px 40px -16px rgba(9, 12, 23, 0.5); font-size: 14px; border-left: 4px solid var(--orange); animation: rise 0.25s ease; transition: opacity 0.4s, transform 0.4s; }
.toast.ok { border-left-color: #3ccf7a; }
.toast.warn { border-left-color: #f5a524; }
.toast.bad { border-left-color: #ff5a52; }
.toast.out { opacity: 0; transform: translateY(6px); }

.noscript { text-align: center; color: var(--muted); }
.qr-missing { padding: 20px; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1040px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-app { max-width: 620px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .theme-btn { margin-left: auto; }
  .nav-cta { margin-left: 4px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .sec-list { grid-template-columns: minmax(0, 1fr); }
  .sec-list li:nth-child(odd), .sec-list li:nth-child(even) { padding: 22px 0; border-right: 0; }
}

@media (max-width: 600px) {
  .frame { padding: 0 16px; border-left: 0; border-right: 0; }
  .frame.ruled::before, .frame.ruled::after { display: none; }
  .band .frame { padding-top: 64px; padding-bottom: 64px; }
  .hero .frame { padding-top: 40px; padding-bottom: 56px; }
  .lede { font-size: 17px; }
  .hatch { padding: 6px; border-radius: calc(var(--radius) + 6px); }
  .card { padding: 18px; }
  .card-head h2 { font-size: 21px; }
  .live-grid { grid-template-columns: 1fr; }
  .qr-box { order: 2; }
  .peer-meta { margin-left: 0; width: 100%; }
  .link-row .btn { flex: 1; }
  .stats-grid { grid-template-columns: minmax(0, 1fr); }
  .wordmark { font-size: 20px; }
  .contours { width: 640px; height: 640px; right: -300px; top: -140px; }
  body.den .hero .frame { padding-top: 28px; }
}

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