/* Sanfim — identidade: tinta, branco e um amarelo só (o quarto aceso do logo).
   Archivo (expandida nos títulos) + Martian Mono (rótulos, status, extrato). Fontes self-hosted. */
@font-face { font-family: 'Archivo'; src: url('/assets/fonts/archivo-var-latin.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'Martian Mono'; src: url('/assets/fonts/martian-mono-var-latin.woff2') format('woff2'); font-weight: 100 800; font-stretch: 75% 112.5%; font-display: swap; }

:root {
  --ink: #15161A;
  --ink-2: #26282F;
  --paper: #FFFFFF;
  --mist: #F2F3F5;
  --rule: #D9DCE1;
  --graphite: #4E535C;
  --marker: #FFE14A;
  --marker-soft: #FFF6C2;
  --focus: var(--ink);
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'Martian Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1200px;
  --gutter: clamp(16px, 4.5vw, 44px);
  --radius: 14px;
  --sec: clamp(64px, 10vw, 128px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.55; font-stretch: 100%; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; font-weight: 800; letter-spacing: -.015em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
abbr[title] { text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 780px; }
.muted { color: var(--graphite); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--marker); color: var(--ink); padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }

/* Marca das quatro frentes (mini) */
.qmark { flex: none; color: currentColor; }
.qmark .q-ink { fill: currentColor; }
.qmark .q-lit { fill: var(--marker); }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .7em 1.35em; border-radius: 12px; border: 2px solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 700; font-stretch: 105%; text-decoration: none; line-height: 1.1; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--marker); color: var(--ink); }
.btn--sm { min-height: 40px; padding: .5em 1em; font-size: .9375rem; border-radius: 10px; }
.btn--lg { min-height: 56px; padding: .85em 1.7em; font-size: 1.125rem; }
.btn--marker { background: var(--marker); border-color: var(--marker); color: var(--ink); }
.btn--marker:hover { background: var(--paper); border-color: var(--paper); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--mist); }
.btn[disabled] { opacity: .55; cursor: progress; }
.link-arrow { font-weight: 700; }

/* Barra da fatura */
.topbar { background: var(--ink); color: #E9EAEE; font-size: .8125rem; }
.topbar__in { padding-block: 8px; }
.topbar p { margin: 0; }
.topbar a { color: var(--marker); font-weight: 600; white-space: nowrap; }
.topbar { --focus: var(--marker); }

/* Cabeçalho */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--rule); padding-top: env(safe-area-inset-top, 0px); }
.site-head__in { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px 16px; min-height: 64px; }
.brand { display: inline-flex; color: var(--ink); text-decoration: none; }
.brand .logo { width: 132px; height: auto; }
.slogan { margin: 0; font-family: var(--mono); font-size: .6875rem; color: var(--graphite); white-space: nowrap; display: none; }
.nav { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); border-top: 1px solid var(--rule); }
.nav ul { list-style: none; display: flex; gap: 20px; padding-block: 8px; }
.nav a { font-family: var(--mono); font-size: .75rem; text-decoration: none; color: var(--graphite); white-space: nowrap; padding-block: 6px; display: inline-block; }
.nav a:hover { color: var(--ink); text-decoration: underline; }
.langs ul { list-style: none; display: flex; gap: 2px; }
.langs a { display: inline-grid; place-items: center; min-width: 34px; min-height: 34px; font-family: var(--mono); font-size: .6875rem; font-weight: 600; text-decoration: none; color: var(--graphite); border-radius: 8px; }
.langs a[aria-current] { background: var(--ink); color: var(--paper); }
.langs a:not([aria-current]):hover { background: var(--mist); color: var(--ink); }
.site-head__in .langs { grid-column: 3; justify-self: end; }
.head-cta { grid-column: 4; }
@media (min-width: 900px) {
  .site-head__in { grid-template-columns: auto auto 1fr auto auto; min-height: 72px; }
  .slogan { display: block; }
  .nav { grid-column: 3; grid-row: 1; margin: 0; padding: 0; border: 0; justify-self: center; overflow: visible; }
  .site-head__in .langs { grid-column: 4; }
  .head-cta { grid-column: 5; }
}
@media (max-width: 379px) { .brand .logo { width: 108px; } .head-cta { padding-inline: .8em; } }

.langhint { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); max-width: 460px; margin-inline: auto; background: var(--marker-soft); border: 1px solid #E8C900; border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(21, 22, 26, .45); font-size: .9375rem; }
.langhint .wrap { padding-inline: 16px 6px; }
.langhint__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 6px; }
.langhint p { margin: 0; }
.langhint a { font-weight: 700; }
.langhint__x { border: 0; background: none; font-size: 1.5rem; line-height: 1; width: 40px; height: 40px; cursor: pointer; border-radius: 8px; }
/* Na home o aviso ocupa o lugar da barra escura do topo (mesma altura, sem deslocar nada e sem cobrir o chat) */
.topbar { position: relative; }
.langhint--top { position: absolute; inset: 0; z-index: 1; max-width: none; margin: 0; border: 0; border-radius: 0; box-shadow: none; background: var(--ink); color: #E9EAEE; display: flex; align-items: center; --focus: var(--marker); }
.langhint--top .wrap { padding-inline: var(--gutter); }
.langhint--top .langhint__in { padding-block: 0; }
.langhint--top a { color: var(--marker); }
.langhint--top .langhint__x { color: #E9EAEE; width: 32px; height: 32px; font-size: 1.25rem; }

/* Seções */
.sec-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head h2 { font-size: clamp(2rem, 5.4vw, 3.6rem); font-stretch: 125%; margin-bottom: .45em; }
.sec-head p { color: var(--graphite); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); max-width: 62ch; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .75rem; color: var(--graphite); margin-bottom: 1rem; }

/* Hero */
.hero { padding-block: clamp(32px, 5vw, 72px) clamp(48px, 7vw, 96px); }
.hero__grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: clamp(20px, 3vw, 32px); font-family: var(--mono); font-size: .6875rem; color: var(--graphite); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.legend .qmark { color: var(--ink); }
.hero__title { font-size: clamp(2.35rem, 8.4vw, 4.5rem); font-stretch: 125%; font-weight: 850; line-height: .98; letter-spacing: -.03em; margin-bottom: .5em; text-wrap: balance; }
.hl { font-style: normal; background: linear-gradient(transparent 14%, var(--marker) 14%, var(--marker) 90%, transparent 90%); padding-inline: .06em; white-space: nowrap; }
.hero__title2 { display: block; margin-top: .5em; font-size: .42em; font-weight: 500; font-stretch: 100%; letter-spacing: -.01em; line-height: 1.15; color: var(--graphite); }
.hero__lead { font-size: clamp(1.0625rem, 1.7vw, 1.25rem); max-width: 56ch; color: var(--ink-2); margin: 0; }

/* Chat do hero */
.chat { background: var(--paper); border: 1px solid var(--rule); border-radius: 22px; padding: clamp(18px, 3vw, 26px); box-shadow: 0 1px 0 var(--rule), 0 24px 48px -28px rgba(21, 22, 26, .28); }
.chat__label { font-family: var(--mono); font-size: .6875rem; color: var(--graphite); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.chat__label::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #1E9E5A; box-shadow: 0 0 0 3px rgba(30, 158, 90, .18); }
.chat__log { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.msg { display: flex; align-items: flex-end; gap: 10px; max-width: 100%; }
.msg__avatar { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: var(--paper); display: grid; place-items: center; }
.msg__avatar .qmark { width: 20px; height: 20px; }
.msg__bubble { margin: 0; background: var(--mist); padding: 11px 15px; border-radius: 16px 16px 16px 4px; max-width: 34ch; }
.msg--you { justify-content: flex-end; }
.msg--you .msg__bubble { background: var(--marker); border-radius: 16px 16px 4px 16px; font-weight: 600; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: .55em 1em; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); cursor: pointer; font-weight: 600; font-size: .9375rem; text-align: left; transition: background-color .15s; }
.chip:hover { background: var(--marker-soft); }
.chip[data-chip='fatura'] { border-style: dashed; border-color: var(--graphite); font-weight: 500; }
.chat__next { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.chat__restart { border: 0; background: none; padding: 8px 2px; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; color: var(--graphite); font-size: .9375rem; }
.typing { display: inline-flex; gap: 4px; padding-block: 6px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--graphite); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* Faixa */
.marquee { background: var(--ink); color: var(--paper); overflow: hidden; border-block: 1px solid var(--ink); }
.marquee__track { list-style: none; display: flex; width: max-content; animation: slide 60s linear infinite; }
.marquee__item { display: inline-flex; align-items: center; gap: 22px; padding: 14px 22px 14px 0; font-family: var(--mono); font-size: .8125rem; white-space: nowrap; }
.marquee__item::after { content: ''; width: 8px; height: 8px; background: var(--marker); border-radius: 0 0 0 8px; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Quatro frentes: o logo aberto em grade. Cantos de fora retos, canto de dentro curvo:
   no desktop, o vão no meio forma a faísca do símbolo. */
.fronts { padding-block: var(--sec); }
.fronts__grid { display: grid; gap: 12px; }
.front { --inner: 64px; --edge: 6px; background: var(--ink); color: var(--paper); border-radius: var(--edge); padding: 28px 24px 30px; display: flex; flex-direction: column; gap: 14px; --focus: var(--marker); }
.front--marketing { border-bottom-right-radius: var(--inner); padding-bottom: 56px; }
.front--produto { background: var(--marker); color: var(--ink); border-bottom-left-radius: var(--inner); padding-bottom: 56px; --focus: var(--ink); }
.front--digitais { border-top-right-radius: var(--inner); padding-top: 52px; }
.front--startups { border-top-left-radius: var(--inner); padding-top: 52px; }
.front__head { display: flex; align-items: center; gap: 10px; }
.front--produto .qmark .q-lit { fill: var(--paper); }
.front__kind { margin: 0; font-family: var(--mono); font-size: .75rem; opacity: .85; }
.front__name { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-stretch: 118%; }
.front__text { margin: 0; font-size: 1.0625rem; max-width: 46ch; opacity: .92; }
.front__list { list-style: none; display: grid; gap: 6px; font-family: var(--mono); font-size: .75rem; line-height: 1.45; }
.front__list li { display: flex; gap: 10px; }
.front__list li::before { content: ''; flex: none; width: 7px; height: 7px; margin-top: .45em; background: var(--marker); border-radius: 0 0 7px 0; }
.front--produto .front__list li::before { background: var(--ink); }
.front__proof { margin: auto 0 0; font-size: .9375rem; }
.front__proof span { font-family: var(--mono); font-size: .6875rem; opacity: .8; margin-right: 4px; }
.front a { color: inherit; font-weight: 700; }
@media (min-width: 860px) {
  .fronts__grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .front { --inner: clamp(150px, 17vw, 210px); padding: 44px 48px 48px; min-height: 440px; }
  .front--marketing { padding-bottom: 96px; padding-right: 64px; }
  .front--produto { padding-bottom: 96px; padding-left: 72px; }
  .front--digitais { padding-top: 96px; padding-right: 64px; }
  .front--startups { padding-top: 96px; padding-left: 72px; }
}

/* Base × do zero */
.base { padding-block: var(--sec); background: var(--mist); }
.base__pair { display: grid; gap: 14px; margin-bottom: 28px; }
@media (min-width: 760px) { .base__pair { grid-template-columns: 1fr 1fr; } }
.base__col { padding: 24px; border-radius: var(--radius); }
.base__col h3 { font-size: 1.25rem; font-stretch: 112%; margin-bottom: .6em; }
.base__col p { margin: 0; }
.base__col--zero { background: var(--paper); color: var(--graphite); border: 1px dashed #B8BCC4; }
.base__col--us { background: var(--ink); color: var(--paper); }
.table-scroll { overflow-x: auto; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--rule); }
.compare { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .9375rem; }
.compare th, .compare td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.compare thead th { font-family: var(--mono); font-size: .6875rem; font-weight: 600; color: var(--graphite); background: var(--paper); }
.compare tbody th { font-weight: 700; }
.compare td { color: var(--graphite); }
.compare td.is-us { color: var(--ink); font-weight: 600; background: linear-gradient(90deg, var(--marker-soft), rgba(255, 246, 194, 0)); }
.compare thead th.is-us { color: var(--ink); }
.compare tbody tr:last-child > * { border-bottom: 0; }
@media (max-width: 639px) {
  .table-scroll { overflow: visible; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare { min-width: 0; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tbody tr { padding: 16px 18px; border-bottom: 1px solid var(--rule); }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare tbody th, .compare td { border: 0; padding: 0; }
  .compare tbody th { margin-bottom: 8px; }
  .compare td { display: grid; grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr); gap: 10px; padding: 5px 8px; border-radius: 6px; }
  .compare td::before { content: attr(data-label); font-family: var(--mono); font-size: .6875rem; color: var(--graphite); font-weight: 500; padding-top: .2em; }
  .compare td.is-us { background: var(--marker-soft); }
}

/* Projetos */
.projects { padding-block: var(--sec); }
.sec-head .checked { font-family: var(--mono); font-size: .75rem; color: var(--graphite); margin: 0; }
.pgroup + .pgroup { margin-top: clamp(48px, 7vw, 80px); }
.pgroup__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding-bottom: 14px; margin-bottom: 22px; border-bottom: 2px solid var(--ink); }
.pgroup__head .qmark { align-self: center; color: var(--ink); }
.pgroup__head h3 { font-size: 1.5rem; font-stretch: 118%; }
.pgroup__head p { margin: 0; color: var(--graphite); font-size: .9375rem; }
.projs { list-style: none; display: grid; gap: 18px; }
@media (min-width: 900px) { .projs { grid-template-columns: 1fr 1fr; gap: 24px; } }
.proj { display: flow-root; padding: 16px; border: 1px solid var(--rule); border-radius: 18px; background: var(--paper); }
.proj .proj__shot { float: left; width: 112px; margin: 0 16px 10px 0; }
@media (min-width: 520px) {
  .proj { display: grid; grid-template-columns: minmax(0, 168px) minmax(0, 1fr); gap: 22px; align-items: start; padding: 20px; }
  .proj .proj__shot { float: none; width: auto; margin: 0; }
}
.proj__shot { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--rule); background: var(--mist); aspect-ratio: 390 / 620; }
.proj__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.proj__meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 10px; }
.proj__cat { font-family: var(--mono); font-size: .6875rem; color: var(--graphite); }
.proj__name { font-size: 1.5rem; font-stretch: 112%; margin-bottom: .35em; }
.proj__text { font-size: .9688rem; color: var(--ink-2); }
.proj__link { font-family: var(--mono); font-size: .75rem; font-weight: 600; display: inline-flex; padding-block: 8px; margin: 0; }
.proj__link--off { color: var(--graphite); font-weight: 500; }
.status { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: .6875rem; font-weight: 600; padding: 4px 9px 4px 8px; border-radius: 6px; line-height: 1.3; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.status--live { background: var(--marker); }
.status--live::before { background: var(--ink); }
.status--prelaunch { background: var(--marker-soft); box-shadow: inset 0 0 0 1px #E8C900; }
.status--prelaunch::before { background: var(--ink); opacity: .55; }
.status--building { box-shadow: inset 0 0 0 1px var(--rule); color: var(--graphite); }
.status--building::before { border: 1.5px solid var(--graphite); }

/* Como funciona */
.process { padding-block: var(--sec); background: var(--mist); }
.steps { list-style: none; display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { background: var(--paper); border-radius: var(--radius); padding: 22px 22px 24px; border: 1px solid var(--rule); }
.step__n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: var(--marker); font-family: var(--mono); font-weight: 700; font-size: .875rem; margin-bottom: 16px; }
.step h3 { font-size: 1.1875rem; font-stretch: 110%; margin-bottom: .45em; }
.step p { margin: 0; color: var(--graphite); font-size: .9688rem; }

/* Faixa da fatura (home) */
.charge { padding-block: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--rule); }
.charge__in { display: grid; gap: 24px; align-items: center; }
@media (min-width: 760px) { .charge__in { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 48px; } }
.charge h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-stretch: 112%; margin-bottom: .45em; }
.charge p { color: var(--ink-2); max-width: 60ch; }
.stmt--mini { display: grid; gap: 10px; padding: 20px; background: var(--mist); border-radius: var(--radius); border: 1px dashed #B8BCC4; }
.stmt__line { height: 12px; border-radius: 4px; background: #DADDE2; }
.stmt__line--short { width: 62%; }
.stmt__line--hl { height: auto; background: var(--marker); padding: 6px 10px; font-family: var(--mono); font-size: .8125rem; font-weight: 700; transform: rotate(-1deg); }

/* CTA */
.cta { background: var(--ink); color: var(--paper); padding-block: var(--sec); --focus: var(--marker); }
.cta__in > * { max-width: 860px; }
.cta h2 { font-size: clamp(2.4rem, 7vw, 5rem); font-stretch: 125%; margin-bottom: .35em; }
.cta p { font-size: 1.125rem; color: #D6D8DE; max-width: 52ch; }
.cta__note { font-size: .9375rem !important; }
.cta__note a { color: var(--paper); }

/* FAQ */
.faq { padding-block: var(--sec); }
.faq__in { display: grid; gap: 24px; }
@media (min-width: 900px) { .faq__in { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; } }
.faq h2 { font-size: clamp(2rem, 5vw, 3.4rem); font-stretch: 125%; }
.qa { border-bottom: 1px solid var(--rule); }
.qa:first-child { border-top: 1px solid var(--rule); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 2px; font-weight: 700; font-size: 1.0625rem; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ''; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat; transition: transform .2s; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa__a { padding: 0 2px 20px; color: var(--ink-2); max-width: 64ch; }

/* Rodapé */
.site-foot { border-top: 1px solid var(--rule); padding-block: 48px calc(32px + env(safe-area-inset-bottom, 0px)); font-size: .9375rem; }
.foot-grid { display: grid; gap: 28px; margin-bottom: 32px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-brand p { color: var(--graphite); margin-top: 12px; }
.foot-label { font-family: var(--mono); font-size: .6875rem; color: var(--graphite); margin-bottom: .5em; }
.foot-links { list-style: none; display: grid; gap: 2px; }
.foot-links a { display: inline-block; padding-block: 6px; }
.foot-legal { font-size: .8125rem; color: var(--graphite); margin: 0; }

/* Página da fatura */
.fat__hero { padding-block: clamp(40px, 7vw, 88px) clamp(32px, 5vw, 56px); }
.fat h1 { font-size: clamp(2.2rem, 6.4vw, 4rem); font-stretch: 125%; margin-bottom: .45em; }
.lead { font-size: clamp(1.0625rem, 1.8vw, 1.25rem); color: var(--ink-2); }
.stmt { margin: 32px 0 0; }
.stmt figcaption { font-family: var(--mono); font-size: .6875rem; color: var(--graphite); margin-bottom: 10px; }
.stmt__rows { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); padding: 8px 0; box-shadow: 0 18px 40px -30px rgba(21, 22, 26, .35); }
.stmt__row { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 18px; font-family: var(--mono); font-size: .8125rem; }
.stmt__row + .stmt__row { border-top: 1px dashed var(--rule); }
.stmt__row--hl { background: var(--marker); font-weight: 700; margin-inline: -6px; padding-inline: 24px; transform: rotate(-.6deg); border-radius: 4px; }
.stmt__bar { height: 10px; border-radius: 3px; background: #E3E5E9; width: 70%; }
.stmt__bar--date { width: 44px; }
.stmt__bar--mid { width: 52%; }
.stmt__bar--amt { width: 56px; }
.fat__sec { padding-block: clamp(28px, 4vw, 48px); }
.fat__sec h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-stretch: 115%; margin-bottom: .7em; }
.charge-card { border: 2px solid var(--ink); border-radius: 18px; padding: 22px 22px 18px; }
.charge-card h3 { font-size: 1.5rem; font-stretch: 112%; margin-bottom: .35em; }
.charge-card__facts { list-style: none; display: grid; gap: 4px; margin-top: 10px; }
.charge-card__facts li { display: flex; flex-wrap: wrap; gap: 4px 8px; padding-block: 6px; border-top: 1px solid var(--rule); }
.charge-card__facts b { font-family: var(--mono); font-size: .75rem; font-weight: 600; min-width: 108px; color: var(--graphite); padding-top: .2em; }
.fat__steps { padding-left: 1.4em; display: grid; gap: 10px; }
.fat__steps li::marker { font-family: var(--mono); font-weight: 700; }
.fat__sec--who { background: var(--mist); margin-top: 24px; }

/* Páginas legais */
.legal { padding-block: clamp(40px, 6vw, 80px); }
.legal h1 { font-size: clamp(2rem, 5.6vw, 3.4rem); font-stretch: 125%; margin-bottom: .3em; }
.legal__updated { font-family: var(--mono); font-size: .75rem; color: var(--graphite); }
.prose { margin-top: 32px; }
.prose h2 { font-size: 1.375rem; font-stretch: 112%; margin: 2em 0 .6em; }
.prose h3 { font-size: 1.125rem; margin: 1.6em 0 .5em; }
.prose p, .prose li { max-width: 70ch; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1em; display: grid; gap: 6px; }
.prose dl { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); gap: 8px 18px; padding: 18px; background: var(--mist); border-radius: var(--radius); }
.prose dt { font-family: var(--mono); font-size: .75rem; color: var(--graphite); padding-top: .25em; }
.prose dd { margin: 0; font-weight: 600; }
@media (max-width: 520px) { .prose dl { grid-template-columns: 1fr; } .prose dd { margin-bottom: 8px; } }
.legal__others { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--rule); }
.legal__others ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.legal__others a { display: inline-block; padding-block: 6px; }

/* Briefing */
.page-briefing { background: var(--mist); }
.bf-head { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--rule); padding-top: env(safe-area-inset-top, 0px); }
.bf-head__in { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.bf-head .brand .logo { width: 112px; }
.bf-progress { margin: 0 auto 0 0; font-family: var(--mono); font-size: .6875rem; line-height: 1.35; color: var(--graphite); text-wrap: balance; }
.bf-exit { font-size: .875rem; color: var(--graphite); padding-block: 8px; display: none; }
@media (min-width: 640px) { .bf-exit { display: inline-block; } }
.bf-bar { height: 3px; background: var(--rule); }
.bf-bar span { display: block; height: 100%; width: 0; background: var(--ink); transition: width .3s; }
.bf { padding-block: clamp(28px, 5vw, 56px) 80px; min-height: calc(100vh - 63px); min-height: calc(100svh - 63px); } /* rodapé abaixo da dobra: as mensagens entram sem empurrar nada visível (CLS) */
.bf__wrap { max-width: 720px; }
.bf__title { font-size: clamp(2rem, 6vw, 3.2rem); font-stretch: 125%; margin-bottom: .25em; }
.bf__lead { color: var(--graphite); margin-bottom: 28px; }
.bf__noscript { background: var(--marker-soft); padding: 16px; border-radius: 12px; }
.bf__log { display: flex; flex-direction: column; gap: 10px; }
.bf__log .msg__bubble { background: var(--paper); max-width: 46ch; }
.bf__log .msg--you .msg__bubble { background: var(--marker); max-width: 46ch; white-space: pre-wrap; overflow-wrap: anywhere; }
.bf__log .msg--ack .msg__bubble { background: transparent; padding-block: 4px; color: var(--graphite); font-size: .9375rem; }
.bf__input { margin-top: 18px; padding-left: 44px; }
@media (max-width: 480px) { .bf__input { padding-left: 0; } }
.bf-opts { list-style: none; display: grid; gap: 8px; }
@media (min-width: 560px) { .bf-opts { grid-template-columns: 1fr 1fr; } }
.bf-opt { width: 100%; min-height: 52px; text-align: left; padding: 12px 16px; border-radius: 12px; border: 1.5px solid var(--ink); background: var(--paper); font-weight: 600; cursor: pointer; }
.bf-opt:hover { background: var(--marker-soft); }
.bf-opt[aria-pressed='true'] { background: var(--marker); }
.bf-field { display: grid; gap: 6px; margin-bottom: 14px; }
.bf-field label { font-weight: 600; font-size: .9375rem; }
.bf-field input, .bf-field textarea { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid #9EA3AC; border-radius: 12px; background: var(--paper); color: var(--ink); }
.bf-field textarea { min-height: 140px; resize: vertical; }
.bf-field input:focus-visible, .bf-field textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.bf-field [aria-invalid='true'] { border-color: #B3261E; }
.bf-meta { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: .6875rem; color: var(--graphite); }
.bf-check { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 16px; font-size: .9375rem; }
.bf-check input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--ink); }
.bf-hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.bf-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.bf-back { border: 0; background: none; padding: 10px 4px; text-decoration: underline; text-underline-offset: .18em; color: var(--graphite); cursor: pointer; }
.bf-err { color: #B3261E; font-weight: 600; font-size: .9375rem; margin: 8px 0 0; }
@media (hover: none) { .bf-keyhint { display: none; } }
.bf-summary { background: var(--paper); border: 2px solid var(--ink); border-radius: 18px; padding: 18px 20px; }
.bf-summary dl { margin: 0; display: grid; gap: 0; }
.bf-summary .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding-block: 12px; border-bottom: 1px solid var(--rule); }
.bf-summary .row:last-child { border-bottom: 0; }
.bf-summary dt { font-family: var(--mono); font-size: .6875rem; color: var(--graphite); grid-column: 1; }
.bf-summary dd { margin: 0; grid-column: 1; white-space: pre-wrap; overflow-wrap: anywhere; }
.bf-summary dd mark { background: var(--marker-soft); color: inherit; padding-inline: 2px; }
.bf-summary .edit { grid-column: 2; grid-row: 1 / span 2; align-self: center; border: 1px solid var(--rule); background: var(--paper); border-radius: 8px; padding: 8px 12px; min-height: 40px; cursor: pointer; font-size: .875rem; }
.bf-summary .edit:hover { background: var(--mist); }
.bf-done { background: var(--ink); color: var(--paper); border-radius: 18px; padding: 24px; --focus: var(--marker); }
.bf-done h2 { font-size: 1.75rem; font-stretch: 118%; margin-bottom: .5em; }

/* 404 */
.nf { padding-block: 80px; }
.nf .brand .logo { width: 140px; margin-bottom: 40px; }
.nf h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-stretch: 125%; margin-bottom: .6em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee__track { animation: none; width: auto; flex-wrap: wrap; }
  .marquee__track > :nth-child(n + 10) { display: none; }
}
