/* ==========================================
   AgaronChat — Landing Page
   Tema claro com vermelho da marca
   ========================================== */

:root {
    --primary: #E51E1E;
    --primary-hover: #C41717;
    --primary-light: #FEE4E4;
    --primary-subtle: #FFF5F5;

    --bg: #FFFFFF;
    --bg-alt: #F8F9FA;
    --bg-dark: #1A1A1A;

    --text: #1A1A1A;
    --text-secondary: #5A5A5A;
    --text-muted: #8A8A8A;
    --text-on-dark: #FFFFFF;

    --border: #E5E7EB;
    --border-strong: #D1D5DB;

    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.04);
    --shadow-primary: 0 8px 20px rgba(229, 30, 30, 0.25);
    --header-bg: rgba(255, 255, 255, 0.92);
    --control-bg: #FFFFFF;
    --control-hover: #F3F4F6;
    --carousel-dot: rgba(0, 0, 0, 0.15);
    --carousel-dot-hover: rgba(0, 0, 0, 0.35);
    --success-soft: #D1FAE5;
    --success-text: #047857;
    --success-strong: #065F46;
    --success-border: #A7F3D0;
    --error-soft: #FEE2E2;
    --error-text: #991B1B;

    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 20px;

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --container: 1200px;
    --header-height: 72px;
    color-scheme: light;
}

:root[data-theme="dark"] {
    --primary: #FF4B4B;
    --primary-hover: #FF6B6B;
    --primary-light: rgba(255, 75, 75, 0.18);
    --primary-subtle: rgba(255, 75, 75, 0.08);

    --bg: #101114;
    --bg-alt: #17191D;
    --bg-dark: #08090B;

    --text: #F5F7FA;
    --text-secondary: #C9CED6;
    --text-muted: #8F98A6;
    --text-on-dark: #FFFFFF;

    --border: #2B3038;
    --border-strong: #3A414C;

    --success: #34D399;
    --warning: #FBBF24;
    --error: #F87171;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 14px 32px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.36), 0 8px 18px rgba(0, 0, 0, 0.24);
    --shadow-primary: 0 10px 28px rgba(255, 75, 75, 0.24);
    --header-bg: rgba(16, 17, 20, 0.9);
    --control-bg: #17191D;
    --control-hover: #20242B;
    --carousel-dot: rgba(245, 247, 250, 0.28);
    --carousel-dot-hover: rgba(245, 247, 250, 0.48);
    --success-soft: rgba(16, 185, 129, 0.16);
    --success-text: #6EE7B7;
    --success-strong: #A7F3D0;
    --success-border: rgba(52, 211, 153, 0.34);
    --error-soft: rgba(239, 68, 68, 0.16);
    --error-text: #FCA5A5;
    color-scheme: dark;
}

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

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* Zoom visual forçado em 133% (apenas desktop — mobile já tem layout responsivo próprio).
   Preferência estética da marca para que o design fique com o peso visual desejado. */
@media (min-width: 1024px) {
    html {
        /* zoom: 1.33; */
        /* Comentado temporariamente pra testar nitidez do carrossel do hero.
           Pra voltar ao visual original (mais "peso"), descomente a linha acima. */
    }
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul,
ol {
    list-style: none;
}

/* ---------- Container ---------- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-on-dark);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg);
    color: var(--text);
    border: 1.5px solid var(--border-strong);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    padding: 10px 16px;
}

.btn-ghost:hover {
    color: var(--primary);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    display: inline-flex;
    align-items: center;
    height: 40px;
}

.logo img {
    height: 100%;
    width: auto;
    max-height: 40px;
    display: block;
}

.logo-sm img {
    max-height: 32px;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.15s;
}

.main-nav a:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0;
    min-height: 44px;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--control-bg);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.theme-toggle:hover {
    color: var(--text);
    background: var(--control-hover);
    border-color: var(--border-strong);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.theme-toggle-label {
    display: none;
}

.theme-toggle-track {
    position: relative;
    width: 58px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: linear-gradient(180deg, #F2F4F8 0%, #DEE3EA 100%);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), inset 0 -1px 2px rgba(15, 23, 42, 0.15);
    flex-shrink: 0;
    transition: background 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
}

.theme-toggle-track::before,
.theme-toggle-track::after {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    line-height: 1;
    pointer-events: none;
    transition: opacity 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.theme-toggle-track::before {
    content: '☀';
    left: 9px;
    color: #2E3640;
    opacity: 0.95;
}

.theme-toggle-track::after {
    content: '☾';
    right: 10px;
    color: rgba(20, 25, 35, 0.38);
    opacity: 0.45;
    transform: translateY(-50%) rotate(-8deg);
}

.theme-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(180deg, #353A43 0%, #1A1D23 100%);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.25), 0 4px 10px rgba(0, 0, 0, 0.26);
    transform: translateX(26px);
    transition: transform 0.26s ease, background 0.26s ease, box-shadow 0.26s ease;
    z-index: 1;
}

:root[data-theme="dark"] .theme-toggle-track {
    border-color: rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, #2F333D 0%, #1D2129 100%);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.06), inset 0 -1px 3px rgba(0, 0, 0, 0.32);
}

:root[data-theme="dark"] .theme-toggle-track::before {
    color: rgba(236, 240, 248, 0.45);
    opacity: 0.4;
}

:root[data-theme="dark"] .theme-toggle-track::after {
    color: #F3F6FF;
    opacity: 0.96;
    transform: translateY(-50%) rotate(-8deg) scale(1.05);
}

:root[data-theme="dark"] .theme-toggle-thumb {
    background: linear-gradient(180deg, #FEFEFF 0%, #EAEEF5 100%);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18), 0 4px 12px rgba(0, 0, 0, 0.18);
    transform: translateX(0);
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background: var(--text);
    left: 0;
}

.nav-toggle span::before {
    top: -7px;
}

.nav-toggle span::after {
    top: 7px;
}

/* ---------- Hero ---------- */
.hero {
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--primary-subtle) 0%, var(--bg) 70%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(229, 30, 30, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero h1 .highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero h1 .highlight::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    height: 10px;
    background: var(--primary-light);
    z-index: -1;
}

.hero p.lead {
    font-size: 19px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 560px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.hero-trust {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--text-secondary);
}

.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-trust span::before {
    content: '✓';
    color: var(--success);
    font-weight: bold;
}

.hero-trust span.is-highlight {
    font-weight: 700;
    color: var(--text);
}

.hero-trust span.is-highlight::before {
    content: '★';
    color: var(--primary);
}

/* Hero visual — screenshot real da ferramenta */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.hero-screenshot {
    display: block;
    width: 100%;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    will-change: transform;
    max-width: 560px;
    height: auto;
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    transform: perspective(1200px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-screenshot:hover {
    transform: perspective(1200px) rotateY(-2deg) rotateX(1deg) translateY(-4px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25);
}

/* Carrossel do hero */
.hero-carousel {
    position: relative;
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hero-carousel-stage {
    display: grid;
    width: 100%;
}

.hero-slide {
    grid-area: 1 / 1;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0s linear 0s;
}

.hero-carousel-dots {
    display: flex;
    gap: 10px;
    padding: 4px;
}

.hero-carousel-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 1px solid var(--border);
    padding: 0;
    background: var(--carousel-dot);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.hero-carousel-dot:hover {
    background: var(--carousel-dot-hover);
}

.hero-carousel-dot.is-active {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.25);
}

.hero-carousel-dot:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ---------- Section base ---------- */
section {
    padding: 100px 0;
}

section.alt {
    background: var(--bg-alt);
}

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.section-head h2 {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-head p {
    font-size: 18px;
    color: var(--text-secondary);
}

/* ---------- Como funciona ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    box-shadow: var(--shadow-primary);
    position: relative;
    z-index: 1;
}

.step h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.step p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Linha conectando os steps (desktop) */
.steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--border) 0, var(--border) 8px, transparent 8px, transparent 16px);
    z-index: 0;
}

/* ---------- Recursos ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.2s;
}

.feature:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid transparent;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-icon::before {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.72) 100%);
}

:root[data-theme="dark"] .feature-icon::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
}

:root[data-theme="dark"] .feature-icon-inbox {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.26) 0%, rgba(190, 18, 60, 0.18) 100%);
    color: #FDA4AF;
    border-color: rgba(253, 164, 175, 0.18);
}

:root[data-theme="dark"] .feature-icon-ai {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.26) 0%, rgba(194, 65, 12, 0.18) 100%);
    color: #FDBA74;
    border-color: rgba(253, 186, 116, 0.18);
}

:root[data-theme="dark"] .feature-icon-team {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.24) 0%, rgba(4, 120, 87, 0.18) 100%);
    color: #6EE7B7;
    border-color: rgba(110, 231, 183, 0.18);
}

:root[data-theme="dark"] .feature-icon-reports {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.26) 0%, rgba(29, 78, 216, 0.18) 100%);
    color: #93C5FD;
    border-color: rgba(147, 197, 253, 0.18);
}

:root[data-theme="dark"] .feature-icon-replies {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.26) 0%, rgba(180, 83, 9, 0.18) 100%);
    color: #FCD34D;
    border-color: rgba(252, 211, 77, 0.18);
}

:root[data-theme="dark"] .feature-icon-integrations {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.24) 0%, rgba(15, 118, 110, 0.18) 100%);
    color: #67E8F9;
    border-color: rgba(103, 232, 249, 0.18);
}

.feature:hover .feature-icon {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}

.feature-icon svg {
    position: relative;
    z-index: 1;
    width: 26px;
    height: 26px;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-icon-inbox {
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
    color: #be123c;
    border-color: rgba(190, 24, 93, 0.16);
}

.feature-icon-ai {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    color: #c2410c;
    border-color: rgba(194, 65, 12, 0.16);
}

.feature-icon-team {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #047857;
    border-color: rgba(4, 120, 87, 0.16);
}

.feature-icon-reports {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1d4ed8;
    border-color: rgba(29, 78, 216, 0.16);
}

.feature-icon-replies {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #b45309;
    border-color: rgba(180, 83, 9, 0.16);
}

.feature-icon-integrations {
    background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
    color: #0f766e;
    border-color: rgba(15, 118, 110, 0.16);
}

.feature h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.feature p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* ---------- Planos ---------- */
.plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.plan {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.25s;
}

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

.plan.featured {
    border-color: var(--primary);
    border-width: 2px;
    box-shadow: var(--shadow-primary);
    transform: scale(1.03);
}

.plan.featured:hover {
    transform: scale(1.03) translateY(-6px);
}

.plan-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-primary);
}

.plan-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.plan-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 20px;
}

.billing-toggle-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.billing-toggle {
    display: inline-flex;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px;
    gap: 4px;
}

.billing-toggle button {
    border: none;
    background: transparent;
    padding: 10px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.billing-toggle button.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.billing-toggle button:hover:not(.active) {
    color: var(--text);
}

.plan-trial {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--success-text);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.01em;
}

.plan-trial svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.plan-price .currency {
    font-size: 18px;
    color: var(--text-secondary);
}

.plan-price .value {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--primary);
}

.plan-price .period {
    font-size: 14px;
    color: var(--text-secondary);
}

.plan-price.enterprise .value {
    font-size: 28px;
    color: var(--text);
}

/* Slot-machine animation pros dígitos do preço (estilo Linear). */
.plan-price .value.has-reels {
    display: inline-flex;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.plan-price .digit {
    display: inline-block;
    height: 1em;
    overflow: hidden;
    vertical-align: baseline;
    max-width: 1ch;
    /* Só a opacidade anima — a max-width muda instantaneamente pra evitar que
       a transition de layout compita com a de transform e cause snap no fim. */
    transition: opacity 500ms linear;
}

.plan-price .digit.hidden {
    max-width: 0;
    opacity: 0;
}

.plan-price .reel {
    display: block;
    transition: transform 500ms linear;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.plan-price .reel>span {
    display: block;
    height: 1em;
    line-height: 1;
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {

    .plan-price .digit,
    .plan-price .reel {
        transition-duration: 0.01ms;
    }
}

.plan-features {
    list-style: none;
    margin-bottom: 28px;
    flex: 1;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 15px;
    color: var(--text);
}

.plan-features li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.plan-features li strong {
    font-weight: 600;
}

.plan-cta {
    margin-top: auto;
}

/* ---------- Tudo incluso em todos os planos ---------- */
.plans-included {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 56px 48px;
    margin-top: 32px;
    box-shadow: var(--shadow-sm);
}

.plans-included-head {
    text-align: center;
    margin-bottom: 48px;
}

.plans-included-head h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.plans-included-head p {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 560px;
    margin: 0 auto;
}

.plans-included-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 36px 40px;
    align-items: start;
}

.plans-included-category h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.plans-included-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plans-included-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    color: var(--text);
    line-height: 1.4;
}

.plans-included-note {
    margin-top: 14px;
    padding-top: 12px;
    font-size: 12.5px;
    color: var(--text-muted);
    border-top: 1px dashed var(--border);
    line-height: 1.5;
}

@media (max-width: 900px) {
    .plans-included {
        padding: 36px 24px;
        margin-top: 24px;
    }

    .plans-included-head {
        margin-bottom: 32px;
    }

    .plans-included-head h3 {
        font-size: 22px;
    }

    .plans-included-head p {
        font-size: 15px;
    }

    .plans-included-grid {
        gap: 28px 32px;
    }
}

/* ---------- Tabela comparativa de planos ---------- */
.plans-comparison {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    /* Sem overflow: hidden — sticky thead precisa escapar do wrapper na vertical.
       Os cantos arredondados são preservados via border-radius nas células das
       extremidades da última linha. */
}

.plans-comparison-head {
    text-align: center;
    padding: 48px 32px 32px;
    border-bottom: 1px solid var(--border);
    border-top-left-radius: calc(var(--radius-lg) - 1.5px);
    border-top-right-radius: calc(var(--radius-lg) - 1.5px);
    background: var(--bg);
}

.plans-comparison-head h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.plans-comparison-head p {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 560px;
    margin: 0 auto;
}

.plans-comparison-scroll {
    outline: none;
    /* No desktop não cria contexto de scroll, pra deixar o sticky do thead
       trackear o scroll da página. No mobile o overflow-x é reativado em media
       query pra permitir comparar planos com swipe horizontal. */
}

.plans-comparison-scroll:focus-visible {
    box-shadow: inset 0 0 0 2px var(--primary);
}

.plans-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-variant-numeric: tabular-nums;
}

.plans-table thead th {
    position: sticky;
    top: var(--header-height);
    z-index: 5;
    background: var(--bg);
    padding: 22px 20px 18px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 0 var(--border);
    vertical-align: top;
    text-align: center;
    font-weight: 600;
}

.plans-table thead th.plans-table-feature-col {
    width: 32%;
    min-width: 240px;
    text-align: left;
}

.plans-table thead th.is-featured {
    background: var(--primary-subtle);
    border-top: 3px solid var(--primary);
    padding-top: 19px;
}

.plans-table-plan {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.plans-table-plan-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.plans-table thead th.is-featured .plans-table-plan-name {
    color: var(--primary);
}

.plans-table-plan-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.plans-table-plan-price--quote {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 700;
}

.plans-table-cta {
    margin-top: 4px;
    padding: 8px 18px;
    font-size: 13px;
    width: 100%;
    max-width: 170px;
}

.plans-table-section th {
    background: var(--bg-alt);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    padding: 14px 24px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.plans-table tbody tr:not(.plans-table-section) th,
.plans-table tbody tr:not(.plans-table-section) td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    color: var(--text);
}

.plans-table tbody tr:last-child th,
.plans-table tbody tr:last-child td {
    border-bottom: none;
}

.plans-table tbody tr:last-child > :first-child {
    border-bottom-left-radius: calc(var(--radius-lg) - 1.5px);
}

.plans-table tbody tr:last-child > :last-child {
    border-bottom-right-radius: calc(var(--radius-lg) - 1.5px);
}

.plans-table tbody th {
    font-weight: 500;
    text-align: left;
    width: 32%;
    padding-left: 24px;
}

.plans-table tbody td {
    text-align: center;
    vertical-align: middle;
}

.plans-table tbody td.is-featured {
    background: var(--primary-subtle);
}

.plans-table tbody tr:not(.plans-table-section):hover th,
.plans-table tbody tr:not(.plans-table-section):hover td {
    background: var(--bg-alt);
}

.plans-table tbody tr:not(.plans-table-section):hover td.is-featured {
    background: var(--primary-light);
}

.plans-table-popular {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: var(--shadow-primary);
    white-space: nowrap;
    align-self: center;
}

/* Compensa a altura do badge "Mais popular" no Pro pra alinhar
   horizontalmente os nomes/preços/CTAs dos demais planos. */
.plans-table thead th:not(.is-featured):not(.plans-table-feature-col) .plans-table-plan {
    padding-top: 28px;
}

.plans-table-plan-savings {
    display: none;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--success-text);
    background: var(--success-soft);
    padding: 3px 10px;
    border-radius: 999px;
    line-height: 1.3;
}

[data-billing="yearly"] .plans-table-plan-savings {
    display: inline-flex;
}

.plans-rate-notice {
    margin: 18px auto 0;
    padding: 0 24px;
    max-width: 760px;
    text-align: center;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.plans-table-trial {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--success-soft);
    border: 1px solid var(--success-border);
    border-radius: 12px;
    padding: 12px 14px;
    text-align: left;
    color: var(--success-text);
}

.plans-table-trial-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.005em;
}

.plans-table-trial-head svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.plans-table-trial-text {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--success-strong);
}

.plans-table-trial-text strong {
    font-weight: 700;
}

.check,
.dash {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.check {
    width: 20px;
    height: 20px;
    background: var(--success-soft);
    border-radius: 50%;
    position: relative;
}

.check::before {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 10px;
    height: 5px;
    border-left: 2px solid var(--success);
    border-bottom: 2px solid var(--success);
    transform: translateY(-1px) rotate(-45deg);
}

.dash {
    width: 16px;
    height: 2px;
    background: var(--border-strong);
    border-radius: 2px;
}

.info-tip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    padding: 0;
    margin-left: 4px;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    cursor: help;
    vertical-align: -3px;
    position: relative;
    transition: color 0.15s ease;
}

.info-tip:hover,
.info-tip:focus {
    color: var(--primary);
    outline: none;
}

.info-tip:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 50%;
}

.info-tip svg {
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

.info-tip::before,
.info-tip::after {
    position: absolute;
    left: 50%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 50;
}

.info-tip::before {
    content: '';
    bottom: calc(100% + 4px);
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-top-color: var(--text);
}

.info-tip::after {
    content: attr(data-tip);
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    background: var(--text);
    color: var(--text-on-dark);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    text-transform: none;
    letter-spacing: normal;
    white-space: normal;
    width: max-content;
    max-width: 220px;
    box-shadow: var(--shadow-md);
}

.info-tip:hover::before,
.info-tip:hover::after,
.info-tip:focus::before,
.info-tip:focus::after {
    opacity: 1;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 900px) {
    .plans-comparison-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .plans-table {
        min-width: 720px;
    }

    /* No mobile o wrapper de scroll cria seu próprio contexto, o que tira o
       efeito do sticky com offset do header. Volta o thead pro fluxo normal. */
    .plans-table thead th,
    .plans-table thead th.is-featured {
        position: static;
        top: auto;
        z-index: auto;
        box-shadow: none;
    }

    .plans-comparison-head {
        padding: 36px 20px 24px;
    }

    .plans-comparison-head h3 {
        font-size: 22px;
    }

    .plans-comparison-head p {
        font-size: 15px;
    }

    .plans-table thead th {
        padding: 18px 12px 14px;
    }

    .plans-table thead th.is-featured {
        padding-top: 15px;
    }

    .plans-table-plan-price {
        font-size: 18px;
    }

    .plans-table-plan-price--quote {
        font-size: 15px;
    }

    .plans-table-cta {
        padding: 8px 14px;
        font-size: 13px;
    }

    .plans-table tbody tr:not(.plans-table-section) th,
    .plans-table tbody tr:not(.plans-table-section) td,
    .plans-table tbody th {
        padding: 12px 14px;
        font-size: 14px;
    }

    .plans-table-section th {
        padding: 12px 14px;
    }
}

/* ---------- Testimonials ---------- */
.testimonials-carousel {
    position: relative;
    max-width: 1040px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.testimonials-stage {
    width: 100%;
}

.testimonial-card {
    position: relative;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.testimonial-external {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    z-index: 2;
    text-decoration: none;
}

.testimonial-external:hover {
    background: var(--primary-light);
    color: var(--primary);
    transform: translate(1px, -1px);
}

.testimonial-external:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.testimonial-external svg {
    width: 16px;
    height: 16px;
}

.testimonial-split {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) 1.6fr;
    min-height: 380px;
}

/* Brand side (left) */
.testimonial-brand {
    padding: 44px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, #B91717 100%);
}

.testimonial-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 96px;
}

.testimonial-brand-logo img {
    max-width: 220px;
    max-height: 110px;
    object-fit: contain;
}

.testimonial-brand-logo--initials {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-weight: 800;
    font-size: 32px;
    letter-spacing: 0.02em;
    min-height: auto;
}

.testimonial-brand-name {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

/* Brand variants — cor de cada empresa */
.testimonial-card--labelrouge .testimonial-brand {
    background: linear-gradient(135deg, #D3302A 0%, #8A1818 100%);
}

.testimonial-card--vitalis .testimonial-brand {
    background: linear-gradient(135deg, #0F766E 0%, #064E3B 100%);
}

.testimonial-card--horizonte .testimonial-brand {
    background: linear-gradient(135deg, #1E40AF 0%, #1E3A8A 100%);
}

/* Content side (right) */
.testimonial-content {
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.testimonial-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.testimonial-tab {
    padding: 12px 18px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: -1px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.testimonial-tab:hover {
    color: var(--text);
}

.testimonial-tab.is-active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.testimonial-tab:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.testimonial-tab svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.testimonial-panels {
    flex: 1;
}

.testimonial-panel {
    display: none;
}

.testimonial-panel.is-active {
    display: block;
    animation: testimonial-panel-fade 0.3s ease;
}

.testimonial-panel p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    margin: 0;
}

@keyframes testimonial-panel-fade {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- FAQ ---------- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: transparent;
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    color: var(--primary);
    font-weight: 400;
    flex-shrink: 0;
    transition: transform 0.2s;
    line-height: 1;
}

.faq-item.open .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 24px;
    color: var(--text-secondary);
    font-size: 15px;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 24px 20px;
}

/* ---------- Outros serviços ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.service-card {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, var(--primary-subtle) 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card > * {
    position: relative;
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-card h3 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    flex: 1;
}

.service-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
    margin-top: 8px;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--bg-dark);
    color: #A0A0A0;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.site-footer .logo {
    margin-bottom: 16px;
}

.site-footer .logo img {
    max-height: 44px;
}

.footer-about p {
    font-size: 14px;
    color: #A0A0A0;
    max-width: 320px;
}

.footer-col h4 {
    color: white;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col ul li {
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-col ul a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
}

/* ==========================================
   Signup / Contato / Success pages
   ========================================== */
.page-shell {
    min-height: 100vh;
    background: var(--bg-alt);
    display: flex;
    flex-direction: column;
}

.page-header {
    padding: 24px 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.page-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.page-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.page-header-bar-centered {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
}

.page-header-bar-centered .theme-toggle {
    justify-self: end;
}

.page-main {
    flex: 1;
    padding: 60px 0 80px;
}

.form-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-md);
    max-width: 640px;
    margin: 0 auto;
}

.form-card-narrow {
    max-width: 480px;
}

.form-card h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.form-card>p.lead {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 16px;
}

.step-indicator {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
}

.step-indicator .dot {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    transition: background 0.3s;
}

.step-indicator .dot.active {
    background: var(--primary);
}

.step-indicator .dot.done {
    background: var(--success);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group label .required {
    color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(229, 30, 30, 0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group .help {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-group .error {
    font-size: 13px;
    color: var(--error);
    margin-top: 4px;
    display: none;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: var(--error);
}

.form-group.has-error .error {
    display: block;
}

.form-checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.form-checkbox input {
    width: auto;
    margin-top: 3px;
}

.form-checkbox a {
    color: var(--primary);
    text-decoration: underline;
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.btn-google {
    width: 100%;
    background: var(--bg);
    color: var(--text);
    border: 1.5px solid var(--border-strong);
    font-weight: 500;
}

.btn-google:hover {
    border-color: var(--primary);
}

.btn-google svg {
    width: 18px;
    height: 18px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.form-actions .btn {
    flex: 1;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.alert.show {
    display: block;
}

.alert-error {
    background: var(--error-soft);
    color: var(--error-text);
    border-left: 3px solid var(--error);
}

.alert-success {
    background: var(--success-soft);
    color: var(--success-strong);
    border-left: 3px solid var(--success);
}

.alert-info {
    background: var(--primary-subtle);
    color: var(--primary-hover);
    border-left: 3px solid var(--primary);
}

.plan-summary {
    background: var(--primary-subtle);
    border: 1px solid var(--primary-light);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plan-summary strong {
    color: var(--primary);
}

.plan-summary .price {
    font-weight: 700;
    font-size: 18px;
}

.review-list {
    margin-bottom: 24px;
}

.review-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 14px;
}

.review-item:last-child {
    border-bottom: none;
}

.review-item .label {
    color: var(--text-secondary);
    font-weight: 500;
}

.review-item .value {
    text-align: right;
    word-break: break-word;
    max-width: 60%;
}

/* Success page */
.success-hero {
    text-align: center;
    padding: 48px;
}

.success-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 24px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.success-hero h1 {
    font-size: 36px;
    margin-bottom: 12px;
}

.success-hero p {
    color: var(--text-secondary);
    font-size: 17px;
    margin-bottom: 32px;
}

.success-hero strong {
    color: var(--text);
}

.success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.success-plan-info {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-top: 32px;
    text-align: left;
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 960px) {
    .hero h1 {
        font-size: 44px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-visual {
        justify-content: center;
    }

    .hero-screenshot {
        transform: none;
        margin: 0 auto;
        max-width: 520px;
    }

    .hero-screenshot:hover {
        transform: translateY(-4px);
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .steps::before {
        display: none;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .plans {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
    }

    .plan.featured {
        transform: none;
    }

    .plan.featured:hover {
        transform: translateY(-6px);
    }

    .testimonial-split {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .testimonial-brand {
        padding: 36px 24px;
        gap: 18px;
    }

    .testimonial-brand-name {
        font-size: 22px;
    }

    .testimonial-content {
        padding: 28px;
    }

    .testimonial-tab {
        padding: 10px 14px;
        font-size: 13px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .section-head h2 {
        font-size: 34px;
    }
}

@media (max-width: 700px) {

    .main-nav,
    .header-actions .btn:not(.btn-primary) {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .header-actions {
        gap: 8px;
    }

    .theme-toggle {
        width: auto;
        padding: 4px;
        justify-content: center;
    }

    .page-header-actions {
        gap: 8px;
    }

    .site-header.nav-open {
        height: auto;
    }

    .site-header.nav-open .main-nav {
        display: block;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 20px 24px;
    }

    .site-header.nav-open .main-nav ul {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .hero {
        padding: 48px 0 60px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p.lead {
        font-size: 16px;
    }

    section {
        padding: 60px 0;
    }

    .section-head h2 {
        font-size: 28px;
    }

    .section-head p {
        font-size: 16px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 32px 24px;
    }

    .form-card {
        padding: 32px 24px;
        border-radius: var(--radius);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-card h1 {
        font-size: 26px;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .steps {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   Legal pages (termos, privacidade, DPA)
   ========================================== */

.legal-main {
    padding: 48px 0 96px;
    background: var(--bg);
}

.legal-document {
    max-width: 1100px;
    margin: 0 auto;
}

.legal-header {
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
}

.legal-kicker {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

.legal-header h1 {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 10px;
    color: var(--text);
}

.legal-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.legal-meta span::before {
    content: "·";
    margin-right: 12px;
    color: var(--border-strong);
}

.legal-meta span:first-child::before {
    content: none;
}

.legal-lang {
    margin-top: 24px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.legal-lang a {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg);
    transition: all 0.15s ease;
}

.legal-lang a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.legal-lang a.is-active {
    background: var(--primary);
    color: var(--text-on-dark);
    border-color: var(--primary);
}

.legal-wrap {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 56px;
    align-items: start;
}

.legal-toc {
    position: sticky;
    top: 96px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.legal-toc-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.legal-toc ol {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc;
}

.legal-toc li {
    counter-increment: toc;
    margin-bottom: 4px;
}

.legal-toc a {
    display: block;
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.45;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    border-left: 2px solid transparent;
    transition: all 0.15s ease;
}

.legal-toc a:hover {
    color: var(--primary);
    background: var(--primary-subtle);
    border-left-color: var(--primary);
}

.legal-content {
    max-width: 740px;
    font-size: 15.5px;
    line-height: 1.75;
    color: var(--text);
}

.legal-content > section {
    margin-bottom: 44px;
    scroll-margin-top: 100px;
}

.legal-content h2 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
    padding-top: 4px;
    color: var(--text);
}

.legal-content h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 28px 0 10px;
    color: var(--text);
}

.legal-content p {
    margin-bottom: 14px;
    color: var(--text-secondary);
}

.legal-content ul,
.legal-content ol {
    padding-left: 24px;
    margin: 12px 0 16px;
}

.legal-content ul li,
.legal-content ol li {
    margin-bottom: 6px;
    color: var(--text-secondary);
    list-style: disc;
}

.legal-content ol li {
    list-style: decimal;
}

.legal-content strong {
    color: var(--text);
    font-weight: 700;
}

.legal-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-content a:hover {
    opacity: 0.8;
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 14.5px;
}

.legal-content table th,
.legal-content table td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.legal-content table th {
    background: var(--bg-alt);
    font-weight: 700;
    color: var(--text);
    border-bottom: 2px solid var(--border-strong);
}

.legal-content table td {
    color: var(--text-secondary);
}

.legal-callout {
    background: var(--primary-subtle);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin: 16px 0 20px;
    font-size: 14.5px;
    color: var(--text-secondary);
}

.legal-callout strong {
    color: var(--primary);
}

.legal-footer-note {
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
}

@media (max-width: 900px) {
    .legal-main {
        padding: 24px 0 64px;
    }

    .legal-header h1 {
        font-size: 30px;
    }

    .legal-subtitle {
        font-size: 16px;
    }

    .legal-wrap {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .legal-toc {
        position: static;
        max-height: none;
    }

    .legal-content {
        font-size: 15px;
    }

    .legal-content h2 {
        font-size: 20px;
    }
}