/* Marketing styles - Cal.com-inspired dark SaaS landing. Loaded on top of main.css */

:root {
    --mkt-bg: #0a0a0c;
    --mkt-bg-elevated: #131318;
    --mkt-bg-card: #16161c;
    --mkt-border: #23232c;
    --mkt-border-strong: #2e2e3a;
    --mkt-text: #e8e8ee;
    --mkt-text-muted: #8a8a96;
    --mkt-text-dim: #5e5e6a;
    --mkt-accent: #7C5CFF;
    --mkt-accent-soft: rgba(124, 92, 255, 0.12);
    --mkt-accent-glow: rgba(124, 92, 255, 0.35);
    --mkt-radius: 12px;
    --mkt-radius-lg: 18px;
    --mkt-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    --mkt-section-padding: 6rem;
    --mkt-container: 1180px;
    --font-display: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Override body bg for marketing pages */
body.marketing {
    background: var(--mkt-bg);
    color: var(--mkt-text);
    font-family: var(--font-display);
    -webkit-font-smoothing: antialiased;
    line-height: 1.55;
}

body.marketing * {
    box-sizing: border-box;
}

body.marketing a {
    color: var(--mkt-text);
    text-decoration: none;
    transition: color 0.15s ease;
}

body.marketing a:hover {
    color: var(--mkt-accent);
}

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

/* Header */
.mkt-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(10, 10, 12, 0.7);
    border-bottom: 1px solid var(--mkt-border);
}

.mkt-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    max-width: var(--mkt-container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.mkt-logo {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--mkt-text);
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.mkt-logo .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--mkt-accent);
    box-shadow: 0 0 16px var(--mkt-accent-glow);
}

.mkt-nav {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.mkt-nav a {
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
    color: var(--mkt-text-muted);
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
}

.mkt-nav a:hover {
    color: var(--mkt-text);
    background: rgba(255, 255, 255, 0.04);
}

.mkt-nav-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Buttons */
.mkt-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.1rem;
    border-radius: 9px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    text-decoration: none;
    line-height: 1;
}

.mkt-btn-primary {
    background: var(--mkt-accent);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 10px 24px rgba(124, 92, 255, 0.35);
}

.mkt-btn-primary:hover {
    background: #8a6dff;
    color: #fff;
    transform: translateY(-1px);
}

.mkt-btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--mkt-border-strong);
    color: var(--mkt-text);
}

.mkt-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--mkt-text);
}

.mkt-btn-ghost {
    background: transparent;
    color: var(--mkt-text-muted);
}

.mkt-btn-ghost:hover {
    color: var(--mkt-text);
}

.mkt-btn-lg {
    padding: 0.9rem 1.4rem;
    font-size: 0.95rem;
}

/* Sections */
.mkt-section {
    padding: var(--mkt-section-padding) 0;
}

.mkt-section-tight {
    padding: 4rem 0;
}

.mkt-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--mkt-border-strong);
    border-radius: 999px;
    background: var(--mkt-accent-soft);
    color: var(--mkt-text);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    margin-bottom: 1.5rem;
}

.mkt-eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--mkt-accent);
    box-shadow: 0 0 12px var(--mkt-accent-glow);
}

.mkt-h1 {
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--mkt-text);
    margin: 0 0 1.2rem;
}

.mkt-h1 .accent {
    background: linear-gradient(135deg, #b69dff 0%, #7C5CFF 50%, #5c8eff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.mkt-h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.7rem);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--mkt-text);
    margin: 0 0 0.8rem;
}

.mkt-h3 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--mkt-text);
    margin: 0 0 0.4rem;
}

.mkt-lead {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    line-height: 1.5;
    color: var(--mkt-text-muted);
    max-width: 640px;
}

.mkt-section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.mkt-section-header .mkt-lead {
    margin: 0 auto;
}

/* Hero */
.mkt-hero {
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.mkt-hero::before {
    content: "";
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse at center, var(--mkt-accent-glow) 0%, transparent 60%);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

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

.mkt-hero .mkt-lead {
    margin: 0 auto 2rem;
    text-align: center;
}

.mkt-hero-ctas {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.mkt-hero-note {
    color: var(--mkt-text-dim);
    font-size: 0.85rem;
}

/* Hero mockup */
.mkt-hero-mockup {
    position: relative;
    margin-top: 4rem;
    border: 1px solid var(--mkt-border);
    border-radius: var(--mkt-radius-lg);
    background: var(--mkt-bg-elevated);
    overflow: hidden;
    box-shadow: var(--mkt-shadow), 0 0 60px rgba(124, 92, 255, 0.15);
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

.mkt-hero-mockup-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    background: var(--mkt-bg-card);
    border-bottom: 1px solid var(--mkt-border);
}

.mkt-hero-mockup-bar .dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #2a2a32;
}

.mkt-hero-mockup-body {
    padding: 2rem;
    min-height: 320px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
}

.mkt-hero-mockup-side {
    background: var(--mkt-bg-card);
    border-radius: var(--mkt-radius);
    padding: 1rem;
    color: var(--mkt-text-muted);
    font-size: 0.8rem;
}

.mkt-hero-mockup-side div {
    padding: 0.45rem 0.7rem;
    border-radius: 7px;
    margin-bottom: 0.15rem;
}

.mkt-hero-mockup-side .active {
    background: var(--mkt-accent-soft);
    color: var(--mkt-text);
}

.mkt-hero-mockup-main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    align-content: start;
}

.mkt-hero-mockup-card {
    background: var(--mkt-bg-card);
    border-radius: var(--mkt-radius);
    padding: 1rem;
    border: 1px solid var(--mkt-border);
}

.mkt-hero-mockup-card .label {
    font-size: 0.7rem;
    color: var(--mkt-text-dim);
    margin-bottom: 0.3rem;
}

.mkt-hero-mockup-card .value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--mkt-text);
}

/* How it works */
.mkt-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.mkt-step {
    padding: 1.8rem;
    border: 1px solid var(--mkt-border);
    border-radius: var(--mkt-radius-lg);
    background: var(--mkt-bg-elevated);
    position: relative;
}

.mkt-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--mkt-accent-soft);
    color: var(--mkt-accent);
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid var(--mkt-border-strong);
}

/* Features grid */
.mkt-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.mkt-feature {
    padding: 1.5rem;
    border: 1px solid var(--mkt-border);
    border-radius: var(--mkt-radius-lg);
    background: var(--mkt-bg-elevated);
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.mkt-feature:hover {
    border-color: var(--mkt-border-strong);
    transform: translateY(-2px);
}

.mkt-feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--mkt-accent-soft);
    border: 1px solid var(--mkt-border-strong);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.mkt-feature p {
    color: var(--mkt-text-muted);
    font-size: 0.92rem;
    margin: 0;
}

/* Pricing teaser */
.mkt-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.mkt-plan-card {
    padding: 1.8rem;
    border: 1px solid var(--mkt-border);
    border-radius: var(--mkt-radius-lg);
    background: var(--mkt-bg-elevated);
    position: relative;
    display: flex;
    flex-direction: column;
}

.mkt-plan-card.featured {
    border-color: var(--mkt-accent);
    box-shadow: 0 0 0 1px var(--mkt-accent), 0 20px 50px rgba(124, 92, 255, 0.2);
}

.mkt-plan-card .badge-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--mkt-accent);
    color: #fff;
    font-size: 0.7rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-weight: 500;
}

.mkt-plan-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--mkt-text);
}

.mkt-plan-price {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0.5rem 0 0.2rem;
    color: var(--mkt-text);
}

.mkt-plan-price .unit {
    font-size: 0.95rem;
    color: var(--mkt-text-muted);
    font-weight: 400;
}

.mkt-plan-desc {
    color: var(--mkt-text-muted);
    font-size: 0.88rem;
    margin: 0.4rem 0 1.2rem;
    min-height: 2.6em;
}

.mkt-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex-grow: 1;
}

.mkt-plan-features li {
    display: flex;
    gap: 0.5rem;
    padding: 0.4rem 0;
    color: var(--mkt-text);
    font-size: 0.88rem;
    border-bottom: 1px dashed var(--mkt-border);
}

.mkt-plan-features li:last-child {
    border-bottom: none;
}

.mkt-plan-features .check {
    color: var(--mkt-accent);
    flex-shrink: 0;
}

/* FAQ */
.mkt-faq-list {
    max-width: 760px;
    margin: 0 auto;
}

.mkt-faq-item {
    border-bottom: 1px solid var(--mkt-border);
    padding: 1.4rem 0;
}

.mkt-faq-item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-weight: 500;
    color: var(--mkt-text);
    font-size: 1rem;
}

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

.mkt-faq-item summary::after {
    content: "+";
    color: var(--mkt-text-muted);
    font-size: 1.4rem;
    transition: transform 0.2s ease;
}

.mkt-faq-item[open] summary::after {
    transform: rotate(45deg);
}

.mkt-faq-item p {
    color: var(--mkt-text-muted);
    margin: 0.8rem 0 0;
    line-height: 1.6;
}

/* CTA banner */
.mkt-cta-banner {
    text-align: center;
    padding: 4rem 2rem;
    border: 1px solid var(--mkt-border);
    border-radius: var(--mkt-radius-lg);
    background: radial-gradient(ellipse at top, var(--mkt-accent-soft) 0%, transparent 70%), var(--mkt-bg-elevated);
}

.mkt-cta-banner .mkt-h2 {
    margin-bottom: 0.6rem;
}

.mkt-cta-banner .mkt-lead {
    margin: 0 auto 1.6rem;
}

/* Footer */
.mkt-footer {
    border-top: 1px solid var(--mkt-border);
    padding: 4rem 0 2rem;
    color: var(--mkt-text-muted);
    font-size: 0.88rem;
    background: var(--mkt-bg);
}

.mkt-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.mkt-footer h4 {
    color: var(--mkt-text);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 0.9rem;
    font-weight: 600;
}

.mkt-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mkt-footer ul li {
    padding: 0.25rem 0;
}

.mkt-footer ul a {
    color: var(--mkt-text-muted);
}

.mkt-footer ul a:hover {
    color: var(--mkt-text);
}

.mkt-footer-bottom {
    border-top: 1px solid var(--mkt-border);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--mkt-text-dim);
    font-size: 0.8rem;
}

/* Pricing page comparison table */
.mkt-compare {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 2rem;
    font-size: 0.88rem;
}

.mkt-compare th,
.mkt-compare td {
    padding: 0.85rem 0.9rem;
    text-align: center;
    border-bottom: 1px solid var(--mkt-border);
}

.mkt-compare th:first-child,
.mkt-compare td:first-child {
    text-align: left;
    color: var(--mkt-text-muted);
}

.mkt-compare thead th {
    color: var(--mkt-text);
    font-weight: 600;
    border-bottom: 1px solid var(--mkt-border-strong);
}

.mkt-compare .checkmark {
    color: var(--mkt-accent);
}

.mkt-compare .dash {
    color: var(--mkt-text-dim);
}

/* Mobile */
@media (max-width: 880px) {
    :root {
        --mkt-section-padding: 4rem;
    }

    .mkt-nav {
        display: none;
    }

    .mkt-steps,
    .mkt-features-grid,
    .mkt-pricing-grid {
        grid-template-columns: 1fr;
    }

    .mkt-hero-mockup-body {
        grid-template-columns: 1fr;
    }

    .mkt-hero-mockup-side {
        display: none;
    }

    .mkt-hero-mockup-main {
        grid-template-columns: repeat(2, 1fr);
    }

    .mkt-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .mkt-compare {
        font-size: 0.8rem;
    }

    .mkt-compare th,
    .mkt-compare td {
        padding: 0.6rem 0.4rem;
    }
}
