/* =========================================================================
   BRDeals Global — folha de estilo base
   Tokens copiados de src/app/globals.css do site atual (Tailwind v4 @theme).
   Valores conferidos no codigo-fonte, nao amostrados de captura de tela.
   ========================================================================= */

:root {
  /* Marca — valores exatos do site atual */
  --brand-green: #187434;
  --brand-green-light: #3f9b45;
  --brand-blue: #1c4a82;
  --brand-blue-dark: #173a66;
  --brand-blue-light: #2e8dc2;
  --brand-yellow: #e2b618;
  --brand-yellow-dark: #c9970b;
  --brand-cream: #f7f5ef;
  --brand-navy: #0b1f38;

  --ink: #111827;
  --ink-soft: #4b5563;
  --ink-faint: #6b7280;
  --line: #e5e7eb;
  --surface: #ffffff;

  --shadow-soft: 0 20px 60px rgba(28, 74, 130, 0.12);
  --shadow-card: 0 2px 8px rgba(17, 24, 39, 0.06);

  --radius: 12px;
  --radius-lg: 20px;

  --container: 1200px;
  --gutter: 20px;

  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Sora", var(--font-body);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Impede o iOS de aumentar a fonte ao girar o aparelho. */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #fffdf8 0%, var(--brand-cream) 100%);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  /* Trava o estouro horizontal sem esconder conteudo vertical.
     O teste correto de estouro e window.scrollTo(9999,0) + scrollX === 0;
     scrollWidth > clientWidth da falso positivo quando ha overflow-x-clip. */
  overflow-x: clip;
}

h1,
h2,
h3,
.font-display {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

a {
  color: var(--brand-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

input,
select,
button,
textarea {
  font: inherit;
}

button,
a {
  cursor: pointer;
}

/* Foco visivel em tudo que recebe teclado — requisito WCAG 2.1 AA.
   Nunca substituir por outline:none sem colocar outra indicacao visual. */
:focus-visible {
  outline: 3px solid var(--brand-blue-light);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Pular para o conteudo — primeiro tab da pagina, visivel so ao focar. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--brand-navy);
  color: #fff;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------------------------------------------------------------- layout */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.stack > * + * {
  margin-top: var(--stack-gap, 16px);
}

/* Superficies da marca — mesma linguagem do site atual */
.bg-brand-hero {
  background-color: var(--brand-navy);
  background-image: linear-gradient(
    135deg,
    rgba(9, 29, 52, 0.96) 0%,
    rgba(28, 74, 130, 0.82) 48%,
    rgba(24, 116, 52, 0.82) 100%
  );
  color: #fff;
}

.bg-brand-wash {
  background-image:
    radial-gradient(circle at top right, rgba(46, 141, 194, 0.12), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #f5f9fc 100%);
}

/* ---------------------------------------------------------------- header */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  /* Ancora o painel do menu de celular, que abre em position:absolute. */
  position: relative;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--brand-navy);
  text-decoration: none;
  flex-shrink: 0;
}

.site-header__brand:hover {
  text-decoration: none;
}

.site-header__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-green);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
}

.site-header__spacer {
  flex: 1;
}

/* O menu tem 10 itens e nao cabe em uma linha abaixo de ~1088px.
   Por isso a troca para o menu de celular acontece em 1120px, e nao no
   1024px habitual. Isso e deliberado e vem do site atual. */
.site-nav {
  display: none;
  gap: 18px;
  align-items: center;
  flex-wrap: nowrap;
}

.site-nav a {
  color: var(--ink-soft);
  font-size: 0.94rem;
  white-space: nowrap;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--brand-blue);
  border-bottom-color: var(--brand-yellow);
  text-decoration: none;
}

.site-header__actions {
  display: none;
  gap: 10px;
  align-items: center;
}

.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--brand-navy);
}

@media (min-width: 1120px) {
  .site-nav,
  .site-header__actions {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }
}

/* Menu de celular — sem JavaScript: <details> nativo.
   O <summary> e o proprio botao hamburguer; o painel abre absoluto
   logo abaixo da barra do cabecalho. */
.mobile-menu {
  margin-left: auto;
}

/* Esconde o triangulo padrao do <details> nos dois motores. */
.mobile-menu > summary {
  list-style: none;
}

.mobile-menu > summary::-webkit-details-marker {
  display: none;
}

.mobile-menu__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  padding: 8px 0 20px;
  /* Menu longo em tela baixa precisa rolar sozinho. */
  max-height: calc(100vh - 68px);
  overflow-y: auto;
}

.mobile-menu__panel a {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  /* Alvo de toque confortavel. */
  min-height: 44px;
}

.mobile-menu__actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

@media (min-width: 1120px) {
  .mobile-menu {
    display: none;
  }
}

/* --------------------------------------------------------------- seletor */

.context-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 0;
  font-size: 0.88rem;
  color: var(--ink-faint);
}

.context-bar__group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.lang-switch a {
  padding: 4px 12px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.82rem;
}

.lang-switch a:hover {
  text-decoration: none;
  background: var(--brand-cream);
}

.lang-switch a[aria-current="true"] {
  background: var(--brand-blue);
  color: #fff;
}

.select-control {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.86rem;
  max-width: 100%;
}

/* --------------------------------------------------------------- botoes */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  /* 44px de altura minima: alvo de toque acessivel. */
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--brand-green);
  color: #fff;
}

.btn--primary:hover {
  background: #12602a;
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.btn--light {
  background: #fff;
  color: var(--brand-navy);
}

.btn[aria-disabled="true"],
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ----------------------------------------------------------------- hero */

.hero {
  padding: clamp(40px, 7vw, 76px) 0;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.85;
  margin-bottom: 12px;
}

.hero h1 {
  /* Tipografia fluida: acompanha a largura sem media query. */
  font-size: clamp(1.7rem, 4.4vw, 3rem);
  max-width: 20ch;
  text-wrap: balance;
}

.hero p {
  max-width: 58ch;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  opacity: 0.92;
}

/* --------------------------------------------------------------- busca */

.search-card {
  margin-top: 28px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.search-card label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
}

.search-card select,
.search-card input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}

@media (min-width: 760px) {
  .search-card {
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
  }
}

/* ------------------------------------------------------------ categorias */

.section {
  padding: clamp(36px, 5vw, 60px) 0;
}

.section__head {
  margin-bottom: 24px;
}

.section__head h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
}

.section__head p {
  color: var(--ink-soft);
  margin: 0;
}

.grid-cards {
  display: grid;
  gap: 16px;
  /* auto-fit + minmax evita quebra de grade em qualquer largura,
     de 360px a 1920px, sem media query por breakpoint. */
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-cream);
  color: var(--brand-green);
  font-size: 1.2rem;
}

.card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--brand-navy);
}

.card__text {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0;
}

/* Categoria Doacao usa identidade propria no site atual. */
.card--donation .card__icon {
  background: color-mix(in srgb, var(--brand-yellow) 22%, #fff);
  color: var(--brand-yellow-dark);
}

/* ------------------------------------------------------------ estado vazio */

/* Marketplace vazio mostra ISTO — nunca anuncio de exemplo.
   Decisao do dono: nada de conteudo falso em producao. */
.empty-state {
  padding: clamp(40px, 8vw, 72px) 24px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
}

.empty-state__icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.empty-state h2 {
  font-size: 1.25rem;
}

.empty-state p {
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 auto 20px;
}

/* --------------------------------------------------------------- rodape */
/* Fundo claro, logo colorida, redes a direita — como o site atual. */

.site-footer {
  margin-top: 64px;
  padding: 40px 0 32px;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.site-footer__inner {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}

.site-footer__main {
  flex: 1 1 min(100%, 620px);
}

.site-footer__logo {
  height: 52px;
  width: auto;
  margin-bottom: 18px;
}

.site-footer__brand {
  margin: 0 0 10px;
  color: var(--brand-blue);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-footer__intro {
  margin: 0 0 16px;
  max-width: 66ch;
  line-height: 1.65;
}

.site-footer__contact {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
}

.site-footer__contact a {
  color: var(--brand-blue);
  font-weight: 600;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-bottom: 18px;
}

.site-footer__links a {
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.site-footer__links a:hover {
  color: var(--brand-blue);
}

/* "Preferencias de cookies" nao e documento legal: fica em caixa normal
   para nao competir com os outros links. */
.site-footer__links--soft {
  text-transform: none !important;
  letter-spacing: 0.04em !important;
  font-weight: 500 !important;
}

.site-footer__made {
  margin: 0 0 6px;
}

.site-footer__copy {
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.86rem;
}

.site-footer__social {
  flex: 0 1 auto;
  text-align: right;
}

.site-footer__social h2 {
  margin-bottom: 14px;
  color: var(--ink-faint);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer__social ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.site-footer__social a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand-navy);
  font-weight: 600;
  font-size: 0.9rem;
}

.site-footer__social a:hover {
  text-decoration: none;
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

@media (max-width: 720px) {
  .site-footer__social,
  .site-footer__social ul {
    text-align: left;
    align-items: stretch;
  }

  .site-footer__social a {
    justify-content: center;
  }
}

/* ----------------------------------------------------------------- erro */

.error-page {
  padding: clamp(60px, 12vw, 120px) 0;
  text-align: center;
}

.error-page h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.error-page p {
  color: var(--ink-soft);
  max-width: 44ch;
  margin: 0 auto 24px;
}

/* ----------------------------------------------------- preferencia do SO */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   Secao "Comece pelo que voce precisa" — reproducao da home atual.
   ============================================================ */

.cat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.cat-head h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.35rem);
  color: var(--brand-navy);
  margin-bottom: 6px;
}

.cat-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.cat-head__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-blue);
  font-weight: 600;
  white-space: nowrap;
  /* Alinha o link com a linha do subtitulo, como no original. */
  margin-top: auto;
}

.cat-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}

/* O card usa grade de 2 colunas: icone | texto, com a seta na 3a coluna.
   Assim titulo e seta ficam na mesma linha e a descricao alinha sob o
   titulo, nao sob o icone. */
.cat-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 6px 14px;
  padding: 22px;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.05);
  color: inherit;
  transition: box-shadow 0.16s ease, transform 0.16s ease;
}

.cat-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.cat-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eef2f8;
  color: var(--brand-navy);
  grid-row: 1 / span 1;
}

.cat-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--brand-navy);
  align-self: center;
}

.cat-card__arrow {
  color: #9aa9bd;
  align-self: center;
  transition: transform 0.16s ease, color 0.16s ease;
}

.cat-card:hover .cat-card__arrow {
  color: var(--brand-blue);
  transform: translateX(3px);
}

.cat-card__text {
  grid-column: 2 / -1;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

.cat-card__meta {
  grid-column: 2 / -1;
  margin-top: 8px;
  color: var(--brand-green);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* Doacao fora da grade, com identidade propria — como no site atual. */
.donation-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding: 30px 32px;
  border-radius: 20px;
  background-image: linear-gradient(
    100deg,
    rgba(226, 182, 24, 0.16) 0%,
    rgba(226, 182, 24, 0.06) 45%,
    rgba(255, 255, 255, 0.9) 100%
  );
}

.donation-banner__body {
  min-width: min(100%, 320px);
  flex: 1;
}

.donation-banner__eyebrow {
  margin: 0 0 8px;
  color: var(--brand-yellow-dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.donation-banner h3 {
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  color: var(--brand-navy);
  margin-bottom: 8px;
}

.donation-banner__text {
  margin: 0;
  color: var(--ink-soft);
  max-width: 62ch;
}

.btn--dark {
  background: #0f172a;
  color: #fff;
}

.btn--dark:hover {
  background: #1e293b;
}

/* ============================================================
   Home — hero, paises, destaques e anunciantes
   ============================================================ */

.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;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-yellow);
}

.section .eyebrow {
  color: var(--brand-yellow-dark);
}

/* -------------------------------------------------------------- hero */

.hero {
  padding: clamp(44px, 7vw, 82px) 0 clamp(36px, 5vw, 56px);
}

.hero__inner {
  max-width: 880px;
}

.hero h1 {
  font-size: clamp(1.85rem, 4.6vw, 3.1rem);
  max-width: 16ch;
  text-wrap: balance;
}

.hero__lead {
  max-width: 56ch;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  opacity: 0.92;
}

.hero__trust {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0 22px;
  max-width: 74ch;
  font-size: 0.86rem;
  opacity: 0.82;
}

.hero__trust svg {
  flex-shrink: 0;
  margin-top: 3px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn--outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.btn--navy {
  background: var(--brand-blue);
  color: #fff;
}

.btn--navy:hover {
  background: var(--brand-blue-dark);
}

.btn--search {
  background: var(--brand-blue);
  color: #fff;
}

.btn--search:hover {
  background: var(--brand-blue-dark);
}

/* Barra de numeros do hero */
.hero__stats {
  display: grid;
  gap: 18px 32px;
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  margin: 30px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero__stats dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.72;
  margin-bottom: 6px;
}

.hero__stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
}

.hero__stats-market strong {
  display: block;
  font-size: 1.15rem;
}

.hero__stats-market span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  opacity: 0.7;
}

/* ----------------------------------------------------------- secoes */

.section--wash {
  background-image:
    radial-gradient(circle at top right, rgba(46, 141, 194, 0.1), transparent 44%),
    linear-gradient(180deg, #ffffff 0%, #f5f9fc 100%);
}

.section__head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.section__link {
  color: var(--brand-blue);
  font-weight: 600;
  white-space: nowrap;
}

/* ------------------------------------------------------------ paises */

/* Trilho horizontal com scroll-snap. Sem JS: e rolagem nativa, funciona
   com dedo, roda do mouse, teclado e leitor de tela. */
.country-rail {
  list-style: none;
  margin: 0;
  padding: 4px 0 14px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(232px, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.country-rail > li {
  scroll-snap-align: start;
}

.country-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 20px;
  border-radius: 18px;
  background-image: linear-gradient(160deg, #12304f 0%, #1c4a82 62%, #187434 100%);
  color: #fff;
  box-shadow: var(--shadow-card);
}

.country-card:hover {
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.country-card--current {
  outline: 2px solid var(--brand-yellow);
  outline-offset: 2px;
}

.country-card__badge {
  align-self: flex-start;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-navy);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.country-card__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.country-card__market {
  font-size: 0.85rem;
  opacity: 0.82;
}

.country-card__domain {
  margin-top: 2px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  opacity: 0.72;
}

.country-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.76rem;
  opacity: 0.9;
}

.country-card__langs {
  padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
}

/* ------------------------------------------------- estado vazio suave */

.empty-state--soft {
  padding: 34px 24px;
  border-style: dashed;
  background: rgba(255, 255, 255, 0.7);
}

.empty-state__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand-navy);
}

/* ------------------------------------------------------- anunciantes */

.advertiser {
  padding: clamp(40px, 6vw, 68px) 0;
  background-image: linear-gradient(115deg, #eef7f0 0%, #eaf2fb 55%, #dfeaf7 100%);
}

.advertiser__inner {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 900px) {
  .advertiser__inner {
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
  }
}

.advertiser h2 {
  font-size: clamp(1.4rem, 2.8vw, 2.05rem);
  color: var(--brand-navy);
  max-width: 20ch;
}

.advertiser__body p {
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0;
}

.advertiser__benefits {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}

.advertiser__benefits li {
  padding: 13px 0;
  border-bottom: 1px solid rgba(28, 74, 130, 0.15);
  color: var(--ink);
}

.advertiser__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --------------------------------------------------- busca do hero */

.search-card__term {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink-faint);
}

.search-card__term input {
  border: 0 !important;
  padding-inline: 0 !important;
  min-height: 44px;
  background: transparent;
}

.search-card__term input:focus {
  outline: none;
}

@media (min-width: 980px) {
  .search-card {
    grid-template-columns: 1.4fr 1fr 1fr auto;
    align-items: end;
  }

  .search-card__term {
    grid-row: 1;
  }
}

/* ============================================================
   Paginas editoriais e planos
   ============================================================ */

.hero--compact { padding-block: clamp(38px, 5.5vw, 64px); }

.hero__panel {
  margin-top: 26px;
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 62ch;
}

.hero__panel-label { margin: 0 0 4px; font-weight: 700; }
.hero__panel-meta { margin: 0; font-size: 0.9rem; opacity: 0.85; }

/* ------------------------------------------------------------ passos */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
  counter-reset: step;
}

.step {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.step h3 {
  font-size: 1.08rem;
  color: var(--brand-navy);
  margin-bottom: 6px;
}

.step p { margin: 0; color: var(--ink-soft); }

.step__number {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--brand-green);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

/* --------------------------------------------------------- historia */

.story { max-width: 74ch; }
.story h2 { font-size: clamp(1.35rem, 2.6vw, 1.95rem); color: var(--brand-navy); }
.story p { color: var(--ink-soft); line-height: 1.7; }

/* Citação do fundador.
   A marca é uma aspa tipográfica, não uma barra lateral colorida: aspa é o
   sinal que a tipografia usa há séculos para dizer "isto é fala de alguém",
   e não carrega o ar de componente genérico. */
.story__quote {
  position: relative;
  margin: 30px 0 0;
  padding: 26px 28px 22px 30px;
  background: var(--brand-cream);
  border-radius: var(--radius-lg);
}

.story__quote::before {
  content: "\201C";
  position: absolute;
  top: 4px;
  left: 14px;
  font-family: var(--font-display);
  font-size: 3.6rem;
  line-height: 1;
  color: var(--brand-green);
  opacity: 0.28;
}

.story__quote p {
  position: relative;
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--brand-navy);
}

.story__quote footer {
  color: var(--ink-faint);
  font-size: 0.86rem;
}

/* Travessão antes do nome — convenção de atribuição em citação. */
.story__quote footer::before {
  content: "— ";
}

/* --------------------------------------------------------- avisos */

.notice {
  margin: 28px 0;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--brand-yellow) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand-yellow) 34%, #fff);
}

.notice--strong { background: color-mix(in srgb, var(--brand-blue-light) 10%, #fff); border-color: color-mix(in srgb, var(--brand-blue-light) 28%, #fff); }
.notice__title { margin: 0 0 6px; font-family: var(--font-display); font-weight: 700; color: var(--brand-navy); }
.notice p:last-child { margin: 0; color: var(--ink-soft); }

.warning-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  max-width: 78ch;
}

.warning-list li {
  position: relative;
  padding: 14px 18px 14px 46px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
}

.warning-list li::before {
  content: "!";
  position: absolute;
  left: 16px; top: 14px;
  display: grid;
  place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand-yellow) 30%, #fff);
  color: var(--brand-yellow-dark);
  font-weight: 800;
  font-size: 0.78rem;
}

/* ---------------------------------------------------------- planos */

.plan-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(258px, 100%), 1fr));
  align-items: start;
}

.plan-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.plan-card--popular { border-color: var(--brand-green); box-shadow: var(--shadow-soft); }

/* Plano ainda nao disponivel fica visivelmente mais quieto -- a diferenca
   precisa ser percebida antes de o usuario tentar clicar. */
.plan-card--soon { background: #fbfbfa; }

.plan-card__flag {
  align-self: flex-start;
  margin: 0 0 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-green);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.plan-card__flag--muted { background: #e6e8eb; color: var(--ink-faint); }
.plan-card__flag--ready { background: color-mix(in srgb, var(--brand-blue-light) 22%, #fff); color: var(--brand-blue); }

.plan-card h3 {
  font-size: 1.25rem;
  color: var(--brand-navy);
  margin-bottom: 4px;
}

.plan-card__price { margin: 0 0 6px; }
.plan-card__price strong { font-family: var(--font-display); font-size: 1.85rem; color: var(--brand-navy); }
.plan-card__price span { color: var(--ink-faint); font-size: 0.88rem; }
.plan-card__tagline { margin: 0 0 18px; color: var(--ink-soft); font-size: 0.92rem; }

.plan-card__benefits {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 9px;
  flex: 1;
}

.plan-card__benefits li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.plan-card__benefits span {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 18px; height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 800;
}

.plan-card__benefits .is-ready span { background: color-mix(in srgb, var(--brand-green) 18%, #fff); color: var(--brand-green); }
.plan-card__benefits .is-pending span { background: #eef0f2; color: var(--ink-faint); }

.plan-card__actions { display: grid; gap: 8px; }

.btn--link {
  background: transparent;
  color: var(--brand-blue);
  min-height: 36px;
  padding: 6px 12px;
}

/* --------------------------------------------------------- tabela */

/* A tabela rola dentro do proprio contêiner: a pagina nunca rola na horizontal. */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.compare {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.compare th,
.compare td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.compare thead th {
  background: var(--brand-cream);
  color: var(--brand-navy);
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.compare tbody th {
  color: var(--ink);
  font-weight: 600;
}

.compare td { color: var(--ink-soft); }
.compare tbody tr:last-child th,
.compare tbody tr:last-child td { border-bottom: 0; }

/* ============================================================
   Documentos legais
   ============================================================ */

.legal {
  display: grid;
  gap: 34px;
  padding-block: clamp(30px, 4vw, 52px);
  grid-template-columns: 1fr;
}

@media (min-width: 940px) {
  .legal {
    grid-template-columns: 250px 1fr;
    gap: 48px;
    align-items: start;
  }

  /* O indice acompanha a rolagem: texto legal e longo e ninguem quer
     voltar ao topo para achar a proxima secao. */
  .legal__toc {
    position: sticky;
    top: 92px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
}

.legal__updated {
  margin-top: 14px;
  font-size: 0.86rem;
  opacity: 0.8;
}

.legal__toc ol {
  margin: 0;
  padding: 0 0 0 2px;
  list-style: none;
  counter-reset: toc;
  display: grid;
  gap: 6px;
}

.legal__toc a {
  display: block;
  padding: 6px 10px;
  border-left: 2px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.4;
}

.legal__toc a:hover {
  border-left-color: var(--brand-green);
  color: var(--brand-blue);
  background: var(--brand-cream);
  text-decoration: none;
}

.legal__body {
  max-width: 74ch;
}

.legal__body section {
  /* Compensa o cabecalho fixo quando se chega por ancora: sem isto o
     titulo da secao fica escondido atras dele. */
  scroll-margin-top: 96px;
  padding-bottom: 26px;
}

.legal__body h2 {
  font-size: 1.16rem;
  color: var(--brand-navy);
  margin-bottom: 10px;
}

.legal__body p {
  color: var(--ink-soft);
  line-height: 1.72;
  margin: 0 0 12px;
}

.legal__body ul {
  margin: 0 0 14px;
  padding-left: 22px;
  color: var(--ink-soft);
  display: grid;
  gap: 7px;
}

.legal__body li { line-height: 1.65; }
/* ============================================================
   Globo com as bandeiras no hero

   A arte NAO tem canal alpha (RGB, fundo preto estrelado), entao o
   recorte vem de `mix-blend-mode: screen`: sobre o gradiente da marca
   o preto desaparece sozinho e o globo se funde no fundo.

   As duas mascaras se cruzam (mask-composite: intersect): a horizontal
   abre espaco para o texto a esquerda; a vertical evita que a borda da
   imagem vire uma linha reta no meio do hero.
   ============================================================ */

.hero {
  position: relative;
  overflow: hidden;
}

.hero > .container,
.hero__globe ~ * {
  position: relative;
  z-index: 1;
}

.hero__globe {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url('../hero/globo-bandeiras.webp') center center / cover no-repeat;
  mix-blend-mode: screen;
  opacity: .16;
}

@media (min-width: 1100px) {
  /* Sem os cartoes, a coluna da direita nao existe mais. */
  .hero__grid { grid-template-columns: 1fr; }

  .hero__globe {
    top: 0;
    right: 0;
    bottom: 3rem;
    left: auto;
    width: 56%;
    opacity: 1;
    background-position: right top;
    background-size: contain;
    -webkit-mask-image:
      linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 14%, #000 38%),
      linear-gradient(180deg, transparent 0%, #000 4%, #000 93%, transparent 100%);
    mask-image:
      linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 14%, #000 38%),
      linear-gradient(180deg, transparent 0%, #000 4%, #000 93%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }
}
