/* ==========================================================================
   ROTEIRO PERFEITO — Landing page do Guia Completo de Santiago
   Design system: azul + branco + cinza claro + azul clarinho, vermelho só em destaques.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/Inter-Variable.woff2") format("woff2");
}

:root {
  --blue: #2952e3;
  --blue-dark: #1d3ec2;
  --blue-light: #eaf0ff;
  --blue-light-2: #dde8ff;
  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-faint: #94a3b8;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --border: #e2e8f0;
  --red: #e11d2e;
  --red-light: #fdeaec;
  --green: #16a34a;
  --green-light: #e7f7ec;
  --gold: #f5b400;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  /* escala de espaçamento — usar sempre estes tokens, nunca valores soltos */
  --sp-1: 8px;
  --sp-2: 12px;
  --sp-3: 16px;
  --sp-4: 24px;
  --sp-5: 32px;
  --sp-6: 48px;
  --sp-7: 64px;
  --sp-8: 96px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.14);
  --shadow-mockup: 0 2px 6px rgba(15, 23, 42, 0.10), 0 24px 56px -12px rgba(15, 23, 42, 0.28);

  --wrap: 1180px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 76px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0 0 1em; color: var(--ink-soft); }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--sp-4); }
.wrap--narrow { max-width: 820px; }

/* ---------- Ícones ---------- */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-3);
  padding-bottom: var(--sp-3);
}
.brand { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--blue); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--blue-dark); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--ink-faint); background: var(--gray-50); }
.hero .btn--ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.55); }
.hero .btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }
.btn--sm { padding: 9px 18px; font-size: 0.9rem; }
.btn--lg { padding: 15px 28px; font-size: 1rem; }
.btn--xl { padding: 18px 40px; font-size: 1.1rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); margin-top: var(--sp-5); }
.btn-row__note { font-size: 0.85rem; color: var(--ink-faint); }

/* ---------- Eyebrow / títulos de seção ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--sp-2);
}
.eyebrow--light { color: #cfe0ff; }
.section__title { font-size: clamp(1.6rem, 3.2vw, 2.3rem); max-width: 42em; }
.section__lead { font-size: 1.08rem; max-width: 42em; margin-bottom: var(--sp-5); }
.section__head { margin-bottom: var(--sp-6); }

.section { padding: var(--sp-8) 0; }
.section--gray { background: var(--gray-50); }
.section--blue { background: var(--blue-light); }
@media (max-width: 720px) {
  .section { padding: var(--sp-6) 0; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8, 13, 28, 0.25) 0%, rgba(8, 13, 28, 0.55) 55%, rgba(6, 10, 22, 0.88) 100%),
    linear-gradient(90deg, rgba(6, 10, 22, 0.35) 0%, rgba(6, 10, 22, 0) 45%);
}
.hero__content { position: relative; z-index: 2; padding-top: 150px; padding-bottom: var(--sp-7); }
.hero__title { font-size: clamp(2.1rem, 5vw, 3.6rem); max-width: 17em; color: var(--white); text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25); }
.hero__subtitle { font-size: 1.18rem; max-width: 38em; color: #e9eefb; margin-bottom: var(--sp-5); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-6); }

/* ---------- Preço com desconto ---------- */
.price-tag { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: var(--sp-4); }
.price-tag__old { text-decoration: line-through; font-size: 1.05rem; color: var(--ink-faint); }
.price-tag__new { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.price-tag__badge { background: var(--red); color: var(--white); font-size: 0.78rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; letter-spacing: 0.02em; }
.price-tag--light .price-tag__old { color: rgba(255, 255, 255, 0.55); }
.price-tag--light .price-tag__new { color: var(--white); }

.countdown-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--red);
  background: var(--red-light);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: var(--sp-4);
}
.countdown-tag__icon { width: 15px; height: 15px; flex-shrink: 0; }
.countdown-tag .countdown-timer { font-variant-numeric: tabular-nums; }
.countdown-tag--light { background: rgba(225, 29, 46, 0.18); color: #ffd7da; }
.hero__badges { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(4px);
}
.badge__icon { width: 14px; height: 14px; color: var(--gold); }

@media (max-width: 640px) {
  .hero { min-height: 600px; }
  .hero__content { padding-top: 100px; }
}

/* ==========================================================================
   CARD BASE — usado por todos os grupos de cards da página
   ========================================================================== */
.card-base {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-5);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.card-base:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: #d3ddf0; }

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--blue-light);
  color: var(--blue);
  margin-bottom: var(--sp-4);
}
.icon-badge svg { width: 24px; height: 24px; }
.icon-badge--red { background: var(--red-light); color: var(--red); }
.icon-badge--green { background: var(--green-light); color: var(--green); }

/* ==========================================================================
   PROBLEMA
   ========================================================================== */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.problem-card h3 { font-size: 1.15rem; margin-bottom: var(--sp-1); }
.problem-card p { margin: 0; font-size: 0.97rem; }
@media (max-width: 860px) { .problem-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   SOLUÇÃO
   ========================================================================== */
.solution { display: grid; grid-template-columns: 400px 1fr; gap: var(--sp-7); align-items: center; }
.solution__media {
  position: relative;
  perspective: 1200px;
}
.solution__media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-mockup);
  transform: rotate(-2deg);
  transition: transform 0.3s ease;
}
.solution__media:hover img { transform: rotate(0deg) scale(1.02); }
.check-list { margin: var(--sp-4) 0 var(--sp-5); }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
  color: var(--ink-soft);
}
.check-list__icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--green); margin-top: 2px; }
@media (max-width: 860px) {
  .solution { grid-template-columns: 1fr; }
  .solution__media { max-width: 320px; margin: 0 auto; }
}

/* ==========================================================================
   ESTATÍSTICAS — "O que você recebe"
   ========================================================================== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); margin-bottom: var(--sp-6); }
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-5) var(--sp-4);
  text-align: center;
}
.stat-card__number { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; color: var(--blue); letter-spacing: -0.03em; line-height: 1; margin-bottom: var(--sp-2); }
.stat-card__label { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 860px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

.recebe-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-2) var(--sp-5); max-width: 56em; }
.recebe-list li { display: flex; align-items: center; gap: var(--sp-2); font-weight: 600; color: var(--ink); padding: var(--sp-2) 0; border-bottom: 1px dashed var(--border); }
.recebe-list__icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--green); }
@media (max-width: 640px) { .recebe-list { grid-template-columns: 1fr; } }

/* ==========================================================================
   FEATURE GRID (conteúdo completo)
   ========================================================================== */
.content-pills { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.content-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}
.content-pill svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; }
@media (max-width: 560px) {
  .content-pill { padding: 9px 14px; font-size: 0.85rem; }
  .content-pill svg { width: 16px; height: 16px; }
}

/* ==========================================================================
   CARROSSEL — "Veja algumas páginas"
   ========================================================================== */
.carousel { position: relative; margin: 0 calc(var(--sp-4) * -1); padding: 0 var(--sp-4); }
.carousel__track {
  display: flex;
  gap: var(--sp-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: var(--sp-3) var(--sp-2) var(--sp-6);
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__item {
  flex: 0 0 auto;
  width: 300px;
  scroll-snap-align: start;
}
.carousel__frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-mockup);
  margin-bottom: var(--sp-3);
}
.carousel__frame img {
  transition: transform 0.4s ease;
}
.carousel__item:hover .carousel__frame img { transform: scale(1.06); }
.carousel__caption { text-align: center; font-size: 0.95rem; font-weight: 600; color: var(--ink-soft); }
.carousel__nav {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}
.carousel__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.carousel__btn:hover { background: var(--blue-light); box-shadow: var(--shadow-sm); }
.carousel__btn svg { width: 20px; height: 20px; }
.carousel__btn--prev svg { transform: rotate(90deg); }
.carousel__btn--next svg { transform: rotate(-90deg); }

@media (max-width: 640px) {
  .carousel__item { width: 220px; }
}

/* ==========================================================================
   PARA QUEM É
   ========================================================================== */
.audience-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-3); }
.audience-card {
  text-align: center;
  padding: var(--sp-5) var(--sp-3);
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
}
.audience-card h3 { font-size: 1rem; margin-bottom: var(--sp-1); color: var(--ink); }
.audience-card p { font-size: 0.88rem; margin: 0; }
@media (max-width: 980px) { .audience-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .audience-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   TABELA COMPARATIVA
   ========================================================================== */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--white); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare-table th, .compare-table td { padding: var(--sp-3) var(--sp-4); text-align: left; font-size: 0.95rem; vertical-align: middle; }
.compare-table thead th {
  background: var(--gray-100);
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}
.compare-table thead th:nth-child(3) { background: var(--green); color: var(--white); }
.compare-table tbody td { border-bottom: 1px solid var(--border); color: var(--ink-soft); }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody td:first-child { font-weight: 600; color: var(--ink); }
.compare-table td:nth-child(3) { background: var(--green-light); border-left: 2px solid var(--green); border-right: 2px solid var(--green); }
.compare-table tbody tr:last-child td:nth-child(3) { border-bottom: 2px solid var(--green); }
.compare-table tbody td:nth-child(3) { color: var(--ink); font-weight: 600; }

@media (max-width: 640px) {
  .table-wrap { overflow-x: visible; border: none; background: transparent; }
  .compare-table { min-width: 0; }
  .compare-table thead { display: none; }
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table td { display: block; width: 100%; }
  .compare-table tbody tr {
    margin-bottom: var(--sp-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
  }
  .compare-table tbody tr:last-child { margin-bottom: 0; }
  .compare-table tbody td:first-child {
    background: var(--gray-100);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: var(--sp-2) var(--sp-3);
  }
  .compare-table tbody td:nth-child(2), .compare-table tbody td:nth-child(3) { padding: var(--sp-3); }
  .compare-table tbody td:last-child { border-bottom: none; }
  .compare-table td:nth-child(3) { border-left: none; border-right: none; }
}
.compare-cell { display: flex; align-items: center; gap: 8px; }
.compare-cell__icon { width: 18px; height: 18px; flex-shrink: 0; }
.compare-cell__icon--ok { color: var(--green); }
.compare-cell__icon--bad { color: var(--red); }

/* ==========================================================================
   POR QUE CONFIAR
   ========================================================================== */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); margin-bottom: var(--sp-6); }
.trust-item p { margin: 0; font-size: 0.95rem; }
@media (max-width: 860px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .trust-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   O QUE NÃO COBRE
   ========================================================================== */
.x-list { max-width: 46em; }
.x-list li { display: flex; align-items: flex-start; gap: var(--sp-2); margin-bottom: var(--sp-3); color: var(--ink-soft); }
.x-list__icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--red); margin-top: 3px; }

/* ==========================================================================
   GARANTIA
   ========================================================================== */
.guarantee__inner { display: grid; grid-template-columns: 160px 1fr; gap: var(--sp-6); align-items: center; }
.guarantee-badge {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.guarantee-badge svg { width: 34px; height: 34px; margin-bottom: 6px; }
.guarantee-badge strong { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.guarantee-badge span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.85; }
@media (max-width: 640px) { .guarantee__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

/* ==========================================================================
   FAQ / ACORDEÃO
   ========================================================================== */
.accordion__item { border-bottom: 1px solid var(--border); }
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  background: none;
  border: none;
  text-align: left;
  padding: var(--sp-4) 4px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.accordion__chevron { width: 20px; height: 20px; flex-shrink: 0; color: var(--ink-faint); transition: transform 0.2s ease; }
.accordion__trigger[aria-expanded="true"] .accordion__chevron { transform: rotate(180deg); color: var(--blue); }
.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.accordion__panel p { padding: 0 4px var(--sp-4); margin: 0; }
.accordion__item.is-open .accordion__panel { max-height: 600px; }

/* ==========================================================================
   CTA FINAL
   ========================================================================== */
.cta-final { background: var(--ink); color: var(--white); text-align: center; }
.cta-final__inner { display: flex; flex-direction: column; align-items: center; }
.cta-final__title { color: var(--white); font-size: clamp(1.7rem, 3.5vw, 2.5rem); max-width: 20em; }
.cta-final__subtitle { color: #cbd5e1; max-width: 34em; margin-bottom: var(--sp-5); }
.cta-final__note { color: #94a3b8; font-size: 0.85rem; margin: var(--sp-4) 0 0; }

/* ==========================================================================
   CTA FIXO MOBILE
   ========================================================================== */
.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(100%);
  transition: transform 0.25s ease;
  display: none;
}
.mobile-cta.is-visible { transform: translateY(0); }
.mobile-cta__price { text-align: center; font-size: 0.82rem; color: var(--ink-soft); margin: 0 0 8px; }
.mobile-cta__price s { color: var(--ink-faint); }
.mobile-cta__price strong { color: var(--ink); font-weight: 800; }
@media (max-width: 720px) {
  .mobile-cta { display: block; }
  body { padding-bottom: 108px; }
}

/* ==========================================================================
   RODAPÉ
   ========================================================================== */
.footer-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-5);
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-5);
}
.footer-trust__item { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); }
.footer-trust__item svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; }

.site-footer { background: var(--gray-50); border-top: 1px solid var(--border); padding: var(--sp-6) 0 var(--sp-5); }
.site-footer__inner { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); text-align: center; }
.brand--footer { color: var(--ink); }
.site-footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-4); }
.site-footer__nav a { font-size: 0.9rem; color: var(--ink-soft); }
.site-footer__nav a:hover { color: var(--blue); }
.site-footer__copy { font-size: 0.82rem; color: var(--ink-faint); margin: 0; }
