:root {
    --al-ink: #1b2533;
    --al-muted: #607086;
    --al-blue: #154c79;
    --al-teal: #0f766e;
    --al-coral: #e46f55;
    --al-gold: #d59a2e;
    --al-bg: #f7fafc;
    --al-line: #dbe4ee;
    --al-white: #ffffff;
    --al-radius: 8px;
}

html { scroll-behavior: smooth; }
body.al48-body { color: var(--al-ink); background: var(--al-bg); font-family: Inter, "Plus Jakarta Sans", Arial, sans-serif; }
a { color: var(--al-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus, button:focus, input:focus, select:focus, textarea:focus { outline: 3px solid rgba(228, 111, 85, .42); outline-offset: 2px; }
.skip-link { position: absolute; top: -40px; left: 12px; background: var(--al-ink); color: white; padding: 8px 12px; z-index: 9999; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 1000; }
.al48-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--al-ink); text-decoration: none; }
.brand-mark { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: linear-gradient(135deg, var(--al-blue), var(--al-teal)); color: white; font-size: 15px; }
.brand-accent { color: var(--al-coral); }
.navbar .nav-link { font-weight: 700; color: var(--al-ink); }
.hero-section { min-height: 680px; padding: 150px 0 110px; overflow: hidden; }
.hero-bottom { position: absolute; left: 0; right: 0; bottom: 0; height: 260px; background-repeat: no-repeat; background-size: 100% auto; background-position: bottom center; pointer-events: none; }
.hero-section h1 { font-size: clamp(48px, 8vw, 112px); line-height: .95; font-weight: 800; max-width: 820px; }
.lead { font-size: 1.25rem; color: #334155; max-width: 720px; }
.eyebrow { color: var(--al-teal); font-weight: 800; text-transform: uppercase; font-size: .8rem; margin-bottom: 10px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.hero-panel, .side-panel, .form-panel, .auth-card, .checkout-panel, .admin-panel { background: rgba(255,255,255,.94); border: 1px solid var(--al-line); border-radius: var(--al-radius); box-shadow: 0 18px 55px rgba(21,76,121,.12); padding: 28px; }
.journey-list { display: grid; gap: 12px; padding: 0; margin: 18px 0 0; list-style: none; }
.journey-list li { padding: 13px 14px; border-left: 4px solid var(--al-coral); background: #fff7f4; border-radius: 6px; font-weight: 700; }
.section { padding: 90px 0; }
.section.pt-0 { padding-top: 0; }
.tinted { background: #eef7f4; }
.section-heading { max-width: 760px; margin-bottom: 34px; }
.section-heading h2, .page-title h1 { color: var(--al-ink); font-weight: 800; }
.page-title { padding: 115px 0 70px; background: linear-gradient(180deg, #fff, #f3f8fb); border-bottom: 1px solid var(--al-line); }
.page-title.compact { padding: 70px 0 36px; }
.narrow { max-width: 880px; }
.feature-grid, .card-grid, .stat-grid, .chip-grid { display: grid; gap: 18px; }
.feature-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.card-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.feature-card, .content-card, .row-card { border: 1px solid var(--al-line); border-radius: var(--al-radius); background: var(--al-white); padding: 24px; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.feature-card:hover, .content-card:hover, .row-card:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(15, 118, 110, .12); }
.feature-card span, .content-card h2, .content-card h3 { font-weight: 800; color: var(--al-ink); }
.content-card h2, .content-card h3 { font-size: 1.25rem; line-height: 1.25; margin: 12px 0; }
.content-card p, .feature-card p, .card-meta, .site-footer p { color: var(--al-muted); }
.card-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .9rem; border-top: 1px solid var(--al-line); padding-top: 14px; margin-top: 18px; }
.badge { display: inline-flex; align-items: center; min-height: 26px; border-radius: 999px; background: #edf2f7; color: var(--al-ink); padding: 4px 10px; font-size: .75rem; font-weight: 800; }
.badge.demo { background: #fff1dc; color: #8a5400; }
.split-band, .two-column, .account-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 430px); gap: 32px; align-items: start; }
.mini-list { display: grid; gap: 12px; }
.mini-list a, .programme-mini { display: block; background: white; border: 1px solid var(--al-line); border-radius: var(--al-radius); padding: 16px; text-decoration: none; }
.mini-list span { display: block; color: var(--al-muted); }
.process-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.process-row div { background: white; border-bottom: 4px solid var(--al-gold); border-radius: var(--al-radius); padding: 22px; }
.process-row span { font-size: 2rem; font-weight: 900; color: var(--al-coral); }
.cta-band { background: linear-gradient(135deg, var(--al-blue), var(--al-teal)); color: white; padding: 70px 0; }
.cta-band h2 { color: white; max-width: 760px; }
.filter-bar, .form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; align-items: end; margin-bottom: 28px; }
label { display: grid; gap: 7px; font-weight: 700; color: var(--al-ink); }
input, select, textarea { width: 100%; border: 1px solid #b7c6d6; border-radius: 6px; padding: 12px 13px; background: white; color: var(--al-ink); }
textarea { resize: vertical; }
.check-row { display: flex; grid-template-columns: none; align-items: flex-start; gap: 10px; font-weight: 600; }
.check-row input { width: auto; margin-top: 4px; }
.honeypot { position: absolute; left: -10000px; opacity: 0; height: 1px; width: 1px; }
.field-error { color: #9f1d1d; font-size: .9rem; }
.rich-text { font-size: 1.05rem; line-height: 1.75; }
.rich-text h2, .rich-text h3 { margin-top: 1.6em; }
.empty-state { border: 1px dashed var(--al-line); border-radius: var(--al-radius); padding: 24px; background: white; color: var(--al-muted); }
.pagination-row { display: flex; gap: 8px; justify-content: center; margin-top: 30px; }
.pagination-row a { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--al-line); border-radius: 6px; text-decoration: none; }
.pagination-row a.active { background: var(--al-blue); color: white; }
.auth-section { min-height: 72vh; display: grid; place-items: center; padding: 70px 15px; }
.auth-card { width: min(100%, 480px); }
.account-nav { display: grid; gap: 8px; background: white; border: 1px solid var(--al-line); border-radius: var(--al-radius); padding: 14px; }
.account-nav a { padding: 10px 12px; text-decoration: none; border-radius: 6px; font-weight: 700; }
.account-nav a:hover { background: #edf7f6; }
.account-content { min-width: 0; }
.stat-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 26px; }
.stat-grid div { background: white; border: 1px solid var(--al-line); border-radius: var(--al-radius); padding: 20px; }
.stat-grid strong { display: block; font-size: 2rem; color: var(--al-coral); }
.row-card { display: flex; gap: 18px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { padding: 12px; border-bottom: 1px solid var(--al-line); text-align: left; vertical-align: top; }
th { color: var(--al-ink); font-weight: 800; background: #f4f7fa; }
.chip-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 24px; }
.chip-grid label { display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--al-line); border-radius: 6px; }
.chip-grid input { width: auto; }
.module-block { background: white; border: 1px solid var(--al-line); border-radius: var(--al-radius); padding: 24px; margin-bottom: 18px; }
.lesson-list { display: grid; gap: 12px; }
.lesson-list li { padding: 12px; border-bottom: 1px solid var(--al-line); }
.progress-bar { height: 12px; border-radius: 999px; background: #dce6ef; overflow: hidden; }
.progress-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--al-teal), var(--al-coral)); }
.lesson-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.checkout-status { margin-top: 18px; padding: 14px; border-radius: 6px; background: #f4f7fa; min-height: 48px; }
.state-options { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.state-options label { display: flex; align-items: center; gap: 8px; }
.state-options input { width: auto; }
.site-footer { background: #101820; color: #d9e3ec; padding: 60px 0 24px; }
.site-footer a { display: block; color: #e9f4ff; text-decoration: none; margin: 8px 0; }
.footer-heading { color: white; font-size: 1rem; font-weight: 800; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 36px; padding-top: 20px; }
.footer-bottom a { display: inline; margin-left: 14px; }
.admin-body { background: #f5f7fb; color: var(--al-ink); }
.admin-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 100vh; }
.admin-sidebar { background: #121a24; color: white; padding: 24px; }
.admin-sidebar .al48-brand { color: white; margin-bottom: 24px; }
.admin-sidebar nav { display: grid; gap: 6px; }
.admin-sidebar a { color: #e7eef7; text-decoration: none; padding: 10px 12px; border-radius: 6px; }
.admin-sidebar a:hover { background: rgba(255,255,255,.1); }
.admin-main { padding: 28px; min-width: 0; }
.admin-topbar { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 22px; }
.admin-topbar h1 { margin: 0; }
.admin-filter { background: white; border: 1px solid var(--al-line); border-radius: var(--al-radius); padding: 16px; }
.admin-actions { margin-bottom: 16px; }
.admin-form-grid .span-2 { grid-column: 1 / -1; }

@media (max-width: 991px) {
    .hero-section { min-height: auto; padding: 105px 0 80px; }
    .split-band, .two-column, .account-grid, .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; }
}

@media (max-width: 575px) {
    .section { padding: 58px 0; }
    .page-title { padding: 82px 0 42px; }
    .hero-section h1 { font-size: 46px; }
    .row-card, .lesson-nav, .footer-bottom { display: grid; }
    .hero-panel, .side-panel, .form-panel, .auth-card, .checkout-panel, .admin-panel { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
