/* ==========================================================================
   Ankh Corp Ads Manager — folha de estilo do site institucional
   Paleta derivada do logo: ciano #00E5E5 (matiz 180°).
   --primary é a versão escura da mesma matiz, com 5.84:1 sobre branco (AA).
   ========================================================================== */

:root {
  --primary: #0A7070;
  --primary-hover: #085A5A;
  --neon: #00E5E5;
  --ink: #061414;
  --ink-soft: #12312F;
  --muted: #4A5C5C;
  --surface: #FEFEFE;
  --surface-soft: #F3F9F9;
  --surface-dark: #061414;
  --line: rgba(6, 20, 20, 0.11);
  --line-strong: rgba(6, 20, 20, 0.18);
  --accent-soft: rgba(10, 112, 112, 0.08);
  --accent-softer: rgba(10, 112, 112, 0.045);
  --shadow-sm: 0 10px 30px rgba(6, 20, 20, 0.07);
  --shadow-lg: 0 32px 90px rgba(6, 20, 20, 0.14);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --maxw: 1180px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.022em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.35rem, 1.4rem + 3.6vw, 4.15rem); font-weight: 850; }
h2 { font-size: clamp(1.55rem, 1.15rem + 1.5vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.075rem; font-weight: 750; }
p { margin: 0 0 1.05em; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; height: auto; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .45em; }
strong { font-weight: 700; }

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 11px 18px;
  border-radius: var(--radius-sm); text-decoration: none; font-weight: 650;
  transition: top .18s ease;
}
.skip-link:focus { top: 16px; color: #fff; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(254, 254, 254, .92);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 26px; min-height: 76px; }

.brand { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand-logo { width: 214px; height: auto; max-height: 52px; object-fit: contain; display: block; }

.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a {
  color: var(--ink); text-decoration: none; font-size: .955rem; font-weight: 600;
  padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap;
}
.nav a:hover { color: var(--primary); }
.nav a[aria-current="page"] { color: var(--primary); border-bottom-color: var(--primary); }

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

.menu-button { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-bars, .menu-bars::before, .menu-bars::after {
  display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
}
.menu-bars { position: relative; }
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -7px; }
.menu-bars::after { top: 7px; }

.language-picker { display: inline-flex; }
.language-picker-mobile { display: none; }
.language-select {
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: 8px 10px; cursor: pointer;
}

/* ---------- Botões ---------------------------------------------------- */

.button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px; font-weight: 680; font-size: .95rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
  white-space: nowrap;
}
.button-dark { background: var(--primary); color: #fff; }
.button-dark:hover { background: var(--primary-hover); color: #fff; }
.button-light { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.button-light:hover { border-color: var(--primary); color: var(--primary); }
.button-accent { background: var(--ink); color: #fff; }
.button-accent:hover { background: var(--ink-soft); color: #fff; }

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

.hero {
  padding: 86px 0 92px;
  background:
    radial-gradient(900px 480px at 88% -8%, var(--accent-soft), transparent 62%),
    linear-gradient(180deg, var(--surface), var(--surface-soft));
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 58px; align-items: center; }
.hero-copy { max-width: 620px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .765rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--primary); border-radius: 2px; }

.lead { font-size: 1.115rem; color: var(--muted); max-width: 62ch; }
.intro { color: var(--muted); max-width: 68ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-note {
  font-size: .9rem; color: var(--muted); border-left: 3px solid var(--primary);
  padding-left: 14px; margin: 0; max-width: 58ch;
}

/* ---------- Mockup do produto ----------------------------------------- */

.product-frame {
  border-radius: var(--radius-lg); background: var(--surface-dark);
  box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid rgba(0, 229, 229, .16);
}
.frame-top {
  display: flex; align-items: center; gap: 12px; padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.frame-title { color: rgba(255, 255, 255, .6); font-size: .8rem; font-weight: 600; }
.frame-body { padding: 22px; background: var(--surface); margin: 14px; border-radius: var(--radius); }

.preview-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.preview-title { font-weight: 800; font-size: 1.02rem; }
.status-chip {
  font-size: .715rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--primary); background: var(--accent-soft); border: 1px solid rgba(10, 112, 112, .22);
  padding: 5px 11px; border-radius: 999px; white-space: nowrap;
}
.preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.preview-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 15px; background: var(--surface-soft); }
.preview-label { display: block; font-size: .765rem; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.preview-value { font-size: 1.3rem; font-weight: 800; color: var(--ink); }

.preview-table { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.preview-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; padding: 11px 15px; font-size: .84rem; }
.preview-row.head { background: var(--surface-soft); font-weight: 700; color: var(--muted); font-size: .765rem; text-transform: uppercase; letter-spacing: .05em; }
.preview-row + .preview-row { border-top: 1px solid var(--line); }

/* ---------- Cabeçalho de páginas internas ----------------------------- */

.page-head {
  padding: 66px 0 52px;
  background: linear-gradient(180deg, var(--surface), var(--surface-soft));
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(2rem, 1.3rem + 2.5vw, 3.15rem); max-width: 20ch; }

/* ---------- Seções ---------------------------------------------------- */

.section { padding: 74px 0; }
.section.alt { background: var(--surface-soft); border-block: 1px solid var(--line); }
.section-header { max-width: 720px; margin-bottom: 42px; }
.section-header h2 { margin-bottom: .35em; }

/* ---------- Cards ----------------------------------------------------- */

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); font-size: .945rem; margin: 0; }
.card-number {
  font-size: .78rem; font-weight: 800; letter-spacing: .1em; color: var(--primary);
  background: var(--accent-soft); width: 38px; height: 38px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card-letter { font-size: .95rem; }
.cards-plain .card { box-shadow: none; }
.cards-plain .card ul { font-size: .92rem; color: var(--muted); }

.link-arrow { display: inline-block; font-weight: 680; font-size: .93rem; text-decoration: none; margin-top: 6px; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Steps ----------------------------------------------------- */

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { border-top: 3px solid var(--primary); padding-top: 20px; }
.step h3 { margin-bottom: .4em; }
.step p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- Bloco de transparência ------------------------------------ */

.disclosure { max-width: 780px; }
.disclosure p { color: var(--muted); }
.disclosure .button { margin-top: 10px; }

/* ---------- Índice ---------------------------------------------------- */

.toc {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; margin-bottom: 44px; box-shadow: var(--shadow-sm);
}
.toc-title { font-size: .78rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.toc ol { columns: 2; column-gap: 34px; margin: 0; padding-left: 1.15em; font-size: .93rem; }
.toc li { margin-bottom: .35em; break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* ---------- Conteúdo legal -------------------------------------------- */

.section.legal .container { max-width: 900px; }
.legal-section { scroll-margin-top: 96px; margin-bottom: 42px; }
.legal-section:last-child { margin-bottom: 0; }
.legal-section h2 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); }
.legal-section p, .legal-section li { color: var(--muted); }
.legal-section p:last-child { margin-bottom: 0; }

.effective {
  font-size: .92rem; color: var(--muted); background: var(--accent-softer);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px;
}
.effective strong { color: var(--ink); }

.list-negative { list-style: none; padding-left: 0; }
.list-negative li { position: relative; padding-left: 30px; }
.list-negative li::before {
  content: "✕"; position: absolute; left: 0; top: 0;
  color: var(--primary); font-weight: 800; font-size: .9rem;
}

/* ---------- Lista de definição ---------------------------------------- */

.deflist { margin: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.deflist-row { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; padding: 18px 24px; }
.deflist-row + .deflist-row { border-top: 1px solid var(--line); }
.deflist dt { font-weight: 700; font-size: .93rem; }
.deflist dd { margin: 0; color: var(--muted); }
.mono { font-family: var(--mono); font-size: .93em; }

/* ---------- Tabela ---------------------------------------------------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.data-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.data-table th, .data-table td { text-align: left; padding: 16px 20px; font-size: .93rem; }
.data-table thead th {
  font-size: .755rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); background: var(--surface-soft); border-bottom: 1px solid var(--line);
}
.data-table tbody tr + tr { border-top: 1px solid var(--line); }
.data-table tbody th { font-weight: 700; }
.data-table td { color: var(--muted); }

.pill {
  display: inline-block; font-size: .765rem; font-weight: 700; padding: 5px 12px;
  border-radius: 999px; white-space: nowrap;
}
.pill-ok { color: var(--primary); background: var(--accent-soft); border: 1px solid rgba(10, 112, 112, .22); }
.pill-gated { color: #7A5B00; background: rgba(180, 135, 0, .1); border: 1px solid rgba(180, 135, 0, .25); }

/* ---------- FAQ ------------------------------------------------------- */

.faq { display: grid; gap: 12px; max-width: 860px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.faq-item summary {
  cursor: pointer; padding: 17px 22px; font-weight: 680; font-size: .98rem;
  list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--primary); font-weight: 800; font-size: 1.2rem; flex-shrink: 0; }
.faq-item[open] summary::after { content: "–"; }
.faq-body { padding: 0 22px 18px; }
.faq-body p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Callout --------------------------------------------------- */

.callout {
  border: 1px solid var(--line); border-left: 4px solid var(--primary);
  border-radius: var(--radius); padding: 26px 28px; background: var(--surface);
  margin-bottom: 34px; box-shadow: var(--shadow-sm);
}
.callout h2 { font-size: 1.3rem; margin-bottom: .4em; }
.callout p { color: var(--muted); }
.callout p:last-child { margin-bottom: 0; }
.callout .button { margin-top: 6px; }

/* ---------- Bloco de código (callbacks OAuth) ------------------------- */

.code-block { background: var(--surface-dark); border-radius: var(--radius); padding: 8px 6px; margin: 22px 0; }
.code-row { display: flex; flex-direction: column; gap: 5px; padding: 14px 20px; }
.code-row + .code-row { border-top: 1px solid rgba(255, 255, 255, .09); }
.code-label { font-size: .765rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.code-value { font-family: var(--mono); font-size: .875rem; color: var(--neon); word-break: break-all; }

/* ---------- Demo workspace (product-preview) -------------------------- */

.demo-shell {
  display: grid; grid-template-columns: 232px minmax(0, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); background: var(--surface);
}
.demo-sidebar { background: var(--surface-dark); padding: 26px 20px; }
.demo-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 26px; color: #fff; font-weight: 800; font-size: .95rem; }
.demo-mark {
  width: 34px; height: 34px; border-radius: 10px; display: inline-flex;
  align-items: center; justify-content: center; font-weight: 850;
  color: var(--surface-dark); background: var(--neon);
}
.demo-nav { display: grid; gap: 3px; }
.demo-nav-item {
  padding: 9px 13px; border-radius: 10px; font-size: .89rem; font-weight: 600;
  color: rgba(255, 255, 255, .62);
}
.demo-nav-item.is-active { background: rgba(0, 229, 229, .14); color: var(--neon); }
.demo-main { padding: 28px; }
.demo-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.demo-eyebrow { display: block; font-size: .755rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.demo-head strong { font-size: 1.25rem; font-weight: 800; }
.demo-main .preview-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.figure-note { font-size: .9rem; color: var(--muted); margin-top: 20px; }
.figure-note strong { color: var(--ink); }

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

.footer { background: var(--surface-dark); color: rgba(255, 255, 255, .72); padding: 66px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand { margin-bottom: 18px; }
.footer-brand .brand-logo { width: 218px; max-height: 60px; }
.footer-note { font-size: .875rem; color: rgba(255, 255, 255, .58); max-width: 42ch; margin-bottom: .8em; }
.footer-trademark { font-size: .82rem; color: rgba(255, 255, 255, .45); }
.footer-col h3 {
  font-size: .755rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255, 255, 255, .5); margin-bottom: 14px; font-weight: 700;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .55em; }
.footer-col a { color: rgba(255, 255, 255, .78); text-decoration: none; font-size: .93rem; }
.footer-col a:hover { color: var(--neon); }

.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: .855rem; color: rgba(255, 255, 255, .5);
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(255, 255, 255, .78); }
.footer-bottom a:hover { color: var(--neon); }

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

@media (max-width: 1180px) {
  .header-inner { gap: 18px; }
  .nav { gap: 18px; }
  .nav a { font-size: .91rem; }
  .button { padding: 11px 18px; font-size: .9rem; }
  .brand-logo { width: 190px; }
}

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { max-width: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .demo-shell { grid-template-columns: 1fr; }
  .demo-sidebar { display: none; }
  .demo-main .preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .header-inner { min-height: 66px; gap: 12px; }
  .brand-logo { width: 176px; max-height: 44px; }
  .menu-button { display: block; margin-left: auto; order: 3; }
  .header-actions { display: none; }
  .nav {
    display: none; order: 4; width: 100%; flex-direction: column;
    align-items: stretch; gap: 0; padding: 8px 0 18px; margin-left: 0;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 2px; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); }
  .language-picker-mobile { display: inline-flex; margin-top: 14px; }
  .hero { padding: 56px 0 62px; }
  .page-head { padding: 46px 0 38px; }
  .section { padding: 54px 0; }
  .cards, .steps { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .deflist-row { grid-template-columns: 1fr; gap: 5px; }
  .footer { padding: 48px 0 28px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .preview-grid { grid-template-columns: 1fr; }
  .demo-main .preview-grid { grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
}

@media (max-width: 420px) {
  .brand-logo { width: 154px; }
  .preview-head, .demo-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .status-chip { font-size: .68rem; }
  .frame-body { margin: 10px; padding: 16px; }
  .preview-row { grid-template-columns: 1.6fr 1fr; }
  .preview-row span:last-child { display: none; }
}

/* Troca de idioma sem JavaScript. */
.language-fallback { display: inline-flex; gap: 8px; margin-left: 8px; font-size: .9rem; font-weight: 600; }
.language-fallback a { text-decoration: none; }
