/* =============================================================
   MTO LANDING PAGE
   Light, clean, premium. Uses existing design-system colors.
   Font: Space Grotesk (display) + Inter (body, already loaded)
   ============================================================= */

/* ---------- Landing-specific variables ---------- */
:root {
    --lp-font-display: 'Space Grotesk', 'Inter', sans-serif;
    --lp-nav-height: 72px;
    --lp-surface-warm: #F1F5F9;
    --lp-gradient-start: var(--primary);
    --lp-gradient-end: var(--teal);
}

.lp {
    background: #fff;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* ---------- Reveal animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scroll--visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------- Shared elements ---------- */
.lp-label {
    display: inline-block;
    font-family: var(--lp-font-display);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--primary);
    margin-bottom: 12px;
}

.lp-heading {
    font-family: var(--lp-font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-bottom: 48px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.lp-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--lp-nav-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background 0.35s ease, box-shadow 0.35s ease;
}

.lp-nav--scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 0 var(--border-light), 0 2px 8px rgba(0,0,0,0.04);
}

.lp-nav__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lp-nav__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.lp-nav__logo img {
    height: 44px;
    width: auto;
    transition: opacity 0.2s ease;
}

.lp-nav__logo:hover img {
    opacity: 0.8;
}

.lp-nav__links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lp-nav__link {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}

.lp-nav__link:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.lp-nav__link--cta {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    margin-left: 4px;
}

.lp-nav__link--cta:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(46, 122, 184, 0.25);
}

/* ============================================================
   HERO — Soft gradient, big typography
   ============================================================ */
.lp-hero {
    position: relative;
    padding: calc(var(--lp-nav-height) + 72px) 24px 96px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-body) 0%, #fff 60%);
    overflow: hidden;
}

/* Subtle decorative pattern */
.lp-hero__bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(46, 122, 184, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(20, 184, 166, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.lp-hero__bg-pattern::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--border-light) 1px, transparent 1px),
                       linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: 0.3;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 35%, black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 35%, black 20%, transparent 100%);
}

.lp-hero__inner {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    z-index: 1;
}

.lp-hero__title {
    font-family: var(--lp-font-display);
    font-size: clamp(2rem, 5.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.lp-hero__title-accent {
    background: linear-gradient(135deg, var(--primary), var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
}

.lp-hero__sub {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 36px;
}

.lp-hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.lp-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--lp-font-display);
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
    min-height: 48px;
}

.lp-hero__btn .material-symbols-outlined {
    font-size: 18px;
    transition: transform 0.25s ease;
}

.lp-hero__btn:hover .material-symbols-outlined {
    transform: translateX(3px);
}

.lp-hero__btn--primary {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(46, 122, 184, 0.25);
}

.lp-hero__btn--primary:hover {
    background: linear-gradient(180deg, var(--primary-dark) 0%, #174569 100%);
    color: #fff;
    box-shadow: 0 8px 30px rgba(46, 122, 184, 0.35);
    transform: translateY(-2px);
}

.lp-hero__btn--outline {
    background: #fff;
    color: var(--text-primary);
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.lp-hero__btn--outline:hover {
    color: var(--primary);
    border-color: var(--primary-light);
    background: var(--bg-body);
}

/* Trust bar */
.lp-hero__trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.lp-hero__trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.lp-hero__trust-item .material-symbols-outlined {
    font-size: 16px;
    color: var(--border);
}

.lp-hero__trust-divider {
    width: 1px;
    height: 16px;
    background: var(--border);
}

/* ============================================================
   PROCESS — Slightly warm background, timeline-style
   ============================================================ */
.lp-process {
    padding: 96px 24px;
    background: var(--lp-surface-warm);
}

.lp-process__inner {
    max-width: 660px;
    margin: 0 auto;
}

.lp-process__timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lp-process__step {
    display: flex;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid #E2E8F0;
    align-items: flex-start;
}

.lp-process__step:last-child {
    border-bottom: none;
}

.lp-process__num {
    font-family: var(--lp-font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--border);
    line-height: 1;
    min-width: 52px;
    transition: color 0.3s ease;
}

.lp-process__step:hover .lp-process__num {
    color: var(--primary);
}

.lp-process__content h3 {
    font-family: var(--lp-font-display);
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.lp-process__content p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ============================================================
   FEATURES — White background, asymmetric grid
   ============================================================ */
.lp-features {
    padding: 96px 24px;
    background: #fff;
}

.lp-features__inner {
    max-width: 1000px;
    margin: 0 auto;
}

.lp-features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.lp-feat {
    background: var(--bg-body);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 28px 24px;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.lp-feat:hover {
    border-color: var(--border);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

.lp-feat--wide {
    grid-column: span 2;
}

.lp-feat__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.lp-feat__icon .material-symbols-outlined {
    font-size: 22px;
}

.lp-feat__icon--amber  { background: #FFFBEB; color: var(--warning); }
.lp-feat__icon--teal   { background: #F0FDFA; color: var(--teal); }
.lp-feat__icon--blue   { background: #EFF6FF; color: var(--primary); }
.lp-feat__icon--green  { background: var(--success-bg); color: var(--success); }
.lp-feat__icon--rose   { background: #FFF1F2; color: #E11D48; }
.lp-feat__icon--navy   { background: #EEF2FF; color: #6366F1; }

.lp-feat h3 {
    font-family: var(--lp-font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.lp-feat p {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ============================================================
   MISSION — Full-width quote
   ============================================================ */
.lp-mission {
    padding: 80px 24px;
    background: var(--lp-surface-warm);
}

.lp-mission__inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.lp-mission__mark {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 120px;
    line-height: 0.6;
    color: var(--border);
    margin-bottom: 8px;
    user-select: none;
}

.lp-mission__quote {
    font-family: var(--lp-font-display);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 400;
    line-height: 1.65;
    color: var(--text-secondary);
    font-style: normal;
    margin: 0 0 20px;
    padding: 0;
    border: none;
}

.lp-mission__source {
    font-family: var(--lp-font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-style: normal;
}

/* ============================================================
   CTA — Branded gradient section
   ============================================================ */
.lp-cta {
    padding: 96px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--teal) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.lp-cta::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.lp-cta__inner {
    position: relative;
    max-width: 520px;
    margin: 0 auto;
    z-index: 1;
}

.lp-cta__title {
    font-family: var(--lp-font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.lp-cta__desc {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255,255,255,0.85);
    margin-bottom: 32px;
}

.lp-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--lp-font-display);
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    background: #fff;
    color: var(--primary);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 48px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.lp-cta__btn:hover {
    background: #F8FAFC;
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.lp-cta__btn .material-symbols-outlined {
    font-size: 18px;
    transition: transform 0.25s ease;
}

.lp-cta__btn:hover .material-symbols-outlined {
    transform: translateX(3px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.lp-footer {
    padding: 28px 24px;
    background: #FAFBFC;
    border-top: 1px solid var(--border-light);
}

.lp-footer__inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.lp-footer__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.lp-footer__icon {
    height: 18px;
    width: auto;
    opacity: 0.4;
}

.lp-footer__links {
    display: flex;
    gap: 20px;
}

.lp-footer__links a {
    font-size: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.lp-footer__links a:hover {
    color: var(--text-primary);
}

.lp-footer__credit {
    font-size: 11px;
    color: var(--text-placeholder);
}

.lp-footer__credit a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.lp-footer__credit a:hover {
    color: var(--primary);
}

/* ============================================================
   RESPONSIVE — Mobile-first adjustments
   ============================================================ */

/* -- Tablet (768px and below) -- */
@media (max-width: 768px) {
    .lp-nav__link--hide-sm {
        display: none;
    }

    .lp-hero {
        padding: calc(var(--lp-nav-height) + 48px) 20px 72px;
    }

    .lp-hero__actions {
        margin-bottom: 40px;
    }

    .lp-hero__trust {
        gap: 12px;
    }

    .lp-hero__trust-divider {
        display: none;
    }

    .lp-process {
        padding: 72px 20px;
    }

    .lp-heading {
        margin-bottom: 36px;
    }

    .lp-process__step {
        gap: 18px;
        padding: 22px 0;
    }

    .lp-process__num {
        font-size: 26px;
        min-width: 40px;
    }

    .lp-features {
        padding: 72px 20px;
    }

    .lp-features__grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .lp-feat--wide {
        grid-column: span 2;
    }

    .lp-mission {
        padding: 64px 20px;
    }

    .lp-mission__mark {
        font-size: 80px;
    }

    .lp-cta {
        padding: 72px 20px;
    }

    .lp-footer__inner {
        flex-direction: column;
        text-align: center;
    }
}

/* -- Mobile (480px and below) -- */
@media (max-width: 480px) {
    .lp-nav__inner {
        padding: 0 16px;
    }

    .lp-nav__link {
        padding: 6px 10px;
        font-size: 12px;
    }

    .lp-hero {
        padding: calc(var(--lp-nav-height) + 36px) 16px 56px;
    }

    .lp-hero__actions {
        flex-direction: column;
        gap: 10px;
    }

    .lp-hero__btn {
        width: 100%;
        justify-content: center;
    }

    .lp-hero__trust {
        flex-direction: column;
        gap: 8px;
    }

    .lp-features__grid {
        grid-template-columns: 1fr;
    }

    .lp-feat--wide {
        grid-column: span 1;
    }

    .lp-feat {
        padding: 22px 20px;
    }

    .lp-process__step {
        gap: 14px;
    }

    .lp-process__num {
        font-size: 22px;
        min-width: 32px;
    }
}

/* ============================================================
   LEGAL PAGES (preserved)
   ============================================================ */
.legal-page {
    min-height: 100vh;
    background: var(--bg-body);
}

.legal-page__content {
    max-width: 780px;
    margin: 0 auto;
    padding: 120px 24px 60px;
}

.legal-page__back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 24px;
}

.legal-page__back:hover {
    color: var(--primary);
}

.legal-page__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.legal-page__updated {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.legal-page__body {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
}

.legal-page__body h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 32px 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-light);
}

.legal-page__body h2:first-child {
    margin-top: 0;
}

.legal-page__body h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 20px 0 8px;
}

.legal-page__body p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.legal-page__body ul, .legal-page__body ol {
    margin: 8px 0 16px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.legal-page__body li {
    margin-bottom: 4px;
    font-size: 14px;
}

.legal-page__body strong {
    color: var(--text-primary);
    font-weight: 600;
}

.legal-page__body a {
    color: var(--text-link);
}

.legal-page__body table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 20px;
    font-size: 13px;
}

.legal-page__body table th,
.legal-page__body table td {
    text-align: left;
    padding: 8px 12px;
    border: 1px solid var(--border);
    font-size: 13px;
}

.legal-page__body table th {
    background: var(--bg-muted);
    font-weight: 600;
    color: var(--text-primary);
}

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

/* ============================================================
   ERROR PAGES (preserved)
   ============================================================ */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
    text-align: center;
    padding: 24px;
}

.error-page__inner {
    max-width: 420px;
}

.error-page__code {
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary), var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.error-page__title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.error-page__desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.error-page__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    background: var(--primary);
    color: #fff;
    transition: background 0.2s ease;
}

.error-page__btn:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* ============================================================
   OLD NAV/FOOTER — used by privacy.php, terms.php
   ============================================================ */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.97);
    border-bottom: 1px solid var(--border-light);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.landing-nav__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.landing-nav__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.landing-nav__logo img {
    max-width: 120px;
    height: auto;
}

.landing-nav__links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.landing-nav__link {
    padding: 7px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.landing-nav__link:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.landing-nav__link--primary {
    background: var(--primary);
    color: #fff;
}

.landing-nav__link--primary:hover {
    background: var(--primary-dark);
    color: #fff;
}

.landing-footer {
    padding: 32px 24px;
    background: #FAFBFC;
    border-top: 1px solid var(--border);
}

.landing-footer__inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.landing-footer__left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.landing-footer__left img {
    height: 20px;
    width: auto;
    opacity: 0.5;
}

.landing-footer__links {
    display: flex;
    gap: 20px;
}

.landing-footer__links a {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
}

.landing-footer__links a:hover {
    color: var(--text-primary);
}

/* Legal/error responsive */
@media (max-width: 768px) {
    .legal-page__body {
        padding: 24px 20px;
    }

    .legal-page__content {
        padding: 80px 16px 40px;
    }

    .landing-footer__inner {
        flex-direction: column;
        text-align: center;
    }
}
