/* marketing-redesign.css — Linear-inspired layout */

/* ─── Main ─────────────────────────────────────────────── */

.marketing-main {
    position: relative;
    z-index: 1;
}

.marketing-main::before,
.marketing-main::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: -1;
    filter: blur(2px);
}

.marketing-main::before {
    top: 6rem;
    left: -14rem;
    width: 42rem;
    height: 42rem;
    background: radial-gradient(circle, rgba(116, 140, 255, 0.12) 0%, rgba(116, 140, 255, 0) 68%);
}

.marketing-main::after {
    top: 42rem;
    right: -16rem;
    width: 48rem;
    height: 48rem;
    background: radial-gradient(circle, rgba(91, 188, 166, 0.1) 0%, rgba(91, 188, 166, 0) 70%);
}

/* ─── Section base ─────────────────────────────────────── */

.m-section {
    position: relative;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .m-section {
        padding: 0 2.5rem;
    }
}

/* ─── HERO ─────────────────────────────────────────────── */

.m-hero {
    padding-top: clamp(8rem, 16vh, 12rem);
    padding-bottom: clamp(3rem, 5vh, 4rem);
    text-align: center;
}

.m-hero-inner {
    max-width: 44rem;
    margin: 0 auto;
}

.m-hero-h1 {
    font-size: clamp(1.35rem, 6.5vw, 4rem);
    font-weight: 510;
    letter-spacing: -0.035em;
    line-height: 1.15;
    color: var(--text-h);
    margin: 0.75rem 0 1.75rem;
}

.m-hero-sub {
    font-size: clamp(0.9375rem, 1.2vw, 1rem);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-p);
    text-align: center;
    max-width: 30rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .m-hero-sub {
        white-space: normal;
        max-width: none;
    }
}

.m-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 2.5rem;
}

/* ─── HERO SCREENSHOT ──────────────────────────────────── */

.m-section-shot {
    padding-bottom: clamp(5rem, 8vw, 8rem);
}

.m-shot-wrap {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-img);
    position: relative;
}

.m-shot-slides {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.m-shot-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 600ms ease;
    pointer-events: none;
}

.m-shot-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.m-shot-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.m-shot-controls {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.m-shot-thumb {
    width: 2.5rem;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 200ms ease;
}

.m-shot-thumb.is-active {
    background: rgba(255, 255, 255, 0.9);
}

@media (prefers-reduced-motion: reduce) {
    .m-shot-slide {
        transition: none;
    }
}

/* ─── FEATURE SECTIONS ─────────────────────────────────── */

.m-feature {
    padding-top: clamp(5rem, 9vw, 9rem);
    padding-bottom: clamp(5rem, 9vw, 9rem);
    border-top: 1px solid var(--border);
}

.m-feature-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .m-feature-inner {
        grid-template-columns: 0.4fr 0.6fr;
        gap: 4rem;
    }

    .m-feature-reverse {
        grid-template-columns: 0.6fr 0.4fr;
    }

    .m-feature-reverse .m-feature-copy {
        order: 2;
    }

    .m-feature-reverse .m-feature-media {
        order: 1;
    }
}

.m-feature-num {
    display: block;
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--text-dim, #5a5f6a);
    letter-spacing: 0.04em;
    margin-bottom: 1.5rem;
}

.m-feature-h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 510;
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: var(--text-h);
    margin: 0 0 1.5rem;
}

.m-feature-p {
    font-size: clamp(0.9375rem, 1.1vw, 1rem);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-p);
    max-width: 26rem;
}

.m-feature-link {
    display: inline-block;
    margin-top: 2rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-h);
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 200ms ease;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.m-feature-link:hover {
    opacity: 1;
}

/* ─── Screenshot fade-out effect ───────────────────────── */

.m-media-fade {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.m-media-fade img {
    display: block;
    width: 100%;
    height: auto;
}

.m-media-fade::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            ellipse at center,
            rgba(8, 9, 10, 0) 32%,
            rgba(8, 9, 10, 0.42) 62%,
            rgba(8, 9, 10, 0.94) 100%
        ),
        linear-gradient(
            90deg,
            rgba(8, 9, 10, 0.74) 0%,
            rgba(8, 9, 10, 0.12) 22%,
            rgba(8, 9, 10, 0.12) 78%,
            rgba(8, 9, 10, 0.74) 100%
        ),
        linear-gradient(
            180deg,
            rgba(8, 9, 10, 0) 42%,
            rgba(8, 9, 10, 0.36) 70%,
            rgba(8, 9, 10, 0.92) 100%
        );
    pointer-events: none;
}

.m-shot-fade {
    position: relative;
}

.m-shot-fade::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(
        180deg,
        transparent 55%,
        rgba(8, 9, 10, 0.5) 80%,
        rgba(8, 9, 10, 1) 100%
    );
    pointer-events: none;
}

/* ─── Structured narrative sections ────────────────────── */

.m-group-head {
    border-top: 1px solid var(--border);
    padding-top: clamp(5.4rem, 8.8vw, 9.2rem);
    padding-bottom: clamp(1.4rem, 2.8vw, 2.4rem);
}

.m-group-head-primary {
    padding-top: clamp(6.2rem, 10vw, 10.5rem);
}

.m-group-title {
    margin: 0;
    color: var(--text-h);
    font-size: clamp(1.65rem, 3.2vw, 2.7rem);
    line-height: 1.2;
    letter-spacing: -0.03em;
    text-align: center;
    text-wrap: balance;
}

.m-group-head-primary .m-group-title {
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    line-height: 1.14;
}

.m-title-main {
    display: block;
}

.m-title-sub {
    display: block;
    margin-top: 0.35rem;
    color: var(--text-muted);
    font-size: clamp(0.86rem, 1.25vw, 1.04rem);
    font-weight: 600;
    letter-spacing: 0.015em;
    line-height: 1.45;
}

.m-subgroup-head {
    padding-top: clamp(2.5rem, 4.5vw, 3.7rem);
    padding-bottom: 1.2rem;
}

.m-subgroup-title {
    margin: 0;
    color: var(--text-h);
    font-size: clamp(1.2rem, 2.2vw, 1.8rem);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.m-flow-block {
    padding-top: clamp(1.6rem, 2.8vw, 2.5rem);
    padding-bottom: clamp(3.8rem, 6vw, 6rem);
}

.m-flow-block + .m-flow-block {
    margin-top: clamp(2.9rem, 4.8vw, 5rem);
}

.m-flow-copy {
    max-width: 56rem;
}

.m-flow-title {
    margin: 0;
    color: var(--text-h);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.m-flow-title .m-title-sub {
    margin-top: 0.5rem;
}

.m-flow-block-primary .m-flow-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.15;
}

.m-flow-quote {
    margin: 1.1rem 0 0;
    color: var(--text-h);
    font-size: clamp(1.2rem, 1.9vw, 1.55rem);
    font-weight: 510;
    line-height: 1.5;
}

.m-flow-desc {
    margin: 1rem 0 0;
    color: var(--text-muted);
    font-size: clamp(0.9375rem, 1.15vw, 1rem);
    line-height: 1.8;
    max-width: 52rem;
}

.m-flow-notes {
    margin: 0.95rem 0 0;
    padding-left: 1.05rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.7;
}

.m-upcoming-card {
    margin-top: 1.15rem;
    border: 1px solid rgba(140, 154, 255, 0.3);
    border-radius: 12px;
    background:
        linear-gradient(140deg, rgba(116, 140, 255, 0.12) 0%, rgba(20, 21, 22, 0.72) 52%, rgba(20, 21, 22, 0.9) 100%);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
    padding: 0.9rem 1rem;
    max-width: 40rem;
}

.m-upcoming-title {
    margin: 0;
    color: var(--text-h);
    font-size: clamp(0.96rem, 1.34vw, 1.06rem);
    font-weight: 500;
    line-height: 1.55;
}

.m-upcoming-lead {
    margin: 0.25rem 0 0;
    color: var(--text-p);
    font-size: 0.84rem;
    line-height: 1.62;
}

.m-upcoming-list {
    margin: 0.7rem 0 0;
    padding: 0;
    list-style: none;
}

.m-upcoming-list li {
    position: relative;
    padding-left: 0.95rem;
    font-size: 0.82rem;
    line-height: 1.62;
    color: var(--text-p);
}

.m-upcoming-list li + li {
    margin-top: 0.45rem;
}

.m-upcoming-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: rgba(180, 190, 255, 0.86);
}

.m-upcoming-item-label {
    color: var(--text-h);
    font-weight: 510;
}

.m-upcoming-item-text {
    color: var(--text-p);
}

.m-feature-group {
    margin-top: clamp(3rem, 4.8vw, 5rem);
}

.m-feature-list {
    list-style: none;
    margin: 1.15rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.m-feature-list li {
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    background: rgba(20, 21, 22, 0.58);
    backdrop-filter: blur(8px);
    padding: 0.95rem 1rem;
}

.m-feature-item-title {
    margin: 0;
    color: var(--text-h);
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    font-weight: 510;
    line-height: 1.35;
}

.m-feature-item-desc {
    margin: 0.35rem 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.75;
}

.m-feature-item-note {
    margin: 0.4rem 0 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.65;
}

.m-flow-media {
    margin-top: 1.6rem;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 26px 56px rgba(0, 0, 0, 0.42);
    background: rgba(20, 21, 22, 0.22);
}

.m-flow-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.m-faq-list {
    padding-top: 0.2rem;
    padding-bottom: clamp(3rem, 6vw, 5rem);
    display: grid;
    gap: 0.9rem;
}

.m-faq-item {
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    background: rgba(20, 21, 22, 0.52);
    backdrop-filter: blur(8px);
    overflow: hidden;
}

.m-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: none;
    background: transparent;
    color: var(--text-h);
    text-align: left;
    padding: 1.05rem 1.1rem;
    cursor: pointer;
    font-size: clamp(0.95rem, 1.4vw, 1.06rem);
    line-height: 1.55;
}

.m-faq-toggle {
    color: var(--text-muted);
    font-size: 1.3rem;
    line-height: 1;
}

.m-faq-answer {
    overflow: hidden;
}

.m-faq-answer p {
    margin: 0;
    padding: 0 1.1rem 1.2rem;
    color: var(--text-p);
    font-size: 0.9rem;
    line-height: 1.75;
}

@media (min-width: 1024px) {
    .m-flow-block {
        display: grid;
        grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
        gap: clamp(2.2rem, 3.2vw, 3.6rem);
        align-items: stretch;
    }

    .m-flow-block-reverse {
        grid-template-columns: minmax(0, 0.6fr) minmax(0, 0.4fr);
    }

    .m-flow-block-reverse .m-flow-copy {
        order: 2;
    }

    .m-flow-block-reverse .m-flow-media {
        order: 1;
    }

    .m-flow-media {
        margin-top: 0;
        height: 100%;
        min-height: clamp(24rem, 31vw, 34rem);
    }

    .m-flow-copy {
        max-width: 36rem;
    }

    .m-flow-block-primary,
    .m-feature-group {
        align-items: start;
    }
}

/* ─── Inline detail expansion ──────────────────────────── */

.m-detail {
    overflow: hidden;
    margin-top: 2rem;
}

.m-detail-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .m-detail-inner {
        grid-template-columns: repeat(3, 1fr);
    }
}

.m-detail-item {
    background: var(--bg-elevated, #141516);
    padding: 1.5rem;
}

.m-detail-title {
    font-size: 0.8125rem;
    font-weight: 510;
    color: var(--text-h);
    margin-bottom: 0.5rem;
}

.m-detail-desc {
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-muted);
}

.m-detail-link {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-h) !important;
    opacity: 0.6;
    text-decoration: none;
    transition: opacity 200ms ease;
}

.m-detail-link:hover {
    opacity: 1;
}

/* ─── Screenshot crop per section ──────────────────────── */

/* All cropped media: fixed height, object-fit cover */
.m-crop-ai,
.m-crop-backtest,
.m-crop-ops,
.m-crop-community,
.m-crop-ops-focus,
.m-crop-ai-loop,
.m-crop-editor-focus {
    height: clamp(20rem, 32vw, 28rem);
}

.m-flow-block .m-crop-ai,
.m-flow-block .m-crop-backtest,
.m-flow-block .m-crop-ops,
.m-flow-block .m-crop-community,
.m-flow-block .m-crop-ops-focus,
.m-flow-block .m-crop-ai-loop,
.m-flow-block .m-crop-editor-focus {
    height: 100%;
    min-height: clamp(22rem, 29vw, 34rem);
}

.m-crop-ai img,
.m-crop-backtest img,
.m-crop-ops img,
.m-crop-community img,
.m-crop-ops-focus img,
.m-crop-ai-loop img,
.m-crop-editor-focus img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* AI: show the right-side AI chat panel area */
.m-crop-ai img {
    object-position: right top;
}

/* Backtest: show the results panel (right side with chart) */
.m-crop-backtest img {
    object-position: right center;
}

/* Operations: show the strategy + stock table (center) */
.m-crop-ops img {
    object-position: center top;
}

/* Community: show the card grid (center) */
.m-crop-community img {
    object-position: center top;
}

.m-crop-ops-focus img {
    object-position: 16% top;
    transform: scale(1.2);
    transform-origin: left top;
}

.m-crop-ai-loop img {
    object-position: right 8%;
    transform: scale(1.16);
    transform-origin: right top;
}

.m-crop-editor-focus img {
    object-position: center 8%;
    transform: scale(1.15);
    transform-origin: center top;
}

/* ─── Code block ───────────────────────────────────────── */

.m-code-block {
    background: #0a0a0b;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}

.m-code-block pre {
    margin: 0;
    padding: 1.5rem 1.75rem;
    overflow-x: auto;
}

.m-code-block code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.7);
}

/* ─── FINAL CTA ────────────────────────────────────────── */

.m-final {
    background: var(--bg-dark);
    color: var(--text-inv);
    text-align: center;
    max-width: none;
    padding: clamp(5rem, 10vw, 10rem) 1.5rem;
    margin-top: clamp(4rem, 7vw, 7rem);
}

.m-final-inner {
    max-width: 36rem;
    margin: 0 auto;
}

.m-final-h2 {
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    font-weight: 510;
    letter-spacing: -0.035em;
    line-height: 1;
    color: var(--text-inv);
    margin: 0 0 1.5rem;
}

.m-final-p {
    font-size: clamp(0.9375rem, 1.1vw, 1rem);
    line-height: 1.6;
    color: var(--text-inv-p);
    max-width: 28rem;
    margin: 0 auto 2.5rem;
}

.m-final-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.m-final-gpts {
    margin-top: 1.5rem;
}

.m-final-gpts p {
    font-size: 0.875rem;
    color: var(--text-inv-p);
}

.m-final-meta {
    margin-top: 2rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.04em;
}

/* ─── Navbar ───────────────────────────────────────────── */

.site-navbar {
    background: transparent;
}

.site-navbar-panel {
    background: rgba(8, 9, 10, 0.97);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
}

.site-nav-link {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 200ms ease;
}

.site-nav-link:hover {
    color: var(--text-h);
}

.site-nav-action {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-muted);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 200ms ease;
}

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

.site-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.5);
}

.site-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

@media (max-width: 767px) {
    .site-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .site-footer-grid {
        grid-template-columns: 1fr;
    }
}

.site-footer-title {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 1rem;
}

.site-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.site-footer-link {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 200ms ease;
}

.site-footer-link:hover {
    color: #ffffff;
}

.site-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.site-brand-icon-nav {
    width: 1.75rem;
    height: 1.75rem;
}

.site-brand-logo-nav {
    height: 1.125rem;
    width: auto;
}

.site-brand-logo-footer {
    height: 1.125rem;
    width: auto;
    opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════════
   Legacy classes — product.html, studio.html, pricing.html
   ═══════════════════════════════════════════════════════════ */

.marketing-shell {
    position: relative;
    padding-bottom: clamp(3rem, 5vw, 5rem);
}

.marketing-shell-hero {
    overflow: clip;
}

.marketing-shell-cta {
    padding-top: clamp(3rem, 5vw, 5rem);
}

.marketing-page-head {
    max-width: 42rem;
}

.marketing-page-title {
    max-width: 10.5em;
    font-size: clamp(2.45rem, 5.1vw, 4.2rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text-h);
    text-wrap: balance;
}

.marketing-page-subtitle {
    max-width: 41rem;
    color: var(--text-p);
    margin-top: 1rem;
    font-size: clamp(1rem, 1.55vw, 1.12rem);
    line-height: 1.8;
}

.marketing-hero-grid {
    display: grid;
    gap: 1.5rem;
    align-items: center;
}

.marketing-copy {
    max-width: 42rem;
}

.marketing-hero-title {
    max-width: 10.5em;
}

.marketing-hero-subtitle {
    max-width: 41rem;
}

.marketing-sequence-section {
    position: relative;
}

.marketing-sequence-section .max-w-7xl,
.marketing-sequence-section .max-w-5xl {
    border-top: 1px solid var(--border);
    padding-top: 2.4rem;
}

.marketing-sequence-row {
    display: grid;
    gap: 1.4rem;
    align-items: start;
}

.marketing-sequence-number {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
}

.marketing-sequence-copy h2 {
    margin-top: 0.55rem;
    color: var(--text-h);
    font-size: clamp(1.55rem, 2.3vw, 2.3rem);
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.marketing-sequence-copy p {
    margin-top: 0.8rem;
    max-width: 45rem;
    color: var(--text-p);
    line-height: 1.8;
}

.marketing-sequence-list {
    display: grid;
    gap: 0.8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.marketing-sequence-list li {
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
    color: var(--text-h);
    line-height: 1.65;
}

.marketing-sequence-list li strong {
    color: var(--text-h);
    font-weight: 700;
}

.marketing-sequence-links li {
    padding-top: 1rem;
}

.marketing-sequence-link {
    color: var(--text-h);
    font-weight: 600;
}

.marketing-sequence-shot-frame {
    margin-top: 1.8rem;
}

.marketing-sequence-shot-frame img {
    display: block;
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-img);
}

.marketing-route-eyebrow {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.marketing-cta-panel {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.45rem;
    background: var(--bg);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.marketing-cta-panel h2 {
    font-size: clamp(1.35rem, 2vw, 2rem);
    line-height: 1.25;
    letter-spacing: -0.03em;
    margin-top: 0.65rem;
    color: var(--text-h);
}

.marketing-cta-panel p {
    color: var(--text-p);
    margin-top: 0.75rem;
    line-height: 1.75;
}

.marketing-image-grid {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.marketing-image-card {
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg);
}

.marketing-image-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.marketing-image-card figcaption {
    padding: 0.9rem 1rem 1rem;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.marketing-code-panel {
    margin-top: 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    background: #0a0a0b;
    overflow: hidden;
}

.marketing-code-panel pre {
    margin: 0;
    padding: 1.1rem 1.15rem;
    overflow-x: auto;
    color: rgba(255,255,255,0.7);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88rem;
    line-height: 1.7;
}

.marketing-code-panel p {
    padding: 0 1.15rem 1.1rem;
    margin: 0;
    color: var(--text-p);
}

.marketing-stage-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 22rem;
}

/* ─── Legacy page-specific ────────────────────────────── */

.landing-home .marketing-copy,
.studio-page .marketing-copy,
.pricing-page .marketing-copy {
    margin-inline: auto;
    text-align: center;
}

.studio-page .marketing-hero-grid,
.pricing-page .marketing-hero-grid {
    grid-template-columns: minmax(0, 1fr);
}

.product-page .marketing-page-head { max-width: none; }
.product-page .marketing-page-title { max-width: 17.5em; }
.product-page .marketing-page-subtitle { max-width: 68rem; }
.product-page .marketing-image-card { box-shadow: none; background: transparent; border: 0; }
.product-page .marketing-image-card img { border-radius: 12px; box-shadow: var(--shadow-img); }

/* Legacy page backgrounds — all dark */
.product-page,
.studio-page,
.pricing-page,
.getting-started-page {
    background: var(--bg);
    color: var(--text-h);
}

/* pricing dark overrides for legacy components */
.pricing-page .marketing-cta-panel {
    background: var(--bg-elevated, #141516);
    border-color: rgba(255, 255, 255, 0.06);
}

.pricing-page .marketing-sequence-section .max-w-7xl {
    border-color: rgba(255, 255, 255, 0.06);
}

.pricing-page .marketing-gpts-note p {
    color: var(--text-muted);
}

.pricing-page .marketing-gpts-note-inline {
    background: transparent;
    border: none;
    box-shadow: none;
}

/* ─── Legacy responsive ───────────────────────────────── */

@media (min-width: 768px) {
    .marketing-sequence-row {
        grid-template-columns: 5rem minmax(0, 1.1fr) minmax(16rem, 0.9fr);
    }
    .marketing-image-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .marketing-hero-grid {
        grid-template-columns: minmax(0, 1.02fr) minmax(25rem, 0.98fr);
        gap: 2rem;
    }
    .marketing-image-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .studio-page .marketing-hero-grid,
    .pricing-page .marketing-hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    .marketing-sequence-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .marketing-stage-image {
        min-height: 16rem;
    }
    .product-page .marketing-page-title,
    .product-page .marketing-page-subtitle,
    .studio-page .marketing-hero-title,
    .studio-page .marketing-hero-subtitle,
    .pricing-page .marketing-hero-title,
    .pricing-page .marketing-hero-subtitle {
        max-width: none;
    }
}
