/* ============================================================
   AcheiPet — apresentação para vendedores e parceiros
   Mesmo sistema visual do produto: tokens, fontes e regras de
   DESIGN.md (Landing page/site/DESIGN.md). Ver README.md desta
   pasta para como abrir, navegar e editar.
   ============================================================ */

@font-face {
  font-family: "Baloo 2";
  src: url("fonts/baloo2-variable.woff2") format("woff2-variations"), url("fonts/baloo2-variable.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/atkinson-variable.woff2") format("woff2-variations"), url("fonts/atkinson-variable.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibmplexmono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibmplexmono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --paper: #fbf5eb;
  --paper-2: #f3e9d8;
  --ink: #10294a;
  --ink-2: #536176;
  --brand: #014881;
  --brand-deep: #01355f;
  --bright: #1886dd;
  --sun: #f28c28;
  --line: rgba(16, 41, 74, 0.14);
  --line-strong: rgba(16, 41, 74, 0.28);
  --white: #ffffff;
  --font-display: "Baloo 2", "Trebuchet MS", sans-serif;
  --font-body: "Atkinson Hyperlegible Next", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", Menlo, Consolas, monospace;

  --slide-w: 1280px;
  --slide-h: 720px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--font-body);
  overflow: hidden;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Motor de slides: um palco de tamanho fixo, escalado para caber
   na janela (como um projetor). Todo o texto usa px fixos por
   dentro do palco, então o tamanho relativo nunca varia. ── */

#stage {
  position: relative;
  width: var(--slide-w);
  height: var(--slide-h);
  transform-origin: center center;
  flex: none;
}

.slide {
  position: absolute;
  inset: 0;
  width: var(--slide-w);
  height: var(--slide-h);
  background: var(--paper);
  display: none;
  flex-direction: column;
  padding: 64px 88px;
  overflow: hidden;
}

.slide.is-active { display: flex; }

.slide[data-variant="brand"] { background: var(--brand); color: var(--white); }
.slide[data-variant="paper2"] { background: var(--paper-2); }
.slide[data-variant="ink"] { background: var(--ink); color: var(--paper); }

.slide[data-variant="brand"] .ink-2,
.slide[data-variant="ink"] .ink-2 { color: rgba(251, 245, 235, 0.72); }

/* ── Tipografia ── */

.kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 14px;
}
.slide[data-variant="brand"] .kicker,
.slide[data-variant="ink"] .kicker { color: var(--sun); }

h1.title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 56px;
  line-height: 1.03;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
h2.title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.06;
  margin: 0 0 16px;
}
h3.title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.15;
  margin: 0 0 8px;
}
p.lede {
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 60ch;
  margin: 0 0 8px;
}
.slide[data-variant="brand"] p.lede,
.slide[data-variant="ink"] p.lede { color: rgba(251, 245, 235, 0.82); }

p.body { font-size: 17px; line-height: 1.55; color: var(--ink-2); margin: 0; }
.slide[data-variant="brand"] p.body,
.slide[data-variant="ink"] p.body { color: rgba(251, 245, 235, 0.78); }

.ink-2 { color: var(--ink-2); }
.mono { font-family: var(--font-mono); }
.center { text-align: center; }

/* ── Layout utilitário ── */

.slide-head { flex: none; }
.slide-body { flex: 1; min-height: 0; display: flex; }
.slide-foot { flex: none; }

.row { display: flex; align-items: center; gap: 12px; }
.col { display: flex; flex-direction: column; }
.grow { flex: 1; min-width: 0; }
.gap-l { display: flex; flex-direction: column; gap: 44px; }

.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; width: 100%; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; width: 100%; }
.cols-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; width: 100%; }

/* ── Componentes ── */

.brand-mark { display: flex; align-items: center; gap: 12px; }
.brand-mark img { width: 34px; height: 34px; object-fit: contain; }
.brand-mark span { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
}
.slide[data-variant="brand"] .card { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); }
.slide[data-variant="ink"] .card { background: rgba(251, 245, 235, 0.06); border-color: rgba(251, 245, 235, 0.16); }

.card-2 { background: var(--paper-2); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--brand);
  border: 1px solid var(--line);
}
.badge.on-brand { background: rgba(255, 255, 255, 0.14); color: var(--white); border-color: rgba(255, 255, 255, 0.3); }
.badge.sun { background: rgba(242, 140, 40, 0.14); color: #a35415; border-color: rgba(242, 140, 40, 0.4); }

.icon-tile {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--paper-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: var(--brand);
}
.icon-tile svg { width: 26px; height: 26px; }
.slide[data-variant="brand"] .icon-tile { background: rgba(255, 255, 255, 0.14); color: var(--white); }
.slide[data-variant="ink"] .icon-tile { background: rgba(251, 245, 235, 0.1); color: var(--sun); }

.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.stat {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 64px;
  line-height: 1;
  color: var(--brand);
}
.slide[data-variant="brand"] .stat { color: var(--white); }
.stat-label { font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); letter-spacing: 0.04em; margin-top: 6px; }
.slide[data-variant="brand"] .stat-label { color: rgba(255, 255, 255, 0.7); }

ul.check { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
ul.check li { display: flex; align-items: flex-start; gap: 12px; font-size: 17px; line-height: 1.45; }
ul.check li svg { flex: none; width: 22px; height: 22px; margin-top: 3px; color: var(--brand); }
.slide[data-variant="brand"] ul.check li svg,
.slide[data-variant="ink"] ul.check li svg { color: var(--sun); }

ul.cross { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
ul.cross li { display: flex; align-items: flex-start; gap: 12px; font-size: 17px; line-height: 1.45; color: var(--ink-2); }
ul.cross li svg { flex: none; width: 22px; height: 22px; margin-top: 3px; color: #c0392b; }

.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 26px;
  display: block;
}
.photo-frame { border-radius: 26px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 48px -24px rgba(16, 41, 74, 0.35); }

.product-shot { display: flex; align-items: center; justify-content: center; height: 100%; }
.product-shot img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 24px 32px rgba(16, 41, 74, 0.18)); }

table.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
table.compare th, table.compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.compare thead th { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); font-weight: 500; }
table.compare th:first-child, table.compare td:first-child { width: 30%; font-weight: 700; font-family: var(--font-display); }
table.compare td.yes { color: var(--brand); font-weight: 700; }
table.compare td.no { color: var(--ink-2); }
table.compare tbody tr:last-child th, table.compare tbody tr:last-child td { border-bottom: none; }

.quote {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.3;
  max-width: 44ch;
}
.quote::before { content: "“"; }
.quote::after { content: "”"; }
.quote-by { font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); margin-top: 16px; text-transform: uppercase; letter-spacing: 0.06em; }

.logos-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; flex-wrap: wrap; }
.logos-row img { height: 30px; width: auto; object-fit: contain; opacity: 0.82; filter: grayscale(1); }

/* ── Mockup de telefone (perfil público) ── */
.phone {
  width: 260px;
  height: 100%;
  max-height: 560px;
  background: var(--ink);
  border-radius: 40px;
  padding: 14px;
  box-shadow: 0 30px 60px -24px rgba(16, 41, 74, 0.45);
  flex: none;
}
.phone-screen {
  background: var(--paper);
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone-photo { height: 42%; background: var(--paper-2); position: relative; }
.phone-photo img { width: 100%; height: 100%; object-fit: cover; }
.phone-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.phone-name { font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.phone-sub { font-family: var(--font-mono); font-size: 10px; color: var(--brand); text-transform: uppercase; letter-spacing: 0.05em; }
.phone-btn { margin-top: 6px; background: var(--brand); color: var(--white); border-radius: 999px; padding: 10px; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 13px; }
.phone-btn.ghost { background: transparent; border: 1px solid var(--line-strong); color: var(--ink); }
.phone-row { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-2); padding: 6px 0; border-top: 1px solid var(--line); }

/* ── Cartão-conquista (Stories) mockup ── */
.story-card {
  width: 220px;
  aspect-ratio: 9 / 16;
  border-radius: 26px;
  background: linear-gradient(160deg, #01355f 0%, #014881 55%, #1886dd 100%);
  color: #fff;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  box-shadow: 0 30px 60px -24px rgba(16, 41, 74, 0.5);
  flex: none;
}
.story-medal {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe9b8, #f28c28 60%, #a35415 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  color: #5a2e00;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.story-card h4 { font-family: var(--font-display); font-weight: 800; font-size: 21px; line-height: 1.1; margin: 0; }
.story-card p { font-size: 12px; opacity: 0.85; margin: 0; }

/* ── Progresso, contador, navegação ── */

#chrome { position: fixed; inset: 0; pointer-events: none; }

#progress-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: rgba(16, 41, 74, 0.5);
  pointer-events: auto;
  cursor: pointer;
}
#progress-fill { height: 100%; background: var(--sun); transition: width 0.15s ease; }

#hud {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 28px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
#hud-left { display: flex; align-items: center; gap: 10px; pointer-events: auto; }
#hud-chapter {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(251, 245, 235, 0.85);
  background: rgba(16, 41, 74, 0.55);
  backdrop-filter: blur(6px);
  padding: 7px 14px;
  border-radius: 999px;
}
#hud-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(251, 245, 235, 0.85);
  background: rgba(16, 41, 74, 0.55);
  backdrop-filter: blur(6px);
  padding: 7px 12px;
  border-radius: 999px;
}
#hud-right { display: flex; gap: 8px; pointer-events: auto; }
.nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(16, 41, 74, 0.55);
  color: var(--paper);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.nav-btn:hover { background: var(--brand); }
.nav-btn:active { transform: scale(0.94); }
.nav-btn:disabled { opacity: 0.35; cursor: default; }
.nav-btn:disabled:hover { background: rgba(16, 41, 74, 0.55); }
.nav-btn svg { width: 18px; height: 18px; }

#hint {
  position: absolute;
  top: 22px;
  right: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(251, 245, 235, 0.55);
  pointer-events: none;
  transition: opacity 0.4s ease;
}
#hint.hidden { opacity: 0; }

/* ── Escala responsiva: o palco encolhe, o conteúdo por dentro não ── */
@media (max-width: 899px) {
  #hint { display: none; }
}

/* ── Impressão: cada slide vira uma página A4 paisagem ── */
@media print {
  html, body { overflow: visible; background: #fff; }
  #chrome { display: none; }
  #stage { transform: none !important; width: 100%; }
  .slide {
    display: flex !important;
    position: relative;
    width: 100%;
    height: 100vh;
    page-break-after: always;
  }
  @page { size: landscape; margin: 0; }
}
