/* Política de privacidade e termos de uso (/privacidade, /termos). Modo leitura: a faixa marinho da marca ReagendixPro
   abre a página com o título grande; o texto corre numa coluna de leitura com o índice preso ao lado (computador) ou
   recolhido num "Nesta página" (celular). Um só movimento: a linha de leitura no topo. */
@font-face { font-family: "Plus Jakarta Sans"; src: url("/fonts/plus-jakarta-sans.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --ink: #0F172A;
  --navy: #0F2552;
  --navy-deep: #0A1A3D;
  --blue: #2563EB;
  --blue-ink: #1D4ED8;
  --blue-on-navy: #7FB0FF;
  --band-text: #D3DEF5;
  --band-muted: #A9BCE3;
  --text: #1E293B;
  --muted: #526079;
  --line: #E3E8F1;
  --paper: #FFFFFF;
  --wash: #F4F7FC;
  --callout: #EEF3FF;
  --callout-line: #C9D8FB;
  --display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 16px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
@media (min-width: 640px) { :root { --gutter: 32px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.7 var(--body); font-feature-settings: "cv11", "ss01"; text-rendering: optimizeLegibility; }
::selection { background: #CFE0FF; color: var(--ink); }
a { color: var(--blue-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--blue-ink) 40%, transparent); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
svg { width: 18px; height: 18px; flex: none; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: var(--gutter); top: -60px; z-index: 10; padding: 10px 14px; border-radius: 10px; background: var(--paper); color: var(--ink); font-weight: 600; }
.skip:focus { top: 12px; }

/* linha de leitura: quanto do texto já passou */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 5; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--blue); transform-origin: 0 50%; transform: scaleX(var(--read, 0)); }

/* ---------- faixa da marca ---------- */
.band { position: relative; overflow: hidden; isolation: isolate; background: var(--navy); color: var(--band-text); padding: 18px 0 0; }
.band::after { content: ""; position: absolute; z-index: -1; right: -120px; top: -40px; width: 560px; aspect-ratio: 512 / 491; background: url("/brand/rgx-simbolo-branco.png") center / contain no-repeat; opacity: .06; }
.band::before { content: ""; position: absolute; z-index: -1; inset: auto 0 0; height: 60%; background: linear-gradient(to bottom, transparent, var(--navy-deep)); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 800 1.15rem/1 var(--display); letter-spacing: -.02em; }
.brand b { color: var(--blue-on-navy); font-weight: 800; }
.brand img { width: 28px; height: auto; }
.enter { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid rgba(211, 222, 245, .35); border-radius: 999px; color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.enter:hover { background: rgba(255, 255, 255, .08); border-color: rgba(211, 222, 245, .6); }
.enter svg { width: 16px; height: 16px; }

.band h1 { margin: clamp(48px, 9vw, 104px) 0 0; max-width: 14ch; color: #fff; font: 800 clamp(2.5rem, 1.35rem + 4.6vw, 4.5rem)/1.02 var(--display); letter-spacing: -.035em; text-wrap: balance; }
.band .lead { margin: 20px 0 0; max-width: 54ch; color: var(--band-text); font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); line-height: 1.6; text-wrap: pretty; }
.band .meta { margin: 14px 0 0; color: var(--band-muted); font-size: .93rem; font-variant-numeric: tabular-nums; }

/* os dois documentos como abas presas à base da faixa */
.docs { display: flex; gap: 4px; margin-top: clamp(36px, 6vw, 64px); }
.docs a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 14px 14px 0 0; color: var(--band-text); text-decoration: none; font-weight: 600; font-size: .98rem; transition: color .2s var(--ease), background-color .2s var(--ease); }
.docs a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.docs a[aria-current="page"] { background: var(--paper); color: var(--ink); }
.docs a:focus-visible { outline-offset: -3px; }

/* ---------- texto ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 24px; padding-bottom: 96px; }
.doc { max-width: 68ch; counter-reset: sec; }
.doc:focus { outline: none; }
.doc section { counter-increment: sec; }
.doc h2 { display: flex; align-items: baseline; gap: 14px; margin: 3.4rem 0 .9rem; scroll-margin-top: 28px; color: var(--ink); font: 750 clamp(1.4rem, 1.2rem + .7vw, 1.75rem)/1.2 var(--display); letter-spacing: -.022em; text-wrap: balance; }
.doc h2::before { content: counter(sec); flex: none; min-width: 1.6em; color: var(--blue); font: 700 .8em/1 var(--display); font-variant-numeric: tabular-nums; }
.doc section:first-child h2 { margin-top: 2rem; }
.doc h3 { margin: 0 0 .35rem; color: var(--ink); font: 700 1.08rem/1.35 var(--display); letter-spacing: -.01em; }
.doc p, .doc ul { margin: 0 0 1.05rem; text-wrap: pretty; }
.doc ul { padding-left: 1.25rem; }
.doc li { margin: 0 0 .55rem; padding-left: .25rem; }
.doc li::marker { color: var(--blue); }
.doc strong { color: var(--ink); font-weight: 650; }
.doc code { padding: .1em .4em; border-radius: 6px; background: var(--wash); color: var(--ink); font: 500 .86em/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; overflow-wrap: anywhere; }

/* o que o Google exige ver por escrito: um bloco próprio, sem competir com o título */
.callout { margin: 1.4rem 0 1.4rem; padding: clamp(20px, 3vw, 28px); border: 1px solid var(--callout-line); border-radius: 18px; background: var(--callout); }
.callout h3:not(:first-child) { margin-top: 1.5rem; }
.callout p:last-child { margin-bottom: 0; }
.callout code { background: var(--paper); }
.callout-key { margin-top: 1.4rem !important; padding-top: 1.2rem; border-top: 1px solid var(--callout-line); color: var(--ink); font-weight: 600; }

.next { margin: 3.5rem 0 0 !important; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); }
.next a { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; }
.next svg { width: 16px; height: 16px; }

/* ---------- índice ---------- */
.toc details { border: 1px solid var(--line); border-radius: 16px; background: var(--wash); }
.toc summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px; cursor: pointer; list-style: none; color: var(--ink); font: 650 .98rem/1 var(--display); }
.toc summary::-webkit-details-marker { display: none; }
.toc summary svg { color: var(--blue); }
.toc ol { margin: 0; padding: 4px 10px 14px; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; padding: 9px 8px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: .95rem; line-height: 1.35; transition: color .2s var(--ease), background-color .2s var(--ease); }
.toc a::before { content: counter(toc); min-width: 1.4em; color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 600; }
.toc a:hover { color: var(--ink); background: rgba(37, 99, 235, .06); }
.toc a[aria-current="true"] { color: var(--blue-ink); font-weight: 600; }
.toc a[aria-current="true"]::before { color: var(--blue); }

@media (min-width: 1024px) {
  .layout { grid-template-columns: 250px minmax(0, 1fr); gap: 80px; padding-top: 40px; }
  .toc { position: sticky; top: 28px; align-self: start; max-height: calc(100vh - 56px); overflow: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
  .toc details { border: 0; background: none; }
  .toc summary { min-height: 0; padding: 30px 8px 12px; cursor: default; pointer-events: none; color: var(--muted); font: 600 .85rem/1 var(--body); }
  .toc summary svg { display: none; }
  .toc ol { padding: 0; }
  .doc section:first-child h2 { margin-top: 1.4rem; }
}

/* ---------- rodapé ---------- */
.foot { background: var(--ink); color: var(--band-muted); padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); font-size: .93rem; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.foot .brand { font-size: 1rem; }
.foot .brand img { width: 22px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.foot nav a { color: var(--band-text); text-decoration: none; padding: 6px 0; }
.foot nav a:hover, .foot nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-color: var(--blue-on-navy); }
.foot p { margin: 0; flex-basis: 100%; color: var(--band-muted); }

@media (max-width: 479px) {
  .band .enter { padding: 0 12px; font-size: .9rem; }
  .docs { gap: 2px; }
  .docs a { padding: 0 14px; font-size: .92rem; }
  .doc h2 { gap: 10px; }
}

/* ---------- /sobre: a página inicial pública do produto ----------
   Mesma faixa marinho, mas como abertura: título grande, dois botões, e embaixo três blocos que se leem de cima para
   baixo (o que faz, como usa o Google, resumo em inglês). Os recursos viram uma grade numerada, sem ícones genéricos. */
.about .band { padding-bottom: clamp(56px, 9vw, 112px); }
.about .kicker { margin: clamp(48px, 9vw, 104px) 0 0; color: var(--blue-on-navy); font: 700 .85rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; }
.about .band h1 { margin-top: 16px; max-width: 17ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 999px; text-decoration: none; font-weight: 650; transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.cta a:active { transform: scale(.98); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--band-text); }
.btn-line { border: 1px solid rgba(211, 222, 245, .4); color: #fff; }
.btn-line:hover { background: rgba(255, 255, 255, .08); border-color: rgba(211, 222, 245, .7); }
.about main:focus { outline: none; }
.about main h2 { margin: 0 0 28px; color: var(--ink); font: 800 clamp(1.75rem, 1.3rem + 1.6vw, 2.6rem)/1.1 var(--display); letter-spacing: -.03em; text-wrap: balance; scroll-margin-top: 24px; }
.about main h3 { margin: 0 0 8px; color: var(--ink); font: 750 1.15rem/1.3 var(--display); letter-spacing: -.012em; }
.about main p { margin: 0; text-wrap: pretty; }

.feats { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); }
.grid { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.grid li { padding: 24px 0 28px; border-bottom: 1px solid var(--line); }
.grid .num { display: block; margin-bottom: 14px; color: var(--blue); font: 700 .9rem/1 var(--display); font-variant-numeric: tabular-nums; }
.grid p { color: var(--muted); font-size: 1rem; line-height: 1.6; max-width: 42ch; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 56px; } .grid li { padding: 32px 0 40px; } }

.google { padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(48px, 7vw, 80px); background: var(--wash); }
.google-head { max-width: 60ch; margin-bottom: 28px; }
.google-head h2 { margin-bottom: 12px; }
.google-head p { color: var(--muted); }
.uses { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.uses article { padding: clamp(22px, 3vw, 32px); border: 1px solid var(--callout-line); border-radius: 18px; background: var(--paper); }
.uses .scope { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.uses p { color: var(--text); font-size: 1rem; line-height: 1.65; }
.about code { padding: .15em .45em; border-radius: 6px; background: var(--callout); color: var(--ink); font: 500 .86em/1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.limited { margin-top: 24px !important; max-width: 75ch; color: var(--ink); font-size: .98rem; line-height: 1.65; }
@media (min-width: 840px) { .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }

.en { padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(64px, 9vw, 112px); }
.en p { max-width: 72ch; margin-bottom: 1rem !important; line-height: 1.7; }
.en p:last-child { margin-top: 1.4rem !important; font-weight: 600; }

@media (max-width: 479px) {
  .cta a { flex: 1 1 100%; }
}

@media print {
  .progress, .skip, .toc, .enter, .docs, .foot nav, .band::after { display: none !important; }
  .band { background: none; color: #000; padding: 0; }
  .band::before { display: none; }
  .band h1, .brand { color: #000; }
  .band h1 { margin-top: 24px; }
  .layout { display: block; padding: 0; }
  .doc { max-width: none; }
  .foot { background: none; color: #000; }
}
