/* VocaVibe Realtime — shared styling for the public documents.
   Editorial rather than boxy: the colour lives in the hero, the text sits on
   white, and notes are a rule instead of a panel. Palette and the light display
   weights follow the printed manual (docs/manual_he.html); the gradient and
   radii follow the app (lib/theme/vv_tokens.dart). */

:root {
  --ink: #16143c;
  --body: #3c3a63;
  --muted: #8886a8;
  --hair: #e7e6f1;
  --accent: #5b5bff;
  --violet: #a78bfa;
  --deep: #1e1b4b;
  --cyan: #22d3ee;
  --warn: #b45309;
  --wrap: 46rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--body);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── hero ──────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding: 34px 0 52px;
  background: linear-gradient(135deg, var(--deep) 0%, var(--accent) 58%, var(--violet) 100%);
  border-radius: 0 0 32px 32px;
}

/* The equalizer mark, blown up and barely there — the app's motif, not a
   decoration for its own sake. */
.hero::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -96px;
  width: 420px;
  height: 420px;
  transform: translateY(-50%);
  background: url(/img/mark.png) center / contain no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0.09;
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 1; }

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  border: 0;
}

.brand .wordmark {
  height: 25px;
  filter: brightness(0) invert(1);
}

.brand .rule {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.36);
}

.brand .product {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.1px;
}

.brand .product img {
  width: 26px;
  height: 26px;
  padding: 4px;
  background: #fff;
  border-radius: 8px;
}

.eyebrow {
  margin: 44px 0 0;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

h1 {
  margin: 8px 0 0;
  color: #fff;
  font-size: clamp(34px, 7vw, 50px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -1.2px;
}

.hero .meta {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14.5px;
}

.hero .meta code {
  background: rgba(255, 255, 255, 0.14);
  border: 0;
  color: #fff;
}

.pill {
  display: inline-block;
  margin-top: 20px;
  padding: 7px 15px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(15, 13, 46, 0.26);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* ── body ──────────────────────────────────────────────────────────────── */

main { padding-bottom: 88px; }

section {
  margin-top: 38px;
  padding-top: 38px;
  border-top: 1px solid var(--hair);
}

section:first-of-type {
  margin-top: 40px;
  padding-top: 0;
  border-top: 0;
}

h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 27px;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

h3 {
  margin: 26px 0 4px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.1px;
}

p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: 18.5px;
  color: var(--ink);
}

strong { color: var(--ink); font-weight: 700; }

ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 9px; }
li::marker { color: var(--muted); }

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(91, 91, 255, 0.3);
}

a:hover { border-bottom-color: var(--accent); }

code {
  padding: 1px 6px;
  border: 1px solid var(--hair);
  border-radius: 5px;
  background: #fafaff;
  font-size: 0.88em;
}

/* A note is a rule, not a box. */
.note {
  margin: 26px 0;
  padding: 2px 0 2px 22px;
  border-left: 2px solid var(--warn);
}

.note .lbl {
  margin-bottom: 3px;
  color: var(--warn);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.note p { color: var(--ink); }

/* Numbered walkthrough, borrowed from the printed manual. */
.step { display: flex; gap: 18px; margin-top: 22px; }
.step:first-of-type { margin-top: 14px; }

.step .n {
  flex: 0 0 auto;
  width: 22px;
  color: var(--accent);
  font-size: 22px;
  font-weight: 300;
  line-height: 1.2;
}

.step .b { flex: 1 1 auto; min-width: 0; }
.step .b p { margin: 0; }

table {
  width: 100%;
  margin: 20px 0 4px;
  border-collapse: collapse;
  font-size: 15.5px;
}

th {
  padding: 0 18px 10px 0;
  border-bottom: 1px solid var(--hair);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-align: left;
  text-transform: uppercase;
}

td {
  padding: 15px 18px 15px 0;
  border-bottom: 1px solid var(--hair);
  vertical-align: top;
}

th:last-child, td:last-child { padding-right: 0; }
th:first-child { width: 38%; }

.links { list-style: none; padding: 0; margin: 26px 0 0; }
.links li { margin-bottom: 14px; }

.links a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  border: 0;
  font-size: 18.5px;
  font-weight: 700;
}

.links a::after {
  content: "→";
  color: var(--muted);
  font-weight: 400;
}

.links .sub {
  display: block;
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
}

footer {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--hair);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 14.5px;
}

footer img { height: 19px; margin-right: 6px; opacity: 0.75; }
footer a { border: 0; color: var(--muted); }
footer a:hover { color: var(--accent); }

@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .hero { padding: 26px 0 40px; border-radius: 0 0 24px 24px; }
  .hero::after { width: 220px; height: 220px; right: -50px; }
  .eyebrow { margin-top: 34px; }
  h2 { font-size: 24px; }
  table { font-size: 15px; }
}
