* {
    box-sizing: border-box;
}

:root {
    --blue-900: #073763;
    --blue-800: #0b4f83;
    --blue-700: #0f6fb5;
    --blue-500: #2f9eea;
    --blue-100: #e8f5ff;
    --gray-900: #142032;
    --gray-700: #44546a;
    --gray-500: #6c7a89;
    --gray-200: #e6edf3;
    --gray-100: #f5f8fb;
    --white: #ffffff;
    --success: #1aa37a;
    --warning: #d99a24;
    --shadow: 0 24px 70px rgba(7, 55, 99, 0.13);
    --soft-shadow: 0 14px 34px rgba(20, 32, 50, 0.08);
    --radius: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--gray-900);
    background:
        linear-gradient(135deg, rgba(15, 76, 129, 0.06), transparent 30%),
        linear-gradient(315deg, rgba(31, 166, 122, 0.30), transparent 42%),
        #e2f4e8;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    background: var(--white);
    transition: opacity 350ms ease, visibility 350ms ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-card {
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 24px;
    color: var(--blue-900);
}

.loader-logo,
.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-800), var(--blue-500));
    color: var(--white);
    font-weight: 900;
    letter-spacing: 0;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 18px rgba(7, 55, 99, 0.18);
    flex: 0 0 auto;
}

.loader-logo {
    width: 58px;
    height: 58px;
    animation: pulse 1100ms ease-in-out infinite;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    min-height: 88px;
    padding: 18px clamp(10px, 2vw, 28px);
    background: linear-gradient(135deg, rgba(7, 55, 99, 0.96) 0%, rgba(15, 111, 181, 0.94) 54%, rgba(32, 130, 95, 0.88) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 34px rgba(7, 55, 99, 0.07);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 20px;
    font-weight: 800;
    color: var(--white);
    white-space: nowrap;
    margin-right: auto;
}

.brand b {
    color: #ffd166;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 0;
}

.site-nav a,
.dropdown-trigger {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.dropdown-trigger:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.13);
    transform: translateY(-1px);
}

.site-nav a[aria-current="page"],
.site-nav a[aria-current="location"] {
    color: var(--white);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    display: grid;
    grid-template-columns: repeat(2, minmax(210px, 1fr));
    gap: 12px;
    min-width: 520px;
    padding: 16px;
    border: 1px solid rgba(230, 237, 243, 0.92);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.dropdown-menu strong {
    display: block;
    margin: 0 0 8px;
    color: var(--blue-900);
    background: var(--blue-100);
    border-left: 4px solid var(--blue-900);
    border-radius: 6px;
    padding: 8px 10px;
}

.dropdown-menu a {
    display: flex;
    justify-content: flex-start;
    min-height: 30px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 14px;
    color: var(--blue-900);
    background: rgba(232, 245, 255, 0.72);
    margin-bottom: 5px;
}

.dropdown-menu a:hover {
    color: #ffffff;
    background: var(--blue-800);
    transform: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: 8px;
    justify-content: flex-end;
    white-space: nowrap;
    position: relative;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    overflow: hidden;
}

.nav-actions::before {
    content: "";
    position: absolute;
    inset: 4px auto 4px 4px;
    width: calc(50% - 4px);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(7, 55, 99, 0.14);
    transition: transform 220ms ease;
}

.nav-actions:has(.register-button:hover)::before,
.nav-actions:has(.register-button:active)::before,
.nav-actions:has(.register-button:focus-visible)::before {
    transform: translateX(100%);
}

.login-button,
.register-button,
.primary-button,
.secondary-button,
.enroll-button,
.newsletter-row button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    min-height: 48px;
    padding: 0 22px;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.login-button,
.secondary-button {
    color: var(--blue-900);
    background: linear-gradient(135deg, #ffffff 0%, #edf8ff 100%);
    border: 1px solid rgba(255, 255, 255, 0.82);
}

.nav-actions .login-button,
.nav-actions .register-button {
    position: relative;
    z-index: 1;
    min-height: 40px;
    min-width: 94px;
    padding: 0 16px;
    border: 0;
    box-shadow: none;
    background: transparent;
}

.nav-actions .login-button {
    color: var(--blue-900);
}

.nav-actions .register-button {
    color: #ffffff;
}

.nav-actions:has(.register-button:hover) .login-button,
.nav-actions:has(.register-button:active) .login-button,
.nav-actions:has(.register-button:focus-visible) .login-button {
    color: #ffffff;
}

.nav-actions:has(.register-button:hover) .register-button,
.nav-actions:has(.register-button:active) .register-button,
.nav-actions:has(.register-button:focus-visible) .register-button {
    color: var(--blue-900);
}

.nav-actions .login-button:hover,
.nav-actions .register-button:hover {
    transform: none;
    box-shadow: none;
}

.register-button,
.primary-button,
.enroll-button,
.newsletter-row button {
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-600) 58%, #20825f 100%);
    box-shadow: 0 14px 28px rgba(15, 111, 181, 0.2);
}

.login-button:hover,
.register-button:hover,
.primary-button:hover,
.secondary-button:hover,
.enroll-button:hover,
.newsletter-row button:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(7, 55, 99, 0.14);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 2px;
    background: var(--white);
}

main {
    width: min(100%, 1440px);
    margin: 0 auto;
}

.section-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.68fr);
    gap: clamp(22px, 4vw, 54px);
    align-items: center;
    min-height: 560px;
    margin-top: 18px;
    padding: clamp(28px, 4.6vw, 56px);
    border-radius: 18px;
    background: linear-gradient(135deg, var(--blue-900), var(--blue-700) 62%, var(--blue-500));
    box-shadow: 0 28px 70px rgba(7, 55, 99, 0.2);
}

.hero-copy {
    max-width: 720px;
}

.eyebrow {
    display: inline-flex;
    margin: 0 0 12px;
    color: var(--blue-700);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--blue-900);
    line-height: 1.04;
    letter-spacing: 0;
}

h1 {
    margin-bottom: 16px;
    font-size: clamp(36px, 4.8vw, 60px);
    font-weight: 750;
}

h2 {
    margin-bottom: 12px;
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 750;
}

h3 {
    margin-bottom: 8px;
    font-size: 22px;
}

p {
    color: var(--gray-700);
    line-height: 1.7;
}

.hero-copy p {
    max-width: 66ch;
    font-size: 18px;
    margin-bottom: 0;
}

.hero h1,
.hero .eyebrow,
.hero-copy > p {
    color: var(--white);
}

.section-heading h2,
.section-heading p,
.section-copy h2,
.section-copy p {
    color: var(--blue-900);
}

.section-heading .eyebrow,
.section-copy .eyebrow {
    color: var(--blue-700);
}

.feature-grid h2,
.feature-grid h3,
.feature-grid p,
.feature-grid strong,
.platform-step p,
.platform-step strong,
.stat-card strong,
.stat-card span {
    color: var(--blue-900);
}

.feature-grid article p,
.platform-step p,
.stat-card span {
    color: var(--gray-700);
}

.hero-actions,
.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-trust span,
.payment-methods span,
.support-grid span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(47, 158, 234, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--blue-900);
    font-weight: 850;
    font-size: 1rem;
    box-shadow: 0 10px 24px rgba(7, 55, 99, 0.05);
}

.hero-panel {
    position: relative;
    min-height: 300px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 8px solid var(--blue-700);
    background: linear-gradient(135deg, var(--blue-900), var(--blue-500));
    box-shadow: 0 26px 70px rgba(7, 55, 99, 0.24);
}

.hero-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(7, 55, 99, 0.52));
}

.hero-panel img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    display: block;
}

.glass-card {
    position: absolute;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 44px rgba(7, 55, 99, 0.18);
}

.pass-card {
    left: 20px;
    bottom: 20px;
    width: 210px;
    padding: 18px;
}

.pass-card span,
.pass-card small,
.live-card span {
    display: block;
    color: var(--gray-700);
    font-weight: 800;
}

.pass-card strong {
    display: block;
    margin: 8px 0 4px;
    color: var(--blue-900);
    font-size: 46px;
    line-height: 1;
}

.live-card {
    right: 20px;
    top: 22px;
    max-width: 230px;
    padding: 14px;
}

.stats-grid,
.feature-grid,
.course-grid,
.licensing-grid,
.dashboard-grid,
.testimonial-grid,
.support-grid,
.learning-image-grid {
    display: grid;
    gap: 16px;
}

.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 16px;
    margin-bottom: 16px;
}

.stat-card,
.course-card,
.license-card,
.dashboard-card,
.testimonial-card,
.contact-card,
.newsletter-card,
.feature-grid article,
.faq-list details {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius);
    background: rgba(232, 245, 255, 0.9);
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(14px);
}

.stat-card {
    padding: 22px;
}

.stat-card strong {
    display: block;
    color: var(--blue-900);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1;
}

.stat-card span {
    display: block;
    margin-top: 8px;
    color: var(--gray-700);
    font-weight: 850;
}

.split-section,
.payment-section,
.contact-section {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(20px, 4vw, 42px);
    align-items: start;
    padding: 12px 0 clamp(20px, 4vw, 38px);
}

.feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-grid article,
.license-card,
.dashboard-card,
.testimonial-card,
.contact-card,
.newsletter-card,
.faq-list details {
    padding: 22px;
}

.section-heading {
    max-width: 820px;
    margin-bottom: 14px;
    padding-top: 14px;
}

.platform-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 10px auto 16px;
}

.platform-step {
    position: relative;
    min-height: 210px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius);
    background: rgba(232, 245, 255, 0.9);
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(14px);
}

.platform-step span {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: var(--blue-100);
    color: var(--blue-900);
    font-weight: 950;
}

.platform-step strong {
    display: block;
    color: var(--blue-900);
    font-size: 18px;
}

.platform-step p {
    margin: 10px 0 0;
}

.home-flow {
    position: relative;
    display: grid;
    gap: 10px;
    max-width: 880px;
    margin: 8px 0 20px;
}

.home-flow::before {
    content: "";
    position: absolute;
    left: 23px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(180deg, var(--blue-800), rgba(47, 158, 234, 0.16));
}

.flow-step {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.flow-step > span {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 4px solid #ffffff;
    border-radius: 50%;
    background: var(--blue-800);
    color: #ffffff;
    font-weight: 950;
    box-shadow: 0 10px 24px rgba(7, 55, 99, 0.16);
}

.flow-step div {
    padding: 14px 16px;
    border: 1px solid rgba(15, 76, 129, 0.16);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.72);
}

.flow-step strong {
    display: block;
    color: var(--blue-900);
    font-size: 18px;
}

.flow-step p {
    margin: 6px 0 0;
}

.home-learning {
    padding: 18px 0;
    border-top: 1px solid rgba(15, 76, 129, 0.12);
}

.anatomy-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
    gap: clamp(16px, 3vw, 28px);
    align-items: center;
    margin-top: 10px;
}

.anatomy-copy,
.heart-frame,
.learning-image-card {
    border: 1px solid rgba(15, 76, 129, 0.16);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 14px 30px rgba(7, 55, 99, 0.07);
}

.anatomy-copy {
    padding: clamp(18px, 3vw, 28px);
    border-left: 4px solid var(--blue-800);
}

.anatomy-copy h3 {
    margin-bottom: 10px;
    font-size: clamp(24px, 3vw, 36px);
}

.learning-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.learning-points span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 11px;
    border-radius: 999px;
    background: var(--blue-100);
    color: var(--blue-900);
    font-weight: 850;
}

.heart-frame {
    margin: 0;
    overflow: hidden;
    border: 6px solid var(--blue-700);
    background: #ffffff;
    text-align: center;
}

.heart-frame img {
    display: block;
    width: 100%;
    height: 205px;
    object-fit: contain;
    padding: 14px;
    background: #ffffff;
}

.heart-frame figcaption {
    padding: 10px 12px;
    border-top: 1px solid var(--gray-200);
    color: var(--blue-900);
    font-weight: 900;
    font-size: 13px;
}

.anatomy-atlas {
    display: grid;
    grid-template-columns: minmax(180px, 0.55fr) minmax(180px, 0.55fr) minmax(0, 1fr);
    gap: 14px;
    margin-top: 14px;
}

.atlas-figure {
    margin: 0;
    border: 1px solid rgba(15, 76, 129, 0.18);
    border-left: 4px solid var(--blue-800);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.68);
    overflow: hidden;
}

.atlas-figure img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: contain;
    padding: 12px;
    background: #ffffff;
}

.atlas-figure figcaption {
    padding: 10px 12px;
    color: var(--blue-900);
    font-size: 13px;
    font-weight: 850;
}

.atlas-notes {
    padding: 18px;
    border: 1px solid rgba(15, 76, 129, 0.18);
    border-left: 4px solid var(--blue-800);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.68);
}

.atlas-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 12px;
}

.atlas-list span {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 12px;
    background: var(--blue-100);
    color: var(--blue-900);
    font-weight: 850;
}

.learning-image-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 14px;
}

.learning-image-card {
    overflow: hidden;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.learning-image-card:hover {
    transform: translateY(-5px);
    border-color: rgba(15, 111, 181, 0.45);
    box-shadow: 0 18px 38px rgba(7, 55, 99, 0.12);
}

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

.learning-image-card strong,
.learning-image-card p {
    display: block;
    padding-inline: 16px;
}

.learning-image-card strong {
    padding-top: 14px;
    color: var(--blue-900);
    font-size: 18px;
}

.learning-image-card p {
    padding-bottom: 16px;
    margin: 8px 0 0;
}

.home-depth,
.home-specialties {
    padding: 20px 0;
    border-top: 1px solid rgba(15, 76, 129, 0.12);
}

.depth-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.depth-lines {
    display: grid;
    gap: 10px;
}

.depth-line {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 14px 0;
    border-top: 1px solid rgba(15, 76, 129, 0.18);
}

.depth-line:last-child {
    border-bottom: 1px solid rgba(15, 76, 129, 0.18);
}

.depth-line > span {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--blue-800);
    color: #ffffff;
    font-weight: 950;
}

.depth-line h3,
.depth-line p {
    margin-bottom: 6px;
}

.depth-panel {
    min-height: 250px;
    padding: 20px;
    border: 1px solid rgba(15, 76, 129, 0.16);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 14px 30px rgba(7, 55, 99, 0.07);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.depth-panel:hover {
    transform: translateY(-5px);
    border-color: rgba(15, 111, 181, 0.45);
    box-shadow: 0 18px 38px rgba(7, 55, 99, 0.12);
}

.depth-panel span {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--blue-800);
    color: #ffffff;
    font-weight: 950;
}

.depth-panel h3 {
    margin-bottom: 10px;
}

.home-specialties {
    display: grid;
    grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1fr);
    gap: clamp(18px, 4vw, 40px);
    align-items: center;
}

.about-mission {
    padding: 18px 0 clamp(28px, 5vw, 64px);
}

.mission-lead {
    max-width: 860px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(15, 76, 129, 0.16);
}

.mission-lead h2 {
    color: var(--blue-900);
}

.mission-rows {
    display: grid;
    gap: 0;
    margin-top: 12px;
}

.mission-row {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 18px 0;
    border-bottom: 1px solid rgba(15, 76, 129, 0.16);
}

.mission-row > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: 999px;
    background: var(--blue-100);
    color: var(--blue-900);
    font-size: 12px;
    font-weight: 950;
}

.mission-row strong {
    display: block;
    color: var(--blue-900);
    font-size: 19px;
    margin-bottom: 6px;
}

.mission-row p {
    margin: 0;
}

.specialty-media {
    overflow: hidden;
    border: 7px solid var(--blue-700);
    border-radius: var(--radius);
    box-shadow: 0 22px 54px rgba(7, 55, 99, 0.18);
}

.specialty-media img {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.specialty-copy {
    padding: clamp(18px, 3vw, 30px);
    border: 1px solid rgba(15, 76, 129, 0.16);
    border-left: 4px solid var(--blue-800);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.78);
}

.specialty-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.specialty-list span {
    padding: 12px;
    border-radius: var(--radius);
    background: var(--blue-100);
    color: var(--blue-900);
    font-weight: 850;
}

.course-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.tab-button {
    min-height: 40px;
    padding: 0 15px;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    background: var(--white);
    color: var(--gray-700);
    font-weight: 900;
    cursor: pointer;
}

.tab-button.active {
    color: var(--white);
    background: var(--blue-800);
    border-color: var(--blue-800);
}

.course-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.course-card {
    overflow: hidden;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.course-card:hover {
    transform: translateY(-8px);
    border-color: rgba(47, 158, 234, 0.5);
    box-shadow: var(--shadow);
}

.course-card.hidden {
    display: none;
}

.course-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.course-body {
    padding: 18px;
}

.course-body span {
    color: var(--success);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.course-meta {
    display: grid;
    gap: 6px;
    margin: 14px 0 16px;
    color: var(--gray-700);
    font-size: 13px;
}

.enroll-button {
    width: 100%;
}

.mini-link {
    display: inline-flex;
    margin-top: 6px;
    color: var(--blue-700);
    font-weight: 950;
    text-decoration: none;
}

.mini-link:hover {
    text-decoration: underline;
}

.licensing {
    margin-top: clamp(24px, 4vw, 54px);
}

.licensing-flow {
    padding: 18px 0 clamp(34px, 6vw, 70px);
}

.flow-timeline {
    position: relative;
    display: grid;
    gap: 12px;
    max-width: 920px;
}

.flow-timeline::before {
    content: "";
    position: absolute;
    left: 31px;
    top: 18px;
    bottom: 18px;
    width: 2px;
    background: linear-gradient(180deg, var(--blue-800), rgba(47, 158, 234, 0.18));
}

.flow-item {
    position: relative;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.flow-item > span {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border: 4px solid #ffffff;
    border-radius: 50%;
    background: var(--blue-800);
    color: #ffffff;
    font-weight: 950;
    box-shadow: 0 12px 26px rgba(7, 55, 99, 0.18);
}

.flow-item div,
.unlock-note {
    border: 1px solid rgba(15, 76, 129, 0.18);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.74);
    padding: 18px;
    box-shadow: 0 14px 28px rgba(7, 55, 99, 0.06);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.flow-item:hover div,
.unlock-note:hover {
    transform: translateY(-4px);
    border-color: rgba(15, 111, 181, 0.45);
    box-shadow: 0 18px 38px rgba(7, 55, 99, 0.12);
}

.flow-item h3,
.flow-item p,
.unlock-note p {
    margin-bottom: 8px;
}

.unlock-note {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 920px;
    margin-top: 16px;
    border-left: 4px solid var(--blue-800);
}

.unlock-note strong {
    color: var(--blue-900);
    white-space: nowrap;
}

.unlock-note p {
    flex: 1;
    margin: 0;
}

.unlock-note a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--blue-800);
    color: #ffffff;
    font-weight: 950;
    text-decoration: none;
}

.licensing-grid,
.dashboard-grid,
.testimonial-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.license-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(232, 245, 255, 0.88));
}

.license-card p {
    flex: 1 1 auto;
}

.license-card span {
    display: inline-flex;
    margin-top: 12px;
    color: var(--blue-700);
    font-weight: 900;
}

.license-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 18px;
}

.license-view-button,
.license-enroll-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 850;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 12px 24px rgba(7, 55, 99, 0.14);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.license-view-button {
    background: linear-gradient(135deg, #071f3f 0%, #0f4c81 48%, #20825f 100%);
}

.license-enroll-button {
    background: linear-gradient(135deg, #178a55 0%, #20a66b 100%);
}

.license-view-button:hover,
.license-enroll-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(7, 55, 99, 0.18);
}

.dashboard-grid,
.testimonial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-card ul {
    margin: 12px 0 0;
    padding-left: 18px;
    color: var(--gray-700);
    line-height: 1.7;
}

.payment-section {
    align-items: center;
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.payments-page {
    overflow: hidden;
}

.payments-page,
.payments-page * {
    max-width: 100%;
}

.payments-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: clamp(18px, 4vw, 44px);
    align-items: center;
    padding-top: 24px;
}

.payments-copy,
.payments-status {
    min-width: 0;
}

.payments-copy h1 {
    margin: 8px 0 12px;
    max-width: 850px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.02;
    overflow-wrap: anywhere;
}

.payments-copy p {
    max-width: 760px;
    color: var(--gray-700);
    font-size: clamp(16px, 2vw, 19px);
}

.payments-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
    min-width: 0;
}

.payments-strip span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid rgba(15, 76, 129, 0.15);
    border-radius: 999px;
    color: var(--blue-900);
    background: rgba(255, 255, 255, 0.72);
    font-weight: 800;
    font-size: 1rem;
}

.payments-status {
    display: grid;
    gap: 0;
    padding: 18px;
    border: 1px solid rgba(15, 76, 129, 0.14);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at top right, rgba(31, 166, 122, 0.16), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(232, 248, 243, 0.9));
    box-shadow: 0 16px 38px rgba(7, 55, 99, 0.09);
}

.payment-hero-image {
    width: 100%;
    height: 310px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.64);
    box-shadow: 0 14px 30px rgba(7, 55, 99, 0.12);
}

.gateway-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 850;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(11, 31, 58, 0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease, outline-color 0.18s ease;
}

.gateway-option:hover,
.gateway-option.is-active {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(11, 31, 58, 0.16);
    outline: 3px solid rgba(255, 255, 255, 0.7);
}

.gateway-option.mpesa {
    background: #16a34a;
}

.gateway-option.visa {
    background: #1a1f71;
}

.gateway-option.paypal {
    background: #0070ba;
}

.gateway-option.bank {
    background: #475569;
}

.gateway-option.airtel {
    background: #e11d48;
}

.gateway-option.sponsor {
    background: #7c3aed;
}

.payment-workspace {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
    max-width: 1188px;
    min-width: 0;
}

.payment-gateway-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    padding: clamp(14px, 2.4vw, 24px);
    border: 1px solid rgba(15, 76, 129, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 34px rgba(7, 55, 99, 0.08);
    overflow: hidden;
    min-width: 0;
}

.gateway-selector {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    position: static;
    min-width: 0;
}

.gateway-heading {
    display: grid;
    gap: 7px;
    max-width: 100%;
    min-width: 0;
}

.gateway-selector h2 {
    margin: 0;
    color: var(--blue-900);
    font-size: clamp(24px, 3vw, 34px);
}

.gateway-selector p {
    margin: 0;
    color: var(--gray-700);
}

.gateway-select-label {
    color: var(--blue-900);
    font-weight: 900;
    font-size: 0.86rem;
}

.gateway-options {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    overflow: visible;
    padding: 4px 2px 8px;
    scrollbar-width: none;
}

.gateway-options::-webkit-scrollbar {
    display: none;
}

.gateway-selector select {
    min-height: 46px;
    width: 100%;
    max-width: 100%;
    border: 1px solid rgba(15, 76, 129, 0.18);
    border-radius: 14px;
    padding: 0 14px;
    color: var(--blue-900);
    background: #ffffff;
    font: inherit;
    font-weight: 800;
    min-width: 0;
}

.gateway-detail {
    --gateway-color: #16a34a;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    border: 0;
    border-radius: 18px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--gateway-color), #ffffff 84%), rgba(255, 255, 255, 0.96));
    box-shadow: none;
    overflow: hidden;
    min-width: 0;
}

.payment-instructions {
    min-height: 100%;
}

.gateway-detail[data-gateway="card"] {
    --gateway-color: #1a1f71;
}

.gateway-detail[data-gateway="paypal"] {
    --gateway-color: #0070ba;
}

.gateway-detail[data-gateway="bank"] {
    --gateway-color: #475569;
}

.gateway-detail[data-gateway="airtel"] {
    --gateway-color: #e11d48;
}

.gateway-detail[data-gateway="sponsor"] {
    --gateway-color: #7c3aed;
}

.gateway-visual {
    display: grid;
    place-items: center;
    gap: 10px;
    min-height: clamp(150px, 24vw, 220px);
    padding: 14px;
    color: #ffffff;
    text-align: center;
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.28), transparent 32%),
        linear-gradient(145deg, var(--gateway-color), color-mix(in srgb, var(--gateway-color), #0b1f3a 30%));
    min-width: 0;
}

.gateway-visual img {
    width: min(100%, 300px);
    height: auto;
    max-height: 150px;
    aspect-ratio: 640 / 420;
    object-fit: contain;
    display: block;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 36px rgba(11, 31, 58, 0.18);
    max-width: 100%;
}

.gateway-visual strong {
    font-size: clamp(18px, 3vw, 26px);
}

.gateway-content {
    display: grid;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0;
}

.gateway-content h2,
.payment-flow h2,
.unlock-list h2 {
    margin: 0;
    max-width: 100%;
    color: var(--blue-900);
    font-size: clamp(22px, 2.4vw, 32px);
    overflow-wrap: anywhere;
}

.gateway-content p {
    margin: 0;
    max-width: 100%;
    color: var(--gray-700);
    overflow-wrap: anywhere;
}

.gateway-content ol {
    display: grid;
    gap: 9px;
    margin: 0;
    padding-left: 21px;
    color: var(--gray-800);
    max-width: 100%;
    overflow-wrap: anywhere;
}

.payment-flow,
.unlock-list {
    grid-column: 1 / -1;
}

.payment-flow {
    padding: clamp(20px, 3.2vw, 34px);
    border: 1px solid rgba(15, 76, 129, 0.13);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.8);
    overflow: hidden;
    min-width: 0;
}

.unlock-list {
    padding: clamp(20px, 3.2vw, 34px);
    border: 1px solid rgba(15, 76, 129, 0.13);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.8);
    overflow: hidden;
    min-width: 0;
}

.home-payment-flow {
    margin-top: 22px;
    margin-bottom: 12px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(232, 248, 243, 0.9));
}

.payment-page-flow {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(232, 248, 243, 0.92));
}

.flow-steps {
    display: flex;
    width: max-content;
    gap: 12px;
    margin-top: 18px;
    animation: payment-flow-slide 28s linear infinite;
}

.flow-slider {
    overflow: hidden;
    margin-top: 18px;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    width: 100%;
    max-width: 100%;
}

.flow-slider .flow-steps {
    margin-top: 0;
}

.flow-steps article {
    flex: 0 0 clamp(190px, 46vw, 260px);
    --flow-color: var(--blue-500);
    --flow-soft: rgba(232, 245, 255, 0.92);
    border: 1px solid color-mix(in srgb, var(--flow-color), transparent 68%);
    border-top: 4px solid var(--flow-color);
    border-radius: 18px;
    padding: 14px 16px;
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--flow-color), transparent 78%), transparent 40%),
        linear-gradient(135deg, #ffffff 0%, var(--flow-soft) 100%);
    box-shadow: 0 14px 30px rgba(7, 55, 99, 0.09);
    min-width: 0;
}

.flow-steps article:nth-child(6n + 1) {
    --flow-color: #0f6fb5;
    --flow-soft: #e8f5ff;
}

.flow-steps article:nth-child(6n + 2) {
    --flow-color: #16a34a;
    --flow-soft: #e8f8ef;
}

.flow-steps article:nth-child(6n + 3) {
    --flow-color: #7c3aed;
    --flow-soft: #f1eafe;
}

.flow-steps article:nth-child(6n + 4) {
    --flow-color: #f59e0b;
    --flow-soft: #fff6df;
}

.flow-steps article:nth-child(6n + 5) {
    --flow-color: #0f6fb5;
    --flow-soft: #e8f5ff;
}

.flow-steps span {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #ffffff;
    background: var(--flow-color);
    font-weight: 950;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--flow-color), transparent 70%);
}

.flow-steps strong {
    display: block;
    margin: 10px 0 5px;
    color: var(--blue-900);
}

.flow-steps p {
    margin: 0;
    color: var(--gray-700);
    font-size: 0.94rem;
}

.unlock-list div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.unlock-list span {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-left: 4px solid var(--green-500);
    border-radius: 12px;
    background: rgba(232, 248, 243, 0.78);
    color: var(--blue-900);
    font-weight: 800;
}

.unlock-list span strong {
    color: var(--green-700);
}

@keyframes payment-flow-slide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-50% - 6px));
    }
}

.support-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.support-grid span {
    justify-content: center;
    min-height: 52px;
    border-radius: var(--radius);
}

.testimonial-card p {
    font-size: 18px;
}

.testimonial-card strong {
    color: var(--blue-900);
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-list details {
    transition: border-color 180ms ease, background 180ms ease;
}

.faq-list details[open] {
    border-color: rgba(47, 158, 234, 0.55);
    background: var(--white);
}

.faq-list summary {
    color: var(--blue-900);
    font-weight: 950;
    cursor: pointer;
}

.faq-list p {
    margin: 12px 0 0;
}

.contact-section {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
}

.contact-simple {
    padding: 10px 0 clamp(34px, 6vw, 72px);
}

.contact-intro {
    max-width: 720px;
    margin-bottom: 18px;
}

.contact-intro h2,
.support-frame h2 {
    color: var(--blue-900);
}

.contact-frames {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.contact-frame,
.consult-frame,
.support-frame {
    border: 1px solid rgba(15, 76, 129, 0.18);
    border-left: 4px solid var(--blue-800);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.64);
    box-shadow: none;
}

.contact-frame {
    display: grid;
    gap: 8px;
    min-height: 96px;
    padding: 18px;
    text-decoration: none;
}

.contact-frame span {
    color: var(--gray-700);
    font-weight: 850;
}

.contact-frame strong {
    color: var(--blue-900);
    overflow-wrap: anywhere;
}

.consult-frame {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
    gap: 18px;
    align-items: end;
    margin-top: 10px;
    padding: 20px;
}

.consult-frame h3,
.consult-frame p {
    margin-bottom: 8px;
}

.consult-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.consult-form input {
    min-height: 46px;
    width: 100%;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    padding: 0 16px;
}

.consult-form button {
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    background: var(--blue-800);
    color: #ffffff;
    font-weight: 950;
    cursor: pointer;
}

.support-frame {
    margin-top: 10px;
    padding: 20px;
}

.support-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.support-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(15, 76, 129, 0.16);
    border-radius: 999px;
    background: var(--blue-100);
    color: var(--blue-900);
    font-weight: 850;
    text-decoration: none;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.support-tags a:hover {
    background: var(--blue-800);
    color: #ffffff;
    transform: translateY(-2px);
}

.contact-card a {
    color: var(--blue-700);
    font-weight: 950;
    text-decoration: none;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--blue-100);
}

.newsletter-card label {
    display: block;
    margin-bottom: 12px;
    color: var(--blue-900);
    font-weight: 950;
}

.newsletter-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.newsletter-row input {
    min-height: 46px;
    width: 100%;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    padding: 0 16px;
    font: inherit;
}

.chat-button {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: var(--success);
    color: var(--white);
    box-shadow: 0 18px 40px rgba(26, 163, 122, 0.26);
    font-weight: 950;
    cursor: pointer;
}

.chat-button img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffffff;
    object-fit: cover;
}

@media (max-width: 520px) {
    .chat-button {
        right: 12px;
        bottom: 12px;
        min-height: 42px;
        padding: 0 14px 0 8px;
        gap: 7px;
        font-size: 12px;
    }

    .chat-button img {
        width: 30px;
        height: 30px;
    }
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(7, 55, 99, 0.52);
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.modal-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: relative;
    width: min(560px, 100%);
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    transform: translateY(18px) scale(0.97);
    transition: transform 180ms ease;
}

.modal-backdrop.open .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--gray-200);
    border-radius: 50%;
    background: var(--white);
    color: var(--blue-900);
    font-weight: 950;
    cursor: pointer;
}

.site-footer {
    display: grid;
    place-items: center;
    gap: 16px;
    margin-top: 18px;
    padding: 18px clamp(16px, 4vw, 54px) 24px;
    color: rgba(255, 255, 255, 0.86);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(5, 8, 13, 0.86);
    font-weight: 800;
    font-size: 14px;
    text-align: center;
}

.site-footer span {
    width: auto;
}

.footer-copy,
.powered-by {
    width: 100% !important;
    text-align: center;
}

.powered-by {
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
    text-decoration: none;
}

.footer-follow-title {
    display: grid;
    justify-items: center;
    gap: 6px;
    color: #ffffff;
    font-size: 15px;
}

.footer-follow-title::after {
    content: "";
    width: 72px;
    height: 1px;
    background: rgba(255, 255, 255, 0.18);
}

.footer-legal {
    display: grid;
    justify-items: center;
    gap: 8px;
    width: min(760px, 100%);
    margin-inline: auto;
    padding-bottom: 2px;
    color: rgba(255, 255, 255, 0.76);
}

.footer-legal strong {
    color: #ffffff;
    font-size: 15px;
}

.footer-legal p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    line-height: 1.65;
}

.footer-legal-links {
    display: grid;
    justify-items: center;
    gap: 6px;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.footer-partner {
    display: grid;
    justify-items: center;
    gap: 6px;
    width: min(320px, 100%);
    margin-bottom: 2px;
    margin-inline: auto;
}

.footer-partner a {
    display: grid;
    justify-items: center;
    gap: 7px;
    color: #ffffff;
    text-decoration: none;
}

.footer-partner img {
    width: 86px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.footer-partner strong {
    color: #ffffff;
    font-size: 15px;
    line-height: 1.35;
}

.footer-products,
.footer-company,
.footer-resources {
    display: grid;
    justify-items: center;
    gap: 10px;
    width: min(760px, 100%);
    margin-inline: auto;
    text-align: center;
}

.footer-products strong,
.footer-company strong,
.footer-resources strong {
    color: #ffffff;
    font-size: 15px;
}

.footer-product-links,
.footer-company-links,
.footer-resource-links {
    display: grid;
    justify-items: center;
    gap: 7px;
}

.footer-product-links a,
.footer-company-links a,
.footer-resource-links a,
.footer-resource-links span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.footer-resource-links span {
    cursor: default;
}

.resource-page {
    display: grid;
    gap: 18px;
    max-width: 920px;
    min-height: 62vh;
    padding-top: clamp(36px, 7vw, 76px);
    padding-bottom: clamp(42px, 7vw, 86px);
}

.resource-page h1 {
    max-width: 720px;
    margin: 0;
    color: var(--blue-900);
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.08;
}

.resource-page > p {
    max-width: 760px;
    margin: 0;
    color: var(--gray-700);
    font-size: 17px;
    line-height: 1.75;
}

.resource-panel {
    display: grid;
    gap: 14px;
    padding: clamp(18px, 3vw, 30px);
    border: 1px solid rgba(15, 76, 129, 0.18);
    border-left: 5px solid var(--blue-800);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 44px rgba(7, 55, 99, 0.08);
}

.resource-panel h2 {
    margin: 0;
    color: var(--blue-900);
}

.resource-panel ul {
    margin: 0;
    padding-left: 20px;
    color: var(--gray-700);
    line-height: 1.8;
}

.resource-panel p {
    margin: 0;
    color: var(--gray-700);
    line-height: 1.7;
}

.resource-panel a {
    color: var(--blue-800);
    font-weight: 750;
}

.footer-services {
    display: grid;
    gap: 10px;
    justify-items: center;
    text-align: center;
    margin-top: 4px;
    width: min(280px, 100%);
    margin-inline: auto;
}

.footer-services strong,
.footer-back strong {
    color: #ffffff;
    font-size: 15px;
}

.footer-support-links,
.footer-back {
    display: grid;
    justify-items: center;
    gap: 7px;
    min-width: min(280px, 100%);
    margin-inline: auto;
}

.footer-support-links a,
.footer-back a {
    display: inline;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 850;
    text-decoration: none;
    font-size: 13px;
}

.footer-support-links a:hover,
.footer-support-links a:active,
.footer-back a:hover,
.footer-back a:active {
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    transform: none;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.footer-socials a {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    font-size: 13px;
    font-weight: 950;
    text-decoration: none;
}

.footer-socials .facebook {
    background: #1877f2;
}

.footer-socials .linkedin {
    background: #0a66c2;
}

.footer-socials .instagram {
    background: linear-gradient(135deg, #f58529, #dd2a7b 45%, #8134af 75%, #515bd4);
}

.footer-socials .youtube {
    background: #ff0000;
}

.footer-divider {
    width: min(760px, 100%);
    height: 1px;
    margin: 2px auto 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

@media (min-width: 900px) {
    .site-footer {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: space-between;
        text-align: left;
    }

    .footer-products,
    .footer-legal,
    .footer-partner,
    .footer-company,
    .footer-resources,
    .footer-services,
    .footer-back {
        width: calc((100% - 64px) / 3);
        min-width: 220px;
        margin-inline: 0;
        justify-items: start;
        text-align: left;
    }

    .footer-product-links,
    .footer-legal-links,
    .footer-company-links,
    .footer-resource-links,
    .footer-support-links {
        justify-items: start;
    }

    .footer-socials,
    .footer-follow-title,
    .footer-divider,
    .footer-copy,
    .powered-by {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .footer-divider {
        margin-top: 8px;
    }

    .footer-back {
        width: 100%;
        justify-items: center;
        text-align: center;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    transition: opacity 650ms cubic-bezier(.2,.8,.2,1), transform 650ms cubic-bezier(.2,.8,.2,1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.reveal.visible:nth-child(2) {
    transition-delay: 70ms;
}

.reveal.visible:nth-child(3) {
    transition-delay: 140ms;
}

.reveal.visible:nth-child(4) {
    transition-delay: 210ms;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(47, 158, 234, 0.26);
    }
    50% {
        transform: scale(1.04);
        box-shadow: 0 0 0 16px rgba(47, 158, 234, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        scroll-behavior: auto !important;
        transition: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 1100px) {
    .site-header {
        flex-wrap: nowrap;
        gap: 8px;
        min-height: 64px;
        padding: 10px 10px;
    }

    .brand {
        order: 2;
        min-width: 0;
        font-size: 16px;
    }

    .nav-toggle {
        order: 1;
        display: block;
        margin-left: 0;
        flex: 0 0 auto;
    }

    .site-nav {
        order: 4;
        display: none;
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        width: 100%;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-left: 0;
        padding: 8px 10px;
        background: linear-gradient(135deg, rgba(7, 55, 99, 0.98), rgba(15, 111, 181, 0.96), rgba(32, 130, 95, 0.92));
        scrollbar-width: none;
    }

    .site-nav::-webkit-scrollbar {
        display: none;
    }

    .nav-actions {
        order: 3;
        margin-left: auto;
        gap: 0;
        justify-content: flex-end;
        flex: 0 0 auto;
    }

    .nav-actions .login-button,
    .nav-actions .register-button {
        min-width: 74px;
        min-height: 36px;
        padding: 0 10px;
        font-size: 14px;
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a,
    .dropdown-trigger {
        justify-content: center;
        flex: 0 0 auto;
        min-height: 34px;
        padding: 0 11px;
        font-size: 15px;
    }

    .dropdown-menu {
        position: static;
        display: none;
        min-width: 0;
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
    }

    .nav-dropdown.open .dropdown-menu {
        display: grid;
        position: fixed;
        left: 50%;
        right: auto;
        top: 126px;
        z-index: 10;
        width: min(520px, calc(100vw - 24px));
        max-height: calc(100vh - 146px);
        overflow-y: auto;
        transform: translateX(-50%);
        margin: 0 auto;
    }

    .nav-dropdown.open .dropdown-trigger {
        color: var(--white);
        background: rgba(255, 255, 255, 0.13);
    }

    .hero,
    .split-section,
    .payment-section,
    .contact-section {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 0;
        padding: 24px;
    }

    .hero-trust {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
        width: 100%;
        margin-top: 16px;
    }

    .hero-trust span {
        justify-content: center;
        min-height: 31px;
        padding: 0 6px;
        font-size: clamp(0.78rem, 1.7vw, 0.94rem);
        line-height: 1.12;
        text-align: center;
        white-space: nowrap;
    }

    .stats-grid,
    .platform-steps,
    .home-flow,
    .anatomy-showcase,
    .anatomy-atlas,
    .depth-grid,
    .course-grid,
    .licensing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-specialties {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .stat-card {
        padding: 10px 7px;
        text-align: center;
    }

    .stat-card strong {
        font-size: clamp(22px, 4.2vw, 34px);
    }

    .stat-card span {
        margin-top: 5px;
        font-size: 0.78rem;
        line-height: 1.15;
    }
}

@media (max-width: 760px) {
    .site-header {
        gap: 8px;
        min-height: 62px;
    }

    .brand {
        font-size: 14px;
    }

    .nav-actions {
        width: auto;
        justify-content: flex-end;
        margin-left: auto;
    }

    .login-button,
    .register-button {
        flex: 0 1 auto;
    }

    .payments-hero,
    .payment-workspace,
    .gateway-detail,
    .unlock-list div {
        grid-template-columns: 1fr;
    }

    .payment-gateway-panel {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px;
        border-radius: 18px;
        margin-inline: auto;
        max-width: 100%;
        width: 100%;
    }

    .payments-hero {
        padding-top: 24px;
        gap: 14px;
    }

    .payments-strip {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        width: 100%;
        max-width: 100%;
    }

    .payments-strip::-webkit-scrollbar {
        display: none;
    }

    .payments-strip span {
        flex: 0 0 auto;
        min-height: 31px;
        padding: 0 8px;
        font-size: 0.86rem;
        white-space: nowrap;
    }

    .payments-status {
        padding: 0;
        overflow: hidden;
    }

    .payment-hero-image {
        height: 210px;
        border-radius: 18px;
    }

    .gateway-selector {
        padding: 0;
    }

    .gateway-selector h2 {
        font-size: 1.45rem;
        line-height: 1.12;
    }

    .gateway-selector p {
        font-size: 0.92rem;
        line-height: 1.4;
    }

    .gateway-select-label {
        font-size: 0.78rem;
    }

    .gateway-selector select {
        width: 100%;
        min-height: 40px;
        font-size: 0.88rem;
    }

    .gateway-visual {
        min-height: 170px;
        padding: 12px;
        gap: 8px;
    }

    .gateway-visual img {
        width: min(100%, 220px);
        height: 96px;
        max-width: 100%;
        border-radius: 16px;
        box-shadow: 0 10px 22px rgba(11, 31, 58, 0.16);
    }

    .gateway-visual strong {
        font-size: 1.08rem;
    }

    .gateway-content {
        padding: 0;
    }

    .gateway-content h2,
    .payment-flow h2,
    .unlock-list h2 {
        font-size: 1.35rem;
        line-height: 1.15;
    }

    .gateway-content p,
    .gateway-content li,
    .flow-steps p {
        font-size: 0.88rem;
    }

    .gateway-content ol {
        gap: 8px;
        margin-top: 12px;
        padding-left: 18px;
    }

    .payment-flow,
    .unlock-list {
        padding: 16px;
    }

    .flow-steps {
        gap: 10px;
        animation-duration: 24s;
    }

    .flow-steps article {
        flex-basis: min(215px, 72vw);
        padding-right: 10px;
    }

    .unlock-list span {
        padding: 10px 11px;
        font-size: 0.9rem;
    }

    .hero {
        padding-top: 28px;
    }

    .hero-panel,
    .hero-panel img {
        min-height: 260px;
    }

    .pass-card,
    .live-card {
        left: 14px;
        right: 14px;
        width: auto;
        max-width: none;
    }

    .live-card {
        top: 14px;
    }

    .pass-card {
        bottom: 14px;
    }

    .stats-grid,
    .platform-steps,
    .home-flow,
    .anatomy-showcase,
    .feature-grid,
    .learning-image-grid,
    .anatomy-atlas,
    .depth-grid,
    .specialty-list,
    .course-grid,
    .licensing-grid,
    .dashboard-grid,
    .testimonial-grid,
    .support-grid,
    .dropdown-menu {
        grid-template-columns: 1fr;
    }

    .stats-grid.section-shell {
        width: calc(100% - 18px);
    }

    .stats-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 7px;
    }

    .stat-card {
        min-width: 0;
        padding: 9px 5px;
        text-align: center;
    }

    .stat-card strong {
        font-size: clamp(19px, 5.6vw, 30px);
    }

    .stat-card span {
        margin-top: 5px;
        font-size: clamp(0.64rem, 2vw, 0.82rem);
        line-height: 1.12;
        overflow-wrap: anywhere;
    }

    .mission-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .mission-row > span {
        width: max-content;
        padding: 0 12px;
    }

    .flow-timeline::before {
        left: 23px;
    }

    .flow-item {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .flow-item > span {
        width: 48px;
        height: 48px;
        font-size: 13px;
    }

    .unlock-note {
        align-items: flex-start;
        flex-direction: column;
    }

    .newsletter-row {
        grid-template-columns: 1fr;
    }

    .contact-frames,
    .consult-frame,
    .consult-form {
        grid-template-columns: 1fr;
    }

    .site-footer {
        padding-bottom: 86px;
    }
}

@media (max-width: 430px) {
    .payments-page .section-shell {
        width: calc(100% - 22px);
        max-width: calc(100% - 22px);
    }

    .site-header {
        gap: 6px;
        padding-inline: 8px;
    }

    .brand {
        font-size: 13px;
        gap: 6px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
    }

    .login-button,
    .register-button {
        min-height: 31px;
        padding: 0 9px;
        font-size: 12px;
    }

    .payments-copy h1 {
        font-size: 1.95rem;
    }

    .payments-copy p {
        font-size: 0.95rem;
    }

    .hero-trust {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
        width: 100%;
        margin-top: 14px;
    }

    .hero-trust span {
        justify-content: center;
        min-height: 30px;
        padding: 0 2px;
        font-size: clamp(0.72rem, 2.7vw, 0.86rem);
        line-height: 1.08;
        font-weight: 950;
        text-align: center;
        white-space: nowrap;
    }

    .stats-grid.section-shell {
        width: calc(100% - 16px);
    }

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

    .stat-card {
        padding: 9px 3px;
        min-width: 0;
    }

    .stat-card strong {
        font-size: clamp(20px, 7.4vw, 28px);
        font-weight: 950;
    }

    .stat-card span {
        font-size: 0.72rem;
        line-height: 1.12;
        font-weight: 900;
        color: var(--blue-900);
        overflow-wrap: anywhere;
    }

    .payments-strip {
        gap: 6px;
        display: flex;
        flex-wrap: nowrap;
        overflow: visible;
    }

    .payments-strip span {
        flex: 1 1 0;
        min-height: 26px;
        justify-content: center;
        padding: 0 3px;
        font-size: 0.68rem;
        line-height: 1.15;
        text-align: center;
        white-space: nowrap;
    }

    .gateway-selector {
        gap: 7px;
        padding: 0;
    }

    .gateway-selector h2 {
        font-size: 1.18rem;
    }

    .gateway-selector p {
        font-size: 0.82rem;
        line-height: 1.32;
    }

    .gateway-select-label {
        display: none;
    }

    .gateway-selector select {
        min-height: 36px;
        font-size: 0.82rem;
        border-radius: 12px;
    }

    .gateway-detail {
        display: flex;
        flex-direction: column;
        grid-template-columns: 1fr;
        gap: 12px;
        border-radius: 0;
        overflow: hidden;
        width: 100%;
        max-width: 100%;
    }

    .gateway-visual {
        order: 0;
        display: grid;
        min-height: 154px;
        padding: 12px 14px;
        gap: 8px;
        visibility: visible;
        opacity: 1;
    }

    .gateway-visual img {
        width: min(100%, 232px);
        height: auto;
        min-height: 96px;
        max-height: 126px;
        aspect-ratio: 640 / 420;
        object-fit: contain;
        display: block;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.24);
    }

    .gateway-visual strong {
        display: block;
        color: #ffffff;
        font-size: 1.2rem;
    }

    .gateway-content {
        order: 1;
        display: grid;
        gap: 8px;
        padding: 0;
        text-align: left;
        min-width: 0;
    }

    .gateway-content h2,
    .payment-flow h2,
    .unlock-list h2 {
        margin: 0;
        font-size: 1.02rem;
        line-height: 1.18;
    }

    .gateway-content .eyebrow {
        width: fit-content;
        max-width: 100%;
        font-size: 0.68rem;
    }

    .gateway-content p,
    .gateway-content li {
        font-size: 0.84rem;
        line-height: 1.48;
        overflow-wrap: anywhere;
    }

    .gateway-content ol {
        gap: 8px;
        margin-top: 2px;
        padding-left: 18px;
        list-style-position: outside;
    }

    .payment-hero-image {
        height: 190px;
        width: 100%;
    }

    .flow-steps article {
        flex-basis: min(190px, 76vw);
    }
}

@media (max-width: 360px) {
    .payment-gateway-panel {
        max-width: 100%;
        padding: 12px;
    }

    .gateway-visual {
        min-height: 144px;
        padding: 12px 12px;
    }

    .gateway-visual img {
        width: min(100%, 220px);
        min-height: 90px;
        border-radius: 14px;
    }

    .gateway-visual strong {
        font-size: 1.05rem;
    }

    .gateway-content {
        padding: 0;
        gap: 8px;
    }

    .gateway-content h2,
    .payment-flow h2,
    .unlock-list h2 {
        font-size: 0.98rem;
    }

    .gateway-content p,
    .gateway-content li {
        font-size: 0.8rem;
        line-height: 1.45;
    }
}
