/* ============================================================
   Alô Cidadão — Institutional Editorial / Civic Trust
   Paper + navy + thin gold rule. Serif display (Spectral) +
   Public Sans (govtech). No decorative noise, no emoji.
   ============================================================ */

:root {
  --navy: #0a2440;
  --navy-2: #0e2e52;
  --blue: #14489c;
  --blue-link: #1b56b8;
  --ink: #16191f;
  --muted: #4d5666;
  --paper: #f5f1e8;
  --paper-2: #faf7f0;
  --white: #ffffff;
  --line: #e6dfd0;
  --line-soft: #efe9dc;
  --gold: #b08a45;
  --gold-soft: #cdb070;
  --gold-text: #8a6a18;
  --green: #16703a;
  --amber: #6b5310;
  --amber-soft: #f6eed8;

  --display: "Spectral", Georgia, "Times New Roman", serif;
  --body: "Public Sans", system-ui, -apple-system, sans-serif;

  --maxw: 1120px;
  --gutter: 28px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
svg { display: block; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: 104px 0; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; color: var(--navy); }
h1 { font-size: clamp(40px, 6vw, 66px); font-weight: 500; }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: 21px; }
p { color: var(--muted); }
.lead { font-size: clamp(18px, 2vw, 21px); color: #3c4654; max-width: 60ch; }

/* Eyebrow with gold rule — the recurring "official" motif */
.eyebrow {
  font-family: var(--body);
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-text); display: inline-flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold-soft); }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.section-head { max-width: 640px; }
.section-head.center { margin-inline: auto; }
.section-head p { margin-top: 14px; }

/* Icons */
.ico { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--body);
  font-weight: 600; font-size: 15px; padding: 14px 26px; border-radius: 4px; cursor: pointer;
  border: 1px solid transparent; transition: background .2s var(--ease), color .2s, border-color .2s, transform .2s var(--ease);
}
.btn .ico { width: 18px; height: 18px; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--blue); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy); }
.btn-paper { background: var(--paper); color: var(--navy); }
.btn-paper:hover { background: #fff; transform: translateY(-1px); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost-light:hover { border-color: #fff; }

/* Nav */
header.nav { position: sticky; top: 0; z-index: 60; background: rgba(245,241,232,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 36px; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--navy); letter-spacing: -0.01em; }
.brand .mark { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a { color: #3d4756; font-weight: 500; font-size: 15.5px; position: relative; padding: 10px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px; background: var(--gold); transition: width .25s var(--ease); }
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; gap: 12px; }
.burger { display: none; background: none; border: 0; cursor: pointer; color: var(--navy); }
.burger .ico { width: 26px; height: 26px; }

/* Hero — asymmetric: editorial column + official document card */
.hero { background: var(--paper); position: relative; padding: 92px 0 96px; overflow: hidden; }
.hero::before { /* faint engraved baseline grid */
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px);
  background-size: 100% 38px; opacity: .5; mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center; }
.hero h1 { margin: 22px 0; }
.hero h1 em { font-style: italic; color: var(--blue); }
.hero .lead { margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-meta .m { display: flex; align-items: center; gap: 9px; font-size: 14px; color: #44505f; font-weight: 500; }
.hero-meta .ico { width: 18px; height: 18px; color: var(--gold); }
.tagline-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--blue); background: #fff; border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; }
.tagline-chip .ico { width: 15px; height: 15px; }

/* Official document card motif */
.doc {
  background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 30px 60px -34px rgba(10,36,64,.4);
  overflow: hidden; position: relative;
}
.doc::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gold); }
.doc-head { padding: 20px 22px 16px; border-bottom: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: center; }
.doc-head .t { font-family: var(--display); font-size: 15px; color: var(--navy); font-weight: 600; }
.doc-head .seal { width: 26px; height: 26px; color: var(--gold); }
.doc-row { display: flex; align-items: center; justify-content: space-between; padding: 15px 22px; border-bottom: 1px solid var(--line-soft); }
.doc-row:last-child { border-bottom: 0; }
.doc-row b { font-size: 14.5px; color: var(--ink); font-weight: 600; }
.doc-row small { color: var(--muted); font-size: 12.5px; }
.pill { font-size: 11px; font-weight: 700; letter-spacing: .03em; padding: 4px 11px; border-radius: 3px; text-transform: uppercase; }
.pill.b { background: #e8eef8; color: var(--blue); }
.pill.g { background: #e4f1e7; color: var(--green); }
.pill.a { background: var(--amber-soft); color: var(--amber); }

/* Trust strip */
.trust { background: var(--navy); color: #fff; }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding-block: 56px; }
.trust .stat { text-align: center; }
.trust .num { font-family: var(--display); font-size: clamp(34px, 4vw, 48px); font-weight: 500; color: #fff; line-height: 1; }
.trust .num span { color: #fff; }
.trust .lbl { margin-top: 10px; font-size: 13.5px; color: #c6d2e2; font-weight: 500; }

/* Feature list — editorial, asymmetric numbered grid */
.features { background: var(--paper-2); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 54px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--line); gap: 1px; }
.feature {
  background: #fff; padding: 34px 30px; transition: background .25s var(--ease); position: relative;
}
.feature:hover { background: var(--paper-2); }
.feature .fc-ico { width: 44px; height: 44px; border-radius: 7px; display: grid; place-items: center; color: var(--blue); background: #eef3fb; margin-bottom: 20px; }
.feature .fc-ico .ico { width: 22px; height: 22px; }
.feature h3 { font-size: 20px; margin-bottom: 9px; }
.feature p { font-size: 15px; line-height: 1.6; }
.feature .idx { position: absolute; top: 26px; right: 28px; font-family: var(--display); font-size: 12px; color: var(--gold-text); font-weight: 600; }

/* Personas */
.personas { background: var(--paper); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 40px 0 44px; }
.tab { display: inline-flex; align-items: center; gap: 9px; padding: 11px 22px; border-radius: 999px; font-family: var(--body); font-weight: 600; font-size: 15px; cursor: pointer; background: #fff; border: 1px solid var(--line); color: #44505f; transition: all .2s var(--ease); }
.tab .ico { width: 17px; height: 17px; }
.tab:hover { border-color: var(--gold-soft); }
.tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.panel { display: none; }
.panel.active { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.panel h3 { font-size: clamp(22px, 2.4vw, 26px); margin-bottom: 6px; }
.panel ul { list-style: none; margin-top: 18px; }
.panel li { padding: 11px 0 11px 32px; position: relative; color: #3c4654; border-bottom: 1px solid var(--line-soft); }
.panel li:last-child { border-bottom: 0; }
.panel li .ico { position: absolute; left: 0; top: 13px; width: 19px; height: 19px; color: var(--green); }
.panel .visual {
  background: var(--navy); border-radius: 10px; min-height: 280px; display: grid; place-items: center; padding: 30px; position: relative; overflow: hidden;
}
.panel .visual::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 100% 26px; pointer-events: none; }
.mini { width: 100%; max-width: 320px; background: #fff; border-radius: 8px; overflow: hidden; position: relative; box-shadow: 0 22px 44px -26px rgba(0,0,0,.55); z-index: 1; }
.mini-top { height: 3px; background: var(--gold); }
.mini-h { padding: 14px 16px 11px; font-family: var(--display); font-size: 14px; color: var(--navy); font-weight: 600; border-bottom: 1px solid var(--line-soft); }
.mini-r { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line-soft); }
.mini-r:last-child { border-bottom: 0; }
.mini-r b { font-size: 13px; color: var(--ink); font-weight: 600; }
.mini-r small { color: var(--muted); font-size: 11.5px; display: block; margin-top: 2px; }
.mini-r > div { min-width: 0; }
.mini-r .pill { flex-shrink: 0; }
.mini-r .val { font-family: var(--display); font-size: 17px; color: var(--blue); font-weight: 600; }

/* Steps — horizontal rule with markers */
.steps-wrap { margin-top: 56px; position: relative; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step { position: relative; }
.step .n { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--gold-soft); display: grid; place-items: center; font-family: var(--display); font-size: 19px; font-weight: 600; margin-bottom: 20px; position: relative; z-index: 1; }
.step::before { content: ""; position: absolute; top: 22px; left: 44px; right: -28px; height: 1px; background: var(--line); z-index: 0; }
.step:last-child::before { display: none; }
.step h3 { font-size: 20px; margin: 0 0 8px; }
.step p { font-size: 14.5px; }

/* Security band */
.security { background: var(--navy); color: #fff; }
.security h2, .security h3 { color: #fff; }
.security .eyebrow { color: var(--gold-soft); }
.security .eyebrow::before { background: var(--gold); }
.security p { color: #bcc7d6; }
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; overflow: hidden; margin-top: 50px; }
.sec { background: var(--navy-2); padding: 34px 30px; }
.sec .ico-wrap { width: 44px; height: 44px; border-radius: 7px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--gold-soft); margin-bottom: 18px; }
.sec h3 { font-size: 20px; margin-bottom: 8px; }
.sec p { font-size: 15px; }

/* FAQ */
.faq-wrap { background: var(--paper-2); }
.faq { max-width: 780px; margin: 48px auto 0; border-top: 1px solid var(--line); }
.q { border-bottom: 1px solid var(--line); }
.q summary { cursor: pointer; padding: 26px 8px; font-family: var(--display); font-weight: 600; font-size: 19px; color: var(--navy); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.q summary::-webkit-details-marker { display: none; }
.q summary .ico { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; transition: transform .25s var(--ease); }
.q[open] summary .ico { transform: rotate(45deg); }
.q p { padding: 0 8px 26px; font-size: 16px; max-width: 64ch; }

/* CTA */
.cta { background: var(--paper); }
.cta-inner { background: var(--navy); border-radius: 14px; padding: 72px 40px; text-align: center; position: relative; overflow: hidden; }
.cta-inner::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(176,138,69,.18) 1px, transparent 1px); background-size: 26px 26px; mask-image: radial-gradient(closest-side, #000, transparent); }
.cta-inner > * { position: relative; }
.cta-inner h2 { color: #fff; }
.cta-inner .eyebrow { color: var(--gold-soft); justify-content: center; }
.cta-inner .eyebrow::before { background: var(--gold); }
.cta-inner p { color: #c2cdda; margin: 14px auto 30px; max-width: 50ch; }

/* Footer */
footer { background: var(--paper); border-top: 1px solid var(--line); padding: 64px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; }
.foot-brand .brand { margin-bottom: 14px; }
.foot-brand p { font-size: 14.5px; max-width: 30ch; }
.foot-col h4 { font-family: var(--body); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--navy); margin-bottom: 14px; }
.foot-col a { display: block; padding: 5px 0; color: var(--muted); font-size: 14.5px; }
.foot-col a:hover { color: var(--blue); }
.copy { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--muted); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Focus */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.trust a:focus-visible, .security a:focus-visible, .security summary:focus-visible, .cta a:focus-visible, .btn-primary:focus-visible, .tab.active:focus-visible { outline-color: var(--gold-soft); }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .panel.active, .foot-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .trust .wrap { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .sec-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::before { display: none; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; flex-direction: column; gap: 2px; top: 74px; right: var(--gutter); background: #fff; border: 1px solid var(--line); padding: 10px 14px; border-radius: 8px; box-shadow: 0 24px 50px -20px rgba(10,36,64,.35); }
  .nav-links.open a { padding: 12px 8px; }
  .burger { display: block; }
  .doc { margin-top: 8px; }
  section { padding: 72px 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .feature-grid, .steps, .trust .wrap, .foot-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 16px; }
}
