/* ============================================================
   MAARTORI — como-funciona v1 (repaginação editorial)
   Padrão visual v2.1 (Fraunces + sage).
   Isola overrides visuais desta página — não mexe em components.css.
   ============================================================ */

/* ---------------- MENU FLUTUANTE (pílula glass-blur) ----------------
   Copiado do home.css pra página funcionar sem importar home.css.
   Mantém a anatomia da home. */
.floatnav {
  position: fixed;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 8px 8px 22px;
  background: rgba(15,17,20,0.55);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  box-shadow:
    0 12px 40px rgba(15,17,20,0.30),
    0 2px 8px rgba(15,17,20,0.15);
  max-width: calc(100vw - 32px);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.floatnav-logo {
  font-family: var(--font);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-l);
  padding-right: 18px;
  margin-right: 6px;
  position: relative;
  flex-shrink: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.floatnav-logo::after {
  content: '';
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 22px;
  background: rgba(255,255,255,0.20);
}
.floatnav-links { display: flex; align-items: center; gap: 2px; }
.floatnav-link {
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.floatnav-link:hover { background: var(--sage-15); color: var(--white); text-shadow: none; }
.floatnav-link[aria-current="page"] { background: var(--sage-d); color: var(--white); text-shadow: none; }
.floatnav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  background: var(--sage-d);
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 10px rgba(74,85,50,0.40);
}
.floatnav-cta:hover {
  background: var(--sage);
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(74,85,50,0.50);
}
.floatnav-cta i { font-size: 14px; }
.floatnav-hamburger { display: none; }
.floatnav--on-light {
  background: var(--deep);
  border-color: rgba(255,255,255,0.08);
  box-shadow:
    0 12px 40px rgba(15,17,20,0.25),
    0 2px 8px rgba(15,17,20,0.10);
}
@media (max-width: 960px) {
  .floatnav { padding: 8px 8px 8px 16px; top: 14px; }
  .floatnav-logo { font-size: 15px; padding-right: 12px; }
  .floatnav-logo::after { display: none; }
  .floatnav-links { display: none; }
  .floatnav-cta { display: none; }
  .floatnav-hamburger {
    display: flex;
    align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background: var(--deep); color: var(--white);
    border: none; border-radius: 50%;
    font-size: 18px; cursor: pointer;
  }
  .cf-hero { min-height: 100svh; }
}

/* ---------------- SPLASH — desliga em mobile (repaginado v2) ---------------- */
@media (max-width: 768px) {
  .splash { display: none !important; }
}

/* ---------------- FOOTER — neutralizado. Padrão governado por components.css ---------------- */
.ft-link { transition: color 0.2s ease, padding-left 0.2s ease; }
.ft-link:hover { color: var(--sage-l); padding-left: 4px; }

/* ---------- HERO ---------- */
.cf-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--deep);
  color: var(--on-dark);
  overflow: hidden;
}
.cf-hero-img {
  position: absolute; inset: 0;
  background-image: url('/assets/img/hero.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.cf-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,17,20,0.55) 0%, rgba(15,17,20,0.78) 100%),
    radial-gradient(ellipse at 70% 30%, rgba(151,165,121,0.18), transparent 60%);
  z-index: 1;
}
.cf-hero > .container { position: relative; z-index: 2; text-align: center; }
.cf-hero .label { color: var(--sage-l); justify-content: center; }
.cf-hero .label .label-dot { background: var(--sage-l); }
.cf-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--white);
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-3);
  text-wrap: balance;
}
.cf-hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--sage-l);
}
.cf-hero p.lead {
  font-size: clamp(16px, 1.3vw, 20px);
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  max-width: 78ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

/* ---------- PLANOS — 4 cards horizontais ---------- */
.cf-planos-section { padding: var(--space-6) 0; background: var(--surface); }
.cf-planos-section .section-header,
.cf-comp-section .section-header,
.cf-faq-section .section-header {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 720px;
}
.cf-flow-section .section-header {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 720px;
}
.cf-planos-section .section-header .label,
.cf-flow-section .section-header .label,
.cf-comp-section .section-header .label,
.cf-faq-section .section-header .label {
  justify-content: center;
}
.cf-planos-section .section-header h2,
.cf-flow-section .section-header h2,
.cf-comp-section .section-header h2,
.cf-faq-section .section-header h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 8px;
}
.cf-planos-section .section-header p.label { color: var(--accent); }

/* Grid de 4 cards horizontais (modelo Casa Verona) — cards mais largos para acomodar CTA em 1 linha */
.cf-planos-section .container { max-width: 1440px; }
.cf-plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: var(--space-4);
}
.cf-plan {
  position: relative;
  display: flex; flex-direction: column;
  padding: 32px 24px 26px;
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: 18px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.cf-plan:hover {
  transform: scale(1.05);
  border-color: var(--sage-d);
  box-shadow: 0 12px 32px rgba(74,85,50,0.18);
}
/* Plano destaque — Plano 01 Modelo */
.cf-plan.cf-plan--featured {
  background: var(--sage-d);
  border-color: var(--sage-d);
  color: var(--white);
  padding-top: 44px;
}
.cf-plan--featured:hover {
  box-shadow: 0 16px 40px rgba(74,85,50,0.30);
}
.cf-plan-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  background: var(--white);
  color: var(--sage-d);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cf-plan-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 96;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 10px;
}
.cf-plan-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.cf-plan--featured .cf-plan-name { font-size: 28px; }
.cf-plan-desc {
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 22px;
  opacity: 0.85;
}
.cf-plan-price {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "opsz" 96;
  font-size: 32px;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.cf-plan-price-prefix {
  display: block;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 2px;
  line-height: 1.4;
}
.cf-plan--featured .cf-plan-price { font-size: 38px; }
.cf-plan-price-cents {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  vertical-align: super;
}
.cf-plan-parcela {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 18px;
  opacity: 0.85;
}
.cf-plan-prazo {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding: 8px 12px;
  background: var(--sage-15);
  border-radius: 999px;
  color: var(--sage-d);
}
.cf-plan--featured .cf-plan-prazo {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}
.cf-plan-prazo i { font-size: 14px; }
.cf-plan-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
}
.cf-plan-list li {
  display: flex; align-items: flex-start; gap: 8px;
}
.cf-plan-list i {
  font-size: 16px;
  color: var(--sage-d);
  flex-shrink: 0;
  margin-top: 1px;
}
.cf-plan--featured .cf-plan-list i { color: var(--sage-l); }
.cf-plan-cta {
  margin-top: auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  text-align: center;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: 1.5px solid var(--sage-d);
  background: transparent;
  color: var(--sage-d);
}
.cf-plan-cta:hover {
  background: var(--sage-d);
  color: var(--white);
  transform: scale(1.02);
}
.cf-plan--featured .cf-plan-cta {
  background: var(--white);
  color: var(--sage-d);
  border-color: var(--white);
  animation: btnPulse 1.6s ease-in-out infinite;
}
.cf-plan--featured .cf-plan-cta:hover {
  background: var(--sage-l);
  border-color: var(--sage-l);
  color: var(--deep);
}
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.5); }
  50%      { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
}

/* ---------- FLOW — widget de abas interativo ---------- */
.cf-flow-section { padding: var(--space-6) 0; background: var(--white); }
.cf-flow-section .section-header { margin-bottom: var(--space-3); }

.cf-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
}
.cf-tab {
  padding: 12px 22px;
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: 999px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.cf-tab:hover {
  border-color: var(--sage-d);
  color: var(--sage-d);
}
.cf-tab[aria-selected="true"] {
  background: var(--sage-d);
  border-color: var(--sage-d);
  color: var(--white);
}
.cf-panel {
  display: none;
  padding: 28px 32px 26px;
  background: var(--white);
  border: 1.5px solid var(--sage-30);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(74,85,50,0.10);
  animation: cfPanelIn 0.4s ease;
}
.cf-panel.is-active { display: block; }
@keyframes cfPanelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.cf-panel-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1.5px dashed var(--sage-30);
  text-align: center;
}
.cf-panel-meta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-d);
  background: var(--sage-15);
  padding: 6px 14px;
  border-radius: 999px;
}
.cf-panel-meta i { font-size: 13px; }
.cf-panel-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.015em;
  color: var(--deep);
  line-height: 1.1;
  margin: 0;
}
.cf-panel-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}
.cf-panel-step {
  flex: 0 1 320px;
  padding: 18px 14px 16px;
  border: 1.5px solid var(--gray-100);
  border-radius: 14px;
  transition: border-color 0.25s ease, transform 0.25s ease;
  text-align: center;
}
.cf-panel-step:hover {
  border-color: var(--sage-d);
  transform: translateY(-3px);
}
.cf-panel-step-num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "opsz" 144;
  font-size: 64px;
  line-height: 0.85;
  color: var(--sage-d);
  margin-bottom: 8px;
}
.cf-panel-step h3 {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--deep);
  margin-bottom: 6px;
  line-height: 1.3;
}
.cf-panel-step p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--gray-700);
}

/* ---------- COMPARATIVO (tabela) ---------- */
.cf-comp-section { padding: var(--space-6) 0; background: var(--surface); }
.cf-comp-section .section-header { margin-bottom: var(--space-3); }
.cf-comp-section .section-header h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.cf-comp-section .section-header p.label { color: var(--accent); }

.cf-comp-table-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid var(--gray-100);
  background: var(--white);
}
.cf-comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.cf-comp-table thead th {
  background: var(--sage-d);
  color: var(--white);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 18px;
  text-align: left;
  border-left: 1px dashed rgba(255,255,255,0.25);
}
.cf-comp-table thead th:first-child {
  background: var(--deep);
  border-left: none;
}
.cf-comp-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px dashed var(--sage-30);
  border-left: 1px dashed var(--sage-30);
  color: var(--gray-700);
  vertical-align: middle;
}
.cf-comp-table tbody tr:last-child td { border-bottom: 1px dashed var(--sage-30); }
.cf-comp-table tbody tr:nth-child(even) td { background: var(--sage-15); }
.cf-comp-table td:first-child { border-left: none; }
.cf-comp-table td.hl {
  font-weight: 600;
  color: var(--deep);
}
.cf-comp-table td.criterio {
  font-weight: 600;
  color: var(--deep);
  background: var(--white) !important;
  width: 22%;
}
.cf-comp-table .ok { color: var(--sage-d); font-size: 18px; }
.cf-comp-table .no { color: var(--gray-300); font-size: 18px; }

/* ---------- DIFERENCIAIS (3 caixas com ícones atravessando borda) ---------- */
.cf-dif-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: calc(var(--space-4) + 25px);
}
.cf-dif {
  position: relative;
  padding: 44px 24px 28px;
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: 18px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.cf-dif:hover {
  border-color: var(--sage-d);
  box-shadow: 0 12px 32px rgba(74,85,50,0.14);
  transform: translateY(-3px);
}
.cf-dif:hover .cf-dif-icon {
  top: -22px;
  color: var(--sage-d);
  border-color: var(--sage-d);
}
.cf-dif-icon {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: 50%;
  font-size: 24px;
  color: var(--gray-700);
  transition: top 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.cf-dif h3 {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--deep);
  margin-bottom: 6px;
  text-align: center;
  line-height: 1.3;
}
.cf-dif p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--gray-700);
  text-align: center;
}

/* ---------- FAQ ---------- */
.cf-faq-section { padding: var(--space-6) 0; background: var(--white); }
.cf-faq-section .container { max-width: 860px; }
.cf-faq-section .section-header { margin-bottom: var(--space-4); }
.cf-faq-section .section-header h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
/* Respostas do FAQ alinhadas à esquerda (override do text-align: center herdado) */
.cf-faq-section .faq-a,
.cf-faq-section .faq-a div,
.cf-faq-section .faq-a-inner { text-align: left; }

/* ---------- CTA FINAL — paridade com a home ---------- */
.cf-cta-final { padding: var(--space-6) 0; background: var(--deep); }
.cf-cta-final .container { position: relative; }
.cf-cta-final .cta-band {
  border-radius: 24px;
  background: #1f2024;
  border: 2px solid var(--sage-d);
  color: var(--white);
  padding: var(--space-7) var(--space-6);
  position: relative; overflow: hidden;
  max-width: 980px;
  margin: 0 auto;
  transition: transform 0.4s ease, border-color 0.4s ease, border-width 0.4s ease, box-shadow 0.4s ease;
}
.cf-cta-final .cta-band::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
}
.cf-cta-final .cta-band:hover {
  transform: scale(1.02);
  border-color: var(--sage);
  border-width: 3px;
  box-shadow:
    0 0 90px 0 rgba(110,123,82,0.65),
    0 0 0 1px rgba(110,123,82,0.35);
}
.cf-cta-final .cta-band .label { margin-bottom: 16px; color: var(--sage-l); }
.cf-cta-final .cta-band h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-size: var(--text-h1);
  line-height: var(--lh-heading);
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 16px;
  text-wrap: balance;
}
.cf-cta-final .cta-band p {
  color: var(--on-dark-secondary);
  font-size: 15px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.cf-cta-final .cta-band-btns {
  margin-top: 32px;
  gap: 16px;
}
.cf-cta-final .cta-band .btn { padding: 16px 30px; font-size: 15px; }
.cf-cta-final .cta-band .btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.cf-cta-final .cta-band .btn-outline:hover {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-color: rgba(255,255,255,0.6);
  transform: scale(1.05);
}
.cf-cta-final .btn-primary {
  animation: btnPulse 1.6s ease-in-out infinite;
  transform: none;
  box-shadow: 0 4px 18px rgba(74,85,50,0.30);
}
.cf-cta-final .btn-primary:hover {
  animation: btnPulseFast 0.7s ease-in-out infinite;
  box-shadow: 0 10px 30px rgba(74,85,50,0.50);
}

/* ---------- RESPONSIVO ---------- */
@media (max-width: 960px) {
  .cf-plans { grid-template-columns: repeat(2, 1fr); }
  .cf-panel-step { flex-basis: calc(50% - 9px); }
  .cf-dif-grid { grid-template-columns: 1fr; }
  .cf-comp-table { font-size: 13px; }
  .cf-comp-table thead th,
  .cf-comp-table tbody td { padding: 10px 12px; }
}
@media (max-width: 640px) {
  .cf-plans { grid-template-columns: 1fr; }
  .cf-hero { padding: 100px 0 var(--space-4); }
  .cf-cta-final .cta-band { padding: 32px 22px; }
  .cf-cta-final .cta-band-btns { flex-direction: column; }
  .cf-panel-step { flex-basis: 100%; }
  .cf-tab { padding: 10px 16px; font-size: 13px; }
  /* Tabela vira cards por plano */
  .cf-comp-table thead { display: none; }
  .cf-comp-table, .cf-comp-table tbody, .cf-comp-table tr, .cf-comp-table td {
    display: block; width: 100%;
  }
  .cf-comp-table tr {
    margin-bottom: 12px;
    border: 1.5px solid var(--gray-100);
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
  }
  .cf-comp-table tbody td {
    border-bottom: 1px solid var(--gray-100);
    text-align: right;
    padding-left: 50%;
    position: relative;
  }
  .cf-comp-table tbody td:last-child { border-bottom: none; }
  .cf-comp-table td.criterio {
    width: 100%; text-align: left;
    background: var(--sage-d) !important;
    color: var(--white);
    padding-left: 16px;
  }
  .cf-comp-table td:not(.criterio)::before {
    content: attr(data-plano);
    position: absolute;
    left: 14px;
    width: calc(50% - 20px);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-700);
    text-align: left;
  }
}
