/* VerID4U — identidade: parecer documento, não parecer startup. */

:root {
  --ink: #0F1721;
  --quiet: #5A6775;
  --paper: #F7F9FB;
  --card: #FFFFFF;
  --line: #E2E8EF;
  --line-soft: #EDF1F5;
  --brand: #123E6B;
  --brand-deep: #0B2A4A;
  --brand-tint: #EAF0F7;
  --ok: #0E7C5A;
  --ok-tint: #E6F4EE;
  --warn: #B5700F;
  --warn-tint: #FBF1E2;
  --gone: #5A6775;
  --gone-tint: #EEF1F4;
  --bad: #A8231E;
  --bad-tint: #FAEBEA;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 33, .05), 0 8px 24px rgba(15, 23, 33, .05);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #E9EDF2;
    --quiet: #9AA7B5;
    --paper: #0D1319;
    --card: #141C24;
    --line: #26323D;
    --line-soft: #1D2730;
    --brand: #7FA9D8;
    --brand-deep: #A8C6E8;
    --brand-tint: #15222F;
    --ok: #4FC395;
    --ok-tint: #11261F;
    --warn: #E3A857;
    --warn-tint: #2A2112;
    --gone: #9AA7B5;
    --gone-tint: #1C242C;
    --bad: #EF8178;
    --bad-tint: #2B1817;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.011em; }
p { margin: 0 0 1em; }
a { color: var(--brand); }
code { font-family: var(--mono); font-size: .92em; }

.wrap { width: min(1080px, calc(100% - 40px)); margin-inline: auto; }
.wrap.narrow { width: min(720px, calc(100% - 40px)); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: #fff; padding: 10px 16px; z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------------------------------------------------------------- header */
.site-header { border-bottom: 1px solid var(--line); background: var(--card); }
.header-row {
  display: flex; align-items: center; gap: 20px;
  min-height: 64px; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--brand); text-decoration: none; font-weight: 700;
  font-size: 19px; letter-spacing: -.02em;
}
.brand-mark { width: 24px; height: 24px; flex: none; }
.brand-text { color: var(--ink); }
.brand-accent { color: var(--brand); }

.site-nav { display: flex; gap: 18px; margin-left: auto; font-size: 14.5px; }
.site-nav a { color: var(--quiet); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }

.lang { display: flex; gap: 2px; }
.lang a {
  font-size: 12px; font-weight: 600; letter-spacing: .03em;
  color: var(--quiet); text-decoration: none;
  padding: 4px 7px; border-radius: 6px;
}
.lang a[aria-current] { color: #fff; background: var(--brand); }
@media (prefers-color-scheme: dark) { .lang a[aria-current] { color: var(--paper); } }
.lang a:hover:not([aria-current]) { background: var(--line-soft); color: var(--ink); }

/* ------------------------------------------------------------------ hero */
.hero { background: var(--card); border-bottom: 1px solid var(--line); }
.hero-inner { padding: clamp(40px, 7vw, 76px) 0 clamp(32px, 5vw, 56px); text-align: center; }
.hero-title { font-size: clamp(28px, 4.6vw, 42px); margin-bottom: 12px; }
.hero-sub { color: var(--quiet); font-size: 17px; max-width: 46ch; margin-inline: auto; }

.verifier { max-width: 560px; margin: 28px auto 0; text-align: left; }
.verifier-label {
  display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--quiet); margin-bottom: 7px;
}
.verifier-row { display: flex; gap: 10px; }
.verifier input {
  flex: 1 1 auto; min-width: 0;
  font-family: var(--mono); font-size: clamp(16px, 2.6vw, 20px); font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 14px 16px; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: var(--radius);
}
.verifier input::placeholder { color: var(--quiet); opacity: .55; letter-spacing: .06em; }
.verifier input:focus-visible { outline: 3px solid var(--brand-tint); border-color: var(--brand); }
.verifier button {
  flex: none; font: inherit; font-weight: 600; font-size: 16px;
  padding: 14px 24px; color: #fff; background: var(--brand);
  border: 0; border-radius: var(--radius); cursor: pointer;
}
@media (prefers-color-scheme: dark) { .verifier button { color: var(--paper); } }
.verifier button:hover { background: var(--brand-deep); }
.verifier.has-error input { border-color: var(--bad); }
.verifier-error {
  display: flex; gap: 8px; align-items: flex-start;
  margin: 10px 0 0; font-size: 14.5px; color: var(--bad);
}
.verifier-error .icon { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.verifier-hint { margin: 9px 0 0; font-size: 13.5px; color: var(--quiet); }

.samples { margin-top: 26px; font-size: 13.5px; color: var(--quiet); }
.samples ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 0; margin: 10px 0 0; }
.samples a {
  display: inline-block; font-family: var(--mono); font-size: 13px;
  padding: 5px 10px; border: 1px solid var(--line); border-radius: 7px;
  text-decoration: none; background: var(--paper);
}
.samples a:hover { border-color: var(--brand); }

/* ----------------------------------------------------------------- bands */
.band { padding: clamp(44px, 6vw, 72px) 0; }
.band-alt { background: var(--card); border-block: 1px solid var(--line); }
.band-pitch { padding-block: clamp(40px, 5vw, 60px); }
.section-title { font-size: clamp(21px, 2.8vw, 27px); margin-bottom: 26px; }
.pitch-title { font-family: var(--serif); font-size: clamp(22px, 3.4vw, 32px); margin-bottom: 14px; }
.pitch-body { color: var(--quiet); font-size: 17px; margin: 0; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps h3 { font-size: 17px; margin: 10px 0 6px; }
.steps p { color: var(--quiet); font-size: 15px; margin: 0; }
.step-n {
  display: inline-grid; place-items: center; width: 28px; height: 28px;
  font-size: 13.5px; font-weight: 700; color: var(--brand);
  background: var(--brand-tint); border-radius: 50%;
}

.cert-preview { margin: 40px 0 0; }
.cert-paper {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 28px 20px; box-shadow: var(--shadow); max-width: 520px; margin-inline: auto;
}
.cert-kicker { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--quiet); margin: 0 0 6px; }
.cert-program { font-family: var(--serif); font-size: 21px; margin: 0 0 4px; }
.cert-holder { font-family: var(--serif); font-size: 16px; color: var(--quiet); margin: 0 0 22px; }
.cert-strip {
  display: flex; align-items: center; gap: 14px;
  border-top: 1px dashed var(--line); padding-top: 16px;
}
.cert-qr, .share-qr { width: 64px; height: 64px; flex: none; background: #fff; border-radius: 6px; padding: 4px; }
.share-qr { width: 104px; height: 104px; }
.cert-qr img, .cert-qr canvas, .share-qr img, .share-qr canvas { width: 100%; height: 100%; display: block; }
.cert-strip-text { flex: 1 1 auto; min-width: 0; }
.cert-strip-text code { display: block; font-size: 14px; font-weight: 700; letter-spacing: .04em; }
.cert-strip-text span { font-size: 12px; color: var(--quiet); }
.cert-seal { width: 34px; height: 34px; color: var(--ok); flex: none; }
.cert-seal svg { width: 100%; height: 100%; }
.cert-preview figcaption { text-align: center; font-size: 13.5px; color: var(--quiet); margin-top: 14px; }

.paths { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.path { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.path h3 { font-size: 17px; }
.path p { color: var(--quiet); font-size: 15px; margin: 0; }

.audiences { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.audiences h3 { font-size: 15.5px; margin: 0 0 4px; }
.audiences p { color: var(--quiet); font-size: 14.5px; margin: 0; }

.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 600; cursor: pointer; font-size: 16.5px; }
.faq summary::marker { color: var(--brand); }
.faq p { color: var(--quiet); margin: 10px 0 0; font-size: 15px; }

.band-cta { background: var(--brand); color: #fff; text-align: center; }
.band-cta h2 { color: #fff; font-size: clamp(21px, 3vw, 28px); }
.band-cta p { color: rgba(255, 255, 255, .82); }
.button {
  display: inline-block; font-weight: 600; text-decoration: none;
  padding: 13px 26px; border-radius: var(--radius);
  background: #fff; color: var(--brand-deep);
}
.button.ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink); cursor: pointer; font: inherit; font-weight: 600; padding: 10px 18px; }
.button.ghost:hover { border-color: var(--brand); }

/* --------------------------------------------------------------- verdict */
.verdict { padding: clamp(36px, 5vw, 56px) 0 clamp(22px, 3vw, 34px); border-bottom: 1px solid var(--line); }
.verdict-code { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--quiet); margin: 0 0 14px; }
.verdict-code code { font-size: 14px; letter-spacing: .08em; color: var(--ink); text-transform: none; }
.verdict-headline { display: flex; align-items: center; gap: 14px; font-size: clamp(26px, 4.4vw, 38px); margin: 0 0 10px; }
.verdict-icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; }
.verdict-icon svg { width: 26px; height: 26px; }
.verdict-explain { font-size: 17px; color: var(--quiet); margin: 0; max-width: 52ch; }

.verdict-verified { background: var(--ok-tint); }
.verdict-verified .verdict-headline { color: var(--ok); }
.verdict-verified .verdict-icon { background: var(--ok); color: var(--ok-tint); }
.verdict-expiring { background: var(--warn-tint); }
.verdict-expiring .verdict-headline { color: var(--warn); }
.verdict-expiring .verdict-icon { background: var(--warn); color: var(--warn-tint); }
.verdict-expired { background: var(--gone-tint); }
.verdict-expired .verdict-headline { color: var(--gone); }
.verdict-expired .verdict-icon { background: var(--gone); color: var(--gone-tint); }
.verdict-revoked { background: var(--bad-tint); }
.verdict-revoked .verdict-headline { color: var(--bad); }
.verdict-revoked .verdict-icon { background: var(--bad); color: var(--bad-tint); }
.verdict-notfound, .verdict-throttled { background: var(--gone-tint); }
.verdict-notfound .verdict-headline, .verdict-throttled .verdict-headline { color: var(--ink); }
.verdict-notfound .verdict-icon, .verdict-throttled .verdict-icon { background: var(--quiet); color: var(--gone-tint); }

.demo-note {
  margin: 20px 0 0; padding: 12px 14px; font-size: 13.5px; color: var(--ink);
  background: var(--warn-tint); border: 1px solid var(--warn); border-radius: 10px;
}
.demo-note strong { color: var(--warn); text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; margin-right: 6px; }

.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; margin-top: 20px;
}
.panel-kicker { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--quiet); margin: 0 0 8px; }

.facts { display: grid; gap: 16px 28px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin: 0; }
.facts > div.wide { grid-column: 1 / -1; }
.facts dt { font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--quiet); margin-bottom: 3px; }
.facts dd { margin: 0; font-size: 16px; }
.hash { font-size: 12.5px; word-break: break-all; color: var(--quiet); }

.issuer-name { font-family: var(--serif); font-size: 20px; margin: 0 0 2px; }
.issuer-cnpj { font-size: 13.5px; color: var(--quiet); margin: 0 0 12px; }
.issuer-level { display: flex; gap: 9px; align-items: flex-start; font-size: 14.5px; margin: 0; }
.level-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; margin-top: 6px; background: var(--quiet); }
.level-2 .level-dot, .level-3 .level-dot, .level-4 .level-dot { background: var(--ok); }
.level-0 .level-dot { background: var(--bad); }

.share-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.share-hint { font-size: 14px; color: var(--quiet); margin: 0 0 10px; }

.proof { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 16px 20px; }
.proof summary { font-weight: 600; cursor: pointer; }
.proof .facts { margin-top: 16px; }
.muted { color: var(--quiet); font-size: 13.5px; margin: 14px 0 0; }

.notproven { margin-top: 26px; padding-left: 16px; border-left: 3px solid var(--line); }
.notproven h2 { font-size: 15px; letter-spacing: .02em; }
.notproven ul { margin: 0; padding-left: 18px; color: var(--quiet); font-size: 14.5px; }
.notproven li { margin-bottom: 5px; }

.again { padding: 40px 0 60px; }
.verifier.compact { margin: 0 0 14px; max-width: 520px; }
.quiet-link { color: var(--quiet); font-size: 14px; }

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); background: var(--card); padding: 26px 0; }
.footer-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-brand { font-weight: 600; margin: 0; font-size: 14.5px; }
.footer-meta { color: var(--quiet); font-size: 13.5px; margin: 0; }

@media (max-width: 640px) {
  .header-row { min-height: 56px; padding-block: 10px; }
  .site-nav { display: none; }
  .verifier-row { flex-direction: column; }
  .verifier button { width: 100%; }
  .verdict-headline { gap: 11px; }
  .verdict-icon { width: 38px; height: 38px; }
  .verdict-icon svg { width: 22px; height: 22px; }
}
