/*
  ============================================================
  OrçaFácil — style.css  (Página Comercial)
  ============================================================
  Herda tokens de /main.css: --bg, --bg-soft, --panel,
  --primary, --secondary, --text, --muted, --radius, etc.
  Prefixo de todas as classes: ofc- (OrçaFácil Commercial)
  ============================================================
*/

/* ===== HERO ===== */

.ofc-hero {
  padding: clamp(80px, 12vw, 140px) 0 clamp(60px, 10vw, 120px);
  background:
    radial-gradient(ellipse 70% 60% at 50% -10%, rgba(130, 10, 209, 0.22) 0%, transparent 70%),
    var(--bg);
  text-align: center;
}

.ofc-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.ofc-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(130, 10, 209, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.ofc-hero-title {
  font-size: clamp(3.5rem, 8vw, 7rem) !important;
  font-weight: 900 !important;
  letter-spacing: -0.05em !important;
  line-height: 1 !important;
  margin: 0 0 12px !important;
  background: linear-gradient(135deg, #fff 0%, #d9c3ff 55%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ofc-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 20px;
  letter-spacing: 0.01em;
}

.ofc-hero-lead {
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  color: rgba(251, 247, 255, 0.78);
  max-width: 52ch;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.ofc-hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== PROBLEMA — CONVERSA VISUAL ===== */

.ofc-problema-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* Chat WhatsApp mockup */
.ofc-wpp-chat {
  width: 100%;
  max-width: 420px;
  background: #0e1117;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.ofc-wpp-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #1a2332;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ofc-wpp-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ofc-wpp-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ofc-wpp-nome {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.ofc-wpp-status {
  font-size: 0.72rem;
  color: #25D366;
  font-weight: 500;
}

.ofc-wpp-body {
  padding: 18px;
  background: #0a0e16;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ofc-wpp-bubble {
  background: #1e2d42;
  border-radius: 4px 14px 14px 14px;
  padding: 10px 14px 8px;
  max-width: 82%;
  position: relative;
}

.ofc-wpp-bubble p {
  font-size: 0.9rem;
  color: var(--text);
  margin: 0 0 4px;
  line-height: 1.5;
}

.ofc-wpp-time {
  font-size: 0.68rem;
  color: rgba(215, 200, 236, 0.4);
  display: block;
  text-align: right;
}

/* Seta indicadora */
.ofc-problema-seta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(168, 85, 247, 0.6);
}

.ofc-problema-seta span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}

/* Grid de perguntas */
.ofc-perguntas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 580px;
}

.ofc-pergunta-chip {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(248, 113, 113, 0.06);
  border: 1px solid rgba(248, 113, 113, 0.2);
  color: #fca5a5;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Resultado */
.ofc-resultado-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: 100%;
  max-width: 720px;
}

@media (max-width: 700px) {
  .ofc-resultado-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

.ofc-resultado-card {
  background: rgba(248, 113, 113, 0.04);
  border: 1px solid rgba(248, 113, 113, 0.14);
  border-radius: var(--radius-sm);
  padding: 22px 20px;
  text-align: center;
}

.ofc-resultado-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f87171;
  margin: 0 auto 14px;
}

.ofc-resultado-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 7px;
}

.ofc-resultado-card p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ===== COMO FUNCIONA ===== */

.ofc-steps-grid {
  display: flex;
  align-items: center;
  gap: 16px;
}

@media (max-width: 760px) {
  .ofc-steps-grid {
    flex-direction: column;
    gap: 0;
  }

  .ofc-step-arrow {
    transform: rotate(90deg);
    margin: 8px 0;
  }
}

.ofc-step-card {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ofc-step-card:hover {
  border-color: rgba(168, 85, 247, 0.38);
  box-shadow: var(--shadow-sm);
}

.ofc-step-number {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #820AD1, #A855F7);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ofc-step-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(130, 10, 209, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  margin: 0 auto 18px;
}

.ofc-step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--text);
}

.ofc-step-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.ofc-step-arrow {
  color: rgba(168, 85, 247, 0.35);
  flex-shrink: 0;
}

/* ===== BENEFÍCIOS ===== */

.ofc-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .ofc-benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .ofc-benefits-grid {
    grid-template-columns: 1fr;
  }
}

.ofc-benefit-card {
  background: rgba(130, 10, 209, 0.04);
  border: 1px solid rgba(168, 85, 247, 0.12);
  border-radius: var(--radius-sm);
  padding: 28px 24px;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.ofc-benefit-card:hover {
  background: rgba(130, 10, 209, 0.08);
  border-color: rgba(168, 85, 247, 0.28);
}

.ofc-benefit-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(130, 10, 209, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  margin-bottom: 16px;
}

.ofc-benefit-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}

.ofc-benefit-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* ===== DEMONSTRAÇÃO VISUAL — 4 TELAS ===== */

.ofc-telas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 680px) {
  .ofc-telas-grid {
    grid-template-columns: 1fr;
  }
}

/* Card wrapper */
.ofc-tela-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Área de screenshot / mockup CSS */
.ofc-tela-inner {
  width: 100%;
  background: #120828;
  border: 1px solid rgba(168, 85, 247, 0.18);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  user-select: none;
}

/* Imagem de screenshot real (substitui .ofc-tela-inner quando disponível) */
.ofc-tela-img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(168, 85, 247, 0.18);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  display: block;
}

/* Mini barra de progresso */
.ofc-tela-prog {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.ofc-tp-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(168, 85, 247, 0.18);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.52rem;
  font-weight: 800;
  color: rgba(215, 200, 236, 0.25);
  flex-shrink: 0;
}

.ofc-tp-dot--ativo {
  background: linear-gradient(135deg, #820AD1, #A855F7);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 8px rgba(130, 10, 209, 0.35);
}

.ofc-tp-dot--done {
  background: rgba(130, 10, 209, 0.18);
  border-color: var(--secondary);
  color: var(--secondary);
  font-size: 0.55rem;
}

.ofc-tp-line {
  flex: 1;
  height: 1.5px;
  background: rgba(168, 85, 247, 0.08);
  margin: 0 2px;
}

.ofc-tp-line--done {
  background: rgba(130, 10, 209, 0.35);
}

/* Contador e título da etapa */
.ofc-tela-step-count {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
  margin: 0 0 3px;
}

.ofc-tela-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

/* Campos mockup */
.ofc-tela-fields {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

.ofc-tf-label {
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(215, 200, 236, 0.5);
  margin-bottom: 4px;
}

.ofc-tf-label--mt {
  margin-top: 8px;
}

.ofc-tf-req {
  color: var(--secondary);
}

.ofc-tf-input {
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 0.72rem;
  color: rgba(215, 200, 236, 0.2);
  background: rgba(13, 6, 22, 0.7);
  margin-bottom: 0;
  min-height: 28px;
}

.ofc-tf-input--filled {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.09);
}

.ofc-tf-input--empty {
  color: transparent;
}

/* Radio cards mockup */
.ofc-tf-radios {
  display: flex;
  gap: 6px;
}

.ofc-tf-radio {
  flex: 1;
  padding: 7px 8px;
  border-radius: 7px;
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  background: rgba(13, 6, 22, 0.7);
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(215, 200, 236, 0.35);
  text-align: center;
}

.ofc-tf-radio--sel {
  border-color: var(--secondary);
  background: rgba(130, 10, 209, 0.1);
  color: var(--secondary);
}

/* Select mockup */
.ofc-tf-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  border-radius: 7px;
  padding: 7px 10px;
  background: rgba(13, 6, 22, 0.7);
  font-size: 0.72rem;
  color: var(--text);
}

.ofc-tf-select svg {
  color: rgba(168, 85, 247, 0.5);
  flex-shrink: 0;
}

/* Navegação mockup */
.ofc-tela-nav {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 10px;
}

.ofc-tn-prev {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(215, 200, 236, 0.35);
}

.ofc-tn-next {
  padding: 6px 12px;
  border-radius: 6px;
  background: linear-gradient(135deg, #820AD1, #A855F7);
  font-size: 0.62rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}

/* Tela 4: Resumo — estado de sucesso */
.ofc-tela-success-header {
  text-align: center;
  margin-bottom: 10px;
}

.ofc-tela-success-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #820AD1, #A855F7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin: 0 auto 6px;
  box-shadow: 0 4px 14px rgba(130, 10, 209, 0.3);
}

.ofc-tela-success-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 2px;
  letter-spacing: -0.02em;
}

.ofc-tela-success-sub {
  font-size: 0.62rem;
  color: var(--muted);
  margin: 0;
}

/* Mini resumo dentro da Tela 4 */
.ofc-tela-resumo {
  background: rgba(130, 10, 209, 0.06);
  border: 1px solid rgba(168, 85, 247, 0.12);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.ofc-tr-grupo-titulo {
  font-size: 0.56rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
  margin-bottom: 6px;
}

.ofc-tr-grupo-titulo--mt {
  margin-top: 8px;
}

.ofc-tr-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
}

.ofc-tr-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(215, 200, 236, 0.4);
  white-space: nowrap;
}

.ofc-tr-valor {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

/* Botões de envio na Tela 4 */
.ofc-tela-btns {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ofc-tb-wpp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 10px;
  border-radius: 7px;
  background: linear-gradient(135deg, #128C7E, #25D366);
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
}

.ofc-tb-email {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 7px;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(215, 200, 236, 0.55);
  text-align: center;
}

/* Caption abaixo de cada tela */
.ofc-tela-caption {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* Nota e CTA abaixo das telas */
.ofc-telas-nota {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(215, 200, 236, 0.35);
  margin: 0 0 28px;
}

.ofc-demo-cta {
  text-align: center;
}

/* ===== IMPLANTAÇÃO ===== */

.ofc-implant-grid {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

@media (max-width: 760px) {
  .ofc-implant-grid {
    flex-direction: column;
    gap: 0;
    align-items: center;
  }

  .ofc-implant-arrow {
    transform: rotate(90deg);
    margin: 12px 0;
  }
}

.ofc-implant-step {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: border-color 0.25s ease;
}

.ofc-implant-step:hover {
  border-color: rgba(168, 85, 247, 0.32);
}

.ofc-implant-num {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(135deg, rgba(130, 10, 209, 0.6) 0%, rgba(168, 85, 247, 0.4) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ofc-implant-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(130, 10, 209, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
}

.ofc-implant-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.ofc-implant-step p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.ofc-implant-arrow {
  color: rgba(168, 85, 247, 0.3);
  flex-shrink: 0;
  margin-top: 56px;
}

/* ===== SEGMENTOS ===== */

.ofc-segments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .ofc-segments-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 580px) {
  .ofc-segments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ofc-segment-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
  cursor: default;
}

.ofc-segment-card:hover {
  border-color: rgba(168, 85, 247, 0.32);
  transform: translateY(-2px);
}

.ofc-segment-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(130, 10, 209, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
}

.ofc-segment-card span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.ofc-segments-note {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(215, 200, 236, 0.45);
  margin: 0;
}

/* ===== CTA FINAL ===== */

.ofc-cta-box {
  background: linear-gradient(135deg, #2d1550 0%, #1c0935 60%, #1a0628 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(168, 85, 247, 0.22);
  padding: clamp(48px, 8vw, 80px) clamp(24px, 6vw, 64px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ofc-cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(130, 10, 209, 0.18) 0%, transparent 60%);
  pointer-events: none;
}

.ofc-cta-inner {
  position: relative;
  z-index: 1;
}

.ofc-cta-box h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  line-height: 1.15;
}

.ofc-cta-lead {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 36px;
}

.ofc-cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== RESPONSIVO GERAL ===== */

@media (max-width: 480px) {
  .ofc-cta-actions,
  .ofc-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ofc-cta-actions a,
  .ofc-hero-actions a {
    text-align: center;
  }
}
