/* Cryo Contouring Referral Platform — Design System
   Brand palette: dark navy (#201E45), slate blue-gray (#404267), light lavender (#E4E4EF).
   White cards, muted navy/slate accent, minimal borders. */

:root {
    --color-bg: #E4E4EF;
    --color-card: #FFFFFF;
    --color-border: #D6D6E7;
    --color-accent: #404267;
    --color-accent-light: rgba(64, 66, 103, 0.1);
    --color-heading: #201E45;
    --color-text: #53547A;
    --color-muted: #8B8CAA;
    --color-success: #16A34A;
    --color-pending: #F59E0B;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-card: 0 1px 2px rgba(32, 30, 69, 0.05), 0 8px 24px rgba(32, 30, 69, 0.08);
    --font-sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-poppins: var(--font-sans);
    --color-ink: #14132C;
}

:root[data-theme="dark"] {
    --color-bg: #201E45;
    --color-card: #2B2955;
    --color-border: #3E3C6C;
    --color-accent: #8386BB;
    --color-accent-light: rgba(131, 134, 187, 0.18);
    --color-heading: #E4E4EF;
    --color-text: #C4C4DA;
    --color-muted: #9394B8;
    --color-success: #22C55E;
    --color-pending: #FBBF24;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.45);
}

:root[data-theme="dark"] body {
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, h4 {
    color: var(--color-heading);
    margin: 0;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-heading);
}

.btn-outline {
    background: var(--color-card);
    border-color: var(--color-border);
    color: var(--color-heading);
}

.btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-block {
    width: 100%;
}

/* ---------- Forms ---------- */

.form-group {
    margin-bottom: 18px;
}

.form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 180px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-heading);
}

.form-check input {
    accent-color: var(--color-accent);
    width: 16px;
    height: 16px;
}

.action-row {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-danger {
    background: #FEF2F2;
    color: #B91C1C;
    border: 1px solid #FECACA;
}

.btn-danger:hover {
    background: #FEE2E2;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: var(--color-card);
    color: var(--color-heading);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-light);
}

.form-hint {
    font-size: 12px;
    color: var(--color-muted);
    margin-top: 6px;
}

.form-error {
    background: #FEF2F2;
    color: #B91C1C;
    border: 1px solid #FECACA;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 18px;
}

.form-success {
    background: #F0FDF4;
    color: #15803D;
    border: 1px solid #BBF7D0;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 18px;
}

/* ---------- Auth / Landing pages (no sidebar) ---------- */

.centered-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--color-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 40px;
}

.auth-card .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    font-weight: 700;
    font-size: 18px;
    color: var(--color-heading);
}

.brand-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-accent);
    display: inline-block;
}

.auth-card h1 {
    font-size: 22px;
    margin-bottom: 6px;
}

.auth-card .subtitle {
    font-size: 14px;
    color: var(--color-muted);
    margin-bottom: 28px;
}

.auth-footer-link {
    text-align: center;
    font-size: 14px;
    margin-top: 20px;
    color: var(--color-muted);
}

.auth-footer-link a {
    color: var(--color-accent);
    font-weight: 600;
}

/* Landing page session summary card */
.session-summary {
    background: var(--color-accent-light);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin-bottom: 24px;
}

.session-summary h3 {
    font-size: 15px;
    margin-bottom: 4px;
}

.session-summary p {
    margin: 2px 0;
    font-size: 13px;
    color: var(--color-text);
}

/* ---------- Dashboard shell ---------- */

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--color-card);
    border-right: 1px solid var(--color-border);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    color: var(--color-heading);
    padding: 0 8px;
    margin-bottom: 32px;
}

.sidebar-menu-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--color-muted);
    padding: 0 12px;
    margin-bottom: 8px;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
}

.sidebar nav a:hover {
    background: var(--color-accent-light);
    color: var(--color-accent);
}

.sidebar nav a.active {
    background: var(--color-accent);
    color: #fff;
}

.sidebar-user {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-top: 1px solid var(--color-border);
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-accent-light);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.sidebar-user .name {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-heading);
}

.sidebar-user .role {
    font-size: 12px;
    color: var(--color-muted);
}

.main-content {
    flex: 1;
    padding: 28px 36px;
    max-width: 100%;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
}

.topbar h1 {
    font-size: 26px;
}

.search-form {
    flex: 1;
    max-width: 360px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 10px 16px;
    color: var(--color-muted);
    font-size: 14px;
}

.search-box svg {
    flex-shrink: 0;
}

.search-box input {
    border: none;
    outline: none;
    background: none;
    font-family: inherit;
    font-size: 14px;
    color: var(--color-heading);
    width: 100%;
}

.search-box input::placeholder {
    color: var(--color-muted);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.icon-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.notif-wrap {
    position: relative;
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #E11D48;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.notif-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 300px;
    background: var(--color-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 14px;
    z-index: 20;
}

.notif-dropdown.open {
    display: block;
}

.notif-dropdown-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 10px;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-top: 1px solid var(--color-border);
}

.notif-item:first-of-type {
    border-top: none;
}

.notif-item .status-dot::before {
    margin-top: 6px;
}

.notif-item-title {
    font-size: 13px;
    color: var(--color-heading);
    font-weight: 600;
}

.notif-item-sub {
    font-size: 12px;
    color: var(--color-muted);
    margin-top: 2px;
}

.notif-empty {
    font-size: 13px;
    color: var(--color-muted);
    padding: 6px 0;
}

/* ---------- Cards ---------- */

.card {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 24px;
}

.card + .card {
    margin-top: 24px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
    flex-wrap: wrap;
}

.card-header h2 {
    font-size: 18px;
}

.card-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-muted);
    margin-bottom: 8px;
}

/* Referral link copy row */
.copy-link-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--color-muted);
}

.copy-link-row .link-value {
    color: var(--color-accent);
    font-weight: 600;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
}

/* ---------- Stat cards ---------- */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background: var(--color-bg);
    border-radius: var(--radius-md);
    padding: 18px;
}

.stat-card-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: var(--color-accent-light);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.stat-card-label {
    font-size: 13px;
    color: var(--color-muted);
    margin-bottom: 6px;
}

.stat-card-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 14px;
}

.stat-card-sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--color-border);
    color: var(--color-muted);
}

.stat-card-sub strong {
    color: var(--color-heading);
}

/* ---------- Table ---------- */

.table-wrap {
    overflow-x: auto;
}

table.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-muted);
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
}

.data-table td {
    padding: 14px 16px;
    font-size: 14px;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.status-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
}

.status-dot::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-muted);
}

.status-dot.status-rewarded::before,
.status-dot.status-studio_confirmed::before {
    background: var(--color-success);
}

.status-dot.status-pending::before {
    background: var(--color-pending);
}

.status-dot.status-rewarded { color: var(--color-success); }
.status-dot.status-studio_confirmed { color: var(--color-success); }
.status-dot.status-pending { color: var(--color-pending); }

.empty-state {
    text-align: center;
    padding: 48px 16px;
    color: var(--color-muted);
    font-size: 14px;
}

/* ---------- Table toolbar / filter / pagination ---------- */

.table-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-form select {
    padding: 9px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: inherit;
    background: var(--color-card);
    color: var(--color-heading);
    cursor: pointer;
}

.btn-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.table-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    font-size: 13px;
    color: var(--color-muted);
    flex-wrap: wrap;
    gap: 12px;
}

.pagination-buttons {
    display: flex;
    gap: 8px;
}

.pagination-buttons .btn {
    padding: 8px 14px;
    font-size: 13px;
}

/* ---------- Sidebar theme toggle ---------- */

.theme-toggle {
    display: flex;
    background: var(--color-bg);
    border-radius: 999px;
    padding: 4px;
    margin: 8px 4px 0;
    gap: 4px;
}

.theme-toggle-btn {
    flex: 1;
    border: none;
    background: none;
    padding: 8px 0;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-muted);
    cursor: pointer;
}

.theme-toggle-btn.active {
    background: var(--color-card);
    color: var(--color-heading);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .app-shell {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        flex-direction: row;
        overflow-x: auto;
        padding: 12px;
    }

    .sidebar .brand,
    .sidebar-menu-label,
    .sidebar-user,
    .theme-toggle {
        display: none;
    }

    .sidebar nav {
        flex-direction: row;
    }

    .main-content {
        padding: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .topbar {
        flex-wrap: wrap;
    }
}

/* ---------- Journey step popup modal ---------- */

.popup-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11, 18, 32, 0.55);
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 100;
}

.popup-modal-overlay.open {
    display: flex;
}

.popup-modal {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    max-width: 420px;
    width: 100%;
    overflow: hidden;
    position: relative;
    animation: popup-modal-in 0.2s ease;
}

@keyframes popup-modal-in {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.popup-modal-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.popup-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    border: none;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-modal:not(:has(.popup-modal-image)) .popup-modal-close {
    background: none;
    color: var(--color-muted);
    top: 14px;
    right: 14px;
}

.popup-modal-body {
    padding: 28px;
    text-align: center;
}

.popup-modal-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--color-accent-light);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.popup-modal-title {
    font-weight: 700;
    font-size: 19px;
    color: var(--color-heading);
    margin-bottom: 10px;
}

.popup-modal-message {
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* ---------- Marketing page (Connector application landing page) ---------- */
/* Editorial style: dark navy bookend sections (hero + apply + footer), Poppins
   throughout, flat letter-spaced labels instead of pills, numbered
   list/card layouts instead of icon rows. */

.marketing-page {
    background: #fff;
    color: var(--color-text);
    min-height: 100vh;
    overflow-x: hidden;
    font-family: var(--font-poppins);
}

.marketing-page h1,
.marketing-page h2 {
    font-family: var(--font-poppins);
    font-weight: 700;
    color: var(--color-heading);
}

.marketing-dark {
    background: var(--color-ink);
    color: rgba(231, 231, 245, 0.7);
    position: relative;
    overflow: hidden;
}

.marketing-dark h1,
.marketing-dark h2 {
    color: #fff;
}

.marketing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1140px;
    margin: 0 auto;
    padding: 28px 24px;
    position: relative;
    z-index: 2;
}

.marketing-nav .brand {
    display: flex;
    align-items: center;
    gap: 2px;
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 17px;
    letter-spacing: 0.02em;
    color: #fff;
    text-decoration: none;
}

.marketing-nav .brand img {
    height: 26px;
    width: auto;
    display: block;
}

.marketing-nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 14px;
    color: rgba(231, 231, 245, 0.65);
}

.marketing-nav-links a {
    position: relative;
    transition: color 0.2s ease;
}

.marketing-nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -4px;
    height: 1px;
    background: #fff;
    transition: right 0.25s ease;
}

.marketing-nav-links a:hover {
    color: #fff;
}

.marketing-nav-links a:hover::after {
    right: 0;
}

.marketing-nav .brand {
    transition: opacity 0.2s ease;
}

.marketing-nav .brand:hover {
    opacity: 0.8;
}

.marketing-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 14px;
}

.marketing-dark .marketing-label {
    color: #8386BB;
}

/* Gradient pill CTA — used only on this page's primary calls to action */
.btn-gradient {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(120deg, #4C4E82, #8386BB);
    background-size: 140% 140%;
    background-position: 0% 50%;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 14px 26px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-position 0.4s ease;
}

.btn-gradient svg {
    transition: transform 0.2s ease;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(64, 66, 103, 0.35);
    background-position: 100% 50%;
}

.btn-gradient:hover svg {
    transform: translateX(3px);
}

.btn-gradient:active {
    transform: translateY(0);
}

.btn-gradient:hover {
    opacity: 0.9;
}

.marketing-hero {
    display: grid;
    grid-template-columns: 1fr 0.95fr;
    align-items: center;
    gap: 56px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 16px 24px 100px;
    position: relative;
    z-index: 2;
}

.marketing-hero-content {
    text-align: left;
}

.marketing-hero h1 {
    font-size: 50px;
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.01em;
    margin: 0 0 22px;
}

.marketing-hero .subtitle {
    font-family: var(--font-sans);
    font-size: 16px;
    color: rgba(231, 231, 245, 0.6);
    line-height: 1.7;
    max-width: 420px;
    margin: 0 0 32px;
}

.marketing-hero-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.marketing-hero-image img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.5s ease;
}

.marketing-hero-image:hover img {
    transform: scale(1.05);
}

.marketing-sparkle {
    position: absolute;
    color: rgba(231, 231, 245, 0.3);
    z-index: 1;
    animation: sparkle-pulse 3.5s ease-in-out infinite;
}

@keyframes sparkle-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.7; transform: scale(1.15) rotate(8deg); }
}

.marketing-section .marketing-sparkle {
    color: var(--color-accent);
    opacity: 0.35;
}

/* Floating info-card row overlapping the hero band's bottom edge */
.marketing-info-row {
    max-width: 1140px;
    margin: -64px auto 0;
    padding: 0 24px;
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.marketing-info-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 22px 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.marketing-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(32, 30, 69, 0.14);
}

.marketing-info-icon {
    transition: transform 0.2s ease;
}

.marketing-info-card:hover .marketing-info-icon {
    transform: scale(1.1);
}

.marketing-info-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--color-accent-light);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.marketing-info-card strong {
    display: block;
    font-size: 16px;
    color: var(--color-heading);
    margin-bottom: 2px;
}

.marketing-info-card span {
    font-size: 12px;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.marketing-section {
    max-width: 1140px;
    margin: 0 auto;
    padding: 90px 24px 70px;
    position: relative;
}

/* Middle section of a same-background run gets a subtly different
   background so the eye can tell where one section ends and the next begins */
.marketing-section.mid {
    max-width: none;
    background: var(--color-bg);
}

.marketing-section.mid > * {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}

.marketing-section h2 {
    font-size: 34px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0;
}

.marketing-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 44px;
}

.marketing-split p {
    font-size: 15px;
    line-height: 1.75;
    margin: 0;
}

.marketing-section-head {
    margin-bottom: 36px;
}

.marketing-split-image {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    align-items: center;
}

.marketing-split-image-media {
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.marketing-split-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.5s ease;
}

.marketing-split-image-media:hover img {
    transform: scale(1.05);
}

.marketing-split-image p {
    font-size: 15px;
    line-height: 1.75;
    margin: 0 0 16px;
}

.marketing-split-image p:last-child {
    margin-bottom: 0;
}

.marketing-quote {
    font-family: var(--font-poppins);
    font-style: italic;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.6;
    color: var(--color-heading);
    text-align: center;
    max-width: 620px;
    margin: 40px auto 0;
}

.marketing-dark .marketing-quote {
    color: #fff;
}

/* Numbered card grid ("Who Is This Program For?") */
.numbered-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.numbered-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 26px 22px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.numbered-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-card);
}

.numbered-card:hover .numbered-card-index {
    color: var(--color-accent);
}

.numbered-card-index {
    transition: color 0.2s ease;
}

.numbered-card-index {
    display: block;
    font-family: var(--font-poppins);
    font-weight: 300;
    font-size: 22px;
    color: var(--color-muted);
    margin-bottom: 14px;
}

.numbered-card p {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-heading);
    line-height: 1.55;
    margin: 0;
}

/* Numbered list rows ("How It Works") */
.steps-list {
    border-top: 1px solid var(--color-border);
}

.step-row {
    display: grid;
    grid-template-columns: 70px 1fr 1.3fr;
    align-items: center;
    gap: 24px;
    padding: 26px 12px;
    margin: 0 -12px;
    border-bottom: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: background 0.2s ease, padding-left 0.2s ease;
}

.step-row:hover {
    background: var(--color-bg);
    padding-left: 20px;
}

.step-row-index {
    transition: color 0.2s ease;
}

.step-row:hover .step-row-index {
    color: var(--color-accent);
}

.step-row-index {
    font-family: var(--font-poppins);
    font-weight: 300;
    font-size: 28px;
    color: var(--color-border);
}

.step-row h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-heading);
    margin: 0;
}

.step-row p {
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
}

/* Dark "Apply" section */
.marketing-apply-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
    align-items: start;
}

.marketing-apply-info h2 {
    margin-bottom: 16px;
}

.marketing-apply-info p {
    font-size: 15px;
    line-height: 1.75;
    margin: 0;
}

.marketing-form-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: border-color 0.3s ease;
}

.marketing-form-card:focus-within {
    border-color: rgba(131, 134, 187, 0.5);
}

.form-dark label {
    display: block;
    min-height: 30px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(231, 231, 245, 0.45);
}

.form-dark .form-control,
.form-dark textarea {
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0;
    color: #fff;
    padding: 10px 0;
}

.form-dark .form-control::placeholder,
.form-dark textarea::placeholder {
    color: rgba(231, 231, 245, 0.3);
}

.form-dark .form-control:focus,
.form-dark textarea:focus {
    outline: none;
    box-shadow: none;
    border-bottom-color: var(--color-accent);
}

.form-dark .form-error {
    background: rgba(254, 242, 242, 0.1);
    border-color: rgba(254, 202, 202, 0.3);
}

/* Dark multi-column footer */
.marketing-footer {
    background: var(--color-ink);
    color: rgba(231, 231, 245, 0.7);
    padding: 64px 24px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    max-width: 1140px;
    margin: 0 auto;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(231, 231, 245, 0.4);
    margin: 0 0 16px;
}

.footer-col .brand {
    margin-bottom: 12px;
}

.footer-col p {
    font-size: 13px;
    line-height: 1.6;
    max-width: 260px;
    margin: 0;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: rgba(231, 231, 245, 0.7);
    margin-bottom: 12px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-col a:hover {
    transform: translateX(3px);
}

.footer-col a:hover {
    color: #fff;
}

.marketing-footer-bottom {
    max-width: 1140px;
    margin: 40px auto 0;
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(231, 231, 245, 0.35);
}

.marketing-thankyou {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    padding: 64px 24px;
}

.marketing-thankyou-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-accent-light);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.marketing-thankyou h1 {
    font-family: var(--font-poppins);
    font-weight: 700;
    font-size: 32px;
    margin-bottom: 16px;
}

.marketing-thankyou p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text);
    text-align: left;
    margin-bottom: 16px;
}

@media (max-width: 960px) {
    .marketing-info-row {
        grid-template-columns: 1fr;
        margin-top: -40px;
    }

    .numbered-grid {
        grid-template-columns: 1fr 1fr;
    }

    .marketing-split {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .marketing-split-image {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .marketing-split-image img {
        height: 240px;
    }

    .marketing-apply-grid {
        grid-template-columns: 1fr;
    }

    .step-row {
        grid-template-columns: 40px 1fr;
    }

    .step-row p {
        grid-column: 2 / 3;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .marketing-nav-links {
        display: none;
    }
}

@media (max-width: 860px) {
    .marketing-hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 8px;
        padding-bottom: 72px;
    }

    .marketing-hero-content {
        text-align: center;
    }

    .marketing-hero .subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .marketing-hero-image {
        order: -1;
    }

    .marketing-hero-image img {
        height: 320px;
    }
}

@media (max-width: 760px) {
    .marketing-hero h1 {
        font-size: 38px;
    }

    .marketing-section h2 {
        font-size: 26px;
    }

    .numbered-grid {
        grid-template-columns: 1fr;
    }

    .marketing-form-card {
        padding: 28px;
    }

    .marketing-section {
        padding: 56px 24px 48px;
    }
}

