/*
 * Marketing page styles.
 * Uses design tokens from tokens.css. No animations, no JS dependencies.
 */

@layer components {
/* ── Layout ──────────────────────────────────────────────── */

.mkt {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.mkt__main {
    flex: 1;
}

/* ── Nav ─────────────────────────────────────────────────── */

.mkt-nav {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background: oklch(from var(--color-bg-main) l c h / 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid oklch(from var(--color-border) l c h / 0.5);
    padding: var(--space-sm) var(--space-lg);
}

.mkt-nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.mkt-nav__logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    text-decoration: none;
    color: var(--color-text);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-lg);
}

.mkt-nav__logo img {
    display: block;
}

.mkt-nav__links {
    display: flex;
    gap: var(--space-lg);
    flex: 1;
}

.mkt-nav__links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-fast);
}

.mkt-nav__links a:hover,
.mkt-nav__links a.is-active {
    color: var(--color-text);
}

.mkt-nav__links a.is-active {
    border-bottom: 2px solid var(--color-brand);
    padding-bottom: 2px;
}

.mkt-nav__cta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.mkt-nav__signin {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-fast);
}

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

/* Mobile nav */
.mkt-nav__mobile {
    display: none;
    margin-left: auto;
}

.mkt-nav__hamburger {
    cursor: pointer;
    list-style: none;
    padding: var(--space-xs);
    color: var(--color-text);
}

.mkt-nav__hamburger::-webkit-details-marker {
    display: none;
}

.mkt-nav__dropdown {
    position: absolute;
    right: var(--space-lg);
    top: 100%;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-sm);
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.mkt-nav__dropdown a {
    display: block;
    padding: var(--space-xs) var(--space-sm);
    color: var(--color-text);
    text-decoration: none;
    border-radius: var(--radius-sm);
}

.mkt-nav__dropdown a:hover,
.mkt-nav__dropdown a.is-active {
    background: var(--color-bg-secondary);
}

.mkt-nav__dropdown a.is-active {
    font-weight: var(--font-weight-semibold);
}

.mkt-nav__dropdown hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: var(--space-xs) 0;
}

@media (width <= 768px) {
    .mkt-nav__links,
    .mkt-nav__cta {
        display: none;
    }

    .mkt-nav__mobile {
        display: block;
    }
}

/* ── Sections ────────────────────────────────────────────── */

.mkt-section {
    padding: var(--space-xxl) var(--space-lg);
}

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

/* Dark section — light mode gets a subtle tinted background;
   dark mode gets the traditional dark treatment. */
.mkt-section--dark {
    background: oklch(96% 0.01 var(--color-brand-hue));
    color: var(--color-text-primary);
}

.mkt-section--dark .mkt-section__heading,
.mkt-section--dark h2,
.mkt-section--dark h3 {
    color: var(--color-text-primary);
}

.mkt-section--dark .mkt-section__sub,
.mkt-section--dark p,
.mkt-section--dark li {
    color: var(--color-text-secondary);
}

@media (prefers-color-scheme: dark) {
    .mkt-section--dark {
        background: oklch(12% 0.01 var(--color-brand-hue));
        color: oklch(95% 0 0deg);
    }

    .mkt-section--dark .mkt-section__heading,
    .mkt-section--dark h2,
    .mkt-section--dark h3 {
        color: oklch(97% 0 0deg);
    }

    .mkt-section--dark .mkt-section__sub,
    .mkt-section--dark p,
    .mkt-section--dark li {
        color: oklch(75% 0 0deg);
    }
}

.mkt-section__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.mkt-section__inner--narrow {
    max-width: 700px;
}

.mkt-section__heading {
    font-size: var(--font-size-heading-xl);
    font-weight: var(--font-weight-bold);
    text-align: center;
    margin-bottom: var(--space-xl);
    letter-spacing: -0.02em;
}

.mkt-section__sub {
    max-width: 40em;
    margin: 0 auto var(--space-xl);
    text-align: center;
    color: var(--color-text-secondary);
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
}

/* ── Hero ────────────────────────────────────────────────── */

.mkt-hero {
    position: relative;
    padding: var(--space-xxl) var(--space-lg);
    text-align: center;
    padding-top: 100px;
    padding-bottom: 80px;
    background:
        linear-gradient(
            160deg,
            oklch(97% 0.01 var(--color-brand-hue)) 0%,
            oklch(95% 0.015 calc(var(--color-brand-hue) + 20)) 40%,
            oklch(96% 0.02 calc(var(--color-brand-hue) - 20)) 100%
        );
    color: var(--color-text-primary);
    overflow: hidden;
}

/* Radial glow behind hero content */
.mkt-hero::before {
    content: "";
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(
        ellipse at center,
        oklch(from var(--color-brand) l c h / 0.06) 0%,
        oklch(from var(--color-brand) l c h / 0.02) 40%,
        transparent 70%
    );
    pointer-events: none;
}

/* Second glow — offset accent for depth */
.mkt-hero::after {
    content: "";
    position: absolute;
    top: 70%;
    left: 70%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 400px;
    background: radial-gradient(
        ellipse at center,
        oklch(55% 0.15 240deg / 0.03) 0%,
        transparent 60%
    );
    pointer-events: none;
}

@media (prefers-color-scheme: dark) {
    .mkt-hero {
        background:
            linear-gradient(
                160deg,
                oklch(10% 0.03 var(--color-brand-hue)) 0%,
                oklch(14% 0.02 calc(var(--color-brand-hue) + 20)) 40%,
                oklch(12% 0.04 calc(var(--color-brand-hue) - 20)) 100%
            );
        color: oklch(95% 0 0deg);
    }

    .mkt-hero::before {
        background: radial-gradient(
            ellipse at center,
            oklch(from var(--color-brand) l c h / 0.12) 0%,
            oklch(from var(--color-brand) l c h / 0.04) 40%,
            transparent 70%
        );
    }

    .mkt-hero::after {
        background: radial-gradient(
            ellipse at center,
            oklch(55% 0.15 240deg / 0.06) 0%,
            transparent 60%
        );
    }
}

.mkt-hero--compact {
    padding-top: 70px;
    padding-bottom: 50px;
}

.mkt-hero .mkt-section__inner {
    position: relative;
    z-index: 1;
}

.mkt-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.1;
    max-width: 16em;
    margin: 0 auto var(--space-lg);
    letter-spacing: -0.03em;
    color: var(--color-text-primary);
}

.mkt-hero__sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-secondary);
    max-width: 36em;
    margin: 0 auto var(--space-xl);
    line-height: var(--line-height-relaxed);
}

.mkt-hero__ctas {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Override button styles inside hero */
.mkt-hero .button--primary {
    box-shadow: none;
}

.mkt-hero .button--primary:hover {
    box-shadow: none;
}

.mkt-hero .button--secondary {
    box-shadow: none;
}

.mkt-hero__note {
    margin-top: var(--space-md);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

/* Brand-colored accent text in headings */
.mkt-accent {
    color: var(--color-brand);
}

.mkt-hero .mkt-accent {
    color: var(--color-brand);
}

@media (prefers-color-scheme: dark) {
    .mkt-hero h1 {
        color: oklch(98% 0 0deg);
    }

    .mkt-hero__sub {
        color: oklch(75% 0 0deg);
    }

    .mkt-hero .button--secondary {
        background: transparent;
        color: oklch(85% 0 0deg);
        border-color: oklch(50% 0 0deg);
    }

    .mkt-hero .button--secondary:hover {
        background: oklch(25% 0 0deg);
        color: oklch(95% 0 0deg);
        border-color: oklch(60% 0 0deg);
    }

    .mkt-hero__note {
        color: oklch(55% 0 0deg);
    }

    .mkt-hero .mkt-accent {
        color: oklch(
            var(--color-brand-dark-lightness) var(--color-brand-chroma)
              var(--color-brand-hue)
        );
    }

    .mkt-hero .mkt-eyebrow {
        color: oklch(
            var(--color-brand-dark-lightness) var(--color-brand-chroma)
              var(--color-brand-hue)
        );
    }
}

/* ── Eyebrow Labels ─────────────────────────────────────── */

.mkt-eyebrow {
    display: block;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-brand);
    margin-bottom: var(--space-xs);
}

/* ── Stats Row ───────────────────────────────────────────── */

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

/* Make stat values more visually dominant */
.mkt-stats .stat-card__value {
    font-size: clamp(2rem, 4vw, 3rem);
}

@media (width <= 640px) {
    .mkt-stats {
        grid-template-columns: 1fr;
    }
}

/* ── Feature Grid (Homepage) ─────────────────────────────── */

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

.mkt-features .card {
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

/* Feature card icon */
.mkt-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: oklch(from var(--color-brand) l c h / 0.1);
    color: var(--color-brand);
    margin-bottom: var(--space-sm);
}

.mkt-feature-icon svg {
    width: 20px;
    height: 20px;
}

.mkt-features h3 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-xs);
}

.mkt-features p {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
}

@media (width <= 768px) {
    .mkt-features {
        grid-template-columns: 1fr;
    }
}

/* ── Compact Feature Demos (homepage cards ~350px wide) ────── */

.mkt-feature-demo--compact .mkt-feature-demo__header {
    margin: calc(-1 * var(--space-lg)) calc(-1 * var(--space-lg)) var(--space-xs);
    padding: var(--space-xxs) var(--space-xs);
}

.mkt-feature-demo--compact .mkt-feature-demo__row {
    padding: var(--space-xxs) 0;
    font-size: var(--font-size-sm);
    gap: var(--space-xs);
}

.mkt-feature-demo--compact .mkt-feature-demo__row > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
}

.mkt-feature-demo--compact.mkt-feature-demo--pr p {
    font-size: var(--font-size-sm);
    margin-bottom: 2px;
    line-height: var(--line-height-relaxed);
}

.mkt-features .mkt-feature-demo--compact,
.mkt-features .mkt-terminal--compact {
    margin-bottom: var(--space-md);
}

/* ── Mini Test Grid (homepage Test Health Dashboard card) ───── */

.mkt-mini-grid {
    border-collapse: collapse;
    width: 100%;
    font-size: var(--font-size-sm);
    font-family: var(--font-mono);
}

.mkt-mini-grid th {
    text-align: left;
    font-weight: var(--font-weight-normal);
    color: var(--color-text-secondary);
    padding: 3px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px;
}

.mkt-mini-grid td {
    padding: 3px 2px;
    text-align: center;
    width: 18px;
}

.mkt-mini-grid__dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.mkt-mini-grid__dot--pass {
    background-color: var(--color-positive);
}

.mkt-mini-grid__dot--fail {
    background-color: var(--color-negative);
}

.mkt-mini-grid__dot--empty {
    background-color: var(--color-gray-2);
}

/* ── Compact Terminal (homepage Zero SDK card) ─────────────── */

.mkt-terminal--compact {
    font-size: var(--font-size-sm);
}

.mkt-terminal--compact .mkt-terminal__body {
    padding: var(--space-xs) var(--space-sm);
}

.mkt-terminal--compact .mkt-terminal__header {
    padding: var(--space-xxs) var(--space-xs);
}

/* ── Pillar Headings (Discover / Fix / Prevent on homepage) ─ */

.mkt-pillar-heading {
    font-size: var(--font-size-heading-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-brand);
    margin-top: var(--space-xxl);
    margin-bottom: var(--space-xs);
    letter-spacing: -0.01em;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border-light);
}

.mkt-pillar-heading:first-of-type {
    margin-top: var(--space-xl);
    padding-top: 0;
    border-top: none;
}

.mkt-pillar-sub {
    color: var(--color-text-secondary);
    font-size: var(--font-size-md);
    margin-bottom: var(--space-xl);
}

/* ── Lifecycle Pipeline (Features page) ────────────────────── */

.mkt-lifecycle {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.mkt-lifecycle__stage {
    flex: 1;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding: var(--space-md);
    border: 1px solid oklch(30% 0.02 var(--color-brand-hue));
    border-radius: var(--radius-lg);
    background: oklch(20% 0.01 var(--color-brand-hue));
}

.mkt-lifecycle__stage strong {
    font-size: var(--font-size-lg);
    color: oklch(
        var(--color-brand-dark-lightness) var(--color-brand-chroma)
          var(--color-brand-hue)
    );
}

.mkt-lifecycle__stage span {
    font-size: var(--font-size-sm);
    color: oklch(65% 0 0deg);
    line-height: var(--line-height-relaxed);
}

.mkt-lifecycle__arrow {
    display: flex;
    align-items: center;
    font-size: var(--font-size-xl);
    color: oklch(45% 0 0deg);
}

@media (width <= 640px) {
    .mkt-lifecycle {
        flex-direction: column;
        align-items: center;
    }

    .mkt-lifecycle__stage {
        max-width: 100%;
        width: 100%;
    }

    .mkt-lifecycle__arrow {
        transform: rotate(90deg);
    }
}

/* ── Feature Rows (Features page — alternating) ──────────── */

.mkt-feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
    align-items: center;
}

.mkt-feature-row--reversed {
    direction: rtl;
}

.mkt-feature-row--reversed > * {
    direction: ltr;
}

/* Prevent grid children from overflowing (e.g. data grid with max-content) */
.mkt-feature-row__visual {
    min-width: 0;
    overflow-x: auto;
}

.mkt-feature-row__text {
    min-width: 0;
}

.mkt-feature-row__text h2 {
    font-size: var(--font-size-heading-xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.mkt-feature-row__text p {
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-md);
}

.mkt-feature-row__text ul {
    list-style: disc;
    padding-left: var(--space-lg);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
}

.mkt-feature-row__text li {
    margin-bottom: var(--space-xs);
}

@media (width <= 768px) {
    .mkt-feature-row,
    .mkt-feature-row--reversed {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .mkt-feature-row__visual {
        order: -1;
    }
}

/* Feature demo cards (inline product illustrations) */

/* Fake title bar on demo cards */
.mkt-feature-demo__header {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    margin: calc(-1 * var(--space-lg)) calc(-1 * var(--space-lg)) var(--space-sm);
    background: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

.mkt-feature-demo__dots {
    display: flex;
    gap: 4px;
}

.mkt-feature-demo__dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-circle);
    background: var(--color-gray-2);
}

.mkt-feature-demo__row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) 0;
    font-size: var(--font-size-sm);
    font-family: var(--font-mono);
    border-bottom: 1px solid var(--color-border-light);
}

.mkt-feature-demo__row:last-child {
    border-bottom: none;
}

.mkt-feature-demo--pr {
    font-family: var(--font-sans);
}

.mkt-feature-demo--pr p {
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-xs);
    line-height: var(--line-height-normal);
}

.mkt-feature-demo--pr code {
    font-size: var(--font-size-xs);
}


/* ── Terminal Code Snippet ──────────────────────────────── */

.mkt-terminal {
    background: oklch(12% 0 0deg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
    text-align: left;
}

.mkt-terminal__header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: var(--space-xs) var(--space-sm);
    background: oklch(16% 0 0deg);
}

.mkt-terminal__dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-circle);
}

.mkt-terminal__dot--red { background: oklch(60% 0.2 25deg); }
.mkt-terminal__dot--yellow { background: oklch(75% 0.15 85deg); }
.mkt-terminal__dot--green { background: oklch(65% 0.2 145deg); }

.mkt-terminal__title {
    flex: 1;
    text-align: center;
    color: oklch(50% 0 0deg);
    font-size: var(--font-size-xs);
}

.mkt-terminal__body {
    padding: var(--space-md) var(--space-lg);
    color: oklch(85% 0 0deg);
    overflow-x: auto;
    background: oklch(12% 0 0deg);
    border-radius: 0;
}

.mkt-terminal__body code {
    display: block;
    white-space: pre;
    font-family: inherit;
    font-size: inherit;
    background: transparent;
    color: inherit;
    padding: 0;
}

.mkt-terminal__comment {
    color: oklch(55% 0 0deg);
}

.mkt-terminal__key {
    color: oklch(75% 0.14 200deg);
}

.mkt-terminal__string {
    color: oklch(80% 0.16 145deg);
}

.mkt-terminal__highlight {
    color: oklch(90% 0.12 85deg);
}

/* Hero-to-stats visual separator */
.mkt-hero + .mkt-section--dark {
    border-top: 1px solid var(--color-gray-1);
}

@media (prefers-color-scheme: dark) {
    .mkt-hero + .mkt-section--dark {
        border-top-color: oklch(from var(--color-brand) l c h / 0.2);
    }

    /* Dark section demo cards need different treatment in dark mode */
    .mkt-section--dark .card {
        background: oklch(18% 0.01 var(--color-brand-hue));
        border-color: oklch(25% 0.02 var(--color-brand-hue));
    }

    .mkt-section--dark .mkt-feature-demo__row {
        border-bottom-color: oklch(22% 0.01 var(--color-brand-hue));
    }

    .mkt-section--dark .mkt-feature-demo__header {
        background: oklch(14% 0.01 var(--color-brand-hue));
        border-bottom-color: oklch(22% 0.01 var(--color-brand-hue));
    }
}

/* ── Enterprise Examples Grid ───────────────────────────── */

.mkt-enterprise-examples {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.mkt-enterprise-examples .card {
    text-align: left;
}

.mkt-enterprise-examples h3 {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-xs);
}

.mkt-enterprise-examples p {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
}

.mkt-enterprise-examples__tagline {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
}

@media (width <= 1024px) {
    .mkt-enterprise-examples {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (width <= 640px) {
    .mkt-enterprise-examples {
        grid-template-columns: 1fr;
    }
}

/* ── Steps ───────────────────────────────────────────────── */

.mkt-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    counter-reset: steps;
    margin-top: var(--space-xl);
}

.mkt-steps__item {
    counter-increment: steps;
    text-align: center;
}

.mkt-steps__item::before {
    content: counter(steps);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-md);
    border-radius: var(--radius-circle);
    background: var(--color-brand);
    color: white;
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-xl);
    box-shadow: 0 0 24px oklch(from var(--color-brand) l c h / 0.3);
}

.mkt-steps__item h3 {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-xs);
}

.mkt-steps__item p {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
}

@media (width <= 640px) {
    .mkt-steps {
        grid-template-columns: 1fr;
    }
}

/* ── Two Column (AI vision section) ──────────────────────── */

.mkt-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
    align-items: start;
}

.mkt-two-col__text h2 {
    font-size: var(--font-size-heading-xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-md);
}

.mkt-two-col__text p {
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-md);
}

.mkt-feature-list {
    list-style: none;
    padding: 0;
}

.mkt-feature-list li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border-light);
    line-height: var(--line-height-relaxed);
}

.mkt-feature-list li:last-child {
    border-bottom: none;
}

/* Dark section feature list — only in dark mode */
@media (prefers-color-scheme: dark) {
    .mkt-section--dark .mkt-feature-list li {
        border-bottom-color: oklch(25% 0.01 var(--color-brand-hue));
    }
}

@media (width <= 768px) {
    .mkt-two-col {
        grid-template-columns: 1fr;
    }
}

/* ── Logo Wall ───────────────────────────────────────────── */

.mkt-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
}

.mkt-logos img {
    height: 2rem;
    opacity: 0.5;
    transition: opacity var(--transition-fast);
}

.mkt-logos img:hover {
    opacity: 1;
}

/* Invert monochrome logos in OS dark mode */
@media (prefers-color-scheme: dark) {
    .mkt-logos__icon--invert {
        filter: invert(1);
    }

    .mkt-section--dark .mkt-logos img,
    .mkt-hero .mkt-logos img {
        opacity: 0.7;
    }

    .mkt-section--dark .mkt-logos img:hover,
    .mkt-hero .mkt-logos img:hover {
        opacity: 1;
    }
}

.mkt-logos__label {
    display: none;
}

.mkt-logos__item {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: oklch(55% 0 0deg);
    padding: var(--space-xs) var(--space-sm);
    border: 1px solid oklch(30% 0 0deg);
    border-radius: var(--radius-md);
    white-space: nowrap;
    transition: border-color var(--transition-fast), color var(--transition-fast);
}

.mkt-logos__item:hover {
    border-color: oklch(from var(--color-brand) l c h / 0.5);
    color: oklch(75% 0 0deg);
}

.mkt-logos--large .mkt-logos__item {
    font-size: var(--font-size-md);
    padding: var(--space-sm) var(--space-md);
}

/* Logo wall on light backgrounds */
.mkt-section:not(.mkt-section--dark, .mkt-hero) .mkt-logos__item {
    color: var(--color-text-muted);
    border-color: var(--color-border-light);
}

.mkt-section:not(.mkt-section--dark, .mkt-hero) .mkt-logos__item:hover {
    border-color: var(--color-brand);
    color: var(--color-text);
}

/* ── Pricing Grid ────────────────────────────────────────── */

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

/* Make cards fill grid cell height and push CTA to bottom */
.mkt-pricing .card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mkt-pricing .card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.mkt-pricing__card--featured {
    border-color: var(--color-brand) !important;
    box-shadow: 0 0 24px oklch(from var(--color-brand) l c h / 0.15);
    position: relative;
    overflow: hidden;
}

/* Brand-colored top bar on featured card */
.mkt-pricing__card--featured::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-brand);
}

.mkt-pricing__header {
    text-align: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border-light);
}

.mkt-pricing__header h3 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-xxs);
}

.mkt-pricing__price {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    line-height: 1;
    margin-top: var(--space-md);
    letter-spacing: -0.02em;
}

.mkt-pricing__card--featured .mkt-pricing__price {
    color: var(--color-brand);
}

.mkt-pricing__period {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-normal);
    color: var(--color-text-muted);
}

.mkt-pricing__features {
    list-style: none;
    padding: 0;
    margin-bottom: var(--space-lg);
    flex: 1;
}

.mkt-pricing__features li {
    padding: var(--space-xs) 0;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    border-bottom: 1px solid var(--color-border-light);
}

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

.mkt-pricing__cta {
    width: 100%;
}

.mkt-pricing__includes {
    font-size: var(--font-size-sm);
}

@media (width <= 1024px) {
    .mkt-pricing {
        grid-template-columns: repeat(2, 1fr);
    }

    .mkt-pricing__card--featured {
        order: -1;
    }
}

@media (width <= 640px) {
    .mkt-pricing {
        grid-template-columns: 1fr;
    }
}

/* ── Contact Cards ───────────────────────────────────────── */

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

.mkt-contact-cards h3 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-xs);
}

@media (width <= 640px) {
    .mkt-contact-cards {
        grid-template-columns: 1fr;
    }
}

/* ── CTA Banner ──────────────────────────────────────────── */

.mkt-cta-banner {
    background: linear-gradient(
        135deg,
        oklch(from var(--color-brand) calc(l - 5%) c h) 0%,
        var(--color-brand) 50%,
        oklch(from var(--color-brand) calc(l + 5%) c calc(h + 10)) 100%
    );
    color: white;
    padding: 80px var(--space-lg);
    position: relative;
    overflow: hidden;
}

/* Dot pattern texture on CTA banner */
.mkt-cta-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(oklch(100% 0 0deg / 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

/* Radial glow overlay */
.mkt-cta-banner::after {
    content: "";
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(
        ellipse at center,
        oklch(100% 0 0deg / 0.08) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.mkt-cta-banner h2 {
    position: relative;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

.mkt-cta-banner p {
    position: relative;
    margin-bottom: var(--space-lg);
    opacity: 0.9;
    font-size: var(--font-size-lg);
}

/* Override button shadow/color on brand background */
.mkt-cta-banner .button {
    position: relative;
    background: white;
    color: var(--color-brand);
    box-shadow: none;
}

.mkt-cta-banner .button:hover {
    background: oklch(95% 0 0deg);
    box-shadow: none;
}

/* ── Footer ──────────────────────────────────────────────── */

.mkt-footer {
    background: oklch(12% 0 0deg);
    border-top: 1px solid oklch(20% 0 0deg);
    padding: var(--space-xxl) var(--space-lg) var(--space-lg);
    color: oklch(70% 0 0deg);
}

.mkt-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
}

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

.mkt-footer__heading {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: oklch(50% 0 0deg);
    margin-bottom: var(--space-md);
}

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

.mkt-footer__col li {
    margin-bottom: var(--space-xs);
}

.mkt-footer__col a {
    color: oklch(65% 0 0deg);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast);
}

.mkt-footer__col a:hover {
    color: oklch(90% 0 0deg);
}

.mkt-footer__bottom {
    border-top: 1px solid oklch(20% 0 0deg);
    padding-top: var(--space-lg);
    font-size: var(--font-size-xs);
    color: oklch(45% 0 0deg);
}

@media (width <= 640px) {
    .mkt-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Global Mobile Overrides ────────────────────────────── */

@media (width <= 640px) {
    .mkt-section {
        padding: var(--space-xl) var(--space-md);
    }

    .mkt-hero {
        padding: var(--space-xl) var(--space-md);
        padding-top: 60px;
        padding-bottom: 48px;
    }

    .mkt-hero--compact {
        padding-top: 48px;
        padding-bottom: 36px;
    }

    .mkt-cta-banner {
        padding: var(--space-xxl) var(--space-md);
    }

    .mkt-section__heading {
        font-size: var(--font-size-heading-lg);
    }

    .mkt-feature-row__text h2 {
        font-size: var(--font-size-heading-lg);
    }
}

} /* end @layer components */

/* Terminal overrides — must be outside @layer to beat unlayered base.css resets */
pre.mkt-terminal__body {
    background: oklch(12% 0 0deg);
    color: oklch(85% 0 0deg);
    border-radius: 0;
    padding: var(--space-md) var(--space-lg);
    margin: 0;
}

pre.mkt-terminal__body code,
.mkt-terminal__body code {
    background: transparent;
    color: inherit;
    padding: 0;
}
