/* =====================================================
   UrBizEdge AI Data Analysis Bootcamp 6.0
   Landing Page Styles
   ===================================================== */

/* CSS Custom Properties */
:root {
    /* Colors - UrBizEdge Branding */
    --color-primary: #A8518A;
    --color-primary-light: #c270a6;
    --color-primary-dark: #8a3d70;
    --color-secondary: #71BB5C;
    --color-secondary-light: #8fcc7d;

    /* Deep aubergine used behind the hero and on green buttons */
    --color-ink: #1a1520;

    /* Neutrals */
    --color-bg: #f7fafc;
    --color-bg-alt: #edf2f7;
    --color-surface: #ffffff;
    --color-text: #1a202c;
    --color-text-secondary: #4a5568;
    --color-text-muted: #718096;
    --color-border: #e2e8f0;

    /* Link and outline-button colour; lightened in dark mode where the
       base magenta drops below AA on a dark surface. */
    --color-link: #A8518A;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Type scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 0.9375rem;
    --text-md: 1rem;
    --text-lg: 1.125rem;

    /* Header height, shared by the sticky header and the mobile drawer */
    --header-height: 4rem;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;

    /* Container */
    --container-max: 1200px;
    --container-padding: 1.5rem;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile Hero Styles */
@media (max-width: 639px) {
    .hero {
        padding: var(--space-2xl) 0 var(--space-xl);
        background-position: right center;
    }

    .hero-bg-overlay {
        background: linear-gradient(135deg, rgba(26, 21, 32, 0.8) 0%, rgba(26, 21, 32, 0.6) 100%);
    }

    .hero-badge {
        margin-bottom: var(--space-sm);
    }

    .hero-title-top {
        font-size: 0.75rem;
        margin-bottom: 2px;
    }

    .hero-title-main {
        font-size: clamp(2.5rem, 12vw, 3.5rem);
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 0.9375rem;
        margin-bottom: var(--space-lg);
    }

    .hero-meta {
        gap: var(--space-md);
    }

    .hero-meta-item {
        font-size: 0.875rem;
    }

    .hero-cta-group {
        gap: var(--space-sm);
        margin-bottom: var(--space-lg);
    }

    .hero-pricing-callout {
        padding: var(--space-sm) var(--space-lg);
    }

    .hero-pricing-price {
        font-size: 1.5rem;
    }
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Visually hidden, but still announced by screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    /* Dark ink on the brand green: white would be ~2:1 and fail AA */
    background: var(--color-secondary);
    color: var(--color-ink);
    font-weight: 700;
    padding: var(--space-sm) var(--space-md);
    z-index: 9999;
    text-decoration: none;
    border-radius: 0 0 var(--radius-md) 0;
}

.skip-link:focus {
    top: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
    margin-bottom: var(--space-md);
}

a {
    color: var(--color-link);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-light);
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Section */
.section {
    padding: var(--space-4xl) 0;
}

/* Banding is opt-in per section. It used to be :nth-child(even), which
   meant inserting or removing any section inverted the whole page. */
.section--alt {
    background-color: var(--color-bg-alt);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

/* A green ring on a green button is invisible, so pair a dark ring with a
   light halo - one of the two always contrasts with whatever is behind it. */
.btn:focus-visible {
    outline: 2px solid var(--color-ink);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-ink);
    font-weight: 700;
}

.btn-primary:hover {
    background-color: var(--color-secondary-light);
    color: var(--color-ink);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px color-mix(in srgb, var(--color-secondary) 40%, transparent);
}

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

/* For dark surfaces only - the hero and the gradient CTA box. */
.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.6);
}

/* The same outline treatment for light surfaces: cards and the pricing
   table. Using .btn-secondary there renders white on white. */
.btn-outline {
    background-color: transparent;
    color: var(--color-link);
    border: 2px solid var(--color-link);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* Icon */
.icon {
    width: 1.25em;
    height: 1.25em;
    flex-shrink: 0;
}

/* =====================================================
   Header
   ===================================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid color-mix(in srgb, var(--color-primary) 10%, transparent);
    transition: box-shadow var(--transition-base);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
}

.logo-img {
    height: 1.75rem;
    width: auto;
}

.footer-logo-img {
    filter: brightness(0) invert(1);
}

/* Desktop Nav */
.nav-desktop {
    display: none;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    list-style: none;
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-secondary);
}

.header-cta {
    display: none;
}

/* Mobile Toggle */
.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger {
    position: relative;
    width: 1.25rem;
    height: 2px;
    background-color: var(--color-text);
    border-radius: 1px;
    transition: background-color var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    border-radius: 1px;
    transition: transform var(--transition-base);
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    bottom: -6px;
}

.nav-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Nav */
.nav-mobile {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-surface);
    padding: var(--space-xl);
    overflow-y: auto;
    z-index: 99;
}

.nav-mobile[hidden] {
    display: none;
}

.nav-mobile-list {
    list-style: none;
    margin-bottom: var(--space-xl);
}

.nav-mobile-link {
    display: block;
    padding: var(--space-md) 0;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 1px solid var(--color-border);
}

.nav-mobile-cta {
    padding-top: var(--space-lg);
}

/* =====================================================
   Hero Section
   ===================================================== */
.hero {
    position: relative;
    padding: var(--space-3xl) 0 var(--space-2xl);
    background: var(--color-ink) url('Images/hero-background.svg') center/cover no-repeat;
    color: white;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 25% 25%, color-mix(in srgb, var(--color-primary) 8%, transparent) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, color-mix(in srgb, var(--color-secondary) 6%, transparent) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 21, 32, 0.7) 0%, rgba(26, 21, 32, 0.5) 50%, rgba(26, 21, 32, 0.65) 100%);
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: color-mix(in srgb, var(--color-secondary) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-secondary) 30%, transparent);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--color-secondary-light);
    letter-spacing: 0.02em;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-secondary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-title {
    margin-bottom: var(--space-md);
    font-weight: 800;
    line-height: 1.05;
}

.hero-title-top {
    display: block;
    font-size: clamp(0.875rem, 1.5vw, 1.125rem);
    font-weight: 600;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
}

.hero-title-main {
    display: block;
    font-size: clamp(3rem, 9vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    position: relative;
    line-height: 1;
}

.bootcamp-text {
    display: block;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.version-text {
    display: inline;
    color: var(--color-secondary);
    text-shadow: 0 0 30px color-mix(in srgb, var(--color-secondary) 40%, transparent);
    font-weight: 800;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.625rem);
    font-weight: 600;
    color: #ffffff;
    margin-bottom: var(--space-md);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.hero-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 580px;
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.hero-meta-item .icon {
    width: 1.25em;
    height: 1.25em;
    stroke: var(--color-secondary);
    flex-shrink: 0;
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.hero-pricing-callout {
    display: inline-block;
    padding: var(--space-md) var(--space-xl);
    background: color-mix(in srgb, var(--color-primary) 30%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-primary) 40%, transparent);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(8px);
}

.hero-pricing-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-xs);
}

.hero-pricing-price {
    font-size: clamp(1.375rem, 4vw, 1.75rem);
    font-weight: 800;
    color: var(--color-secondary);
}

.hero-pricing-regular {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
}

/* =====================================================
   Section Headers
   ===================================================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.section-title {
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
}

/* =====================================================
   Why Section
   ===================================================== */
.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.why-card {
    padding: var(--space-xl);
    background-color: var(--color-surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.why-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.why-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: color-mix(in srgb, var(--color-primary) 10%, transparent);
    color: var(--color-primary);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}

.why-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.why-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.why-text {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

/* =====================================================
   Audience Section
   ===================================================== */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.audience-card {
    padding: var(--space-lg);
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    text-align: center;
}

.audience-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    background-color: color-mix(in srgb, var(--color-secondary) 15%, transparent);
    color: var(--color-secondary);
    border-radius: var(--radius-full);
}

.audience-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.audience-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.audience-text {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

/* =====================================================
   Curriculum Section
   ===================================================== */
.curriculum-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-2xl);
    font-size: 1.0625rem;
    color: var(--color-text-secondary);
}

.curriculum-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.curriculum-card {
    position: relative;
    background-color: var(--color-surface);
    border-radius: var(--radius-xl);
    border: 2px solid var(--color-border);
    overflow: hidden;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.curriculum-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.curriculum-header {
    padding: var(--space-xl);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
}

.curriculum-module {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
    margin-bottom: var(--space-xs);
}

.curriculum-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: var(--space-xs);
}

.curriculum-dates {
    font-size: 0.875rem;
    opacity: 0.9;
}

.curriculum-body {
    padding: var(--space-xl);
}

.curriculum-description {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
}

.curriculum-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0;
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.curriculum-toggle:hover {
    color: var(--color-secondary);
}

.curriculum-toggle .icon {
    transition: transform var(--transition-base);
}

.curriculum-toggle[aria-expanded="true"] .icon {
    transform: rotate(180deg);
}

.curriculum-topics {
    list-style: none;
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.curriculum-topics[hidden] {
    display: none;
}

.curriculum-topics li {
    position: relative;
    padding-left: var(--space-xl);
    margin-bottom: var(--space-sm);
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
}

.curriculum-topics li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    background-color: var(--color-secondary);
    border-radius: 50%;
}

.curriculum-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: var(--space-xs) var(--space-sm);
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.curriculum-cta {
    text-align: center;
    margin-top: var(--space-2xl);
}

/* =====================================================
   Timeline Section
   ===================================================== */
.timeline {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.timeline-track {
    position: relative;
    padding-left: 2rem;
}

.timeline-track::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-secondary), var(--color-primary));
}

.timeline-item {
    position: relative;
    padding-bottom: var(--space-2xl);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0;
    transform: translateX(-50%);
}

.timeline-dot {
    width: 1rem;
    height: 1rem;
    background-color: var(--color-secondary);
    border: 3px solid var(--color-surface);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.timeline-content {
    padding-left: var(--space-lg);
}

.timeline-date {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: var(--space-xs);
}

.timeline-module {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.timeline-duration {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.timeline-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    margin-top: var(--space-3xl);
    padding: var(--space-xl);
    background-color: var(--color-surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
}

.timeline-summary-item {
    text-align: center;
}

.timeline-summary-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}

.timeline-summary-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text);
}

.timeline-summary-divider {
    width: 1px;
    height: 2rem;
    background-color: var(--color-border);
}

/* =====================================================
   Tracks Section
   ===================================================== */
.tracks-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    max-width: 900px;
    margin: 0 auto;
}

/* Three options side by side once there is room; they stack below that. */
.tracks-grid-3 {
    max-width: 1100px;
    margin-bottom: var(--space-3xl);
}

@media (min-width: 1024px) {
    .tracks-grid-3 {
        grid-template-columns: repeat(3, 1fr);
        align-items: start;
    }
}

.track-card {
    position: relative;
    background-color: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    border: 2px solid var(--color-border);
}

.track-free {
    border-color: var(--color-text-muted);
}

.track-certificate {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.track-popular {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: var(--space-xs) var(--space-md);
    background-color: var(--color-secondary);
    color: var(--color-primary-dark);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
}

.track-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.track-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background-color: var(--color-bg-alt);
    color: var(--color-text-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-sm);
}

.track-badge-certificate {
    background-color: var(--color-secondary);
    color: var(--color-primary-dark);
}

.track-title {
    font-size: 1.5rem;
    font-weight: 800;
}

.track-price {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.track-price-amount {
    display: block;
    font-size: clamp(1.875rem, 4.5vw, 2.5rem);
    font-weight: 800;
    color: var(--color-text);
}

.track-price-earlybird {
    color: var(--color-secondary);
}

.track-price-regular {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

.track-description {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: var(--space-xl);
}

.track-features {
    list-style: none;
    margin-bottom: var(--space-xl);
}

.track-feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    font-size: 0.9375rem;
}

.track-featureincluded {
    color: var(--color-text);
}

.track-featureexcluded {
    color: var(--color-text-muted);
}

.icon-check {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-secondary);
    flex-shrink: 0;
}

.icon-x {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.track-cta {
    margin-top: auto;
}

/* =====================================================
   Pricing Section
   ===================================================== */
.pricing-urgency {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background-color: var(--color-secondary);
    color: var(--color-ink);
    font-weight: 600;
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-note {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-top: var(--space-md);
    margin-bottom: 0;
}

/* Pricing Table */
.pricing-comparison {
    max-width: 700px;
    margin: 0 auto;
}

.pricing-comparison-title {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-xl);
}

.pricing-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.pricing-table th,
.pricing-table td {
    padding: var(--space-md) var(--space-lg);
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

/* Column headers only. Row headers (the feature names) are <th scope="row">
   and must stay looking like ordinary body cells. */
.pricing-table thead th {
    background-color: var(--color-primary);
    color: white;
    font-weight: 600;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-table tbody th {
    font-weight: 600;
    color: var(--color-text);
}

.pricing-table-price-row td,
.pricing-table-price-row th {
    font-size: var(--text-lg);
    background-color: var(--color-bg-alt);
}

.pricing-table tfoot td {
    padding: var(--space-lg);
    border-bottom: none;
}

.btn-table {
    width: 100%;
    padding: 0.6rem 1rem;
    font-size: var(--text-sm);
}

.pricing-table th:not(:first-child),
.pricing-table td:not(:first-child) {
    text-align: center;
}

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

.pricing-table tr:hover {
    background-color: var(--color-bg-alt);
}

.check-mark {
    color: var(--color-secondary);
    font-weight: 700;
    font-size: 1.125rem;
}

.not-included {
    color: var(--color-text-muted);
}

/* =====================================================
   Outcomes Section
   ===================================================== */
.outcomes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.outcome-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.outcome-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: color-mix(in srgb, var(--color-secondary) 15%, transparent);
    color: var(--color-secondary);
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.outcome-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.outcome-text {
    font-size: 1rem;
    color: var(--color-text);
    margin: 0;
    padding-top: var(--space-xs);
}

/* =====================================================
   How It Works Section
   ===================================================== */
.how-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    max-width: 900px;
    margin: 0 auto;
}

.how-step {
    position: relative;
    padding: var(--space-xl);
    background-color: var(--color-surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    text-align: center;
}

.how-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--color-secondary);
    color: var(--color-ink);
    font-size: 1.25rem;
    font-weight: 800;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
}

.how-step-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.how-step-text {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

/* The connector is drawn by the step itself. It used to be a sibling
   <div> with position:absolute and no positioned ancestor, so it landed
   against the page edge instead of between the steps - and pushed 12px
   of horizontal scroll onto every desktop viewport. */
.how-step::after {
    content: none;
}

/* =====================================================
   Testimonials Section
   ===================================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.testimonial-card {
    background-color: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.testimonial-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-quote {
    position: relative;
    flex: 1;
    margin-bottom: var(--space-lg);
}

.quote-icon {
    width: 2rem;
    height: 2rem;
    color: var(--color-secondary);
    opacity: 0.3;
    margin-bottom: var(--space-sm);
}

.testimonial-quote p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    font-style: italic;
    margin-bottom: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.testimonial-avatar {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: var(--radius-full);
}

.testimonial-info {
    display: flex;
    flex-direction: column;
}

.testimonial-name {
    font-weight: 700;
    font-style: normal;
}

.testimonial-role {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* Gallery */
.gallery-section {
    padding-top: var(--space-3xl);
    border-top: 1px solid var(--color-border);
}

.gallery-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.gallery-subtitle {
    text-align: center;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2xl);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--radius-lg);
    aspect-ratio: 4 / 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-placeholder {
    aspect-ratio: 4 / 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg-alt);
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    color: var(--color-text-muted);
}

.gallery-placeholder-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: var(--space-sm);
}

.gallery-placeholder-icon svg {
    width: 100%;
    height: 100%;
}

.gallery-placeholder p {
    font-size: 0.875rem;
    margin-bottom: 0;
}

.gallery-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* =====================================================
   FAQ Section
   ===================================================== */
.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

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

/* Each question is wrapped in an h3 so screen-reader users can jump
   between FAQs by heading. The wrapper is purely semantic - the button
   inside keeps all the styling. */
.faq-question-heading {
    margin: 0;
    font: inherit;
    color: inherit;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--space-lg) 0;
    background: none;
    border: none;
    text-align: left;
    font-family: inherit;
    font-size: var(--text-md);
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--color-secondary);
}

.faq-question[aria-expanded="true"] {
    color: var(--color-secondary);
}

.faq-icon {
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding-bottom: var(--space-lg);
}

.faq-answer[hidden] {
    display: none;
}

.faq-answer p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

/* =====================================================
   About Section
   ===================================================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    max-width: 900px;
    margin: 0 auto;
}

.about-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: var(--space-lg);
}

.about-description {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

.about-description:last-child {
    margin-bottom: 0;
}

.about-services-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.about-services-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.about-services-list li {
    padding: var(--space-xs) var(--space-md);
    background-color: var(--color-bg-alt);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-full);
}

/* =====================================================
   Final CTA Section
   ===================================================== */
.cta-box {
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
    /* Both ends are darkened so the white text clears AA across the whole
       sweep. The raw brand green gives white only ~2.4:1. */
    background: linear-gradient(135deg,
        var(--color-primary-dark) 0%,
        color-mix(in srgb, var(--color-secondary) 60%, var(--color-ink)) 100%);
    color: white;
    border-radius: var(--radius-2xl);
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    color: white;
    margin-bottom: var(--space-md);
}

.cta-text {
    font-size: 1.0625rem;
    opacity: 0.9;
    margin-bottom: var(--space-2xl);
}

.cta-pricing {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.cta-price-item {
    text-align: center;
}

.cta-price-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
    margin-bottom: var(--space-xs);
}

.cta-price-amount {
    display: block;
    font-size: clamp(1.625rem, 4vw, 2rem);
    font-weight: 800;
}

.cta-price-date {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
}

.cta-price-divider {
    width: 1px;
    height: 3rem;
    background-color: rgba(255, 255, 255, 0.3);
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* =====================================================
   Footer
   ===================================================== */
.footer {
    background-color: var(--color-primary);
    color: white;
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    margin-bottom: var(--space-md);
}

.footer-logo .logo-img {
    height: 2rem;
    width: auto;
}

.footer-tagline {
    font-size: 0.9375rem;
    opacity: 0.8;
    margin-bottom: 0;
}

.footer-heading {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-lg);
    color: white;
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: var(--space-sm);
}

.footer-list a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-list a:hover {
    color: var(--color-secondary);
}

.footer-cta .btn {
    margin-top: var(--space-sm);
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    font-size: 0.875rem;
    opacity: 0.7;
    margin-bottom: 0;
}

/* =====================================================
   Responsive Styles
   ===================================================== */

/* Small tablets */
@media (min-width: 640px) {
    .container {
        padding: 0 var(--space-xl);
    }

    .hero-cta-group {
        flex-direction: row;
    }

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

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

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

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

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

    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        align-items: start;
    }
}

/* Tablets and small laptops */
@media (min-width: 768px) {
    .how-steps {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-md);
    }
    .about-content {
        grid-template-columns: 1.5fr 1fr;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    /* The desktop nav and the hamburger swap at the same breakpoint, so
       there is never a width with neither. */
    .nav-desktop {
        display: block;
    }

    .header-cta {
        display: inline-flex;
    }

    .nav-toggle {
        display: none;
    }

    .nav-mobile {
        display: none !important;
    }

    .hero {
        padding: var(--space-3xl) 0;
    }

    .hero-cta-group {
        flex-direction: row;
    }

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

    .audience-grid {
        grid-template-columns: repeat(6, 1fr);
    }

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

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

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

    .how-steps {
        grid-template-columns: repeat(4, 1fr);
    }

    .how-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 50%;
        right: -0.75rem;
        transform: translateY(-50%);
        width: 1.5rem;
        height: 2px;
        background-color: var(--color-border);
    }

    .how-step {
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
}

/* Large desktops */
@media (min-width: 1280px) {
    :root {
        --container-padding: 2rem;
    }

    .section {
        padding: var(--space-4xl) 0;
    }
}

/* =====================================================
   Accessibility Enhancements
   ===================================================== */

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

/* High contrast mode adjustments */
@media (prefers-contrast: high) {
    :root {
        --color-border: #000;
    }

    .btn-primary {
        border: 2px solid white;
    }

    .curriculum-card,
    .track-card,
    .pricing-card {
        border-width: 3px;
    }
}

/* Print styles */
@media print {
    .header,
    .nav-toggle,
    .cta-buttons,
    .footer {
        display: none;
    }

    .hero {
        background: white;
        color: black;
        padding: var(--space-xl) 0;
    }

    .hero-title,
    .hero-subtitle {
        color: black;
    }

    .section {
        padding: var(--space-xl) 0;
    }
}

/* =====================================================
   Early Bird Countdown
   ===================================================== */
.countdown {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.countdown-label {
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-secondary);
}

.countdown-units {
    display: flex;
    gap: var(--space-sm);
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 3.75rem;
    padding: var(--space-sm) var(--space-md);
    background-color: color-mix(in srgb, #ffffff 10%, transparent);
    border: 1px solid color-mix(in srgb, #ffffff 18%, transparent);
    border-radius: var(--radius-md);
}

.countdown-value {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
}

.countdown-unit-label {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: color-mix(in srgb, #ffffff 70%, transparent);
}

/* =====================================================
   404 Page
   ===================================================== */
.error-page {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: var(--space-3xl) 0;
    background-color: var(--color-ink);
    color: #ffffff;
    text-align: center;
}

.error-page-inner {
    max-width: 640px;
}

.error-logo {
    display: inline-block;
    margin-bottom: var(--space-2xl);
}

.error-code {
    font-size: clamp(3.5rem, 12vw, 6rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: var(--space-sm);
    color: var(--color-secondary);
}

.error-title {
    color: #ffffff;
    margin-bottom: var(--space-md);
}

.error-text {
    color: color-mix(in srgb, #ffffff 75%, transparent);
    margin-bottom: var(--space-2xl);
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
}

/* The sprite only holds <symbol> defs; it must stay in the layout tree
   (not display:none) for <use> references to resolve reliably. */
.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}


/* =====================================================
   Dark mode
   =====================================================
   Every surface is already a token, so only the neutrals flip. All the
   white text on the page sits on brand colours or the dark hero, so it
   stays correct in both themes. */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;

        --color-bg: #12161c;
        --color-bg-alt: #171d25;
        --color-surface: #1c2430;
        --color-text: #f7fafc;
        --color-text-secondary: #cbd5e0;
        --color-text-muted: #a0aec0;
        --color-border: #2d3748;

        /* #A8518A on a dark surface is ~3.2:1; the lighter tint clears AA */
        --color-link: #c270a6;
    }

    /* The light halo on the focus ring is for light surfaces */
    .btn:focus-visible {
        outline-color: #ffffff;
        box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.6);
    }

    .header {
        background-color: color-mix(in srgb, var(--color-bg) 92%, transparent);
        border-bottom: 1px solid var(--color-border);
    }
}
