/* Shared public-site polish. Loaded after page styles so both A/B variants stay responsive. */
:root {
    --header-height: 80px;
    --ink: #102d48;
    --blue: #1e4b96;
}

html { scroll-padding-top: calc(var(--header-height) + 20px); }
body { color: var(--ink); overflow-x: visible; }
.reveal { opacity: 1; transform: none; }
.hero-text h1, .hero-text p, .cta-buttons, .phone-mockup { animation: none; }
button, input { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #2874d0; outline-offset: 5px; }
header :focus-visible, .hero :focus-visible, footer :focus-visible { outline-color: #fff; }
header, header.scrolled {
    background: rgba(10, 31, 53, .96);
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}
header > nav:first-child {
    height: var(--header-height);
    padding-inline: clamp(20px, 4vw, 40px);
}
header .logo img { height: 64px; display: block; }
.nav-links { align-items: center; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; }
.mobile-menu-toggle { width: 44px; height: 44px; border-radius: 10px; line-height: 1; }
.mobile-menu-toggle:hover { background: rgba(255, 255, 255, .1); }
header .mobile-menu {
    position: absolute;
    top: 100%;
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    padding: 12px 24px 20px;
    background: #0a1f35;
    display: block;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { width: 100%; }
.mobile-menu li { padding: 0; }
.mobile-menu a { padding: 14px 0; min-height: 48px; }
footer { padding: 56px clamp(20px, 4vw, 40px) 24px; }
.footer-content { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.footer-content > * { min-width: 0; }
.footer-brand .logo img { height: 80px; display: block; }
.footer-brand p, .footer-section a { color: #c7d3df; }
.footer-section h3, .footer-bottom { color: #aebfd0; }
.footer-section a { display: inline-block; padding-block: 7px; overflow-wrap: anywhere; }
.footer-section ul li { margin-bottom: 0; }
.hero {
    background: #102d48;
    padding: 140px 32px 96px;
    min-height: min(850px, 100svh);
}
.hero-video { width: 100%; height: 100%; min-width: 0; min-height: 0; }
.hero-overlay { background: linear-gradient(110deg, rgba(7, 24, 43, .94), rgba(16, 45, 72, .65)); }
.hero-layout { width: 100%; padding: 0; gap: clamp(32px, 6vw, 96px); }
.hero-text { max-width: 620px; min-width: 0; }
.hero-text::before {
    content: 'GESTÃO DE FROTAS, SIMPLIFICADA';
    display: block;
    color: #b6d9ff;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    margin-bottom: 20px;
}
.hero-text h1 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.035em; line-height: 1.14; text-wrap: balance; }
.hero-text p { color: #e0e9f2; opacity: 1; max-width: 540px; }
.btn { border-radius: 12px; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.btn-primary { background: #fff; color: #153d78; }
.btn-secondary { border-color: #aabed4; background: rgba(10, 31, 53, .35); }
.phone-mockup { background: rgba(10, 31, 53, .65); border-color: #9ab5d1; }
.phone-dot { width: 28px; height: 44px; border-radius: 0; background: transparent; position: relative; }
.phone-dot::after { content: ''; position: absolute; inset: 18px 10px; border-radius: 50%; background: #a9bfd6; }
.phone-dot.active { background: transparent; transform: none; box-shadow: none; }
.phone-dot.active::after { background: white; }
.phone-dots { gap: 2px; padding: 0; }
.features, .about, .plans { padding: 72px 32px; }
.section-title { color: var(--ink); letter-spacing: -.03em; text-wrap: balance; }
.features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-card { background: #f5f8fc; border: 1px solid #e3eaf3; box-shadow: none; align-items: flex-start; padding: 28px; }
.feature-card > div:last-child { min-width: 0; }
.feature-card p { color: #536478; font-size: .95rem; }
.about-grid { gap: 32px; }
.about-item { padding: 24px 16px; }
.stats { padding: 40px 24px; }
.stat-label { color: #c7d3df; }
.plans { background: #f3f6fa; }
.plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.plan-card { padding: 36px; border: 1px solid #dce5f0; box-shadow: 0 12px 32px rgba(16, 45, 72, .04); }
.plan-card.popular { border: 2px solid #bc6508; }
.popular-badge { background: #9c5100; box-shadow: none; }
.plan-card.speed .plan-price, .plan-card.speed .plan-features li::before { color: #9c5100; }
.plan-card.speed .plan-button { background: #9c5100; }
.plan-period { color: #59697b; }
.plan-button, .cta-section .btn-cta { border-radius: 12px; }
.register-section, .login-section { padding-top: calc(var(--header-height) + 48px); }
.register-section .section-title { margin-bottom: 12px; }
.register-section .section-subtitle { font-size: 1rem; margin-bottom: 28px; }
.register-card, .login-card { border: 1px solid #e0e7f0; box-shadow: 0 12px 40px rgba(16, 45, 72, .06); }
.terms-notice, .form-group small { color: #59697b; }
.terms-notice a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
    .footer-content { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feature-card { padding: 22px; gap: 16px; }
    .feature-icon { width: 48px; height: 48px; font-size: 1.5rem; border-radius: 12px; }
}
@media (min-width: 769px) {
    header .mobile-menu { display: none; }
}
@media (max-width: 768px) {
    :root { --header-height: 72px; }
    header .logo img { height: 58px; }
    .hero { padding: 112px 24px 72px; min-height: auto; }
    .hero-layout { gap: 40px; }
    .hero-text { width: 100%; max-width: 560px; text-align: left; }
    .hero-text h1 { font-size: clamp(2rem, 5.5vw, 2.75rem); }
    .hero-text p { font-size: 1.05rem; margin-bottom: 24px; }
    .cta-buttons { justify-content: flex-start; }
    .phone-mockup { width: 200px; aspect-ratio: 9 / 14; padding: 44px 16px 12px; border-radius: 30px; }
    .features, .about, .plans { padding: 56px 24px; }
    .features-grid, .plans-grid { grid-template-columns: minmax(0, 1fr); }
    .section-title { font-size: clamp(1.75rem, 5vw, 2rem); margin-bottom: 40px; }
    .about-grid { gap: 8px; }
    .about-intro { font-size: 1rem; margin-bottom: 24px; }
    .stats-container { gap: 24px; }
    .stat-item { padding: 8px; }
    .plans-subtitle { margin-top: -20px; margin-bottom: 36px; }
    .plan-card { padding: 28px; }
    .cta-section { padding: 56px 24px; }
    .register-section, .login-section { padding: calc(var(--header-height) + 32px) 20px 56px; }
    .register-card, .login-card { padding: 24px; }
}
@media (max-width: 480px) {
    .hero { padding-inline: 20px; }
    .hero-text::before { font-size: .65rem; letter-spacing: .1em; }
    .cta-buttons { flex-direction: column; gap: 12px; }
    .cta-buttons .btn { width: 100%; }
    .features, .about, .plans { padding-inline: 20px; }
    .feature-card { flex-direction: column; padding: 24px; }
    .plan-card { padding: 28px 24px; }
    .footer-content { gap: 32px 24px; }
    .footer-brand, .footer-section:last-child { grid-column: 1 / -1; }
    .footer-section a { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
    .hero-video { display: none; }
}
