/* =================================================================
   Landing Page — Público Geral
   Réplica fiel da LP do Framer (switchbrasil.com/landing-pages/público-geral)
   Tema claro + roxo, fonte de títulos Thunder (condensada).
   ================================================================= */

/* ---------- Fontes custom (Thunder) ---------- */
@font-face {
    font-family: "Thunder";
    src: url("fonts/Thunder-BoldLC.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Thunder";
    src: url("fonts/Thunder-ExtraBoldLC.woff2") format("woff2");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
/* Phonk — usada como fonte técnica/de identidade (kickers, títulos de bloco, labels) */
@font-face {
    font-family: "Phonk";
    src: url("fonts/PhonkSans-Light.otf") format("opentype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* ---------- Variáveis ---------- */
:root {
    --dark:        rgb(21, 21, 21);
    --purple:      rgb(123, 58, 237);
    --purple-sub:  rgb(76, 29, 150);
    --light:       rgb(245, 245, 245);
    --max-width:   1200px;
    --whatsapp:    #25D366;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #fff;
    color: var(--dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { text-decoration: none; color: inherit; }

/* ---------- Tipografia de títulos (Thunder) ---------- */
.display-title {
    font-family: "Thunder", "Inter", sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 0.92;
    letter-spacing: 0.01em;
    color: var(--dark);
}

.eyebrow {
    font-style: italic;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    color: var(--dark);
    margin-bottom: 18px;
}

/* =================================================================
   HERO — full-bleed roxo, centralizado (estética bold)
   ================================================================= */
.lp-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #8B47F2 0%, var(--purple) 48%, var(--purple-sub) 100%);
    padding: 56px 24px 68px;
    text-align: center;
}

/* Formas geométricas sutis (chevrons/linhas) no fundo */
.hero-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.6;
    background:
        repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 86px),
        radial-gradient(circle at 72% 18%, rgba(255,255,255,0.14), transparent 46%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.hero-logo img {
    width: 40px;
    height: 49px;
    object-fit: contain;
    filter: brightness(0) invert(1);   /* símbolo branco sobre o roxo */
}

.hero-eyebrow {
    font-style: italic;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.hero-headline {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #fff;
    text-transform: uppercase;
}
.hl-light {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: clamp(1.1rem, 2.4vw, 1.9rem);
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.92);
}
.hl-bold {
    font-family: "Thunder", "Inter", sans-serif;
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: 0.01em;
    font-size: clamp(2.6rem, 6.4vw, 5.4rem);
}

.hero-sub {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 460px;
    line-height: 1.55;
    margin: 4px 0 2px;
}

/* CTA destacado (escuro, contrasta com o roxo) */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--dark);
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 15px 28px;
    border-radius: 999px;
    transition: transform 0.2s ease, background-color 0.25s ease;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}
.hero-cta:hover { transform: translateY(-2px); background-color: #000; }
.hero-cta svg { flex-shrink: 0; }

/* =================================================================
   BOTÕES
   ================================================================= */
/* Botão "sliding" roxo (hero, conheça a switch) */
.sliding-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--purple);
    color: var(--light);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 7px 7px 7px 22px;
    border-radius: 999px;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 8px 24px rgba(123, 58, 237, 0.22);
}
.sliding-btn:hover { background-color: var(--purple-sub); transform: translateY(-2px); }
.sliding-btn-label {
    position: relative;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.sliding-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--light);
    color: var(--purple);
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.sliding-btn:hover .sliding-btn-icon { transform: rotate(-45deg); }

/* Botão sólido (form) */
.solid-btn {
    display: inline-block;
    width: 100%;
    background-color: var(--purple);
    color: #fff;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    border: none;
    border-radius: 8px;
    padding: 16px 24px;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.15s ease;
}
.solid-btn:hover { background-color: var(--purple-sub); transform: translateY(-2px); }

/* Botão WhatsApp */
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--whatsapp);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 13px 26px;
    border-radius: 999px;
    transition: transform 0.2s ease, filter 0.2s ease;
    cursor: pointer;
}
.whatsapp-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }

/* =================================================================
   CARROSSEL DE PARCEIROS
   ================================================================= */
.lp-carousel {
    position: relative;
    z-index: 2;                  /* fica acima da imagem do hero que transborda */
    background-color: #fff;      /* cobre a parte de baixo da imagem */
    overflow: hidden;
    padding: 30px 0;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
            mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.carousel-track {
    display: flex;
    align-items: center;
    gap: 80px;
    width: max-content;
    will-change: transform;
}
/* Cada logo ocupa uma "caixa" idêntica e é escalado para caber dentro dela.
   Isso uniformiza logos largos (FIOFORTE) e estreitos (Wibag).
   Dimensões calibradas para exibir ~5 logos por vez em telas ~1440px. */
.carousel-logo {
    width: 210px;
    height: 66px;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}
.carousel-logo:hover { opacity: 1; }

/* =================================================================
   FORMULÁRIO + TIMELINE
   ================================================================= */
.lp-form-section {
    position: relative;       /* full-width: o grid de fundo sangra de ponta a ponta */
    padding: 40px 0 20px;
    overflow: hidden;
}
.form-section-inner {
    position: relative;
    z-index: 1;               /* conteúdo acima do grid decorativo */
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}
.form-decor {
    position: absolute;
    /* Dimensionado pela viewport para cobrir a seção inteira mesmo girado 18°
       (a seção é sempre menor que a viewport, então isso garante cobertura total). */
    width: 250vw;
    height: 250vh;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(18deg);
    background-image: url("images/bg-decor.svg");
    background-repeat: repeat;
    background-size: 96px 96px;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

.form-card {
    position: relative;
    z-index: 1;
    width: 528px;
    max-width: 100%;
    background-color: #fff;
    border: 2px solid var(--purple);
    border-radius: 6px;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 12px 40px rgba(76, 29, 150, 0.12);
}
.form-title {
    font-family: "Inter", sans-serif;
    font-style: italic;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--dark);
}
.form-sub { font-size: 1rem; color: #444; }

/* Embed do GHL */
.ghl-embed { width: 100%; }
.ghl-embed iframe {
    width: 100% !important;
    min-height: 400px;        /* fallback baixo; o form_embed.js define a altura real */
    border: none;
    display: block;
}

/* Placeholder enquanto o embed do GHL não é colado */
.ghl-placeholder {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 8px 0;
}
.ghl-placeholder-note {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 0.8rem;
    color: var(--purple);
    opacity: 0.8;
}
.ghl-skeleton {
    height: 44px;
    border-radius: 6px;
    background: rgba(123, 58, 237, 0.06);
    border: 1px dashed rgba(123, 58, 237, 0.35);
    position: relative;
    overflow: hidden;
}
.ghl-skeleton span {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(123, 58, 237, 0.10), transparent);
    transform: translateX(-100%);
    animation: ghl-shimmer 1.6s infinite;
}
@keyframes ghl-shimmer { 100% { transform: translateX(100%); } }

/* Timeline (lado direito) */
.timeline-block {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    padding-top: 20px;
}
.timeline-title {
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    text-align: right;
}
.timeline-img { width: 620px; max-width: 100%; height: auto; }

/* =================================================================
   CONHEÇA A SWITCH
   ================================================================= */
.lp-about {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 24px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 38px;
}
.pill-tag {
    display: inline-block;
    font-family: "Inter", sans-serif;
    font-style: italic;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--purple);
    border: 1.5px solid var(--purple);
    border-radius: 40px;
    padding: 12px 25px;
}
.about-headline {
    font-size: clamp(2.4rem, 5.5vw, 4.4rem);
    max-width: 1100px;
}
.about-headline-accent { color: var(--purple); }
.cert-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 56px;
    flex-wrap: wrap;
}
.cert-item {
    width: 276px;
    max-width: 100%;
    height: 174px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cert-item img { max-height: 80px; width: auto; object-fit: contain; }
.about-desc {
    max-width: 73%;
    font-size: 1.05rem;
    color: #333;
    line-height: 1.6;
}

/* =================================================================
   FOOTER / CTA WHATSAPP
   ================================================================= */
.lp-footer {
    max-width: 1300px;
    margin: 0 auto;
    padding: 60px 30px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
}
.footer-headline { font-size: clamp(2.6rem, 6vw, 5rem); }
.footer-sub { font-size: 1.1rem; color: #333; max-width: 520px; }
.lp-footer .whatsapp-btn { margin-top: 18px; }
.footer-copy { margin-top: 40px; font-size: 0.85rem; color: #888; }

/* =================================================================
   RESPONSIVO
   ================================================================= */
@media (max-width: 900px) {
    .lp-hero { padding: 44px 20px 52px; }

    .form-section-inner { flex-direction: column-reverse; }
    .timeline-block { align-items: center; }
    .timeline-title { text-align: center; }

    .about-desc { max-width: 100%; }
    .cert-row { gap: 32px; }
    .cert-item { width: 200px; height: 120px; }
}

@media (max-width: 900px) {
    .carousel-track { gap: 56px; }
    .carousel-logo { width: 160px; height: 56px; }
}

@media (max-width: 520px) {
    .form-card { padding: 28px 22px; }
    .carousel-track { gap: 40px; }
    .carousel-logo { width: 130px; height: 48px; }
    .cert-item { width: 140px; height: 90px; }
    .cert-item img { max-height: 56px; }
}

/* =================================================================
   COMO A SWITCH FUNCIONA  (seção adicionada via briefing)
   Header + timeline 4 steps + grid 2x2 de metodologia + CTA-âncora.
   ================================================================= */
.how-section {
    background-color: #fff;               /* off-white: contraste sutil com o hero (#F5F5F5) */
    border-top: 1px solid rgba(21, 21, 21, 0.06);
    border-bottom: 1px solid rgba(21, 21, 21, 0.06);
    padding: 80px 24px;
}
.how-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 64px;
}

/* ---------- Bloco jornada: fundo roxo, elementos brancos ---------- */
.how-journey-section {
    background-color: var(--purple);
    border-top: none;
    border-bottom: none;
}
.how-journey-section .how-block-title { color: #fff; }
.how-journey-section .how-block-sub   { color: rgba(255, 255, 255, 0.8); }
.how-journey-section .step-icon {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff;
    box-shadow: none;
}
.how-journey-section .step-num   { color: rgba(255, 255, 255, 0.85); }
.how-journey-section .step-title { color: #fff; }
.how-journey-section .step-highlight {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.how-journey-section .step-body  { color: rgba(255, 255, 255, 0.82); }

/* ---------- Títulos de bloco ---------- */
.how-block-title {
    font-family: "Thunder", "Inter", sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 0.95;
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    letter-spacing: 0.01em;
    color: var(--dark);
    text-align: center;
}
.how-block-sub {
    font-size: 1rem;
    color: #666;
    text-align: center;
    margin-top: 8px;
    margin-bottom: 40px;
}

/* ---------- Bloco intermediário: timeline 4 steps ---------- */
.journey-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    position: relative;
}
/* Linha cronológica atrás dos cards (aparece nos vãos entre eles) */
.journey-steps::before {
    content: "";
    position: absolute;
    top: 58px;                 /* altura do centro dos ícones dentro dos cards */
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: repeating-linear-gradient(90deg, rgba(255,255,255,0.5) 0 7px, transparent 7px 15px);
    z-index: 0;
}
/* Cada etapa é um box com gradiente escuro, pontos de luz e spotlight no mouse */
.journey-step {
    position: relative;
    z-index: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 30px 22px 32px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background:
        radial-gradient(140px circle at 18% 12%, rgba(255,255,255,0.10), transparent 60%),
        radial-gradient(170px circle at 92% 100%, rgba(123,58,237,0.40), transparent 60%),
        linear-gradient(160deg, #4a2596 0%, #2a1262 100%);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
/* Spotlight que segue o cursor (posição via --mx/--my, setadas no JS) */
.journey-step::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background: radial-gradient(300px circle at var(--mx, 50%) var(--my, -20%), rgba(255,255,255,0.18), transparent 65%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.journey-step > * { position: relative; z-index: 1; }
.journey-step:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.30);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.30);
}
.journey-step:hover::after { opacity: 1; }
/* Ícone vem primeiro: círculo com fundo branco que "corta" a linha */
.step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid var(--purple);
    color: var(--purple);
    box-shadow: 0 0 0 6px #fff;          /* "respiro" branco ao redor, separa da linha */
}
.step-num {
    font-family: "Phonk", "Inter", monospace;
    font-weight: 300;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    color: var(--purple);
    margin-top: 4px;
}
.step-num::before { content: "ETAPA "; }
.step-title {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark);
}
.step-highlight {
    color: var(--purple);
    white-space: nowrap;
}
.step-body {
    font-size: 0.92rem;
    color: #555;
    line-height: 1.55;
    max-width: 26ch;
}

/* ---------- Bloco inferior: metodologia (grid 2x2) ---------- */
.method-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.method-card {
    position: relative;
    background-color: #fff;
    border: 1px solid rgba(21, 21, 21, 0.08);
    border-radius: 16px;
    padding: 32px 30px;
    overflow: hidden;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
/* Faixa de acento roxa no topo do card */
.method-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--purple), var(--purple-sub));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.method-card:hover {
    border-color: rgba(123, 58, 237, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(76, 29, 150, 0.12);
}
.method-card:hover::before { transform: scaleX(1); }

/* Ícone do card */
.method-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(123,58,237,0.12), rgba(76,29,150,0.12));
    color: var(--purple);
    margin-bottom: 18px;
}
.method-num {
    display: inline-block;
    font-family: "Phonk", "Inter", monospace;
    font-weight: 300;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--purple);
    margin-bottom: 8px;
}
.method-name {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 12px;
}
.method-name-accent { color: var(--purple); font-weight: 600; }
.method-body {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* ---------- CTA-âncora ---------- */
.how-cta {
    text-align: center;
    font-size: 1.1rem;
    color: var(--dark);
}
.how-cta a {
    color: var(--purple);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.how-cta a:hover { color: var(--purple-sub); }

/* ---------- Responsivo da seção ---------- */
@media (max-width: 900px) {
    .how-section { padding: 60px 20px; }
    .how-inner { gap: 48px; }
    .journey-steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .journey-steps::before { display: none; }
}
@media (max-width: 560px) {
    .journey-steps { grid-template-columns: 1fr; }
    .method-grid { grid-template-columns: 1fr; }
}

/* Respeita preferências de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
    .carousel-track { animation: none !important; transform: none !important; }
    .ghl-skeleton span { animation: none; }
    .method-card:hover { transform: none; }
    html { scroll-behavior: auto; }
}
