/* ==========================================================================
   SonusCue website: one stylesheet for every page.
   Layout: a dark stage. Content sits in a centered column; the hero and section
   headings get a cyan "spotlight" from above. Colors are the app's own.
   To change a color everywhere, change it here in :root.
   ========================================================================== */

:root {
  /* The app's colors (UI/Theme.vb and the toolbar icons) */
  --bg:        #16161a;   /* main window background */
  --panel:     #222228;   /* panels and pages */
  --row:       #2c2c34;   /* cue rows, fields */
  --control:   #3c3c46;   /* buttons */
  --line:      #3a3a46;   /* borders */
  --text:      #ebebf0;   /* bright text */
  --dim:       #9a9aa8;   /* secondary text */
  --cyan:      #50e4ff;   /* the SonusCue accent */
  --go:        #3cd26e;   /* GO / playing */
  --go-fill:   #26683a;
  --amber:     #ebaf32;   /* paused */
  --red:       #f04646;   /* panic / missing */
  --navy:      #232a4a;   /* the logo's background */

  /* Type */
  --font-display: "Big Shoulders Display", "Arial Narrow", "Segoe UI", sans-serif;
  --font-body:    "Figtree", "Segoe UI", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", Consolas, "Courier New", monospace;

  --radius: 10px;
  --wide: 1160px;    /* page width */
  --read: 68ch;      /* comfortable line length for paragraphs */

  color-scheme: dark;
}

/* ---------- Base ---------- */
* { 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(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.8rem, 7vw, 5rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); text-transform: uppercase; }
h3 { font-size: 1.45rem; font-weight: 700; }
p { margin: 0; }
p + p { margin-top: 0.8em; }
code, kbd, .mono { font-family: var(--font-mono); font-size: 0.88em; }
kbd {
  display: inline-block;
  padding: 0.05em 0.45em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--row);
  white-space: nowrap;
}

/* The side gutter for every full-width band */
.wrap {
  width: 100%;
  max-width: calc(var(--wide) + 2 * 16px);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Small uppercase label above a heading */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.6rem;
}
.lead { font-size: 1.15rem; color: var(--dim); max-width: var(--read); }
.dim { color: var(--dim); }

/* ---------- Header ---------- */
body::before {   /* paints behind a phone's status bar */
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg);
}
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap;
  padding-block: 0.7rem;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--text); text-decoration: none;
  font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; letter-spacing: 0.02em;
}
.brand img { width: 36px; height: 36px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; margin-left: auto; align-items: center; }
.site-nav a { color: var(--dim); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"] { box-shadow: 0 2px 0 var(--cyan); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.75rem 1.3rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--control);
  color: var(--text);
  font-weight: 700; text-decoration: none;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:hover { color: #fff; background: #4a4a56; transform: translateY(-1px); }
/* The download button looks like the app's GO button */
.btn-go {
  background: var(--go-fill);
  border-color: var(--go);
  box-shadow: 0 0 0 1px var(--go) inset, 0 0 24px rgba(60, 210, 110, 0.25);
  font-family: var(--font-display); font-size: 1.25rem; letter-spacing: 0.04em; text-transform: uppercase;
}
.btn-go:hover { background: #2f7d47; }
.btn-small { padding: 0.45rem 0.9rem; font-size: 0.9rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 4.5rem 3rem;
  /* the spotlight */
  background:
    radial-gradient(ellipse 55% 70% at 50% -10%, rgba(80, 228, 255, 0.20), transparent 70%),
    radial-gradient(ellipse 40% 50% at 85% 0%, rgba(60, 210, 110, 0.10), transparent 70%),
    var(--bg);
}
.hero .wrap { display: grid; gap: 2.5rem; }
.hero-text { display: grid; gap: 1.2rem; max-width: 52rem; }
.hero h1 .accent { color: var(--cyan); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.platform {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center;
  font-size: 0.95rem; color: var(--dim);
}
.pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 0.85rem; font-weight: 600; color: var(--text);
  white-space: nowrap;
}
.pill.soon { color: var(--dim); border-style: dashed; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--go); }
.pill.soon .dot { background: var(--amber); }

/* A screenshot with a frame like an app window */
.shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(80, 228, 255, 0.06);
}
.shot figcaption { padding: 0.6rem 0.9rem; font-size: 0.88rem; color: var(--dim); border-top: 1px solid var(--line); }
.hero .shot { box-shadow: 0 40px 120px -40px rgba(80, 228, 255, 0.35), 0 30px 80px -30px rgba(0, 0, 0, 0.9); }

/* ---------- Sections ---------- */
.section { padding-block: 4.5rem; }
.section.alt { background: var(--panel); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 0.8rem; margin-bottom: 2.5rem; max-width: 50rem; }

/* Two columns: text and a picture. Stacks on narrow screens. */
.split { display: grid; gap: 2.5rem; align-items: start; }
.split > * { min-width: 0; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1.15fr; }
  .split.flip > :first-child { order: 2; }
}

/* Feature cards */
.grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.card {
  background: var(--row);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.3rem 1.4rem;
  display: grid; gap: 0.5rem; align-content: start;
}
.card h3 { font-size: 1.35rem; }
.card p { color: var(--dim); font-size: 0.97rem; }

/* Feature boxes on the home page light up cyan under the mouse */
.features .card { transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease; }
.features .card:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: 0 12px 34px -10px rgba(80, 228, 255, 0.55);
}
.features .card:hover h3,
.features .card:hover p,
.features .card:hover .tag { color: #0d1d22; }
@media (prefers-reduced-motion: reduce) { .features .card, .features .card:hover { transition: none; transform: none; } }

/* Edition tags next to a feature */
.tag {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.12rem 0.45rem; border-radius: 4px;
  vertical-align: 0.15em;
  border: 1px solid currentColor;
}
.tag.free { color: var(--dim); }
.tag.pro { color: var(--cyan); }
.tag.ult { color: var(--go); }

/* Lists with a cue-style marker */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 0.55rem; height: 0.55rem; border-radius: 2px;
  background: var(--cyan); box-shadow: 0 0 8px rgba(80, 228, 255, 0.6);
}
.ticks strong { color: var(--text); }

/* Show control: in / out panels */
.io { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.io .card { padding: 1.5rem; }
.io h3 { display: flex; align-items: center; gap: 0.6rem; }
.io h3 .arrow { font-family: var(--font-mono); color: var(--cyan); font-size: 1.1rem; }

/* A block of example messages */
.console {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.75;
  background: #101014;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  overflow-x: auto;
  white-space: pre;
  color: var(--text);
  margin: 0;
}
.console .c { color: var(--dim); }
.console .k { color: var(--cyan); }

/* ---------- Editions table ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--row); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.97rem; }
.compare th, .compare td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.compare th:first-child, .compare td:first-child { text-align: left; width: 46%; }
.compare thead th { background: var(--panel); position: relative; }
.compare thead .ed-name { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; text-transform: uppercase; display: block; }
.compare thead .ed-price { font-family: var(--font-mono); font-size: 1.05rem; color: var(--cyan); display: block; font-variant-numeric: tabular-nums; }
.compare thead .ed-note { font-size: 0.8rem; color: var(--dim); font-weight: 400; display: block; }
.compare .group td {
  background: var(--panel); text-align: left;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan);
}
.compare tbody tr:last-child td { border-bottom: 0; }
.yes { color: var(--go); font-weight: 800; }
.no  { color: #5b5b68; }
.compare td small { display: block; color: var(--dim); font-size: 0.82rem; }
.fine { margin-top: 1.2rem; display: grid; gap: 0.4rem; color: var(--dim); font-size: 0.92rem; max-width: var(--read); }

/* ---------- Video slot ----------
   Paste a YouTube embed inside .video in place of the placeholder (see the
   comment next to each one). The box keeps a 16:9 shape. */
.video {
  position: relative; aspect-ratio: 16 / 9; max-width: 100%;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: #101014;
}
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 0.6rem; text-align: center; padding: 1rem;
  background: radial-gradient(ellipse at 50% 0%, rgba(80, 228, 255, 0.14), transparent 65%), #101014;
  color: var(--dim); font-size: 0.92rem;
}
.video-placeholder .play {
  width: 64px; height: 64px; margin: 0 auto; border-radius: 50%;
  border: 2px solid var(--go); background: var(--go-fill);
  display: grid; place-content: center; color: #fff; font-size: 1.4rem;
  box-shadow: 0 0 24px rgba(60, 210, 110, 0.35);
}
.video-placeholder strong { color: var(--text); font-size: 1.05rem; }
.video-card { display: grid; gap: 0.6rem; align-content: start; }
.video-card h3 { font-size: 1.25rem; }
.video-card p { color: var(--dim); font-size: 0.95rem; }

/* ---------- Download band ---------- */
.download {
  padding-block: 4.5rem;
  background:
    radial-gradient(ellipse 60% 90% at 50% 120%, rgba(60, 210, 110, 0.16), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--line);
}
.download .wrap { display: grid; gap: 1.5rem; justify-items: start; }
.reqs { display: grid; gap: 0.3rem; color: var(--dim); font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 2rem; color: var(--dim); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.site-footer a { color: var(--dim); }
.site-footer a:hover { color: var(--text); }

/* ---------- Support page ---------- */
.page-hero { padding-block: 3.5rem 2rem; background: radial-gradient(ellipse 55% 90% at 50% -20%, rgba(80, 228, 255, 0.16), transparent 70%), var(--bg); }
.page-hero .wrap { display: grid; gap: 0.9rem; }
.topics a.card { text-decoration: none; color: var(--text); transition: border-color 0.15s ease, transform 0.15s ease; }
.topics a.card:hover { border-color: var(--cyan); transform: translateY(-2px); }
.topics a.card h3 { color: var(--text); }

details.faq {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--row);
  padding: 0.2rem 1.2rem;
}
details.faq + details.faq { margin-top: 0.7rem; }
details.faq summary { cursor: pointer; padding: 0.8rem 0; font-weight: 700; list-style-position: outside; }
details.faq[open] summary { color: var(--cyan); }
details.faq > div { padding-bottom: 1rem; color: var(--dim); max-width: var(--read); }

.contact { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

/* ---------- Manual ---------- */
.manual { display: grid; gap: 2.5rem; padding-block: 2.5rem 4rem; }
.manual > * { min-width: 0; }
@media (min-width: 960px) {
  .manual { grid-template-columns: 250px 1fr; }
  .toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 80px); max-height: calc(100vh - 100px); overflow-y: auto; }
}
.toc { font-size: 0.93rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 1rem 1.1rem; align-self: start; }
.toc p { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 0.5rem; }
.toc ol { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.25rem; }
.toc a { color: var(--dim); text-decoration: none; }
.toc a:hover { color: var(--text); }

.doc { max-width: 52rem; }
.doc section { padding-top: 1rem; scroll-margin-top: 90px; }
.doc section + section { margin-top: 2.5rem; border-top: 1px solid var(--line); padding-top: 2.5rem; }
.doc h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 1rem; }
.doc h3 { margin: 1.8rem 0 0.6rem; font-size: 1.35rem; color: var(--text); scroll-margin-top: 90px; }
.doc p, .doc li { max-width: var(--read); }
.doc p { margin-bottom: 0.8rem; }
.doc ul, .doc ol { padding-left: 1.3rem; display: grid; gap: 0.35rem; margin: 0 0 1rem; }
.doc .shot { margin: 1.2rem 0 1.5rem; }
.doc .video { margin: 1.2rem 0 1.5rem; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.doc .table-scroll { margin: 0.8rem 0 1.4rem; }
.doc th, .doc td { text-align: left; padding: 0.55rem 0.85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { background: var(--panel); font-weight: 700; }
.doc tr:last-child td { border-bottom: 0; }
.note {
  border: 1px solid var(--line); border-left: 3px solid var(--cyan);
  background: var(--row); border-radius: 6px;
  padding: 0.8rem 1rem; margin: 1rem 0 1.2rem; font-size: 0.95rem;
}
.note.warn { border-left-color: var(--amber); }
.steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
.steps li { counter-increment: step; position: relative; padding-left: 2.4rem; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0.05rem;
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  display: grid; place-content: center;
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700;
  background: var(--panel); border: 1px solid var(--cyan); color: var(--cyan);
}

/* Six items: three across on wide screens, so no row is left half empty */
@media (min-width: 900px) { .grid.grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Screenshot zoom (js/zoom.js) ---------- */
.shot img { cursor: zoom-in; }
html:has(dialog.zoom[open]) { overflow: hidden; }
dialog.zoom {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(12, 12, 16, 0.97);
  color: var(--text);
}
dialog.zoom::backdrop { background: rgba(0, 0, 0, 0.6); }
dialog.zoom[open] { animation: zoom-in 0.18s ease-out; }
@keyframes zoom-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { dialog.zoom[open] { animation: none; } }
.zoom-stage {
  position: absolute;
  inset: calc(56px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 84px max(16px, env(safe-area-inset-left, 0px));
  display: grid; place-items: center;
  overflow: auto;
}
.zoom-stage img {
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 140px);
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--line), 0 30px 90px -20px rgba(80, 228, 255, 0.35);
}
dialog.zoom.can-zoom .zoom-stage img { cursor: zoom-in; }
/* Full size: the picture at its real size, scrolled and dragged around. */
dialog.zoom.full .zoom-stage { display: block; cursor: grab; }
dialog.zoom.full .zoom-stage img { max-width: none; max-height: none; margin: auto; cursor: zoom-out; }
.zoom-close {
  position: absolute;
  top: calc(10px + env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px));
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.zoom-close:hover { border-color: var(--cyan); color: var(--cyan); }
.zoom-caption, .zoom-hint {
  position: absolute; left: 16px; right: 16px; margin: 0; text-align: center;
}
.zoom-caption { bottom: 40px; font-weight: 600; }
.zoom-hint { bottom: 14px; color: var(--dim); font-size: 0.85rem; }
