/* ==========================================================================
   ProjRedes — sistema de design
   Azul-petróleo + âmbar · IBM Plex Sans/Mono · réguas de 1px, sem sombras
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Tinta — azul-petróleo */
  --ink-900: #0e2a38;
  --ink-800: #163646;
  --ink-700: #1c3f52;
  --ink-500: #3d6076;
  --ink-400: #5c7d92;
  --ink-300: #7e97a6;
  --ink-200: #a9bcc7;

  /* Papel */
  --paper: #ffffff;
  --paper-2: #f4f6f7;
  --paper-3: #e7ecee;   /* réguas e bordas */
  --paper-4: #d5dde1;   /* bordas de campo */

  /* Âmbar — ação */
  --amber-600: #e08700;
  --amber-700: #b86d00;
  --amber-900: #8a5200; /* âmbar legível como texto sobre claro (5.6:1) */
  --amber-100: #ffe9c2;
  --amber-50: #fff6e6;

  /* Estado */
  --ok: #0e7c4a;
  --ok-bg: #e8f5ee;
  --warn: #b45309;
  --warn-bg: #fff6e6;
  --err: #b42318;
  --err-bg: #fdecea;
  --info: #17527a;
  --info-bg: #eaf2f8;

  /* Tipografia */
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;

  --fs-display: clamp(2.25rem, 1.6rem + 3vw, 3.625rem);
  --fs-h1: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --fs-h2: clamp(1.6rem, 1.3rem + 1.4vw, 2.25rem);
  --fs-h3: 1.25rem;
  --fs-h4: 1.0625rem;
  --fs-body: 1.0625rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-eyebrow: 0.75rem;

  /* Espaço — base 4px */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Medida */
  --maxw: 1200px;
  --maxw-wide: 1440px;
  --prose: 68ch;
  --radius: 2px;
  --rule: 1px solid var(--paper-3);

  --section-y: clamp(3.5rem, 2rem + 6vw, 7rem);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-700);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--ink-900);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
  line-height: 1.1;
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
h4 {
  font-size: var(--fs-h4);
  letter-spacing: -0.005em;
}

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

a {
  color: var(--ink-900);
  text-decoration-color: var(--ink-200);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
  color: var(--amber-900);
  text-decoration-color: currentColor;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

strong,
b {
  font-weight: 600;
  color: var(--ink-900);
}

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

hr {
  border: 0;
  border-top: var(--rule);
  margin: var(--s-7) 0;
}

:focus-visible {
  outline: 2px solid var(--amber-700);
  outline-offset: 2px;
  border-radius: var(--radius);
}

::selection {
  background: var(--amber-100);
  color: var(--ink-900);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink-900);
  color: #fff;
  padding: var(--s-3) var(--s-4);
  font-size: var(--fs-sm);
  font-weight: 500;
}

.skip-link:focus {
  left: var(--s-4);
  top: var(--s-4);
  color: #fff;
}

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--s-5);
}

@media (min-width: 640px) {
  .container {
    padding-inline: var(--s-6);
  }
}

.container--wide {
  max-width: var(--maxw-wide);
}

.container--prose {
  max-width: 760px;
}

.section {
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}

.section--ruled {
  border-top: var(--rule);
}

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

/* Faixa escura — usada no OpenDSS e no CTA final */
.band {
  background: var(--ink-900);
  color: var(--ink-200);
}

.band h1,
.band h2,
.band h3,
.band h4 {
  color: #fff;
}

.band strong {
  color: #fff;
}

.band a {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}

.band a:hover {
  color: var(--amber-100);
}

.stack > * + * {
  margin-top: var(--s-4);
}
.stack-sm > * + * {
  margin-top: var(--s-2);
}
.stack-lg > * + * {
  margin-top: var(--s-6);
}

.grid {
  display: grid;
  gap: var(--s-6);
}

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

@media (min-width: 900px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 720px) and (max-width: 899px) {
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid--top {
  align-items: start;
}

.grid--gap-lg {
  gap: var(--s-8);
}

/* Texto à esquerda, botões à direita — chamada final e topo do portal */
.split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}

/* --------------------------------------------------------------------------
   4. Tipografia utilitária
   -------------------------------------------------------------------------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-900);
  margin: 0 0 var(--s-3);
}

.band .eyebrow {
  color: var(--amber-600);
}

.display {
  font-size: var(--fs-display);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-500);
  max-width: 58ch;
}

.band .lead {
  color: var(--ink-200);
}

.muted {
  color: var(--ink-500);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.small {
  font-size: var(--fs-sm);
}

.xs {
  font-size: var(--fs-xs);
}

.section-head {
  max-width: 62ch;
  margin-bottom: var(--s-8);
}

.section-head p {
  margin-top: var(--s-4);
  color: var(--ink-500);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
}

/* Prosa — artigos e guia */
.prose {
  max-width: var(--prose);
}

.prose > * + * {
  margin-top: var(--s-5);
}

.prose h2 {
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: var(--rule);
}

.prose h3 {
  margin-top: var(--s-6);
}

.prose ul,
.prose ol {
  padding-left: var(--s-5);
}

.prose li + li {
  margin-top: var(--s-2);
}

.prose li::marker {
  color: var(--ink-300);
}

.prose a {
  text-decoration: underline;
  text-decoration-color: var(--amber-600);
}

.prose code {
  background: var(--paper-2);
  border: var(--rule);
  border-radius: var(--radius);
  padding: 0.1em 0.35em;
  color: var(--ink-900);
}

.prose blockquote {
  margin: var(--s-6) 0;
  padding: var(--s-4) var(--s-5);
  border-left: 3px solid var(--amber-600);
  background: var(--paper-2);
  color: var(--ink-700);
}

.prose blockquote p + p {
  margin-top: var(--s-3);
}

/* --------------------------------------------------------------------------
   5. Botões
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0.75rem 1.375rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn svg {
  width: 1.05em;
  height: 1.05em;
  flex-shrink: 0;
}

/* Âmbar com texto navy — 5.4:1. Branco sobre âmbar reprovaria em AA. */
.btn--primary {
  background: var(--amber-600);
  border-color: var(--amber-600);
  color: var(--ink-900);
}

.btn--primary:hover {
  background: var(--amber-700);
  border-color: var(--amber-700);
  color: var(--ink-900);
}

.btn--secondary {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: #fff;
}

.btn--secondary:hover {
  background: var(--ink-700);
  border-color: var(--ink-700);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: var(--paper-4);
  color: var(--ink-900);
}

.btn--ghost:hover {
  border-color: var(--ink-900);
  background: transparent;
  color: var(--ink-900);
}

/* Sobre fundo navy (faixa escura e barra lateral do painel) o ghost
   precisa inverter — senão fica texto navy sobre navy, invisível. */
.band .btn--ghost,
.app-sidebar .btn--ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.band .btn--ghost:hover,
.app-sidebar .btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn--sm {
  padding: 0.5rem 0.875rem;
  font-size: var(--fs-xs);
}

.btn--lg {
  padding: 0.9375rem 1.75rem;
  font-size: var(--fs-body);
}

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

.btn[disabled],
.btn[aria-disabled="true"] {
  background: var(--paper-3);
  border-color: var(--paper-3);
  color: var(--ink-300);
  cursor: not-allowed;
  pointer-events: none;
}

/* Link com seta — a alternativa discreta ao botão */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-900);
  border-bottom: 1px solid var(--amber-600);
  padding-bottom: 2px;
}

.link-arrow::after {
  content: "→";
  transition: transform 0.15s ease;
}

.link-arrow:hover {
  color: var(--amber-900);
}

.link-arrow:hover::after {
  transform: translateX(3px);
}

.band .link-arrow {
  color: #fff;
}

.band .link-arrow:hover {
  color: var(--amber-100);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}

/* --------------------------------------------------------------------------
   6. Cabeçalho
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: var(--rule);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Folga generosa aqui: separa a nav do bloco Entrar/Testar. Entre os itens
     da nav o espaçamento é menor (--s-6), então os dois grupos se distinguem. */
  gap: var(--s-8);
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  flex-shrink: 0;
}

.brand img,
.brand svg {
  height: 34px;
  width: auto;
}

.brand__name {
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}

.nav-link {
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-700);
}

.nav-link:hover {
  color: var(--ink-900);
}

.site-nav {
  display: none;
  align-items: center;
  gap: var(--s-6);
  margin-left: auto;
}

.site-nav a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-700);
  text-decoration: none;
  padding-block: var(--s-2);
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink-900);
  border-bottom-color: var(--amber-600);
}

.site-header__actions {
  display: none;
  align-items: center;
  gap: var(--s-4);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 0;
  background: transparent;
  border: 1px solid var(--paper-4);
  border-radius: var(--radius);
  color: var(--ink-900);
  cursor: pointer;
}

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

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.mobile-nav {
  display: none;
  border-top: var(--rule);
  padding-block: var(--s-4) var(--s-5);
}

.mobile-nav[data-open="true"] {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: var(--s-3) 0;
  font-size: var(--fs-body);
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-900);
  border-bottom: var(--rule);
}

.mobile-nav .btn {
  margin-top: var(--s-4);
}

@media (min-width: 960px) {
  .site-nav,
  .site-header__actions {
    display: flex;
  }
  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   7. Herói
   -------------------------------------------------------------------------- */

.hero {
  padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(3rem, 2rem + 4vw, 5rem);
}

.hero__grid {
  display: grid;
  gap: var(--s-8);
  align-items: center;
}

@media (min-width: 1000px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: var(--s-9);
  }
}

.hero__copy > * + * {
  margin-top: var(--s-5);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: var(--rule);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-500);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   8. Figura — moldura de screenshot
   -------------------------------------------------------------------------- */

.figure {
  margin: 0;
  border: var(--rule);
  border-radius: var(--radius);
  background: var(--paper-2);
  overflow: hidden;
}

.figure img {
  width: 100%;
  display: block;
}

.figure figcaption {
  padding: var(--s-3) var(--s-4);
  border-top: var(--rule);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-500);
  letter-spacing: 0.01em;
}

.figure--plain {
  border: 0;
  background: transparent;
}

.figure--app {
  border-color: var(--paper-4);
}

.guide-image {
  display: block;
  width: 100%;
  margin-block: var(--s-5);
  border: var(--rule);
  border-radius: var(--radius);
}

/* --------------------------------------------------------------------------
   9. Fluxo numerado (01 → 04)
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  gap: 0;
  border-top: var(--rule);
}

.step {
  display: grid;
  gap: var(--s-5);
  padding-block: var(--s-7);
  border-bottom: var(--rule);
  align-items: start;
}

@media (min-width: 860px) {
  .step {
    grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.4fr);
    gap: var(--s-6) var(--s-7);
  }
}

.step__num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--amber-600);
  letter-spacing: 0.02em;
  /* Alinha o número com a primeira linha do h3 ao lado */
  line-height: 1.3;
}

.step__body > * + * {
  margin-top: var(--s-3);
}

.step__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-4);
  list-style: none;
}

.step__tags li {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  padding: 0.25rem 0.5rem;
  border: var(--rule);
  border-radius: var(--radius);
  color: var(--ink-500);
  background: var(--paper);
}

/* Entregáveis gerados na etapa 04 — fecham o fluxo mostrando o resultado. */
.saidas {
  margin-top: var(--s-7);
}

.saidas__head {
  max-width: 46rem;
  margin-bottom: var(--s-5);
}

.saidas__head .eyebrow {
  margin-bottom: var(--s-2);
}

/* As três pranchas têm proporções bem diferentes (A0 deitada, A1 deitada e uma
   planilha em pé). Uniformizar a moldura evita uma coluna gigante ao lado de
   duas baixas; a imagem inteira continua a um clique de distância. */
.saidas .figure img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
  background: #fff;
}

.saidas .figure a {
  display: block;
}

.saidas .figure a:focus-visible {
  outline: 2px solid var(--amber-600);
  outline-offset: -2px;
}

/* --------------------------------------------------------------------------
   10. Linhas de recurso alternadas
   -------------------------------------------------------------------------- */

.feature-row {
  display: grid;
  gap: var(--s-6);
  align-items: center;
  padding-block: var(--s-8);
  border-bottom: var(--rule);
}

.feature-row:first-of-type {
  border-top: var(--rule);
}

.feature-row h3 {
  font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
}

@media (min-width: 900px) {
  .feature-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-8);
  }
  /* of-type, não child: o .section-head irmão deslocaria a contagem */
  .feature-row:nth-of-type(even) .feature-row__media {
    order: -1;
  }
}

.feature-row__body > * + * {
  margin-top: var(--s-4);
}

.feature-list {
  list-style: none;
  margin-top: var(--s-5);
  border-top: var(--rule);
}

.feature-list li {
  display: flex;
  gap: var(--s-3);
  padding-block: var(--s-3);
  border-bottom: var(--rule);
  font-size: var(--fs-sm);
}

.feature-list li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 0.55em;
  background: var(--amber-600);
}

.band .feature-list,
.band .feature-list li {
  border-color: rgba(255, 255, 255, 0.2);
}

/* Faixa de compatibilidade — rótulo, lista e nota */
.compat-block {
  display: grid;
  gap: var(--s-4);
  align-items: baseline;
}

@media (min-width: 880px) {
  .compat-block {
    grid-template-columns: 14rem minmax(0, 1fr);
    gap: var(--s-5) var(--s-7);
  }
  .compat-block > :nth-child(3) {
    grid-column: 2;
  }
}

/* --------------------------------------------------------------------------
   11. Cartões
   -------------------------------------------------------------------------- */

.card {
  padding: var(--s-6);
  background: var(--paper);
  border: var(--rule);
  border-radius: var(--radius);
}

.card > * + * {
  margin-top: var(--s-3);
}

.card--link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.card--link:hover {
  border-color: var(--ink-900);
  color: inherit;
}

.card--link .link-arrow {
  margin-top: auto;
  padding-top: var(--s-5);
  align-self: flex-start;
}

.card__kicker {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-400);
}

/* --------------------------------------------------------------------------
   12. Tabela de especificações
   -------------------------------------------------------------------------- */

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  text-align: left;
}

.spec-table caption {
  text-align: left;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-900);
  padding-bottom: var(--s-3);
}

.spec-table th,
.spec-table td {
  padding: var(--s-3) var(--s-4) var(--s-3) 0;
  border-bottom: var(--rule);
  vertical-align: top;
}

.spec-table th {
  width: 34%;
  font-weight: 500;
  color: var(--ink-500);
}

.spec-table td {
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  line-height: 1.6;
}

.spec-table tr:first-child th,
.spec-table tr:first-child td {
  border-top: 1px solid var(--ink-900);
}

.spec-grid {
  display: grid;
  gap: var(--s-8);
}

@media (min-width: 820px) {
  .spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-8) var(--s-9);
  }
}

/* --------------------------------------------------------------------------
   13. Faixa de compatibilidade
   -------------------------------------------------------------------------- */

.compat {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4) var(--s-6);
  list-style: none;
}

.compat li {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-500);
}

/* --------------------------------------------------------------------------
   14. Preço
   -------------------------------------------------------------------------- */

.plan {
  border: 1px solid var(--ink-900);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
  max-width: 560px;
}

.plan__head {
  padding: var(--s-6);
  border-bottom: var(--rule);
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  margin-top: var(--s-4);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.plan__price strong {
  font-size: clamp(2.25rem, 1.8rem + 2vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* "R$" fora da mono: em monoespaçada o cifrão abre um vão largo demais */
.plan__currency {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink-500);
}

.plan__alt {
  margin-top: var(--s-4);
  padding: var(--s-3) var(--s-4);
  background: var(--amber-50);
  border: 1px solid var(--amber-100);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
}

.plan__body {
  padding: var(--s-6);
}

.plan__body .feature-list {
  margin-top: 0;
}

.plan__body .btn {
  margin-top: var(--s-6);
}

.plan__foot {
  padding: var(--s-4) var(--s-6);
  border-top: var(--rule);
  background: var(--paper-2);
  font-size: var(--fs-xs);
  color: var(--ink-500);
}

/* --------------------------------------------------------------------------
   15. Depoimentos
   -------------------------------------------------------------------------- */

.quote {
  border-top: 1px solid var(--ink-900);
  padding-top: var(--s-5);
}

.quote blockquote {
  margin: 0;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
  line-height: 1.55;
  color: var(--ink-900);
}

.quote figcaption {
  margin-top: var(--s-5);
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  color: var(--ink-500);
  line-height: 1.5;
}

.quote figcaption strong {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  color: var(--ink-900);
}

/* --------------------------------------------------------------------------
   16. FAQ
   -------------------------------------------------------------------------- */

.faq {
  border-top: 1px solid var(--ink-900);
  max-width: 820px;
}

.faq details {
  border-bottom: var(--rule);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding-block: var(--s-5);
  font-size: var(--fs-h4);
  font-weight: 500;
  color: var(--ink-900);
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--amber-600);
  flex-shrink: 0;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details > div {
  padding-bottom: var(--s-5);
  max-width: var(--prose);
  color: var(--ink-500);
}

.faq details > div > * + * {
  margin-top: var(--s-3);
}

/* --------------------------------------------------------------------------
   17. Formulários
   -------------------------------------------------------------------------- */

.field {
  display: block;
}

.field + .field,
.field-row + .field,
.field + .field-row,
.field-row + .field-row {
  margin-top: var(--s-4);
}

.field > label,
.field-label {
  display: block;
  margin-bottom: var(--s-2);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--ink-700);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.6875rem var(--s-3);
  font-family: inherit;
  font-size: var(--fs-sm);
  color: var(--ink-900);
  background: var(--paper);
  border: 1px solid var(--paper-4);
  border-radius: var(--radius);
  transition: border-color 0.15s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-300);
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--ink-300);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--amber-700);
  outline-offset: -1px;
  border-color: var(--amber-700);
}

.field input[aria-invalid="true"] {
  border-color: var(--err);
}

.field__hint {
  margin-top: var(--s-2);
  font-size: var(--fs-xs);
  color: var(--ink-500);
}

.field__hint--ok {
  color: var(--ok);
}
.field__hint--err {
  color: var(--err);
}

.field-row {
  display: grid;
  gap: var(--s-4);
}

@media (min-width: 640px) {
  .field-row--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .field-row--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .field-row--cep {
    grid-template-columns: 10rem 1fr;
  }
}

fieldset {
  margin: 0 0 var(--s-6);
  padding: 0;
  border: 0;
}

legend {
  padding: 0 0 var(--s-4);
  width: 100%;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-900);
  border-bottom: var(--rule);
  margin-bottom: var(--s-5);
}

/* Cartão de formulário centralizado — login, recuperar senha */
.auth-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.auth-shell main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: var(--s-8);
  background: var(--paper-2);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: var(--s-7);
  background: var(--paper);
  border: var(--rule);
  border-radius: var(--radius);
}

.auth-card__head {
  margin-bottom: var(--s-6);
}

.auth-card__head p {
  margin-top: var(--s-2);
  color: var(--ink-500);
  font-size: var(--fs-sm);
}

.auth-card--wide {
  max-width: 760px;
}

.form-foot {
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: var(--rule);
  font-size: var(--fs-sm);
  color: var(--ink-500);
}

/* --------------------------------------------------------------------------
   18. Avisos
   -------------------------------------------------------------------------- */

.alert {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-4);
  border: 1px solid;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
}

.alert svg {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  margin-top: 0.15em;
}

.alert > div > * + * {
  margin-top: var(--s-2);
}

.alert strong {
  display: block;
}

.alert--info {
  background: var(--info-bg);
  border-color: #c5dcec;
  color: var(--info);
}
.alert--ok {
  background: var(--ok-bg);
  border-color: #bfe0cf;
  color: var(--ok);
}
.alert--warn {
  background: var(--warn-bg);
  border-color: var(--amber-100);
  color: var(--warn);
}
.alert--err {
  background: var(--err-bg);
  border-color: #f4c7c3;
  color: var(--err);
}

.alert strong,
.alert--info strong,
.alert--ok strong,
.alert--warn strong,
.alert--err strong {
  color: inherit;
}

/* Mensagem de status inline dos formulários (controlada por JS) */
.status {
  margin-top: var(--s-4);
  font-size: var(--fs-sm);
  text-align: center;
  min-height: 1.4em;
}

.status--info {
  color: var(--info);
}
.status--ok {
  color: var(--ok);
}
.status--err {
  color: var(--err);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375em;
  padding: 0.25rem 0.5rem;
  border: 1px solid;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge--ok {
  background: var(--ok-bg);
  border-color: #bfe0cf;
  color: var(--ok);
}
.badge--warn {
  background: var(--warn-bg);
  border-color: var(--amber-100);
  color: var(--warn);
}
.badge--err {
  background: var(--err-bg);
  border-color: #f4c7c3;
  color: var(--err);
}
.badge--neutral {
  background: var(--paper-2);
  border-color: var(--paper-3);
  color: var(--ink-500);
}

/* --------------------------------------------------------------------------
   19. Portal do cliente
   -------------------------------------------------------------------------- */

.app-shell {
  display: flex;
  min-height: 100vh;
}

.app-sidebar {
  display: none;
  flex-direction: column;
  width: 248px;
  flex-shrink: 0;
  background: var(--ink-900);
  color: var(--ink-200);
}

.app-sidebar__brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  height: 72px;
  padding-inline: var(--s-5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.app-sidebar__brand img,
.app-sidebar__brand svg {
  height: 30px;
  width: auto;
}

.app-sidebar nav {
  flex: 1;
  padding: var(--s-5) var(--s-3);
}

.app-sidebar nav a {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3);
  border-radius: var(--radius);
  color: var(--ink-200);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
}

.app-sidebar nav a svg {
  width: 1.125rem;
  height: 1.125rem;
}

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

.app-sidebar nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: inset 2px 0 0 var(--amber-600);
}

.app-sidebar__foot {
  padding: var(--s-5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--fs-xs);
}

.app-main {
  flex: 1;
  min-width: 0;
  background: var(--paper-2);
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  height: 64px;
  padding-inline: var(--s-5);
  background: var(--paper);
  border-bottom: var(--rule);
}

.app-content {
  padding: var(--s-6) var(--s-5) var(--s-8);
}

@media (min-width: 900px) {
  .app-sidebar {
    display: flex;
  }
  .app-topbar {
    display: none;
  }
  .app-content {
    padding: var(--s-8);
  }
}

.app-sidebar[data-open="true"] {
  display: flex;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 60;
  width: 260px;
}

.app-grid {
  display: grid;
  gap: var(--s-6);
  align-items: start;
}

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

.panel {
  background: var(--paper);
  border: var(--rule);
  border-radius: var(--radius);
}

.panel + .panel {
  margin-top: var(--s-6);
}

.panel__head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-bottom: var(--rule);
}

.panel__head h2 {
  font-size: var(--fs-h4);
  font-weight: 600;
}

.panel__head svg {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--ink-400);
  flex-shrink: 0;
}

.panel__body {
  padding: var(--s-5);
}

.panel__body > * + * {
  margin-top: var(--s-4);
}

/* Lista de dados rótulo/valor */
.data-list {
  border-top: var(--rule);
}

.data-list div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-2) var(--s-4);
  padding-block: var(--s-3);
  border-bottom: var(--rule);
  font-size: var(--fs-sm);
}

.data-list dt {
  color: var(--ink-500);
}

.data-list dd {
  margin: 0;
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-align: right;
}

/* --------------------------------------------------------------------------
   20. Modal
   -------------------------------------------------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-4);
  background: rgba(14, 42, 56, 0.55);
}

.modal[hidden] {
  display: none;
}

.modal__panel {
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(14, 42, 56, 0.22);
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5);
  border-bottom: var(--rule);
}

.modal__head h2 {
  font-size: var(--fs-h3);
}

.modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--paper-3);
  border-radius: var(--radius);
  color: var(--ink-500);
  cursor: pointer;
}

.modal__close:hover {
  border-color: var(--ink-900);
  color: var(--ink-900);
}

.modal__close svg {
  width: 16px;
  height: 16px;
}

.modal__body {
  padding: var(--s-5);
}

.modal__body > * + * {
  margin-top: var(--s-4);
}

/* --------------------------------------------------------------------------
   21. Sumário lateral (guia)
   -------------------------------------------------------------------------- */

.doc-layout {
  display: grid;
  gap: var(--s-8);
  align-items: start;
}

@media (min-width: 1000px) {
  .doc-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: var(--s-9);
  }
}

.toc {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 128px);
  overflow-y: auto;
}

.toc__title {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-900);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--ink-900);
  margin-bottom: var(--s-2);
}

.toc ol {
  list-style: none;
  counter-reset: toc;
}

.toc a {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-2) 0;
  font-size: var(--fs-sm);
  color: var(--ink-500);
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: var(--s-3);
  margin-left: calc(var(--s-3) * -1);
}

.toc a::before {
  counter-increment: toc;
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-300);
  flex-shrink: 0;
}

.toc a:hover {
  color: var(--ink-900);
}

.toc a.is-active {
  color: var(--ink-900);
  font-weight: 500;
  border-left-color: var(--amber-600);
}

.toc a.is-active::before {
  color: var(--amber-600);
}

@media (max-width: 999px) {
  .toc {
    position: static;
    max-height: none;
    padding-bottom: var(--s-6);
    border-bottom: var(--rule);
  }
}

/* --------------------------------------------------------------------------
   22. Artigos
   -------------------------------------------------------------------------- */

.article-header {
  padding-block: var(--s-8) var(--s-6);
  border-bottom: 1px solid var(--ink-900);
  max-width: 820px;
}

/* A régua do cabeçalho já separa o bloco; a folga cheia de seção sobraria. */
.article-header + .section,
.article-header + .doc-layout {
  padding-top: var(--s-7);
}

.article-header h1 {
  margin-top: var(--s-3);
}

.article-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  margin-top: var(--s-5);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-500);
}

.callout {
  margin-block: var(--s-6);
  padding: var(--s-5);
  background: var(--paper-2);
  border-left: 3px solid var(--amber-600);
  border-radius: var(--radius);
}

.callout__title {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-900);
  margin-bottom: var(--s-3);
}

.callout > *:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   23. Rodapé
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink-900);
  color: var(--ink-200);
  padding-block: var(--s-8) var(--s-6);
  font-size: var(--fs-sm);
}

.site-footer__grid {
  display: grid;
  gap: var(--s-7);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 720px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: var(--s-6);
  }
}

.site-footer h3 {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-300);
  margin-bottom: var(--s-4);
}

.site-footer ul {
  list-style: none;
}

.site-footer li + li {
  margin-top: var(--s-2);
}

.site-footer a {
  color: var(--ink-200);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer__brand img,
.site-footer__brand svg {
  height: 32px;
  width: auto;
  margin-bottom: var(--s-4);
}

.site-footer__brand p {
  max-width: 34ch;
}

.site-footer__contact {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-3) var(--s-5);
  padding-top: var(--s-5);
  font-size: var(--fs-xs);
  color: var(--ink-300);
}

/* --------------------------------------------------------------------------
   24. Barra de cookies
   -------------------------------------------------------------------------- */

.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--ink-900);
  color: var(--ink-200);
  border-top: 2px solid var(--amber-600);
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.cookie-bar[data-open="true"] {
  transform: translateY(0);
}

.cookie-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding-block: var(--s-4);
  font-size: var(--fs-sm);
}

.cookie-bar p {
  max-width: 70ch;
}

.cookie-bar a {
  color: #fff;
}

/* --------------------------------------------------------------------------
   25. Vídeo
   -------------------------------------------------------------------------- */

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border: var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-900);
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --------------------------------------------------------------------------
   26. Utilitários
   -------------------------------------------------------------------------- */

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

[hidden] {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0 !important;
}
.mb-0 {
  margin-bottom: 0 !important;
}
.mt-4 {
  margin-top: var(--s-4);
}
.mt-5 {
  margin-top: var(--s-5);
}
.mt-6 {
  margin-top: var(--s-6);
}
.mt-7 {
  margin-top: var(--s-7);
}

.flow-2 > * + * {
  margin-top: var(--s-2);
}
.flow-3 > * + * {
  margin-top: var(--s-3);
}
.flow-4 > * + * {
  margin-top: var(--s-4);
}
.flow-5 > * + * {
  margin-top: var(--s-5);
}
