/* MIDILIVE landing (pt-BR). en/, privacy e terms ainda usam styles.css. */

/* Fontes no próprio domínio: o CSS do Google Fonts bloqueava a primeira pintura
   (~2 s no mobile do PageSpeed). Variáveis, cortadas nos pesos usados (Inter
   400-700, Sora 600-800) e no subconjunto latino do Google, que cobre o português.
   Peso 800 em texto Inter cai no 700, como já caía com o Google Fonts.
   Se trocar o arquivo, troque o nome: o cache é imutável. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/inter-latin-400-700.woff2") format("woff2");
  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;
}

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("assets/fonts/sora-latin-600-800.woff2") format("woff2");
  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 {
  --ink-0: #0b0e12;
  --ink-1: #11161c;
  --ink-2: #161d25;
  --ink-3: #222b35;
  --on-ink: #f3f5f7;
  --on-ink-muted: #a9b3be;
  --ink-line: rgba(255, 255, 255, 0.09);

  --paper: #f7f5f0;
  --paper-2: #efebe2;
  --card: #ffffff;
  --line: #e3ded3;
  --line-strong: #cfc7b7;
  --text: #15191e;
  --text-muted: #59616b;

  --teal: #38d3c6;
  --green: #5edc8a;
  --amber: #f3c34f;
  --coral: #ff7a62;
  --green-strong: #1f9d55;
  --green-ink: #12783a;
  --teal-ink: #0b6f66;
  --amber-ink: #8a5a00;
  --red-ink: #b42318;

  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-card: 0 1px 2px rgba(17, 22, 28, 0.05), 0 10px 30px rgba(17, 22, 28, 0.06);
  --shadow-lift: 0 2px 4px rgba(17, 22, 28, 0.06), 0 18px 40px rgba(17, 22, 28, 0.1);
  --shadow-dark: 0 30px 80px rgba(0, 0, 0, 0.45);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 68px;

  interpolate-size: allow-keywords;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

svg {
  flex: none;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.08em 0.38em;
  border-radius: 6px;
  background: rgba(21, 25, 30, 0.06);
}

.section-ink code,
.library code {
  background: rgba(255, 255, 255, 0.08);
  color: #9af2b9;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--green-strong);
  outline-offset: 3px;
  border-radius: 6px;
}

[hidden] {
  display: none !important;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--green);
  color: #06140b;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 10px;
}

.container {
  width: min(100% - 32px, 1200px);
  margin-inline: auto;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.93rem;
}

.btn-primary {
  background: var(--green);
  color: #06140b;
}

.btn-primary:hover {
  background: #79e7a0;
  box-shadow: 0 8px 24px rgba(94, 220, 138, 0.28);
}

.btn-dark {
  background: var(--ink-1);
  color: #fff;
}

.btn-dark:hover {
  background: #202a35;
}

.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.11);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 22px 10px 16px;
  border: 1px solid transparent;
  border-radius: 16px;
  text-decoration: none;
  line-height: 1.15;
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.store-btn svg {
  width: 22px;
  height: 22px;
}

.store-btn small {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.75;
}

.store-btn strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
}

.store-btn:hover {
  transform: translateY(-2px);
}

.store-btn-primary {
  background: var(--green);
  color: #06140b;
  box-shadow: 0 10px 30px rgba(94, 220, 138, 0.22);
}

.store-btn-primary:hover {
  background: #79e7a0;
  box-shadow: 0 14px 36px rgba(94, 220, 138, 0.34);
}

.store-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.store-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.11);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-center {
  justify-content: center;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 14, 18, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  color: var(--on-ink);
  transition: background-color 200ms ease, border-color 200ms ease;
}

.site-header.is-scrolled {
  background: rgba(11, 14, 18, 0.9);
  border-bottom-color: var(--ink-line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  flex: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: 0.1em;
}

.brand-word span {
  color: var(--green);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #c3ccd5;
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease;
}

.site-nav a:hover,
.site-nav a.is-current {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.site-nav .nav-lang {
  margin-left: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-social {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #c3ccd5;
  transition: color 150ms ease, background-color 150ms ease;
}

.header-social:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.header-social svg {
  width: 21px;
  height: 21px;
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + clamp(40px, 6vw, 80px)) 0 clamp(72px, 9vw, 112px);
  background: var(--ink-0);
  color: var(--on-ink);
}

.hero-glow,
.final-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(40% 50% at 12% 18%, rgba(56, 211, 198, 0.16), transparent 70%),
    radial-gradient(38% 46% at 82% 30%, rgba(94, 220, 138, 0.16), transparent 70%),
    radial-gradient(30% 40% at 70% 92%, rgba(243, 195, 79, 0.1), transparent 70%);
}

.hero-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 80%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(32px, 4.5vw, 64px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green-ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.eyebrow-on-dark {
  color: var(--green);
}

.hero .eyebrow::before {
  display: none;
}

.hero .eyebrow {
  padding: 7px 14px 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #d6dde4;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 600;
  font-size: 0.86rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(94, 220, 138, 0.18);
  animation: blink 2.4s ease-in-out infinite;
}

.hero h1 {
  margin: 22px 0 20px;
  font-size: clamp(2.4rem, 1.4rem + 3.2vw, 3.65rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #fff;
}

.text-gradient {
  background: linear-gradient(95deg, #7ee9df 0%, var(--green) 50%, var(--amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 34em;
  margin-bottom: 30px;
  color: var(--on-ink-muted);
  font-size: clamp(1.06rem, 1rem + 0.35vw, 1.2rem);
}

.hero-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: #d0d8e0;
  font-weight: 600;
  text-decoration: none;
}

.hero-more svg {
  width: 18px;
  height: 18px;
  animation: nudge 2s ease-in-out infinite;
}

.hero-more:hover {
  color: #fff;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 30px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--ink-line);
  list-style: none;
  color: #c8d1da;
  font-size: 0.95rem;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-trust svg {
  width: 18px;
  height: 18px;
  color: var(--green);
}

/* Cena animada */

.hero-visual {
  position: relative;
  margin: 0;
  aspect-ratio: 640 / 440;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 10% 6% 0;
  background: radial-gradient(50% 50% at 60% 40%, rgba(94, 220, 138, 0.18), transparent 70%);
  filter: blur(20px);
}

.scene {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.scene text {
  font-family: var(--font-body);
}

.cable {
  fill: none;
  stroke: #33404d;
  stroke-width: 6;
  stroke-linecap: round;
}

.pulse-dot {
  fill: #fff;
}

.pulse-teal .pulse-halo { fill: rgba(56, 211, 198, 0.45); }
.pulse-green .pulse-halo { fill: rgba(94, 220, 138, 0.45); }
.pulse-amber .pulse-halo { fill: rgba(243, 195, 79, 0.45); }
.pulse-teal .pulse-dot { fill: #9ef1e9; }
.pulse-green .pulse-dot { fill: #a8f5c2; }
.pulse-amber .pulse-dot { fill: #ffe2a0; }

.waves path {
  fill: none;
  stroke: var(--green);
  stroke-width: 3.5;
  stroke-linecap: round;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.phone-body {
  fill: #0c1015;
  stroke: #2e3843;
  stroke-width: 2;
}

.phone-port {
  fill: #3a4552;
}

.phone-screen {
  fill: #111820;
}

.ui-title {
  fill: #e8edf2;
  font-size: 12px;
  font-weight: 600;
}

.ui-chip {
  fill: rgba(94, 220, 138, 0.12);
  stroke: rgba(94, 220, 138, 0.5);
}

.ui-chip-text {
  fill: #8af0ad;
  font-size: 8px;
  font-weight: 700;
}

.strip-bg {
  fill: #17202a;
  stroke-width: 1.5;
}

.strip-green { stroke: rgba(94, 220, 138, 0.6); }
.strip-teal { stroke: rgba(56, 211, 198, 0.45); }
.strip-amber { stroke: rgba(243, 195, 79, 0.45); }

.ui-label {
  fill: #e3e9ee;
  font-size: 11px;
  font-weight: 600;
}

.ui-sub {
  fill: #7f8d9b;
  font-size: 8.5px;
  font-weight: 500;
}

.fader-track {
  fill: #26313c;
}

.fader-knob {
  fill: #f3f5f7;
}

.meter-bg {
  fill: #0b1015;
}

.meter {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scaleY(0.08);
}

.kb-body {
  stroke: #2e3843;
  stroke-width: 2;
}

.kb-port { fill: #3a4552; }
.kb-knob { fill: #26303a; stroke: #3d4956; stroke-width: 1.5; }
.kb-display { fill: #0d1813; stroke: rgba(94, 220, 138, 0.35); }
.kb-led { fill: #2c3641; transition: fill 160ms ease; }
.kb-led.on { fill: var(--green); }

.hk {
  transition: fill 140ms ease, transform 140ms ease;
  transform-box: fill-box;
}

.hk-w {
  fill: #eef1f4;
  stroke: #c3cbd3;
  stroke-width: 1;
}

.hk-b {
  fill: #10151b;
}

.hk.on {
  transform: translateY(2px);
}

.hk.on-teal { fill: var(--teal); }
.hk.on-green { fill: var(--green); }
.hk.on-amber { fill: var(--amber); }

.scene-tags {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.scene-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(17, 22, 28, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  color: #eef2f5;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  animation: bob 5s ease-in-out infinite;
}

.scene-tag b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #06140b;
  font-size: 0.78rem;
}

.tag-1 { left: 0; top: 47%; }
.tag-1 b { background: var(--teal); }
.tag-2 { right: 0; top: 64%; animation-delay: -1.6s; }
.tag-2 b { background: var(--green); }
.tag-3 { left: 3%; top: 1%; animation-delay: -3.2s; }
.tag-3 b { background: var(--amber); }

/* ---------- Sections ---------- */

.section {
  padding: clamp(72px, 9vw, 120px) 0;
}

.section-tight {
  padding-bottom: 0;
}

.section-paper {
  background: var(--paper);
}

.section-paper-2 {
  background: var(--paper-2);
}

.section-ink {
  background: var(--ink-1);
  color: var(--on-ink);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head h2,
.lab-copy h2,
.sounds-copy h2 {
  margin: 14px 0 16px;
  font-size: clamp(1.95rem, 1.25rem + 2.6vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.section-ink h2 {
  color: #fff;
}

.lead {
  max-width: 62ch;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.18rem);
}

.section-ink .lead {
  color: var(--on-ink-muted);
}

.callout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 860px;
  margin: clamp(40px, 5vw, 56px) auto 0;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.callout svg {
  width: 24px;
  height: 24px;
  margin-top: 1px;
  color: var(--green-ink);
}

.callout-amber {
  border-color: #efdcae;
  background: #fffaf0;
}

.callout-amber svg {
  color: var(--amber-ink);
}

/* ---------- Passos ---------- */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 16.66%;
  right: 16.66%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 16px);
}

.steps::after {
  content: "";
  position: absolute;
  top: 35px;
  left: 16.66%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(94, 220, 138, 0.25), 0 0 18px rgba(94, 220, 138, 0.8);
  animation: travel 3.6s ease-in-out infinite;
}

.step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin: 0 auto 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.step-icon svg {
  width: 42px;
  height: 42px;
}

.step-icon-teal { color: var(--teal-ink); }
.step-icon-green { color: var(--green-ink); }
.step-icon-amber { color: var(--amber-ink); }

.step-num {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.step h3 {
  margin-bottom: 8px;
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.step p {
  max-width: 30ch;
  margin-inline: auto;
  color: var(--text-muted);
}

/* ---------- Laboratório MIDI ---------- */

.lab-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: start;
  gap: clamp(36px, 5vw, 72px);
}

.facts {
  display: grid;
  gap: 20px;
  margin: 34px 0 0;
}

.facts div {
  padding-left: 18px;
  border-left: 2px solid rgba(255, 255, 255, 0.14);
}

.facts div:nth-child(1) { border-color: var(--teal); }
.facts div:nth-child(2) { border-color: var(--green); }
.facts div:nth-child(3) { border-color: var(--amber); }

.facts dt {
  color: #fff;
  font-weight: 600;
}

.facts dd {
  margin: 4px 0 0;
  color: var(--on-ink-muted);
}

.lab {
  padding: clamp(16px, 2.4vw, 24px);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #18202a, #131a22);
  box-shadow: var(--shadow-dark);
}

.lab-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 14px;
}

.lab-head > div {
  flex: 1 1 240px;
}

/* Botão de som (topo e laboratório) */

.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(17, 22, 28, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  color: #eef2f5;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.sound-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.32);
}

.sound-toggle svg {
  width: 20px;
  height: 20px;
}

.sound-toggle .icon-on {
  display: none;
}

.sound-toggle.is-on {
  border-color: var(--green);
  background: rgba(14, 38, 24, 0.92);
  color: #9af2b9;
}

.sound-toggle.is-on .icon-off {
  display: none;
}

.sound-toggle.is-on .icon-on {
  display: block;
  animation: blink 1.6s ease-in-out infinite;
}

.sound-toggle.is-loading {
  opacity: 0.75;
  cursor: progress;
}

.sound-toggle-hero {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
}

.lab-title {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
}

.lab-hint {
  margin-top: 2px;
  color: var(--on-ink-muted);
  font-size: 0.9rem;
}

.monitor {
  padding: 16px 18px;
  border: 1px solid rgba(94, 220, 138, 0.18);
  border-radius: 16px;
  background: #0a0f14;
}

.monitor-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
}

.monitor-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--on-ink-muted);
  font-weight: 600;
}

.monitor-state::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a4552;
  transition: background-color 120ms ease, box-shadow 120ms ease;
}

.monitor-state.is-on {
  color: #9af2b9;
}

.monitor-state.is-on::before {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(94, 220, 138, 0.2), 0 0 12px var(--green);
}

.monitor-state.is-cc {
  color: #ffe08f;
}

.monitor-state.is-cc::before {
  background: var(--amber);
}

.monitor-ch {
  padding: 3px 9px;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  color: var(--on-ink-muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.monitor-note {
  margin: 8px 0 12px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.monitor-note small {
  color: var(--on-ink-muted);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
}

.monitor-vel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  color: var(--on-ink-muted);
  font-size: 0.86rem;
}

.vel-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #1b242e;
}

.vel-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--green) 60%, var(--amber));
  transition: width 140ms ease-out;
}

.vel-num {
  min-width: 6.4em;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.monitor-raw {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--ink-line);
  color: var(--on-ink-muted);
  font-size: 0.84rem;
}

.monitor-raw code {
  color: #ffe08f;
  background: rgba(243, 195, 79, 0.1);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
}

.lab-log {
  display: grid;
  gap: 4px;
  height: 104px;
  overflow: hidden;
  margin: 12px 0 0;
  padding: 0 4px;
  list-style: none;
  align-content: start;
  font-size: 0.86rem;
  color: var(--on-ink-muted);
}

.lab-log li {
  display: flex;
  align-items: center;
  gap: 10px;
  animation: log-in 240ms var(--ease-out);
}

.lab-log li:nth-child(n + 2) {
  opacity: 0.75;
}

.lab-log li:nth-child(n + 3) {
  opacity: 0.5;
}

.lab-log li:nth-child(n + 4) {
  opacity: 0.3;
}

.log-tag {
  min-width: 5.6em;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
}

.log-tag.is-on { color: #9af2b9; background: rgba(94, 220, 138, 0.12); }
.log-tag.is-off { color: #b8c3ce; }
.log-tag.is-cc { color: #ffe08f; background: rgba(243, 195, 79, 0.12); }

.lab-empty {
  color: #6f7c89;
  font-style: italic;
}

.lab-wire {
  position: relative;
  height: 38px;
}

.lab-wire::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0 5px, transparent 5px 10px);
}

.lab-wire > span {
  position: absolute;
  top: 50%;
  left: calc(50% + 14px);
  transform: translateY(-50%);
  color: #6f7c89;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.wire-pulse {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: #a8f5c2;
  box-shadow: 0 0 0 4px rgba(94, 220, 138, 0.25), 0 0 14px var(--green);
  animation: rise 420ms linear forwards;
}

.piano {
  position: relative;
  display: flex;
  height: 158px;
  padding: 10px 8px 8px;
  border-radius: 16px;
  background: linear-gradient(180deg, #232c36, #161c23);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.piano button {
  padding: 0;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.wk {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin: 0 1px;
  padding-bottom: 8px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, #f3f5f7 0%, #ffffff 70%, #e7ebef 100%);
  box-shadow: inset 0 -4px 0 #cfd6dd, 0 2px 0 rgba(0, 0, 0, 0.3);
  color: #7c8895;
  transition: background 80ms ease, transform 80ms ease, box-shadow 80ms ease;
}

.wk.is-down {
  transform: translateY(2px);
  background: linear-gradient(180deg, #c9f7d9, var(--green));
  box-shadow: inset 0 -2px 0 #3dbb6c, 0 0 0 rgba(0, 0, 0, 0.3);
  color: #0c3d1f;
}

.bk {
  position: absolute;
  top: 10px;
  z-index: 2;
  height: 58%;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(180deg, #2b343e, #0c1015);
  box-shadow: inset 0 -4px 0 #000, 0 3px 6px rgba(0, 0, 0, 0.4);
  color: #8b97a4;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 6px;
  transition: background 80ms ease;
}

.bk.is-down {
  background: linear-gradient(180deg, #5fe6da, #1fb3a6);
  box-shadow: inset 0 -2px 0 #138a80;
  color: #053b36;
}

.key-name {
  font-size: 0.66rem;
  font-weight: 700;
}

.key-letter {
  display: none;
  min-width: 18px;
  padding: 1px 4px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  line-height: 1.3;
  opacity: 0.7;
}

@media (hover: hover) and (pointer: fine) {
  .key-letter {
    display: block;
  }
}

.lab-punch {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 3px solid var(--green);
  border-radius: 10px;
  background: rgba(94, 220, 138, 0.08);
  color: #c9f5d8;
  font-size: 0.94rem;
  animation: log-in 400ms var(--ease-out);
}

.lab-punch .btn {
  margin-top: 10px;
}

.webmidi {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--ink-line);
}

.webmidi-copy {
  flex: 1 1 260px;
  font-size: 0.9rem;
  color: var(--on-ink-muted);
}

.webmidi-copy strong {
  display: block;
  color: #fff;
}

.webmidi.is-connected .webmidi-copy strong {
  color: #9af2b9;
}

/* ---------- Seu teclado funciona? ---------- */

.checker {
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.choice-group {
  min-width: 0;
  margin: 0 0 30px;
  padding: 0;
  border: 0;
  transition: opacity 200ms ease;
}

.choice-group legend {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 0;
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 600;
}

.legend-num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink-1);
  color: #fff;
  font-size: 0.9rem;
}

.choices {
  display: grid;
  gap: 12px;
}

.choices-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.choices-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice {
  position: relative;
  display: block;
  cursor: pointer;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 18px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fbfaf7;
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.choice-card-row {
  flex-direction: row;
  align-items: center;
  gap: 14px;
}

.choice-card-row > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.choice-card strong {
  font-size: 1rem;
  line-height: 1.3;
}

.choice-card small {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.choice-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 6px;
  color: #6c7480;
  transition: color 150ms ease;
}

.choice-card-row .choice-icon {
  margin-bottom: 0;
}

.choice:hover .choice-card {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.choice input:focus-visible + .choice-card {
  outline: 3px solid var(--green-strong);
  outline-offset: 3px;
}

.choice input:checked + .choice-card {
  border-color: var(--green-strong);
  background: #effaf3;
  box-shadow: 0 0 0 4px rgba(31, 157, 85, 0.12);
}

.choice input:checked + .choice-card .choice-icon {
  color: var(--green-ink);
}

.choice input:checked + .choice-card::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-strong)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 14px no-repeat;
  animation: pop 220ms var(--ease-out);
}

.choice-group.is-muted .choices {
  opacity: 0.4;
  pointer-events: none;
}

.choice-skip {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.result-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--text-muted);
}

.result-empty svg {
  width: 20px;
  height: 20px;
}

.result-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px 20px;
  padding: clamp(18px, 2.6vw, 28px);
  border: 1.5px solid var(--line);
  border-radius: 22px;
  background: #fbfaf7;
  animation: fade-up 360ms var(--ease-out);
}

.result-status {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.result-status svg {
  width: 28px;
  height: 28px;
}

.result-card.is-ok { border-color: #bfe7cd; background: #f3fbf6; }
.result-card.is-ok .result-status { background: #dcf5e5; color: var(--green-ink); }
.result-card.is-adapter { border-color: #f0dcaa; background: #fffbf1; }
.result-card.is-adapter .result-status { background: #fdefc8; color: var(--amber-ink); }
.result-card.is-wireless { border-color: #b7e6e1; background: #f1fbfa; }
.result-card.is-wireless .result-status { background: #d6f3f0; color: var(--teal-ink); }
.result-card.is-no { border-color: #f3c7bf; background: #fff6f4; }
.result-card.is-no .result-status { background: #fde1dc; color: var(--red-ink); }
.result-card.is-wait .result-status { background: #ece8df; color: var(--text-muted); }

.result-card h3 {
  margin-bottom: 4px;
  font-size: 1.32rem;
  font-weight: 600;
}

.result-card > div > p {
  color: var(--text-muted);
}

.result-body {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px 28px;
}

.result-label {
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.kit {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: kit;
}

.kit li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  font-weight: 600;
  line-height: 1.4;
  counter-increment: kit;
}

.kit li::before {
  content: counter(kit);
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink-1);
  color: #fff;
  font-size: 0.78rem;
}

.kit-alt {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.tips {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tips li {
  display: flex;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.tips svg {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--teal-ink);
}

.result-cta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-strong);
}

.result-cta p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.checker-help {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.checker-help a,
.faq-item a {
  color: var(--green-ink);
  font-weight: 600;
  text-underline-offset: 3px;
}

/* Onde ouvir */

.listen {
  margin-top: clamp(56px, 7vw, 88px);
}

.listen-title {
  margin-bottom: 22px;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.listen-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.listen-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.listen-card svg {
  width: 42px;
  height: 42px;
  color: var(--teal-ink);
}

.listen-card h4 {
  margin: 14px 0 6px;
  font-size: 1.08rem;
  font-weight: 600;
}

.listen-card p {
  color: var(--text-muted);
  font-size: 0.96rem;
}

.listen-card-warn {
  border-color: #efdcae;
  background: #fffaf0;
}

.listen-card-warn svg {
  color: var(--amber-ink);
}

.listen .callout {
  margin: 16px 0 0;
  max-width: none;
}

/* ---------- Testado em ---------- */

.devices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.device {
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.6vw, 28px);
  border: 1px solid var(--ink-line);
  border-radius: 24px;
  background: linear-gradient(180deg, #18202a, #131a22);
}

.device-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.device-icon {
  width: 46px;
  height: 46px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(94, 220, 138, 0.1);
  color: var(--green);
}

.device-brand {
  color: var(--on-ink-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.device h3 {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.device-tag {
  align-self: start;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(94, 220, 138, 0.14);
  color: #9af2b9;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.device-tag-amber {
  background: rgba(243, 195, 79, 0.14);
  color: #ffe08f;
}

.device-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 16px;
}

.device-stats div {
  padding: 12px 10px;
  border: 1px solid var(--ink-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.device-stats dt {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem);
  font-weight: 700;
  line-height: 1.1;
}

.device-stats dd {
  margin: 4px 0 0;
  color: var(--on-ink-muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.device-pair {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--ink-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.device-pair svg {
  flex: none;
  width: 32px;
  height: 32px;
  color: var(--teal);
}

.device-pair small {
  display: block;
  color: var(--on-ink-muted);
  font-size: 0.8rem;
}

.device-pair strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.3;
}

.device-note {
  margin-top: auto;
  color: #8592a0;
  font-size: 0.86rem;
}

.device-yours {
  justify-content: center;
  gap: 10px;
  border-color: rgba(94, 220, 138, 0.35);
  background:
    radial-gradient(80% 80% at 100% 0%, rgba(94, 220, 138, 0.14), transparent 70%),
    linear-gradient(180deg, #18202a, #131a22);
}

.device-yours p:not(.device-brand) {
  color: var(--on-ink-muted);
}

.device-yours strong {
  color: #fff;
}

.device-yours .btn {
  align-self: flex-start;
  margin-top: 8px;
}

.reports {
  margin-top: clamp(40px, 5vw, 56px);
}

.reports-lead {
  max-width: 62ch;
  margin: -6px 0 18px;
  color: var(--on-ink-muted);
  font-size: 0.95rem;
}

.report-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.report {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  border: 1px solid var(--ink-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.report-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.report-icon {
  width: 38px;
  height: 38px;
  padding: 7px;
  border-radius: 12px;
  background: rgba(56, 211, 198, 0.1);
  color: var(--teal);
}

.report-head strong {
  display: block;
  color: #fff;
  line-height: 1.3;
}

.report-head small {
  color: var(--on-ink-muted);
  font-size: 0.82rem;
}

.report blockquote {
  flex: 1;
  margin: 14px 0 10px;
  padding-left: 14px;
  border-left: 2px solid var(--green);
  color: #e6ebef;
  font-size: 1.02rem;
  line-height: 1.5;
}

.report-source {
  color: #8592a0;
  font-size: 0.8rem;
}

.keyboards {
  margin-top: clamp(40px, 5vw, 56px);
}

.keyboards-title {
  margin-bottom: 16px;
  color: #fff;
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.45rem);
  font-weight: 600;
}

.keyboard-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.keyboard-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--ink-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.keyboard-list svg {
  width: 32px;
  height: 32px;
  color: var(--teal);
}

.keyboard-list strong {
  display: block;
  color: #fff;
  line-height: 1.3;
}

.keyboard-list small {
  color: var(--on-ink-muted);
  font-size: 0.82rem;
}

.keyboards-more {
  margin-top: 14px;
  color: var(--on-ink-muted);
  font-size: 0.93rem;
}

.keyboards-more a {
  color: #9af2b9;
  font-weight: 600;
  text-underline-offset: 3px;
}

.fineprint {
  margin-top: 28px;
  color: #7f8b97;
  font-size: 0.8rem;
}

.hero-trust a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 4px;
}

.hero-trust a:hover {
  color: #fff;
  text-decoration-color: var(--green);
}

/* ---------- Sons ---------- */

.sounds-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(36px, 6vw, 80px);
}

.ticks {
  display: grid;
  gap: 16px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  display: flex;
  gap: 14px;
}

.ticks svg {
  width: 26px;
  height: 26px;
  padding: 4px;
  border-radius: 50%;
  background: #dcf5e5;
  color: var(--green-ink);
}

.sounds-try {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-card);
  color: var(--text-muted);
  font-size: 0.96rem;
  text-decoration: none;
  transition: transform 200ms ease, border-color 200ms ease;
}

.sounds-try:hover {
  transform: translateY(-2px);
  border-color: var(--green-strong);
}

.sounds-try svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--green-ink);
}

.sounds-try span {
  flex: 1;
}

.sounds-try strong {
  color: var(--text);
}

.library {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--ink-1);
  color: var(--on-ink);
  box-shadow: var(--shadow-dark);
  transform: rotate(-1.2deg);
}

.library-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 10px;
  font-family: var(--font-display);
  font-weight: 600;
}

.library-head small {
  padding: 3px 10px;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  color: var(--on-ink-muted);
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
}

.library-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.library-list li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  transition: background-color 200ms ease, border-color 200ms ease;
}

.library-list li:hover {
  background: rgba(255, 255, 255, 0.06);
}

.library-list li.is-included {
  border-color: rgba(94, 220, 138, 0.45);
  background: rgba(94, 220, 138, 0.08);
}

.lib-eq {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 22px;
  --c: var(--green);
}

.library-list li:nth-child(2) .lib-eq { --c: var(--teal); }
.library-list li:nth-child(3) .lib-eq { --c: var(--amber); }
.library-list li:nth-child(4) .lib-eq { --c: var(--coral); }
.library-list li:nth-child(5) .lib-eq { --c: var(--teal); }

.lib-eq i {
  width: 4px;
  height: 30%;
  border-radius: 2px;
  background: var(--c);
  opacity: 0.55;
}

.library-list li.is-included .lib-eq i,
.library-list li:hover .lib-eq i {
  opacity: 1;
  animation: eq 900ms ease-in-out infinite alternate;
}

.lib-eq i:nth-child(2) { animation-delay: -300ms !important; }
.lib-eq i:nth-child(3) { animation-delay: -600ms !important; }
.lib-eq i:nth-child(4) { animation-delay: -150ms !important; }

.lib-name {
  font-weight: 600;
  line-height: 1.3;
}

.lib-name small {
  display: block;
  color: var(--on-ink-muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 400;
}

.lib-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(94, 220, 138, 0.16);
  color: #9af2b9;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.library-foot {
  margin-top: 14px;
  padding: 0 4px;
  color: var(--on-ink-muted);
  font-size: 0.86rem;
}

/* ---------- Caminho ---------- */

.path {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-top: 46px;
}

.path-line {
  position: absolute;
  top: 12px;
  left: 30px;
  right: 30px;
  height: 3px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}

.path-line span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--green) 50%, var(--amber));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.6s var(--ease-out) 0.2s;
}

.path.is-in .path-line span,
html:not(.js) .path-line span {
  transform: none;
}

.stage {
  position: relative;
  padding: 28px 26px 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.stage-dot {
  position: absolute;
  top: -45px;
  left: 20px;
  width: 24px;
  height: 24px;
  border: 5px solid var(--paper);
  border-radius: 50%;
}

.stage-dot-teal { background: var(--teal); box-shadow: 0 0 0 2px var(--teal); }
.stage-dot-green { background: var(--green); box-shadow: 0 0 0 2px var(--green); }
.stage-dot-amber { background: var(--amber); box-shadow: 0 0 0 2px var(--amber); }

.stage-when {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stage h3 {
  margin: 4px 0 14px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.stage ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.stage li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-top: 1px dashed var(--line);
  font-size: 0.97rem;
  line-height: 1.45;
}

.stage li::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #dcf5e5
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2312783a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

.pro-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--ink-1);
  color: var(--amber);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  vertical-align: 2px;
}

/* ---------- Telas ---------- */

.showcase {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}

.tablist {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tablist [role="tab"] {
  position: relative;
  padding: 13px 16px 13px 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--on-ink-muted);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.tablist [role="tab"]:hover {
  color: #fff;
}

.tablist [role="tab"][aria-selected="true"] {
  border-color: var(--ink-line);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.tablist [role="tab"][aria-selected="true"]::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 8px;
  width: 3px;
  border-radius: 3px;
  background: var(--green);
}

.panels {
  display: grid;
}

.panel {
  margin: 0;
}

.panel + .panel {
  margin-top: 32px;
}

.panel figure {
  margin: 0;
}

.js .panel {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.985);
  transition: opacity 450ms ease, transform 450ms var(--ease-out), visibility 0s linear 450ms;
}

.js .panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.panel img {
  width: 100%;
  height: auto;
  border: 1px solid var(--ink-line);
  border-radius: 20px;
  background: #12161b;
  box-shadow: var(--shadow-dark);
}

.panel figcaption {
  margin-top: 16px;
  color: var(--on-ink-muted);
}

.panel figcaption strong {
  margin-right: 6px;
  color: #fff;
}

.showcase-note {
  margin-top: 14px;
  color: #7f8b97;
  font-size: 0.84rem;
  text-align: right;
}

.video-block {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  margin-top: clamp(64px, 8vw, 104px);
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--ink-line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.03);
}

.video-frame {
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  background: #000;
  box-shadow: var(--shadow-dark);
}

.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-copy h3 {
  margin: 14px 0 12px;
  color: #fff;
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.video-copy > p:not(.eyebrow) {
  max-width: 46ch;
  color: var(--on-ink-muted);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 26px;
}

.text-link-dark {
  color: #d0d8e0;
  font-weight: 600;
  text-underline-offset: 4px;
}

.text-link-dark:hover {
  color: #fff;
}

/* ---------- Dicionário ---------- */

.glossary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.term {
  padding: 18px 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.term:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
}

.term dt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
}

.term dt::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--green);
}

.term:nth-child(4n + 2) dt::before { background: var(--teal); }
.term:nth-child(4n + 3) dt::before { background: var(--amber); }
.term:nth-child(4n + 4) dt::before { background: var(--coral); }

.term dd {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

/* ---------- Planos ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 980px;
  margin-inline: auto;
}

@media (min-width: 761px) {
  .section-head-center {
    margin-inline: auto;
    text-align: center;
  }

  .section-head-center .lead {
    margin-inline: auto;
  }

  .section-head-center .eyebrow::after {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
  }
}

.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.plan-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
}

.plan-name span {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(243, 195, 79, 0.16);
  color: var(--amber);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-desc {
  margin-top: 8px;
  color: var(--text-muted);
}

.plan ul {
  display: grid;
  gap: 4px;
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
  flex: 1;
}

.plan li {
  display: flex;
  gap: 10px;
  padding: 6px 0;
}

.plan li svg {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--green-ink);
}

.plan .btn {
  align-self: flex-start;
}

.plan-pro {
  position: relative;
  border-color: transparent;
  background: linear-gradient(160deg, #18212b 0%, #0f141a 100%);
  color: var(--on-ink);
  box-shadow: var(--shadow-dark);
}

.plan-pro::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--teal), var(--green), var(--amber));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

.plan-pro .plan-desc {
  color: var(--on-ink-muted);
}

.plan-pro li svg {
  color: var(--green);
}

/* Mensal ou vitalicio, lado a lado dentro do cartao do PRO. */
.plan-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.plan-option {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.plan-option strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.plan-option span {
  display: block;
  margin-top: 2px;
  color: var(--on-ink-muted);
  font-size: 0.86rem;
}

@media (max-width: 420px) {
  .plan-options {
    grid-template-columns: 1fr;
  }
}

.plan-note {
  margin-top: 12px;
  color: #8592a0;
  font-size: 0.86rem;
}

/* ---------- Comunidade ---------- */

.community {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.community-card {
  --brand: var(--green-ink);
  --brand-bg: #dcf5e5;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(22px, 2.6vw, 28px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow-card);
  color: var(--text);
  text-decoration: none;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.community-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--brand);
  opacity: 0.85;
}

.community-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
}

.community-wa { --brand: #128c4a; --brand-bg: #dcf8e6; }
.community-tg { --brand: #1d7fc0; --brand-bg: #dff0fb; }
.community-ig { --brand: #b4307e; --brand-bg: #fbe3f0; }
.community-yt { --brand: #c4302b; --brand-bg: #fde4e2; }

.community-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--brand-bg);
  color: var(--brand);
}

.community-icon svg {
  width: 28px;
  height: 28px;
}

.community-card h3 {
  margin: 18px 0 6px;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.community-card p {
  flex: 1;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.community-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--brand);
  font-weight: 700;
}

.community-cta svg {
  width: 18px;
  height: 18px;
  transition: transform 160ms ease;
}

.community-card:hover .community-cta svg {
  transform: translateX(3px);
}

/* ---------- Dúvidas ---------- */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
}

.faq-head {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  margin-bottom: 0;
}

.faq-contacts {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.faq-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.faq-contacts a:hover {
  color: var(--green-ink);
}

.faq-contacts svg {
  width: 20px;
  height: 20px;
  color: var(--green-ink);
}

.faq {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  position: relative;
  padding: 20px 48px 20px 0;
  font-size: 1.07rem;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
  transition: color 150ms ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--green-ink);
}

.faq-item summary::before,
.faq-item summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 8px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 250ms var(--ease-out);
}

.faq-item summary::after {
  transform: rotate(90deg);
}

.faq-item[open] summary::after {
  transform: rotate(0deg);
}

.faq-item p {
  max-width: 64ch;
  padding: 0 0 22px;
  color: var(--text-muted);
}

.faq-item::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 300ms var(--ease-out), content-visibility 300ms allow-discrete;
}

.faq-item[open]::details-content {
  block-size: auto;
}

/* ---------- CTA final ---------- */

.final {
  position: relative;
  overflow: hidden;
  padding: clamp(88px, 11vw, 140px) 0;
  background: var(--ink-0);
  color: var(--on-ink);
  text-align: center;
}

.final-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.final-mark {
  width: 72px;
  height: 72px;
  margin-bottom: 26px;
  animation: bob 5s ease-in-out infinite;
}

.final h2 {
  color: #fff;
  font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.final p {
  max-width: 46ch;
  margin: 20px auto 32px;
  color: var(--on-ink-muted);
  font-size: 1.1rem;
}

/* ---------- Rodapé ---------- */

.site-footer {
  background: var(--ink-0);
  color: var(--on-ink-muted);
  border-top: 1px solid var(--ink-line);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding: 56px 0 36px;
}

.footer-brand p {
  max-width: 34ch;
  margin-top: 14px;
  font-size: 0.94rem;
}

.footer-col p {
  margin-bottom: 10px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  padding: 5px 0;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 150ms ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-base {
  padding: 20px 0 28px;
  border-top: 1px solid var(--ink-line);
  font-size: 0.86rem;
}

/* ---------- Páginas simples: privacidade, termos, 404 ---------- */

.narrow {
  width: min(100% - 32px, 1040px);
}

.simple-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.simple-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #c3ccd5;
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease;
}

.simple-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.simple-nav .nav-lang {
  margin-left: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + clamp(48px, 7vw, 88px)) 0 clamp(48px, 6vw, 72px);
  background: var(--ink-0);
  color: var(--on-ink);
}

.page-hero-inner {
  position: relative;
}

.page-hero h1 {
  margin: 16px 0 12px;
  color: #fff;
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.4rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.page-hero-meta {
  color: var(--on-ink-muted);
  font-size: 0.95rem;
}

.page-hero-lead {
  max-width: 46ch;
  margin: 4px 0 30px;
  color: var(--on-ink-muted);
  font-size: 1.12rem;
}

.page-hero-error {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 140px);
  min-height: calc(100svh - 140px);
}

.error-code {
  background: linear-gradient(95deg, #7ee9df 0%, var(--green) 50%, var(--amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 3rem + 7vw, 8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.legal-section {
  padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 104px);
  background: var(--paper);
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  grid-template-areas:
    "toc prose"
    "toc contact";
  align-items: start;
  gap: 28px clamp(28px, 4vw, 56px);
}

.toc {
  grid-area: toc;
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 18px 18px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.toc-title {
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toc ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  display: block;
  padding: 5px 8px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.35;
  text-decoration: none;
}

.toc a:hover {
  color: var(--text);
  background: var(--paper);
}

.prose {
  grid-area: prose;
  padding: clamp(22px, 3.5vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.prose section + section {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.prose h2 {
  margin-bottom: 10px;
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.prose p,
.prose li {
  color: #3d444d;
}

.prose p + p,
.prose p + ul,
.prose ul + p {
  margin-top: 12px;
}

.prose ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
}

.prose li::marker {
  color: var(--green-strong);
}

.prose strong {
  color: var(--text);
}

.prose a,
.legal-contact a {
  color: var(--green-ink);
  font-weight: 600;
  text-underline-offset: 3px;
}

.legal-contact {
  grid-area: contact;
  padding: 22px 24px;
  border: 1px solid #bfe7cd;
  border-radius: var(--radius);
  background: #f3fbf6;
}

.legal-contact-title {
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.legal-contact p + p {
  margin-top: 6px;
  color: var(--text-muted);
}

.footer-compact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  padding: 28px 0;
}

.footer-compact nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.footer-compact nav a {
  font-size: 0.93rem;
  text-decoration: none;
  transition: color 150ms ease;
}

.footer-compact nav a:hover {
  color: #fff;
}

.footer-compact > p {
  font-size: 0.86rem;
}

@media (max-width: 860px) {
  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "toc"
      "prose"
      "contact";
  }

  .toc {
    position: static;
  }

  .toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .toc ol {
    grid-template-columns: minmax(0, 1fr);
  }

  .simple-nav a {
    padding: 8px 9px;
    font-size: 0.88rem;
  }

  .page-simple .brand-word {
    display: none;
  }
}

/* ---------- Barra fixa no celular ---------- */

.mobile-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: none;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--ink-line);
  background: rgba(11, 14, 18, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateY(110%);
  transition: transform 260ms var(--ease-out);
}

.mobile-bar.is-visible {
  transform: none;
}

.mobile-bar .store-btn {
  flex: 1;
  justify-content: center;
  min-height: 50px;
  padding: 8px 14px;
}

.mobile-bar .store-btn svg {
  width: 20px;
  height: 20px;
}

/* ---------- Revelar ao rolar ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

.js .library.reveal.is-in {
  transform: rotate(-1.2deg);
}

/* ---------- Animações ---------- */

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes travel {
  0% { left: 16.66%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: calc(83.33% - 12px); opacity: 0; }
}

@keyframes rise {
  from { bottom: 0; opacity: 1; }
  to { bottom: 100%; opacity: 0.2; }
}

@keyframes log-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes pop {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes eq {
  0% { height: 22%; }
  50% { height: 90%; }
  100% { height: 45%; }
}

/* ---------- Responsivo ---------- */

@media (max-width: 1100px) {
  .community {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 16px 20px;
    border-bottom: 1px solid var(--ink-line);
    background: rgba(11, 14, 18, 0.97);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 14px;
    border-radius: 12px;
    font-size: 1.04rem;
  }

  .site-nav .nav-lang {
    margin: 6px 0 0;
    align-self: flex-start;
  }

  .header-actions {
    margin-left: auto;
  }

  .menu-toggle {
    display: grid;
  }

  .choices-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .glossary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}

@media (max-width: 960px) {
  .hero-inner,
  .lab-layout,
  .sounds-layout,
  .faq-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    max-width: 620px;
    width: 100%;
    margin: 8px auto 0;
  }

  .faq-head {
    position: static;
  }

  .library {
    max-width: 520px;
  }

  .showcase {
    grid-template-columns: minmax(0, 1fr);
  }

  .tablist {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .tablist [role="tab"] {
    padding: 8px 14px;
    border-color: var(--ink-line);
    border-radius: 999px;
    font-size: 0.9rem;
  }

  .tablist [role="tab"][aria-selected="true"] {
    border-color: var(--green);
    background: rgba(94, 220, 138, 0.12);
  }

  .tablist [role="tab"][aria-selected="true"]::before {
    display: none;
  }

  .path {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding-top: 0;
    padding-left: 40px;
  }

  .path-line {
    top: 20px;
    bottom: 20px;
    left: 11px;
    right: auto;
    width: 3px;
    height: auto;
  }

  .path-line span {
    transform: scaleY(0);
    transform-origin: center top;
  }

  .stage-dot {
    top: 26px;
    left: -41px;
  }

  .result-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .community {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .mobile-bar {
    display: flex;
  }

  .mobile-bar.is-single .store-btn[hidden] {
    display: none;
  }

  .footer-base {
    padding-bottom: 96px;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .steps::before {
    top: 41px;
    bottom: 41px;
    left: 40px;
    right: auto;
    width: 2px;
    height: auto;
    background: repeating-linear-gradient(180deg, var(--line-strong) 0 8px, transparent 8px 16px);
  }

  .steps::after {
    display: none;
  }

  .step {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    column-gap: 18px;
    text-align: left;
  }

  .step-icon {
    grid-row: span 3;
    margin: 0;
  }

  .step p {
    margin: 0;
  }

  .choices-5,
  .choices-3 {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .choices-5 .choice-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 2px;
    align-items: center;
    padding: 14px 44px 14px 14px;
  }

  .choices-5 .choice-icon {
    grid-row: span 2;
    margin: 0;
  }

  .choice-card-row {
    padding: 14px 44px 14px 14px;
  }

  .listen-grid,
  .devices,
  .report-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .glossary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .plans {
    grid-template-columns: minmax(0, 1fr);
  }

  .community {
    grid-template-columns: minmax(0, 1fr);
  }

  .video-block {
    grid-template-columns: minmax(0, 1fr);
  }

  .video-frame {
    width: min(100%, 300px);
    margin-inline: auto;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .showcase-note {
    text-align: left;
  }

  .piano {
    height: 136px;
  }

  .hero {
    padding-bottom: 48px;
  }

  .lab-log {
    height: 78px;
  }

  .lab-log li:nth-child(n + 4) {
    display: none;
  }

  .scene-tag {
    gap: 6px;
    padding: 4px 10px 4px 4px;
    font-size: 0.74rem;
  }

  .scene-tag b {
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
  }

  .sound-toggle {
    min-height: 36px;
    font-size: 0.8rem;
  }

  /* No celular o botão sai de cima do teclado e vai para baixo da cena. */
  .hero-visual {
    margin-bottom: 52px;
  }

  .sound-toggle-hero {
    right: 0;
    left: 0;
    bottom: -50px;
    width: fit-content;
    margin-inline: auto;
  }
}

@media (max-width: 520px) {
  .hero .cta-group .store-btn {
    width: 100%;
  }

  .glossary {
    grid-template-columns: minmax(0, 1fr);
  }

  .tag-1 { top: 44%; }
  .tag-2 { top: 60%; }
}

@media (max-width: 420px) {
  .header-social {
    display: none;
  }

  .hero .eyebrow {
    font-size: 0.78rem;
  }

  .brand-word {
    font-size: 0.98rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }

  .steps::after {
    display: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
