/*
 * Orchedule Public Marketing Layer
 * -----------------------------------------------------------------------------
 * Brand treatment for public marketing pages (contact sales, general inquiry
 * and their confirmation pages). Load after themes.css, create-form.css and
 * public-page.css: forms keep the Create Form Standard; this file adds the
 * landing-page hero band, an elevated form card with a sticky side column,
 * and a primary call-to-action that matches the landing page.
 */

body.mkt-page {
    background: var(--surface-light, #f8fafc);
}

/* ------------------------------------------------------------------ hero -- */
.mkt-hero {
    position: relative;
    overflow: hidden;
    padding: 20px 0 108px;
    color: #fff;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #2563eb 100%);
}

.mkt-hero::before,
.mkt-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.mkt-hero::before {
    top: -160px;
    left: -120px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.45) 0%, transparent 70%);
    filter: blur(30px);
}

.mkt-hero::after {
    right: -140px;
    bottom: -200px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.25) 0%, transparent 70%);
    filter: blur(50px);
}

.mkt-hero.is-compact {
    padding-bottom: 96px;
}

.mkt-hero-inner,
.mkt-body {
    position: relative;
    z-index: 1;
    width: min(100%, 1140px);
    margin-inline: auto;
    padding-inline: clamp(16px, 3vw, 32px);
}

.mkt-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: clamp(28px, 5vw, 56px);
}

.mkt-brand {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.mkt-brand:hover {
    color: #fff;
}

.mkt-back {
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.mkt-back:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.7);
}

.mkt-hero-copy {
    max-width: 760px;
}

.mkt-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mkt-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #fff;
}

.mkt-highlight {
    background-image: linear-gradient(to right, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.mkt-lead {
    margin: 0;
    max-width: 62ch;
    color: #cbd5e1;
    font-size: clamp(0.95rem, 1.4vw, 1.1rem);
    font-weight: 300;
    line-height: 1.7;
}

.mkt-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 40px;
    margin: 28px 0 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mkt-stats dt {
    color: #fbbf24;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.1;
}

.mkt-stats dd {
    margin: 2px 0 0;
    color: #cbd5e1;
    font-size: 0.78rem;
}

/* ------------------------------------------------------------------ body -- */
.mkt-body {
    margin-top: -72px;
    padding-bottom: 48px;
}

.mkt-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.mkt-grid.is-single {
    grid-template-columns: minmax(0, 760px);
    justify-content: center;
}

/* Elevated card that frames the standard create-form panels. */
.mkt-card {
    padding: clamp(16px, 2.4vw, 26px);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 16px;
    background: var(--card-background, #fff);
    box-shadow: 0 20px 45px -20px rgba(15, 23, 42, 0.35);
}

.mkt-card-header {
    margin-bottom: 18px;
}

.mkt-card-header h2 {
    margin: 0 0 4px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary, #1f2937);
}

.mkt-card-header p {
    margin: 0;
    color: var(--text-muted, #475569);
    font-size: 0.82rem;
}

.mkt-card .form-create-bg .create-form-inner:last-child {
    margin-bottom: 0;
}

.mkt-card .form-create-bg textarea.form-control {
    min-height: 96px;
    resize: vertical;
}

/* Landing-page call-to-action on top of the standard button sizing. */
.form-create-bg .btn.mkt-cta,
.btn.mkt-cta {
    border: 0;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #0f172a;
    font-weight: 700;
    box-shadow: 0 8px 20px -8px rgba(245, 158, 11, 0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-create-bg .btn.mkt-cta:hover,
.btn.mkt-cta:hover,
.btn.mkt-cta:focus-visible {
    color: #000;
    background: linear-gradient(135deg, #fcd34d, #fbbf24);
    box-shadow: 0 12px 26px -8px rgba(245, 158, 11, 0.7);
    transform: translateY(-1px);
}

/* ------------------------------------------------------------ side column -- */
.mkt-aside {
    position: sticky;
    top: 20px;
    display: grid;
    gap: 16px;
}

.mkt-aside-card {
    padding: 18px;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 14px;
    background: var(--card-background, #fff);
    box-shadow: 0 10px 30px -18px rgba(15, 23, 42, 0.3);
}

.mkt-aside-card h2 {
    margin: 0 0 12px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted, #475569);
}

.mkt-aside-card .cf-feature-list {
    grid-template-columns: 1fr;
}

.mkt-aside-card:not(.is-dark) a {
    color: var(--primary-color, #2563eb);
    font-weight: 600;
    text-decoration: none;
}

.mkt-aside-card:not(.is-dark) a:hover {
    text-decoration: underline;
}

.mkt-aside-card.is-dark {
    border-color: transparent;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #e2e8f0;
}

.mkt-aside-card.is-dark h2 {
    color: #fbbf24;
}

.mkt-aside-card.is-dark p {
    margin: 0 0 10px;
    font-size: 0.8rem;
    color: #cbd5e1;
}

.mkt-contact-line {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}

.mkt-contact-line + .mkt-contact-line {
    margin-top: 4px;
}

.mkt-contact-line:hover {
    color: #fbbf24;
}

/* ---------------------------------------------------------------- footer -- */
.mkt-footer {
    padding: 0 16px 28px;
    color: var(--text-muted, #475569);
    font-size: 0.75rem;
    text-align: center;
}

.mkt-footer a {
    color: inherit;
}

/* ------------------------------------------------------------ responsive -- */
@media (max-width: 992px) {
    .mkt-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .mkt-aside {
        position: static;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 576px) {
    .mkt-topbar {
        margin-bottom: 24px;
    }

    .mkt-stats {
        gap: 12px 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn.mkt-cta {
        transition: none;
    }

    .btn.mkt-cta:hover {
        transform: none;
    }
}
