/* Página pública do Confere. Mesma identidade da demo (papel, tinta, verde,
   Fraunces / Instrument Sans / Spline Sans Mono), com as linhas de livro-razão
   como textura. */
@import url("fonts/fonts.css");

:root {
  --paper: #faf8f3;
  --paper-2: #f2eee4;
  --card: #ffffff;
  --ink: #1a2333;
  --ink-2: #273246;
  --muted: #5a6472;
  --hairline: #e4e1d8;
  --green: #0f6b5c;
  --green-deep: #0a5045;
  --green-tint: #e9f4ef;
  --alert: #b4441c;
  --alert-tint: #fbefe8;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", sans-serif;
  --mono: "Spline Sans Mono", "SF Mono", monospace;
  --gutter: clamp(16px, 4vw, 40px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--sans); background: var(--paper); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.ledger {
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 35px, rgba(26, 35, 51, 0.05) 35px, rgba(26, 35, 51, 0.05) 36px);
}

/* ------------------------------------------------------------------ nav */
.nav { position: sticky; top: 0; z-index: 5; background: rgba(250, 248, 243, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--hairline); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; text-decoration: none; letter-spacing: -0.02em; }
.brand span { color: var(--green); }
.nav nav { display: flex; gap: 24px; margin-left: auto; }
.nav nav a { text-decoration: none; font-size: 0.92rem; color: var(--muted); }
.nav nav a:hover { color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 0.98rem; text-decoration: none; transition: background 0.15s, color 0.15s, transform 0.15s; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 0.9rem; }
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: var(--green-deep); }
.btn-line { border: 1.5px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }

/* ----------------------------------------------------------------- hero */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 96px); border-bottom: 1px solid var(--hairline); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); margin-bottom: 18px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); }
h1 em, h2 em { font-style: normal; color: var(--green); box-shadow: inset 0 -0.12em 0 var(--green-tint); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); margin-top: 22px; max-width: 58ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta-row.center { justify-content: center; }
.hero-note { margin-top: 28px; font-size: 0.82rem; color: var(--muted); max-width: 52ch; }
.hero-note b { color: var(--ink); }

.hero-copy > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.06s; }
.hero-copy > :nth-child(3) { animation-delay: 0.12s; }
.hero-copy > :nth-child(4) { animation-delay: 0.18s; }
.hero-copy > :nth-child(5) { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* folha de extrato: cada linha é conferida em sequência */
.sheet { background: var(--card); border: 1px solid var(--hairline); border-radius: 14px; box-shadow: 0 1px 0 var(--hairline), 0 24px 48px -24px rgba(26, 35, 51, 0.28); overflow: hidden; transform: rotate(0.6deg); animation: rise 0.8s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.sheet-head, .sheet-foot { display: flex; justify-content: space-between; gap: 12px; padding: 14px 20px; font-size: 0.85rem; }
.sheet-head { border-bottom: 1px solid var(--hairline); font-weight: 600; }
.sheet-head .mono { color: var(--muted); font-weight: 400; }
.sheet-rows { list-style: none; }
.sheet-rows li { display: grid; grid-template-columns: 3.4rem 1fr auto 7.2rem; gap: 12px; align-items: center; padding: 11px 20px; border-bottom: 1px solid var(--hairline); font-size: 0.9rem; animation: row 0.5s calc(0.7s + var(--i) * 0.45s) both; }
.sheet-rows li > :first-child { color: var(--muted); font-size: 0.82rem; }
.amt { text-align: right; }
.amt.in { color: var(--green); }
.tag { justify-self: end; font-family: var(--mono); font-size: 0.74rem; padding: 3px 8px; border-radius: 6px; white-space: nowrap; animation: stamp 0.35s calc(0.95s + var(--i) * 0.45s) both; }
.tag.ok { background: var(--green-tint); color: var(--green-deep); }
.tag.ok::before { content: "✓ "; }
.tag.bad { background: var(--alert-tint); color: var(--alert); font-weight: 500; }
.sheet-rows li.miss { background: linear-gradient(90deg, var(--alert-tint), transparent 70%); }
.sheet-foot { background: var(--paper); color: var(--muted); animation: rise 0.5s 3.3s both; }
.sheet-foot b { color: var(--ink); }
.bad-text, .bad-text b { color: var(--alert) !important; }
@keyframes row { from { opacity: 0; transform: translateX(-8px); } }
@keyframes stamp { from { opacity: 0; transform: scale(1.4); } }

/* ---------------------------------------------------------------- strip */
.strip { background: var(--ink); color: #e9e6dd; padding: clamp(36px, 5vw, 56px) 0; }
.strip p { font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.4; max-width: 46ch; }
.strip span { color: #f4c9b3; }

/* ------------------------------------------------------------- sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.paper2 { background: var(--paper-2); }
.dark { background: var(--ink); color: #f4f1e9; }
.dark .lede { color: #b8bfca; }
.dark .eyebrow { color: #8fd3c1; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--hairline); border-radius: 14px; padding: 28px; position: relative; }
.card .num { color: var(--green); font-size: 0.85rem; }
.card h3 { font-size: 1.45rem; margin: 10px 0 10px; }
.card p { color: var(--muted); }
.pill { display: inline-block; vertical-align: middle; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green-deep); background: var(--green-tint); border-radius: 999px; padding: 3px 9px; margin-left: 6px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.split .section-head { margin-bottom: 0; }
.proof { list-style: none; display: grid; gap: 0; }
.proof li { padding: 22px 0; border-top: 1px solid rgba(244, 241, 233, 0.16); }
.proof li:last-child { border-bottom: 1px solid rgba(244, 241, 233, 0.16); }
.proof h3 { font-size: 1.3rem; margin-bottom: 6px; }
.proof p { color: #b8bfca; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.steps li { padding: 24px 24px 0 0; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--hairline); }
.steps .mono { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 0.85rem; }
.steps h3 { font-size: 1.25rem; margin: 16px 0 8px; }
.steps p { color: var(--muted); font-size: 0.95rem; }

.link { display: inline-block; margin-top: 24px; color: var(--green-deep); font-weight: 600; text-underline-offset: 4px; }
.facts { background: var(--card); border: 1px solid var(--hairline); border-radius: 14px; padding: 8px 28px; }
.facts div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }

.faq details { border-top: 1px solid var(--hairline); }
.faq details:last-child { border-bottom: 1px solid var(--hairline); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--green); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 22px; max-width: 64ch; }

.cta { text-align: center; border-top: 1px solid var(--hairline); }
.cta-inner .lede { margin-left: auto; margin-right: auto; }
.cta h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }

/* --------------------------------------------------------------- footer */
.foot { background: var(--ink); color: #c9cfd8; padding: 56px 0 28px; font-size: 0.9rem; }
.foot .brand { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 32px; }
.foot-grid > div p { margin: 6px 0 16px; }
.foot img { filter: invert(1); opacity: 0.8; }
.foot address { font-style: normal; line-height: 1.8; }
.foot nav { display: grid; gap: 8px; align-content: start; }
.foot a { color: #fff; text-underline-offset: 3px; }
.copy { margin-top: 40px; font-size: 0.78rem; color: #8b93a1; }

/* --------------------------------------------------------- privacidade */
.doc { padding: clamp(48px, 7vw, 88px) 0; }
.doc h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); margin-bottom: 12px; }
.doc h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.doc p, .doc li { color: var(--ink-2); max-width: 70ch; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 20px; margin-top: 8px; }
.doc .updated { color: var(--muted); font-family: var(--mono); font-size: 0.82rem; }

/* ----------------------------------------------------------- responsivo */
@media (max-width: 960px) {
  .nav nav { display: none; }
  .nav-inner { justify-content: space-between; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .sheet { transform: none; }
  .steps { grid-template-columns: 1fr 1fr; border-top: 0; gap: 24px; }
  .steps li, .steps li + li { padding: 20px 0 0; border-left: 0; border-top: 2px solid var(--ink); }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cards, .steps { grid-template-columns: 1fr; }
  .sheet-rows li { grid-template-columns: 2.8rem 1fr auto; font-size: 0.85rem; padding: 10px 14px; }
  .sheet-rows .tag { grid-column: 2 / 4; justify-self: start; }
  .sheet-head, .sheet-foot { padding: 12px 14px; flex-wrap: wrap; }
  .facts { padding: 4px 18px; }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
  .btn { width: 100%; }
  .nav .btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
