/* ==========================================================
   Bond Home Pros -- marketing site design system
   Scoped entirely to the public site (home, and shared nav/footer
   chrome). Deliberately separate from style.css (the application's
   design system) so this redesign cannot affect the dashboard.
   ========================================================== */

:root {
    /* Brand palette. Primary matches the application's existing
       --color-primary (#2563eb) so the transition from marketing site
       -> login -> app reads as one continuous brand, not a handoff
       between two different products. */
    --mkt-primary: #2563eb;
    --mkt-primary-dark: #1d4ed8;
    --mkt-primary-light: #eff4ff;
    --mkt-secondary: #0f172a;
    --mkt-accent: #7c3aed;
    --mkt-accent-light: #f3eeff;
    --mkt-success: #16a34a;
    --mkt-warning: #d97706;
    --mkt-error: #dc2626;

    --mkt-bg: #ffffff;
    --mkt-surface: #f8fafc;
    --mkt-surface-raised: #ffffff;
    --mkt-text: #0f172a;
    --mkt-text-muted: #64748b;
    --mkt-border: #e2e8f0;

    --mkt-radius-sm: 8px;
    --mkt-radius-md: 14px;
    --mkt-radius-lg: 20px;
    --mkt-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --mkt-shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
    --mkt-shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);

    --mkt-container: 1160px;
    --mkt-space-1: 4px;
    --mkt-space-2: 8px;
    --mkt-space-3: 16px;
    --mkt-space-4: 24px;
    --mkt-space-5: 40px;
    --mkt-space-6: 64px;
    --mkt-space-7: 96px;
}

:root[data-theme="dark"] {
    --mkt-bg: #0b0f19;
    --mkt-surface: #111827;
    --mkt-surface-raised: #151d2e;
    --mkt-text: #e5e7eb;
    --mkt-text-muted: #94a3b8;
    --mkt-border: #1f2937;
    --mkt-primary-light: #16223f;
    --mkt-accent-light: #241a3d;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --mkt-bg: #0b0f19;
        --mkt-surface: #111827;
        --mkt-surface-raised: #151d2e;
        --mkt-text: #e5e7eb;
        --mkt-text-muted: #94a3b8;
        --mkt-border: #1f2937;
        --mkt-primary-light: #16223f;
        --mkt-accent-light: #241a3d;
    }
}

/* ---------------- Base / typography ---------------- */

.mkt * { box-sizing: border-box; }

.mkt {
    background: var(--mkt-bg);
    color: var(--mkt-text);
    /* System-font stack, not a webfont: zero extra network requests,
       no render-blocking @font-face, no flash-of-unstyled-text --
       every platform's default UI font already reads as "modern
       software" (this is the same family San Francisco / Segoe UI /
       Inter-on-Linux users see in Linear, Notion, Vercel). */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    margin: 0;
}

.mkt h1, .mkt h2, .mkt h3, .mkt h4 {
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--mkt-text);
}

.mkt-hero-title {
    font-size: clamp(2.25rem, 4.5vw, 3.75rem);
    line-height: 1.08;
    font-weight: 800;
}

.mkt-h1 { font-size: clamp(1.875rem, 3vw, 2.5rem); line-height: 1.15; }
.mkt-h2 { font-size: 1.5rem; line-height: 1.3; font-weight: 600; }
.mkt-body { font-size: 1.0625rem; line-height: 1.65; color: var(--mkt-text); }
.mkt-caption { font-size: 0.875rem; line-height: 1.5; color: var(--mkt-text-muted); font-weight: 500; }
.mkt-lede { font-size: 1.1875rem; line-height: 1.6; color: var(--mkt-text-muted); }

.mkt-eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mkt-primary);
    margin-bottom: var(--mkt-space-2);
}

.mkt a { color: var(--mkt-primary); text-decoration: none; }
.mkt a:hover { text-decoration: underline; }

.mkt-container {
    max-width: var(--mkt-container);
    margin: 0 auto;
    padding: 0 var(--mkt-space-4);
}

.mkt-section { padding: var(--mkt-space-7) 0; }
.mkt-section-alt { background: var(--mkt-surface); }

.mkt-section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--mkt-space-6);
}

/* ---------------- Buttons ---------------- */

.mkt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--mkt-radius-sm);
    font-size: 0.9375rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
    text-decoration: none;
    line-height: 1;
}
.mkt-btn:hover { text-decoration: none; }
.mkt-btn:active { transform: translateY(1px); }
.mkt-btn:focus-visible { outline: 2px solid var(--mkt-primary); outline-offset: 2px; }

/* Every state pinned explicitly (:link/:visited/:hover/:active/:focus) so
   a visited/active anchor can never fall back to an invisible color --
   the default UA/reset stylesheet for :visited or :active links is not
   allowed to win here. */
.mkt-btn-primary,
.mkt-btn-primary:link,
.mkt-btn-primary:visited {
    background: var(--mkt-primary);
    color: #fff;
    box-shadow: var(--mkt-shadow-sm);
}
.mkt-btn-primary:hover,
.mkt-btn-primary:active,
.mkt-btn-primary:focus {
    background: var(--mkt-primary-dark);
    color: #fff;
    box-shadow: var(--mkt-shadow-md);
}

.mkt-btn-secondary,
.mkt-btn-secondary:link,
.mkt-btn-secondary:visited {
    background: var(--mkt-surface-raised);
    color: var(--mkt-text);
    border-color: var(--mkt-border);
}
.mkt-btn-secondary:hover,
.mkt-btn-secondary:active,
.mkt-btn-secondary:focus {
    border-color: var(--mkt-primary);
    color: var(--mkt-primary);
    background: var(--mkt-surface-raised);
}

.mkt-btn-ghost,
.mkt-btn-ghost:link,
.mkt-btn-ghost:visited {
    background: transparent;
    color: var(--mkt-text);
}
.mkt-btn-ghost:hover,
.mkt-btn-ghost:active,
.mkt-btn-ghost:focus {
    background: var(--mkt-surface);
    color: var(--mkt-text);
}

.mkt-btn-lg { padding: 14px 28px; font-size: 1rem; }
.mkt-btn-disabled { opacity: 0.55; cursor: default; pointer-events: none; }
.mkt-btn-block { width: 100%; }

/* ---------------- Navbar ---------------- */

.mkt-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: color-mix(in srgb, var(--mkt-bg) 88%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--mkt-border);
}

.mkt-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.mkt-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.0625rem;
    color: var(--mkt-text);
}

.mkt-logo-mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--mkt-primary), var(--mkt-accent));
    display: inline-block;
}

.mkt-nav-links {
    display: flex;
    align-items: center;
    gap: var(--mkt-space-5);
}

.mkt-nav-links a {
    color: var(--mkt-text-muted);
    font-size: 0.9375rem;
    font-weight: 500;
}
.mkt-nav-links a:hover { color: var(--mkt-text); text-decoration: none; }

.mkt-nav-actions { display: flex; align-items: center; gap: var(--mkt-space-3); }

.mkt-nav-toggle-checkbox { display: none; }

.mkt-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 8px;
    border: 1px solid var(--mkt-border);
    background: var(--mkt-surface-raised);
    cursor: pointer;
}
.mkt-nav-toggle svg { width: 18px; height: 18px; }

.mkt-nav-links-mobile-only { display: none; }

/* ---------------- Hero ---------------- */

.mkt-hero {
    padding: var(--mkt-space-7) 0 var(--mkt-space-6);
    text-align: center;
}

.mkt-hero-sub {
    max-width: 620px;
    margin: var(--mkt-space-4) auto 0;
    font-size: 1.1875rem;
    color: var(--mkt-text-muted);
}

.mkt-hero-actions {
    display: flex;
    justify-content: center;
    gap: var(--mkt-space-3);
    margin-top: var(--mkt-space-5);
    flex-wrap: wrap;
}

.mkt-hero-note {
    margin-top: var(--mkt-space-3);
    font-size: 0.8125rem;
    color: var(--mkt-text-muted);
}

.mkt-hero-visual {
    margin: var(--mkt-space-6) auto 0;
    max-width: 980px;
}

/* ---------------- Feature cards ---------------- */

.mkt-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--mkt-space-4);
}

.mkt-card {
    background: var(--mkt-surface-raised);
    border: 1px solid var(--mkt-border);
    border-radius: var(--mkt-radius-md);
    padding: var(--mkt-space-4);
    box-shadow: var(--mkt-shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.mkt-card:hover { box-shadow: var(--mkt-shadow-md); transform: translateY(-2px); }

.mkt-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--mkt-primary-light);
    color: var(--mkt-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--mkt-space-3);
}
.mkt-feature-icon svg { width: 20px; height: 20px; }

.mkt-feature-title { font-size: 1.0625rem; font-weight: 600; margin-bottom: 6px; }
.mkt-feature-desc { font-size: 0.9375rem; color: var(--mkt-text-muted); line-height: 1.55; }

/* ---------------- How it works ---------------- */

.mkt-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--mkt-space-5);
    position: relative;
}

.mkt-step { text-align: center; padding: 0 var(--mkt-space-3); }

.mkt-step-num {
    width: 44px;
    height: 44px;
    margin: 0 auto var(--mkt-space-3);
    border-radius: 50%;
    background: var(--mkt-secondary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.0625rem;
}

.mkt-step-title { font-weight: 600; font-size: 1.0625rem; margin-bottom: 6px; }
.mkt-step-desc { color: var(--mkt-text-muted); font-size: 0.9375rem; }

/* ---------------- Product screenshot placeholders ---------------- */

.mkt-shot-frame {
    border-radius: var(--mkt-radius-lg);
    border: 1px solid var(--mkt-border);
    background: var(--mkt-surface);
    box-shadow: var(--mkt-shadow-lg);
    overflow: hidden;
}

.mkt-shot-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--mkt-border);
    background: var(--mkt-surface-raised);
}
.mkt-shot-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mkt-border); }

.mkt-shot-body {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: var(--mkt-space-2);
    color: var(--mkt-text-muted);
    background:
        repeating-linear-gradient(135deg, transparent, transparent 22px, var(--mkt-border) 22px, var(--mkt-border) 23px),
        var(--mkt-surface);
}
.mkt-shot-label { font-weight: 600; font-size: 0.9375rem; color: var(--mkt-text); }
.mkt-shot-caption { font-size: 0.8125rem; }

.mkt-shots-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--mkt-space-4);
}

/* ---------------- Pricing ---------------- */

.mkt-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--mkt-space-4);
    align-items: stretch;
}

.mkt-price-card {
    background: var(--mkt-surface-raised);
    border: 1px solid var(--mkt-border);
    border-radius: var(--mkt-radius-md);
    padding: var(--mkt-space-5) var(--mkt-space-4);
    display: flex;
    flex-direction: column;
    box-shadow: var(--mkt-shadow-sm);
}

.mkt-price-card-featured {
    border-color: var(--mkt-primary);
    box-shadow: var(--mkt-shadow-lg);
    position: relative;
}

.mkt-price-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--mkt-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

.mkt-price-name { font-size: 1.0625rem; font-weight: 700; }
.mkt-price-desc { color: var(--mkt-text-muted); font-size: 0.875rem; margin-top: 4px; min-height: 40px; }

.mkt-price-amount {
    margin: var(--mkt-space-3) 0;
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.mkt-price-amount span { font-size: 0.9375rem; font-weight: 500; color: var(--mkt-text-muted); }

.mkt-price-features {
    list-style: none;
    padding: 0;
    margin: var(--mkt-space-4) 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mkt-price-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.9375rem;
    color: var(--mkt-text);
}
.mkt-price-features li svg { flex: none; margin-top: 3px; width: 16px; height: 16px; color: var(--mkt-success); }

/* ---------------- Badges ---------------- */

.mkt-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--mkt-surface);
    color: var(--mkt-text-muted);
    border: 1px solid var(--mkt-border);
}
.mkt-badge-accent { background: var(--mkt-accent-light); color: var(--mkt-accent); border-color: transparent; }
.mkt-badge-muted { font-style: italic; }

/* ---------------- Testimonials ---------------- */

.mkt-quote-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--mkt-space-4);
}

.mkt-quote {
    background: var(--mkt-surface-raised);
    border: 1px solid var(--mkt-border);
    border-radius: var(--mkt-radius-md);
    padding: var(--mkt-space-4);
    box-shadow: var(--mkt-shadow-sm);
    display: flex;
    flex-direction: column;
    gap: var(--mkt-space-3);
}

.mkt-quote-text { font-size: 0.9375rem; line-height: 1.6; color: var(--mkt-text); }

.mkt-quote-person {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.mkt-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mkt-primary), var(--mkt-accent));
    flex: none;
}

.mkt-quote-name { font-size: 0.875rem; font-weight: 600; }
.mkt-quote-role { font-size: 0.8125rem; color: var(--mkt-text-muted); }

/* ---------------- FAQ ---------------- */

.mkt-faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--mkt-space-3);
    max-width: 760px;
}

.mkt-faq-item {
    background: var(--mkt-surface-raised);
    border: 1px solid var(--mkt-border);
    border-radius: var(--mkt-radius-md);
    padding: var(--mkt-space-4);
}

.mkt-faq-item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: var(--mkt-text);
    list-style: none;
}

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

.mkt-faq-item summary::after {
    content: "+";
    float: right;
    color: var(--mkt-primary);
    font-weight: 600;
}

.mkt-faq-item[open] summary::after { content: "\2212"; }

.mkt-faq-item .mkt-body { margin-top: var(--mkt-space-3); }

/* ---------------- About ---------------- */

.mkt-about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--mkt-space-5) var(--mkt-space-4);
}

.mkt-about-group h3 { margin-bottom: var(--mkt-space-3); }

.mkt-about-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mkt-about-list li {
    position: relative;
    padding-left: 18px;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--mkt-text-muted);
}
.mkt-about-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mkt-primary);
}

/* ---------------- Final CTA ---------------- */

.mkt-cta {
    background: var(--mkt-secondary);
    border-radius: var(--mkt-radius-lg);
    padding: var(--mkt-space-6) var(--mkt-space-5);
    text-align: center;
    color: #fff;
}
.mkt-cta .mkt-h1 { color: #fff; }
.mkt-cta .mkt-lede { color: #cbd5e1; }
.mkt-cta .mkt-hero-actions { margin-top: var(--mkt-space-4); }

/* ---------------- Footer ---------------- */

.mkt-footer {
    border-top: 1px solid var(--mkt-border);
    padding: var(--mkt-space-6) 0 var(--mkt-space-4);
}

.mkt-footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: var(--mkt-space-4);
}

.mkt-footer-brand .mkt-logo { margin-bottom: var(--mkt-space-2); }
.mkt-footer-desc { color: var(--mkt-text-muted); font-size: 0.875rem; max-width: 260px; }

.mkt-footer-col-title {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--mkt-text-muted);
    margin-bottom: var(--mkt-space-2);
}

.mkt-footer-col a {
    display: block;
    color: var(--mkt-text-muted);
    font-size: 0.9375rem;
    padding: 5px 0;
}
.mkt-footer-col a:hover { color: var(--mkt-text); text-decoration: none; }

.mkt-footer-bottom {
    margin-top: var(--mkt-space-6);
    padding-top: var(--mkt-space-4);
    border-top: 1px solid var(--mkt-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--mkt-text-muted);
    font-size: 0.8125rem;
    flex-wrap: wrap;
    gap: var(--mkt-space-2);
}

/* ---------------- Motion ---------------- */

.mkt-reveal {
    opacity: 0;
    transform: translateY(10px);
    animation: mkt-fade-up 0.6s ease forwards;
}
@keyframes mkt-fade-up {
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .mkt-reveal { animation: none; opacity: 1; transform: none; }
    .mkt-card, .mkt-btn { transition: none; }
}

/* ---------------- Responsive ---------------- */

@media (max-width: 900px) {
    .mkt-grid-3, .mkt-pricing-grid, .mkt-quote-grid, .mkt-steps, .mkt-about-grid { grid-template-columns: 1fr 1fr; }
    
    .mkt-footer-grid { grid-template-columns: 1fr 1fr; }
    .mkt-shots-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .mkt-nav-actions .mkt-btn { display: none; }
    .mkt-nav-toggle { display: inline-flex; }

    .mkt-nav-links {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: var(--mkt-bg);
        border-bottom: 1px solid var(--mkt-border);
        padding: var(--mkt-space-2) var(--mkt-space-4) var(--mkt-space-4);
        box-shadow: var(--mkt-shadow-md);
    }
    .mkt-nav-links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--mkt-border); }
    .mkt-nav-links a:last-child { border-bottom: none; }
    .mkt-nav-links-mobile-only { display: block; }

    .mkt-nav-toggle-checkbox:checked ~ .mkt-nav-links { display: flex; }

    .mkt-grid-3, .mkt-pricing-grid, .mkt-quote-grid, .mkt-steps, .mkt-about-grid, .mkt-footer-grid {
        grid-template-columns: 1fr;
    }
    .mkt-section { padding: var(--mkt-space-6) 0; }
    .mkt-hero { padding: var(--mkt-space-6) 0 var(--mkt-space-5); }
    .mkt-price-card-featured { order: -1; }
}
