/* FoxSDR site — the palette is taken from the application icon: fox orange on
   dark slate, with the spectrum bars as negative space. */

:root {
  --bg:      #0f1319;
  --bg2:     #141a22;
  --panel:   #171e27;
  --line:    #242e3a;
  --ink:     #e9eef5;
  --dim:     #93a1b3;
  --fox:     #e8722c;
  --fox-dim: #b8551d;
  --good:    #3fb950;
  --warn:    #d29922;
  --radius:  12px;
  --wrap:    1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 ui-sans-serif, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: var(--fox); }
code {
  font: 0.85em/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace;
  background: #ffffff0d; border: 1px solid var(--line);
  padding: .1em .35em; border-radius: 5px; word-break: break-all;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--dim); }
.small { font-size: 13px; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--fox);
  color: #12161c; padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* --- navigation ------------------------------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 22px;
  padding: 12px 24px;
  background: #0f1319e6;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-size: 18px; letter-spacing: -0.01em;
}
.brand img { border-radius: 7px; display: block; }
.brand b { color: var(--fox); font-weight: 700; }
.nav nav { display: flex; gap: 20px; margin-left: 10px; }
.nav nav a { color: var(--dim); text-decoration: none; font-size: 15px; }
.nav nav a:hover { color: var(--ink); }
.nav > .btn { margin-left: auto; }
@media (max-width: 820px) {
  .nav nav { display: none; }
  .nav > .btn { margin-left: auto; }
}

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

.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  background: var(--fox); color: #12161c; font-weight: 600;
  border: 1px solid var(--fox); border-radius: 10px;
  padding: 12px 22px; text-decoration: none; cursor: pointer;
  font-size: 16px; font-family: inherit;
  transition: transform .12s ease, background .12s ease;
}
.btn:hover { background: #f0833f; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn small { font-weight: 500; font-size: 12px; opacity: .75; }
.btn-lg { padding: 15px 30px; font-size: 17px; }
.btn-sm { padding: 8px 16px; font-size: 14px; border-radius: 8px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #ffffff0d; border-color: var(--dim); }

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

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: .55;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, #0f1319f2 0%, #0f1319b8 45%, #0f1319 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: var(--wrap); margin: 0 auto; padding: 96px 24px 84px;
}
.eyebrow {
  color: var(--fox); font-size: 13px; text-transform: uppercase;
  letter-spacing: .12em; font-weight: 600; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(38px, 6.5vw, 68px); font-weight: 700; margin-bottom: 20px; }
.hero h1 em { color: var(--fox); font-style: normal; }
.lede { font-size: clamp(17px, 2vw, 20px); color: #c6d2e0; max-width: 62ch; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }
.trust {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  list-style: none; padding: 0; margin: 0; color: var(--dim); font-size: 14px;
}
.trust li::before { content: "✓ "; color: var(--good); font-weight: 700; }

/* --- number strip ----------------------------------------------------- */

.strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px; background: var(--line);
  border-bottom: 1px solid var(--line);
}
.strip div { background: var(--bg2); padding: 26px 24px; text-align: center; }
.strip b { display: block; font-size: 30px; color: var(--fox); letter-spacing: -.02em; }
.strip span { color: var(--dim); font-size: 13px; text-transform: uppercase; letter-spacing: .07em; }

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

section.wrap, .band { padding-top: 76px; padding-bottom: 76px; }
.band { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band > .wrap { padding: 0; }
.section-title { font-size: clamp(26px, 3.6vw, 36px); }
.section-lede { color: var(--dim); max-width: 68ch; font-size: 17px; margin-bottom: 34px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 18px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--fox-dim); transform: translateY(-2px); }
.card h3 { font-size: 19px; }
.card p { color: var(--dim); margin: 0; font-size: 15px; }
.ico {
  width: 40px; height: 40px; border-radius: 10px; margin-bottom: 14px;
  background: #e8722c1f; display: grid; place-items: center;
}
.ico svg { width: 22px; height: 22px; fill: none; stroke: var(--fox); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* --- browser-access split --------------------------------------------- */

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.split p { color: var(--dim); }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { color: var(--dim); padding-left: 26px; position: relative; margin-bottom: 12px; font-size: 15px; }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--fox);
}
.ticks b { color: var(--ink); font-weight: 600; }

.mock {
  background: #0b0f14; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 20px 50px #0006;
}
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-bar span { margin-left: 10px; color: var(--dim); font: 12px ui-monospace, Consolas, monospace; }
.mock canvas { display: block; width: 100%; height: 210px; }
.mock-rows { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.mock-rows div { padding: 12px 10px; text-align: center; border-right: 1px solid var(--line); }
.mock-rows div:last-child { border-right: 0; }
.mock-rows span { display: block; color: var(--dim); font-size: 10px; letter-spacing: .1em; }
.mock-rows b { font-size: 14px; color: var(--fox); font-weight: 600; }

/* --- plugins ---------------------------------------------------------- */

.plugins { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.plug { border: 1px solid var(--line); border-radius: 10px; padding: 18px 18px 16px; background: var(--panel); }
.plug h3 { font-size: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.plug p { color: var(--dim); font-size: 14px; margin: 0; }
.tag {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
  padding: 3px 8px; border-radius: 999px; border: 1px solid;
}
.tag.ok { color: var(--good); border-color: #3fb95055; background: #3fb9501a; }
.tag.warn { color: var(--warn); border-color: #d2992255; background: #d299221a; }
.fineprint { color: var(--dim); font-size: 14px; margin-top: 26px; max-width: 78ch; }

/* --- honesty grid ----------------------------------------------------- */

.honest { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.honest > div { border-left: 2px solid var(--fox); padding-left: 18px; }
.honest h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--fox); }
.honest p { color: var(--dim); font-size: 15px; margin: 0; }

/* --- download --------------------------------------------------------- */

.dlcard {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--panel);
}
@media (max-width: 880px) { .dlcard { grid-template-columns: 1fr; } }
.dlmain { padding: 32px; }
.dlmain h3 { font-size: 24px; }
.dlmain > p { color: var(--dim); max-width: 52ch; }
.dlside { padding: 32px; background: #ffffff05; border-left: 1px solid var(--line); }
@media (max-width: 880px) { .dlside { border-left: 0; border-top: 1px solid var(--line); } }
.dlside h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.dlside ul { padding-left: 18px; margin: 0; }
.dlside li { color: var(--dim); font-size: 14px; margin-bottom: 12px; }
.dlside b { color: var(--ink); }
.hash { margin: 20px 0 0; font-size: 12px; color: var(--dim); }
.hash code { display: block; margin-top: 6px; padding: 8px 10px; }

/* Release channels. The label is deliberately quiet on stable and warmer on
   nightly: the visual weight should follow the risk, and the default download
   must not look like the adventurous one. */
.chan {
  display: inline-block; vertical-align: middle; margin-left: 10px;
  padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--dim); background: transparent;
}
.chan-n { color: #d9a441; border-color: #d9a441; }

/* Separated by a rule rather than a second card: it is an alternative to the
   button above it, not a second product. */
.nightly {
  margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line);
}
.nightly h4 { margin: 0 0 8px; font-size: 16px; }
.nightly > p { color: var(--dim); font-size: 14px; max-width: 60ch; margin: 0 0 16px; }
.nightly .btn { font-size: 13px; }
.nightly .hash { margin-top: 14px; }

.licence {
  margin-top: 26px; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 32px; background: var(--panel);
}
.licence h3 { font-size: 20px; color: var(--fox); }
.licence p { color: var(--dim); max-width: 80ch; }

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

.foot { border-top: 1px solid var(--line); padding: 54px 0 40px; background: var(--bg2); }
.footgrid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 34px; margin-bottom: 30px; }
@media (max-width: 760px) { .footgrid { grid-template-columns: 1fr; } }
.footgrid h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .09em; color: var(--dim); }
.footgrid a { display: block; color: var(--dim); text-decoration: none; font-size: 15px; margin-bottom: 8px; }
.footgrid a:hover { color: var(--fox); }
.footgrid .brand { margin-bottom: 12px; }
.footgrid .brand:hover { color: var(--ink); }
.foot .small { max-width: 78ch; }

/* --- consent banner --------------------------------------------------- */

.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40;
  max-width: 760px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: 0 18px 50px #0009;
}
.consent[hidden] { display: none; }
.consent b { display: block; margin-bottom: 4px; }
.consent p { color: var(--dim); font-size: 13.5px; margin: 0; }
.consent > div:first-child { flex: 1 1 380px; }
.consent-btns { display: flex; gap: 10px; margin-left: auto; }

/* --- privacy page ----------------------------------------------------- */

.doc { max-width: 780px; padding-top: 56px; padding-bottom: 80px; }
.doc h1 { font-size: 34px; }
.doc h2 { font-size: 20px; margin-top: 40px; color: var(--fox); }
.doc h3 { font-size: 16px; margin-top: 26px; }
.doc p, .doc li { color: var(--dim); }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; }
.doc th, .doc td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
.doc th { color: var(--ink); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.doc td { color: var(--dim); }
.doc .back { display: inline-block; margin-bottom: 24px; text-decoration: none; }

/* The browser section shows a real screenshot inside the same frame the
   drawn mock-up used, so it inherits the border and rounding rather than
   needing a layout of its own. */
.mock img { display: block; width: 100%; height: auto; border-radius: inherit; }

/* --- plugin cards ------------------------------------------------------
   Generated from the published catalogue, so the version, licence and ABI
   on the page cannot drift from what the application would actually
   install. The badges carry the honesty: what kind of plugin it is, how
   well it has been verified, and whether it shows a notice before it will
   install. */
.plug { display: flex; flex-direction: column; gap: 10px; transition: border-color .15s ease, transform .15s ease; }
.plug:hover { border-color: #3a4354; transform: translateY(-2px); }
.plug h3 { margin: 0; }
.plug-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.plug p { flex: 1 1 auto; }
.plug-foot {
  margin-top: 2px; padding-top: 10px; border-top: 1px solid var(--line);
  color: var(--dim); font: 11.5px ui-monospace, Consolas, monospace;
  letter-spacing: .02em;
}
.tag.cap     { color: var(--fox); border-color: #e8873a55; background: #e8873a14; }
.tag.neutral { color: var(--dim); border-color: var(--line); background: #ffffff08; }
.tag.note    { color: #8ab4f8; border-color: #8ab4f855; background: #8ab4f814; cursor: help; }

/* The browser screenshot runs the full width of the section. In the two-column
   split it rendered at roughly a third of its native size, which made the
   track list and the readouts unreadable - and those are the parts that show
   what the interface actually does. */
.browser-intro { max-width: 82ch; }
.mock-wide { margin-top: 34px; }
.mock-wide img { display: block; width: 100%; height: auto; }

/* --- beta programme: the drag-and-drop test board ---------------------- */

.beta { margin-top: 8px; }

.beta-board { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .beta-board { grid-template-columns: 1fr; } }

.beta-pool, .beta-mine {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 20px;
}
.beta-mine { border-color: var(--fox-dim); }
.beta-head h3 { font-size: 17px; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.beta-head p { color: var(--dim); font-size: 13.5px; margin: 0 0 14px; }
.beta-head kbd {
  font: 11px ui-monospace, Consolas, monospace; border: 1px solid var(--line);
  border-bottom-width: 2px; border-radius: 4px; padding: 1px 5px; color: var(--ink);
}
.pill {
  background: var(--fox); color: #12161c; font-size: 12px; font-weight: 700;
  min-width: 24px; text-align: center; border-radius: 999px; padding: 1px 8px;
}

.beta-tiles { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.beta-drop {
  min-height: 190px; border: 1px dashed var(--line); border-radius: 10px; padding: 12px;
  transition: border-color .15s ease, background .15s ease;
}
.beta-drop.over { border-color: var(--fox); background: #e8722c14; }
.beta-empty { color: var(--dim); font-size: 14px; margin: 0; align-self: center; }

/* The tiles are real buttons: draggable for a mouse, pressable for a phone or
   a keyboard. A div with a drag handler would work for neither. */
.tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  background: var(--bg2); color: var(--ink); font: inherit; text-align: left;
  border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px;
  cursor: grab; transition: border-color .12s ease, transform .12s ease, background .12s ease;
}
.tile:hover { border-color: var(--fox-dim); transform: translateY(-1px); }
.tile:focus-visible { outline: 2px solid var(--fox); outline-offset: 2px; }
.tile:active { cursor: grabbing; }
.tile span { font-size: 14px; font-weight: 600; }
.tile i { font-style: normal; font-size: 11px; color: var(--dim); letter-spacing: .04em; text-transform: uppercase; }
.tile.dragging { opacity: .4; }
.tile.need { border-color: #d2992255; }
.tile.need i { color: var(--warn); }
.beta-drop .tile { background: #e8722c1a; border-color: var(--fox-dim); }
.beta-drop .tile::after { content: "×"; position: absolute; }
.beta-drop .tile { position: relative; padding-right: 26px; }
.beta-drop .tile::after { right: 9px; top: 7px; color: var(--dim); font-size: 14px; }

.beta-fields {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px;
  margin-top: 18px;
}
.beta-fields label { display: flex; flex-direction: column; gap: 5px; }
.beta-fields label > span { font-size: 13px; color: var(--dim); }
.beta-fields b { color: var(--fox); }
.beta-wide { grid-column: 1 / -1; }
.beta-fields input[type=text], .beta-fields input[type=email], .beta-fields select, .beta-fields textarea {
  background: var(--bg); color: var(--ink); font: inherit; font-size: 15px;
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%;
}
.beta-fields textarea { resize: vertical; }
.beta-fields input:focus, .beta-fields select:focus, .beta-fields textarea:focus {
  outline: none; border-color: var(--fox);
}
.beta-fields input.bad { border-color: #f85149; }
.beta-check { flex-direction: row !important; align-items: flex-start; gap: 10px; }
.beta-check input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--fox); }
.beta-check span { font-size: 13.5px; color: var(--dim); }

.beta-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 18px; }
.beta-status { margin: 0; font-size: 14px; color: var(--dim); }
.beta-status.ok { color: var(--good); }
.beta-status.err { color: #f85149; }

/* --- beta portal: managing your own entry ------------------------------ */

.portal { margin-top: 22px; display: grid; gap: 16px; }
.portal[hidden] { display: none; }

.portal-key, .portal-report, .portal-mine {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px;
}
.portal-key { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; border-color: var(--fox-dim); }
@media (max-width: 780px) { .portal-key { grid-template-columns: 1fr; } }
.portal-key p { color: var(--dim); font-size: 13.5px; margin: 4px 0 0; }
.portal-copy { display: flex; gap: 8px; }
.portal-copy input {
  flex: 1; background: var(--bg); color: var(--dim); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 12px; font: 13px ui-monospace, Consolas, monospace;
}
.portal-report h3, .portal-mine h3 { font-size: 17px; }
.portal-lede { color: var(--dim); font-size: 14px; margin-bottom: 6px; }

.mine-list { display: grid; gap: 8px; }
.mine {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline;
  border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; background: var(--bg2);
}
.mine b { font-size: 14px; }
.mine .muted { font-size: 12.5px; }
/* A reply from us. Set apart with a rule and the accent colour so a tester can
   see at a glance that someone answered, rather than having to re-read the row
   they already wrote themselves. */
.mine-reply {
  grid-column: 1 / -1; margin: 6px 0 0; padding-left: 10px;
  border-left: 2px solid var(--fox); color: var(--ink); font-size: 13px;
}
.tag-status {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; border: 1px solid;
}
.st-open { color: var(--warn); border-color: #d2992255; background: #d299221a; }
.st-confirmed { color: #79c0ff; border-color: #58a6ff44; background: #58a6ff1a; }
.st-fixed, .st-logged { color: var(--good); border-color: #3fb95055; background: #3fb9501a; }
.st-wontfix, .st-duplicate { color: var(--dim); border-color: var(--line); }

.portal-leave { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.portal-leave .muted { font-size: 13px; }

/* Site-wide recall notice.
   Deliberately the first thing on the page and deliberately not dismissible:
   it exists because every build before 0.55.0 failed at the one job people
   installed it for, and most of the people affected never came back to find
   out. An apology behind a close button is not one. */
.recall {
  background: #3a1d1d; border-bottom: 1px solid #7a3a3a; color: var(--ink);
}
.recall-in {
  max-width: var(--wrap, 1080px); margin: 0 auto; padding: 14px 24px;
  font-size: 14px; line-height: 1.5;
}
.recall strong { display: block; margin-bottom: 6px; color: #ffb4b4; }
.recall p { margin: 0 0 6px; color: var(--dim); max-width: 92ch; }
.recall a { color: var(--fox); text-decoration: underline; }
.recall-ask { margin-bottom: 0; }
@media (max-width: 700px) { .recall-in { padding: 12px 16px; font-size: 13px; } }

/* "Open beta", stated up front rather than discovered.
   It sets the expectation the whole product depends on: people who know they
   are running a beta report faults, and people who think they are running a
   finished product uninstall it instead. That difference is not hypothetical
   here - the module-search fault reached every user precisely because nobody
   told us. */
.beta-tag {
  display: inline-block; margin-right: 10px; padding: 2px 9px;
  border-radius: 999px; background: var(--fox); color: #12161c;
  font-weight: 700; letter-spacing: .06em;
}
.beta-line {
  color: #c6d2e0; font-size: clamp(15px, 1.7vw, 17px); max-width: 62ch;
  margin: -6px 0 18px;
}
.beta-line b { color: var(--fox); }
