/* =============================================================
   AGBSoluções — landing institucional (apex)
   Herda o design system PediZape: verde da marca, Bricolage +
   Outfit, Phosphor, tema claro. Estático: sem build, sem rede
   externa — fontes e ícones self-hosted.
   ============================================================= */

/* ---------- fontes (self-hosted, extraídas do build da marca) ---------- */
@font-face {
  font-family: 'Bricolage Grotesque Variable';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/bricolage-grotesque-latin-wght-normal-DLoelf7F.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit Variable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/outfit-latin-wght-normal-Bc-8i84L.woff2') format('woff2');
}
@font-face {
  font-family: 'Phosphor';
  font-weight: 400;
  font-style: normal;
  font-display: block;
  src: url('/assets/fonts/Phosphor-DtdjzkpE.woff2') format('woff2');
}
@font-face {
  font-family: 'Phosphor-Bold';
  font-weight: 400;
  font-style: normal;
  font-display: block;
  src: url('/assets/fonts/Phosphor-Bold-BCak21uZ.woff2') format('woff2');
}

/* ---------- ícones Phosphor (codepoints do pacote oficial) ---------- */
.ph {
  font-family: 'Phosphor' !important;
  speak: never;
  font-style: normal;
  font-weight: 400;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  display: inline-block;
  -webkit-font-smoothing: antialiased;
}
.ph-b { font-family: 'Phosphor-Bold' !important; }
.ph.ph-arrow-right::before { content: "\e001"; }
.ph.ph-battery-high::before { content: "\e002"; }
.ph.ph-caret-left::before { content: "\e003"; }
.ph.ph-chat-circle-dots::before { content: "\e004"; }
.ph.ph-check-circle::before { content: "\e005"; }
.ph.ph-code::before { content: "\e006"; }
.ph.ph-dots-three-vertical::before { content: "\e007"; }
.ph.ph-envelope-simple::before { content: "\e008"; }
.ph.ph-globe::before { content: "\e009"; }
.ph.ph-hand-heart::before { content: "\e00a"; }
.ph.ph-lightning::before { content: "\e00b"; }
.ph.ph-plug::before { content: "\e00c"; }
.ph.ph-rocket-launch::before { content: "\e00d"; }
.ph.ph-sparkle::before { content: "\e00e"; }
.ph.ph-whatsapp-logo::before { content: "\e00f"; }
.ph.ph-wifi-high::before { content: "\e010"; }

/* ---------- tokens (da marca) ---------- */
:root {
  --bg: #ffffff;
  --surface: #f2f8f4;
  --surface-2: #e8f4ec;
  --ink: #0a1c16;
  --muted: #4c6058;
  --deep: #075e54;
  --deep-strong: #054c44;
  --green: #25d366;
  --green-soft: #e3f7ea;
  --border: #dee9e2;
  --focus: #0e8c74;

  --font-display: 'Bricolage Grotesque Variable', 'Outfit Variable', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Outfit Variable', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --radius-panel: 16px;
  --radius-btn: 12px;
  --radius-phone: 42px;

  --shadow-sm: 0 1px 2px rgba(7, 94, 84, 0.05), 0 6px 18px -8px rgba(7, 94, 84, 0.12);
  --shadow-md: 0 2px 6px rgba(7, 94, 84, 0.05), 0 18px 44px -18px rgba(7, 94, 84, 0.2);
  --shadow-phone: 0 32px 72px -28px rgba(7, 94, 84, 0.45), 0 16px 36px -20px rgba(4, 42, 36, 0.35);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg { display: block; }

::selection { background: rgba(37, 211, 102, 0.28); }

:where(a, button):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.container { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 200;
  background: var(--deep);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-btn) var(--radius-btn);
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 0; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  padding: 14px 22px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-out), background 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.btn .ph { font-size: 0.95em; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--deep);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--deep-strong); }

.btn-secondary {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--focus); }

/* nav: compacto, uma linha, altura <= 80px */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-word-dim { font-weight: 400; color: var(--muted); }
.btn-nav { padding: 10px 16px; font-size: 0.95rem; background: var(--deep); color: #fff; }
.btn-nav:hover { background: var(--deep-strong); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  font-size: 0.95rem;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: var(--radius-btn);
  transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.nav-link:hover { color: var(--deep); background: var(--surface); }

/* ---------- hero (split: copy + mock real da marca) ---------- */
.hero { padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 8vw, 104px); }
.hero-inner {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 15ch;
  margin-bottom: 22px;
}
.hero-sub {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 34px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* selo da marca — hero corporativo (sem mock de produto) */
.hero-visual { justify-self: center; display: grid; place-items: center; }
.seal {
  position: relative;
  width: min(300px, 74vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, var(--green-soft) 0%, rgba(227, 247, 234, 0.35) 45%, transparent 72%);
}
.seal-mark { width: 46%; filter: drop-shadow(0 24px 48px rgba(7, 94, 84, 0.35)); }
.seal-ring {
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  border: 1.5px dashed rgba(37, 211, 102, 0.5);
  animation: seal-spin 26s linear infinite;
}
@keyframes seal-spin { to { transform: rotate(360deg); } }

/* ---------- phone mock (reprodução do componente PhoneMockup) ---------- */
.hero-visual { justify-self: center; }
.phone {
  width: min(320px, 82vw);
  background: var(--ink);
  border-radius: var(--radius-phone);
  padding: 10px;
  box-shadow: var(--shadow-phone);
}
.phone-screen {
  background: var(--bg);
  border-radius: calc(var(--radius-phone) - 8px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 540px;
  font-size: 0.8rem;
}
.statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 22px 4px;
  font-size: 0.68rem;
  color: var(--muted);
}
.sb-icons { display: inline-flex; gap: 5px; }
.sb-icons .ph { font-size: 0.72rem; color: var(--ink); }

.chat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 10px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.chat-header .ph-caret-left { color: var(--muted); font-size: 0.9rem; }
.chat-header .ph-dots-three-vertical { margin-left: auto; color: var(--muted); font-size: 0.9rem; }
.chat-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green-soft);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  flex: none;
}
.chat-title { display: flex; flex-direction: column; line-height: 1.25; }
.chat-title strong { font-size: 0.82rem; }
.chat-title small { color: var(--muted); font-size: 0.64rem; }

.chat-body {
  flex: 1;
  padding: 14px 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background:
    radial-gradient(rgba(7, 94, 84, 0.035) 1px, transparent 1px) 0 0 / 18px 18px,
    var(--bg);
  overflow: hidden;
}
.msg { display: flex; }
.msg .bubble {
  max-width: 82%;
  padding: 8px 11px;
  border-radius: 12px;
  border-bottom-left-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  line-height: 1.45;
}
.msg time { display: block; font-size: 0.58rem; color: var(--muted); text-align: right; margin-top: 4px; }
.msg.me { justify-content: flex-end; }
.msg.me .bubble {
  background: var(--green-soft);
  border-color: rgba(37, 211, 102, 0.35);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 4px;
}
.menu-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.menu-title {
  padding: 7px 11px;
  font-weight: 600;
  font-size: 0.78rem;
  background: var(--surface-2);
}
.menu-row { padding: 8px 11px; color: var(--muted); border-top: 1px solid var(--border); }
.menu-row-strong { color: var(--deep); font-weight: 600; }
.pix-card {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: var(--deep);
  color: #fff;
  border-radius: 12px;
  padding: 10px 22px;
  margin: 4px 0;
  box-shadow: var(--shadow-sm);
}
.pix-label { display: inline-flex; align-items: center; gap: 6px; font-size: 0.64rem; opacity: 0.92; }
.pix-total { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }

/* mock agora vive na faixa do produto (prova de portfólio) */
.band-visual { justify-self: center; }
.band-visual .phone { width: min(280px, 78vw); }
.band-visual .phone-screen { height: 500px; }

/* ---------- seções ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-lede { color: var(--muted); max-width: 56ch; margin-bottom: 48px; }

/* bento: célula-âncora verde profunda + 3 claras (variação real) */
.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.bento-cell {
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  padding: 32px 30px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.bento-cell:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.bento-lead {
  background: var(--deep);
  border-color: var(--deep);
  color: #fff;
}
.bento-lead:hover { background: var(--deep-strong); border-color: var(--deep-strong); }
.bento-icon {
  font-size: 1.5rem;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--deep);
  flex: none;
}
.bento-lead .bento-icon { background: rgba(255, 255, 255, 0.16); color: #fff; }
.bento-cell h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.01em;
}
.bento-cell p { color: var(--muted); font-size: 0.98rem; }
.bento-lead p { color: rgba(255, 255, 255, 0.88); }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-weight: 600;
  color: var(--deep);
  border-bottom: 2px solid rgba(37, 211, 102, 0.4);
  padding-bottom: 2px;
  transition: gap 0.25s var(--ease-out);
}
.link-arrow:hover { gap: 10px; }
.bento-lead .link-arrow { color: #fff; border-bottom-color: rgba(255, 255, 255, 0.45); }
/* célula tintida (produto PediZape) — variação de fundo sem sair da paleta */
.bento-whats { background: var(--green-soft); border-color: rgba(37, 211, 102, 0.35); }
.bento-whats .bento-icon { background: var(--bg); color: var(--deep); }
.bento-whats:hover { background: var(--surface-2); border-color: rgba(37, 211, 102, 0.5); }

/* faixa do produto */
.band { background: var(--surface); padding: clamp(56px, 8vw, 96px) 0; }
.band-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.band-copy h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.8vw, 2.15rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: 14px;
}
.band-copy p { color: var(--muted); max-width: 52ch; }
.band-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 30px; }
.band-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.99rem;
}
.band-list .ph { color: var(--focus); font-size: 1.15rem; margin-top: 2px; }

/* como funciona: passos, sem caixas */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
}
.step { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 2px solid var(--green-soft); }
.step:nth-child(2) { border-top-color: rgba(37, 211, 102, 0.45); }
.step:nth-child(3) { border-top-color: var(--green); }
.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--focus);
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}
.step p { color: var(--muted); font-size: 0.98rem; }

/* contato: faixa verde profunda (mesma família, tema travado) */
.contact { background: var(--deep); padding: clamp(72px, 9vw, 112px) 0; }
.contact-inner {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  color: #fff;
}
.contact-icon { font-size: 2.2rem; color: var(--green); }
.contact h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.contact p { color: rgba(255, 255, 255, 0.88); max-width: 48ch; }
.btn-invert { background: #fff; color: var(--deep-strong); margin-top: 8px; }
.btn-invert:hover { background: var(--green-soft); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 40px 0 48px; }
.footer-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 40px;
}
.footer-links { display: flex; gap: 24px; margin-left: auto; }
.footer-links a { color: var(--muted); font-size: 0.95rem; transition: color 0.2s var(--ease-out); }
.footer-links a:hover { color: var(--deep); }
.footer-copy { color: var(--muted); font-size: 0.85rem; }

/* ---------- reveal (JS opcional; sem JS tudo visível) ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); }
.js-reveal .reveal.in { opacity: 1; transform: none; transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }

/* ---------- responsivo ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1, .hero-sub { max-width: 100%; }
  .hero-visual { order: 2; }
  .band-inner { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-links { margin-left: 0; }
}
@media (max-width: 520px) {
  /* mobile: nav enxuta — marca + CTA (PediZape aparece no hero) */
  .nav-link { display: none; }
}
@media (max-width: 480px) {
  .btn-nav { padding: 9px 12px; font-size: 0.88rem; }
  .section-lede { margin-bottom: 36px; }
  .phone-screen { height: 460px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}
