/* Public marketing site — cool slate + teal; platform theme stays on auth forms */
.mkt {
    --mkt-ink: #0f1c2e;
    --mkt-muted: color-mix(in srgb, var(--mkt-ink) 58%, transparent);
    --mkt-accent: #0d9488;
    --mkt-accent-deep: #0f766e;
    --mkt-surface: #e8eef5;
    --mkt-panel: rgba(255, 255, 255, 0.7);
    --mkt-line: color-mix(in srgb, var(--mkt-ink) 12%, transparent);
    --mkt-font: "Outfit", "Segoe UI", sans-serif;
    --mkt-display: "Syne", "Outfit", sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--mkt-ink);
    background:
        radial-gradient(110% 70% at 8% -8%, rgba(13, 148, 136, 0.2), transparent 52%),
        radial-gradient(80% 60% at 100% 0%, rgba(37, 99, 235, 0.12), transparent 48%),
        linear-gradient(180deg, #dce6f2 0%, var(--mkt-surface) 40%, #d9ebe8 100%);
    font-family: var(--mkt-font);
}

.mkt a {
    color: inherit;
    text-decoration: none;
}

.mkt-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1.25rem, 4vw, 3rem);
    backdrop-filter: blur(12px);
    background: color-mix(in srgb, var(--mkt-surface) 82%, transparent);
    border-bottom: 1px solid var(--mkt-line);
}

.mkt-brand {
    font-family: var(--mkt-display);
    font-weight: 700;
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    letter-spacing: -0.03em;
}

.mkt-nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.85rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.mkt-nav-login {
    color: var(--mkt-muted);
}

.mkt-nav-cta,
.mkt-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.05rem;
    border-radius: 0.5rem;
    background: var(--mkt-ink);
    color: #f0f7ff !important;
    font-weight: 600;
    transition: transform 180ms ease, background 180ms ease;
}

.mkt-nav-cta:hover,
.mkt-btn-primary:hover {
    background: #081220;
    transform: translateY(-1px);
}

.mkt-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.05rem;
    border-radius: 0.5rem;
    border: 1px solid var(--mkt-line);
    background: transparent;
    font-weight: 600;
    transition: border-color 180ms ease, transform 180ms ease;
}

.mkt-btn-secondary:hover {
    border-color: color-mix(in srgb, var(--mkt-ink) 35%, transparent);
    transform: translateY(-1px);
}

.mkt-main {
    flex: 1;
}

.mkt-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2rem;
    border-top: 1px solid var(--mkt-line);
    color: var(--mkt-muted);
    font-size: 0.9rem;
}

.mkt-footer-brand {
    font-family: var(--mkt-display);
    color: var(--mkt-ink);
    font-weight: 700;
}

.mkt-footer-domain {
    color: var(--mkt-muted);
    font-size: 0.85rem;
}

.mkt-footer-links {
    display: flex;
    gap: 1.25rem;
    margin-left: auto;
}

/* —— Home —— */
.mkt-hero {
    position: relative;
    min-height: calc(100vh - 4.5rem);
    display: grid;
    align-items: end;
    padding: clamp(2.5rem, 8vh, 5rem) clamp(1.25rem, 4vw, 3rem) clamp(2rem, 6vh, 3.5rem);
    overflow: hidden;
    isolation: isolate;
}

.mkt-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(115deg, rgba(15, 28, 46, 0.72) 0%, rgba(15, 28, 46, 0.28) 48%, transparent 72%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E"),
        radial-gradient(ellipse 85% 75% at 72% 38%, #1d6b63 0%, #163a52 42%, #0f1c2e 100%);
    animation: mkt-hero-drift 18s ease-in-out infinite alternate;
}

.mkt-hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -30% 35%;
    z-index: -1;
    height: 70%;
    background: radial-gradient(closest-side, rgba(13, 148, 136, 0.4), transparent 70%);
    animation: mkt-glow 12s ease-in-out infinite alternate;
}

.mkt-hero-inner {
    max-width: 40rem;
    color: #eef6ff;
    animation: mkt-rise 700ms ease-out both;
}

.mkt-hero-brand {
    font-family: var(--mkt-display);
    font-size: clamp(2.4rem, 6vw, 3.75rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin: 0 0 1rem;
}

.mkt-hero-lead {
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    line-height: 1.45;
    max-width: 32rem;
    color: rgba(238, 246, 255, 0.88);
    margin: 0 0 1.75rem;
}

.mkt-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.mkt-hero .mkt-btn-primary {
    background: #eef6ff;
    color: var(--mkt-ink) !important;
}

.mkt-hero .mkt-btn-primary:hover {
    background: #fff;
}

.mkt-hero .mkt-btn-secondary {
    border-color: rgba(238, 246, 255, 0.35);
    color: #eef6ff;
}

.mkt-hero .mkt-btn-secondary:hover {
    border-color: rgba(238, 246, 255, 0.7);
}

.mkt-section {
    padding: clamp(3.5rem, 10vh, 5.5rem) clamp(1.25rem, 4vw, 3rem);
    max-width: 68rem;
    margin: 0 auto;
}

.mkt-section h2 {
    font-family: var(--mkt-display);
    font-size: clamp(1.75rem, 3.5vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 0.75rem;
}

.mkt-section > p {
    color: var(--mkt-muted);
    font-size: 1.05rem;
    line-height: 1.55;
    max-width: 36rem;
    margin: 0;
}

.mkt-flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    list-style: none;
    padding: 0;
}

.mkt-flow li {
    padding: 1rem 0 0;
    border-top: 2px solid var(--mkt-accent);
    font-weight: 600;
    animation: mkt-rise 600ms ease-out both;
}

.mkt-flow li:nth-child(2) { animation-delay: 80ms; }
.mkt-flow li:nth-child(3) { animation-delay: 160ms; }
.mkt-flow li:nth-child(4) { animation-delay: 240ms; }

.mkt-flow span {
    display: block;
    margin-top: 0.35rem;
    font-weight: 400;
    font-size: 0.92rem;
    color: var(--mkt-muted);
}

.mkt-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 2rem;
    margin-top: 2rem;
}

.mkt-features h3 {
    font-family: var(--mkt-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
}

.mkt-features p {
    margin: 0;
    color: var(--mkt-muted);
    line-height: 1.5;
}

.mkt-cta-band {
    text-align: center;
    padding-bottom: 4rem;
}

.mkt-cta-band .mkt-hero-actions {
    justify-content: center;
    margin-top: 1.5rem;
}

/* —— Pricing —— */
.mkt-pricing-head {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 2.5rem;
}

.mkt-pricing-head p {
    margin-left: auto;
    margin-right: auto;
}

.mkt-plans {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.mkt-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.35rem 1.25rem 1.25rem;
    border: 1px solid var(--mkt-line);
    border-radius: 0.85rem;
    background: var(--mkt-panel);
    backdrop-filter: blur(8px);
}

.mkt-plan-featured {
    border-color: color-mix(in srgb, var(--mkt-accent) 55%, var(--mkt-line));
    box-shadow: 0 18px 40px rgba(15, 28, 46, 0.1);
    transform: translateY(-4px);
}

.mkt-plan-badge {
    position: absolute;
    top: -0.65rem;
    left: 1rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.25rem 0.55rem;
    border-radius: 0.35rem;
    background: var(--mkt-accent);
    color: #f0fffd;
}

.mkt-plan h3 {
    font-family: var(--mkt-display);
    font-size: 1.35rem;
    margin: 0;
}

.mkt-plan-price {
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.mkt-plan-price small {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--mkt-muted);
}

.mkt-plan ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.45rem;
    font-size: 0.92rem;
    color: var(--mkt-muted);
    flex: 1;
}

.mkt-plan li::before {
    content: "·";
    margin-right: 0.4rem;
    color: var(--mkt-accent);
    font-weight: 700;
}

.mkt-plan .mkt-btn-primary,
.mkt-plan .mkt-btn-secondary {
    width: 100%;
}

.mkt-pricing-note {
    margin-top: 2rem;
    text-align: center;
    color: var(--mkt-muted);
    font-size: 0.9rem;
}

@keyframes mkt-rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

@keyframes mkt-hero-drift {
    from { background-position: 0% 0%, 0 0, 72% 38%; }
    to { background-position: 0% 0%, 0 0, 64% 46%; }
}

@keyframes mkt-glow {
    from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.85; }
    to { transform: translate3d(-4%, -3%, 0) scale(1.08); opacity: 1; }
}

@media (max-width: 960px) {
    .mkt-plans {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mkt-plan-featured {
        transform: none;
    }

    .mkt-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .mkt-nav-links a:not(.mkt-nav-cta):not(.mkt-nav-login) {
        display: none;
    }

    .mkt-plans,
    .mkt-flow,
    .mkt-features {
        grid-template-columns: 1fr;
    }

    .mkt-hero {
        min-height: calc(100svh - 4.5rem);
        align-items: center;
    }
}
