/* ==========================================================================
   LANDING — Folhinha Forense, estrutura "Régua da perícia" (v1.1.109)
   Carregado depois do <style> embutido de index.html. Mesma paleta do app
   (DESIGN.md): casca azul-tinta, papel claro, vermelho só para vencido.
   ========================================================================== */

:root {
  --rp-ink: #13233f;
  --rp-ink-2: #1b2f52;
  --rp-primary: #1e3a6b;
  --rp-blue: #2a62c9;
  --rp-ground: #f6f7f9;
  --rp-surface: #ffffff;
  --rp-line: #e2e5ea;
  --rp-text: #14171c;
  --rp-muted: #4f5866;
  --rp-on-ink: #ffffff;
  --rp-on-ink-muted: #c9d3e6;
  --rp-red: #c8261f;
  --rp-amber: #9a6212;
  --rp-amber-on-ink: #e7b766;
  --rp-green: #1f7a4d;
  --rp-done-on-ink: #9dbbf0;
  --rp-font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --rp-mono: "Cascadia Mono", Consolas, ui-monospace, "SF Mono", monospace;

  /* variáveis antigas da landing apontam para a paleta nova */
  --bg-dark: var(--rp-ground);
  --bg-card: var(--rp-surface);
  --bg-card-hover: var(--rp-surface);
  --border-color: var(--rp-line);
  --border-glow: var(--rp-line);
  --primary: var(--rp-primary);
  --primary-hover: #16305a;
  --secondary: var(--rp-blue);
  --text-main: var(--rp-text);
  --text-muted: var(--rp-muted);
  --text-glow: transparent;
  --accent-gradient: var(--rp-primary);
  --cyan-gradient: var(--rp-blue);
}

body {
  background: var(--rp-ground);
  color: var(--rp-text);
  font-family: var(--rp-font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--rp-font); letter-spacing: -0.015em; }
::selection { background: #e6ecf6; color: var(--rp-ink); }
:focus-visible { outline: 2px solid var(--rp-blue); outline-offset: 2px; }
.bg-decor { display: none; }

/* ---------- Cabeçalho ---------- */
header {
  background: var(--rp-surface);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid var(--rp-line);
  padding: 14px 5%;
}
.logo { color: var(--rp-text); font-family: var(--rp-font); font-weight: 700; font-size: 18px; letter-spacing: 0; }
.logo img { box-shadow: none !important; }
.logo-text { background: none; -webkit-text-fill-color: currentColor; color: var(--rp-text); }
.nav-links { gap: 26px; }
.nav-links a { color: var(--rp-muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--rp-text); }
.btn-header,
.mobile-menu .btn-header {
  background: var(--rp-ink) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  padding: 9px 16px !important;
  font-weight: 600;
}
.btn-header:hover { background: var(--rp-primary) !important; transform: none; }
.hamburger { color: var(--rp-text); }
.mobile-menu { background: var(--rp-surface); border-bottom: 1px solid var(--rp-line); }
.mobile-menu a { color: var(--rp-text); }

/* ---------- Botões ---------- */
.btn-primary, .btn-secondary, .btn-pricing {
  border-radius: 6px !important;
  box-shadow: none !important;
  font-family: var(--rp-font);
  font-weight: 600;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--rp-primary); color: #fff; border: 0; }
.btn-primary:hover { background: #16305a; transform: none; box-shadow: none; }
.btn-secondary { background: var(--rp-surface); color: var(--rp-text); border: 1px solid var(--rp-line); }
.btn-secondary:hover { background: var(--rp-ground); transform: none; }

/* ---------- Hero: faixa azul-tinta com a régua da perícia ---------- */
.hero {
  background: var(--rp-ink);
  color: var(--rp-on-ink);
  text-align: left;
  max-width: none;
  margin: 0;
  padding: 136px max(5%, calc((100% - 1200px) / 2)) 72px;
  align-items: stretch;
}
.badge-hero {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .22);
  color: var(--rp-on-ink-muted);
  box-shadow: none;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.hero h1 {
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  max-width: 920px;
  color: #fff;
  background: none;
  -webkit-text-fill-color: currentColor;
  margin: 18px 0 0;
}
.hero p { color: var(--rp-on-ink-muted); font-size: 18px; line-height: 1.55; max-width: 660px; margin: 20px 0 0; }
.hero-ctas { justify-content: flex-start; margin: 32px 0 0; }
.hero .btn-primary { background: #fff; color: var(--rp-ink); }
.hero .btn-primary:hover { background: #e6ecf6; }
.hero .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.hero .btn-secondary:hover { background: rgba(255, 255, 255, .08); }

.pericia-ruler {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 64px 0 0;
  padding: 0;
  font-variant-numeric: tabular-nums;
}
.pericia-ruler li { position: relative; padding-top: 22px; }
.pericia-ruler li::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 8px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .16);
  transform-origin: left;
}
.pericia-ruler li.is-done::before { background: var(--rp-done-on-ink); }
.pericia-ruler li.is-now::before { background: var(--rp-amber-on-ink); }
.pericia-ruler strong { display: block; font-size: 16px; font-weight: 650; color: #fff; margin: 0 0 6px; }
.pericia-ruler p { font-size: 14px; line-height: 1.5; color: var(--rp-on-ink-muted); margin: 0; padding-right: 16px; max-width: none; }
.pericia-ruler .ruler-tag {
  position: absolute;
  top: -26px;
  left: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--rp-ink);
  background: var(--rp-amber-on-ink);
  border-radius: 10px;
  padding: 1px 8px;
}
.ruler-note { margin-top: 18px; font-size: 13px; color: var(--rp-on-ink-muted); }

/* Movimento único: a régua se preenche uma vez ao abrir */
@media (prefers-reduced-motion: no-preference) {
  .pericia-ruler li::before { animation: rp-fill .7s cubic-bezier(.2, .7, .2, 1) both; }
  .pericia-ruler li:nth-child(2)::before { animation-delay: .08s; }
  .pericia-ruler li:nth-child(3)::before { animation-delay: .16s; }
  .pericia-ruler li:nth-child(4)::before { animation-delay: .24s; }
  .pericia-ruler li:nth-child(5)::before { animation-delay: .32s; }
}
@keyframes rp-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Produto em funcionamento (vídeo e painel saem do hero) ---------- */
.product-showcase {
  background: var(--rp-surface);
  border-bottom: 1px solid var(--rp-line);
  padding: 64px max(5%, calc((100% - 1200px) / 2));
}
.product-showcase .hero-visuals { margin: 0; gap: 40px; align-items: center; }
.phone-mockup { box-shadow: 0 18px 40px rgba(19, 35, 63, .18); border-color: var(--rp-ink); }
.phone-mockup::before { background: var(--rp-ink); }
.sound-hint span { color: var(--rp-muted); }
.sound-hint path { stroke: var(--rp-blue); }
.dashboard-mockup {
  background: var(--rp-surface);
  border: 1px solid var(--rp-line);
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(19, 35, 63, .12);
  transform: none !important;
}
.mockup-header { background: var(--rp-ground); border-bottom: 1px solid var(--rp-line); }
.mockup-bar { background: var(--rp-surface); color: var(--rp-muted); border: 1px solid var(--rp-line); }
.mockup-glow { display: none; }

/* ---------- Seções de conteúdo ---------- */
.product-proof, .features, .pricing, .testimonials, .faq { background: transparent; }
.section-header h2, .product-proof-copy h2, .free-resource h2, .cta-container h2 {
  color: var(--rp-text);
  background: none;
  -webkit-text-fill-color: currentColor;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section-header p, .product-proof-copy p, .free-resource p, .cta-container p { color: var(--rp-muted); }
.product-proof-copy .badge-hero { border-color: var(--rp-line); color: var(--rp-muted); }
.product-proof-figure img { border: 1px solid var(--rp-line); border-radius: 10px; box-shadow: 0 12px 32px rgba(19, 35, 63, .10); }
.product-proof-figure figcaption { color: var(--rp-muted); }
.proof-list li { color: var(--rp-text); }
.proof-list .material-symbols-rounded { color: var(--rp-green); }

.feature-card {
  background: var(--rp-surface);
  border: 1px solid var(--rp-line);
  border-radius: 10px;
  box-shadow: none;
}
.feature-card::before { display: none; }
.feature-card:hover { transform: none; border-color: #c9d0da; box-shadow: none; background: var(--rp-surface); }
.feature-card h3 { color: var(--rp-text); font-size: 18px; font-weight: 650; }
.feature-card p { color: var(--rp-muted); }
.feature-icon {
  background: #e6ecf6;
  color: var(--rp-primary);
  border: 0;
  box-shadow: none;
  border-radius: 8px;
}

.free-resource {
  background: var(--rp-ink);
  border: 0;
  border-radius: 10px;
  box-shadow: none;
}
.free-resource h2 { color: #fff; }
.free-resource p { color: var(--rp-on-ink-muted); }
.free-resource .btn-primary { background: #fff; color: var(--rp-ink); }

/* ---------- Preços ---------- */
.pricing-card {
  background: var(--rp-surface);
  border: 1px solid var(--rp-line);
  border-radius: 10px;
  box-shadow: none;
  color: var(--rp-text);
}
.pricing-card:hover { transform: none; box-shadow: 0 12px 32px rgba(19, 35, 63, .10); }
.pricing-card.featured { border: 2px solid var(--rp-primary); background: var(--rp-surface); }
.pricing-card.featured::after { display: none; }
.pricing-card h3 { color: var(--rp-text); }
.pricing-card .desc, .price-period, .price-currency { color: var(--rp-muted); }
.price-value { color: var(--rp-text); background: none; -webkit-text-fill-color: currentColor; font-variant-numeric: tabular-nums; }
.pricing-features li { color: var(--rp-text); }
.pricing-features li span.check { color: var(--rp-green); }
.pricing-badge { background: var(--rp-primary); color: #fff; box-shadow: none; }
.pricing-card.featured .btn-pricing { background: var(--rp-primary); color: #fff; }
.pricing-card:not(.featured) .btn-pricing { background: var(--rp-surface); color: var(--rp-text); border: 1px solid var(--rp-line); }
.toggle-label { color: var(--rp-muted); }
.toggle-label.active { color: var(--rp-text); }
.slider { background: #d5dae2; }
input:checked + .slider { background: var(--rp-primary); }
.pricing-promo {
  background: var(--rp-ink) !important;
  border: 0 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}
.pricing-promo .pricing-promo-icon { color: var(--rp-amber-on-ink) !important; background: rgba(255, 255, 255, .08) !important; }
.pricing-promo button {
  background: #fff !important;
  color: var(--rp-ink) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}
.pricing-trial {
  background: var(--rp-surface) !important;
  border: 1px solid var(--rp-line) !important;
  border-radius: 10px !important;
  color: var(--rp-text) !important;
}
.pricing-trial .material-symbols-rounded { color: var(--rp-green) !important; }
.pricing-trial a { color: var(--rp-primary) !important; }

/* ---------- Depoimentos ---------- */
.testimonial-card {
  background: var(--rp-surface);
  border: 1px solid var(--rp-line);
  border-radius: 10px;
  box-shadow: none;
}
.testimonial-card:hover { transform: none; box-shadow: none; border-color: #c9d0da; }
.testimonial-quote { color: var(--rp-text); }
.testimonial-stars { color: var(--rp-amber); }
.testimonial-info h4 { color: var(--rp-text); }
.testimonial-info p { color: var(--rp-muted); }
.testimonial-avatar { background: #e6ecf6; color: var(--rp-primary); box-shadow: none; }
.testimonial-info h4 span.verified { color: var(--rp-blue); }

/* ---------- Dúvidas ---------- */
.faq-item { background: var(--rp-surface); border: 1px solid var(--rp-line); border-radius: 8px; }
.faq-item.active { border-color: #c9d0da; box-shadow: none; }
.faq-question { color: var(--rp-text); font-family: var(--rp-font); }
.faq-question span.arrow { color: var(--rp-muted); }
.faq-answer { color: var(--rp-muted); }

/* ---------- Chamada final e rodapé ---------- */
.cta-final { background: transparent; }
.cta-container {
  background: var(--rp-ink);
  border: 0;
  border-radius: 10px;
  box-shadow: none;
}
.cta-container h2 { color: #fff; }
.cta-container p { color: var(--rp-on-ink-muted); }
.cta-container .btn-primary { background: #fff; color: var(--rp-ink); }
footer { background: var(--rp-surface); border-top: 1px solid var(--rp-line); color: var(--rp-muted); }
footer a, .footer-links a { color: var(--rp-muted); }
footer a:hover, .footer-links a:hover { color: var(--rp-text); }

/* ---------- Suporte (WhatsApp): discreto, sem brilho ---------- */
.floating-whatsapp-widget { box-shadow: 0 2px 8px rgba(19, 35, 63, .18) !important; }
.floating-whatsapp-widget:hover { box-shadow: 0 4px 12px rgba(19, 35, 63, .22) !important; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .pericia-ruler { grid-template-columns: 1fr; gap: 18px; margin-top: 48px; }
  .pericia-ruler li { padding: 0 0 0 20px; }
  .pericia-ruler li::before { top: 2px; bottom: 2px; left: 0; right: auto; width: 6px; height: auto; transform-origin: top; }
  .pericia-ruler .ruler-tag { position: static; display: inline-block; margin-bottom: 6px; }
  @media (prefers-reduced-motion: no-preference) {
    .pericia-ruler li::before { animation-name: rp-fill-v; }
  }
}
@keyframes rp-fill-v { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (max-width: 600px) {
  .hero { padding: 104px 20px 48px; }
  .hero p { font-size: 16px; }
  .product-showcase { padding: 40px 20px; }
}
.hero .badge-hero { align-self: flex-start; width: auto; }

/* Sem rótulo acima do título: o título carrega a seção */
.section-header .badge-hero,
.product-proof-copy .badge-hero { display: none; }

/* Recursos e especialidades: grade de filetes em vez de cartões iguais */
.features-grid {
  gap: 0 !important;
  border-top: 1px solid var(--rp-line);
  border-left: 1px solid var(--rp-line);
  background: var(--rp-surface);
  border-radius: 10px;
  overflow: hidden;
}
.feature-card {
  border: 0;
  border-right: 1px solid var(--rp-line);
  border-bottom: 1px solid var(--rp-line);
  border-radius: 0;
  padding: 28px 28px 32px;
}
.feature-icon { width: 36px; height: 36px; border-radius: 6px; margin-bottom: 16px; }
.feature-icon .material-symbols-rounded { font-size: 20px; }

.sound-hint span { background: var(--rp-ink); color: #fff; }
.toggle-label.active { color: var(--rp-text); }
.mobile-menu a:hover { color: var(--rp-primary); }
@media (max-width: 900px) {
  .hero-ctas { margin-bottom: 0; }
  .pericia-ruler { margin-top: 36px; }
}
.btn-primary, .btn-secondary { white-space: nowrap; }
.product-proof-figure { box-shadow: none !important; background: transparent !important; }
