/* ==========================================================================
   Canal de Ouvidoria — Kiwify
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --accent: #16A34A;
  --accent-dark: #15803D;
  --ink: #141827;
  --paper: #FAFAF9;
  --muted: #6B7280;
  --muted-2: #4B5563;
  --border: #E5E7EB;
  --card-bg: #ffffff;

  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Manrope', var(--font-body);

  --gutter: 40px;          /* espaçamento lateral das seções */
  --section-y: 80px;       /* espaçamento vertical das seções */
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
}

img { max-width: 100%; }

a { text-decoration: none; }

h1, h2, h3 { font-family: var(--font-display); margin: 0; }

/* Links de e-mail longos não estouram a largura em telas pequenas */
a[href^="mailto:"] { overflow-wrap: anywhere; }

/* Foco visível para navegação por teclado */
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.hero a:focus-visible { outline-color: #ffffff; }

/* Link "pular para o conteúdo" (acessibilidade) */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}
.skip-link:focus { top: 16px; }

/* Reset de listas usadas como layout */
.criteria-grid,
.redirect-grid,
.steps-grid {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---------- Header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  height: 88px; border-bottom: 1px solid var(--border);
  padding: 0 var(--gutter);
}
.logo { display: flex; align-items: center; gap: 2px; } /* ícone colado ao texto */
.logo-icon { display: block; height: 40px; width: auto; flex-shrink: 0; }
.logo-text { display: flex; align-items: baseline; gap: 10px; }
.logo-mark { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--accent); }
.logo-sub { font-size: 15px; color: var(--muted); }
.btn-primary {
  background: var(--accent); color: #ffffff; font-size: 14px; font-weight: 700;
  padding: 10px 20px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--accent-dark); }

/* ---------- Hero ---------- */
.hero {
  background: var(--accent);
  display: flex; align-items: center; gap: 56px;
  padding: 64px var(--gutter);
}
.hero-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 56px; width: 100%; }
.hero-text { flex: 1; display: flex; flex-direction: column; gap: 20px; max-width: 560px; container-type: inline-size; }
/* Título em uma linha só: o tamanho acompanha a largura da coluna de texto (cqi) */
.hero-text h1 {
  font-weight: 800; line-height: 1.15; color: #ffffff;
  font-size: clamp(26px, 8vw, 44px);        /* fallback para navegadores antigos */
  font-size: clamp(24px, 10cqi, 44px);
  white-space: nowrap;
}
.hero-tagline { font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 4.5vw, 28px); line-height: 1.25; color: #ffffff; margin: 0; }
.hero-desc { font-size: 16px; line-height: 1.6; color: #ECFDF5; margin: 4px 0 0; }
.hero-cta-row { display: flex; align-items: center; gap: 20px; margin-top: 8px; flex-wrap: wrap; }
.btn-white {
  background: #ffffff; color: var(--accent); font-size: 15px; font-weight: 700;
  padding: 14px 28px; border-radius: 999px; display: inline-flex; align-items: center; gap: 10px;
}
.btn-white svg { flex-shrink: 0; }
.hero-email { font-size: 15px; color: #ffffff; }
.hero-email:hover { text-decoration: underline; }
.hero-phone { margin: 4px 0 0; font-size: 14px; color: #ECFDF5; max-width: 560px; }
.hero-phone strong { color: #ffffff; }
.hero-phone a { color: inherit; white-space: nowrap; }
.hero-photo {
  flex-shrink: 0; width: 460px; height: 420px; overflow: hidden;
  border-radius: 28px;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Propósito ---------- */
.purpose {
  padding: var(--section-y) var(--gutter); display: flex; align-items: center; gap: 56px;
}
.purpose-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 56px; }
.purpose-photo { flex-shrink: 0; width: 380px; height: 380px; overflow: hidden; border-radius: 24px; }
.purpose-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.purpose-text { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.purpose-text h2 { font-weight: 800; font-size: clamp(24px, 4.5vw, 30px); color: var(--ink); }
.purpose-text p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted-2); }
.purpose-text h3 { margin: 12px 0 0; font-weight: 700; font-size: 17px; color: var(--ink); }
.purpose-text ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.purpose-text li { font-size: 15px; line-height: 1.6; color: var(--muted-2); }

/* ---------- Critérios ---------- */
.criteria { padding: var(--section-y) var(--gutter); }
/* Propósito e Critérios têm o mesmo fundo: sem isso os paddings somam (160px).
   Zerar o topo deixa o espaço igual ao das demais transições entre seções. */
.purpose + .criteria { padding-top: 0; }
.criteria-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.criteria-head { max-width: 640px; }
.criteria-head h2 { font-weight: 800; font-size: clamp(24px, 4.5vw, 30px); color: var(--ink); margin-bottom: 12px; }
.criteria-head p { margin: 0; font-size: 16px; color: var(--muted); line-height: 1.6; }
.criteria-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.criteria-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px;
  padding: 24px; display: flex; gap: 14px; align-items: flex-start;
}
.criteria-check {
  width: 28px; height: 28px; border-radius: 50%; background: #DCFCE7;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.criteria-card span { font-size: 15px; line-height: 1.5; color: var(--ink); }

/* ---------- Redirecionamento ---------- */
.redirect { background: #F3F4F6; padding: 64px var(--gutter); }
.redirect-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; }
.redirect-head h2 { font-weight: 800; font-size: clamp(22px, 4vw, 26px); color: var(--ink); margin-bottom: 8px; }
.redirect-head p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.6; max-width: 640px; }
.redirect-grid { display: flex; gap: 20px; flex-wrap: wrap; }
.redirect-card {
  flex: 1; min-width: 220px; background: var(--card-bg); border-radius: 14px; padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.redirect-card .label { font-family: var(--font-body); font-size: 14px; font-weight: 700; color: var(--ink); }
.redirect-card a { font-size: 15px; color: var(--accent); font-weight: 600; }
.redirect-card a:hover { text-decoration: underline; }

/* ---------- Etapas ---------- */
.steps { padding: var(--section-y) var(--gutter); }
.steps-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.steps-inner > h2 { font-weight: 800; font-size: clamp(24px, 4.5vw, 30px); color: var(--ink); }
.steps-grid { display: flex; gap: 24px; flex-wrap: wrap; }
.step { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 14px; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #ffffff;
  font-family: var(--font-display); font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.step-title { font-family: var(--font-body); font-size: 16px; font-weight: 700; color: var(--ink); }
.step-desc { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ---------- Banner CTA ---------- */
.cta-banner {
  background: var(--ink); padding: 56px var(--gutter); display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 20px;
}
.cta-banner-inner { max-width: 1200px; margin: 0 auto; width: 100%; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.cta-title { font-weight: 800; font-size: clamp(20px, 4vw, 24px); color: #ffffff; }
.cta-sub { font-size: 15px; color: #9CA3AF; margin: 6px 0 0; }
.btn-cta {
  background: var(--accent); color: #ffffff; font-size: 15px; font-weight: 700;
  padding: 14px 28px; border-radius: 999px; white-space: nowrap;
}
.btn-cta:hover { background: var(--accent-dark); }

/* ---------- Footer ---------- */
.site-footer {
  background: #12141C; padding: 40px var(--gutter); display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.site-footer-inner { max-width: 1200px; margin: 0 auto; width: 100%; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.copyright { margin: 0; font-size: 13px; color: #6B7280; max-width: 720px; line-height: 1.6; }
.footer-logo { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: #ffffff; }

/* ==========================================================================
   Responsividade
   ========================================================================== */

/* Notebooks / tablets em paisagem */
@media (max-width: 1100px) {
  .hero-inner, .purpose-inner { gap: 40px; }
  .hero-photo { width: 380px; height: 380px; }
  .purpose-photo { width: 320px; height: 320px; }
}

/* Tablets em retrato */
@media (max-width: 900px) {
  :root { --gutter: 20px; --section-y: 64px; }

  .hero-inner, .purpose-inner { flex-direction: column; align-items: stretch; }
  .hero-text { max-width: none; }
  .hero-photo, .purpose-photo { width: 100%; height: 280px; border-radius: 20px; }
  .criteria-grid { grid-template-columns: 1fr; }
  .redirect-grid, .steps-grid { flex-direction: column; }
  .redirect-card, .step { min-width: 0; }

  /* Reordenação das imagens no layout em coluna:
     o bloco de texto "se desfaz" (display: contents) e seus itens passam
     a ser ordenados junto com a foto, sem alterar o HTML. */

  /* Hero: foto logo abaixo de "Sua voz, nossa prioridade!" */
  .hero-inner { gap: 20px; container-type: inline-size; } /* container para o título (cqi) */
  .hero-text { display: contents; }
  .hero-text h1   { order: 1; }
  .hero-tagline   { order: 2; }
  .hero-photo     { order: 3; margin: 8px 0; }
  .hero-desc      { order: 4; }
  .hero-cta-row   { order: 5; }
  .hero-phone     { order: 6; }

  /* Propósito: foto logo abaixo do título da seção */
  .purpose-inner { gap: 20px; }
  .purpose-text { display: contents; }
  .purpose-text h2 { order: 1; }
  .purpose-photo   { order: 2; margin: 4px 0; }
  .purpose-text p,
  .purpose-text h3,
  .purpose-text ul { order: 3; }
}

/* Celulares */
@media (max-width: 600px) {
  :root { --section-y: 56px; }

  .site-header { height: 72px; }
  .logo-mark { font-size: 20px; }
  .logo-sub { font-size: 14px; }
  .logo-icon { height: 35px; }
  .btn-primary { padding: 9px 16px; font-size: 13px; }

  .hero { padding-top: 48px; padding-bottom: 48px; }
  .hero-cta-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .btn-white { justify-content: center; }
  .hero-email { text-align: center; }
  .hero-photo, .purpose-photo { height: 240px; }

  .criteria-inner, .steps-inner { gap: 32px; }
  .criteria-card, .redirect-card { padding: 20px; }

  .redirect { padding-top: 48px; padding-bottom: 48px; }

  .cta-banner { padding-top: 48px; padding-bottom: 48px; }
  .btn-cta { width: 100%; text-align: center; }

  .site-footer-inner { flex-direction: column-reverse; align-items: flex-start; }
}

/* Telas muito estreitas (≤ 360px) */
@media (max-width: 360px) {
  .logo-text { flex-direction: column; gap: 0; }
  .btn-primary { padding: 8px 14px; }
}