/* AeroForge · Minimal SaaS landing adapter
   Runs after legacy landing.css. This is a visual-only first pass.
   All pricing text, destinations, IDs, event handlers and scroll hooks remain. */

body {
    background: var(--af-canvas);
    color: var(--af-ink);
    font-family: var(--font, 'Inter', -apple-system, sans-serif);
    line-height: 1.6;
}

a { color: var(--af-brand); }

.navbar {
    padding: 15px clamp(18px, 4vw, 64px);
    min-height: 74px;
    background: var(--af-surface);
    border-bottom: 1px solid var(--af-line);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.035);
    backdrop-filter: blur(14px);
}

html[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.96) !important;
    border-color: var(--af-line) !important;
}

.navbar-brand {
    color: var(--af-ink);
    letter-spacing: -0.045em;
    font-weight: 750;
}

.navbar-brand span { color: var(--af-brand); }
.navbar-links { gap: clamp(12px, 2vw, 28px); }
.navbar-links a { color: var(--af-ink-muted); font-weight: 550; }
.navbar-links a:hover { color: var(--af-ink); }

.btn {
    min-height: 41px;
    padding: 0.7rem 1.15rem;
    border-radius: var(--af-radius-sm);
    font-weight: 600;
    box-shadow: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary,
.btn-primary:hover {
    background: var(--af-action-primary);
    border: 1px solid var(--af-action-primary);
    color: var(--af-action-on-primary) !important;
}

.btn-primary:hover {
    background: var(--af-action-primary-hover);
    border-color: var(--af-action-primary-hover);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.15);
}

.btn-ghost {
    background: var(--af-surface);
    color: var(--af-ink);
    border: 1px solid var(--af-line-strong);
}

.btn-ghost:hover {
    color: var(--af-ink);
    border-color: var(--af-brand);
    background: var(--af-brand-tint);
}

.btn-lg {
    padding: 0.9rem 1.55rem;
    border-radius: var(--af-radius-md);
    font-size: 0.96rem;
}

.hero {
    min-height: min(810px, 100vh);
    padding: 150px 24px 86px;
}

.hero::before {
    background: radial-gradient(ellipse 62% 65% at 50% 12%, var(--af-brand-tint), transparent 80%);
}

.hero-badge {
    padding: 0.47rem 0.85rem;
    margin-bottom: 25px;
    color: var(--accent-light);
    background: var(--af-brand-tint);
    border: 1px solid var(--af-line);
    font-weight: 600;
    letter-spacing: 0;
}

.hero h1 {
    max-width: 860px;
    font-size: clamp(2.55rem, 5.7vw, 4.8rem);
    font-weight: 790;
    line-height: 1.095;
    letter-spacing: -0.058em;
    color: var(--af-ink);
    background: none;
    -webkit-text-fill-color: var(--af-ink);
}

html[data-theme="light"] .hero h1 {
    color: var(--af-ink) !important;
    background: none !important;
    -webkit-text-fill-color: var(--af-ink) !important;
}

.hero p {
    max-width: 700px;
    color: var(--af-ink-muted);
    line-height: 1.75;
    margin-bottom: 29px;
}

.hero-buttons { gap: 12px; }

.hero-stats {
    display: grid;
    width: min(100%, 820px);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 72px;
    padding: 26px 12px;
    background: var(--af-surface);
    border: 1px solid var(--af-line);
    border-radius: var(--af-radius-lg);
    box-shadow: var(--af-shadow);
}

.hero-stat + .hero-stat { border-left: 1px solid var(--af-line); }
.hero-stat .value {
    color: var(--af-ink);
    font-size: clamp(1.3rem, 2.3vw, 1.95rem);
    font-weight: 740;
    letter-spacing: -0.035em;
}
.hero-stat .label { color: var(--af-ink-subtle); font-weight: 500; }

.section {
    max-width: 1180px;
    padding: 82px 24px;
}

.section-label {
    color: var(--af-brand);
    font-weight: 700;
    letter-spacing: 0.095em;
}

.section-title {
    color: var(--af-ink);
    font-weight: 730;
    letter-spacing: -0.04em;
    line-height: 1.18;
}

.section-desc { color: var(--af-ink-muted); }

.features-grid,
.pricing-grid { gap: 16px; }

.feature-card,
.pricing-card,
.step {
    background: var(--af-surface);
    border: 1px solid var(--af-line);
    border-radius: var(--af-radius-lg);
    box-shadow: var(--af-shadow);
}

.feature-card {
    padding: 28px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease !important;
}

.feature-card::before { display: none; }

.feature-card:hover {
    transform: none;
    border-color: var(--af-line-strong);
    box-shadow: var(--af-shadow);
}

.feature-card h3,
.step h3 { color: var(--af-ink); font-weight: 680; }

.feature-card p,
.step p { color: var(--af-ink-muted); }

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 17px;
    border-radius: var(--af-radius-md);
    background: var(--af-brand-tint);
    font-size: 1.5rem;
}

.steps { gap: 16px; }

.step {
    padding: 26px 24px;
    text-align: left;
}

.step-num {
    width: 43px;
    height: 43px;
    margin-bottom: 18px;
    background: var(--af-brand-tint);
    color: var(--accent-light);
    border: 1px solid var(--af-line);
    font-size: 1.1rem;
}

.pricing-card { padding: 30px 27px; }

.pricing-card.featured {
    border-color: var(--af-brand);
    box-shadow: var(--af-shadow);
}

.pricing-card.featured::before {
    background: #4f46e5;
    color: white;
    letter-spacing: 0.06em;
}

.pricing-card .tier { color: var(--accent-light); letter-spacing: 0.035em; }

.pricing-card .price {
    color: var(--af-ink);
    font-weight: 740;
    letter-spacing: -0.04em;
}

.pricing-card .price span,
.pricing-card .price-desc { color: var(--af-ink-subtle); }

.pricing-card li { color: var(--af-ink-muted); }

.divider {
    background: var(--af-line);
    max-width: 1132px;
}

.af-final-cta {
    text-align: center;
    box-sizing: border-box;
}
.af-final-cta > .section-desc {
    margin: 16px auto 24px;
}
body > section.section:last-of-type {
    max-width: 1132px;
    margin: 16px auto 76px;
    border: 1px solid var(--af-line);
    border-radius: var(--af-radius-lg);
    background: var(--af-surface);
    box-shadow: var(--af-shadow);
}

.footer {
    border-color: var(--af-line);
    color: var(--af-ink-subtle);
}
.footer p { color: var(--af-ink-subtle); }
.footer a { color: var(--af-brand); }

/* Preserve the existing anchor links on small screens while keeping a CTA. */
@media (max-width: 900px) {
    .navbar { padding: 14px 22px; }
    .navbar-links { gap: 12px; }
    .navbar-links a[href^="#"] { display: none; }
}

@media (max-width: 768px) {
    .navbar-links {
        display: flex;
        align-items: center;
    }
    .hero { min-height: 0; padding: 142px 18px 65px; }
    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 0;
        margin-top: 52px;
        padding: 22px 12px;
    }
    .hero-stat:nth-child(3) { border-left: 0; }
    .section { padding: 68px 20px; }
    .pricing-grid { max-width: 520px; }
}

@media (max-width: 480px) {
    .navbar { padding: 12px 14px; gap: 8px; }
    .navbar-brand { font-size: 1.08rem; min-width: 0; }
    /* Preserve theme, language and Launch App without horizontal scrolling. */
    .navbar-links { min-width: 0; gap: 6px; flex-shrink: 0; }
    .navbar-links .af-lang-toggle { min-width: 48px; padding: 6px; gap: 4px; }
    .navbar-links > .af-theme-toggle { flex: 0 0 40px; }
    .navbar-links > a[href="/app"] { white-space: nowrap; }
    .navbar-links > a[href="/app"] {
        padding: 9px 11px;
        min-height: 36px;
        font-size: 0.77rem;
    }
    .hero h1 { font-size: clamp(2.5rem, 11vw, 3.35rem); }
    .hero-stats { gap: 18px 0; }
    .hero-stat .label { font-size: 0.68rem; }
    .hero-buttons { width: 100%; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
    .features-grid { grid-template-columns: minmax(0, 1fr); }
    .feature-card { padding: 23px; }
    .section { padding-inline: 17px; }
    .pricing-card { padding: 26px 20px; }
    /* Last CTA uses the same gutters and width as feature/pricing sections. */
    body > section.section:last-of-type {
        width: auto;
        max-width: none;
        margin: 0 17px 36px;
        padding: 44px 20px;
        box-sizing: border-box;
    }
    body > section.section:last-of-type .section-desc {
        max-width: 34ch;
        margin: 16px auto 24px;
    }
}

/* Page-wide mobile rhythm: cards/sections share gutters and CTA proportions. */
@media (max-width: 768px) {
    body > section.section:last-of-type {
        width: auto;
        box-sizing: border-box;
        margin: 24px 20px 44px;
        padding: 48px 24px;
    }
    body > section.section:last-of-type .section-desc {
        margin: 16px auto 24px;
    }
    body > section.section:last-of-type > .btn {
        min-height: 44px;
        padding: 10px 18px;
        margin: 0 auto;
    }
}
@media (max-width: 480px) {
    body > section.section:last-of-type {
        margin-inline: 17px;
        padding: 44px 18px;
    }
}

/* Compact navbar CTA: matching 44px touch height, no wrapped two-line text. */
.af-nav-launch-short { display: none; }
.navbar-links .af-nav-launch {
    min-height: 44px;
    height: 44px;
    box-sizing: border-box;
    white-space: nowrap;
}
@media (max-width: 480px) {
    .navbar-links .af-nav-launch,
    .navbar-links > .af-theme-toggle,
    .navbar-links > .af-lang-toggle {
        min-height: 44px;
        height: 44px;
        box-sizing: border-box;
    }
    .navbar-links .af-nav-launch {
        padding-inline: 10px;
        gap: 6px;
    }
    .navbar-links .af-nav-launch-full { display: none; }
    .navbar-links .af-nav-launch-short { display: inline; }
    .navbar-links > .af-theme-toggle { flex-basis: 40px; }
}
