/* Signal Visor micro-site. Same layout as the sibling AudioLab, RF Lab and BodeLab sites so the
   author's tools read as one family; the palette is this application's own, taken from its
   Studio Dark theme and from the logo — cyan on a very dark navy — so the page and the window
   look like the same thing. Green is the envelope colour from the plots and is used here the
   same way: for what is verified, never for chrome. */
:root{
  --bg:#0A1019;          /* SurfaceBrush */
  --bg-deep:#05090E;     /* PlotBrush: the plot background, darker than the panels */
  --panel:#0F1824;       /* PanelBrush */
  --raised:#17222F;      /* RaisedBrush */
  --cyan:#00DAEE;        /* AccentBrush, the logo's cyan */
  --cyan-soft:#6FF0FA;
  --cyan-ink:#06222A;    /* AccentTextBrush: text that sits on cyan */
  --green:#5EE0A8;       /* EnvelopeBrush */
  --amber:#FFC65C;       /* CursorABrush */
  --beta-orange:#FFAD66; /* Development status badge */
  --link:#8FD3FF;
  --text:#E9EFF4;        /* TextBrush */
  --text-bright:#FFFFFF;
  --text-dim:#8796A5;    /* MutedTextBrush */
  --text-faint:#5A6978;  /* FaintTextBrush */
  --line:#25323F;        /* BorderBrush */
  --card:rgba(255,255,255,.03);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:'Inter',system-ui,-apple-system,Segoe UI,sans-serif;
  background:var(--bg);
  color:var(--text);
  min-height:100vh;
  -webkit-font-smoothing:antialiased;
}
a{color:var(--cyan);text-decoration:none}
a:hover{color:var(--cyan-soft)}

/* ---------- Top nav ---------- */
.topnav{
  max-width:1000px;margin:0 auto;padding:22px 28px;
  display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:16px;
}
.brand{display:flex;align-items:center;gap:10px;font-weight:600;font-size:1.25rem;color:var(--text-bright)}
.brand img{width:32px;height:32px;border-radius:8px}
.navlinks{display:flex;gap:22px;font-size:.9rem}
.navlinks a{color:var(--text-dim)}
.navlinks a.active,.navlinks a:hover{color:var(--cyan)}

/* Mobile nav: CSS-only checkbox toggle, no JS. */
.nav-toggle-checkbox{display:none}
.nav-toggle{display:none;flex-direction:column;justify-content:center;gap:5px;width:26px;height:22px;cursor:pointer}
.nav-toggle span{display:block;height:2px;background:var(--text-bright);border-radius:1px}
@media(max-width:820px){
  .nav-toggle{display:flex}
  .navlinks{
    display:none;flex-direction:column;gap:2px;width:100%;
    order:3;margin-top:8px;padding-top:12px;border-top:1px solid var(--line);
  }
  .nav-toggle-checkbox:checked ~ .navlinks{display:flex}
  .navlinks a{padding:8px 4px}
}

/* ---------- Hero ---------- */
.hero-wrap{max-width:800px;margin:0 auto;padding:48px 28px 0;text-align:center}
.hero-logo{
  width:96px;height:96px;margin:0 auto 24px;display:block;
  filter:drop-shadow(0 16px 40px rgba(0,218,238,.25));
}
.hero-eyebrow{
  font-size:.72rem;letter-spacing:.32em;text-transform:uppercase;
  color:var(--cyan);font-weight:600;display:block;margin-bottom:16px;
}
.hero-h1{font-size:clamp(2rem,5vw,3rem);font-weight:700;line-height:1.15;color:var(--text-bright)}
.hero-beta{display:inline-block;margin:0 0 18px;padding:7px 13px;border:1px solid var(--beta-orange);border-radius:999px;background:rgba(255,173,102,.08);color:var(--beta-orange);font-size:.78rem;font-weight:600;line-height:1.5}
.hero-origin{margin:14px auto 0;max-width:560px;color:var(--text-dim);font-size:.9rem;line-height:1.6}
.hero-lede{margin:18px auto 0;max-width:560px;color:var(--text-dim);font-size:1.02rem;line-height:1.6}
.hero-btns{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin-top:32px}
.hero-measures{margin:28px 0 10px;font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;color:var(--cyan);font-weight:600}
.device-list{list-style:none;padding:0;margin:0 auto;max-width:720px;display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.device-list li{display:inline-block;padding:6px 14px;border:1px solid var(--line);border-radius:999px;background:var(--card);color:var(--text-dim);font-size:.86rem;cursor:default}
.device-list code{color:inherit}
.hero-note{margin-top:16px;font-size:.78rem;color:var(--text-dim)}

.btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:12px 22px;border-radius:10px;font-size:.92rem;font-weight:600;
  border:1px solid transparent;cursor:pointer;transition:all .18s;
}
.btn-primary{background:var(--cyan);color:var(--cyan-ink)}
.btn-primary:hover{background:var(--cyan-soft);color:var(--cyan-ink)}
.btn-ghost{background:transparent;border-color:var(--line);color:var(--text)}
.btn-ghost:hover{border-color:var(--cyan);color:var(--cyan)}

/* ---------- The signal strip under the hero ----------
   A drawing, not a screenshot: a burst of pulses as the timeline shows them, over the spectrum
   band. Screenshots of the real window go in imgs/ and replace this; until they exist, nothing
   here pretends to be one. */
.strip-wrap{max-width:760px;margin:44px auto 0;padding:0 28px}
.strip-wrap--shot{max-width:1120px}
img{max-width:100%;height:auto}
.strip img{display:block;width:100%;height:auto}
a.strip{display:block}
@media(max-width:700px){.strip-wrap--shot{padding:0 12px}.strip-caption{padding:0 16px}}
.strip{
  border-radius:14px;overflow:hidden;border:1px solid var(--line);
  background:var(--bg-deep);box-shadow:0 40px 90px -40px rgba(0,0,0,.9);
}
.strip-bar{display:flex;align-items:center;gap:8px;padding:10px 16px;background:rgba(255,255,255,.03);border-bottom:1px solid var(--line)}
.strip-dot{width:11px;height:11px;border-radius:50%}
.strip-dot:nth-child(1){background:#FF7A7A}
.strip-dot:nth-child(2){background:var(--amber)}
.strip-dot:nth-child(3){background:var(--green)}
.strip-bar-title{flex:1;text-align:center;font-size:.76rem;color:var(--text-dim);letter-spacing:.06em}
.strip svg{display:block;width:100%;height:auto;background:var(--bg-deep)}
.strip-legend{
  display:flex;gap:18px;justify-content:center;flex-wrap:wrap;
  padding:10px 12px;background:rgba(255,255,255,.03);border-top:1px solid var(--line);
  font-size:.74rem;color:var(--text-dim);
}
.strip-legend span{display:inline-flex;align-items:center;gap:6px}
.strip-legend i{width:10px;height:3px;border-radius:2px;display:inline-block}
.strip-caption{max-width:640px;margin:16px auto 0;padding:0 28px;text-align:center;font-size:.82rem;color:var(--text-dim)}

/* ---------- Sections and cards ---------- */
.section{max-width:1000px;margin:0 auto;padding:64px 28px}
.section-title{font-size:1.6rem;font-weight:700;color:var(--text-bright);text-align:center;margin-bottom:36px}
.section-copy{max-width:660px;margin:0 auto;color:var(--text-dim);font-size:.98rem;line-height:1.7;text-align:center}
.section-copy + .section-copy{margin-top:14px}
.section-more{text-align:center;margin-top:24px;font-size:.92rem}
.feature-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:24px}
.card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;max-width:900px;margin:0 auto}
@media(max-width:680px){.card-grid{grid-template-columns:1fr}}
.feature-item{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:22px}
.feature-item h3{color:var(--cyan-soft);font-size:1.05rem;margin-bottom:8px}
.feature-item p{color:var(--text-dim);font-size:.9rem;line-height:1.55}
.feature-item p + p{margin-top:10px}
.card-kicker{display:block;font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:var(--text-dim);margin-bottom:6px}
.feature-list{margin:0;padding-left:18px;color:var(--text-dim);font-size:.9rem;line-height:1.55}
.feature-list li + li{margin-top:6px}

/* Status pills: verified, draft, planned. The same three words the application uses, so the page
   and the window cannot drift apart. */
.pill{display:inline-block;padding:2px 9px;border-radius:999px;font-size:.7rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.pill-verified{background:rgba(94,224,168,.12);color:var(--green);border:1px solid rgba(94,224,168,.35)}
.pill-draft{background:rgba(255,198,92,.1);color:var(--amber);border:1px solid rgba(255,198,92,.3)}
.pill-planned{background:var(--card);color:var(--text-dim);border:1px solid var(--line)}

.note{
  max-width:720px;margin:26px auto 0;padding:14px 20px;
  border:1px dashed var(--line);border-radius:12px;background:var(--card);
  text-align:left;font-size:.86rem;color:var(--text);line-height:1.6;
}
.note .note-title{margin-bottom:6px;font-size:.74rem;letter-spacing:.08em;text-transform:uppercase;color:var(--cyan);font-weight:600}
.note p{margin:0}
.note p + p{margin-top:8px}

/* ---------- Manual / prose ---------- */
.prose{max-width:780px;margin:0 auto;padding:24px 28px 90px;line-height:1.7;font-size:.98rem}
.prose h1{font-size:2rem;color:var(--text-bright);margin:0 0 10px}
.prose h2{
  font-size:1.4rem;font-weight:700;color:var(--cyan-soft);
  margin:40px 0 14px;padding-bottom:8px;border-bottom:1px solid var(--line);
}
.prose h2:first-child{margin-top:0}
.prose h3{font-size:1.1rem;color:var(--text-bright);margin:26px 0 10px}
.prose p{margin:0 0 14px;color:var(--text)}
.prose ul,.prose ol{margin:0 0 14px;padding-left:22px;color:var(--text)}
.prose li{margin-bottom:6px}
.prose img{max-width:100%;height:auto;display:block;margin:14px auto;border-radius:8px}
.prose strong{color:var(--text-bright);font-weight:700}
.prose a{color:var(--link);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.prose a:hover{color:var(--cyan);text-decoration-thickness:2px}
.prose a strong,.prose strong a{color:inherit}
/* A button inside running text keeps its own colours: the link rule above would otherwise paint its
   label in link blue on the cyan face, which is hard to read. */
.prose a.btn{text-decoration:none}
.prose a.btn-primary,.prose a.btn-primary:hover{color:var(--cyan-ink)}
.prose a.btn-ghost{color:var(--text)}
.prose a.btn-ghost:hover{color:var(--cyan)}
.prose code{
  background:rgba(255,255,255,.08);padding:1px 6px;border-radius:4px;
  font-family:Consolas,'Cascadia Code',monospace;font-size:.86em;color:var(--text-bright);
}
.prose kbd{
  display:inline-block;padding:1px 7px;border-radius:5px;border:1px solid var(--line);
  border-bottom-width:2px;background:var(--raised);color:var(--text-bright);
  font-family:Consolas,'Cascadia Code',monospace;font-size:.82em;
}
.prose pre{background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:10px 14px;overflow-x:auto;font-size:.85rem;line-height:1.45;margin:6px 0 14px}
.prose pre code{background:none;padding:0}
.prose table{display:block;width:100%;overflow-x:auto;border-collapse:collapse;margin:12px 0 20px}
.prose th,.prose td{padding:9px 12px;border:1px solid var(--line);text-align:left;vertical-align:top;min-width:150px}
.prose th{color:var(--text-bright);background:var(--panel)}
.prose table.fit{display:table}
.prose table.fit th,.prose table.fit td{min-width:0;padding:8px 10px}
@media(max-width:820px){.prose table.fit{display:block}}
/* On a phone the 150 px column minimum made the protocol tables twice the screen wide; let the
   cells wrap instead, so a table needs no sideways scrolling. */
@media(max-width:700px){
  .prose th,.prose td{min-width:0;padding:7px 8px;font-size:.9rem;overflow-wrap:break-word}
  .prose .pill{white-space:nowrap}

  /* The four-column protocol tables do not fit a phone even wrapped; each row becomes a card:
     name and status on the first line, the frame and the notes below at full width. */
  .prose table.protocol-table,.prose table.protocol-table tbody{display:block;border:0}
  .prose table.protocol-table tr:first-child{display:none}
  .prose table.protocol-table tr{
    display:grid;grid-template-columns:1fr auto;gap:4px 12px;
    padding:14px 2px;border-bottom:1px solid var(--line);
  }
  .prose table.protocol-table td{display:block;border:0;padding:0;font-size:.95rem}
  .prose table.protocol-table td:nth-child(2){align-self:start}
  .prose table.protocol-table td:nth-child(3){grid-column:1 / -1;color:var(--text-dim);font-size:.85rem}
  .prose table.protocol-table td:nth-child(4){grid-column:1 / -1}
}
.prose blockquote{
  margin:0 0 16px;padding:12px 18px;border-left:3px solid var(--cyan);
  background:var(--card);border-radius:0 8px 8px 0;color:var(--text);
}
.prose blockquote p:last-child{margin-bottom:0}

/* The numbered call-outs that tie a table row to a part of the window. */
.prose .num{
  display:inline-block;min-width:1.6em;height:1.6em;line-height:1.6em;border-radius:50%;
  background:var(--cyan);color:var(--cyan-ink);text-align:center;font-size:.8em;font-weight:700;margin-right:6px;
}

/* The path box at the top of the manual. */
.path-box{border:1px solid var(--line);border-radius:12px;background:var(--card);padding:16px 22px;margin:18px 0 28px}
.path-box p:first-child{margin-top:0}
.path-box p:last-child{margin-bottom:0}

/* FAQ-style accordion, also used for the manual's optional detail. */
.prose details{border:1px solid var(--line);border-radius:10px;margin:0 0 12px;background:var(--card);overflow:hidden}
.prose details > summary{
  list-style:none;cursor:pointer;padding:14px 44px 14px 18px;position:relative;
  font-size:1.02rem;font-weight:600;color:var(--text-bright);
}
.prose details > summary::-webkit-details-marker{display:none}
.prose details > summary::after{
  content:"+";position:absolute;right:18px;top:50%;transform:translateY(-50%);
  color:var(--cyan);font-size:1.2rem;font-weight:700;line-height:1;
}
.prose details[open] > summary::after{content:"\2212"}
.prose details[open] > summary{border-bottom:1px solid var(--line)}
.prose details > summary:hover{color:var(--cyan-soft)}
.prose details > *:not(summary){margin-left:18px;margin-right:18px}
.prose details > summary + *{margin-top:14px}
.prose details > *:last-child{margin-bottom:18px}

/* A table of contents at the top of a long page. */
.prose details.toc{margin:4px 0 26px;font-size:.9rem}
.prose details.toc > summary{padding:10px 40px 10px 16px;font-size:.9rem}
.toc-list{display:flex;flex-wrap:wrap;gap:4px 18px;margin:10px 16px 14px}
.toc-list a{color:var(--text-dim);text-decoration:none}
.toc-list a:hover{color:var(--cyan)}

/* ---------- Download page ---------- */
.download-box{
  max-width:640px;margin:0 auto;text-align:center;
  background:var(--card);border:1px solid var(--line);border-radius:16px;padding:36px 32px;
}
.download-box + .download-box{margin-top:20px}
.download-box h3{color:var(--text-bright);font-size:1.1rem;margin-bottom:10px}
.download-box p{color:var(--text-dim);font-size:.92rem;line-height:1.65;margin:0}
.download-box p + p{margin-top:10px}
.download-box--primary{border-color:var(--cyan);background:rgba(0,218,238,.05)}
.download-badge{
  display:inline-flex;align-items:center;gap:6px;
  background:var(--cyan);color:var(--cyan-ink);font-size:.72rem;font-weight:700;
  padding:4px 12px;border-radius:999px;margin-bottom:16px;letter-spacing:.02em;
}
.version-note{margin-top:16px;font-size:.82rem;color:var(--text-dim)}

/* ---------- Footer ---------- */
footer{
  text-align:center;padding:36px 24px 56px;color:var(--text-dim);font-size:.8rem;
  border-top:1px solid var(--line);max-width:1000px;margin:40px auto 0;
}
footer a{color:var(--cyan)}
footer a:hover{color:var(--cyan-soft)}

@media(max-width:600px){
  .hero-wrap{padding:36px 18px 0}
  .strip-wrap{padding:0 12px;margin-top:32px}
  .prose{padding:20px 18px 60px}
  .download-box{padding:28px 20px}
  .section{padding:48px 18px}
  .section-copy{font-size:.9rem}
}

/* ---------- Release notes on the download page (shape from AudioLab) ---------- */
.changelog{max-width:780px;margin:0 auto;padding:0 28px 60px}
.changelog-subtitle{text-align:center;color:var(--text-dim);margin:0 0 22px}
.changelog details{border:1px solid var(--line);border-radius:12px;margin-bottom:10px;background:var(--card);overflow:hidden}
.changelog summary{
  list-style:none;cursor:pointer;padding:16px 44px 16px 20px;position:relative;
  font-family:'Cascadia Code',Consolas,monospace;font-weight:600;color:var(--text-bright);
}
.changelog summary::-webkit-details-marker{display:none}
.changelog summary::after{content:"+";position:absolute;right:20px;top:14px;color:var(--text-dim);font-size:1.1rem}
.changelog details[open] summary::after{content:"\2212"}
.changelog-prompt{color:var(--cyan)}
.changelog-inner{padding:4px 20px 20px;line-height:1.6;font-size:.95rem}
.changelog-inner ul{list-style:none;margin:0;padding:0}
.changelog-inner li{color:var(--text);margin:0 0 8px}
.changelog-inner li:last-child{margin-bottom:0}
.changelog-inner li::before{content:"- ";color:var(--cyan)}
.changelog-inner strong{color:var(--text-bright)}
.changelog-inner code{font-family:Consolas,'Cascadia Code',monospace;font-size:.88em;color:var(--text-bright)}

/* ---------- Illustration under the hero ---------- */
.hero-illustration{max-width:1120px;margin:44px auto 0;padding:0 28px}
.hero-illustration img{display:block;width:100%;height:auto;border-radius:14px;border:1px solid var(--line);
  box-shadow:0 40px 90px -40px rgba(0,0,0,.9)}
@media(max-width:700px){.hero-illustration{padding:0 12px;margin-top:28px}}
