/* Layout: cabeçalho fixo, faixa hero, seções em grade de 12 colunas, rodapé institucional com dados do CNPJ */
:root {
  /* Cores da logo: azul-marinho #002655 e vermelho #af0b0b */
  --ink: #002655;
  --ink-soft: #4a5a75;
  --paper: #f4f6fa;
  --white: #ffffff;
  --line: #dbe1ea;
  --red: #af0b0b;
  --red-deep: #850707;
  --red-tint: #fbeaea;

  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Consolas", monospace;

  --wrap: 1160px;
  --r: 10px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--red); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.15; text-wrap: balance; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.eyebrow {
  font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--red); font-weight: 500;
}
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 62ch; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 42px; width: auto; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 8px; background: var(--red); color: var(--white);
  display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.03em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--f-display); font-size: 1.15rem; }
.brand-text span { font-size: 0.78rem; color: var(--ink-soft); letter-spacing: 0.04em; }

.nav { display: flex; gap: 4px; align-items: center; }
.nav a { white-space: nowrap;
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.98rem;
  padding: 8px 12px; border-radius: 6px;
}
.nav a:hover { background: var(--paper); }
.nav a[aria-current="page"] { color: var(--red); }
.nav .btn { margin-left: 8px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; font-weight: 600; cursor: pointer; color: var(--ink); }

@media (max-width: 1100px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--red); color: var(--white) !important; text-decoration: none;
  font-weight: 700; padding: 12px 20px; border-radius: 8px; border: 2px solid var(--red);
  transition: background .15s;
}
.btn:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn.ghost { background: transparent; color: var(--ink) !important; border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--white) !important; }

/* ---------- Hero ---------- */
.hero { background: var(--white); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1fr; gap: 56px; align-items: center; padding-block: 64px 72px; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; max-width: 720px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 28px; padding-top: 8px; }
.hero-facts div { display: flex; flex-direction: column; }
.hero-facts b { font-family: var(--f-display); font-size: 1.6rem; line-height: 1; }
.hero-facts span { font-size: 0.9rem; color: var(--ink-soft); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-block: 40px 48px; }
}

/* ---------- Sections ---------- */
.section { padding-block: 72px; }
.section.alt { background: var(--white); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; max-width: 70ch; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px; display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.section.alt .card { background: var(--paper); }
.card .tag { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.card p { color: var(--ink-soft); }

/* Segmentos como lista de "itens de cupom" */
.segments { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.segments li {
  list-style: none; padding: 20px 18px 20px 0; border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 2.4rem 1fr; gap: 4px 12px; min-width: 0;
}
.segments li:nth-child(3n+2), .segments li:nth-child(3n) { padding-left: 18px; border-left: 1px solid var(--line); }
.segments .code { font-family: var(--f-mono); font-size: 0.8rem; color: var(--red); padding-top: 3px; grid-row: span 2; }
.segments b { font-family: var(--f-display); font-size: 1.1rem; }
.segments span { color: var(--ink-soft); font-size: 0.97rem; }
.segments { margin: 0; padding: 0; }
@media (max-width: 860px) {
  .segments { grid-template-columns: 1fr; }
  .segments li, .segments li:nth-child(3n+2), .segments li:nth-child(3n) { padding-left: 0; border-left: 0; }
}

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { list-style: none; border-top: 3px solid var(--red); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { counter-increment: s; content: "Etapa " counter(s); font-family: var(--f-mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.steps p { color: var(--ink-soft); }
.steps { margin: 0; padding: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.cta-band { background: var(--ink); color: var(--white); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 48px; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #c8d2e3; }
.cta-band .btn.ghost { color: var(--white) !important; border-color: var(--white); }
.cta-band .btn.ghost:hover { background: var(--white); color: var(--ink) !important; }

/* ---------- Page header (inner pages) ---------- */
.page-head { background: var(--white); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-block: 52px 44px; display: flex; flex-direction: column; gap: 14px; }

/* ---------- Prose (policies) ---------- */
.prose { max-width: 72ch; display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font-size: 1.35rem; margin-top: 18px; }
.prose ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.prose .meta { font-family: var(--f-mono); font-size: .85rem; color: var(--ink-soft); }
.prose .box { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 6px; padding: 18px 20px; }

/* ---------- Contact ---------- */
.contact-list { display: flex; flex-direction: column; gap: 22px; }
.contact-list div { display: flex; flex-direction: column; gap: 2px; }
.contact-list dt { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.contact-list dd { margin: 0; font-size: 1.15rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.contact-list dd a { color: var(--ink); text-decoration-color: var(--red); text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--white); border-top: 1px solid var(--line); font-size: .95rem; color: var(--ink-soft); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-block: 48px 28px; }
.site-footer h3 { font-size: .8rem; font-family: var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px; font-weight: 500; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--red); text-decoration: underline; }
.legal { font-style: normal; display: flex; flex-direction: column; gap: 4px; font-variant-numeric: tabular-nums; }
.legal strong { color: var(--ink); }
.copy { border-top: 1px solid var(--line); }
.copy .wrap { display: block; padding-block: 16px; font-size: .85rem; }
@media (max-width: 860px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- Ajustes da versão PHP ---------- */
/* Substituem os style="" inline da referência, bloqueados pela Content-Security-Policy */
.grid-3.stack, .steps.stack { grid-template-columns: 1fr; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Ícone do WhatsApp ao lado dos telefones (verde escuro da marca: contraste AA sobre o fundo) */
.contact-list dd { display: flex; align-items: center; gap: 10px; }
.contact-list dd a.wa { display: inline-flex; color: #128c7e; text-decoration: none; border-radius: 50%; }
.contact-list dd a.wa:hover { color: #075e54; }

/* Imagem do sistema no topo da página inicial (duas colunas só quando ela existe) */
.hero .wrap.com-imagem { grid-template-columns: 1.15fr 0.85fr; }
.hero-img { width: 100%; height: auto; max-width: 520px; justify-self: center; }
@media (max-width: 860px) { .hero .wrap.com-imagem { grid-template-columns: 1fr; } }

/* Seção do aplicativo (texto + imagem lado a lado quando a imagem existe) */
.app-band.com-imagem { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.app-band .section-head { margin-bottom: 0; }
.app-img { width: 100%; height: auto; border-radius: var(--r); }
@media (max-width: 860px) { .app-band.com-imagem { grid-template-columns: 1fr; gap: 32px; } }
.app-band.imagem-esquerda .app-img { order: -1; }
.app-band .app-img { max-width: 520px; justify-self: center; }
@media (max-width: 860px) { .app-band.imagem-esquerda .app-img { order: 0; } }
.app-band.imagem-esquerda .app-img { max-width: 420px; }

/* Lista com marcador de "check" (seção do aplicativo) */
.lista-check { list-style: none; margin: 4px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lista-check li { position: relative; padding-left: 32px; font-size: 1.1rem; font-weight: 600; }
.lista-check li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.app-band .app-img.vertical { max-width: 300px; border-radius: 16px; }

/* Selos "Disponível para Android e iOS" (seção do aplicativo) */
.plataformas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--ink-soft); font-weight: 600; }
.plataforma {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; color: var(--ink);
}
.hero-img-link { justify-self: center; display: block; position: relative; width: 100%; max-width: 520px; border-radius: var(--r); }

/* Carimbo "Sistema apto à Reforma Tributária" sobre a imagem do Uniplus */
.carimbo {
  position: absolute; right: -72px; top: 24%; width: 132px; height: 132px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  text-align: center; color: var(--red); background: rgba(255, 255, 255, .94);
  border: 3px solid var(--red); outline: 1.5px solid var(--red); outline-offset: -9px;
  transform: rotate(-12deg); box-shadow: 0 8px 20px -10px rgba(0, 38, 85, .45);
  font-family: var(--f-mono); text-transform: uppercase; line-height: 1.15;
}
.carimbo span { font-size: .62rem; font-weight: 600; letter-spacing: .08em; }
.carimbo b { font-family: var(--f-display); font-size: .92rem; font-weight: 800; letter-spacing: .01em; }
/* O carimbo passa da borda da imagem; o recorte evita rolagem lateral em telas estreitas */
.hero { overflow-x: clip; }
@media (max-width: 1240px) { .carimbo { right: -20px; } }
@media (max-width: 860px) { .carimbo { right: 0; top: 18%; } }
@media (max-width: 520px) {
  .carimbo { width: 108px; height: 108px; }
  .carimbo span { font-size: .54rem; }
  .carimbo b { font-size: .78rem; }
}

/* Cartão com logo de marca parceira (Equipamentos) */
.marca-card {
  justify-self: center; width: 100%; max-width: 420px; display: grid; place-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 40px;
}
.marca-card img { width: 100%; max-width: 300px; height: auto; }

/* Cartões de produto (vitrine de Equipamentos) */
.card.produto img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; background: var(--white); border-radius: 6px; margin-bottom: 8px; }

/* Faixa compacta de marca parceira (logo pequeno + texto + botão numa linha) */
.marca-faixa { padding-block: 36px; }
.marca-faixa .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.marca-faixa .marca-card { width: auto; max-width: none; padding: 14px 22px; justify-self: auto; }
.marca-faixa .marca-card img { width: 120px; max-width: none; }
.marca-faixa h2 { font-size: 1.3rem; flex: 1 1 280px; }

/* Celular: área de toque maior nos links do rodapé */
@media (max-width: 860px) {
  .site-footer ul { gap: 2px; }
  .site-footer li a { display: inline-block; padding-block: 6px; }
}
