/* ============================================================
   OrdemIA · sales.css — site público (LP, desconto, obrigado,
   termos, privacidade). Usa os tokens e componentes base de
   brand.css (carregar brand.css ANTES deste). Mobile-first:
   a maioria do público chega pelo celular.
   ============================================================ */

/* ===== Topbar pública ===== */

.site-top .topbar-inner { grid-template-columns: auto 1fr auto; }

.site-nav { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--petrol-dark);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.site-nav a:hover { color: var(--green-strong); background: var(--paper); }

.site-actions { display: inline-flex; align-items: center; gap: 8px; justify-self: end; }
.link-quiet { color: var(--petrol-dark); font-size: 13px; font-weight: 900; text-decoration: none; padding: 0 6px; }
.link-quiet:hover { color: var(--green-strong); }

/* Foco de teclado visível (WCAG 2.4.7) — base do site público */
a:focus-visible,
summary:focus-visible,
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--green-strong);
  outline-offset: 2px;
  border-radius: 6px;
}
.button:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
.cta-final .button:focus-visible { outline-color: var(--green); }

/* ===== Seções ===== */

main { display: block; }
.section { padding: 64px 0; }
.section.tight { padding: 44px 0; }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin: 12px 0 0; color: var(--muted); font-size: 17px; }
.section.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ===== Hero ===== */

.hero { padding: 56px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center; }
.hero h1 { font-size: 50px; }
.hero .lead { font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-actions .button { min-height: 50px; padding: 0 22px; }
.trust-line { margin: 16px 0 0; color: var(--muted); font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.trust-line svg { width: 16px; height: 16px; stroke: var(--green-strong); stroke-width: 2; fill: none; flex: 0 0 auto; }

/* Cartão visual do hero (mock da trilha) */
.hero-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 22px;
}
.hero-card .hc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.hero-card .hc-title { font-family: var(--display); font-weight: 900; color: var(--petrol-dark); font-size: 15px; }
.hc-goal {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 10px; background: #fbfdfc; padding: 12px 14px; margin-bottom: 10px;
}
.hc-goal.done { border-color: rgba(0,185,120,.35); background: var(--soft-green); }
.hc-num { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--soft-blue); color: var(--navy); font-weight: 900; font-size: 13px; }
.hc-goal.done .hc-num { background: var(--green); color: #fff; }
.hc-goal strong { font-size: 13px; color: var(--petrol-dark); font-weight: 800; }
.hc-goal span { font-size: 11px; color: var(--muted); display: block; }
.hc-bar { height: 8px; border-radius: 8px; background: var(--soft-green); overflow: hidden; margin-top: 14px; }
.hc-bar span { display: block; height: 100%; width: 25%; background: linear-gradient(90deg, var(--green), var(--lime)); }
.hc-cap { margin-top: 8px; font-size: 11px; color: var(--muted); font-weight: 800; }

/* ===== Comparação Antes / Com o OrdemIA ===== */

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare-col { border: 1px solid var(--line); border-radius: 12px; padding: 22px; background: var(--paper); }
.compare-col.before { background: #fbfafa; }
.compare-col.after { border-color: rgba(0,185,120,.35); background: var(--soft-green); }
.compare-col h3 { margin-bottom: 12px; }
.compare-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.compare-col li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 15px; color: var(--ink); }
.compare-col li svg { width: 18px; height: 18px; stroke-width: 2.4; fill: none; margin-top: 2px; }
.compare-col.before li svg { stroke: var(--red); }
.compare-col.after li svg { stroke: var(--green-strong); }

/* ===== Passos ===== */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); padding: 22px; box-shadow: var(--shadow-card); }
.step-num { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--petrol-dark); color: #fff; font-family: var(--display); font-weight: 900; margin-bottom: 14px; }
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* ===== Features (o que tem dentro) ===== */

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); padding: 24px; box-shadow: var(--shadow-card); }
.feature-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--soft-green); margin-bottom: 16px; }
.feature-icon svg { width: 24px; height: 24px; stroke: var(--green-strong); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* ===== Público (para quem é / não é) ===== */

.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.aud-col { border: 1px solid var(--line); border-radius: 12px; padding: 24px; background: var(--paper); }
.aud-col h3 { margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.aud-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.aud-col li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 15px; }
.aud-col li svg { width: 18px; height: 18px; stroke-width: 2.4; fill: none; margin-top: 2px; }
.aud-col.yes li svg { stroke: var(--green-strong); }
.aud-col.no li svg { stroke: var(--muted); }

/* ===== Depoimento / prova social ===== */

.testimonial { border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow-card); padding: 32px; max-width: 760px; margin: 0 auto; text-align: center; }
.testimonial blockquote { margin: 0 0 16px; font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.4; color: var(--petrol-dark); }
.testimonial cite { color: var(--muted); font-style: normal; font-weight: 800; font-size: 14px; }
.seal { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; border: 1px solid rgba(0,185,120,.35); background: var(--soft-green); color: var(--green-strong); border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 900; }
.seal svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2.2; fill: none; }

/* ===== Planos ===== */

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; max-width: 920px; margin: 0 auto; }
.plan { border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow-card); padding: 26px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--green); box-shadow: var(--shadow); }
.plan-tag { align-self: flex-start; margin-bottom: 14px; }
.plan h3 { font-size: 20px; }
.plan .price { font-family: var(--display); font-weight: 900; color: var(--petrol-dark); font-size: 34px; margin: 10px 0 2px; }
.plan .price small { font-size: 14px; color: var(--muted); font-weight: 800; }
.plan .price-note { color: var(--muted); font-size: 13px; font-weight: 700; margin-bottom: 18px; }
.plan ul { margin: 0 0 22px; padding: 0; list-style: none; display: grid; gap: 11px; }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 14px; }
.plan li svg { width: 18px; height: 18px; stroke: var(--green-strong); stroke-width: 2.4; fill: none; margin-top: 1px; }
.plan .button { margin-top: auto; }
.plans-note { max-width: 920px; margin: 18px auto 0; color: var(--muted); font-size: 13px; text-align: center; }

/* ===== Faixa de desconto por story ===== */

.promo-band { border: 1px solid rgba(103,71,255,.3); background: var(--soft-violet); border-radius: 16px; padding: 28px 32px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.promo-band h3 { margin-bottom: 6px; }
.promo-band p { margin: 0; color: var(--muted); font-size: 15px; }
.promo-band .button { background: var(--violet); border-color: var(--violet); }

/* ===== FAQ (sem JS, via <details>) ===== */

.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-family: var(--display); font-weight: 800; color: var(--petrol-dark); font-size: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--green-strong); font-weight: 700; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .faq-a { padding: 0 22px 20px; color: var(--muted); font-size: 15px; line-height: 1.7; }

/* ===== CTA final (faixa escura) ===== */

.cta-final { background: var(--petrol-dark); color: #fff; border-radius: 20px; padding: 48px 40px; text-align: center; }
.cta-final h2 { color: #fff; max-width: 620px; margin: 0 auto; }
.cta-final p { color: rgba(255,255,255,.78); max-width: 560px; margin: 14px auto 26px; font-size: 17px; }
.cta-final .hero-actions { justify-content: center; }
.cta-final .button.secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.cta-final .signature { margin-top: 26px; color: rgba(255,255,255,.6); font-size: 13px; font-weight: 800; }

/* ===== Rodapé ===== */

.site-footer { border-top: 1px solid var(--line); background: var(--paper); padding: 40px 0 32px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.footer-brand .brand-tagline { font-size: 13px; margin-top: 8px; max-width: 280px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: flex-end; }
.footer-links a { color: var(--petrol-dark); font-size: 14px; font-weight: 800; text-decoration: none; }
.footer-links a:hover { color: var(--green-strong); }
.footer-base { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; }

/* ===== Marcador de pendência de negócio [DEFINIR] ===== */

.define {
  background: var(--soft-gold);
  color: #8a6516;
  border: 1px dashed rgba(197,151,56,.6);
  border-radius: 6px;
  padding: 0 6px;
  font-weight: 800;
  font-size: .92em;
}

/* ===== Páginas internas: desconto / obrigado / legais ===== */

.narrow { width: min(760px, calc(100% - 40px)); margin: 0 auto; }
.page-hero { padding: 48px 0 8px; }
.page-hero .lead { font-size: 17px; }

.card-panel { border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow-card); padding: 28px; }
.steps-mini { display: grid; gap: 12px; margin: 0 0 26px; padding: 0; list-style: none; counter-reset: s; }
.steps-mini li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; font-size: 15px; }
.steps-mini li::before { counter-increment: s; content: counter(s); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: var(--petrol-dark); color: #fff; font-family: var(--display); font-weight: 900; }

.notice { display: grid; grid-template-columns: 22px 1fr; gap: 12px; border-radius: 12px; padding: 16px 18px; font-size: 14px; }
.notice svg { width: 20px; height: 20px; stroke-width: 2; fill: none; margin-top: 2px; }
.notice.tip { background: var(--soft-green); border: 1px solid rgba(0,185,120,.3); }
.notice.tip svg { stroke: var(--green-strong); }
.notice.info { background: var(--soft-blue); border: 1px solid rgba(11,46,89,.18); }
.notice.info svg { stroke: var(--navy); }

.success-box { display: none; }
.form-sent .form-fields { display: none; }
.form-sent .success-box { display: block; }

.check-line { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink); }
.check-line input { margin-top: 3px; }

/* Páginas legais (termos / privacidade) */
.legal { max-width: 800px; margin: 0 auto; }
.legal h2 { font-size: 22px; margin: 32px 0 10px; }
.legal h2:first-of-type { margin-top: 8px; }
.legal p, .legal li { color: var(--ink); font-size: 15px; line-height: 1.75; }
.legal ul { padding-left: 20px; }
.legal .updated { color: var(--muted); font-size: 13px; font-weight: 800; }

/* ===== Responsivo ===== */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-card { order: -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 720px) {
  .section { padding: 48px 0; }
  .hero h1 { font-size: 38px; }
  h2 { font-size: 28px; }
  .site-nav { display: none; }
  .compare, .audience, .steps, .features { grid-template-columns: 1fr; }
  .promo-band { grid-template-columns: 1fr; }
  .cta-final { padding: 36px 22px; }
  .footer-base { flex-direction: column; }
  .brand-tagline { display: none; }
  .site-top .brand-lock { min-width: 0; }
}

@media (max-width: 460px) {
  .hero h1 { font-size: 32px; }
  .hero-actions .button { width: 100%; }
  .card-panel, .cta-final, .testimonial { padding: 22px; }
  .hero-actions { gap: 10px; }
}
