/* ==========================================================================
   ABA Applied Landing Page — Redesign
   Modern, minimalist design system with dark-first palette
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Plus+Jakarta+Sans:wght@300;400;500;600&display=swap');

/* --- Design Tokens --- */
:root {
    --al-dark: #070e1b;
    --al-dark-2: #0c1829;
    --al-dark-surface: rgba(255, 255, 255, 0.04);
    --al-dark-border: rgba(255, 255, 255, 0.06);
    --al-light: #f7f8fa;
    --al-white: #ffffff;
    --al-accent: #3b82f6;
    --al-accent-hover: #2563eb;
    --al-accent-soft: rgba(59, 130, 246, 0.12);
    --al-teal: #0d9488;
    --al-text-on-dark: #e2e8f0;
    --al-muted-on-dark: #94a3b8;
    --al-text-on-light: #0f172a;
    --al-muted-on-light: #64748b;
    --al-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --al-max-w: 1200px;
    --al-radius: 16px;
    --al-radius-lg: 24px;
}

/* ==========================================================================
   HEADER FIX — Minimal overrides for Anesthesia Board Template navbar
   Let the parent plugin's Tailwind handle responsive behavior.
   ========================================================================== */

body.anesthesia-board-template #navbar {
    background: var(--al-white) !important;
}

body.anesthesia-board-template:has(main.aba-applied-landing) #navbar,
body.aba-applied-landing-page.anesthesia-board-template #navbar {
    position: relative !important;
    z-index: 50 !important;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08) !important;
}

body.anesthesia-board-template #navbar > .container {
    max-width: 1360px !important;
    margin: 0 auto !important;
}

body.anesthesia-board-template #abt-mobile-menu {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 60 !important;
    background: var(--al-white) !important;
}

/* ==========================================================================
   FOOTER — Working correctly, kept as-is
   ========================================================================== */

body.anesthesia-board-template footer {
    background: var(--al-white) !important;
}

body.anesthesia-board-template footer > .container {
    width: min(1360px, calc(100% - 24px)) !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
}

body.anesthesia-board-template footer > .container > .grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
}

body.anesthesia-board-template footer .footer-trigger {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

body.anesthesia-board-template footer .footer-content {
    display: none !important;
}

body.anesthesia-board-template footer .footer-content:not(.hidden) {
    display: block !important;
}

/* Landing: keep footer links/sections visible on small screens (accordion otherwise looks empty) */
body.anesthesia-board-template:has(main.aba-applied-landing) footer .footer-content,
body.aba-applied-landing-page.anesthesia-board-template footer .footer-content {
    display: block !important;
}

body.anesthesia-board-template footer > .container > div:last-child {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
}

@media (min-width: 1024px) {
    body.anesthesia-board-template footer > .container > .grid {
        grid-template-columns: auto 1fr !important;
        column-gap: 40px !important;
        row-gap: 0 !important;
    }

    body.anesthesia-board-template footer > .container > .grid > div:first-child {
        border-right: 1px solid #e3e3e3 !important;
        border-bottom: 0 !important;
        padding-right: 32px !important;
        padding-bottom: 0 !important;
    }

    body.anesthesia-board-template footer > .container > .grid > div:last-child {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        column-gap: 24px !important;
        row-gap: 32px !important;
    }

    body.anesthesia-board-template footer .footer-trigger {
        display: block !important;
        width: auto !important;
    }

    body.anesthesia-board-template footer .footer-trigger i {
        display: none !important;
    }

    body.anesthesia-board-template footer .footer-content {
        display: block !important;
    }

    body.anesthesia-board-template footer > .container > div:last-child {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 12px !important;
    }
}

/* ==========================================================================
   MAIN LAYOUT
   ========================================================================== */

.aba-applied-landing {
    position: relative;
    overflow-x: hidden;
    font-family: var(--al-font);
    color: var(--al-text-on-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    isolation: isolate;
}

body.aba-applied-landing-page main.aba-applied-landing {
    margin-top: 0;
    padding-top: 0;
}

.al-container {
    width: min(var(--al-max-w), calc(100% - 48px));
    margin: 0 auto;
}

/* ==========================================================================
   SHARED COMPONENTS
   ========================================================================== */

/* --- Badge --- */
.al-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    background: rgba(59, 130, 246, 0.08);
    color: var(--al-accent);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.al-badge-dark {
    border-color: rgba(15, 23, 42, 0.1);
    background: rgba(15, 23, 42, 0.04);
    color: var(--al-muted-on-light);
}

/* --- Buttons --- */
.al-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 24px;
    border: none;
    border-radius: 12px;
    font-family: var(--al-font);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.2s ease;
    line-height: 1;
}

.al-btn-primary {
    background: var(--al-accent);
    color: var(--al-white) !important;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.al-btn-primary:hover {
    background: var(--al-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(59, 130, 246, 0.35);
}

.al-btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: var(--al-text-on-dark) !important;
}

.al-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

.al-btn-white {
    background: var(--al-white);
    color: var(--al-text-on-light) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.al-btn-white:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

.al-btn-lg {
    height: 54px;
    padding: 0 32px;
    font-size: 16px;
    border-radius: 14px;
}

/* --- Device Frame --- */
.al-device-frame {
    border-radius: var(--al-radius);
    overflow: hidden;
    background: #1e293b;
    box-shadow: 0 25px 60px -16px rgba(0, 0, 0, 0.45);
}

.al-device-chrome {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 16px;
    background: #1a2332;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.al-device-dots {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.al-device-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.al-device-dots span:nth-child(1) { background: #ff5f57; }
.al-device-dots span:nth-child(2) { background: #febc2e; }
.al-device-dots span:nth-child(3) { background: #28c840; }

.al-device-title {
    flex: 1;
    text-align: center;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding-right: 36px;
}

.aba-applied-landing .al-device-chrome .al-device-title {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.al-device-content {
    position: relative;
    overflow: hidden;
}

/* Scaled desktop viewport: inner is 1440x900; JS sets transform + outer height */
.al-demo-scale-outer {
    position: relative;
    overflow: hidden;
    width: 100%;
    border-radius: 0 0 20px 20px;
    background: #0f172a;
}

.al-demo-scale-inner {
    position: relative;
    width: 1440px;
    height: 900px;
    transform-origin: top left;
    overflow: hidden;
    box-sizing: border-box;
}

/* --- Section Base --- */
.al-section {
    padding: 96px 0;
}

.al-section-header {
    max-width: 680px;
    margin-bottom: 48px;
}

.al-section-header.al-text-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.al-section-header h2 {
    margin: 16px 0 0;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--al-text-on-light);
}

.al-section-header p,
.al-section-header .al-landing-rich-text {
    margin: 12px 0 0;
    font-size: 17px;
    line-height: 1.65;
    color: var(--al-muted-on-light);
}

.al-section-dark .al-section-header h2 { color: var(--al-text-on-dark); }
.al-section-dark .al-section-header p,
.al-section-dark .al-section-header .al-landing-rich-text { color: var(--al-muted-on-dark); }

/* ==========================================================================
   HERO — flush under navbar + two-column grid + TEE preview + KPI strip
   ========================================================================== */

@keyframes al-hero-dot-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.al-hero {
    position: relative;
    padding: 0 0 36px;
    background: var(--al-light);
    color: var(--al-text-on-light);
    overflow: hidden;
    font-family: 'Plus Jakarta Sans', var(--al-font), system-ui, sans-serif;
}

.al-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: linear-gradient(to top, var(--al-light) 0%, transparent 100%);
    pointer-events: none;
}

.al-hero-wrap {
    position: relative;
    z-index: 1;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .al-hero-wrap {
        padding: 0 24px;
    }
}

.al-hero-card {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    border: none;
    box-shadow: none;
}

/* 55/45 + 400px row — original hero proportions (TEE column not capped) */
.al-hero-grid {
    display: grid;
    grid-template-columns: 55fr 45fr;
    min-height: 400px;
}

.al-hero-left {
    padding: 36px 40px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
}

.al-hero-eyebrow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.al-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #e6f1fb;
    color: #0c447c;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: 999px;
    letter-spacing: 0.04em;
    text-transform: none;
}

.al-hero-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #378add;
    flex-shrink: 0;
    animation: al-hero-dot-blink 2s ease infinite;
}

.al-hero-stars-svg {
    display: block;
    flex-shrink: 0;
}

.al-hero-reviews-caption {
    font-size: 11px;
    color: var(--al-muted-on-light);
}

.al-hero-title {
    margin: 0 0 16px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(32px, 4.2vw, 44px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #0f172a;
    text-align: left;
}

.al-hero-title > .al-hero-title-line {
    display: block;
}

.al-hero-title-highlight {
    position: relative;
    display: inline-block;
}

.al-hero-title-highlight::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 0;
    right: 0;
    height: 3px;
    background: #378add;
    border-radius: 2px;
    opacity: 0.6;
}

.al-gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.al-hero .al-hero-subtitle {
    margin: 0 0 28px;
    max-width: 380px;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
    color: #475569;
    text-align: left;
}

.al-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.al-btn-hero-fill {
    height: auto !important;
    min-height: 44px;
    padding: 12px 22px !important;
    border-radius: 8px !important;
    font-family: 'Plus Jakarta Sans', var(--al-font), sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    background: #185fa5 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: none !important;
    border: none !important;
    cursor: pointer !important;
    transition: background 0.2s ease, color 0.2s ease !important;
}

.al-btn-hero-fill:visited {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: #185fa5 !important;
}

.al-btn-hero-fill:hover,
.al-btn-hero-fill:focus-visible {
    background: #0c447c !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    transform: none !important;
}

.al-btn-hero-ghost {
    height: auto !important;
    min-height: 44px;
    padding: 12px 22px !important;
    border-radius: 8px !important;
    font-family: 'Plus Jakarta Sans', var(--al-font), sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    background: transparent !important;
    color: #475569 !important;
    border: 0.5px solid rgba(15, 23, 42, 0.14) !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: background 0.2s ease, border-color 0.2s ease !important;
}

.al-btn-hero-ghost:hover {
    background: rgba(15, 23, 42, 0.04) !important;
    border-color: rgba(15, 23, 42, 0.22) !important;
    transform: none !important;
}

.al-hero-trust {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.al-hero-trust-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #64748b;
}

.al-hero-trust-check {
    display: flex;
    flex-shrink: 0;
}

.al-hero-trust-check svg {
    display: block;
}

/* Right: TEE panel — full column height with grid min-height (no max-height cap) */
.al-hero-right {
    background: #07111f;
    border-left: 0.5px solid rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    align-self: stretch;
}

.al-hero-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.45);
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.al-hero-panel-title {
    font-family: 'Plus Jakarta Sans', var(--al-font), system-ui, sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.al-hero-panel-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.al-hero-station-badge {
    font-family: 'Plus Jakarta Sans', ui-monospace, monospace;
    font-size: 10px;
    color: #60c8f0;
    background: rgba(96, 200, 240, 0.12);
    padding: 3px 8px;
    border-radius: 4px;
    border: 0.5px solid rgba(96, 200, 240, 0.25);
}

.al-hero-panel-timer {
    font-family: ui-monospace, monospace;
    font-size: 12px;
    color: #ef9f27;
    background: rgba(239, 159, 39, 0.12);
    padding: 3px 8px;
    border-radius: 4px;
}

.al-hero-panel-media {
    flex: 1 1 0;
    position: relative;
    min-height: 200px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.al-hero-panel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 0.94;
}

.al-hero-panel-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(7, 17, 31, 0.05) 0%,
        rgba(7, 17, 31, 0) 35%,
        rgba(7, 17, 31, 0.72) 100%
    );
    pointer-events: none;
}

.al-hero-case-focus {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 2;
    max-width: min(200px, calc(100% - 20px));
    padding: 8px 10px;
    background: rgba(7, 17, 31, 0.78);
    border: 0.5px solid rgba(96, 200, 240, 0.22);
    border-radius: 10px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-sizing: border-box;
}

.al-hero-case-focus-label {
    font-size: 9px;
    font-weight: 600;
    color: #60c8f0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 5px;
}

.al-hero-case-focus-text {
    font-size: 10px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.82);
}

.al-hero-panel-footer {
    flex-shrink: 0;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.52);
    border-top: 0.5px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.al-hero-panel-prompt {
    margin: 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.58);
    font-style: italic;
    line-height: 1.4;
    max-width: 260px;
}

.al-hero-panel-mic {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(96, 200, 240, 0.15);
    border: 0.5px solid rgba(96, 200, 240, 0.3);
    border-radius: 6px;
    padding: 5px 10px;
    flex-shrink: 0;
    white-space: nowrap;
}

.al-hero-panel-mic-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #60c8f0;
    animation: al-hero-dot-blink 1s ease infinite;
}

.al-hero-panel-mic-text {
    font-size: 10px;
    color: #60c8f0;
    font-weight: 500;
}

/* KPI strip */
.al-hero-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 0.5px solid rgba(15, 23, 42, 0.12);
}

.al-hero-kpi {
    padding: 16px 20px;
    border-right: 0.5px solid rgba(15, 23, 42, 0.12);
    text-align: center;
}

.al-hero-kpi:last-child {
    border-right: none;
}

.al-hero-kpi-num {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.2;
}

.al-hero-kpi-lbl {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}

@media (max-width: 960px) {
    .al-hero-grid {
        grid-template-columns: 1fr;
    }

    .al-hero-right {
        border-left: none;
        border-top: 0.5px solid rgba(15, 23, 42, 0.12);
        min-height: 300px;
    }

    .al-hero-case-focus {
        left: 16px;
        bottom: 16px;
        max-width: min(220px, calc(100% - 32px));
        padding: 10px 12px;
    }

    .al-hero-case-focus-label {
        font-size: 10px;
        margin-bottom: 6px;
    }

    .al-hero-case-focus-text {
        font-size: 11px;
    }

    .al-hero-kpis {
        grid-template-columns: repeat(2, 1fr);
    }

    .al-hero-kpi:nth-child(2n) {
        border-right: none;
    }

    .al-hero-kpi:nth-child(-n + 2) {
        border-bottom: 0.5px solid rgba(15, 23, 42, 0.12);
    }
}

@media (max-width: 520px) {
    .al-hero {
        padding: 0 0 28px;
    }

    .al-hero-left {
        padding: 28px 0 28px;
    }

    /* Keep 2×2 KPI grid (same as ≤960px); single column was too tall on phones */
    .al-hero-kpi {
        padding: 14px 12px;
    }

    .al-hero-kpi-num {
        font-size: clamp(17px, 4.5vw, 20px);
    }
}

/* ==========================================================================
   LIVE DASHBOARD DEMO
   ========================================================================== */

.al-demo-section {
    padding: 40px 0 104px;
    background: var(--al-light);
}

/* Dashboard intro: heading stays one line (default .al-section-header max-width: 680px forced wrap) */
.al-demo-section .al-section-header {
    max-width: min(1040px, 100%);
}

.al-demo-section .al-section-header h2 {
    white-space: nowrap;
    font-size: clamp(20px, 2.5vw, 36px);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Dashboard + step demos: identical chrome */
.al-demo-frame,
.al-step-device {
    border-radius: 20px;
    box-shadow:
        0 32px 64px -16px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(0, 0, 0, 0.04);
}

/* Demo frames: no inner scroll — scaling handles fit */
.al-demo-frame .al-demo-scale-outer,
.al-step-device .al-demo-scale-outer {
    background: #0f172a;
}

.al-demo-scale-inner .aba-landing-demo-app,
.al-demo-scale-inner .aba-landing-demo-app .aba-dashboard-view {
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

.al-demo-scale-inner .aba-landing-demo-app .aba-dashboard-layout {
    min-height: 0 !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
}

.al-demo-frame .aba-dashboard-main .aba-dashboard-content {
    padding-bottom: 12px !important;
}

.al-demo-frame .aba-dashboard-cards-grid {
    align-content: start !important;
}

/* Landing + no Tailwind preflight: inline SVGs need hard bounds (avoid default huge intrinsic size). */
.al-demo-scale-inner .aba-header-tool-icon {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    flex-shrink: 0 !important;
    display: block !important;
    box-sizing: border-box !important;
}

.al-demo-scale-inner .aba-timer-circle {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
}

.al-demo-scale-inner .aba-timer-circle svg {
    max-width: 40px !important;
    max-height: 40px !important;
    display: block !important;
}

@media (max-width: 900px) {
    .al-demo-scale-inner .aba-dashboard-view .aba-header-tool-icon {
        width: 14px !important;
        height: 14px !important;
        min-width: 14px !important;
        min-height: 14px !important;
        max-width: 14px !important;
        max-height: 14px !important;
    }
}

/* --- Dashboard embed: disable interactive elements --- */
.al-demo-frame .aba-history-bookmarks-btn,
.al-demo-frame .aba-history-bookmark-btn,
.al-demo-frame .aba-history-delete-btn,
.al-demo-frame .aba-history-edit-btn,
.al-demo-frame .aba-sidebar-toggle,
.al-demo-frame .aba-sidebar-close,
.al-demo-frame .aba-history-hover-actions,
.al-demo-frame .aba-user-chevron,
.al-demo-frame .aba-user-menu {
    display: none !important;
}

.al-demo-frame .aba-history-item,
.al-demo-frame .aba-dashboard-cards-grid .aba-exam-type-card,
.al-demo-frame .aba-sidebar-user,
.al-demo-frame .aba-dashboard-footer .aba-btn {
    cursor: default;
}

.al-demo-frame .aba-dashboard-footer .aba-btn {
    pointer-events: none;
}

/* --- Dashboard embed: button style normalization --- */
.al-demo-frame .aba-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 11px 26px !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 10px !important;
    font-family: var(--aba-font) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    letter-spacing: 0.01em !important;
}

.al-demo-frame .aba-btn-primary {
    background: var(--aba-navy) !important;
    color: var(--aba-white) !important;
    box-shadow: var(--aba-shadow-sm) !important;
}

.al-demo-frame .aba-btn-lg {
    padding: 14px 34px !important;
    font-size: 16px !important;
    border-radius: 16px !important;
}

.al-demo-frame .aba-dashboard-footer .aba-btn {
    background: #1f2328 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    box-shadow: none !important;
}

.al-demo-frame .aba-history-review-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 4px 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    font-family: var(--aba-font) !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
}

.al-demo-frame .aba-history-bookmarks-btn,
.al-demo-frame .aba-history-bookmark-btn,
.al-demo-frame .aba-history-delete-btn {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

.al-demo-scale-inner .al-demo-frame .aba-dashboard-main,
.al-demo-frame .aba-dashboard-main {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.al-demo-frame .aba-dashboard-content,
.al-demo-frame .aba-dashboard-section {
    display: flex !important;
}

/* ==========================================================================
   STEP SECTIONS (exam flow)
   ========================================================================== */

.al-step {
    padding: 56px 0 72px;
}

.al-step-light {
    background: var(--al-white);
}

.al-step-muted {
    background: var(--al-light);
}

/* Stacked layout: copy above full-width demo */
.al-step .al-step-copy {
    max-width: 760px;
    margin: 0 auto 32px;
    text-align: center;
}

.al-step .al-step-copy p,
.al-step .al-step-copy .al-landing-step-intro {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

.al-step .al-step-highlights {
    text-align: left;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.al-step-device {
    width: 100%;
    max-width: 100%;
}

.al-step-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--al-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.al-step-copy h2 {
    margin: 0;
    font-size: clamp(24px, 2.4vw, 34px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--al-text-on-light);
    line-height: 1.2;
}

.al-step-copy p,
.al-step-copy .al-landing-step-intro {
    margin: 14px 0 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--al-muted-on-light);
    max-width: 520px;
}

.al-step-highlights {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.al-step-highlights li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--al-muted-on-light);
}

.al-step-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--al-accent);
    opacity: 0.85;
}

/* --- Step demos: content fills 1440×900 scale inner; outer clips, no scroll --- */
.al-step-device .al-step-demo {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.al-step-demo {
    font-family: var(--aba-font, var(--al-font));
}

.al-step-demo a,
.al-step-demo button {
    cursor: default !important;
}

/* --------------------------------------------------------------------------
   Landing embeds: exam CSS uses position:fixed / height:100% for full-screen
   app — inside the preview box that breaks backgrounds (white void). Scope
   fixes to .al-step-demo only (does not affect real exam views).
   -------------------------------------------------------------------------- */

/* Landing scaled viewport: fixed backgrounds + full 1440x900 fill */
.al-demo-scale-inner .al-step-demo .aba-soe-prep-bg,
.al-demo-scale-inner .al-step-demo .aba-soe-prep-overlay,
.al-demo-scale-inner .al-step-demo .aba-osce-prep-bg,
.al-demo-scale-inner .al-step-demo .aba-osce-prep-overlay {
    position: absolute !important;
    inset: 0 !important;
}

.al-demo-scale-inner .al-step-demo .aba-soe-prep-bg,
.al-demo-scale-inner .al-step-demo .aba-osce-prep-bg {
    z-index: 0 !important;
}

.al-demo-scale-inner .al-step-demo .aba-soe-prep-overlay,
.al-demo-scale-inner .al-step-demo .aba-osce-prep-overlay {
    z-index: 1 !important;
}

.al-demo-scale-inner .aba-lobby-view,
.al-demo-scale-inner .aba-soe-prep-view,
.al-demo-scale-inner .aba-results-view,
.al-demo-scale-inner .aba-dashboard-view {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
    box-sizing: border-box;
}

.al-demo-scale-inner .aba-lobby-main {
    flex: 1 1 auto !important;
    min-height: 0 !important;
}

.al-demo-scale-inner .al-step-demo .aba-soe-prep-content {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    position: relative !important;
    z-index: 2 !important;
    overflow: hidden !important;
}

.al-demo-scale-inner .al-step-demo .aba-soe-main,
.al-demo-scale-inner .al-step-demo .aba-osce-main {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
}

.al-demo-scale-inner .al-step-demo .aba-chat-messages {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
}

.al-demo-scale-inner .aba-exam-app,
.al-demo-scale-inner .aba-landing-demo-app {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

/* SOE session embed: production view shell inside 1440×900 scale box */
.al-demo-scale-inner .al-soe-session-demo-wrap #aba-view-soe-session.al-landing-soe-session-view {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
}

.al-demo-scale-inner .al-soe-session-demo-wrap .aba-soe-sound-toggle input {
    pointer-events: none;
}

.al-demo-scale-inner .al-soe-session-demo-wrap .aba-chat-input {
    pointer-events: none;
    cursor: default;
}

.al-demo-scale-inner .al-soe-session-demo-wrap .aba-chat-messages {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

.al-demo-scale-inner .al-soe-session-demo-wrap #aba-view-soe-session .aba-header,
.al-demo-scale-inner .al-soe-session-demo-wrap #aba-view-soe-session .aba-phase-timer-bar {
    flex-shrink: 0;
}

.al-demo-scale-inner .al-soe-session-demo-wrap #aba-view-soe-session .aba-soe-main {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
}

/* SOE / OSCE landing: theme link colors on <a>; keep sidebar + Dashboard readable */
.al-soe-session-demo-wrap .aba-soe-sidebar a.aba-soe-sidebar-btn,
.al-osce-comm-demo-wrap .aba-osce-sidebar a.aba-osce-sidebar-btn,
.al-osce-monitor-demo-wrap .aba-osce-sidebar a.aba-osce-sidebar-btn,
.al-osce-tee-demo-wrap .aba-osce-sidebar a.aba-osce-sidebar-btn,
.al-osce-us-demo-wrap .aba-osce-sidebar a.aba-osce-sidebar-btn {
    color: #ffffff !important;
}

.al-soe-session-demo-wrap .aba-soe-sidebar a.aba-soe-sidebar-btn:hover,
.al-osce-comm-demo-wrap .aba-osce-sidebar a.aba-osce-sidebar-btn:hover,
.al-osce-monitor-demo-wrap .aba-osce-sidebar a.aba-osce-sidebar-btn:hover,
.al-osce-tee-demo-wrap .aba-osce-sidebar a.aba-osce-sidebar-btn:hover,
.al-osce-us-demo-wrap .aba-osce-sidebar a.aba-osce-sidebar-btn:hover {
    color: #ffffff !important;
}

/* OSCE communication: production exam view in 1440×900 scale box */
.al-demo-scale-inner .al-osce-comm-demo-wrap #aba-view-osce-communication.al-landing-osce-comm-view {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

.al-demo-scale-inner .al-osce-comm-demo-wrap #aba-view-osce-communication .aba-header,
.al-demo-scale-inner .al-osce-comm-demo-wrap #aba-view-osce-communication .aba-phase-timer-bar {
    flex-shrink: 0;
}

.al-demo-scale-inner .al-osce-comm-demo-wrap .aba-osce-main {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
}

.al-demo-scale-inner .al-osce-comm-demo-wrap .aba-osce-communication-main .aba-chat-messages {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

.al-demo-scale-inner .al-osce-comm-demo-wrap .aba-osce-chat-input {
    pointer-events: none;
    cursor: default;
}

/* OSCE monitor: production exam view in 1440×900 scale box */
.al-demo-scale-inner .al-osce-monitor-demo-wrap #aba-view-osce-monitor.al-landing-osce-monitor-view {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

.al-demo-scale-inner .al-osce-monitor-demo-wrap #aba-view-osce-monitor .aba-header,
.al-demo-scale-inner .al-osce-monitor-demo-wrap #aba-view-osce-monitor .aba-phase-timer-bar {
    flex-shrink: 0;
}

.al-demo-scale-inner .al-osce-monitor-demo-wrap .aba-osce-main {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
}

.al-demo-scale-inner .al-osce-monitor-demo-wrap .aba-osce-monitor-main,
.al-demo-scale-inner .al-osce-monitor-demo-wrap .aba-osce-main-monitor {
    min-height: 0 !important;
}

.al-demo-scale-inner .al-osce-monitor-demo-wrap .aba-osce-main-monitor {
    flex: 1 1 auto !important;
}

.al-demo-scale-inner .al-osce-monitor-demo-wrap .aba-monitor-rail {
    min-height: 0 !important;
}

.al-demo-scale-inner .al-osce-monitor-demo-wrap #aba-osce-chat-input {
    pointer-events: none;
    cursor: default;
}

/* OSCE TEE landing: same shell as monitor, suffixed DOM ids */
.al-demo-scale-inner .al-osce-tee-demo-wrap #aba-view-osce-tee-landing.al-landing-osce-tee-view {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

.al-demo-scale-inner .al-osce-tee-demo-wrap #aba-view-osce-tee-landing .aba-header,
.al-demo-scale-inner .al-osce-tee-demo-wrap #aba-view-osce-tee-landing .aba-phase-timer-bar {
    flex-shrink: 0;
}

.al-demo-scale-inner .al-osce-tee-demo-wrap .aba-osce-main {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
}

.al-demo-scale-inner .al-osce-tee-demo-wrap .aba-osce-monitor-main,
.al-demo-scale-inner .al-osce-tee-demo-wrap .aba-osce-main-monitor {
    min-height: 0 !important;
}

.al-demo-scale-inner .al-osce-tee-demo-wrap .aba-osce-main-monitor {
    flex: 1 1 auto !important;
}

.al-demo-scale-inner .al-osce-tee-demo-wrap .aba-monitor-rail {
    min-height: 0 !important;
}

.al-demo-scale-inner .al-osce-tee-demo-wrap #aba-osce-chat-input-ltee {
    pointer-events: none;
    cursor: default;
}

.al-demo-scale-inner .al-osce-tee-demo-wrap .aba-tee-image-wrap {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
    flex: 1;
}

.al-demo-scale-inner .al-osce-tee-demo-wrap .aba-tee-image {
    max-height: min(420px, 55vh);
}

/* OSCE Ultrasound landing: real template, suffixed DOM ids */
.al-demo-scale-inner .al-osce-us-demo-wrap #aba-view-osce-us-landing.al-landing-osce-us-view {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

.al-demo-scale-inner .al-osce-us-demo-wrap #aba-view-osce-us-landing .aba-header,
.al-demo-scale-inner .al-osce-us-demo-wrap #aba-view-osce-us-landing .aba-phase-timer-bar {
    flex-shrink: 0;
}

.al-demo-scale-inner .al-osce-us-demo-wrap .aba-osce-main {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
}

.al-demo-scale-inner .al-osce-us-demo-wrap .aba-osce-simulator-main {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    min-width: 0 !important;
}

.al-demo-scale-inner .al-osce-us-demo-wrap .aba-osce-ultrasound-main {
    flex: 1 1 auto !important;
    min-height: 0 !important;
}

.al-demo-scale-inner .al-osce-us-demo-wrap .aba-osce-ultrasound-main .aba-us-exam-screen,
.al-demo-scale-inner .al-osce-us-demo-wrap .aba-osce-ultrasound-main [id^="aba-osce-main-ultrasound"] {
    flex: 1 !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.al-demo-scale-inner .al-osce-us-demo-wrap .aba-us-workspace {
    overflow: hidden !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
}

.al-demo-scale-inner .al-osce-us-demo-wrap .aba-us-annotation-img-wrap {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.al-demo-scale-inner .al-osce-us-demo-wrap .aba-us-annotation-img {
    max-width: 100%;
    max-height: min(380px, 48vh);
    width: auto;
    height: auto;
    object-fit: contain;
}

.al-demo-scale-inner .al-osce-us-demo-wrap .aba-ultrasound-examiner-panel {
    min-height: 0;
    overflow-y: auto;
}

.al-demo-scale-inner .al-osce-us-demo-wrap .aba-osce-sidebar {
    min-height: 0 !important;
}

/* OSCE corridor: production view inside 1440×900 scale box (same as simulator) */
.al-demo-scale-inner .al-osce-corridor-demo-wrap #aba-view-osce-corridor.al-landing-osce-corridor-view {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: none !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

.al-demo-scale-inner .al-osce-corridor-demo-wrap #aba-view-osce-corridor .aba-header {
    flex-shrink: 0;
}

.al-demo-scale-inner .al-osce-corridor-demo-wrap .aba-osce-corridor-wrap {
    position: absolute !important;
    top: 64px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
}

/* Results embed: flex column + inner scroll (avoids double scroll with outer frame) */
.al-results-demo-wrap #aba-back-to-dashboard {
    display: none !important;
}

.al-demo-scale-inner .al-results-demo-wrap .aba-results-content {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    z-index: 2 !important;
    overflow: hidden !important;
    height: 100% !important;
}

.al-demo-scale-inner .al-results-demo-wrap .aba-results-scroll {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

/* ==========================================================================
   EXAM MODES — dashboard-style card grid (matches exam-dashboard.php)
   ========================================================================== */

.al-modes {
    padding: 104px 0;
    background: var(--al-white);
}

.al-modes-dashboard-panel {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 24px 48px -12px rgba(15, 23, 42, 0.2),
        0 0 0 1px rgba(15, 23, 42, 0.06);
}

.al-modes-dashboard-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #0f172a 0%, #1e3a5f 45%, #0f766e 130%);
}

.al-modes-dashboard-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgb(0 0 0 / 40%);
    pointer-events: none;
}

.al-modes-dashboard-inner {
    position: relative;
    z-index: 2;
    padding: 22px 22px 26px;
}

/* Same 2×2 + full row as exam-dashboard.php (five modes) */
.al-modes-dashboard-panel .al-landing-modes-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(108px, auto) minmax(108px, auto) minmax(128px, auto);
    grid-template-areas:
        "soe practice-soe"
        "osce practice-osce"
        "full full";
    gap: 10px;
    flex: none;
    min-height: 0;
    max-height: none;
    align-items: stretch;
}

.al-modes-dashboard-panel .al-landing-modes-grid .aba-exam-type-card[data-lp-mode="soe_only"] {
    grid-area: soe;
}

.al-modes-dashboard-panel .al-landing-modes-grid .aba-exam-type-card[data-lp-mode="osce_only"] {
    grid-area: osce;
}

.al-modes-dashboard-panel .al-landing-modes-grid .aba-exam-type-card[data-lp-mode="practice_soe"] {
    grid-area: practice-soe;
}

.al-modes-dashboard-panel .al-landing-modes-grid .aba-exam-type-card[data-lp-mode="practice_osce"] {
    grid-area: practice-osce;
}

.al-modes-dashboard-panel .al-landing-modes-grid .aba-exam-type-card[data-lp-mode="full"] {
    grid-area: full;
}

.al-modes-dashboard-panel .aba-dashboard-cards-grid .aba-exam-type-card {
    cursor: default;
}

/* Slightly larger type than scaled dashboard embed (full-page context) */
.al-modes-dashboard-panel .aba-dashboard-cards-grid .aba-exam-type-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 16px;
    border-radius: 8px;
}

.al-modes-dashboard-panel .aba-dashboard-cards-grid .aba-exam-type-name {
    font-size: 13px;
}

.al-modes-dashboard-panel .aba-dashboard-cards-grid .aba-exam-type-desc {
    font-size: 11px;
    line-height: 1.35;
}

.al-modes-dashboard-panel .aba-dashboard-cards-grid .aba-exam-type-duration {
    font-size: 11px;
}

.al-modes-dashboard-panel .aba-dashboard-cards-grid .aba-exam-type-duration .aba-duration-icon {
    width: 13px;
    height: 13px;
    min-width: 13px;
    min-height: 13px;
    max-width: 13px;
    max-height: 13px;
}

.al-modes-dashboard-panel .aba-full-exam-breakdown {
    margin-top: 8px;
}

.al-modes-dashboard-panel .aba-breakdown-row {
    font-size: 11px;
}

/* ==========================================================================
   FEATURES
   ========================================================================== */

.al-features {
    padding: 88px 0;
    background: var(--al-dark);
}

.al-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--al-dark-border);
    border-radius: var(--al-radius-lg);
    overflow: hidden;
}

.al-feature-item {
    padding: 40px 32px;
    background: var(--al-dark);
}

.al-feature-icon {
    width: 40px;
    height: 40px;
    color: var(--al-accent);
}

.al-feature-icon svg {
    width: 100%;
    height: 100%;
}

.al-feature-item h3 {
    margin: 18px 0 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--al-text-on-dark);
    line-height: 1.35;
}

.al-feature-item p {
    margin: 10px 0 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--al-muted-on-dark);
}

/* ==========================================================================
   FINAL CTA
   ========================================================================== */

.al-cta {
    padding: 104px 0;
    background: linear-gradient(135deg, #0d1f3c 0%, #1a3a5c 50%, #0d3d3d 100%);
    text-align: center;
}

/* Theme templates often force main p/h2 { text-align: left }; keep CTA visually centered. */
.al-cta .al-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.aba-applied-landing .al-cta h2,
.aba-applied-landing .al-cta p {
    text-align: center;
}

.al-cta h2 {
    margin: 0;
    width: 100%;
    max-width: min(720px, 100%);
    box-sizing: border-box;
    font-size: clamp(28px, 3.5vw, 48px);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.al-cta p {
    margin: 16px 0 0;
    width: 100%;
    max-width: 480px;
    box-sizing: border-box;
    font-size: 17px;
    line-height: 1.65;
    color: var(--al-muted-on-dark);
}

.al-cta .al-btn {
    margin-top: 32px;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

.al-fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.al-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.al-fade-in.al-delay-1 { transition-delay: 0.1s; }
.al-fade-in.al-delay-2 { transition-delay: 0.2s; }
.al-fade-in.al-delay-3 { transition-delay: 0.3s; }

@keyframes al-fade-panel {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .al-features-grid {
        grid-template-columns: 1fr;
        gap: 0;
        background: transparent;
    }

    .al-feature-item {
        border-bottom: 1px solid var(--al-dark-border);
    }

    .al-feature-item:last-child {
        border-bottom: none;
    }

}

@media (max-width: 768px) {
    .al-container {
        width: min(var(--al-max-w), calc(100% - 32px));
    }

    .al-hero {
        padding: 0 0 32px;
    }

    .al-section {
        padding: 72px 0;
    }

    .al-demo-section {
        padding: 32px 0 56px;
    }

    .al-step,
    .al-modes,
    .al-features,
    .al-cta {
        padding: 56px 0;
    }

    .al-step {
        padding: 40px 0 56px;
    }

    .al-section-header {
        margin-bottom: 36px;
    }

    .al-modes-dashboard-panel .al-landing-modes-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-template-areas:
            "soe"
            "practice-soe"
            "osce"
            "practice-osce"
            "full";
    }

}

@media (max-width: 640px) {
    .al-hero {
        padding: 0 0 28px;
    }

    .al-hero-wrap {
        padding: 0 12px;
    }

    .al-hero-title {
        font-size: clamp(26px, 7vw, 34px);
    }

    .al-hero-subtitle {
        font-size: 14px;
    }

    .al-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .al-hero-actions .al-btn-hero-fill,
    .al-hero-actions .al-btn-hero-ghost {
        width: 100%;
        justify-content: center;
    }

    .al-feature-item {
        padding: 28px 24px;
    }

    .al-cta h2 {
        font-size: 26px;
    }
}
