/* ============================================================
   Custom Properties — Light theme, teal brand
   ============================================================ */
:root {
    /* MotionOptima brand palette */
    --mo-teal:        #1D9E75;
    --mo-teal-dark:   #085041;
    --mo-teal-light:  #9FE1CB;
    --mo-teal-faint:  #E1F5EE;

    /* Generic primary aliases */
    --color-primary:       var(--mo-teal);
    --color-primary-dark:  var(--mo-teal-dark);
    --color-primary-light: var(--mo-teal-light);
    --color-primary-faint: var(--mo-teal-faint);

    /* Legacy names — map onto the new palette so existing styles keep working */
    --brand:        var(--mo-teal);
    --brand-dark:   var(--mo-teal-dark);
    --brand-light:  var(--mo-teal-light);
    --brand-50:     var(--mo-teal-faint);

    --bg:           #FFFFFF;
    --bg-alt:       #F8FAFB;
    --text:         #0F172A;
    --text-muted:   #64748B;
    --border:       #E2E8F0;
    --success:      #059669;
    --error:        #DC2626;
    --card-shadow:  0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --card-hover:   0 8px 24px rgba(0, 0, 0, 0.08);
    --font:         -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --radius:       12px;
    --transition:   0.2s ease;
}

::selection    { background: var(--mo-teal-light); color: var(--mo-teal-dark); }
:focus-visible { outline: 2px solid var(--mo-teal); outline-offset: 2px; }

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--brand);
    text-decoration: none;
}

a:hover {
    color: var(--brand-dark);
}

/* ============================================================
   Layout
   ============================================================ */
.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 96px 0;
}

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

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    color: var(--text);
}

.section-subtitle {
    color: var(--text-muted);
    text-align: center;
    max-width: 520px;
    margin: 0 auto 52px;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ============================================================
   Header
   ============================================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}

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

.logo {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.01em;
}

.logo-mark {
    color: var(--brand);
}

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

.nav-link {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    padding: 8px 14px;
    border-radius: 8px;
    transition: background var(--transition), color var(--transition);
    text-decoration: none;
}

.nav-link:hover {
    background: var(--brand-50);
    color: var(--brand-dark);
}

.btn-sm {
    padding: 9px 18px;
    font-size: 0.88rem;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

.btn-primary:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    box-shadow: 0 4px 16px rgba(29, 158, 117, 0.3);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--brand);
    border-color: var(--brand);
}

.btn-outline:hover {
    background: var(--brand);
    color: #fff;
}

/* ============================================================
   Success / Error Banners
   ============================================================ */
.success-banner {
    background: #ECFDF5;
    border-bottom: 1px solid #A7F3D0;
    color: #065F46;
    padding: 16px 24px;
    text-align: center;
    font-weight: 500;
    font-size: 0.95rem;
}

.error-banner {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
    padding: 14px 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 28px;
    font-size: 0.9rem;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
    min-height: 88vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    background: linear-gradient(170deg, var(--brand-50) 0%, var(--bg) 50%, var(--bg-alt) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -300px;
    right: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(29, 158, 117, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(29, 158, 117, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: clamp(2rem, 5.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -0.035em;
    margin-bottom: 24px;
    color: var(--text);
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.75;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-dark);
    background: var(--brand-50);
    padding: 8px 14px;
    border-radius: 999px;
    margin-bottom: 24px;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.hero-trust {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.hero-trust .dot {
    color: var(--brand-light);
}

/* ============================================================
   Problem grid
   ============================================================ */
.problem-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 52px;
}

@media (min-width: 768px) {
    .problem-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.problem-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--card-shadow);
    border-top: 4px solid var(--brand);
}

.problem-stat {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 14px;
}

.problem-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.problem-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================================
   Feature rows (deep feature sections)
   ============================================================ */
.feature-rows {
    display: grid;
    gap: 20px;
    margin-top: 52px;
}

.feature-row {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px;
    box-shadow: var(--card-shadow);
    transition: box-shadow var(--transition);
}

.feature-row:hover {
    box-shadow: var(--card-hover);
}

.feature-row-alt {
    background: var(--brand-50);
    border-color: var(--brand-light);
}

.feature-row-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-dark);
    background: #fff;
    border: 1px solid var(--brand-light);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.feature-row h3 {
    font-size: clamp(1.2rem, 2.4vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.3;
}

.feature-row-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 20px;
    max-width: 780px;
}

.feature-row-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

@media (min-width: 720px) {
    .feature-row-list {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 28px;
    }
}

.feature-row-list li {
    position: relative;
    padding-left: 26px;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.6;
}

.feature-row-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--brand);
    background-image: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
    box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.12);
}

.feature-row-list li strong {
    color: var(--text);
    font-weight: 700;
}

/* ============================================================
   Industries
   ============================================================ */
.industries {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 820px;
    margin: 40px auto 20px;
}

.industry-pill {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 999px;
    box-shadow: var(--card-shadow);
    transition: all var(--transition);
}

.industry-pill:hover {
    background: var(--brand-50);
    color: var(--brand-dark);
    border-color: var(--brand-light);
    transform: translateY(-2px);
}

.industries-footnote {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 560px;
    margin: 20px auto 0;
    font-style: italic;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
    display: grid;
    gap: 12px;
    margin-top: 40px;
}

.faq-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 4px 22px;
    box-shadow: var(--card-shadow);
    transition: box-shadow var(--transition);
}

.faq-item[open] {
    box-shadow: var(--card-hover);
    border-color: var(--brand-light);
}

.faq-item summary {
    cursor: pointer;
    padding: 18px 30px 18px 0;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    list-style: none;
    position: relative;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--brand);
    line-height: 1;
    transition: transform var(--transition);
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    padding: 0 0 20px;
    margin: 0;
}

/* ============================================================
   Nav anchor links — hide on mobile to avoid crowding
   ============================================================ */
@media (max-width: 820px) {
    .nav-link-anchor {
        display: none;
    }
}

/* ============================================================
   How It Works
   ============================================================ */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 52px;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    box-shadow: var(--card-shadow);
    transition: box-shadow var(--transition), transform var(--transition);
}

.step:hover {
    box-shadow: var(--card-hover);
    transform: translateY(-4px);
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--brand-light);
    line-height: 1;
    margin-bottom: 20px;
    font-variant-numeric: tabular-nums;
}

.step h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.step p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ============================================================
   Feature Cards
   ============================================================ */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 52px;
}

@media (min-width: 600px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--card-shadow);
    transition: box-shadow var(--transition), transform var(--transition);
}

.feature-card:hover {
    box-shadow: var(--card-hover);
    transform: translateY(-4px);
}

.feature-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--brand);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ============================================================
   Stats
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
}

@media (min-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat {
    padding: 44px 28px;
    border-radius: var(--radius);
    background: var(--bg);
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
}

.stat-number {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--brand);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ============================================================
   Contact Form
   ============================================================ */
.contact-form {
    max-width: 640px;
    margin: 0 auto;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 36px;
    box-shadow: var(--card-shadow);
}

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

@media (min-width: 600px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.required {
    color: var(--brand);
}

.form-group input,
.form-group textarea {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 13px 16px;
    color: var(--text);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94A3B8;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.15);
}

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.field-error {
    font-size: 0.8rem;
    color: var(--error);
    min-height: 1.2em;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    margin-top: 4px;
    border-radius: 8px;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 48px 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.footer-brand {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
}

.footer-email a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-email a:hover {
    color: var(--brand);
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.78rem;
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* ============================================================
   Mobile
   ============================================================ */
@media (max-width: 480px) {
    .section {
        padding: 64px 0;
    }

    .hero {
        min-height: 80vh;
        padding: 64px 0;
    }

    .btn {
        padding: 12px 20px;
    }

    .contact-form {
        padding: 28px 20px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .nav-link {
        display: none;
    }
}

/* ============================================================
   Pricing section — home page
   (styles live in plan-card.css; shared across home/register/billing)
   ============================================================ */
