/* Self-hosted (OFL) — no request to Google Fonts. Ranges as published by Fontsource. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/vendor/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  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: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/vendor/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations");
  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 {
  --ground: #0e121a;
  --panel: #161b26;
  --panel-2: #1b2130;
  --line: #262f40;
  --line-soft: #1e2534;
  --ink: #e4e9f2;
  --ink-dim: #a3adbf;
  --muted: #76829a;
  --real: #64d2e8;
  --fill: #e9a23b;
  --ok: #78cf8c;
  --bad: #ee6a6a;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
  --radius-sm: 6px;
}

* { box-sizing: border-box; }

/* every panel below uses display:flex/grid, which would beat the attribute */
[hidden] { display: none !important; }

html { background: var(--ground); }

body {
  margin: 0;
  background:
    radial-gradient(1100px 520px at 18% -8%, #18202e 0%, transparent 62%),
    var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--real); }
b { font-weight: 700; }

.shell { max-width: 1180px; margin: 0 auto; padding: 0 24px 40px; }

/* ------------------------------------------------------------------ topbar */

.topbar {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
}

.topbar-mark {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--real);
  text-decoration: none;
}

.nav { display: flex; gap: 6px; }
.nav a {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-dim);
  font-weight: 600;
  text-decoration: none;
  transition: color .16s ease, background .16s ease;
}
.nav a:hover { color: var(--ink); background: var(--panel); }
.nav a[aria-current] { color: var(--ink); background: var(--panel-2); }

.topbar-state {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}
.topbar-state[data-state="ready"] { color: var(--ok); }
.topbar-state[data-state="warn"] { color: var(--fill); }

.account { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.topbar-state:not([hidden]) + .account { margin-left: 0; }

.balance {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink-dim);
  font-size: 13px;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color .16s ease;
}
.balance:hover { border-color: var(--real); }
.balance b { margin-right: 2px; color: var(--fill); font-size: 15px; }

.avatar-link { display: block; border-radius: 50%; }
.avatar-link:focus-visible { outline: 2px solid var(--real); outline-offset: 2px; }
.avatar {
  display: block;
  width: 34px; height: 34px;
  border: 2px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
  transition: border-color .16s ease;
}
.avatar-link:hover .avatar { border-color: var(--real); }
.avatar-initials {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1f6f8b, #7a2f5b);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.avatar-xl { width: 72px; height: 72px; font-size: 24px; }

.view { padding-top: 36px; }

/* ----------------------------------------------------------------- buttons */

.btn {
  display: inline-block;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.btn:focus-visible { outline: 2px solid var(--real); outline-offset: 2px; }
.btn-lg { padding: 13px 24px; font-size: 15px; }

.btn-go { background: var(--real); color: #0b1016; }
.btn-go:hover { background: #8adef0; }
.btn-go:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; }

.btn-quiet { background: transparent; border-color: var(--line); color: var(--ink-dim); }
.btn-quiet:hover { border-color: var(--real); color: var(--ink); }

/* ==================================================================== home */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 24px 0 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-dim);
  font-size: 12px;
}

.hero-title {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.hero-sub { max-width: 520px; margin: 18px 0 28px; color: var(--ink-dim); font-size: 17px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin: 18px 0 0; color: var(--muted); font-size: 13px; }
.hero-note b { color: var(--ok); }

/* playground */
.playground { padding: 18px; }
.playground-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.stage-wrap { display: grid; place-items: center; min-height: 300px; }
.stage {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
  transition: width .45s cubic-bezier(.2, .8, .2, 1), height .45s cubic-bezier(.2, .8, .2, 1);
}
.stage video { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-bg { object-fit: cover; filter: blur(16px) brightness(.8); transform: scale(1.15); transition: opacity .3s ease; }
.stage-fg { object-fit: contain; }
.stage[data-fit="crop"] .stage-fg { object-fit: cover; }
.stage[data-fit="crop"] .stage-bg, .stage[data-fit="pad"] .stage-bg { opacity: 0; }

.playground-controls { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--ground); }
.seg button {
  padding: 6px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-dim);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--panel-2); color: var(--real); box-shadow: inset 0 0 0 1px var(--line); }
.seg button:focus-visible { outline: 2px solid var(--real); outline-offset: 1px; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.step-card h3 { margin: 12px 0 6px; font-size: 17px; }
.step-card p { margin: 0; color: var(--ink-dim); }

.step-num {
  display: inline-grid;
  place-items: center;
  width: 26px; height: 26px;
  flex: none;
  border-radius: 50%;
  background: rgba(100, 210, 232, .14);
  color: var(--real);
  font-size: 13px;
  font-weight: 800;
}

.section { margin-top: 64px; }
.section-head { margin-bottom: 22px; }
.section-title { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.015em; }
.section-sub { margin: 6px 0 0; color: var(--ink-dim); }
.page-head { margin-bottom: 28px; }
.page-title { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.gcard {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease;
}
.gcard:hover, .gcard:focus-visible { border-color: var(--real); transform: translateY(-2px); }
.gcard:focus-visible { outline: 2px solid var(--real); outline-offset: 2px; }
.gcard-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0b0f16; }
.gcard-media .ex-media { position: absolute; inset: 0; }
.gcard-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.gcard-name { font-size: 16px; font-weight: 700; }
.gcard-blurb { color: var(--ink-dim); font-size: 13px; }
.gcard-caption { margin-top: 6px; color: var(--fill); font-size: 12px; }

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(120deg, #15222a 0%, var(--panel) 60%);
}

/* ================================================================ examples */

.ex-media { position: relative; display: grid; place-items: center; overflow: hidden; background: #0b0f16; }
.ex-media video, .ex-media img { display: block; max-width: 100%; max-height: 100%; }
.ex-video video, .ex-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ex-waves { display: flex; flex-direction: column; gap: 6px; padding: 12px; place-items: stretch; }
.wave { position: relative; padding: 4px 0 0; }
.wave img { width: 100%; height: 56px; object-fit: fill; opacity: .55; }
.wave-after img { opacity: 1; filter: hue-rotate(-150deg) saturate(1.4); }
.wave-label { position: absolute; top: 4px; left: 0; color: var(--muted); font-size: 11px; font-weight: 600; }
.wave-empty { display: grid; place-items: center; height: 60px; border: 1px dashed var(--line); border-radius: 4px; color: var(--muted); font-size: 12px; }
.ex-caption { color: var(--ink-dim); font-size: 12px; line-height: 1.45; }
.ex-note { color: var(--muted); font-size: 11px; }

.peek {
  position: fixed;
  z-index: 20;
  width: 320px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
  pointer-events: none;
}
.peek .ex-media { height: 180px; border-radius: var(--radius-sm); }
.peek .ex-caption { margin: 10px 2px 2px; }
.peek .ex-note { margin: 2px; }

/* ================================================================== tools */

.stage-block { margin-bottom: 30px; }
.block-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 17px; font-weight: 700; }

.tools {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(208px, 1fr));
  gap: 10px;
}

.tool {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  font-family: var(--sans);
  text-align: left;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease;
}
.tool:hover { background: var(--panel-2); border-color: #34405a; }
.tool:focus-visible { outline: 2px solid var(--real); outline-offset: 2px; }
.tool[aria-pressed="true"] { border-color: var(--real); background: #15222a; box-shadow: inset 0 0 0 1px var(--real); }

.tool-name { font-size: 15px; font-weight: 700; }
.tool[aria-pressed="true"] .tool-name { color: var(--real); }
.tool-blurb { color: var(--ink-dim); font-size: 12px; line-height: 1.5; }
.tool-accepts { margin-top: auto; padding-top: 4px; color: var(--muted); font-size: 11px; font-weight: 600; text-transform: capitalize; }

.tool-intro {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
  align-items: center;
  margin-bottom: 30px;
  padding: 16px;
}
.intro-media .ex-media { height: 158px; border-radius: var(--radius-sm); }
.intro-name { margin: 0; font-size: 20px; font-weight: 800; }
.intro-blurb { margin: 4px 0 10px; color: var(--ink-dim); }
.intro-caption { margin: 0; color: var(--fill); font-size: 13px; }
.intro-caption .ex-note { color: var(--muted); }

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

.drop {
  position: relative;
  display: block;
  width: 100%;
  min-height: 200px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #141924 0%, #11161f 100%);
  cursor: pointer;
  overflow: hidden;
  transition: border-color .18s ease, background .18s ease;
}
.drop:hover, .drop:focus-visible { border-color: var(--real); }
.drop:focus-visible { outline: 2px solid var(--real); outline-offset: 3px; }
.drop[data-over="1"] { border-color: var(--fill); background: #1a1d20; }

.drop-idle {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 68px;
  opacity: .3;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.drop-inner { position: relative; padding: 38px 28px 76px; text-align: center; }
.drop-head { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.015em; }
.drop-sub { margin: 6px 0 18px; color: var(--muted); font-size: 13px; }
.drop-pick {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  color: var(--ink-dim);
  font-size: 13px;
  font-weight: 600;
}
.drop:hover .drop-pick { color: var(--ink); border-color: var(--real); }

.loaded {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--real);
  border-radius: var(--radius);
  background: var(--panel);
}
.loaded-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.loaded-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loaded-meta { color: var(--muted); font-size: 12px; }
.loaded .btn-quiet { margin-left: auto; flex: none; }

.linkrow { display: flex; gap: 10px; margin-top: 12px; }
.linkrow .text { flex: 1; min-width: 0; }
.linkrow .btn { flex: none; }
.link-out { margin: 10px 0 0; }
.btn-inline { margin-left: 6px; padding: 4px 10px; }

/* --------------------------------------------------------------- controls */

.controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(212px, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.field { min-width: 0; margin: 0; padding: 18px 20px; border: 0; background: var(--panel); }
fieldset.field legend { float: left; width: 100%; padding: 0; }
fieldset.field legend + * { clear: both; }

.field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.help {
  display: inline-grid;
  place-items: center;
  width: 20px; height: 20px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--ground);
  color: var(--real);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
}
.help:hover, .help[aria-expanded="true"] { border-color: var(--real); background: #15222a; }
.help:focus-visible { outline: 2px solid var(--real); outline-offset: 2px; }

.field-row { display: flex; align-items: center; gap: 10px; }
.field-out { min-width: 42px; color: var(--fill); font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.field-unit { color: var(--muted); font-size: 12px; }
.field-hint { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.field-hint.warn { color: var(--fill); }
.field-go { display: flex; flex-direction: column; justify-content: center; gap: 12px; }

input[type="range"] { flex: 1; height: 3px; appearance: none; background: var(--line); border-radius: 2px; }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 15px; height: 15px; border: 0; border-radius: 50%; background: var(--fill); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 15px; height: 15px; border: 0; border-radius: 50%; background: var(--fill); cursor: pointer; }
input[type="range"]:focus-visible { outline: 2px solid var(--real); outline-offset: 6px; }

.select, .text {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
}
.select:focus-visible, .text:focus-visible { outline: 2px solid var(--real); outline-offset: 1px; }
.text::placeholder { color: var(--muted); }

.modes { display: flex; flex-direction: column; gap: 6px; }
.mode { display: block; cursor: pointer; }
.mode input { position: absolute; opacity: 0; width: 0; height: 0; }
.mode-box {
  display: block;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--ground);
  color: var(--ink-dim);
  font-size: 13px;
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}
.mode:hover .mode-box { border-color: #34405a; }
.mode input:checked + .mode-box { border-color: var(--real); background: #15222a; color: var(--ink); }
.mode input:focus-visible + .mode-box { outline: 2px solid var(--real); outline-offset: 2px; }
.mode-off { cursor: not-allowed; }
.mode-off .mode-box { opacity: .5; }
.mode-off:hover .mode-box { border-color: var(--line); }
.mode-why { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.4; }

.toggle { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-box { width: 16px; height: 16px; flex: none; border: 1px solid var(--line); border-radius: 4px; background: var(--ground); }
.toggle input:checked + .toggle-box { background: var(--real); border-color: var(--real); }
.toggle input:focus-visible + .toggle-box { outline: 2px solid var(--real); outline-offset: 2px; }
.toggle-text { font-size: 13px; }

/* examples strip under the settings */
.ex-strip { margin-top: 12px; padding: 18px 20px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #121722; }
.ex-strip-head { margin: 0 0 14px; color: var(--ink-dim); font-size: 13px; }
.ex-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.ex-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  font-family: var(--sans);
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease;
}
.ex-tile:hover { border-color: #34405a; }
.ex-tile[aria-pressed="true"] { border-color: var(--real); box-shadow: inset 0 0 0 1px var(--real); }
.ex-tile:disabled { opacity: .45; cursor: not-allowed; }
.ex-tile .ex-media { height: 150px; border-radius: var(--radius-sm); }
.ex-tile-label { padding: 0 4px; font-size: 13px; font-weight: 700; }
.ex-tile .ex-caption { padding: 0 4px 4px; }

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

.progress { display: flex; flex-direction: column; gap: 6px; }
.progress-track { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--fill); transition: width .2s linear; }
.progress-sweep { height: 100%; width: 34%; background: var(--fill); animation: sweep 1.1s ease-in-out infinite; }
@keyframes sweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(340%); }
}
.progress-text { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }

.error {
  margin: 0 0 22px;
  padding: 12px 16px;
  border: 1px solid #47262a;
  border-left: 3px solid var(--bad);
  border-radius: var(--radius-sm);
  background: #1d151a;
  color: #f0b3b3;
  font-size: 13px;
}
.error-detail {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 4px;
  background: #140f13;
  color: #c99;
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ----------------------------------------------------------------- results */

.results { display: flex; flex-direction: column; gap: 22px; margin-top: 30px; }

.readout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.col { padding: 20px 22px 22px; background: var(--panel); }
.col-head { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; color: var(--ink-dim); font-size: 14px; font-weight: 700; }

.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot-real { background: var(--real); }
.dot-fill { background: var(--fill); }
.dot-ok { background: var(--ok); }

.stats { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 0; }
.stats dt { color: var(--muted); font-size: 13px; }
.stats dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.stats dd.up { color: var(--fill); }
.stats dd.down { color: var(--ok); }

.preview { display: flex; justify-content: center; padding: 20px 22px; background: #0b0f16; }
.preview video, .preview img { max-width: 100%; max-height: 60vh; border-radius: 4px; }
.preview audio { width: 100%; }

.media { margin-bottom: 30px; }
.mediastats { grid-template-columns: max-content 1fr; padding: 16px 22px 20px; }
.mediastats dd { text-align: left; }

/* ------------------------------------------------------------------- panel */

.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.panel-head { padding: 18px 22px 14px; border-bottom: 1px solid var(--line-soft); }
.panel-title { margin: 0; color: var(--ink); font-size: 15px; font-weight: 700; }
.panel-sub { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.panel-foot { padding: 16px 22px 18px; border-top: 1px solid var(--line-soft); }

.actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.verify-out { color: var(--muted); font-size: 13px; }
.verify-out[data-state="ok"] { color: var(--ok); }
.verify-out[data-state="warn"] { color: var(--fill); }
.verify-out[data-state="bad"] { color: var(--bad); }

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

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.signals { margin: 0; padding: 6px 22px 16px; list-style: none; }
.signals li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}
.signals li:last-child { border-bottom: 0; }
.signals li.empty { color: var(--muted); }

.bullet { width: 8px; height: 8px; margin-top: 7px; flex: none; border-radius: 50%; }
.bullet-ok { background: var(--ok); }
.bullet-warn { background: var(--fill); }
.bullet-bad { background: var(--bad); }

.sig-text { flex: 1; font-weight: 600; }
.sig-note { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 400; }
.sig-value { color: var(--fill); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sig-value.plus { color: var(--ok); }

/* ================================================================= pricing */

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.plan {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.plan-featured { border-color: var(--real); box-shadow: 0 0 0 1px var(--real), 0 20px 40px rgba(100, 210, 232, .06); }
.plan-free { background: linear-gradient(160deg, #15222a 0%, var(--panel) 70%); }
.plan-name { color: var(--ink-dim); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.plan-amount { color: var(--ink-dim); }
.plan-amount b { color: var(--fill); font-size: 34px; font-weight: 800; letter-spacing: -0.02em; margin-right: 4px; }
.plan-price { font-size: 18px; font-weight: 700; }
.plan-points { flex: 1; margin: 8px 0 14px; padding: 0; list-style: none; color: var(--ink-dim); font-size: 13px; }
.plan-points li { padding: 3px 0 3px 20px; position: relative; }
.plan-points li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.plan .btn { align-self: flex-start; }
.plan-note { color: var(--ok); font-size: 13px; }

.faq { margin: 0; padding: 12px 22px 20px; }
.faq dt { margin-top: 14px; font-weight: 700; }
.faq dt:first-child { margin-top: 4px; }
.faq dd { margin: 4px 0 0; color: var(--ink-dim); font-size: 13px; }

/* ================================================================= profile */

.profile-head { display: flex; align-items: center; gap: 20px; margin-bottom: 26px; }
.profile-id { flex: 1; min-width: 0; }
.profile-id .page-title { overflow: hidden; text-overflow: ellipsis; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .kpis { grid-template-columns: 1fr 1fr; } }
.kpi { display: flex; flex-direction: column; gap: 2px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.kpi-label { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.kpi-value { color: var(--fill); font-size: 30px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi-sub { color: var(--ink-dim); font-size: 13px; }
.kpi-link { margin-top: 8px; font-size: 13px; font-weight: 600; text-decoration: none; }
.meter { height: 6px; margin-top: 10px; border-radius: 3px; background: var(--line); overflow: hidden; }
.meter-fill { height: 100%; border-radius: 3px; background: var(--ok); }

.bars { margin: 0; padding: 10px 22px 18px; list-style: none; }
.bar { display: grid; grid-template-columns: 150px 1fr 40px 60px; align-items: center; gap: 12px; padding: 8px 0; }
.bar.empty { display: block; color: var(--muted); }
.bar-name { color: var(--ink); font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-name:hover { color: var(--real); }
.bar-track { height: 8px; border-radius: 4px; background: var(--line-soft); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--real), var(--fill)); }
.bar-value { color: var(--fill); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.bar-runs { color: var(--muted); font-size: 12px; }

.danger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding: 20px 22px;
  border-color: #47262a;
}
.danger .panel-sub { max-width: 520px; }
.danger-form { display: flex; gap: 10px; flex: 1 1 360px; max-width: 480px; }
.danger-form .text { flex: 1; min-width: 0; }
.btn-danger { flex: none; background: transparent; border-color: #6b2e33; color: #f0b3b3; }
.btn-danger:hover { background: #3a1d22; border-color: var(--bad); color: #fff; }

/* =================================================================== legal */

.legal { max-width: 760px; }
.legal-meta { margin: 6px 0 28px; color: var(--muted); }
.legal h2 { margin: 36px 0 10px; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.legal h3 { margin: 20px 0 6px; font-size: 15px; font-weight: 700; }
.legal p, .legal li { color: var(--ink-dim); }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
.legal li { margin: 6px 0; }
.legal b { color: var(--ink); }
.legal code { padding: 1px 6px; border-radius: 4px; background: var(--panel-2); color: var(--ink); font-size: 13px; }
.legal-summary { padding: 18px 24px 8px; background: linear-gradient(160deg, #15222a 0%, var(--panel) 70%); }
.legal-summary h2 { margin-top: 0; font-size: 16px; }
.legal-todo { padding: 1px 6px; border-radius: 4px; background: #4a3413; color: var(--fill); font-size: 12px; }

.consent { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.consent a { color: var(--ink-dim); }

/* ------------------------------------------------------------------ footer */

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 72px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 13px;
}
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--ink-dim); text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* ------------------------------------------------------------------- toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 30;
  max-width: calc(100vw - 32px);
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--real);
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  color: var(--ink);
  font-size: 13px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .4);
  transform: translateX(-50%);
}

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

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-bottom: 36px; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .shell { padding: 0 16px 32px; }
  .topbar { flex-wrap: wrap; gap: 12px 16px; }
  .nav { order: 3; width: 100%; }
  .readout, .grid2 { grid-template-columns: 1fr; }
  .drop-head { font-size: 22px; }
  .tools { grid-template-columns: 1fr 1fr; }
  .tool { padding: 12px 14px; }
  .tool-blurb, .tool-accepts { display: none; }
  .tool-intro { grid-template-columns: 1fr; }
  .intro-media .ex-media { height: 190px; }
  .section { margin-top: 44px; }
  .cta-band { padding: 22px; }
  .bar { grid-template-columns: 110px 1fr 32px; }
  .bar-runs { display: none; }
  .profile-head { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
