/* ==========================================================================
   Proposta360 — Landing page
   Página de marketing: mais respiro que a aplicação, tipografia display
   nos títulos e uma ação primária clara em cada seção.
   ========================================================================== */

/* --- Navegação ------------------------------------------------------------- */
.nav-bar {
    position: sticky;
    top: 0;
    z-index: var(--z-nav);
    padding-top: var(--safe-top);
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid transparent;
    transition: border-color var(--duration-base) var(--ease-out);
}

.nav-bar.is-scrolled { border-bottom-color: var(--border); }

.nav-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    min-height: 68px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.nav-links a {
    color: var(--text-muted);
    font-size: var(--text-base);
    font-weight: var(--weight-medium);
}

.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: var(--space-2); }

/* --- Hero ------------------------------------------------------------------ */
.hero {
    position: relative;
    padding: var(--space-24) 0 var(--space-20);
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

.hero::before {
    content: '';
    position: absolute;
    inset: -30% -20% auto;
    height: 130%;
    z-index: -1;
    background: var(--gradient-mesh);
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    margin-bottom: var(--space-6);
    border-radius: var(--radius-full);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--text-muted);
}

.hero h1 {
    font-family: var(--font-display);
    font-weight: var(--weight-regular);
    font-size: clamp(2.25rem, 6vw, var(--text-5xl));
    line-height: 1.05;
    letter-spacing: var(--tracking-tight);
    max-width: 16ch;
    margin-inline: auto;
}

.hero__lead {
    max-width: 56ch;
    margin: var(--space-6) auto var(--space-8);
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: var(--text-muted);
}

.hero__actions {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.hero__note {
    margin-top: var(--space-5);
    font-size: var(--text-sm);
    color: var(--text-subtle);
}

/* Prévia do produto: mostra o que o vendedor realmente vê. */
.hero__preview {
    max-width: 940px;
    margin: var(--space-16) auto 0;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.preview-chrome {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border);
}

.preview-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-strong);
}

.preview-body { padding: var(--space-6); }

.preview-row {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
    margin-bottom: var(--space-3);
    text-align: left;
}

.preview-row:last-child { margin-bottom: 0; }
.preview-row__body { flex: 1; min-width: 0; }
.preview-row__title { font-weight: var(--weight-semibold); font-size: var(--text-base); }
.preview-row__meta { font-size: var(--text-sm); color: var(--text-muted); }

.preview-score {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    background: var(--gradient-brand);
    color: #fff;
    font-family: var(--font-mono);
    font-weight: var(--weight-bold);
    flex-shrink: 0;
}

/* --- Seções ---------------------------------------------------------------- */
.section { padding: var(--space-24) 0; }
.section--tint { background: var(--bg-subtle); }

.section-head {
    max-width: 60ch;
    margin: 0 auto var(--space-16);
    text-align: center;
}

.section-tag {
    display: inline-block;
    margin-bottom: var(--space-4);
    font-family: var(--font-mono);
    font-size: var(--text-2xs);
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
    color: var(--brand);
}

.section-head h2 {
    font-family: var(--font-display);
    font-weight: var(--weight-regular);
    font-size: clamp(1.75rem, 4vw, var(--text-3xl));
    line-height: 1.15;
    margin-bottom: var(--space-4);
}

.section-head p {
    font-size: var(--text-lg);
    color: var(--text-muted);
    line-height: var(--leading-relaxed);
}

/* --- Recursos --------------------------------------------------------------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-5);
}

.feature {
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: box-shadow var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
}

.feature:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.feature__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-5);
    border-radius: var(--radius-md);
    background: var(--brand-soft);
    color: var(--brand-soft-text);
}

.feature h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.feature p { color: var(--text-muted); line-height: var(--leading-relaxed); }

/* Recurso em destaque: ocupa a largura toda e ancora a seção. */
.feature--wide {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
    background: var(--gradient-brand);
    color: #fff;
    border-color: transparent;
}

.feature--wide h3 { font-size: var(--text-2xl); font-family: var(--font-display); font-weight: var(--weight-regular); color: #fff; }
.feature--wide p { color: rgb(255 255 255 / 0.78); }
.feature--wide .feature__icon { background: rgb(255 255 255 / 0.16); color: #fff; }

.signal-list { display: flex; flex-direction: column; gap: var(--space-3); }

.signal {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    background: rgb(255 255 255 / 0.12);
    font-size: var(--text-base);
}

.signal .icon { color: var(--amber-300); flex-shrink: 0; }

/* --- Como funciona ---------------------------------------------------------- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    counter-reset: step;
}

.step { counter-increment: step; }

.step::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: var(--space-5);
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    color: var(--brand);
}

.step h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.step p { color: var(--text-muted); line-height: var(--leading-relaxed); }

/* --- Planos ----------------------------------------------------------------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    align-items: start;
}

.plan {
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.plan--featured {
    border-color: var(--brand);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.plan__flag {
    position: absolute;
    top: calc(var(--space-3) * -1);
    left: 50%;
    transform: translateX(-50%);
    padding: var(--space-1) var(--space-4);
    border-radius: var(--radius-full);
    background: var(--gradient-brand);
    color: #fff;
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    white-space: nowrap;
}

.plan h3 { font-size: var(--text-lg); }
.plan__desc { font-size: var(--text-sm); color: var(--text-muted); }

.plan__price {
    font-family: var(--font-mono);
    font-size: var(--text-3xl);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-tight);
}

.plan__price span {
    font-size: var(--text-base);
    font-weight: var(--weight-regular);
    color: var(--text-muted);
}

.plan__features { display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }

.plan__features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-size: var(--text-base);
    color: var(--text-muted);
}

.plan__features .icon { color: var(--success); flex-shrink: 0; margin-top: 2px; }

/* --- Contato ----------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: var(--space-16);
    align-items: start;
}

.contact-methods { display: flex; flex-direction: column; gap: var(--space-5); margin-top: var(--space-8); }

.contact-method { display: flex; align-items: center; gap: var(--space-4); }

.contact-method__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--brand-soft);
    color: var(--brand-soft-text);
    flex-shrink: 0;
}

.contact-method h4 { font-size: var(--text-base); }
.contact-method p { font-size: var(--text-sm); color: var(--text-muted); }

/* Honeypot: preenchido apenas por bots. */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-feedback {
    display: none;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-4);
    padding: var(--space-4);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
}

.form-feedback.is-visible { display: flex; }
.form-feedback.success { background: var(--success-soft); color: var(--success-soft-text); }
.form-feedback.error { background: var(--danger-soft); color: var(--danger-soft-text); }

/* --- CTA final ---------------------------------------------------------------- */
.cta-band {
    padding: var(--space-24) 0;
    text-align: center;
    background: var(--gradient-brand);
    color: #fff;
}

.cta-band h2 {
    font-family: var(--font-display);
    font-weight: var(--weight-regular);
    font-size: clamp(1.75rem, 4vw, var(--text-3xl));
    color: #fff;
    margin-bottom: var(--space-4);
}

.cta-band p { color: rgb(255 255 255 / 0.8); margin-bottom: var(--space-8); }

/* --- Rodapé ------------------------------------------------------------------- */
.footer {
    padding: var(--space-16) 0 calc(var(--space-8) + var(--safe-bottom));
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer h4 {
    font-family: var(--font-mono);
    font-size: var(--text-2xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-label);
    color: var(--text-muted);
    font-weight: var(--weight-medium);
    margin-bottom: var(--space-4);
}

.footer ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer ul a { color: var(--text-muted); font-size: var(--text-base); }
.footer ul a:hover { color: var(--text); }

.footer-bottom {
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    font-size: var(--text-sm);
    color: var(--text-subtle);
}

/* --- WhatsApp flutuante --------------------------------------------------------- */
.whatsapp-fab {
    position: fixed;
    right: var(--space-5);
    bottom: calc(var(--space-5) + var(--safe-bottom));
    z-index: var(--z-nav);
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: #25d366;
    color: #fff;
    box-shadow: var(--shadow-lg);
    transition: transform var(--duration-fast) var(--ease-out);
}

.whatsapp-fab:hover { transform: scale(1.06); color: #fff; }
.whatsapp-fab:active { transform: scale(0.94); }

/* --- Responsivo ------------------------------------------------------------------ */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .steps { grid-template-columns: 1fr; gap: var(--space-10); }
    .pricing-grid { grid-template-columns: 1fr; }
    .plan--featured { order: -1; }
    .contact-grid { grid-template-columns: 1fr; gap: var(--space-10); }
    .feature--wide { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
}

@media (max-width: 640px) {
    .section { padding: var(--space-16) 0; }
    .hero { padding: var(--space-16) 0 var(--space-12); }
    .hero__actions .btn { width: 100%; }
    .section-head { margin-bottom: var(--space-10); }
    .footer-grid { grid-template-columns: 1fr; }
}
