/* ===== Perto Digital — Central de Identidade =====
   Tokens oficiais da marca (ver pacotes/perto-tokens.css) */
:root {
  --perto-turquesa: #0B5A6A;
  --perto-oliva: #9CB865;
  --perto-lima: #91C829;
  --perto-lima-clara: #B3F169;
  --perto-ciano: #00A5C1;
  --perto-verde-btn: #49842A;
  --perto-verde-btn-hover: #5CA43E;
  --perto-bg: #00171D;
  --perto-bg-2: #001F24;
  --perto-bg-3: #00232B;
  --perto-gelo-50: #F8FEFE;
  --perto-gelo-200: #DCE8EA;
  --perto-gelo-400: #BCD1D1;
  --perto-ink: #0B2429;
  --glass-bg: linear-gradient(135deg, rgba(11, 90, 106, .38), rgba(0, 31, 36, .55));
  --glass-border: rgba(127, 227, 236, .28);
  --font-display: "Baloo 2", "Inter", system-ui, sans-serif;
  --font-text: "Inter", system-ui, -apple-system, sans-serif;
  --radius-card: 16px;
  --radius-btn: 10px;
  --wrap: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

html { background-color: var(--perto-bg); }
body {
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.55;
  color: #fff;
  background-color: var(--perto-bg);
  background-image:
    radial-gradient(1100px 520px at 78% -80px, rgba(11, 90, 106, .40), transparent 70%),
    radial-gradient(900px 600px at -10% 480px, rgba(11, 90, 106, .22), transparent 70%),
    linear-gradient(165deg, var(--perto-bg-3), var(--perto-bg) 1400px);
  background-repeat: no-repeat;
  background-size: 100% 2200px, 100% 2200px, 100% 100%;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.mut { color: var(--perto-gelo-400); font-weight: 400; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; background: rgba(127, 227, 236, .12); padding: .1em .4em; border-radius: 6px; }
em { font-style: normal; color: var(--perto-lima-clara); }
s { color: var(--perto-gelo-400); }
a { color: #7FE3EC; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--perto-lima-clara); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--perto-lima-clara); color: var(--perto-ink);
  padding: 10px 18px; border-radius: 0 0 10px 0; font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ===== Topbar ===== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 23, 29, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(127, 227, 236, .15);
}
.topbar-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.topbar-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; }
.topbar-brand img { display: block; }
.topbar-divider { width: 1px; height: 22px; background: rgba(127, 227, 236, .3); }
.topbar-title { font-weight: 600; font-size: 15px; letter-spacing: .01em; }
.topbar-version { font-size: 13px; color: var(--perto-gelo-400); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 96px 0 72px;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 72px 72px;
}
.kicker {
  font-weight: 600; font-size: 14px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--perto-lima-clara); margin-bottom: 18px;
}
.hero h1 {
  font-weight: 800; font-size: clamp(38px, 6vw, 68px); line-height: 1.05; letter-spacing: -.02em;
  margin-bottom: 22px;
}
.hero-sub { font-size: 19px; max-width: 640px; color: var(--perto-gelo-200); margin-bottom: 34px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills a {
  display: inline-block; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--glass-border); background: rgba(11, 90, 106, .22);
  color: #fff; text-decoration: none; font-weight: 600; font-size: 15px;
  transition: background .15s ease, transform .15s ease;
}
.pills a:hover { background: rgba(11, 90, 106, .5); transform: translateY(-1px); }

/* ===== Sections ===== */
.section { padding: 72px 0; border-top: 1px solid rgba(127, 227, 236, .1); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head h2 {
  font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -.01em; margin-bottom: 10px;
}
.section-head p { color: var(--perto-gelo-200); font-size: 17px; }
.sub-head { margin: 34px 0 14px; font-size: 20px; font-weight: 700; }
.nota { margin-top: 14px; font-size: 14px; }

/* ===== Glass ===== */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .25);
  padding: 24px;
}

/* ===== A marca ===== */
.marca-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 18px; }
.marca-quote { display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.marca-quote p { font-size: 26px; font-weight: 700; line-height: 1.3; }
.marca-quote strong { color: var(--perto-lima-clara); }
.marca-quote cite { font-style: normal; font-size: 13px; color: var(--perto-gelo-400); }
.marca-tabela dl .row {
  display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 13px 0;
  border-bottom: 1px solid rgba(127, 227, 236, .12);
}
.marca-tabela dl .row:last-child { border-bottom: none; }
.marca-tabela dt {
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--perto-gelo-400); padding-top: 3px;
}
.marca-tabela dd { font-size: 16px; }
.tom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.tom-grid h3, .pilar h3 { font-size: 18px; margin-bottom: 12px; }
.checklist { list-style: none; }
.checklist li { padding: 7px 0 7px 28px; position: relative; color: var(--perto-gelo-200); }
.checklist li::before { content: "✓"; position: absolute; left: 2px; color: var(--perto-lima-clara); font-weight: 700; }
.frases p { padding: 8px 0; border-bottom: 1px solid rgba(127, 227, 236, .1); font-size: 15px; }
.frases p:last-child { border-bottom: none; }
.frases .certo { display: block; color: var(--perto-gelo-200); margin-top: 2px; }
.pilares { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.pilar p { color: var(--perto-gelo-200); font-size: 15px; }
.pilar h3 { color: var(--perto-lima-clara); }

/* ===== Logos ===== */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.logo-card { display: flex; flex-direction: column; gap: 16px; padding: 18px; }
.logo-previews { display: flex; gap: 10px; }
.preview {
  flex: 1; min-height: 110px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  padding: 16px; overflow: hidden;
}
.preview img { max-width: 100%; max-height: 52px; height: auto; }
.preview.claro { background: var(--perto-gelo-50); }
.preview.escuro { background: var(--perto-bg); border: 1px solid rgba(127, 227, 236, .18); }
.preview.full img { max-height: 44px; }
.logo-meta h3 { font-size: 17px; }
.logo-meta .mut { font-size: 13px; margin: 2px 0 12px; }
.logo-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-dl {
  display: inline-block; padding: 8px 14px; border-radius: var(--radius-btn);
  border: 1px solid rgba(255, 255, 255, .3); background: transparent;
  color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; cursor: pointer;
  font-family: var(--font-text); transition: background .15s ease, border-color .15s ease;
}
.btn-dl:hover { background: rgba(127, 227, 236, .14); border-color: rgba(127, 227, 236, .5); }
.zip-bar {
  margin-top: 18px; display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.zip-bar h3 { font-size: 18px; }
.btn-primary {
  display: inline-block; padding: 13px 22px; border-radius: var(--radius-btn);
  background: var(--perto-verde-btn); border: none; color: #fff; font-weight: 700; font-size: 15px;
  text-decoration: none; cursor: pointer; font-family: var(--font-text);
  transition: background .15s ease, transform .15s ease;
}
.btn-primary:hover { background: var(--perto-verde-btn-hover); transform: translateY(-1px); }
.aviso { margin-top: 18px; padding: 18px 22px; }
.aviso p { color: var(--perto-gelo-200); font-size: 15px; }
.proibidos {
  list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px 24px;
}
.proibidos li { padding: 6px 0 6px 26px; position: relative; color: var(--perto-gelo-200); font-size: 15px; }
.proibidos li::before { content: "✕"; position: absolute; left: 0; color: #FF8A8A; font-weight: 700; }

/* ===== Produtos: ícones, lockups, selos ===== */
.icon-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 14px;
}
.icon-card { padding: 12px; margin: 0; }
.icon-box {
  background: var(--perto-gelo-50); border-radius: 12px; height: 96px;
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.icon-box.escura { background: var(--perto-bg); border: 1px solid rgba(127, 227, 236, .18); }
/* SVGs oficiais têm tamanho intrínseco pequeno (ex.: 26x31) — precisam escalar */
.icon-box img { width: 100%; height: 100%; object-fit: contain; }
.icon-card figcaption {
  margin-top: 10px; font-size: 14px; font-weight: 600; display: flex;
  flex-direction: column; gap: 3px;
}
.icon-card figcaption span { font-size: 12px; font-weight: 500; color: var(--perto-gelo-400); }
.icon-card figcaption a { color: #7FE3EC; text-decoration: none; }
.icon-card figcaption a:hover { text-decoration: underline; }

.lockup-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 14px; }
.lockup-card {
  margin: 0; padding: 14px; display: flex; flex-direction: column; gap: 12px;
  align-items: flex-start; justify-content: space-between;
}
.lockup-card img { max-width: 100%; height: auto; border-radius: 8px; }

.selo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.selo-card { margin: 0; padding: 14px; text-align: center; }
.selo-card img { width: 100%; max-width: 108px; height: auto; }
.selo-card figcaption {
  margin-top: 10px; font-size: 14px; font-weight: 600; display: flex;
  flex-direction: column; gap: 3px;
}
.selo-card figcaption span { font-size: 12px; font-weight: 500; color: var(--perto-gelo-400); }
.selo-card figcaption a { color: #7FE3EC; text-decoration: none; }
.selo-card figcaption a:hover { text-decoration: underline; }

/* ===== Cores ===== */
.cor-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cor-hero {
  background: var(--c); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-card);
  padding: 26px 22px; min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end;
  gap: 4px; text-align: left; color: #fff; cursor: pointer; font-family: var(--font-text);
  transition: transform .15s ease;
}
.cor-hero:hover { transform: translateY(-2px); }
.cor-nome { font-weight: 800; font-size: 22px; }
.cor-hex { font-family: ui-monospace, Consolas, monospace; font-weight: 600; font-size: 15px; }
.cor-uso { font-size: 13px; opacity: .85; }
.cor-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cor-chip {
  background: var(--c); color: #fff; border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px; padding: 14px 16px; min-width: 150px; flex: 1;
  display: flex; flex-direction: column; gap: 3px; align-items: flex-start;
  font-family: ui-monospace, Consolas, monospace; font-size: 14px; font-weight: 600; cursor: pointer;
  text-align: left; transition: transform .15s ease;
}
.cor-chip:hover { transform: translateY(-2px); }
.cor-chip span { font-family: var(--font-text); font-size: 12px; font-weight: 600; opacity: .85; }
.contraste { margin-top: 18px; }
.contraste summary { cursor: pointer; font-weight: 700; font-size: 16px; }
.contraste-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 18px; }
.contraste-cols h4 { margin-bottom: 10px; }
.contraste-cols ul { list-style: none; }
.contraste-cols li { padding: 5px 0; color: var(--perto-gelo-200); font-size: 15px; }
.contraste-cols p { margin-top: 10px; font-size: 14px; }

/* ===== Tipografia ===== */
.spec { display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: center; margin-bottom: 14px; }
.spec-meta h3 { font-size: 16px; }
.spec-meta .mut { font-size: 13px; margin-top: 4px; }
.demo-kicker { font-weight: 600; font-size: 15px; letter-spacing: .18em; text-transform: uppercase; color: var(--perto-lima-clara); }
.demo-headline { font-weight: 800; font-size: clamp(24px, 3.4vw, 38px); letter-spacing: -.01em; line-height: 1.15; }
.demo-corpo { color: var(--perto-gelo-200); max-width: 560px; }
.demo-display { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3.6vw, 40px); }
.demo-lockup { display: flex; align-items: center; gap: 14px; }
.lockup-tile {
  width: 58px; height: 58px; border-radius: 14px; background: #fff; display: inline-flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.lockup-tile img { width: 44px; height: 44px; }
.lockup-nome { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1; display: inline-flex; flex-direction: column; }
.lockup-nome small { align-self: flex-end; font-size: 15px; font-weight: 600; color: var(--perto-ciano); margin-top: 2px; }

/* ===== Componentes ===== */
.comp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.comp-demo h3 { margin-bottom: 10px; font-size: 18px; }
.comp-demo p { color: var(--perto-gelo-200); font-size: 15px; margin-bottom: 14px; }
.comp-botoes { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-outline {
  padding: 12px 20px; border-radius: var(--radius-btn); background: transparent;
  border: 1px solid rgba(255, 255, 255, .32); color: #fff; font-weight: 600; font-size: 15px;
  cursor: pointer; font-family: var(--font-text);
}
.btn-outline:hover { background: rgba(255, 255, 255, .08); }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--glass-border); background: rgba(11, 90, 106, .3);
  font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
}
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--perto-lima-clara); }
.btn-copy-bloco {
  padding: 10px 16px; border-radius: var(--radius-btn); border: 1px solid rgba(255, 255, 255, .3);
  background: transparent; color: #fff; font-weight: 600; font-size: 14px; cursor: pointer;
  font-family: var(--font-text);
}
.btn-copy-bloco:hover { background: rgba(127, 227, 236, .14); }

/* ===== Acervo ===== */
.acervo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.acervo-card h3 { font-size: 17px; margin-bottom: 12px; color: var(--perto-lima-clara); }
.acervo-card ul { list-style: none; }
.acervo-card li { padding: 6px 0; font-size: 15px; }
.copy-inline {
  background: none; border: none; color: var(--perto-gelo-200); font: inherit; cursor: pointer;
  text-align: left; padding: 2px 4px; border-radius: 6px;
}
.copy-inline:hover { color: #fff; background: rgba(127, 227, 236, .12); }

/* ===== Footer ===== */
.rodape { border-top: 1px solid rgba(127, 227, 236, .12); padding: 40px 0 56px; text-align: center; }
.rodape img { margin-bottom: 14px; }
.rodape p { font-size: 14px; color: var(--perto-gelo-200); }
.rodape .mut { margin-top: 6px; font-size: 13px; }

/* ===== Toast ===== */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--perto-gelo-50); color: var(--perto-ink); font-weight: 700; font-size: 15px;
  padding: 12px 22px; border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .4);
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 60;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== Responsivo ===== */
@media (max-width: 860px) {
  .marca-grid, .tom-grid, .pilares, .cor-hero-grid, .comp-grid, .contraste-cols { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr; gap: 10px; }
  .hero { padding: 64px 0 52px; }
  .section { padding: 52px 0; }
  .marca-tabela dl .row { grid-template-columns: 1fr; gap: 4px; }
  .topbar-title { display: none; }
  .topbar-divider { display: none; }
}
