/* Rodaí — site institucional. Visual sóbrio, claro e legível. */
:root {
  --bg: #ffffff;
  --alt: #f4f6f9;
  --ink: #0f1b2a;
  --body: #344456;
  --muted: #5d6d7e;
  --line: #e1e6ec;
  --brand: #007f98;
  --brand-dark: #006477;
  --green: #00804f;
  --red: #b4233f;
  --amber: #9a5c00;
  --navy: #0b1724;
  --max: 1120px;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 400 17px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin: 0.3em 0; }
b, strong { color: var(--ink); font-weight: 600; }
.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.eyebrow {
  display: block; margin-bottom: 10px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand);
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pos { color: var(--green); }
.neg { color: var(--red); }

/* Topo */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 1.2rem; text-decoration: none; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--body); text-decoration: none; font-size: 0.95rem; font-weight: 500; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.nav a:hover { background: var(--alt); color: var(--ink); }
.nav a[aria-current] { color: var(--brand); }
.nav .btn { margin-left: 8px; padding: 9px 16px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 8px; border: 1px solid var(--brand);
  font: 600 0.98rem "Inter", sans-serif; text-decoration: none; color: var(--brand); background: #fff;
}
.btn:hover { background: #eef7f9; color: var(--brand-dark); }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); color: #fff; }
.btn[aria-disabled="true"] { cursor: default; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* Seções */
section { padding: 88px 0; }
section.alt { background: var(--alt); border-block: 1px solid var(--line); }
.section-head { max-width: 44em; margin-bottom: 44px; }
.split { display: grid; gap: 56px; grid-template-columns: 1fr 1fr; align-items: center; }
.split.wide-text { grid-template-columns: 1.25fr 0.75fr; }
.split + .split { margin-top: 88px; }
.split.reverse > :first-child { order: 2; }

/* Herói */
.hero { padding: 72px 0 80px; }
.hero .split { grid-template-columns: 1.15fr 0.85fr; }
.hero h1 { max-width: 15em; }
.hero .lead { margin-bottom: 26px; }
.hero-note { margin-top: 18px; font-size: 0.92rem; color: var(--muted); }

/* Capturas de tela */
.shot { margin: 0; }
.shot img { border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(15, 27, 42, 0.06), 0 12px 32px rgba(15, 27, 42, 0.08); background: #fff; }
.shot.phone { max-width: 320px; margin-inline: auto; }
.shot.crop img { aspect-ratio: 640 / 1150; object-fit: cover; object-position: top; }
.shot figcaption { margin-top: 12px; font-size: 0.9rem; color: var(--muted); text-align: center; }
.shots { display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); align-items: start; }
.shots.two { grid-template-columns: repeat(2, 1fr); max-width: 720px; }
.shot.tablet img { border-radius: 14px; }

/* Problema → solução */
.problems { display: grid; gap: 0; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.problem { padding: 28px 30px; border-bottom: 1px solid var(--line); }
.problem:nth-child(odd) { border-right: 1px solid var(--line); }
.problem:nth-last-child(-n+2) { border-bottom: 0; }
.problem h3 { margin-bottom: 6px; }
.problem .q { color: var(--muted); margin-bottom: 10px; font-style: italic; }
.problem p:last-child { margin-bottom: 0; }

/* Passos */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps > li { position: relative; padding: 0 0 26px 52px; margin: 0; counter-increment: s; }
.steps > li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--brand);
  color: var(--brand); font-weight: 700; font-size: 0.95rem; display: grid; place-items: center;
}
.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 40px; bottom: 6px; width: 1px; background: var(--line); }
.steps h3 { margin-bottom: 4px; font-size: 1.05rem; padding-top: 5px; }
.steps p { margin: 0; }

/* Tabelas */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin: 1em 0 1.4em; }
table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { background: var(--alt); color: var(--ink); font-weight: 600; font-size: 0.88rem; }
td.c, th.c { text-align: center; }
.yes { color: var(--green); font-weight: 600; }
.no { color: var(--muted); }

/* Exemplo de cálculo */
.calc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.calc table { font-size: 0.98rem; }
.calc td { padding: 8px 0; border: 0; }
.calc td:last-child { text-align: right; }
.calc tr.total td { border-top: 1px solid var(--line); padding-top: 12px; font-weight: 700; color: var(--ink); }

/* Listas de recursos em colunas */
.cols { display: grid; gap: 36px 48px; grid-template-columns: repeat(3, 1fr); }
.cols h3 { font-size: 1.05rem; margin-bottom: 6px; }
.cols p { margin: 0; color: var(--muted); }
.level-tag { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; background: #e6f3f6; color: var(--brand-dark); margin-left: 6px; vertical-align: 2px; }
.level-tag.pro { background: #e3f4ec; color: var(--green); }

/* Planos */
.plans { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); max-width: 900px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.plan.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.plan h3 { margin-bottom: 4px; }
.price { font-size: 2rem; font-weight: 700; color: var(--ink); margin: 8px 0 2px; letter-spacing: -0.02em; }
.price small { font-size: 0.95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 0; }
.plan li { padding: 7px 0 7px 26px; position: relative; border-top: 1px solid var(--line); margin: 0; }
.plan li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 10px; height: 6px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }

/* Transparência */
.facts { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); }
.fact { border-left: 3px solid var(--brand); padding: 4px 0 4px 20px; }
.fact h3 { font-size: 1.05rem; margin-bottom: 4px; }
.fact p { margin: 0; color: var(--muted); }
.fact.warn { border-left-color: var(--amber); }

/* Perguntas */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brand); font-weight: 400; font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin: 10px 0 0; color: var(--muted); max-width: 48em; }

/* Chamada final */
.cta { background: var(--navy); color: #c9d4df; border-radius: 14px; padding: 48px; display: grid; gap: 32px; grid-template-columns: 1fr auto; align-items: center; }
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { margin: 0; }
.cta .btn { border-color: #fff; color: #fff; background: transparent; }
.cta .btn:hover { background: rgba(255, 255, 255, 0.08); }

/* Documentos (guia, privacidade) */
.doc { display: grid; gap: 56px; grid-template-columns: 230px minmax(0, 1fr); padding: 48px 0 96px; align-items: start; }
.doc > * { min-width: 0; }
.toc { position: sticky; top: 92px; font-size: 0.93rem; }
.toc details { border: 0; padding: 0; }
.toc summary { list-style: none; }
.toc summary::after { content: none; }
.toc .label { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0; }
.toc a { display: block; padding: 5px 12px; border-left: 2px solid var(--line); color: var(--body); text-decoration: none; }
.toc a:hover { color: var(--brand); border-left-color: var(--brand); }
.toc .group { display: block; margin: 14px 0 4px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.content { max-width: 760px; }
.content h1 { margin-bottom: 0.3em; }
.content h2 { margin-top: 2.2em; padding-top: 0.2em; scroll-margin-top: 90px; }
.content h2:first-of-type { margin-top: 1.4em; }
.content h3 { margin-top: 1.6em; scroll-margin-top: 90px; }
.content .part { margin-top: 3em; padding-top: 1.4em; border-top: 2px solid var(--ink); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.content figure { margin: 1.4em 0; }
.content figure.shot { max-width: 300px; }
.content .pair { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 260px)); margin: 1.4em 0; }
.content .pair figure { margin: 0; }
code { overflow-wrap: anywhere; }
.note { border: 1px solid #f0dcb4; background: #fdf8ee; padding: 14px 18px; border-radius: 8px; margin: 1.2em 0; font-size: 0.97rem; }
.info { border: 1px solid #cfe6ec; background: #f1f8fa; padding: 14px 18px; border-radius: 8px; margin: 1.2em 0; font-size: 0.97rem; }
kbd {
  font: 600 0.84em "Inter", sans-serif; padding: 1px 7px; border-radius: 5px;
  border: 1px solid var(--line); border-bottom-width: 2px; background: #fff; color: var(--ink); white-space: nowrap;
}
.tag { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; background: #e3f4ec; color: var(--green); vertical-align: 3px; }

/* Rodapé */
footer { background: var(--navy); color: #aab7c4; padding: 56px 0 40px; font-size: 0.93rem; }
footer .grid { display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
footer h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; }
footer a { color: #d6dee6; text-decoration: none; display: block; padding: 3px 0; }
footer a:hover { color: #fff; text-decoration: underline; }
footer .brand { color: #fff; margin-bottom: 12px; }
footer .brand:hover { color: #fff; text-decoration: none; }
footer .legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.1); display: flex; gap: 12px 24px; flex-wrap: wrap; justify-content: space-between; font-size: 0.85rem; }

@media (max-width: 960px) {
  .cols { grid-template-columns: repeat(2, 1fr); }
  footer .grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  section { padding: 64px 0; }
  .hero { padding: 40px 0 56px; }
  .split, .hero .split, .split.wide-text { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse > :first-child { order: 0; }
  .split + .split { margin-top: 64px; }
  .problems, .facts, .plans { grid-template-columns: 1fr; }
  .problem:nth-child(odd) { border-right: 0; }
  .problem:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .shots { grid-template-columns: 1fr 1fr; }
  .cta { grid-template-columns: 1fr; padding: 32px 24px; }
  /* Menu: a linha de links rola para o lado. */
  .top .wrap { flex-wrap: wrap; gap: 0; min-height: 0; padding-top: 10px; }
  .nav { margin: 4px -20px 0; padding: 0 14px 8px; width: calc(100% + 40px); overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav .btn { display: none; }
  .doc { grid-template-columns: 1fr; gap: 8px; padding-top: 16px; }
  .toc { position: static; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; background: var(--alt); }
  .toc .label { margin: 0; display: flex; justify-content: space-between; color: var(--ink); font-size: 0.85rem; }
  .toc summary.label::after { content: "+"; color: var(--brand); font-size: 1.2rem; line-height: 1; font-weight: 400; }
  .toc details[open] summary.label::after { content: "−"; }
  .toc ol { margin-top: 8px; }
  .toc a { border-left: 0; padding: 5px 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 32px, var(--max)); }
  .nav { margin-inline: -16px; width: calc(100% + 32px); padding-inline: 10px; }
  .cols { grid-template-columns: 1fr; gap: 26px; }
  .shots, .shots.two { grid-template-columns: 1fr; max-width: 320px; margin-inline: auto; }
  .problem { padding: 22px 20px; }
  .plan { padding: 24px 20px; }
  .toc ol { columns: 1; }
  .content .pair { grid-template-columns: 1fr; max-width: 300px; }
  footer .grid { grid-template-columns: 1fr; }
}
