/* ==========================================================================
   GoldPDF Studio — Atelier Executivo Chiaroscuro & Folha de Ouro
   Design system luxuoso executivo (#070707 / #11100E / #C89B3C)
   ========================================================================== */

:root {
  --bg: #070707;
  --surface: #11100E;
  --surface-hover: #181613;
  --surface-2: #14120F;
  --line: rgba(200, 155, 60, 0.14);
  --border-light: rgba(200, 155, 60, 0.22);
  --border-hover: rgba(200, 155, 60, 0.45);
  --text: #EDE8DF;
  --muted: #A39C90;
  --subtle: #736D64;
  --gold: #C89B3C;
  --gold-hover: #E0B458;
  --gold-ink: #120B02;
  --gold-shadow: rgba(200, 155, 60, 0.30);
  --ok: #34D399;
  --ok-bg: rgba(52, 211, 153, 0.10);
  --ok-border: rgba(52, 211, 153, 0.30);
  --bad: #C2645A;
  --radius-card: 12px;
  --radius-btn: 10px;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --header-h: 64px;
  --ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-exit: cubic-bezier(0.22, 1, 0.36, 1);
  --spring-snappy: linear(
    0, 0.0347, 0.1182, 0.2269, 0.3441, 0.4591, 0.5654, 0.6594, 0.7398, 0.8064,
    0.8603, 0.9028, 0.9355, 0.96, 0.9778, 0.9902, 0.9986, 1.0039, 1.007, 1.0084,
    1.0088, 1.0084, 1.0077, 1.0067, 1.0057, 1.0047, 1.0038, 1.0029, 1
  );
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  color-scheme: dark;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(circle at 50% -10%, rgba(200, 155, 60, 0.22) 0%, rgba(7, 7, 7, 0.98) 70%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.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;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Tipografia & Layout
   -------------------------------------------------------------------------- */

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--text);
  margin: 0;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 1.2rem + 3.6vw, 3.5rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.125rem);
  letter-spacing: -0.015em;
  line-height: 1.2;
  text-wrap: balance;
}

h3 {
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 20px;
}

@media (max-width: 380px) {
  .container {
    padding-inline: 16px;
  }
}

.section {
  padding-block: clamp(64px, 10vw, 112px);
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 680px;
  margin-bottom: clamp(32px, 5vw, 48px);
}

.section-head p {
  margin-top: 12px;
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   Botões (Alvo tátil >= 48px)
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 160ms var(--ease-enter),
    border-color 160ms var(--ease-enter),
    color 160ms var(--ease-enter),
    transform 140ms var(--ease-enter);
}

.btn:active:not(:disabled) {
  transform: scale(0.985);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-compact {
  min-height: 48px;
  padding: 10px 14px;
  font-size: 13px;
}

.btn-gold {
  background: linear-gradient(180deg, #D8AB48 0%, #A8791C 100%);
  color: var(--gold-ink);
  font-weight: 800;
  border: 1px solid #E0B458;
  box-shadow: 0 4px 18px var(--gold-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-gold:hover {
  background: linear-gradient(180deg, #E2B756 0%, #B88523 100%);
  box-shadow: 0 6px 22px rgba(200, 155, 60, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-gold:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-gold:disabled:hover {
  background: linear-gradient(180deg, #D8AB48 0%, #A8791C 100%);
}

.btn-outline {
  background-color: #11100E;
  border-color: #28241E;
  color: var(--text);
}

.btn-outline:hover {
  background-color: #181613;
  border-color: rgba(200, 155, 60, 0.35);
}

.btn-outline-gold {
  background-color: transparent;
  border-color: color-mix(in srgb, var(--gold) 45%, transparent);
  color: var(--gold);
}

.btn-outline-gold:hover {
  background-color: color-mix(in srgb, var(--gold) 10%, transparent);
  border-color: var(--gold);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  font-size: 15px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
}

.text-link:hover {
  color: var(--gold-hover);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* --------------------------------------------------------------------------
   Header Fixo & Menu Popover Mobile
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  background-color: rgba(10, 9, 8, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 155, 60, 0.15);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
}

.brand-name--hide-xs {
  display: inline;
}

@media (max-width: 419px) {
  .brand-name--hide-xs {
    display: none;
  }
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding-inline: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 150ms ease, background-color 150ms ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--text);
}

.nav-link[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

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

.header-cta {
  padding: 10px 14px;
  font-size: 13px;
  white-space: nowrap;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background-color: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle:hover {
  background-color: var(--surface);
}

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

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

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }
}

/* Header compacto do Blog/Artigo */
.subnav-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.subnav-inline .nav-link {
  padding-inline: 10px;
}

.subnav-inline .label-short {
  display: none;
}

@media (max-width: 639px) {
  .subnav-inline {
    gap: 2px;
  }

  .subnav-inline .nav-link {
    padding-inline: 6px;
    font-size: 13px;
  }

  .subnav-inline .label-full {
    display: none;
  }

  .subnav-inline .label-short {
    display: inline;
  }

  .header-cta {
    padding: 8px 10px;
    font-size: 12px;
  }
}

/* Menu Mobile Nativo (Popover API) */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  margin: 0;
  width: 100%;
  max-width: 100%;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: 12px 20px 20px;
  background-color: var(--surface);
  color: var(--text);
  border: 0;
  border-bottom: 1px solid var(--line);
}

.mobile-menu[popover]:not(:popover-open) {
  display: none;
}

.mobile-menu:is(:popover-open, .\:popover-open) {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu::backdrop {
  background-color: rgba(0, 0, 0, 0.55);
}

.mobile-menu a:not(.btn) {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding-inline: 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.mobile-menu a:not(.btn):hover {
  color: var(--gold);
}

.mobile-menu .btn {
  margin-top: 12px;
  width: 100%;
}

/* Fallback não-popover caso o navegador não suporte popover nativo */
.mobile-menu.is-fallback {
  display: none;
  z-index: 49;
}

.mobile-menu.is-fallback.is-open {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* --------------------------------------------------------------------------
   Hero (Camadas z-0 atmosfera / z-10 conteúdo)
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block-start: clamp(92px, 10vw, 124px);
  padding-block-end: clamp(56px, 7vw, 84px);
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 25%, #000 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 25%, #000 10%, transparent 80%);
}

.hero > .container {
  position: relative;
  z-index: 10;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
    gap: 48px;
  }
}

.hero-inner {
  min-width: 0;
  max-width: 680px;
}

.hero h1 {
  font-size: clamp(1.95rem, 1.2rem + 2.8vw, 3.2rem);
  letter-spacing: -0.03em;
}

.text-gold {
  color: var(--gold);
  text-shadow: 0 2px 14px rgba(200, 155, 60, 0.28);
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(200, 155, 60, 0.3);
  border-radius: 999px;
  background: rgba(200, 155, 60, 0.08);
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-subtitle {
  margin-top: 20px;
  font-size: clamp(1rem, 0.94rem + 0.35vw, 1.15rem);
  color: var(--muted);
  max-width: 60ch;
}

.hero-cta-group {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.hero-cta-primary {
  padding-inline: 24px;
}

@media (max-width: 519px) {
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-primary {
    width: 100%;
    text-align: center;
  }
}

.hero-micro {
  margin-top: 12px;
  font-size: 13px;
  color: var(--subtle);
}

/* Painel de Prova Prática no Hero */
.hero-proof-panel {
  min-width: 0;
  background: linear-gradient(175deg, #161410 0%, #0A0907 100%);
  border: 1px solid rgba(200, 155, 60, 0.25);
  border-radius: var(--radius-card);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(200, 155, 60, 0.2);
  padding: 20px;
}

.proof-header {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.proof-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.proof-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}

.proof-item:last-child {
  border-bottom: 0;
}

.proof-icon {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.proof-content {
  min-width: 0;
  flex: 1;
}

.proof-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.proof-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.proof-badge-ok {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--ok-border);
  background-color: var(--ok-bg);
  color: var(--ok);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

.proof-desc {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

.proof-footer {
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   Simulador do Aplicativo (#como-funciona)
   -------------------------------------------------------------------------- */

.app-window {
  background: linear-gradient(175deg, #161410 0%, #0A0907 100%);
  border: 1px solid rgba(200, 155, 60, 0.25);
  border-radius: var(--radius-card);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(200, 155, 60, 0.2);
  overflow: hidden;
}

.app-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background-color: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.app-titlebar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.app-titlebar-brand img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.app-win-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--subtle);
  font-size: 14px;
  line-height: 1;
  user-select: none;
}

@media (max-width: 519px) {
  .app-win-controls {
    display: none;
  }
}

.app-tablist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background-color: var(--bg);
  border-bottom: 1px solid var(--line);
}

.app-tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 8px;
  background-color: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: color 150ms ease, background-color 150ms ease;
}

.app-tab:last-child {
  border-right: 0;
}

.app-tab:hover {
  color: var(--text);
  background-color: var(--surface-2);
}

.app-tab[aria-selected="true"] {
  color: var(--text);
  background-color: var(--surface);
}

.app-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  border-block-end: 2px solid var(--gold);
}

.app-tab .label-short {
  display: none;
}

@media (max-width: 479px) {
  .app-tab {
    font-size: 13px;
  }

  .app-tab .label-full {
    display: none;
  }

  .app-tab .label-short {
    display: inline;
  }
}

@keyframes panelReveal {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app-panel {
  padding: 16px;
  animation: panelReveal 220ms var(--ease-enter);
}

.app-panel[hidden] {
  display: none;
}

@media (min-width: 640px) {
  .app-panel {
    padding: 28px;
  }
}

/* Aba 1: Comprimir */
.compress-bar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 768px) {
  .compress-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.compress-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  min-width: 0;
}

.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: var(--surface-2);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.file-chip svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
  flex-shrink: 0;
}

.size-readout {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.size-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.size-limit {
  font-size: 13px;
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background-color: var(--bg);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.status-pill.is-ok {
  border-color: var(--ok-border);
  background-color: var(--ok-bg);
  color: var(--ok);
}

.compress-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 240px;
}

.compress-slider-wrap label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.range-input {
  width: 100%;
  min-height: 48px;
  margin: 0;
  accent-color: var(--gold);
  cursor: pointer;
}

/* Comparador Antes / Depois */
.compare {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  max-height: 420px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background-color: #FAFAF7;
  user-select: none;
  --pos: 50%;
}

@media (max-width: 599px) {
  .compare {
    aspect-ratio: 4 / 3;
  }
}

.compare-layer {
  position: absolute;
  inset: 0;
}

.compare-layer svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-online {
  filter: blur(var(--blur, 1.2px)) contrast(0.85) saturate(0.6);
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.compare-divider {
  position: absolute;
  inset-block: 0;
  left: var(--pos);
  width: 2px;
  background-color: var(--gold);
  transform: translateX(-1px);
  pointer-events: none;
}

.compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--gold);
  color: var(--gold-ink);
  border: 2px solid var(--bg);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
}

.compare-tag {
  position: absolute;
  z-index: 3;
  padding: 4px 10px;
  border-radius: 6px;
  background-color: rgba(17, 17, 19, 0.88);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
  white-space: nowrap;
}

.compare-tag--left {
  top: 10px;
  left: 10px;
}

.compare-tag--right {
  top: 10px;
  right: 10px;
  color: var(--gold);
}

.compare-tag--zoom {
  bottom: 10px;
  left: 10px;
  color: var(--muted);
  font-weight: 500;
}

@media (max-width: 519px) {
  .compare-tag {
    font-size: 11px;
    padding: 3px 7px;
  }

  .compare-tag--left {
    top: 8px;
    left: 8px;
  }

  .compare-tag--right {
    top: auto;
    bottom: 8px;
    right: 8px;
  }

  .compare-tag--zoom {
    bottom: 8px;
    left: 8px;
  }
}

/* Aba 2: Remover Páginas */
.pages-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 16px;
}

.pages-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.pages-hint {
  font-size: 13px;
  color: var(--muted);
}

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

@media (min-width: 768px) {
  .pages {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

.pages li {
  transition: opacity 220ms ease, transform 220ms ease;
}

.pages li.is-removing {
  opacity: 0;
  transform: scale(0.92);
}

.page {
  position: relative;
  width: 100%;
  min-height: 82px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background-color: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition:
    border-color 150ms var(--ease-enter),
    background-color 150ms var(--ease-enter),
    transform 280ms var(--spring-snappy);
}

.page:hover {
  background-color: var(--surface-2);
  border-color: #3F3F46;
}

.page:active {
  transform: scale(0.96);
}

.page[aria-pressed="true"] {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
  background-color: color-mix(in srgb, var(--gold) 8%, var(--bg));
}

.page-sheet {
  width: 30px;
  height: 36px;
  border-radius: 3px;
  background-color: var(--surface-2);
  border: 1px solid #3F3F46;
  padding: 5px 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.page-sheet span {
  display: block;
  height: 2px;
  border-radius: 1px;
  background-color: var(--subtle);
}

.page-sheet span:nth-child(2) {
  width: 75%;
}

.page-sheet span:nth-child(3) {
  width: 88%;
}

.page-sheet--blank span {
  opacity: 0.25;
}

.page-num {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.page-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 4px;
  background-color: var(--surface-2);
  color: var(--gold);
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  line-height: 1.3;
}

.page-check {
  display: none;
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--gold);
  color: var(--gold-ink);
  font-size: 11px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
}

.page[aria-pressed="true"] .page-check {
  display: flex;
}

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

.pages-selected {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.pages-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 519px) {
  .pages-actions {
    width: 100%;
  }

  .pages-actions .btn {
    flex: 1 1 100%;
  }
}

/* Aba 3: Juntar Documentos */
.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  counter-reset: doc-counter;
}

.doc-item {
  counter-increment: doc-counter;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 14px;
  background-color: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.doc-name {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  overflow-wrap: anywhere;
}

.doc-name::before {
  content: counter(doc-counter);
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background-color: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.doc-size {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.merge-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

@media (max-width: 519px) {
  .merge-actions .btn {
    width: 100%;
  }
}

.merge-progress {
  margin-top: 16px;
  width: 100%;
  height: 8px;
  background-color: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.merge-progress[hidden] {
  display: none;
}

.merge-progress-fill {
  height: 100%;
  width: 0%;
  background-color: var(--gold);
  transition: width 800ms ease-out;
}

.merge-result {
  margin-top: 16px;
  padding: 16px;
  background-color: color-mix(in srgb, var(--ok) 5%, var(--bg));
  border: 1px solid var(--ok-border);
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.merge-result[hidden] {
  display: none;
}

.merge-result-ok {
  font-size: 15px;
  font-weight: 700;
  color: var(--ok);
}

.merge-result-file {
  margin-top: 2px;
  font-size: 14px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Grid Genérico, Cards de Setores, Privacidade e Planos
   -------------------------------------------------------------------------- */

.cards-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 860px) {
  .cards-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.cards-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .cards-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  background: linear-gradient(175deg, #161410 0%, #0A0907 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(200, 155, 60, 0.15);
  padding: 24px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  transition: border-color 180ms var(--ease-enter), box-shadow 180ms var(--ease-enter);
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(200, 155, 60, 0.3);
}

.card-featured {
  border-color: rgba(200, 155, 60, 0.55);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(200, 155, 60, 0.4), 0 0 24px rgba(200, 155, 60, 0.15);
}

.card-featured:hover {
  border-color: var(--gold-hover);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(200, 155, 60, 0.5), 0 0 30px rgba(200, 155, 60, 0.25);
}

.sector-icon {
  width: 24px;
  height: 24px;
  color: var(--gold);
  margin-bottom: 16px;
}

.sector-pain {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

.card p.card-body {
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
  flex: 1;
}

.card-footer-link {
  margin-top: 12px;
}

/* Comparativo Privacidade */
.check-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--muted);
}

.check-list .mark,
.mark-icon {
  font-weight: 700;
  line-height: 1.5;
  flex-shrink: 0;
}

.mark-icon {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.mark-bad {
  color: var(--bad);
}

.mark-ok {
  color: var(--ok);
}

.mark-gold {
  color: var(--gold);
}

.privacy-link-wrap {
  margin-top: 24px;
}

/* Planos */
.plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.plan-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-ink);
  background-color: var(--gold);
  padding: 3px 10px;
  border-radius: 999px;
}

.plan-price {
  margin-top: 16px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.plan-amount {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.plan-period {
  font-size: 14px;
  color: var(--muted);
}

.plan-sub {
  margin-top: 6px;
  font-size: 14px;
  color: var(--gold);
  font-weight: 500;
}

.plan-scope {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}

.plan-features {
  list-style: none;
  margin: 20px 0 24px;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.plan-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-actions .btn {
  width: 100%;
}

.plan-secondary-link {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   FAQ Accordion (<details name="faq">)
   -------------------------------------------------------------------------- */

.faq-list {
  max-width: 780px;
  display: grid;
  gap: 10px;
}

.faq-item {
  background-color: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 180ms var(--ease-enter);
}

.faq-item:hover,
.faq-item[open] {
  border-color: var(--border-hover);
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 16px 20px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

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

.faq-chevron {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 180ms ease;
}

.faq-item[open] summary .faq-chevron {
  transform: rotate(180deg);
  color: var(--gold);
}

.faq-answer {
  padding: 0 20px 18px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Blog Index & Artigos Editoriais
   -------------------------------------------------------------------------- */

.blog-hero {
  padding-block-start: clamp(96px, 11vw, 132px);
  padding-block-end: clamp(40px, 6vw, 64px);
}

.blog-hero p {
  margin-top: 14px;
  font-size: 18px;
  color: var(--muted);
  max-width: 60ch;
}

.article-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: var(--surface-2);
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
}

.read-time {
  font-size: 13px;
  color: var(--subtle);
}

.article-card-title a {
  text-decoration: none;
  color: var(--text);
}

.article-card-title a:hover {
  color: var(--gold);
}

.article-shell {
  padding-block-start: clamp(96px, 11vw, 128px);
  padding-block-end: clamp(64px, 8vw, 96px);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

@media (min-width: 1024px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 56px;
  }
}

.article-main {
  min-width: 0;
  max-width: 68ch;
  overflow-wrap: anywhere;
}

.breadcrumb {
  font-size: 13px;
  color: var(--subtle);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--gold);
}

.article-header {
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.article-header h1 {
  font-size: clamp(1.75rem, 1.25rem + 2.2vw, 2.625rem);
  margin-top: 12px;
}

.article-lede {
  margin-top: 16px;
  font-size: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.article-meta {
  margin-top: 14px;
  font-size: 13px;
  color: var(--subtle);
}

.article-body {
  display: grid;
  gap: 20px;
  color: var(--muted);
}

.article-body h2 {
  margin-top: 16px;
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem);
}

.article-body h3 {
  margin-top: 8px;
  color: var(--text);
}

.article-body strong {
  color: var(--text);
  font-weight: 600;
}

.article-body ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.article-body li::marker {
  color: var(--gold);
}

.callout {
  padding: 18px 20px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
}

.callout-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 6px;
}

.article-cta-box {
  margin-block: 12px;
  padding: 24px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.article-cta-box--gold {
  border-color: color-mix(in srgb, var(--gold) 55%, transparent);
}

.article-cta-box h3 {
  margin-bottom: 8px;
}

.article-cta-box p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 16px;
}

/* Barra de Compartilhamento */
.share-wrap {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.share-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--subtle);
}

.share-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 14px;
  flex: 1 1 auto;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.share-btn:hover {
  background-color: var(--surface-2);
  border-color: #3F3F46;
}

.share-btn.is-copied {
  border-color: var(--gold);
  color: var(--gold);
}

/* Sidebar do Artigo */
.article-sidebar {
  display: grid;
  gap: 20px;
}

@media (min-width: 1024px) {
  .article-sidebar {
    position: sticky;
    top: 96px;
  }
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.sidebar-brand img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.sidebar-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.sidebar-sub {
  font-size: 13px;
  color: var(--muted);
}

.sidebar-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.sidebar-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.sidebar-guides {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.sidebar-guides a {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-block: 6px;
}

.sidebar-guides li:last-child a {
  border-bottom: 0;
}

.sidebar-guides a:hover {
  color: var(--gold);
}

/* Tabela Responsiva Semântica (Container Query) */
.table-wrapper {
  overflow: auto;
  max-inline-size: 100%;
  container-type: inline-size;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background-color: var(--surface);
}

.table-caption-bar {
  padding: 14px 16px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background-color: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.lgpd-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: 14px;
}

.lgpd-table th,
.lgpd-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.lgpd-table thead th {
  background-color: var(--bg);
  color: var(--text);
  font-weight: 600;
}

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

.lgpd-table tbody th {
  color: var(--text);
  font-weight: 600;
  background-color: var(--surface);
}

.cell-bad {
  color: var(--bad);
}

.cell-gold {
  color: var(--gold);
  font-weight: 600;
}

@container (width < 600px) {
  .lgpd-table,
  .lgpd-table thead,
  .lgpd-table tbody,
  .lgpd-table tr,
  .lgpd-table th,
  .lgpd-table td {
    display: block;
    width: 100%;
  }

  .lgpd-table thead {
    display: none;
  }

  .lgpd-table tbody tr {
    border-bottom: 1px solid var(--line);
    padding: 10px 14px;
  }

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

  .lgpd-table tbody th,
  .lgpd-table tbody td {
    padding: 6px 0;
    border-bottom: 0;
  }

  .lgpd-table tbody th {
    color: var(--text);
    font-size: 15px;
    padding-bottom: 8px;
  }

  .lgpd-table {
    --label-2: "Sites online gratuitos";
    --label-3: "GoldPDF Studio";
  }

  .lgpd-table td:nth-child(2)::before {
    content: var(--label-2) ": ";
    color: var(--subtle);
    font-weight: 500;
  }

  .lgpd-table td:nth-child(3)::before {
    content: var(--label-3) ": ";
    color: var(--subtle);
    font-weight: 500;
  }
}

/* --------------------------------------------------------------------------
   Footer Corporativo em 4 Colunas
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  background-color: var(--bg);
  padding-block: 56px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1.15fr 1fr;
    gap: 36px;
  }
}

.footer-desc {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
  max-width: 34ch;
}

.footer-seal {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 4px 10px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  background-color: var(--surface);
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
}

.footer-seal svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

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

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--subtle);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
}

.footer-lgpd {
  max-width: 70ch;
}

.footer-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   Páginas Institucionais (Suporte, Contato, Segurança, Privacidade, Termos)
   -------------------------------------------------------------------------- */

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.page-hero {
  padding-block-start: clamp(96px, 11vw, 132px);
  padding-block-end: clamp(36px, 5vw, 56px);
}

.page-hero h1 {
  max-width: 24ch;
}

.page-hero p {
  margin-top: 14px;
  font-size: clamp(1rem, 0.94rem + 0.35vw, 1.15rem);
  color: var(--muted);
  max-width: 62ch;
}

/* Central de Ajuda & Busca */
.help-search-wrap {
  margin-top: 24px;
  max-width: 580px;
}

.help-search {
  position: relative;
  display: flex;
  align-items: center;
}

.help-search-icon {
  position: absolute;
  left: 16px;
  width: 18px;
  height: 18px;
  color: var(--subtle);
  pointer-events: none;
}

.help-search-input {
  width: 100%;
  min-height: 52px;
  padding: 12px 92px 12px 44px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-btn);
  background-color: var(--surface);
  color: var(--text);
  font-size: max(1rem, 1em);
  line-height: 1.4;
}

.help-search-input::placeholder {
  color: var(--subtle);
}

.help-search-input:focus-visible {
  border-color: var(--gold);
}

.help-search-clear {
  position: absolute;
  right: 8px;
  min-height: 38px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.help-search-clear[hidden] {
  display: none;
}

.help-search-clear:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

.help-search-status {
  margin-top: 8px;
  font-size: 13px;
  color: var(--subtle);
}

.help-empty {
  margin-top: 20px;
  padding: 24px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  background-color: var(--surface);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.help-empty[hidden] {
  display: none;
}

[data-help-item][hidden] {
  display: none;
}

.step-list {
  margin: 14px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.step-list li::marker {
  color: var(--gold);
  font-weight: 700;
}

.inline-code {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: var(--bg);
  color: var(--gold);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}

/* SHA-256 & Blocos Copiáveis */
.sha-box {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background-color: var(--bg);
  min-width: 0;
  display: grid;
  gap: 10px;
}

.sha-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--subtle);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sha-code {
  display: block;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text);
  overflow-wrap: anywhere;
  word-break: break-all;
}

.copy-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  justify-self: start;
  transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease;
}

.copy-chip svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.copy-chip:hover {
  border-color: var(--border-hover);
  background-color: var(--surface-hover);
}

.copy-chip.is-copied {
  border-color: var(--gold);
  color: var(--gold);
}

/* Bloco CTA de Suporte / Segurança */
.cta-banner {
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  background: linear-gradient(175deg, #161410 0%, #0A0907 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(200, 155, 60, 0.16);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 860px) {
  .cta-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cta-banner p {
  margin-top: 8px;
  color: var(--muted);
  max-width: 58ch;
}

.cta-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

/* Contato B2B (2 colunas) */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 32px;
  }
}

.contact-channels {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.channel-actions {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.email-row {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  min-width: 0;
}

.email-row:first-of-type {
  margin-top: 16px;
}

.email-role {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.email-note {
  font-size: 13px;
  color: var(--muted);
}

.email-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  min-width: 0;
}

.email-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  overflow-wrap: anywhere;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.email-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Formulário de Contato */
.contact-form {
  margin-top: 20px;
  display: grid;
}

.form-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin-block-end: 18px;
  min-width: 0;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.form-optional {
  font-weight: 400;
  color: var(--subtle);
}

.form-required-mark {
  color: var(--gold);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-btn);
  background-color: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: max(1rem, 1em);
  line-height: 1.45;
  transition: border-color 150ms ease, background-color 150ms ease;
}

@media (pointer: coarse) {
  .form-input,
  .form-select,
  .form-textarea {
    min-height: 52px;
  }
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--subtle);
}

.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible {
  border-color: var(--gold);
}

.form-select {
  color-scheme: dark;
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 128px;
}

.field-error {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #F2A3A3;
}

.field-error svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #EF4444;
}

:is(.form-input, .form-select, .form-textarea):is(:user-invalid, .user-invalid-fallback) {
  border-color: #EF4444;
  background-color: rgba(239, 68, 68, 0.05);
}

:is(.form-input, .form-select, .form-textarea):is(:user-invalid, .user-invalid-fallback) + .field-error {
  display: flex;
}

:is(.form-input, .form-select, .form-textarea):user-valid {
  border-color: rgba(52, 211, 153, 0.45);
}

.form-submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 4px;
}

.form-hint {
  font-size: 13px;
  color: var(--subtle);
}

.form-feedback {
  margin-top: 18px;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--ok-border);
  background-color: var(--ok-bg);
  color: var(--text);
  font-size: 14px;
  display: grid;
  gap: 10px;
}

.form-feedback[hidden] {
  display: none;
}

.form-feedback.is-error {
  border-color: rgba(239, 68, 68, 0.45);
  background-color: rgba(239, 68, 68, 0.08);
}

.form-feedback-title {
  font-weight: 700;
  color: var(--ok);
}

.form-feedback.is-error .form-feedback-title {
  color: #F2A3A3;
}

/* Segurança Zero-Cloud */
.arch-flow {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.arch-step {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: var(--bg);
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

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

.arch-step svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 2px;
}

.dpo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 20px;
}

@media (min-width: 720px) {
  .dpo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dpo-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background-color: var(--bg);
}

.dpo-item-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--subtle);
}

.dpo-item-value {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

/* Legal (Privacidade & Termos) com Scrollspy */
.legal-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 1024px) {
  .legal-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 52px;
  }
}

.legal-toc {
  padding: 18px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  background: linear-gradient(175deg, #161410 0%, #0A0907 100%);
}

@media (min-width: 1024px) {
  .legal-toc {
    position: sticky;
    top: 92px;
  }
}

.legal-toc-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 10px;
}

.legal-toc-nav {
  display: grid;
  gap: 2px;
  scroll-target-group: auto;
}

.legal-toc-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 10px;
  border-left: 2px solid transparent;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.legal-toc-nav a:hover {
  color: var(--text);
}

.legal-toc-nav a:is(:target-current, .target-current) {
  color: var(--gold);
  border-left-color: var(--gold);
  font-weight: 600;
  background-color: rgba(200, 155, 60, 0.06);
}

.legal-content {
  min-width: 0;
  max-width: 72ch;
  display: grid;
  gap: 28px;
}

.legal-section {
  scroll-margin-top: 92px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  color: var(--muted);
}

.legal-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.legal-section h2 {
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
}

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

.legal-section ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.legal-section li::marker {
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   Acessibilidade e Movimento Reduzido
   -------------------------------------------------------------------------- */

@media (forced-colors: active) {
  .app-tab[aria-selected="true"]::after {
    border-block-end-color: Highlight;
  }

  .page[aria-pressed="true"] {
    outline-color: Highlight;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
