/* ==========================================================================
   RBytes DocPad — site oficial (docpad.com.br)
   Folha de estilos única, sem dependências externas.
   CSP: style-src 'self' — não use atributos style="" no HTML.
   ========================================================================== */

/* ---------- Tokens (tema claro) ---------- */
:root {
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --brand-900: #1e3a8a;
  --brand-800: #1e40af;
  --brand-700: #1d4ed8;
  --brand-600: #2563eb;
  --brand-500: #3b82f6;
  --brand-400: #60a5fa;
  --brand-300: #93c5fd;
  --grad-brand: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  --grad-button: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  --grad-button-hover: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
  --grad-deep: linear-gradient(150deg, #1e3a8a 0%, #1e40af 55%, #2563eb 100%);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;

  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f5f8fd;
  --surface: #ffffff;
  --surface-2: #f1f5fb;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #526175;
  --link: #1d4ed8;
  --link-hover: #1e3a8a;
  --accent-text: #1d4ed8;
  --accent-soft: #eff6ff;
  --accent-soft-2: #dbeafe;
  --accent-border: #bfdbfe;
  --grad-text: linear-gradient(120deg, #1e40af 0%, #2563eb 45%, #3b82f6 100%);
  --header-bg: rgba(255, 255, 255, 0.86);
  --focus: #1d4ed8;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.05), 0 16px 36px -14px rgba(15, 23, 42, 0.16);
  --shadow-lg: 0 30px 70px -24px rgba(30, 64, 175, 0.38), 0 10px 28px -10px rgba(15, 23, 42, 0.2);
  --hero-glow-1: rgba(59, 130, 246, 0.2);
  --hero-glow-2: rgba(30, 64, 175, 0.12);
  --grid-line: rgba(30, 64, 175, 0.07);
  --code-bg: #0f172a;
  --code-text: #e2e8f0;
  --code-muted: #9fb0c7;
  --code-branch: #64748b;
  --soon-bg: #fef3c7;
  --soon-text: #92400e;
  --soon-border: #fde68a;
  --ok: #047857;
}

/* ---------- Tokens (tema escuro: sistema, salvo se o usuário escolheu claro) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b1120;
    --bg-alt: #0e1628;
    --surface: #121c31;
    --surface-2: #172238;
    --border: #23314b;
    --border-strong: #34476b;
    --text: #e7edf6;
    --text-2: #c5d0e0;
    --muted: #9aa8bc;
    --link: #93c5fd;
    --link-hover: #bfdbfe;
    --accent-text: #93c5fd;
    --accent-soft: rgba(59, 130, 246, 0.12);
    --accent-soft-2: rgba(59, 130, 246, 0.2);
    --accent-border: rgba(96, 165, 250, 0.35);
    --grad-text: linear-gradient(120deg, #60a5fa 0%, #93c5fd 60%, #bfdbfe 100%);
    --header-bg: rgba(11, 17, 32, 0.84);
    --focus: #93c5fd;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45);
    --shadow-md: 0 10px 28px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 36px 80px -24px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(148, 163, 184, 0.08);
    --hero-glow-1: rgba(59, 130, 246, 0.24);
    --hero-glow-2: rgba(30, 64, 175, 0.3);
    --grid-line: rgba(148, 163, 184, 0.07);
    --code-bg: #080d19;
    --soon-bg: rgba(245, 158, 11, 0.14);
    --soon-text: #fcd34d;
    --soon-border: rgba(245, 158, 11, 0.35);
    --ok: #34d399;
  }
}

/* ---------- Tokens (tema escuro escolhido manualmente) ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1120;
  --bg-alt: #0e1628;
  --surface: #121c31;
  --surface-2: #172238;
  --border: #23314b;
  --border-strong: #34476b;
  --text: #e7edf6;
  --text-2: #c5d0e0;
  --muted: #9aa8bc;
  --link: #93c5fd;
  --link-hover: #bfdbfe;
  --accent-text: #93c5fd;
  --accent-soft: rgba(59, 130, 246, 0.12);
  --accent-soft-2: rgba(59, 130, 246, 0.2);
  --accent-border: rgba(96, 165, 250, 0.35);
  --grad-text: linear-gradient(120deg, #60a5fa 0%, #93c5fd 60%, #bfdbfe 100%);
  --header-bg: rgba(11, 17, 32, 0.84);
  --focus: #93c5fd;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 10px 28px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 36px 80px -24px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(148, 163, 184, 0.08);
  --hero-glow-1: rgba(59, 130, 246, 0.24);
  --hero-glow-2: rgba(30, 64, 175, 0.3);
  --grid-line: rgba(148, 163, 184, 0.07);
  --code-bg: #080d19;
  --soon-bg: rgba(245, 158, 11, 0.14);
  --soon-text: #fcd34d;
  --soon-border: rgba(245, 158, 11, 0.35);
  --ok: #34d399;
}

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

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

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

html.has-modal {
  overflow: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Enquanto a tradução é aplicada, evita mostrar o texto em português por um instante.
   A animação garante que a página apareça mesmo se o JavaScript falhar. */
html.i18n-pending body {
  visibility: hidden;
  animation: i18n-reveal 0s linear 1.2s forwards;
}

@keyframes i18n-reveal {
  to {
    visibility: visible;
  }
}

[hidden] {
  display: none !important;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  color: var(--text);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--link-hover);
  text-decoration-thickness: 2px;
}

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

::selection {
  background: rgba(59, 130, 246, 0.28);
}

code,
kbd {
  font-family: var(--font-mono);
  font-size: 0.88em;
}

code {
  padding: 0.08em 0.38em;
  border: 1px solid var(--accent-border);
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--text);
}

.menu-path {
  display: inline-block;
  padding: 0.05em 0.45em;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.92em;
  font-weight: 600;
  line-height: 1.45;
}

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

.icon {
  display: inline-block;
  flex: none;
  width: 1.25em;
  height: 1.25em;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--brand-800);
  color: #ffffff;
  font-weight: 650;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: #ffffff;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 44px;
  padding: 0.7em 1.3em;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--grad-button);
  color: #ffffff;
  box-shadow: 0 8px 20px -8px rgba(37, 99, 235, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn--primary:hover {
  background: var(--grad-button-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -10px rgba(37, 99, 235, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn--ghost {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--brand-500);
  color: var(--accent-text);
}

.btn--lg {
  min-height: 52px;
  padding: 0.85em 1.6em;
  font-size: 1.0625rem;
}

.btn--sm {
  min-height: 38px;
  padding: 0.5em 1em;
  font-size: 0.9375rem;
}

.btn--block {
  width: 100%;
}

.btn .icon {
  width: 1.15em;
  height: 1.15em;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.icon-btn:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.icon-btn .icon {
  width: 20px;
  height: 20px;
}

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 10px;
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand img {
  width: 32px;
  height: 32px;
}

.brand__light {
  color: var(--muted);
  font-weight: 550;
}

.site-nav {
  margin-left: auto;
}

.nav-links {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 0.9375rem;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover {
  background: var(--surface-2);
  color: var(--text);
}

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

/* Páginas sem menu (ex.: 404): ações alinhadas à direita. */
.brand + .header-actions {
  margin-left: auto;
}

.lang-switch {
  display: inline-flex;
  flex: none;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.lang-switch a:hover {
  color: var(--text);
}

.lang-switch a[aria-current="true"] {
  background: var(--brand-600);
  color: #ffffff;
}

.theme-toggle[aria-pressed="true"] .icon-moon,
.theme-toggle[aria-pressed="false"] .icon-sun {
  display: none;
}

.nav-toggle {
  display: none;
}

html:not(.js) .theme-toggle,
html:not(.js) .nav-toggle,
html:not(.js) .lang-switch {
  display: none;
}

/* Menu recolhido (botão ☰). Com 7 links, o menu em linha precisa de ~1220px em espanhol;
   manter em sincronia com o matchMedia('(min-width: 1281px)') de assets/js/main.js. */
@media (max-width: 1280px) {
  .header-inner {
    position: relative;
  }

  .js .nav-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    margin: 0;
    padding: 8px var(--gutter) 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    box-shadow: var(--shadow-md);
  }

  .js .site-nav.is-open {
    display: block;
  }

  .js .nav-links {
    flex-direction: column;
  }

  .js .nav-links a {
    padding: 12px;
    font-size: 1rem;
  }

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

  html:not(.js) .header-inner {
    flex-wrap: wrap;
    padding-block: 8px;
  }

  html:not(.js) .site-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }
}

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

@media (max-width: 480px) {
  .header-inner {
    gap: 8px;
  }

  .header-actions {
    gap: 6px;
  }

  .brand {
    gap: 8px;
    font-size: 1rem;
  }

  .brand img {
    width: 28px;
    height: 28px;
  }

  .lang-switch a {
    min-width: 30px;
    height: 28px;
    padding: 0 6px;
    font-size: 0.75rem;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 380px) {
  .brand__light {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(48px, 8vw, 96px) 0 clamp(48px, 6vw, 72px);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  background:
    radial-gradient(55% 45% at 50% 0%, var(--hero-glow-1), transparent 70%),
    radial-gradient(35% 35% at 90% 35%, var(--hero-glow-2), transparent 70%),
    radial-gradient(30% 30% at 8% 55%, var(--hero-glow-2), transparent 70%);
}

.hero::after {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(70% 50% at 50% 15%, #000 25%, transparent 80%);
  mask-image: radial-gradient(70% 50% at 50% 15%, #000 25%, transparent 80%);
}

.hero__inner {
  max-width: 1000px;
  text-align: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 5px 14px 5px 5px;
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.hero__eyebrow:hover {
  border-color: var(--brand-500);
  color: var(--text);
}

.hero__eyebrow .icon {
  width: 16px;
  height: 16px;
  color: var(--accent-text);
}

.pill {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--grad-button);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero__title {
  margin: 0 auto 22px;
  font-size: clamp(2.125rem, 5.4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero__title > span {
  display: block;
}

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero__lead {
  max-width: 700px;
  margin: 0 auto 32px;
  color: var(--text-2);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin: 28px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  list-style: none;
}

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

.hero__meta .icon {
  width: 18px;
  height: 18px;
  color: var(--accent-text);
}

.hero__visual-wrap {
  margin-top: clamp(40px, 6vw, 64px);
}

.hero__visual {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
}

.app-window {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.app-window__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 34px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.app-window__dots {
  display: flex;
  flex: none;
  gap: 6px;
}

.app-window__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.app-window__title {
  flex: 1;
  min-width: 0;
  margin-right: 42px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-window img {
  width: 100%;
}

.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 650;
  white-space: nowrap;
}

.float-chip__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--grad-brand);
  color: #ffffff;
}

.float-chip__icon .icon {
  width: 17px;
  height: 17px;
}

.float-chip--a {
  bottom: 14%;
  left: -32px;
}

.float-chip--b {
  top: 18%;
  right: -32px;
}

@media (prefers-reduced-motion: no-preference) {
  .float-chip--a {
    animation: float-y 7s ease-in-out infinite;
  }

  .float-chip--b {
    animation: float-y 7s ease-in-out -3.5s infinite;
  }
}

@keyframes float-y {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 1240px) {
  .float-chip--a {
    left: 14px;
  }

  .float-chip--b {
    right: 14px;
  }
}

@media (max-width: 760px) {
  .float-chip {
    display: none;
  }

  .app-window {
    border-radius: 10px;
  }

  .app-window__bar {
    height: 26px;
    padding: 0 10px;
  }

  .app-window__dots i {
    width: 8px;
    height: 8px;
  }

  .app-window__title {
    font-size: 0.6875rem;
  }
}

/* ---------- Destaques numéricos ---------- */
.stats {
  padding: 8px 0 0;
}

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

.stats__list li {
  padding: 20px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.stats__list strong {
  display: block;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.stats__list span {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.4;
}

@media (max-width: 760px) {
  .stats__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

/* ---------- Seções ---------- */
.section {
  padding: clamp(64px, 9vw, 112px) 0;
}

.section--alt {
  border-block: 1px solid var(--border);
  background: var(--bg-alt);
}

.section__head {
  max-width: 780px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}

.section__head h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.625rem);
  letter-spacing: -0.03em;
}

.section__lead {
  margin: 0;
  color: var(--text-2);
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  color: var(--accent-text);
  font-size: 0.8125rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

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

.checklist li {
  position: relative;
  padding-left: 30px;
  color: var(--text-2);
}

.checklist li::before {
  content: "";
  position: absolute;
  top: 0.22em;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft-2);
}

.checklist li::after {
  content: "";
  position: absolute;
  top: calc(0.22em + 5px);
  left: 7px;
  width: 6px;
  height: 10px;
  border: solid var(--accent-text);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checklist--sm li {
  font-size: 0.9375rem;
}

.checklist--sm li::before {
  top: 0.15em;
}

.checklist--sm li::after {
  top: calc(0.15em + 5px);
}

.icon-badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--grad-brand);
  box-shadow: 0 10px 22px -10px rgba(37, 99, 235, 0.7);
  color: #ffffff;
}

.icon-badge .icon {
  width: 24px;
  height: 24px;
}

.icon-badge--soft {
  background: var(--accent-soft-2);
  box-shadow: none;
  color: var(--accent-text);
}

/* ---------- Padrão e Rico/Avançado (seção #padrao-e-rico; classes .hybrid* por histórico) ---------- */
.hybrid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.mode-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.mode-card__media {
  padding: 22px 22px 0;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(80% 80% at 50% 0%, var(--hero-glow-1), transparent 75%),
    var(--surface-2);
}

.mode-card__media img {
  width: 100%;
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.35);
}

.mode-card__body {
  padding: 26px 28px 30px;
}

.mode-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--accent-text);
  font-size: 0.8125rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.mode-card__tag .icon {
  width: 18px;
  height: 18px;
}

.mode-card h3 {
  font-size: 1.375rem;
}

.mode-card p {
  color: var(--text-2);
}

.hybrid__swap {
  position: absolute;
  top: 26%;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--grad-button);
  box-shadow: 0 0 0 7px var(--bg), var(--shadow-md);
  color: #ffffff;
  transform: translate(-50%, -50%);
}

.hybrid__swap .icon {
  width: 26px;
  height: 26px;
}

.hybrid__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 760px;
  margin: 32px auto 0;
  padding: 14px 20px;
  border: 1px dashed var(--accent-border);
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--text-2);
  font-size: 1rem;
  text-align: left;
}

.hybrid__note .icon {
  width: 22px;
  height: 22px;
  color: var(--accent-text);
}

.hybrid__note p {
  margin: 0;
}

@media (max-width: 860px) {
  .hybrid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hybrid__swap {
    display: none;
  }
}

@media (max-width: 480px) {
  .mode-card__media {
    padding: 14px 14px 0;
  }

  .mode-card__body {
    padding: 22px 20px 24px;
  }
}

/* ---------- Modos (Híbrido, Padrão, Rico/Avançado, Desenvolvedor) ----------
   Cartões .feature-card.mode-tile, na ordem do menu Arquivo do app. */
.modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

/* Modo Safe: quinto cartão, abaixo do Modo Desenvolvedor, ocupando a linha toda. */
.mode-tile--wide {
  grid-column: 1 / -1;
}

.mode-tile__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.mode-tile__head .icon-badge {
  margin-bottom: 0;
}

.mode-tile .mode-tile__keys {
  margin: 0;
  padding-top: 10px;
}

.mode-tile .mode-tile__menu {
  margin: 0 0 12px;
  font-size: 0.875rem;
}

.mode-tile h3 .badge {
  margin-left: 4px;
  vertical-align: 0.15em;
}

/* Atalho de teclado: <kbd class="shortcut"><kbd>Ctrl</kbd>+<kbd>N</kbd></kbd> */
.shortcut {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.shortcut kbd {
  display: inline-block;
  min-width: 2em;
  padding: 0.15em 0.5em;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 1em;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
}

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

/* ---------- Recursos ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.feature-card h3 {
  margin-bottom: 8px;
  font-size: 1.1875rem;
}

.feature-card p {
  color: var(--text-2);
  font-size: 1rem;
}

/* Cartão que ocupa a linha inteira da grade (ex.: Modo Desenvolvedor). */
.feature-card--wide {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 16px 40px;
  align-items: start;
}

.feature-card--wide .feature-card__intro p {
  margin: 0;
}

.feature-card--wide .checklist {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
}

.extras {
  margin-top: clamp(40px, 6vw, 64px);
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.extras h3 {
  margin-bottom: 24px;
  font-size: 1.25rem;
  text-align: center;
}

.extras ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.extras li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.extras li .icon {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--accent-text);
}

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

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

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

@media (max-width: 640px) {
  .features,
  .extras ul,
  .feature-card--wide .checklist {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-card {
    padding: 24px 22px;
  }
}

/* ---------- Dev Tools & QA (#dev-tools) e versão online (#online) ---------- */
.tool-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.feature-card--wide .chips {
  margin: 12px 0 0;
}

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

.section__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(28px, 4vw, 40px);
}

@media (max-width: 900px) {
  .online-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
    margin-inline: auto;
  }
}

/* ---------- Galeria ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shot {
  margin: 0;
}

.shot a {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  box-shadow: var(--shadow-md);
}

.shot img {
  width: 100%;
  transition: transform 0.35s ease;
}

.shot a:hover img {
  transform: scale(1.03);
}

.shot__zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.78);
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.shot__zoom .icon {
  width: 18px;
  height: 18px;
}

.shot a:hover .shot__zoom,
.shot a:focus-visible .shot__zoom {
  opacity: 1;
}

.shot figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.shot figcaption strong {
  display: block;
  color: var(--text);
  font-size: 1.0625rem;
}

@media (hover: none) {
  .shot__zoom {
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .gallery {
    grid-template-columns: minmax(0, 1fr);
    max-width: 640px;
    margin-inline: auto;
  }
}

/* ---------- Para quem ---------- */
.personas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.persona {
  position: relative;
  overflow: hidden;
  padding: 32px 28px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.persona::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--grad-brand);
}

.persona h3 {
  font-size: 1.1875rem;
}

.persona p {
  margin: 0;
  color: var(--text-2);
}

@media (max-width: 900px) {
  .personas {
    grid-template-columns: minmax(0, 1fr);
    max-width: 640px;
    margin-inline: auto;
  }
}

/* ---------- Formato .rbdoc ---------- */
.rbdoc {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 28px;
}

.panel {
  padding: clamp(24px, 3.5vw, 36px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.panel h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
}

.panel h3 .icon-badge {
  width: 40px;
  height: 40px;
  margin: 0;
  border-radius: 12px;
}

.panel h3 .icon-badge .icon {
  width: 21px;
  height: 21px;
}

.panel > p {
  color: var(--text-2);
}

.tree {
  margin: 20px 0 24px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--code-bg);
  color: var(--code-text);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.5;
  list-style: none;
}

.tree li {
  display: grid;
  grid-template-columns: minmax(0, 15ch) minmax(0, 1fr);
  gap: 2px 16px;
  padding: 5px 0;
}

.tree .tree__root {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  color: #93c5fd;
  font-weight: 700;
}

.tree .tree__root .icon {
  width: 18px;
  height: 18px;
}

.tree__name {
  white-space: nowrap;
}

.tree__name::before {
  content: "├─ ";
  color: var(--code-branch);
}

.tree li:last-child .tree__name::before {
  content: "└─ ";
}

.tree__desc {
  min-width: 0;
  color: var(--code-muted);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}

.tree__desc code {
  padding: 0;
  border: 0;
  background: none;
  color: #fcd34d;
}

@media (max-width: 560px) {
  .tree {
    padding: 14px 14px;
  }

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

  .tree__desc {
    padding-left: 3ch;
  }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 5px 10px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.chips .chips__more {
  border-color: transparent;
  background: var(--grad-button);
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 650;
}

.panel__note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.9375rem;
}

.panel__note .icon {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--accent-text);
}

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

/* ---------- Privacidade e segurança ---------- */
.privacy {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr);
  gap: 28px;
  align-items: start;
}

.privacy__card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--grad-deep);
  box-shadow: var(--shadow-lg);
  color: #ffffff;
}

.privacy__card::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  border: 36px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.privacy__card .icon-badge {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.privacy__big {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: clamp(2.25rem, 4.6vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.privacy__card p {
  color: #e0e9ff;
}

.privacy__card .checklist li {
  color: #ffffff;
}

.privacy__card .checklist li::before {
  background: rgba(255, 255, 255, 0.18);
}

.privacy__card .checklist li::after {
  border-color: #ffffff;
}

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

.sec-item {
  display: flex;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.sec-item .icon-badge {
  width: 42px;
  height: 42px;
  margin: 0;
  border-radius: 12px;
}

.sec-item .icon-badge .icon {
  width: 22px;
  height: 22px;
}

.sec-item h3 {
  margin-bottom: 4px;
  font-size: 1.0625rem;
}

.sec-item p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.55;
}

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

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

  .sec-item {
    padding: 18px;
  }
}

/* ---------- Download ---------- */
.dl-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 10px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.dl-meta__sep {
  color: var(--border-strong);
}

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

@media (max-width: 560px) {
  .dl-meta {
    flex-direction: column;
    gap: 2px;
  }

  .dl-meta__sep {
    display: none;
  }
}

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

.dl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.dl-card.is-recommended {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px var(--accent-soft-2), var(--shadow-md);
}

.dl-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.dl-card__head .icon-badge {
  margin: 0;
}

.dl-card__head h3 {
  margin: 0;
  font-size: 1.375rem;
}

.dl-card__req {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.dl-card__actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.dl-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.dl-btn:hover {
  border-color: var(--brand-500);
  background: var(--accent-soft);
  color: var(--text);
}

.dl-btn--primary {
  border-color: transparent;
  background: var(--grad-button);
  box-shadow: 0 8px 20px -10px rgba(37, 99, 235, 0.7);
  color: #ffffff;
}

.dl-btn--primary:hover {
  border-color: transparent;
  background: var(--grad-button-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.dl-btn .icon {
  width: 22px;
  height: 22px;
}

.dl-btn__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.dl-btn__label {
  font-weight: 700;
}

.dl-btn__file {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  opacity: 0.82;
  overflow-wrap: anywhere;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.5;
  white-space: nowrap;
}

.badge--soon {
  border: 1px solid var(--soon-border);
  background: var(--soon-bg);
  color: var(--soon-text);
}

.badge--rec {
  position: absolute;
  top: -13px;
  right: 22px;
  background: var(--grad-button);
  box-shadow: var(--shadow-sm);
  color: #ffffff;
}

.badge--latest {
  border: 1px solid var(--accent-border);
  background: var(--accent-soft-2);
  color: var(--accent-text);
}

.dl-grid--secondary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.dl-verify {
  max-width: none;
  margin-top: 22px;
  font-size: 0.9375rem;
}

.dl-card--row {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 18px;
  padding: 22px 24px;
}

.dl-card--row .icon-badge {
  margin: 0;
}

.dl-card__body {
  flex: 1 1 200px;
  min-width: 0;
}

.dl-card__body h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0 0 4px;
  font-size: 1.125rem;
}

.dl-card__body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

a[data-pending="true"] {
  cursor: not-allowed;
  opacity: 0.6;
}

a[data-pending="true"]:hover {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--text);
  transform: none;
}

.req {
  margin-top: 28px;
  padding: 26px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.req h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.125rem;
}

.req h3 .icon {
  color: var(--accent-text);
}

.req table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.req th,
.req td {
  padding: 11px 14px 11px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.req thead th {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.req tbody th {
  color: var(--text);
  font-weight: 700;
}

.req tbody td {
  color: var(--text-2);
}

.req tbody tr:last-child th,
.req tbody tr:last-child td {
  border-bottom: 0;
}

.req__note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

@media (max-width: 1000px) {
  .dl-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 640px;
    margin-inline: auto;
  }

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

  .req {
    max-width: 640px;
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .dl-card {
    padding: 24px 20px;
  }

  .req {
    padding: 22px 18px;
  }

  .req thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .req tbody tr {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .req tbody tr:last-child {
    border-bottom: 0;
  }

  .req tbody th,
  .req tbody td {
    display: block;
    padding: 2px 0;
    border: 0;
  }
}

/* ---------- Versões ---------- */
.versions {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.current {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.current__label {
  margin: 0 0 4px;
  color: var(--accent-text);
  font-size: 0.8125rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.current__number {
  margin: 0 0 6px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-family: var(--font-mono);
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.current__date {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.current h3 {
  margin: 26px 0 12px;
  font-size: 1.0625rem;
}

.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 36px;
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.55;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-soft-2);
  color: var(--accent-text);
  font-size: 0.8125rem;
  font-weight: 750;
}

.current__note {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}

.changelog__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
}

.changelog__title .icon {
  color: var(--accent-text);
}

.release {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.release + .release {
  margin-top: 16px;
}

.release__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 12px;
}

.release__head h4 {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.release__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.9375rem;
}

.release__date .icon {
  width: 18px;
  height: 18px;
}

.release__summary {
  color: var(--text-2);
}

.release__list li {
  font-size: 0.9875rem;
}

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

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

  .current {
    position: static;
  }
}

@media (max-width: 560px) {
  .current,
  .release {
    padding: 22px 20px;
  }

  .release__date {
    margin-left: 0;
  }
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 12px;
  max-width: 840px;
  margin: 0 auto;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq details[open] {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-sm);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-radius: var(--radius);
  font-size: 1.0625rem;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border: solid var(--muted);
  border-width: 0 2px 2px 0;
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}

.faq summary:hover {
  color: var(--accent-text);
}

.faq__body {
  padding: 0 22px 20px;
  color: var(--text-2);
}

.faq__body p {
  margin: 0;
}

/* ---------- Rodapé ---------- */
.site-footer {
  padding: 56px 0 28px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
  gap: 40px;
}

.footer-brand p {
  max-width: 36ch;
  margin: 14px 0 0;
  color: var(--muted);
}

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

.footer-title {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

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

.footer-nav a {
  color: var(--text-2);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--accent-text);
  text-decoration: underline;
}

.footer-nav .badge {
  margin-left: 6px;
  padding: 1px 8px;
  font-size: 0.6875rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-bottom p {
  margin: 0;
}

.site-footer--compact {
  padding-top: 0;
}

.site-footer--compact .footer-bottom {
  margin-top: 0;
  border-top: 0;
}

.footer-bottom a {
  color: var(--muted);
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

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

/* ---------- Visualizador de imagens ---------- */
.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
}

.lightbox::backdrop {
  background: rgba(2, 6, 23, 0.93);
}

.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: min(1280px, calc(100% - 128px));
  margin: 0;
}

.lightbox__img {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.lightbox__caption {
  max-width: 70ch;
  color: #e2e8f0;
  font-size: 0.9375rem;
  text-align: center;
}

.lightbox__counter {
  display: block;
  margin-top: 2px;
  color: #94a3b8;
  font-size: 0.8125rem;
}

.lightbox .icon-btn {
  position: absolute;
  width: 48px;
  height: 48px;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
}

.lightbox .icon-btn:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(30, 64, 175, 0.85);
}

.lightbox .icon-btn:focus-visible {
  outline-color: #93c5fd;
}

.lightbox__close {
  top: 16px;
  right: 16px;
}

.lightbox__prev,
.lightbox__next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__prev {
  left: 16px;
}

.lightbox__next {
  right: 16px;
}

@media (max-width: 640px) {
  .lightbox__figure {
    max-width: calc(100% - 24px);
  }

  .lightbox__prev,
  .lightbox__next {
    top: auto;
    bottom: 16px;
    transform: none;
  }

  .lightbox__img {
    max-height: calc(100vh - 220px);
  }
}

/* ---------- Página 404 ---------- */
.nf {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(64px, 12vw, 140px) 0;
  text-align: center;
}

.nf::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(55% 55% at 50% 0%, var(--hero-glow-1), transparent 70%);
}

.nf__logo {
  width: 88px;
  height: 88px;
  margin: 0 auto 28px;
}

.nf__code {
  margin: 0 0 8px;
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nf h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.03em;
}

.nf p {
  max-width: 52ch;
  margin: 0 auto 28px;
  color: var(--text-2);
}

.nf__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ---------- Acessibilidade e impressão ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  .gradient-text,
  .stats__list strong,
  .current__number {
    background: none;
    color: CanvasText;
    -webkit-text-fill-color: currentColor;
  }

  .btn,
  .dl-btn,
  .lang-switch a[aria-current="true"] {
    border: 1px solid ButtonText;
  }
}

@media print {
  .site-header,
  .hero__actions,
  .float-chip,
  .lightbox,
  .skip-link {
    display: none !important;
  }

  .section,
  .hero {
    padding: 24px 0;
  }

  .current {
    position: static;
  }
}
