/* ==========================================
   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);

    --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;
}

/* ---------- 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;
    }
}

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: rgba(255, 255, 255, 0.92);
    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;
}

.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 visual — screenshot real da ferramenta */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.hero-screenshot {
    display: block;
    width: 100%;
    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);
}

/* ---------- 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%);
}

.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: #047857;
    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;
}

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

.testimonial {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.testimonial-quote {
    font-size: 15px;
    color: var(--text);
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.testimonial-quote::before {
    content: '"';
    position: absolute;
    left: -6px;
    top: -12px;
    font-size: 48px;
    color: var(--primary);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-author .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.testimonial-author strong {
    display: block;
    font-size: 14px;
}

.testimonial-author small {
    color: var(--text-secondary);
    font-size: 13px;
}

/* ---------- 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;
}

/* ---------- CTA final ---------- */
.final-cta {
    background: linear-gradient(135deg, var(--primary) 0%, #B91717 100%);
    border-radius: var(--radius-lg);
    padding: 80px 40px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.final-cta h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    position: relative;
}

.final-cta p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
    position: relative;
}

.final-cta .btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.final-cta .btn-primary:hover {
    background: var(--bg-alt);
    transform: translateY(-2px);
}

/* ---------- 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-main {
    flex: 1;
    padding: 60px 0 80px;
}

.form-card {
    background: var(--bg);
    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);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.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: #FEE2E2;
    color: #991B1B;
    border-left: 3px solid var(--error);
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    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-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);
    }

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

    .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;
    }

    .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;
    }

    .final-cta {
        padding: 48px 24px;
    }

    .final-cta h2 {
        font-size: 28px;
    }

    .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;
    }
}