:root {
    --ink: #0c0c12;
    --muted: #5c5c68;
    --muted-on-dark: rgba(255, 255, 255, 0.68);
    --line: #e8e8ec;
    --teal: #088181;
    --mint: #42f0cd;
    --inkband: #070714;
    --navy: #0d0d24;
    --font: Inter, "Segoe UI", sans-serif;
    --mono: Inconsolata, ui-monospace, monospace;
    --radius-card: 20px;
    --shadow-card: 0 1px 2px rgba(7, 7, 20, 0.04), 0 12px 32px rgba(7, 7, 20, 0.08);
    --shadow-card-hover: 0 2px 4px rgba(7, 7, 20, 0.06), 0 20px 48px rgba(7, 7, 20, 0.12);
}

* { box-sizing: border-box; }

body.mkt {
    margin: 0;
    color: #fff;
    background: var(--inkband);
    font: 400 16px/1.55 var(--font);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
code, pre { font-family: var(--mono); font-size: 0.92em; }

/* —— Header —— */
.mkt-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(7, 7, 20, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.mkt-header a { color: rgba(255, 255, 255, 0.92); transition: color 0.15s ease; }
.mkt-header a:hover { color: var(--mint); }
.mkt-header .mkt-pill { background: var(--mint); color: var(--ink); }
.mkt-header .mkt-pill:hover { color: var(--ink); filter: brightness(1.04); }

.mkt-bar, .mkt-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 14px 24px;
}
.mkt-logo {
    color: inherit;
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.04em;
    text-decoration: none;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.mkt-logo img {
    display: block;
    width: auto;
    height: 36px;
    object-fit: contain;
}
.mkt-foot-brand .mkt-logo img {
    height: 40px;
}
.mkt-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 20px;
}
.mkt-links a {
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    white-space: nowrap;
}

.mkt-pill, .mkt a.mkt-pill, .mkt button, .mkt-card button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 100px;
    background: var(--ink);
    color: #fff;
    padding: 11px 22px;
    font: 600 0.9375rem/1.2 var(--font);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.mkt-pill:hover, .mkt a.mkt-pill:hover, .mkt button:hover, .mkt-card button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* —— Footer —— */
.mkt-footer {
    background: #04040c;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.mkt-footer a { color: rgba(255, 255, 255, 0.88); text-decoration: none; }
.mkt-footer a:hover { color: var(--mint); }
.mkt-footer p {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--muted-on-dark);
}
.mkt-foot {
    align-items: flex-start;
    padding-top: 28px;
    padding-bottom: 28px;
    gap: 20px 24px;
}
.mkt-foot-brand { font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.02em; }
.mkt-foot-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    max-width: 560px;
    justify-content: flex-end;
}
.mkt-foot-links a {
    font-weight: 600;
    font-size: 0.8125rem;
    text-decoration: none;
}

/* —— Type scale —— */
.mkt h1 {
    margin: 0 0 18px;
    font-size: clamp(2.25rem, 5.5vw, 4rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.06;
}
.mkt h2 {
    margin: 0 0 14px;
    font-size: clamp(1.5rem, 2.8vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -0.032em;
    line-height: 1.12;
}
.mkt p { margin: 0 0 16px; max-width: 65ch; }
.mkt .muted { color: var(--muted); }

/* —— Dark-page sections (pricing, signup, login) —— */
.mkt-section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 56px 24px 72px;
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
}
.mkt-section h1,
.mkt-section h2,
.mkt-section > h1,
.mkt-section > h2 {
    color: #fff;
}
.mkt-section .muted { color: var(--muted-on-dark); }
.mkt-section > a:not(.mkt-pill) { color: var(--mint); font-weight: 600; }

/* —— Info / legal articles —— */
.mkt-article {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 24px 80px;
    background: #fff;
    color: var(--ink);
    border-radius: 0;
}
.mkt-article h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); color: var(--ink); }
.mkt-article h2 { font-size: 1.375rem; color: var(--ink); margin-top: 2rem; }
.mkt-article p, .mkt-article li { color: var(--muted); line-height: 1.65; }
.mkt-article a { color: var(--teal); font-weight: 600; }
.mkt-article a:hover { color: var(--ink); }

.band { padding: 64px 24px; }
.band-teal { background: var(--teal); color: #fff; }
.band-mint { background: var(--mint); color: var(--ink); }
.band-ink { background: var(--navy); color: #fff; }
.band-teal a, .band-ink a { color: inherit; }
.band .mkt-wrap { max-width: 1120px; margin: 0 auto; }

/* —— Pricing & forms (white cards on dark canvas) —— */
.plans {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 32px 0 0;
}
.plan-card, .mkt-card {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: 28px 28px 32px;
    box-shadow: var(--shadow-card);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.plan-card:hover, .mkt-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}
.plan-card.recommended {
    border-color: rgba(66, 240, 205, 0.55);
    box-shadow: var(--shadow-card), 0 0 0 1px rgba(66, 240, 205, 0.2);
}
.plan-card h2, .mkt-card h1, .mkt-card h2 { color: var(--ink); }
.plan-card .muted, .mkt-card .muted { color: var(--muted); }
.plan-card ul { margin: 18px 0 0; padding-left: 1.15rem; line-height: 1.55; color: var(--muted); }
.plan-card li { margin-bottom: 0.35rem; }

.price {
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--ink);
}
.badge {
    display: inline-block;
    margin-left: 8px;
    padding: 3px 10px;
    border-radius: 100px;
    background: var(--mint);
    color: var(--ink);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    vertical-align: middle;
}

.mkt-card { max-width: 720px; margin: 0 auto; }
.mkt-card label, .mkt-card .choice {
    display: block;
    margin: 0 0 14px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
}
.mkt-card input, .mkt-card select {
    display: block;
    width: 100%;
    height: 46px;
    margin-top: 6px;
    padding: 0 14px;
    border: 1px solid #c8c8d0;
    border-radius: 12px;
    font: 400 1rem/1.4 var(--font);
    background: #fff;
    color: var(--ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.mkt-card input:focus, .mkt-card select:focus, .mkt-card textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(8, 129, 129, 0.15);
}
.mkt-card input[type="checkbox"], .mkt-card input[type="radio"] {
    display: inline-block;
    width: auto;
    height: auto;
    margin: 0 8px 0 0;
    accent-color: var(--teal);
}
.mkt-card .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mkt-card .choices label { font-weight: 500; }
.mkt-card button { margin-top: 10px; }
.mkt-card a { color: var(--teal); font-weight: 600; }
.mkt-card button.secondary {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--ink);
    margin-left: 8px;
}

.plan-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0 0 14px;
}
.plan-tabs label {
    margin: 0;
    border: 1px solid #c8c8d0;
    border-radius: 12px;
    padding: 12px 10px;
    text-align: center;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.plan-tabs label:has(input:checked) {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.price-set { display: grid; gap: 10px; margin: 0 0 16px; }
.price-set label {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--ink);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.price-set label:has(input:checked) {
    border-color: var(--teal);
    background: rgba(8, 129, 129, 0.06);
}

.mkt-card textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 12px 14px;
    border: 1px solid #c8c8d0;
    border-radius: 12px;
    font: 400 1rem/1.4 var(--font);
    color: var(--ink);
    min-height: 100px;
    resize: vertical;
}

.alert, .ok {
    max-width: 1120px;
    margin: 16px auto 0;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 500;
}
.alert { background: #fff1f1; color: #8a1f1f; }
.ok { background: #eefbf4; color: #0d5c32; }

/* —— Hero —— */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(72px, 12vw, 120px) 24px clamp(64px, 10vw, 96px);
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(66, 240, 205, 0.14), transparent 55%),
        radial-gradient(circle at 12% 35%, rgba(66, 240, 205, 0.1), transparent 40%),
        radial-gradient(circle at 88% 8%, rgba(8, 129, 129, 0.35), transparent 42%),
        linear-gradient(165deg, var(--navy) 0%, var(--inkband) 48%, #050508 100%);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 90% 70% at 35% 45%, #000 12%, transparent 78%);
    pointer-events: none;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 50% at 50% 100%, rgba(66, 240, 205, 0.06), transparent 60%);
    pointer-events: none;
}
.hero .mkt-wrap, .steps .mkt-wrap, .stories .mkt-wrap, .jobs .mkt-wrap {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 0 auto;
}
.hero h1 {
    color: #fff;
    max-width: 14ch;
    font-size: clamp(2.5rem, 6.5vw, 4.25rem);
    font-weight: 600;
    text-wrap: balance;
}
.hero h1 + p,
.hero > .mkt-wrap > p:first-of-type {
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    line-height: 1.55;
    max-width: 42ch;
    color: rgba(255, 255, 255, 0.78);
}
.hero .mkt-pill {
    margin-top: 8px;
    background: var(--mint);
    color: var(--ink);
    box-shadow: 0 4px 24px rgba(66, 240, 205, 0.25);
}
.hero .mkt-pill:hover {
    box-shadow: 0 8px 32px rgba(66, 240, 205, 0.35);
}

.steps h2, .stories h2, .jobs h2 { color: #fff; }
.hero p, .steps p, .stories p { color: rgba(255, 255, 255, 0.78); }
.hero .eyebrow {
    margin: 0 0 12px;
    color: var(--mint);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.steps > .mkt-wrap > p,
.stories > .mkt-wrap > p,
.jobs > .mkt-wrap > p {
    font-size: 1.0625rem;
    max-width: 52ch;
    margin-bottom: 28px;
}

.jobs, .steps, .stories, .close { padding: 32px 24px 72px; }
.jobs h2, .steps h2, .stories h2 { margin-bottom: 8px; }

.job-grid, .step-grid, .story-grid { display: grid; gap: 18px; }
.job-grid, .step-grid { grid-template-columns: repeat(3, 1fr); }
.story-grid { grid-template-columns: 1fr 1fr; }

.job-grid article, .step-grid article, .story-grid article {
    background: #fff;
    color: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-card);
    padding: 26px 26px 28px;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.job-grid article:hover, .step-grid article:hover, .story-grid article:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}
.job-grid h2, .step-grid h2, .story-grid h2,
.job-grid h3, .step-grid h3, .story-grid h3 {
    color: var(--ink);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}
.job-grid p, .step-grid p, .story-grid p { color: var(--muted); font-size: 0.9375rem; }

.example-label {
    display: inline-block;
    margin: 0 0 12px;
    padding: 4px 11px;
    border-radius: 100px;
    background: var(--mint);
    color: var(--ink);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.close {
    text-align: center;
    padding-bottom: 96px;
    padding-top: 16px;
}
.close p { margin-left: auto; margin-right: auto; }
.close .mkt-pill {
    background: var(--mint);
    color: var(--ink);
    box-shadow: 0 4px 24px rgba(66, 240, 205, 0.2);
}

@media (max-width: 800px) {
    .plans, .mkt-card .row, .job-grid, .step-grid, .story-grid { grid-template-columns: 1fr; }
    .mkt-bar, .mkt-foot {
        flex-wrap: wrap;
        align-items: flex-start;
        padding-left: max(20px, env(safe-area-inset-left, 0px));
        padding-right: max(20px, env(safe-area-inset-right, 0px));
    }
    .mkt-links {
        width: 100%;
        justify-content: flex-start;
        gap: 10px 14px;
    }
    .mkt-links a {
        white-space: normal;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    .mkt-foot-links { justify-content: flex-start; width: 100%; gap: 10px 14px; }
    .mkt-foot-links a { min-height: 44px; display: inline-flex; align-items: center; }
    .mkt h1 { font-size: 2.25rem; }
    .hero {
        padding: clamp(48px, 10vw, 80px) max(20px, env(safe-area-inset-left, 0px)) clamp(48px, 8vw, 72px) max(20px, env(safe-area-inset-right, 0px));
    }
    .hero h1 { max-width: none; }
    .hero .mkt-pill, .close .mkt-pill, .mkt-section .mkt-pill {
        min-height: 48px;
        width: 100%;
        max-width: 360px;
    }
    .hero .mkt-wrap > p + p,
    .hero .mkt-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .mkt-section {
        padding: 40px max(20px, env(safe-area-inset-left, 0px)) 56px max(20px, env(safe-area-inset-right, 0px));
    }
    .mkt-article {
        padding: 36px max(20px, env(safe-area-inset-left, 0px)) 64px max(20px, env(safe-area-inset-right, 0px));
    }
    .mkt-card {
        padding: 24px 20px;
    }
    .mkt-card form label { margin-bottom: 14px; }
    .mkt-card form input,
    .mkt-card form select,
    .mkt-card form button,
    .mkt-card form .mkt-pill {
        width: 100%;
        min-height: 48px;
        box-sizing: border-box;
    }
    .mkt-card form input[type="checkbox"] {
        width: auto;
        min-height: 0;
    }
    .plan-card {
        padding: 24px 20px;
    }
    .plan-card button, .plan-card .mkt-pill {
        width: 100%;
        min-height: 48px;
    }
    .band { padding: 48px max(20px, env(safe-area-inset-left, 0px)); }
    .close { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
    .plan-card:hover, .mkt-card:hover,
    .job-grid article:hover, .step-grid article:hover, .story-grid article:hover {
        transform: none;
    }
}
