/* Personal Hedge Fund — dark page with dotted backdrop */

html.phf-standalone {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

/* ── Main page scrollbar — purple + yellow, on theme (personal hedge fund only) ── */
/* Viewport scrollbar is painted from the root element, so scope to html.phf-standalone */
html.phf-standalone {
    scrollbar-width: thin;
    scrollbar-color: #FFCB05 rgba(255, 203, 5, 0.16);
}

html.phf-standalone::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

html.phf-standalone::-webkit-scrollbar-track {
    background: rgba(255, 203, 5, 0.14);
    border-radius: 6px;
}

html.phf-standalone::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FFCB05 0%, #e6b800 100%);
    border-radius: 6px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

html.phf-standalone::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ffd633 0%, #f5c400 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
}

/* Scroll fade-in for page sections */
.phf-scroll-fade {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

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

@media (prefers-reduced-motion: reduce) {
    .phf-scroll-fade {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

body.phf-page {
    color-scheme: dark;
    margin: 0;
    min-height: 100vh;
    background-color: #14182a;
    color: #e8e8f0;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    /* home_external.css sets flex + mobile padding-top for the home navbar */
    display: block;
    padding-top: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.phf-page a:not(.phf-public-nav-apply):not(.phf-mobile-nav-apply):not(.phf-nav-cta):not(.phf-hero-cta):not(.phf-nav-admin):not(.phf-public-nav-admin):not(.phf-apply-admin):not(.phf-enroll-btn) {
    color: inherit;
}

.phf-nav {
    z-index: 1000;
    background: rgba(0, 40, 100, 0.72);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
}

/* Logged-out public nav — fixed so it follows on scroll */
body.phf-page:not(.phf-page--app-nav) {
    --phf-public-nav-offset: 94px;
    padding-top: var(--phf-public-nav-offset) !important;
    scroll-padding-top: var(--phf-public-nav-offset);
}

body.phf-page:not(.phf-page--app-nav) .phf-public-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

body.phf-page:not(.phf-page--app-nav) .phf-content [id] {
    scroll-margin-top: calc(var(--phf-public-nav-offset) + 12px);
}

.phf-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.4rem 2rem;
}

.phf-public-nav-actions {
    display: none;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.phf-public-nav-apply {
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    background: #ffffff;
    color: #002855;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    animation: phfNavApplyPulse 2s infinite;
}

a.phf-public-nav-apply,
a.phf-public-nav-apply:hover {
    color: #002855;
    background: #ffffff;
}

.phf-public-nav-apply:hover {
    color: #002855;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.phf-public-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.phf-public-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.phf-public-nav-menu {
    display: none;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.phf-public-nav-menu.is-expanded {
    max-height: 520px;
}

.phf-public-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 1rem 1rem;
}

.phf-public-nav-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.phf-public-nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFCB05;
}

.phf-public-nav-links a i {
    width: 1.25rem;
    text-align: center;
    font-size: 1rem;
}

.phf-public-nav-admin {
    color: #FFCB05 !important;
}

.phf-public-nav-admin:hover {
    color: #ffe566 !important;
}

.phf-nav-logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.phf-nav-logo img {
    display: block;
    height: 70px;
    width: auto;
    margin-top: 5px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
    transition: filter 0.3s ease;
}

.phf-nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.6rem;
    list-style: none;
    margin: 0;
    padding: 0;
    margin-top: 5px;
}

.phf-nav-links a {
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    transition: background 0.25s ease, color 0.25s ease;
    white-space: nowrap;
}

.phf-nav-links a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
}

.phf-nav-links a.phf-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.35rem;
    border-radius: 999px;
    background: #ffffff !important;
    color: #002855 !important;
    border: none;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: phfNavApplyPulse 2s infinite;
}

.phf-nav-links a.phf-nav-cta:hover {
    background: #ffffff !important;
    color: #002855 !important;
    transform: translateY(-2px);
}

.phf-nav-admin {
    font-size: 0.95rem !important;
    color: #FFCB05 !important;
}

.phf-nav-admin:hover {
    color: #ffe566 !important;
}

/* Never show app sidebar on the public marketing view */
.phf-page:not(.phf-page--app-nav) .sidebar,
.phf-page:not(.phf-page--app-nav) .desktop-container {
    display: none !important;
}

/* App sidebar layout (logged-in members) */
.phf-page--app-nav .mobile-container {
    display: none;
    background-color: #14182a;
}

.phf-page--app-nav .phf-mobile-nav-shell {
    flex-direction: column;
}

.phf-page--app-nav .desktop-container.phf-app-shell {
    display: block;
    height: auto;
    min-height: 100vh;
    background-color: #14182a;
}

.phf-page--app-nav .main-content.phf-main-content {
    background-color: transparent;
    padding: 1.5rem 2.5rem 2.5rem;
    min-height: 100vh;
    box-sizing: border-box;
}

.phf-page--app-nav .phf-wrap {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

.phf-page:not(.phf-page--app-nav) .phf-wrap {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0 2.5rem 4rem;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    html.phf-standalone {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        height: auto !important;
    }

    body.phf-page {
        padding-top: 0 !important;
        display: block !important;
        background-color: #14182a !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        height: auto !important;
        min-height: 100dvh;
        -webkit-overflow-scrolling: touch;
    }

    body.phf-page:not(.phf-page--app-nav) {
        --phf-public-nav-offset: calc(50px + 1.7rem);
        padding-top: var(--phf-public-nav-offset) !important;
    }

    .phf-nav-links--desktop {
        display: none !important;
    }

    .phf-public-nav-actions {
        display: flex;
    }

    .phf-public-nav-apply,
    .phf-mobile-nav-apply {
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .phf-public-nav-menu {
        display: block;
    }

  /* Nav is position:fixed — don't reserve a full viewport in document flow */
    .phf-page--app-nav .mobile-container {
        display: block;
        min-height: 0 !important;
        height: 0;
        overflow: visible;
        background: transparent !important;
    }

    .phf-page--app-nav .desktop-container.phf-app-shell {
        height: auto;
        min-height: 0;
    }

    .phf-page--app-nav .phf-app-shell .sidebar {
        display: none;
    }

    .phf-page--app-nav .phf-app-shell .main-content.phf-main-content {
        margin-left: 0 !important;
        width: 100% !important;
        margin-top: 64px;
        min-height: 0;
        padding: 0 1rem 3rem !important;
    }

    .phf-page:not(.phf-page--app-nav) .phf-wrap {
        padding: 0 1rem 2.5rem;
    }

    body.phf-page:not(.phf-page--app-nav) .phf-hero-top,
    body.phf-page:not(.phf-page--app-nav) .phf-content > section.phf-hero-top {
        margin-top: 0.35rem;
    }

    .phf-hero-top {
        padding: 1.5rem 1.1rem 1.75rem;
        border-radius: 16px;
    }

    .phf-hero-top h1 {
        font-size: 1.65rem;
        gap: 0.5rem;
        flex-wrap: nowrap;
    }

    .phf-hero-top-lead {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .phf-hero-cta {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        font-size: 0.88rem;
        padding: 0.7rem 1.15rem;
        box-sizing: border-box;
    }

    .phf-hero-top .phf-hero-cta,
    .phf-value-cta-wrap .phf-hero-cta {
        font-size: 1.05rem;
        padding: 1rem 1.75rem;
    }

    .phf-hero-video-caption {
        font-size: 0.82rem;
    }

    .phf-panel {
        padding: 1.35rem 1.1rem 1.5rem;
        margin-bottom: 1.25rem;
        border-radius: 16px;
    }

    .phf-panel-header {
        margin-bottom: 1.25rem;
    }

    .phf-panel-header h2 {
        font-size: 1.3rem;
    }

    .phf-panel-header p {
        font-size: 0.92rem;
    }

    .phf-event-tabs {
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .phf-event-tab {
        font-size: 0.78rem;
        padding: 0.4rem 0.85rem;
    }

    .phf-roi-value {
        font-size: 1.6rem;
    }

    .phf-roi-label--single {
        white-space: normal;
    }

    .phf-roi-stat {
        padding: 1rem 0.85rem;
    }

    .phf-chart {
        min-height: 200px;
    }

    .phf-chart--wide {
        min-height: 210px;
    }

    .phf-roi-punchline {
        padding: 1rem 1.1rem;
        font-size: 0.92rem;
    }

    .phf-math-download {
        gap: 1.15rem;
    }

    .phf-research-note-image-wrap {
        max-width: 70%;
    }

    .phf-apply-header .phf-apply-title-row {
        flex-direction: column;
        align-items: stretch;
    }

    .phf-apply-header .phf-schedule-open {
        width: 100%;
        justify-content: center;
    }

    .phf-apply-admin {
        position: static;
        display: flex;
        justify-content: flex-end;
        margin: 0 0 0.35rem;
    }

    .phf-apply-card {
        padding: 1.25rem 1rem 1.5rem;
    }

    .phf-apply-meta {
        flex-direction: column;
        align-items: center;
        gap: 0.45rem;
        text-align: center;
    }

    .phf-apply-progress {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .phf-apply-step-label {
        font-size: 0.72rem;
    }

    .phf-apply-step-line {
        width: 32px;
    }

    .phf-apply-disclaimer {
        margin-top: 1.25rem;
        padding-top: 1rem;
        font-size: 0.72rem;
    }

    .phf-page--app-nav .phf-hero-top {
        margin-top: 0;
        padding: 1.75rem 1.15rem;
        border-radius: 16px;
    }

    .phf-page--app-nav .phf-panel {
        padding: 1.5rem 1.15rem;
        margin-bottom: 1.5rem;
    }

    .phf-page--app-nav .phf-content > .phf-feature-grid {
        padding: 1.15rem;
        margin-bottom: 1.5rem;
    }

    .phf-page--app-nav .phf-mobile-nav-actions {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        flex-shrink: 0;
    }

    .phf-page--app-nav .phf-mobile-nav-apply {
        padding: 0.45rem 0.95rem;
        border-radius: 999px;
        background: #ffffff;
        color: #004aad;
        font-family: inherit;
        font-size: 0.85rem;
        font-weight: 600;
        line-height: 1.2;
        text-decoration: none;
        white-space: nowrap;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
        transition: box-shadow 0.2s ease, transform 0.2s ease;
        animation: phfNavApplyPulse 2s infinite;
    }

    a.phf-mobile-nav-apply,
    a.phf-mobile-nav-apply:hover {
        color: #004aad;
        background: #ffffff;
    }

    .phf-page--app-nav .phf-mobile-nav-apply:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        transform: translateY(-1px);
    }
}

@media (min-width: 769px) {
    body.phf-page:not(.phf-page--app-nav) {
        --phf-public-nav-offset: 72px;
    }

    .phf-page--app-nav .mobile-container {
        display: none;
    }

    .phf-page--app-nav .phf-app-shell .sidebar {
        display: flex;
    }

    .phf-public-nav-menu {
        display: none !important;
    }
}

.phf-wrap {
    position: relative;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0 2.5rem 4rem;
    box-sizing: border-box;
    min-width: 0;
}

.phf-content {
    position: relative;
    z-index: 1;
    min-width: 0;
    max-width: 100%;
}

.phf-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    background-color: #14182a;
    background-image:
        radial-gradient(circle at 50% 0%, rgba(0, 74, 173, 0.14) 0%, transparent 52%),
        radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 100% 100%, 22px 22px;
    background-position: center top, center center;
}

/* Hero — top blue band */
.phf-hero-top {
    margin-top: -10px;
    margin-bottom: 1.5rem;
    padding: 1.75rem 2rem 2.25rem;
    border-radius: 20px;
    border: 1px solid rgba(245, 158, 11, 0.3);
    background: linear-gradient(145deg, #0a0a14 0%, #1a1a2e 48%, #0f0f1c 100%);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.38),
        0 0 30px rgba(245, 158, 11, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.phf-hero-top::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.08), transparent);
    animation: phfShine 8s infinite;
    pointer-events: none;
}

/* Hero fade-in on page load (logged-out public view) */
@keyframes phfHeroFadeIn {
    from {
        opacity: 0;
        transform: translateY(26px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes phfHeroChildFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.phf-page:not(.phf-page--app-nav) .phf-hero-top {
    animation: phfHeroFadeIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
    will-change: opacity, transform;
}

body.phf-page:not(.phf-page--app-nav) .phf-hero-top .phf-eyebrow,
body.phf-page:not(.phf-page--app-nav) .phf-hero-top .phf-hero-video,
body.phf-page:not(.phf-page--app-nav) .phf-hero-top h1,
body.phf-page:not(.phf-page--app-nav) .phf-hero-top .phf-hero-top-lead,
body.phf-page:not(.phf-page--app-nav) .phf-hero-top .phf-hero-cta-wrap {
    animation: phfHeroChildFadeIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.phf-page:not(.phf-page--app-nav) .phf-hero-top .phf-eyebrow { animation-delay: 0.18s; }
body.phf-page:not(.phf-page--app-nav) .phf-hero-top .phf-hero-video { animation-delay: 0.3s; }
body.phf-page:not(.phf-page--app-nav) .phf-hero-top h1 { animation-delay: 0.42s; }
body.phf-page:not(.phf-page--app-nav) .phf-hero-top .phf-hero-top-lead { animation-delay: 0.54s; }
body.phf-page:not(.phf-page--app-nav) .phf-hero-top .phf-hero-cta-wrap { animation-delay: 0.66s; }

@media (prefers-reduced-motion: reduce) {
    body.phf-page:not(.phf-page--app-nav) .phf-hero-top,
    body.phf-page:not(.phf-page--app-nav) .phf-hero-top .phf-eyebrow,
    body.phf-page:not(.phf-page--app-nav) .phf-hero-top .phf-hero-video,
    body.phf-page:not(.phf-page--app-nav) .phf-hero-top h1,
    body.phf-page:not(.phf-page--app-nav) .phf-hero-top .phf-hero-top-lead,
    body.phf-page:not(.phf-page--app-nav) .phf-hero-top .phf-hero-cta-wrap {
        animation: none;
    }
}

/* Hero video */
.phf-hero-top .phf-hero-video {
    margin: 0.25rem auto 1.5rem;
}

@keyframes phfShine {
    0%, 85% { transform: translateX(-100%); }
    95%, 100% { transform: translateX(100%); }
}

.phf-hero-video {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto 1.5rem;
}

.phf-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.25rem;
}

.phf-hero-top h1 {
    font-size: clamp(1.85rem, 4.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 1.25rem 0 1rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.phf-hero-icon {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    color: #fbbf24;
    filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.45));
}

.phf-hero-top h1,
.phf-hero-top-lead,
.phf-hero-top .phf-eyebrow,
.phf-hero-top .phf-countdown,
.phf-hero-top .phf-hero-chips,
.phf-hero-top .phf-hero-video,
.phf-hero-top .phf-hero-cta-wrap {
    position: relative;
    z-index: 1;
}

.phf-hero-top-lead {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
    max-width: 720px;
    margin: 0 auto 1.5rem;
}

.phf-hero-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
}

.phf-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
}

.phf-chip i {
    color: #fbbf24;
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .phf-hero-chips {
        display: none;
    }
}

.phf-hero-cta-wrap {
    margin-top: 1.35rem;
}

.phf-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #FFCB05 0%, #e6b800 100%);
    color: #14182a;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(255, 203, 5, 0.6);
    box-shadow: none;
    transition: transform 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

.phf-hero-top .phf-hero-cta,
.phf-value-cta-wrap .phf-hero-cta {
    padding: 1.2rem 2.75rem;
    font-size: 1.25rem;
    gap: 0.65rem;
}

.phf-hero-top .phf-hero-cta i,
.phf-value-cta-wrap .phf-hero-cta i {
    font-size: 1rem;
}

a.phf-hero-cta,
a.phf-hero-cta:hover {
    color: #14182a;
    background: linear-gradient(135deg, #FFCB05 0%, #e6b800 100%);
}

.phf-hero-cta i {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.phf-hero-cta:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
    border-color: rgba(255, 203, 5, 0.85);
}

a.phf-hero-cta:hover {
    color: #14182a;
}

.phf-hero-cta:hover i {
    transform: translateX(2px);
}

.phf-hero-cta--pulse {
    animation: phfHeroCtaPulse 2s infinite;
}

@keyframes phfHeroCtaPulse {
    0% {
        box-shadow: 0 4px 18px rgba(255, 203, 5, 0.4), 0 0 0 0 rgba(255, 203, 5, 0.6);
    }
    70% {
        box-shadow: 0 4px 18px rgba(255, 203, 5, 0.4), 0 0 0 14px rgba(255, 203, 5, 0);
    }
    100% {
        box-shadow: 0 4px 18px rgba(255, 203, 5, 0.4), 0 0 0 0 rgba(255, 203, 5, 0);
    }
}

@keyframes phfNavApplyPulse {
    0% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14), 0 0 0 0 rgba(255, 255, 255, 0.55);
    }
    70% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14), 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14), 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.phf-hero-video-frame {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.phf-hero-video-caption {
    margin: 0.85rem 0 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

/* Research note panel — single panel, horizontal layout */
.phf-math-download {
    display: grid;
    gap: 1.5rem;
    align-items: center;
}

.phf-math-download-visual {
    display: flex;
    justify-content: center;
    align-self: stretch;
    min-height: 0;
}

.phf-research-note-image-wrap {
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid rgba(251, 191, 36, 0.42);
    background: #0a1628;
    box-shadow:
        0 6px 28px rgba(245, 158, 11, 0.14),
        0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    width: 70%;
    max-width: 70%;
    line-height: 0;
}

.phf-research-note-image-wrap:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 203, 5, 0.55);
    box-shadow:
        0 14px 40px rgba(245, 158, 11, 0.38),
        0 6px 16px rgba(217, 119, 6, 0.22),
        0 0 30px rgba(255, 203, 5, 0.35);
}

.phf-research-note-image {
    display: block;
    width: 100%;
    height: auto;
}

.phf-math-download-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    text-align: left;
}

.phf-math-download-copy {
    width: 100%;
}

.phf-math-download-copy h2 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem;
}

.phf-math-download-copy h2 i {
    flex-shrink: 0;
}

.phf-math-download-desc {
    margin: 0;
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
}

.phf-math-download .phf-form--horizontal {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    margin-top: 1.25rem;
    width: 100%;
}

.phf-math-download .phf-form-field {
    flex: none;
    width: 100%;
    min-width: 0;
}

.phf-math-download .phf-form-field label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.phf-math-download .phf-form-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.35);
    color: white;
    font-size: 1rem;
    font-family: inherit;
}

.phf-math-download .phf-form-field input:focus {
    outline: none;
    border-color: rgba(245, 158, 11, 0.55);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

.phf-math-download .phf-form-submit {
    width: 100%;
    margin-top: 0.15rem;
    padding: 0.9rem 1.25rem;
    font-size: 1rem;
    transition:
        background 0.35s ease,
        box-shadow 0.35s ease,
        color 0.35s ease,
        transform 0.2s ease;
}

.phf-math-download .phf-form-submit.phf-form-submit--success {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
    opacity: 1;
    cursor: default;
    transform: none;
}

.phf-math-download .phf-form-submit.phf-form-submit--success:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
}

.phf-btn-check-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #fff;
    color: #16a34a;
    font-size: 0.95rem;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.phf-btn-check-bubble i {
    font-size: 0.85rem;
}

.phf-btn-primary:disabled.phf-form-submit--success {
    opacity: 1;
}

.phf-math-download-meta {
    width: 100%;
    margin-top: 1.15rem;
    text-align: center;
}

.phf-math-download-status {
    margin: 0;
    min-height: 1.2em;
    font-size: 0.9rem;
    text-align: center;
}

.phf-math-download-status.phf-form-status--success {
    color: #4ade80;
    font-weight: 600;
}

.phf-math-download-note {
    margin: 0.55rem 0 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

@media (min-width: 768px) {
    .phf-math-download {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        gap: 2rem 2.5rem;
        align-items: center;
    }

    .phf-math-download-visual {
        align-items: center;
        justify-content: center;
    }

    .phf-research-note-image-wrap {
        flex: 0 1 auto;
        max-width: 70%;
        width: 70%;
        height: auto;
        display: block;
    }

    .phf-research-note-image {
        width: 100%;
        height: auto;
        max-width: 100%;
    }
}

.phf-roi-value--phrase {
    font-size: clamp(1.35rem, 3.2vw, 2rem);
    line-height: 1.15;
}

/* Video + download split */
.phf-feature-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

.phf-video-panel,
.phf-download-panel,
.phf-panel {
    position: relative;
    border-radius: 20px;
    border: 1px solid rgba(245, 158, 11, 0.28);
    background: linear-gradient(135deg, #0a0a14 0%, #1a1a2e 50%, #0a0a14 100%);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

/* Zebra panels — warm (odd) vs cool (even) main sections */
.phf-content > section.phf-panel:nth-child(odd) {
    border-color: rgba(245, 158, 11, 0.3);
    background: linear-gradient(145deg, #0a0a14 0%, #1a1a2e 48%, #0f0f1c 100%);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.phf-content > section.phf-panel:nth-child(odd)::before {
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.06), transparent);
}

.phf-content > section.phf-panel:nth-child(even) {
    border-color: rgba(59, 130, 246, 0.35);
    background: linear-gradient(145deg, #0a0a14 0%, #12192e 50%, #0d1220 100%);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(147, 197, 253, 0.06);
}

.phf-content > section.phf-panel:nth-child(even)::before {
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.08), transparent);
    animation-duration: 12s;
}

.phf-video-panel::before,
.phf-download-panel::before,
.phf-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
    animation: phfShine 10s infinite;
    pointer-events: none;
}

.phf-panel > * {
    position: relative;
    z-index: 1;
}

.phf-video-inner {
    position: relative;
    z-index: 1;
    padding: 1.25rem;
}

.phf-video-frame {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #0f0f1c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    aspect-ratio: 16 / 9;
}

.phf-video-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.phf-video-loading i {
    font-size: 2.25rem;
    color: #f59e0b;
}

.phf-video-player {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.phf-video-embed {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

.phf-youtube-facade {
    cursor: pointer;
}

.phf-youtube-thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #0f0f1c;
}

.phf-youtube-play {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.phf-youtube-play i {
    font-size: 3.25rem;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
    transition: transform 0.2s ease, color 0.2s ease;
}

.phf-youtube-facade:hover .phf-youtube-play i,
.phf-youtube-play:focus-visible i {
    color: #ffffff;
    transform: scale(1.06);
}

.phf-youtube-play:focus-visible {
    outline: 2px solid rgba(245, 158, 11, 0.65);
    outline-offset: -4px;
}

.phf-video-caption {
    margin: 1rem 0 0;
    text-align: center;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
}

.phf-download-inner {
    position: relative;
    z-index: 1;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.phf-download-inner h2 {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.phf-download-inner h2 i {
    color: #fbbf24;
}

.phf-download-desc {
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.phf-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

.phf-form label {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.03em;
}

.phf-form input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.35);
    color: white;
    font-size: 0.95rem;
    font-family: inherit;
}

.phf-form input:focus {
    outline: none;
    border-color: rgba(245, 158, 11, 0.55);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

.phf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.phf-btn:hover {
    transform: translateY(-2px);
}

.phf-btn-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #0a0a14;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.phf-btn-primary:hover {
    box-shadow: 0 8px 28px rgba(245, 158, 11, 0.4);
}

.phf-btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.phf-btn-secondary {
    background: linear-gradient(135deg, #004aad 0%, #0066cc 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.25);
}

.phf-form-note {
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
}

.phf-form-status {
    font-size: 0.85rem;
    margin: 0;
    min-height: 1.2em;
}

.phf-form-status--error {
    color: #f87171;
}

.phf-form-status--success {
    color: #4ade80;
}

/* Panels */
.phf-panel {
    padding: 2rem 2rem 2.25rem;
    margin-bottom: 2rem;
}

.phf-content > .phf-feature-grid {
    position: relative;
    margin-bottom: 2rem;
    padding: 1.75rem;
    border-radius: 20px;
    border: 1px solid rgba(245, 158, 11, 0.28);
    background: linear-gradient(135deg, #0a0a14 0%, #1a1a2e 50%, #0a0a14 100%);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.phf-content > .phf-feature-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.05), transparent);
    animation: phfShine 11s infinite;
    pointer-events: none;
}

.phf-content > .phf-feature-grid .phf-video-panel,
.phf-content > .phf-feature-grid .phf-download-panel {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.25);
    box-shadow: none;
}

.phf-content > .phf-feature-grid .phf-video-panel::before,
.phf-content > .phf-feature-grid .phf-download-panel::before {
    display: none;
}

.phf-panel-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.phf-panel-header h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.phf-panel-title-icon {
    color: #fbbf24;
    flex-shrink: 0;
}

.phf-apply-title-row h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.phf-panel-header p {
    margin: 0 auto;
    max-width: 640px;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
}

/* ROI math */
.phf-roi {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.25rem;
    align-items: center;
    text-align: center;
}

.phf-roi-stat {
    padding: 1.25rem;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.phf-roi-value {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #f87171;
    line-height: 1.1;
}

.phf-roi-value--loss {
    text-shadow:
        0 0 10px rgba(248, 113, 113, 0.45),
        0 0 22px rgba(248, 113, 113, 0.22),
        0 0 40px rgba(239, 68, 68, 0.12);
}

.phf-roi-stat:has(.phf-roi-value--loss) {
    border-color: rgba(248, 113, 113, 0.14);
    box-shadow:
        inset 0 0 28px rgba(248, 113, 113, 0.06),
        0 0 24px rgba(248, 113, 113, 0.08);
}

.phf-roi-value--gold {
    color: #fbbf24;
    text-shadow:
        0 0 10px rgba(251, 191, 36, 0.45),
        0 0 22px rgba(251, 191, 36, 0.22),
        0 0 40px rgba(245, 158, 11, 0.12);
}

.phf-roi-stat:has(.phf-roi-value--gold) {
    border-color: rgba(251, 191, 36, 0.14);
    box-shadow:
        inset 0 0 28px rgba(251, 191, 36, 0.06),
        0 0 24px rgba(251, 191, 36, 0.08);
}

.phf-roi-label {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

.phf-roi-label--single {
    white-space: nowrap;
}

.phf-roi-vs {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
}

.phf-roi-punchline {
    margin: 1.5rem 0 0;
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
}

.phf-roi-punchline strong {
    color: #93c5fd;
}

.phf-roi-footnote {
    margin: 0.75rem 0 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
}

/* What the Pros Do */
.phf-event-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.phf-event-tab {
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.7);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.phf-event-tab:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.25);
}

.phf-event-tab.is-active {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.45);
    color: #fbbf24;
}

.phf-pros-roi {
    grid-template-columns: 1fr auto 1fr auto 1fr;
    margin-bottom: 1.5rem;
}

.phf-roi-value--green {
    color: #34d399;
    text-shadow:
        0 0 10px rgba(52, 211, 153, 0.45),
        0 0 22px rgba(52, 211, 153, 0.22),
        0 0 40px rgba(16, 185, 129, 0.12);
}

.phf-roi-stat:has(.phf-roi-value--green) {
    border-color: rgba(52, 211, 153, 0.14);
    box-shadow:
        inset 0 0 28px rgba(52, 211, 153, 0.06),
        0 0 24px rgba(52, 211, 153, 0.08);
}

.phf-charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0;
}

.phf-chart-card {
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 0.75rem 0.5rem;
    min-height: auto;
    max-width: 100%;
    min-width: 0;
}

.phf-chart-label {
    margin: 0 0 0.5rem;
    padding: 0 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.phf-chart {
    width: 100%;
    min-height: 220px;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.phf-math-chart-card {
    margin-top: 1.5rem;
}

.phf-chart--wide {
    min-height: 240px;
}

.phf-math-event-tabs {
    margin-bottom: 1.25rem;
}

.phf-math-roi {
    margin-bottom: 0;
}

#roi-math .phf-roi-label-compact {
    display: none;
}

@media (max-width: 768px) {
    #roi-math .phf-roi-label-full {
        display: none;
    }

    #roi-math .phf-roi-label-compact {
        display: block;
    }
}

.phf-chart-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 200px;
    margin: 0;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.9rem;
}

#what-pros-do .phf-roi-punchline {
    margin-top: 1.25rem;
    background: rgba(52, 211, 153, 0.08);
    border-color: rgba(52, 211, 153, 0.22);
}

#phf-pros-punchline {
    white-space: nowrap;
    line-height: 1.45;
    font-size: 1.05rem;
    overflow: hidden;
}

#what-pros-do .phf-roi-punchline strong {
    color: #34d399;
}

/* Strategy levels — Who's This For? */
.phf-strategy-levels-panel .phf-panel-header {
    margin-bottom: 2rem;
}

.phf-strategy-levels-panel .phf-panel-header h2 {
    font-size: clamp(1.65rem, 3.5vw, 2.2rem);
    margin-bottom: 0.75rem;
}

.phf-strategy-levels-panel .phf-panel-header p,
#curriculum .phf-panel-header p {
    max-width: none;
    width: 100%;
    margin: 0;
    font-size: clamp(1.1rem, 2.2vw, 1.3rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
}

.phf-strategy-levels-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.phf-strategy-level-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.75rem 1.4rem 1.85rem;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.phf-strategy-level-card:hover {
    background: rgba(0, 0, 0, 0.4);
}

.phf-strategy-level-card--green:hover {
    border-color: rgba(52, 211, 153, 0.35);
}

.phf-strategy-level-card--blue:hover {
    border-color: rgba(96, 165, 250, 0.35);
}

.phf-strategy-level-card--red:hover {
    border-color: rgba(248, 113, 113, 0.35);
}

.phf-strategy-level-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 1.15rem;
    border-radius: 50%;
    font-size: 1.35rem;
}

.phf-strategy-level-icon--green {
    color: #34d399;
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.22);
}

.phf-strategy-level-icon--blue {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.22);
}

.phf-strategy-level-icon--red {
    color: #f87171;
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.22);
}

.phf-strategy-level-card h3 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.96);
}

.phf-strategy-level-card p {
    margin: 0;
    font-size: clamp(1rem, 1.8vw, 1.12rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.75);
    text-wrap: pretty;
}

/* Curriculum — module offerings */
.phf-curriculum-offerings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.phf-module-offering {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.65rem 1.5rem 1.75rem;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.28) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.phf-module-offering-glow {
    position: absolute;
    top: -40%;
    right: -20%;
    width: 55%;
    height: 80%;
    border-radius: 50%;
    opacity: 0.35;
    pointer-events: none;
    filter: blur(40px);
    transition: opacity 0.25s ease;
}

.phf-module-offering--1 .phf-module-offering-glow {
    background: radial-gradient(circle, rgba(251, 191, 36, 0.55) 0%, transparent 70%);
}

.phf-module-offering--2 .phf-module-offering-glow {
    background: radial-gradient(circle, rgba(96, 165, 250, 0.5) 0%, transparent 70%);
}

.phf-module-offering--3 .phf-module-offering-glow {
    background: radial-gradient(circle, rgba(192, 132, 252, 0.5) 0%, transparent 70%);
}

.phf-module-offering--4 .phf-module-offering-glow {
    background: radial-gradient(circle, rgba(52, 211, 153, 0.45) 0%, transparent 70%);
}

.phf-module-offering:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.phf-module-offering--1:hover { border-color: rgba(251, 191, 36, 0.45); }
.phf-module-offering--2:hover { border-color: rgba(96, 165, 250, 0.45); }
.phf-module-offering--3:hover { border-color: rgba(192, 132, 252, 0.45); }
.phf-module-offering--4:hover { border-color: rgba(52, 211, 153, 0.45); }

.phf-module-offering:hover .phf-module-offering-glow {
    opacity: 0.55;
}

.phf-module-offering-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
    position: relative;
    z-index: 1;
}

.phf-module-offering-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 14px;
    font-size: 1.25rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.phf-module-offering--1 .phf-module-offering-icon {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.14);
    border: 1px solid rgba(251, 191, 36, 0.32);
}

.phf-module-offering--2 .phf-module-offering-icon {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.14);
    border: 1px solid rgba(96, 165, 250, 0.32);
}

.phf-module-offering--3 .phf-module-offering-icon {
    color: #c084fc;
    background: rgba(192, 132, 252, 0.14);
    border: 1px solid rgba(192, 132, 252, 0.32);
}

.phf-module-offering--4 .phf-module-offering-icon {
    color: #34d399;
    background: rgba(52, 211, 153, 0.14);
    border: 1px solid rgba(52, 211, 153, 0.32);
}

.phf-module-offering-num {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.phf-module-offering-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    text-align: right;
}

.phf-module-offering-body {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.phf-module-offering-body h3 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.08rem, 2vw, 1.28rem);
    font-weight: 700;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.97);
    text-wrap: pretty;
}

.phf-module-offering-desc {
    margin: 0 0 0;
    font-size: clamp(0.92rem, 1.6vw, 1.02rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.68);
    text-wrap: pretty;
}

.phf-module-offering-duration {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
}

.phf-module-offering-duration i {
    font-size: 0.95rem;
    opacity: 0.85;
}

/* Legacy week rows (unused on marketing page) */
.phf-curriculum {
    display: grid;
    gap: 1rem;
}

.phf-week {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.phf-week:hover {
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(0, 0, 0, 0.4);
}

.phf-week-num {
    min-width: 58px;
    height: 52px;
    padding: 0 0.35rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    flex-shrink: 0;
}

.phf-week-num span {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.phf-week-num strong {
    font-size: 1.25rem;
    color: #fbbf24;
    line-height: 1;
}

.phf-week-body {
    display: flex;
    align-items: center;
    min-height: 52px;
}

.phf-week-body h3 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
    color: white;
}

.phf-week-meta {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.65rem;
}

.phf-week-topics {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.phf-week-topics li {
    font-size: 0.78rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.75);
}

/* Pricing */
.phf-pricing-card {
    max-width: 480px;
    margin: 0 auto;
    padding: 2rem 1.75rem;
    border-radius: 18px;
    border: 2px solid rgba(0, 74, 173, 0.2);
    background: #ffffff;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0, 74, 173, 0.08);
}

.phf-pricing-badge {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(0, 74, 173, 0.08);
    border: 1px solid rgba(0, 74, 173, 0.2);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #004aad;
    margin-bottom: 1rem;
}

.phf-pricing-amount {
    font-size: 3rem;
    font-weight: 700;
    color: #1c1e2b;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.phf-pricing-period {
    font-size: 0.9rem;
    color: #8b92a8;
    margin-bottom: 1.25rem;
}

.phf-pricing-features {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    text-align: left;
}

.phf-pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.45rem 0;
    font-size: 0.9rem;
    color: #5c6378;
    border-bottom: 1px solid rgba(0, 74, 173, 0.08);
}

.phf-pricing-features li:last-child {
    border-bottom: none;
}

.phf-pricing-features i {
    color: #4ade80;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.phf-principles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* Institutional approach — stacked student success videos */
.phf-institutional-panel .phf-panel-header p {
    max-width: 720px;
}

.phf-institutional-panel .phf-panel-header p + p {
    margin-top: 0.75rem;
}

/* Course outcome */
.phf-audience-panel {
    padding: 2.75rem 2rem 2.75rem;
}

.phf-audience-panel-header {
    margin-bottom: 1.75rem;
}

.phf-audience-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 820px;
    margin: 0 auto;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.phf-audience-stack-line {
    margin: 0;
    padding: 1.5rem 1.65rem;
    text-align: center;
    font-size: clamp(1.05rem, 2.2vw, 1.28rem);
    font-weight: 600;
    line-height: 1.5;
    text-wrap: pretty;
}

.phf-audience-stack-line--not {
    color: rgba(255, 255, 255, 0.88);
    background: rgba(51, 65, 85, 0.32);
    border-bottom: 1px solid rgba(244, 63, 94, 0.35);
}

.phf-audience-stack-line--yes {
    color: rgba(255, 255, 255, 0.96);
    background: rgba(6, 95, 70, 0.28);
    border-top: 1px solid rgba(16, 185, 129, 0.35);
}

.phf-audience-subheader {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    line-height: 1.55;
    max-width: 720px;
    margin: 0 auto 2rem;
}

.phf-audience-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.phf-audience-column {
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid transparent;
    min-width: 0;
}

.phf-audience-fit {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(6, 95, 70, 0.28);
}

.phf-audience-not-fit {
    border-color: rgba(244, 63, 94, 0.45);
    background: rgba(51, 65, 85, 0.35);
}

.phf-audience-label {
    font-size: 1.06rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phf-audience-fit .phf-audience-label {
    color: rgba(167, 243, 208, 0.95);
}

.phf-audience-not-fit .phf-audience-label {
    color: rgba(253, 164, 175, 0.9);
}

.phf-audience-label i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.phf-audience-fit .phf-audience-label i {
    color: #34d399;
}

.phf-audience-not-fit .phf-audience-label i {
    color: #ef4444;
}

.phf-audience-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.phf-audience-list li {
    font-size: 1.12rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-wrap: pretty;
}

.phf-audience-list li:last-child {
    border-bottom: none;
}

.phf-audience-list li strong {
    display: block;
    margin-bottom: 0.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 1);
}

.phf-audience-footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    font-weight: 500;
    font-style: italic;
    margin: 1.5rem 0 0;
}

.phf-student-success-stack {
    max-width: 800px;
    margin: 0 auto;
}

.phf-student-success-item + .phf-student-success-item {
    margin-top: 3rem;
}

.phf-student-success-meet {
    margin: 0 0 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
}

.phf-student-success-journey {
    margin: 0 0 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 700;
    line-height: 1.45;
}

.phf-student-success-journey-line {
    display: inline;
}

.phf-student-success-journey-arrow--mobile {
    display: none;
}

.phf-student-success-icon {
    color: #fbbf24;
    margin-right: 0.35em;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.375)) drop-shadow(0 0 18px rgba(251, 191, 36, 0.2));
}

.phf-student-success-arrow {
    color: #fff;
    margin: 0 0.5em;
    font-size: 1.2em;
    vertical-align: middle;
}

.phf-testimonial-video-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(22, 33, 62, 0.8) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.phf-outcome-video-container {
    max-width: 760px;
    margin: 0 auto 1.75rem;
}

.phf-principle-card {
    padding: 1.25rem 1.15rem 1.35rem;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.phf-principle-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.4);
}

.phf-principle-label {
    margin: 0 0 0.75rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.phf-principle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.75rem;
    border-radius: 50%;
    font-size: 0.95rem;
}

.phf-principle-icon--red {
    color: #f87171;
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.22);
}

.phf-principle-icon--gold {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.22);
}

.phf-principle-icon--blue {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.22);
}

.phf-principle-icon--green {
    color: #34d399;
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.22);
}

.phf-principle-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

.phf-principle-card p {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.65);
}

/* Instructor panel */
.phf-instructor-panel {
    padding: 0;
    overflow: visible;
}

.phf-instructor-panel::before {
    display: none;
}

.phf-instructor-card {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 1.75rem 2rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(30, 58, 120, 0.35) 0%, rgba(10, 10, 20, 0.5) 55%, rgba(10, 10, 20, 0.65) 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.phf-instructor-photo-wrap {
    flex-shrink: 0;
}

.phf-instructor-photo-frame {
    position: relative;
    flex-shrink: 0;
}

.phf-instructor-photo {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    display: block;
}

.phf-instructor-status {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    background: #10b981;
    border: 2px solid #0a0a14;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.phf-instructor-copy {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.phf-instructor-label {
    margin: 0 0 0.25rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.phf-instructor-name {
    margin: 0 0 0.35rem;
    font-size: 1.45rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.phf-instructor-title {
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #93c5fd;
}

.phf-instructor-bio {
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
}

.phf-instructor-note {
    margin: 0;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 0.92rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(245, 158, 11, 0.08);
    border-left: 3px solid rgba(245, 158, 11, 0.55);
}

/* Value proposition — below instructor */
.phf-value-panel {
    padding: 2rem 2rem 2.25rem;
    text-align: center;
}

.phf-value-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem 1rem;
    max-width: 52rem;
    margin: 0 auto 1.25rem;
}

.phf-value-mobile {
    display: none;
}

.phf-value-scenario {
    padding: 1rem;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.phf-value-scenario--unhedged {
    border-color: rgba(248, 113, 113, 0.18);
    box-shadow: inset 0 0 24px rgba(248, 113, 113, 0.05);
}

.phf-value-scenario--hedged {
    border-color: rgba(52, 211, 153, 0.18);
    box-shadow: inset 0 0 24px rgba(52, 211, 153, 0.05);
}

.phf-value-scenario-title {
    margin: 0 0 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
}

.phf-value-metric-list {
    display: grid;
    gap: 0.65rem;
}

.phf-value-metric-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
}

.phf-value-metric-stat {
    padding: 0.75rem 0.65rem;
    text-align: center;
}

.phf-value-metric-stat .phf-roi-value {
    font-size: 1.35rem;
}

.phf-value-metric-stat .phf-roi-value--hedged-loss {
    font-size: 1.35rem;
}

.phf-value-metric-stat .phf-roi-label {
    font-size: 0.78rem;
    margin-top: 0.25rem;
}

.phf-value-scenario-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.65rem 0;
    color: rgba(255, 255, 255, 0.35);
    font-size: 1rem;
}

.phf-value-colhead {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
    padding-bottom: 0.15rem;
}

.phf-value-cell {
    min-width: 0;
}

.phf-roi-value--portfolio-red {
    color: #f87171;
    text-shadow:
        0 0 10px rgba(248, 113, 113, 0.45),
        0 0 22px rgba(248, 113, 113, 0.22),
        0 0 40px rgba(239, 68, 68, 0.12);
}

.phf-roi-stat:has(.phf-roi-value--portfolio-red) {
    border-color: rgba(248, 113, 113, 0.14);
    box-shadow:
        inset 0 0 28px rgba(248, 113, 113, 0.06),
        0 0 24px rgba(248, 113, 113, 0.08);
}

.phf-roi-stat:has(.phf-roi-value--gold.phf-roi-value--hedged-loss) {
    border-color: rgba(251, 191, 36, 0.14);
    box-shadow:
        inset 0 0 28px rgba(251, 191, 36, 0.06),
        0 0 24px rgba(251, 191, 36, 0.08);
}

.phf-roi-value--hedged-loss {
    font-size: clamp(1.5rem, 3.5vw, 2.15rem);
}

.phf-value-punchline {
    max-width: 40rem;
    margin: 0 auto 1.25rem;
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.22);
}

.phf-value-punchline strong {
    color: #93c5fd;
}

.phf-value-cta-wrap {
    margin-top: 1.35rem;
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Site footer (home page style) */
.phf-site-footer {
    width: 100%;
    margin-top: 0;
    position: relative;
    z-index: 2;
}

.phf-site-footer-panel {
    width: 100%;
    margin-bottom: 0;
    border-radius: 0;
    border: none;
    background: #004aad;
    color: white;
    overflow: visible;
    box-shadow: 0 -4px 24px rgba(0, 74, 173, 0.15);
}

.phf-site-footer .youtube-counter {
    overflow: visible !important;
    flex-shrink: 0;
}

.phf-site-footer .youtube-counter-link {
    display: inline-block;
    line-height: 0;
    vertical-align: top;
    overflow: visible !important;
}

.phf-site-footer .counter-wrapper,
.phf-site-footer .mobile-counter-wrapper {
    overflow: visible !important;
    padding: 6px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.phf-site-footer .counter-wrapper > [data-subscriber-counter],
.phf-site-footer .mobile-counter-wrapper > [data-subscriber-counter] {
    display: block;
    line-height: 0;
    overflow: hidden !important;
    border-radius: 10px;
    width: 330px;
    max-width: 100%;
    height: 92px;
}

.phf-site-footer .counter-wrapper > [data-subscriber-counter] iframe,
.phf-site-footer .mobile-counter-wrapper > [data-subscriber-counter] iframe {
    display: block;
    width: 330px !important;
    height: 100px !important;
    max-width: 100%;
    margin: 0;
    border: none !important;
    border-radius: 8px;
    overflow: hidden;
    vertical-align: top;
}

/* Beat home_excess mobile footer panel styles */
.phf-site-footer.footer-section .phf-site-footer-panel {
    border-radius: 0 !important;
    background: #004aad !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none;
}

.phf-site-footer-desktop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    gap: 1rem;
}

.phf-site-footer-youtube,
.phf-site-footer-spacer {
    flex: 1;
}

.phf-site-footer-center {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.phf-site-footer-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
    margin-bottom: 1.5rem;
}

.phf-site-footer-socials a {
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.phf-site-footer-socials a:hover {
    color: #FFCB05;
    transform: scale(1.1);
}

.phf-site-footer-legal {
    text-align: center;
}

.phf-site-footer-legal p {
    margin: 0 0 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.phf-site-footer-legal p:last-child {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.92rem;
}

.phf-site-footer-legal a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s ease;
}

.phf-site-footer-legal a:hover {
    color: #FFCB05;
}

.phf-site-footer-sep {
    margin: 0 0.5rem;
}

.phf-site-footer-mobile {
    display: none;
    padding: 2rem 1rem 3rem;
    text-align: center;
}

.phf-site-footer-mobile-youtube {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phf-site-footer-mobile-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.phf-site-footer-mobile-socials a {
    color: white;
    font-size: 1.8rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.phf-site-footer-mobile-socials a:hover {
    color: #FFCB05;
    transform: scale(1.15);
}

.phf-site-footer-mobile-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.phf-site-footer-mobile-text p {
    margin: 0 0 0.6rem;
    font-size: 0.9rem;
}

.phf-site-footer-mobile-text p:last-child {
    margin-bottom: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

.phf-site-footer-mobile-text a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.phf-site-footer-mobile-text a:hover {
    color: #FFCB05;
}

@media (max-width: 768px) {
    .phf-site-footer {
        background-color: #004aad !important;
        width: 100%;
        margin-top: auto;
        margin-bottom: 0;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        position: relative;
        z-index: 10;
    }

    body.phf-page:not(.phf-page--app-nav) {
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    body.phf-page:not(.phf-page--app-nav) .phf-wrap {
        padding-bottom: 0;
    }

    html.phf-standalone {
        background-color: #004aad;
    }

    .phf-site-footer-desktop {
        display: none !important;
    }

    .phf-site-footer-mobile,
    .phf-site-footer .mobile-footer-content {
        display: block !important;
        padding: 2rem 1rem 4rem !important;
        text-align: center;
    }

    .phf-site-footer-panel {
        background: #004aad !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: 0 -4px 24px rgba(0, 74, 173, 0.15) !important;
        margin-bottom: 0 !important;
        padding-bottom: 3rem !important;
        min-height: auto !important;
        overflow: visible !important;
    }

    .phf-site-footer .counter-wrapper > [data-subscriber-counter],
    .phf-site-footer .mobile-counter-wrapper > [data-subscriber-counter] {
        width: min(330px, calc(100vw - 2.5rem));
    }

    .phf-site-footer .counter-wrapper > [data-subscriber-counter] iframe,
    .phf-site-footer .mobile-counter-wrapper > [data-subscriber-counter] iframe {
        width: min(330px, calc(100vw - 2.5rem)) !important;
        height: 100px !important;
    }

    .phf-site-footer-mobile-youtube,
    .phf-site-footer .mobile-footer-youtube-counter {
        margin-bottom: 2.5rem !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        overflow: visible !important;
        padding: 0.35rem 0 !important;
    }

    .phf-site-footer-youtube {
        overflow: visible !important;
        padding: 0.35rem 0;
    }

    .phf-site-footer-mobile-socials,
    .phf-site-footer .mobile-footer-socials {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 1.5rem !important;
        margin-bottom: 2rem !important;
        flex-wrap: wrap !important;
    }

    .phf-site-footer-mobile-socials a,
    .phf-site-footer .mobile-footer-socials a {
        font-size: 1.8rem !important;
        transition: transform 0.3s ease, color 0.3s ease !important;
    }

    .phf-site-footer-mobile-socials a:hover,
    .phf-site-footer .mobile-footer-socials a:hover {
        color: #4FC3F7 !important;
        transform: scale(1.2) !important;
    }

    .phf-site-footer-mobile-text,
    .phf-site-footer .mobile-footer-text {
        text-align: center !important;
        color: rgba(255, 255, 255, 0.9) !important;
        line-height: 1.6 !important;
    }

    .phf-site-footer-mobile-text p,
    .phf-site-footer .mobile-footer-text p {
        margin-bottom: 0.8rem !important;
        font-size: 0.9rem !important;
    }

    .phf-site-footer-mobile-text p:last-child,
    .phf-site-footer .mobile-footer-text p:last-child {
        margin-bottom: 0 !important;
        font-size: 0.85rem !important;
        color: rgba(255, 255, 255, 0.7) !important;
        margin-top: 0.5rem !important;
    }

    .phf-site-footer-mobile-text a,
    .phf-site-footer .mobile-footer-text a {
        color: rgba(255, 255, 255, 0.8) !important;
        margin: 0 0.5rem !important;
        transition: color 0.3s ease !important;
    }

    .phf-site-footer-mobile-text a:hover,
    .phf-site-footer .mobile-footer-text a:hover {
        color: #4FC3F7 !important;
    }

    /* Logged-out mobile: breathing room above footer + smaller social icons */
    body.phf-page:not(.phf-page--app-nav) .phf-site-footer {
        margin-top: 2.75rem !important;
    }

    body.phf-page:not(.phf-page--app-nav) .phf-site-footer-mobile-socials,
    body.phf-page:not(.phf-page--app-nav) .phf-site-footer .mobile-footer-socials {
        gap: 1.125rem !important;
    }

    body.phf-page:not(.phf-page--app-nav) .phf-site-footer-mobile-socials a,
    body.phf-page:not(.phf-page--app-nav) .phf-site-footer .mobile-footer-socials a {
        font-size: 1.35rem !important;
    }
}

/* Enroll panel — single card, full width like other panels */
.phf-enroll-panel {
    position: relative;
    padding: 2.5rem 2.25rem 2rem;
    text-align: center;
    border-color: rgba(255, 203, 5, 0.28);
    background: linear-gradient(
        165deg,
        #0a0a14 0%,
        #12192e 48%,
        #0d1220 100%
    );
}

.phf-enroll-panel::before {
    background: linear-gradient(90deg, transparent, rgba(255, 203, 5, 0.07), transparent);
}

.phf-enroll-glow {
    position: absolute;
    inset: 0 0 auto;
    height: 220px;
    border-radius: inherit;
    background: radial-gradient(
        ellipse 80% 100% at 50% 0%,
        rgba(79, 195, 247, 0.12) 0%,
        rgba(255, 203, 5, 0.06) 40%,
        transparent 72%
    );
    pointer-events: none;
    z-index: 0;
}

.phf-enroll-panel > *:not(.phf-enroll-glow):not(.phf-apply-admin) {
    position: relative;
    z-index: 1;
}

.phf-enroll-body {
    max-width: 580px;
    margin: 0 auto;
}

.phf-enroll-header {
    display: block;
    margin: 0 0 1.75rem;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.phf-enroll-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fbbf24;
}

.phf-enroll-eyebrow i {
    color: #fbbf24;
}

.phf-enroll-header h2 {
    margin: 0 0 0.85rem;
    font-size: clamp(1.65rem, 4vw, 2.15rem);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    text-align: center;
}

.phf-enroll-title-icon {
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    color: #fbbf24;
    filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.45));
    flex-shrink: 0;
}

.phf-enroll-lead {
    margin: 0 auto;
    max-width: none;
    width: 100%;
    font-size: clamp(1.1rem, 2.2vw, 1.3rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
    text-align: center;
    text-wrap: pretty;
}

.phf-enroll-price-block {
    position: relative;
    margin-bottom: 0.85rem;
    padding: 1.35rem 1.25rem 1.15rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 203, 5, 0.22);
    background: rgba(255, 203, 5, 0.05);
    overflow: hidden;
}

.phf-enroll-price-banner {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #fde047 0%, #FFCB05 55%, #fbbf24 100%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #1a1a2e;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(255, 203, 5, 0.4);
    z-index: 1;
}

.phf-enroll-includes-panel {
    margin-bottom: 1.75rem;
    padding: 1.25rem 1.35rem 1.15rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    text-align: left;
}

.phf-enroll-includes-heading {
    margin: 0 0 1rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: left;
    color: rgba(147, 197, 253, 0.85);
}

.phf-enroll-price-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.phf-enroll-price-was {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.1rem;
    line-height: 1;
    margin: 0;
}

.phf-enroll-price-was-currency {
    margin-top: 0.2rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: line-through;
    text-decoration-color: rgba(255, 255, 255, 0.55);
}

.phf-enroll-price-was-amount {
    font-size: clamp(1.35rem, 3.5vw, 1.75rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: line-through;
    text-decoration-color: rgba(255, 255, 255, 0.55);
}

.phf-enroll-price {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.15rem;
    line-height: 1;
}

.phf-enroll-price-currency {
    margin-top: 0.45rem;
    font-size: 1.35rem;
    font-weight: 600;
    color: #FFCB05;
}

.phf-enroll-price-amount {
    font-size: clamp(2.75rem, 8vw, 3.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #FFCB05;
}

.phf-enroll-price-note {
    margin: 0.65rem 0 0;
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
}

.phf-enroll-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
    width: 100%;
}

.phf-enroll-features li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.78);
}

.phf-enroll-features i {
    flex-shrink: 0;
    width: 1.25rem;
    text-align: center;
    color: #4FC3F7;
}

.phf-enroll-feature-note {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.52);
}

@media (max-width: 768px) {
    .phf-enroll-feature-note--desktop {
        display: none;
    }
}

.phf-enroll-status {
    margin: 0 0 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 0.92rem;
    line-height: 1.5;
}

.phf-enroll-status--success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #86efac;
}

.phf-enroll-status--muted {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.62);
}

.phf-enroll-actions {
    margin-bottom: 1.15rem;
}

.phf-enroll-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-width: min(100%, 320px);
    padding: 0.95rem 1.75rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #FFCB05 0%, #e6b800 100%);
    color: #14182a;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 8px 28px rgba(255, 203, 5, 0.28);
}

.phf-enroll-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow: 0 12px 36px rgba(255, 203, 5, 0.35);
    color: #14182a;
}

.phf-enroll-btn:not(.phf-enroll-btn--owned) {
    animation: phfEnrollPulse 2s infinite;
}

@keyframes phfEnrollPulse {
    0% {
        box-shadow: 0 8px 28px rgba(255, 203, 5, 0.28), 0 0 0 0 rgba(255, 203, 5, 0.6);
    }
    70% {
        box-shadow: 0 8px 28px rgba(255, 203, 5, 0.28), 0 0 0 16px rgba(255, 203, 5, 0);
    }
    100% {
        box-shadow: 0 8px 28px rgba(255, 203, 5, 0.28), 0 0 0 0 rgba(255, 203, 5, 0);
    }
}

.phf-enroll-btn:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
    animation: none;
}

.phf-enroll-btn--owned {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25) 0%, rgba(22, 163, 74, 0.2) 100%);
    border: 1px solid rgba(34, 197, 94, 0.45);
    color: #bbf7d0;
    box-shadow: none;
}

.phf-enroll-btn--owned:hover {
    filter: none;
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.15);
    color: #dcfce7;
}

.phf-enroll-disclaimer {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.38);
}

@media (max-width: 640px) {
    .phf-enroll-panel {
        padding: 2rem 1.35rem 1.65rem;
    }

    .phf-enroll-lead {
        font-size: 1.05rem;
        line-height: 1.5;
    }
}

/* Application form */
.phf-apply-panel {
    position: relative;
}

.phf-apply-disclaimer {
    margin: 1.5rem auto 0;
    max-width: 640px;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.42);
}

.phf-apply-header .phf-cohort-size-link {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.35);
    text-underline-offset: 3px;
}

.phf-apply-header .phf-cohort-size-link:hover {
    color: rgba(255, 255, 255, 0.95);
    text-decoration-color: rgba(147, 197, 253, 0.55);
}

.phf-cohort-size-link {
    display: inline;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.62);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.28);
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.phf-cohort-size-link:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration-color: rgba(147, 197, 253, 0.55);
}

.phf-apply-admin {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #FFCB05;
    text-decoration: none;
    transition: color 0.2s ease;
}

.phf-apply-admin:hover {
    color: #ffe566;
}

.phf-apply-panel .phf-panel-header {
    margin-bottom: 1.25rem;
}

.phf-apply-header .phf-apply-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin-bottom: 0.5rem;
}

.phf-apply-header h2 {
    margin: 0;
}

.phf-schedule-open {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

.phf-schedule-open i {
    margin-right: 0.35rem;
}

.phf-schedule-inline-link {
    display: inline;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.35);
    text-underline-offset: 2px;
    cursor: pointer;
    vertical-align: baseline;
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.phf-schedule-inline-link:hover {
    color: rgba(255, 255, 255, 0.98);
    text-decoration-color: rgba(147, 197, 253, 0.55);
}

/* Schedule modal */
body.phf-modal-open {
    overflow: hidden;
}

.phf-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.phf-modal[hidden] {
    display: none;
}

.phf-modal:not([hidden]) {
    animation: phfModalFadeIn 0.32s ease;
}

@keyframes phfModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.phf-modal:not([hidden]) .phf-modal-backdrop {
    animation: phfModalFadeIn 0.32s ease;
}

.phf-modal:not([hidden]) .phf-modal-card {
    animation: phfModalCardIn 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes phfModalCardIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .phf-modal:not([hidden]),
    .phf-modal:not([hidden]) .phf-modal-backdrop,
    .phf-modal:not([hidden]) .phf-modal-card {
        animation: none;
    }
}

.phf-page--app-nav .phf-modal {
    left: 240px;
    width: calc(100% - 240px);
    right: auto;
    transition: left 0.3s ease-in-out, width 0.3s ease-in-out;
}

.phf-page--app-nav .sidebar.collapsed ~ .main-content .phf-modal {
    left: 80px;
    width: calc(100% - 80px);
}

@media (max-width: 768px) {
    body.phf-page .phf-modal,
    .phf-page--app-nav .phf-modal,
    .phf-page--app-nav .sidebar.collapsed ~ .main-content .phf-modal {
        position: fixed !important;
        inset: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: none;
        margin: 0;
        padding: 1rem;
        padding-top: max(1rem, env(safe-area-inset-top, 0px));
        padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
        box-sizing: border-box;
        z-index: 1100;
    }

    body.phf-page.phf-modal-open .mobile-top-nav,
    body.phf-page.phf-modal-open .phf-public-nav {
        z-index: 1000;
    }

    .phf-modal-card {
        max-height: min(calc(100dvh - 2rem), 640px);
    }
}

.phf-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(6px);
}

.phf-modal-card {
    position: relative;
    width: min(100%, 32rem);
    max-height: min(85vh, 640px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    border: 1px solid rgba(59, 130, 246, 0.35);
    background: linear-gradient(145deg, #0a0a14 0%, #12192e 50%, #0d1220 100%);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(147, 197, 253, 0.06);
}

/* Beat styles.css generic `header` rule for logged-in app shell */
.phf-modal-card header.phf-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.5rem 1rem;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    background: linear-gradient(180deg, rgba(30, 58, 138, 0.22) 0%, rgba(10, 10, 20, 0) 100%);
    box-shadow: none;
}

.phf-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(30, 58, 138, 0.22) 0%, rgba(10, 10, 20, 0) 100%);
}

.phf-modal-eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6ee7b7;
}

.phf-modal-header h2,
.phf-modal-card header.phf-modal-header h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.phf-modal-close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.phf-modal-close:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fbbf24;
}

.phf-modal-body {
    padding: 0.5rem 0 1rem;
    overflow-y: auto;
}

.phf-schedule-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.phf-schedule-item {
    padding: 0.6rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.phf-schedule-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.1rem;
}

.phf-schedule-week {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #60a5fa;
}

.phf-schedule-online {
    font-size: 0.72rem;
    color: #34d399;
}

.phf-schedule-online i {
    margin-right: 0.25rem;
}

.phf-schedule-item-date {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.25;
}

.phf-schedule-item-time {
    margin-top: 0.05rem;
    font-size: 0.84rem;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.55);
}

.phf-schedule-item-agenda {
    margin: 0.25rem 0 0;
    font-size: 0.84rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.7);
}

#phf-schedule-modal .phf-modal-header {
    padding: 1rem 1.25rem 0.75rem;
}

#phf-schedule-modal .phf-modal-body {
    padding: 0 0 0.5rem;
}

#phf-cohort-modal .phf-modal-card {
    width: min(100%, 36rem);
}

#phf-cohort-modal .phf-modal-body {
    padding: 0 0 1.25rem;
}

.phf-modal-prose {
    margin: 0;
    padding: 1.35rem 1.5rem 0;
    font-size: 0.95rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.78);
    text-wrap: pretty;
}

.phf-schedule-empty {
    margin: 0;
    padding: 2rem 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.phf-apply-card {
    max-width: 640px;
    margin: 0 auto;
    padding: 1.75rem 1.5rem 2rem;
    border-radius: 18px;
    border: 2px solid rgba(59, 130, 246, 0.35);
    background: linear-gradient(180deg, rgba(30, 58, 120, 0.2) 0%, rgba(10, 10, 20, 0.5) 50%);
}

.phf-apply-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
}

.phf-apply-meta i {
    color: #fbbf24;
    margin-right: 0.35rem;
}

.phf-apply-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.phf-apply-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.45;
    transition: opacity 0.25s ease;
}

.phf-apply-step--active {
    opacity: 1;
}

.phf-apply-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
}

.phf-apply-step--active .phf-apply-step-num {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.5);
    color: #fbbf24;
}

.phf-apply-step-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.phf-apply-step-line {
    width: 48px;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.phf-apply-form {
    position: relative;
}

.phf-apply-stage {
    display: none;
    flex-direction: column;
    gap: 1rem;
}

.phf-apply-stage.is-active {
    display: flex;
}

.phf-apply-full {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.phf-apply-full i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 1rem;
}

.phf-apply-full h3 {
    margin: 0 0 0.5rem;
    color: white;
}

.phf-apply-full p {
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.55;
}

.phf-apply-full a {
    color: #93c5fd;
}

.phf-apply-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.phf-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.phf-req {
    color: #f87171;
    white-space: nowrap;
}

.phf-req::before {
    content: '\00a0';
}

.phf-field input,
.phf-field textarea,
.phf-field select {
    width: 100%;
    box-sizing: border-box;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.35);
    color: white;
    font-size: 0.92rem;
    font-family: inherit;
}

.phf-field select {
    cursor: pointer;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.55) 50%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.55) 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 2rem;
}

.phf-field select option {
    background: #0f172a;
    color: white;
}

.phf-field textarea {
    resize: none;
}

.phf-field input:focus,
.phf-field textarea:focus,
.phf-field select:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.55);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.phf-field-hint {
    margin: 0.4rem 0 0;
    font-size: 0.78rem;
    color: rgba(251, 191, 36, 0.85);
    line-height: 1.45;
}

.phf-field-warn {
    margin: 0.4rem 0 0;
    font-size: 0.78rem;
    color: #f87171;
    line-height: 1.45;
}

.phf-radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
}

.phf-radio {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
}

.phf-radio input {
    accent-color: #f59e0b;
}

.phf-choice-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.15rem;
}

.phf-choice-box {
    position: relative;
    flex: 1 1 7.5rem;
    max-width: 11rem;
    cursor: pointer;
}

.phf-choice-box input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.phf-choice-box-inner {
    display: block;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.88rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.35;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.phf-choice-box:hover .phf-choice-box-inner {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.06);
}

.phf-choice-box input:focus-visible + .phf-choice-box-inner {
    outline: none;
    border-color: rgba(59, 130, 246, 0.55);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.phf-choice-box input:checked + .phf-choice-box-inner {
    border-color: rgba(245, 158, 11, 0.75);
    background: rgba(245, 158, 11, 0.14);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.2);
}

.phf-field--preclose .phf-choice-row {
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
}

.phf-field--preclose .phf-choice-box {
    max-width: none;
}

.phf-field--preclose {
    padding: 1rem;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.phf-field--preclose label strong {
    color: #93c5fd;
}

.phf-apply-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.phf-btn-ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.phf-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    color: white;
}

.phf-apply-next {
    width: 100%;
    margin-top: 0.25rem;
}

.phf-apply-success {
    display: none;
    text-align: center;
    padding: 2rem 1rem;
}

.phf-apply-success i {
    font-size: 2.5rem;
    color: #4ade80;
    margin-bottom: 1rem;
}

.phf-apply-success h3 {
    margin: 0 0 0.5rem;
    color: white;
    font-size: 1.35rem;
}

.phf-apply-success p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.55;
}

@media (max-width: 900px) {
    .phf-feature-grid {
        grid-template-columns: 1fr;
    }

    .phf-charts-grid {
        grid-template-columns: 1fr;
    }

    .phf-roi,
    .phf-pros-roi,
    .phf-math-roi {
        grid-template-columns: 1fr;
    }

    .phf-roi-vs {
        transform: rotate(90deg);
        justify-self: center;
    }

    .phf-principles-grid {
        grid-template-columns: 1fr;
    }

    .phf-student-success-item + .phf-student-success-item {
        margin-top: 2.5rem;
    }

    .phf-student-success-journey {
        margin-bottom: 1.25rem;
        font-size: 0.95rem;
    }

    .phf-testimonial-video-container {
        border-radius: 12px;
    }

    .phf-value-grid {
        grid-template-columns: 1fr;
        max-width: 20rem;
    }

    .phf-value-colhead {
        display: none;
    }

    .phf-value-cell:nth-child(4)::before,
    .phf-value-cell:nth-child(5)::before,
    .phf-value-cell:nth-child(6)::before {
        display: block;
        margin-bottom: 0.35rem;
        font-size: 0.68rem;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.4);
    }

    .phf-value-cell:nth-child(4)::before {
        content: 'Education';
    }

    .phf-value-cell:nth-child(5)::before {
        content: 'Drawdown loss';
    }

    .phf-value-cell:nth-child(6)::before {
        content: 'Portfolio after crash';
    }
}

@media (max-width: 600px) {
    .phf-nav-bar {
        padding: 0.65rem 1rem;
    }

    .phf-nav-logo img {
        height: 50px;
    }

    body.phf-page:not(.phf-page--app-nav) {
        --phf-public-nav-offset: calc(50px + 1.3rem);
        padding-top: var(--phf-public-nav-offset) !important;
    }

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

    .phf-apply-actions {
        flex-direction: column-reverse;
    }

    .phf-apply-actions .phf-btn {
        width: 100%;
    }
}

/* ── Mobile compact layout (phones) ── */
@media (max-width: 768px) {
    .phf-wrap,
    .phf-page:not(.phf-page--app-nav) .phf-wrap {
        padding: 0 1rem 2rem;
    }

    .phf-page--app-nav .phf-app-shell .main-content.phf-main-content {
        margin-top: 64px;
        padding: 0 1rem 2rem !important;
    }

    .phf-page .phf-nav-logo img,
    .phf-page--app-nav .mobile-top-nav .mobile-logo {
        height: 50px;
        width: auto;
    }

    /* Hero */
    .phf-hero-top,
    body.phf-page .phf-content > section.phf-hero-top {
        padding: 1.35rem 1.25rem 1.5rem !important;
        margin-bottom: 0.65rem;
        border-radius: 14px;
    }

    body.phf-page:not(.phf-page--app-nav) .phf-hero-top,
    body.phf-page:not(.phf-page--app-nav) .phf-content > section.phf-hero-top {
        margin-top: 0.35rem;
    }

    .phf-page--app-nav .phf-hero-top,
    body.phf-page.phf-page--app-nav .phf-content > section.phf-hero-top {
        margin-top: 0 !important;
    }

    body.phf-page main.phf-welcome-wrap > header.phf-welcome-hero {
        margin-top: 0.85rem;
        margin-bottom: 0.65rem;
    }

    body.phf-page.phf-page--app-nav main.phf-welcome-wrap > header.phf-welcome-hero {
        margin-top: 0 !important;
    }

    .phf-eyebrow {
        font-size: 0.7rem;
        margin-bottom: 0.65rem;
        padding: 0.3rem 0.75rem;
    }

    .phf-hero-top .phf-hero-video,
    .phf-hero-video {
        margin-bottom: 0.85rem;
    }

    .phf-hero-top h1 {
        font-size: clamp(0.98rem, 3.5vw, 1.35rem);
        margin: 0.65rem 0 0.55rem;
        flex-wrap: nowrap;
        gap: 0.4rem;
        line-height: 1.2;
    }

    .phf-hero-top h1 .phf-hero-icon {
        flex-shrink: 0;
        font-size: 1.05em;
    }

    .phf-hero-top h1 .phf-hero-title-text {
        white-space: nowrap;
    }

    .phf-hero-top-lead {
        font-size: 0.86rem;
        line-height: 1.5;
        margin-bottom: 0.85rem;
    }

    .phf-hero-cta-wrap {
        margin-top: 0.75rem;
    }

    .phf-hero-cta,
    .phf-hero-cta.phf-hero-cta--pulse,
    a.phf-hero-cta,
    a.phf-hero-cta.phf-hero-cta--pulse {
        font-size: 0.84rem;
        padding: 0.62rem 1rem;
        background: linear-gradient(135deg, #FFCB05 0%, #e6b800 100%);
        color: #14182a;
        border: 1px solid rgba(255, 203, 5, 0.6);
        position: relative;
        z-index: 1;
    }

    .phf-hero-top .phf-hero-cta,
    .phf-hero-top a.phf-hero-cta,
    .phf-value-cta-wrap .phf-hero-cta,
    .phf-value-cta-wrap a.phf-hero-cta {
        font-size: 1.05rem;
        padding: 1rem 1.5rem;
    }

    a.phf-hero-cta:hover {
        color: #14182a;
        background: linear-gradient(135deg, #FFCB05 0%, #e6b800 100%);
    }

    .phf-hero-cta--pulse,
    a.phf-hero-cta.phf-hero-cta--pulse {
        animation: phfHeroCtaPulse 2s infinite;
    }

    /* Panels — !important beats home_excess.css `section { padding: 2rem 0 !important }` */
    .phf-panel,
    .phf-page--app-nav .phf-panel,
    body.phf-page .phf-content > section.phf-panel {
        padding: 1.35rem 1.25rem 1.5rem !important;
        margin-bottom: 0.65rem;
        border-radius: 14px;
    }

    .phf-content > .phf-feature-grid {
        padding: 1.15rem !important;
    }

    .phf-panel-header {
        margin-bottom: 0.65rem;
    }

    .phf-panel-header h2 {
        font-size: 1.12rem;
        margin-bottom: 0.3rem;
        gap: 0.4rem;
    }

    .phf-panel-header p {
        font-size: 0.82rem;
        line-height: 1.45;
    }

    /* ROI stats — side-by-side instead of tall vertical stack */
    .phf-pros-roi {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.35rem;
        margin-bottom: 0.65rem;
    }

    .phf-math-roi,
    .phf-roi:not(.phf-pros-roi) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.35rem;
        margin-bottom: 0.65rem;
    }

    .phf-roi-vs {
        display: none;
    }

    .phf-roi-stat {
        padding: 0.55rem 0.45rem;
        border-radius: 10px;
        box-shadow: none !important;
    }

    .phf-roi-stat:has(.phf-roi-value--loss),
    .phf-roi-stat:has(.phf-roi-value--gold),
    .phf-roi-stat:has(.phf-roi-value--green),
    .phf-roi-stat:has(.phf-roi-value--portfolio-red) {
        box-shadow: none !important;
    }

    .phf-roi-value,
    .phf-roi-value--hedged-loss {
        font-size: 1.15rem;
        line-height: 1.15;
        text-shadow: none !important;
    }

    .phf-roi-label {
        margin-top: 0.15rem;
        font-size: 0.6rem;
        line-height: 1.2;
    }

    .phf-roi-label br {
        display: none;
    }

    /* Event tabs */
    .phf-event-tabs {
        margin-bottom: 0.65rem;
        gap: 0.35rem;
    }

    .phf-event-tab {
        font-size: 0.72rem;
        padding: 0.35rem 0.7rem;
    }

    /* Charts */
    .phf-charts-grid {
        gap: 0.55rem;
    }

    .phf-chart-card {
        padding: 0.75rem 0.65rem 0.5rem;
        border-radius: 10px;
    }

    .phf-chart-label {
        font-size: 0.68rem;
        margin-bottom: 0.35rem;
    }

    .phf-chart {
        min-height: 155px;
    }

    .phf-chart--wide {
        min-height: 165px;
    }

    .phf-math-chart-card {
        margin-top: 0.65rem;
    }

    .phf-roi-punchline {
        margin-top: 0.65rem;
        padding: 0.6rem 0.7rem;
        font-size: 0.82rem;
        line-height: 1.45;
        border-radius: 10px;
    }

    #what-pros-do #phf-pros-punchline {
        display: none !important;
    }

    .phf-roi-footnote {
        margin-top: 0.45rem;
        font-size: 0.65rem;
    }

    /* Research note */
    .phf-math-download {
        gap: 0.85rem;
    }

    .phf-math-download-copy h2 {
        font-size: 1.1rem;
        margin-bottom: 0.45rem;
    }

    .phf-math-download-desc {
        font-size: 0.84rem;
        line-height: 1.45;
    }

    .phf-math-download .phf-form-submit {
        padding: 0.75rem 1rem;
        font-size: 0.88rem;
    }

    /* Strategy levels */
    .phf-strategy-levels-panel .phf-panel-header {
        margin-bottom: 1.25rem;
    }

    .phf-strategy-levels-panel .phf-panel-header h2 {
        font-size: 1.45rem;
        margin-bottom: 0.55rem;
    }

    .phf-strategy-levels-panel .phf-panel-header p,
    #curriculum .phf-panel-header p {
        font-size: 1.05rem;
        line-height: 1.5;
    }

    .phf-strategy-levels-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .phf-strategy-level-card {
        padding: 1.35rem 1.15rem 1.45rem;
        border-radius: 12px;
    }

    .phf-strategy-level-icon {
        width: 3rem;
        height: 3rem;
        margin-bottom: 0.85rem;
        font-size: 1.2rem;
    }

    .phf-strategy-level-card h3 {
        font-size: 1.15rem;
        margin-bottom: 0.55rem;
    }

    .phf-strategy-level-card p {
        font-size: 1rem;
    }

    /* Curriculum offerings */
    .phf-curriculum-offerings {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .phf-module-offering {
        padding: 1.25rem 1.15rem 1.35rem;
        border-radius: 14px;
    }

    .phf-module-offering-icon {
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1.05rem;
        border-radius: 12px;
    }

    .phf-module-offering-body h3 {
        font-size: 1.02rem;
    }

    .phf-module-offering-desc {
        font-size: 0.9rem;
    }

    .phf-module-offering-duration {
        font-size: 0.78rem;
    }

    .phf-curriculum {
        gap: 0.5rem;
    }

    .phf-week {
        padding: 0.85rem 0.85rem;
        gap: 0.75rem;
        border-radius: 10px;
        align-items: center;
    }

    .phf-week-num {
        width: 52px;
        height: 52px;
        min-width: 52px;
        min-height: 52px;
        max-width: 52px;
        max-height: 52px;
        flex-direction: column;
        align-self: center;
        flex-shrink: 0;
        gap: 0.1rem;
        padding: 0;
        border-radius: 10px;
    }

    .phf-week-num span {
        font-size: 0.58rem;
    }

    .phf-week-num strong {
        font-size: 0.95rem;
    }

    .phf-week-body {
        min-height: 52px;
    }

    .phf-week-body h3 {
        font-size: 0.88rem;
        margin: 0;
    }

    .phf-week-meta {
        font-size: 0.72rem;
        margin-bottom: 0;
    }

    /* Principles */
    .phf-principles-grid {
        gap: 0.5rem;
    }

    .phf-principle-card {
        padding: 0.75rem 0.7rem 0.85rem;
        border-radius: 10px;
    }

    .phf-principle-label {
        margin-bottom: 0.4rem;
        font-size: 0.65rem;
    }

    .phf-principle-icon {
        width: 2rem;
        height: 2rem;
        margin-bottom: 0.45rem;
        font-size: 0.82rem;
    }

    .phf-principle-card h3 {
        font-size: 0.88rem;
        margin-bottom: 0.25rem;
    }

    .phf-principle-card p {
        font-size: 0.78rem;
        line-height: 1.4;
    }

    /* Instructor */
    .phf-instructor-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem 0.95rem;
        gap: 0.75rem;
    }

    .phf-instructor-copy {
        text-align: center;
    }

    .phf-instructor-name {
        font-size: 1.1rem;
        justify-content: center;
    }

    .phf-instructor-bio,
    .phf-instructor-note {
        font-size: 0.82rem;
        line-height: 1.45;
    }

    .phf-student-success-journey {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.35rem;
        margin-bottom: 1.25rem;
        font-size: 0.95rem;
    }

    .phf-institutional-panel .phf-student-success-stack {
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        padding-top: 1.15rem;
        margin-top: 0.15rem;
    }

    .phf-student-success-journey-line {
        display: block;
    }

    .phf-student-success-journey-arrow--desktop {
        display: none;
    }

    .phf-student-success-journey-arrow--mobile {
        display: block;
        line-height: 1;
    }

    .phf-student-success-journey .phf-student-success-arrow {
        margin: 0;
    }

    /* Course outcome */
    .phf-audience-panel {
        padding: 1.75rem 1.25rem 1.85rem !important;
    }

    .phf-audience-panel-header {
        margin-bottom: 1.25rem;
    }

    .phf-audience-stack {
        max-width: none;
    }

    .phf-audience-stack-line {
        padding: 1.2rem 1.1rem;
        font-size: 1rem;
    }

    .phf-audience-subheader {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }

    .phf-audience-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .phf-audience-column {
        padding: 0.9rem 1rem;
    }

    .phf-audience-label {
        font-size: 0.88rem;
    }

    .phf-audience-list li {
        font-size: 0.88rem;
    }

    .phf-audience-footer {
        font-size: 0.85rem;
        margin-top: 1.15rem;
    }

    /* Value comparison — mobile layout */
    .phf-value-grid--desktop {
        display: none !important;
    }

    .phf-value-mobile {
        display: grid;
        gap: 0;
        margin-bottom: 1rem;
    }

    .phf-value-panel {
        padding: 1.25rem 1rem 1.5rem;
    }

    .phf-value-grid {
        gap: 0.4rem;
        max-width: none;
    }

    .phf-value-cell .phf-roi-stat {
        padding: 0.5rem 0.35rem;
    }

    .phf-value-cell .phf-roi-value {
        font-size: 1.05rem;
    }

    .phf-value-cell:nth-child(4)::before,
    .phf-value-cell:nth-child(5)::before,
    .phf-value-cell:nth-child(6)::before {
        margin-bottom: 0.2rem;
        font-size: 0.62rem;
    }

    .phf-value-punchline {
        margin: 0 auto 0.85rem;
        padding: 0.6rem 0.7rem;
        font-size: 0.82rem;
    }

    .phf-value-cta-wrap {
        margin-top: 0.85rem;
    }

    /* Apply */
    .phf-apply-card {
        padding: 1.15rem 1.1rem 1.25rem;
        border-radius: 14px;
    }

    .phf-apply-meta {
        gap: 0.3rem;
        margin-bottom: 0.85rem;
        font-size: 0.75rem;
    }

    .phf-apply-progress {
        margin-bottom: 1rem;
    }

    .phf-apply-step-num {
        width: 24px;
        height: 24px;
        font-size: 0.72rem;
    }

    .phf-apply-step-label {
        font-size: 0.68rem;
    }

    .phf-apply-step-line {
        width: 24px;
    }

    .phf-field label {
        font-size: 0.82rem;
    }

    .phf-field input,
    .phf-field select,
    .phf-field textarea {
        padding: 0.65rem 0.75rem;
        font-size: 0.9rem;
    }

    .phf-choice-box-inner {
        padding: 0.55rem 0.65rem;
        font-size: 0.8rem;
    }

    .phf-field--preclose {
        padding: 0.75rem;
    }

    .phf-apply-disclaimer {
        margin-top: 0.85rem;
        padding-top: 0.75rem;
        font-size: 0.68rem;
    }

    .phf-modal-prose {
        padding: 1.1rem 1.15rem 0;
        font-size: 0.86rem;
        line-height: 1.65;
    }
}

/* Application process — roadmap-style 1-2-3 */
.phf-process-panel .phf-panel-header {
    margin-bottom: 1.75rem;
}

.phf-process-roadmap--mobile {
    display: none;
}

.phf-process-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: 1.25rem;
    max-width: 980px;
    margin: 0 auto;
}

.phf-process-stop {
    flex: 1 1 0;
    min-width: 0;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.phf-process-marker {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.85rem;
    color: #fff;
    font-size: 1.2rem;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.phf-process-stop[data-step="1"] .phf-process-marker,
.phf-process-mobile-step[data-step="1"] .phf-process-marker {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.45), 0 4px 14px rgba(34, 197, 94, 0.35);
}

.phf-process-stop[data-step="2"] .phf-process-marker,
.phf-process-mobile-step[data-step="2"] .phf-process-marker {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.45), 0 4px 14px rgba(59, 130, 246, 0.35);
}

.phf-process-stop[data-step="3"] .phf-process-marker,
.phf-process-mobile-step[data-step="3"] .phf-process-marker {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.45), 0 4px 14px rgba(168, 85, 247, 0.35);
}

.phf-process-stop:hover .phf-process-marker,
.phf-process-mobile-step:hover .phf-process-marker {
    transform: scale(1.06);
}

.phf-process-card {
    width: 100%;
    min-height: 190px;
    padding: 1.35rem 1.2rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background: rgba(22, 22, 42, 0.72);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.phf-process-stop[data-step="1"]:hover .phf-process-card {
    border-color: rgba(34, 197, 94, 0.4);
}

.phf-process-stop[data-step="2"]:hover .phf-process-card {
    border-color: rgba(59, 130, 246, 0.4);
}

.phf-process-stop[data-step="3"]:hover .phf-process-card {
    border-color: rgba(168, 85, 247, 0.4);
}

.phf-process-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.52);
    margin-bottom: 0.45rem;
}

.phf-process-card h3 {
    margin: 0 0 0.55rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
}

.phf-process-card p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
}

.phf-process-mobile-row {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 420px;
    margin: 0 auto;
}

.phf-process-mobile-step {
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.phf-process-mobile-step .phf-process-card {
    min-height: 0;
    padding: 1.15rem 1rem;
}

.phf-process-mobile-step .phf-process-card h3 {
    font-size: 1rem;
}

.phf-process-mobile-step .phf-process-card p {
    font-size: 0.86rem;
}

@media (max-width: 768px) {
    .phf-process-roadmap--desktop {
        display: none;
    }

    .phf-process-roadmap--mobile {
        display: block;
    }
}

/* Application countdown */
.phf-countdown {
    margin: 0.85rem 0 0;
}

.phf-countdown-inner {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.14), rgba(37, 99, 235, 0.1));
    border: 1px solid rgba(124, 58, 237, 0.35);
    box-shadow: 0 4px 18px rgba(124, 58, 237, 0.12);
}

.phf-countdown-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.18);
    color: #7c3aed;
    flex-shrink: 0;
}

.phf-countdown-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.phf-countdown-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.phf-countdown-timer {
    font-size: 1.05rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #f5f3ff;
    letter-spacing: 0.02em;
}

.phf-countdown--urgent .phf-countdown-inner {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.16), rgba(245, 158, 11, 0.12));
    border-color: rgba(239, 68, 68, 0.45);
    animation: phf-countdown-pulse 1.6s ease-in-out infinite;
}

.phf-countdown--urgent .phf-countdown-icon {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
}

.phf-countdown--hero {
    display: flex;
    justify-content: center;
    margin: 0.5rem auto 1.25rem;
    max-width: 680px;
}

.phf-countdown-inner--hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    width: 100%;
    padding: 0.85rem 1rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.phf-countdown-hero-intro {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}

.phf-countdown-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.phf-countdown-hero-apply,
.phf-countdown-hero-sub {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.72);
}

.phf-countdown-hero-cohort {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    text-wrap: balance;
}

.phf-countdown-hero-timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
}

.phf-countdown-hero-sub {
    margin: 0 0 0.45rem;
    text-align: center;
    white-space: nowrap;
}

.phf-countdown-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 10px;
    background: rgba(251, 191, 36, 0.18);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: #fbbf24;
    font-size: 0.95rem;
    box-shadow: 0 0 16px rgba(251, 191, 36, 0.15);
}

.phf-countdown-hero-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.phf-countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 3.35rem;
    padding: 0.45rem 0.35rem 0.4rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.phf-countdown-unit-value {
    font-size: 1.35rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    color: #fff;
    letter-spacing: 0.02em;
}

.phf-countdown-unit-label {
    margin-top: 0.2rem;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.phf-countdown-unit-sep {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(251, 191, 36, 0.75);
    line-height: 1;
    margin-bottom: 0.85rem;
    user-select: none;
}

.phf-countdown-timer--a11y {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.phf-countdown--hero.phf-countdown--urgent .phf-countdown-inner--hero {
    border-color: rgba(251, 191, 36, 0.55);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(251, 191, 36, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    animation: phf-countdown-pulse 1.6s ease-in-out infinite;
}

.phf-countdown--hero.phf-countdown--urgent .phf-countdown-unit-value {
    color: #fde68a;
}

.phf-countdown--hero.phf-countdown--urgent .phf-countdown-unit-sep {
    color: #fbbf24;
}

.phf-countdown--hero .phf-countdown-inner--hero {
    position: relative;
}

.phf-value-panel .phf-countdown--hero {
    width: 100%;
    max-width: 40rem;
    margin: 1rem auto 0.85rem;
}

.phf-value-panel .phf-countdown-inner--hero {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-radius: 14px;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.phf-value-panel .phf-countdown--hero.phf-countdown--urgent .phf-countdown-inner--hero {
    border-color: rgba(251, 191, 36, 0.45);
    box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.12);
}

.phf-apply-panel .phf-countdown--hero {
    width: 100%;
    max-width: 640px;
    margin: 0 auto 1.25rem;
}

.phf-apply-panel .phf-countdown-inner--hero {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-radius: 14px;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.phf-apply-panel .phf-countdown--hero.phf-countdown--urgent .phf-countdown-inner--hero {
    border-color: rgba(251, 191, 36, 0.45);
    box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.12);
}

.phf-countdown--nav {
    display: none;
}

.phf-countdown--nav .phf-countdown-inner {
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    gap: 0.4rem;
}

.phf-countdown--nav .phf-countdown-icon {
    width: 1.35rem;
    height: 1.35rem;
    font-size: 0.65rem;
}

.phf-countdown--nav .phf-countdown-label {
    display: none;
}

.phf-countdown--nav .phf-countdown-timer {
    font-size: 0.72rem;
}

@keyframes phf-countdown-pulse {
    0%, 100% { box-shadow: 0 4px 18px rgba(239, 68, 68, 0.12); }
    50% { box-shadow: 0 4px 22px rgba(239, 68, 68, 0.28); }
}

@media (min-width: 769px) {
    .phf-countdown--nav {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .phf-countdown--hero {
        max-width: 100%;
        margin-bottom: 1rem;
    }

    .phf-countdown-inner--hero {
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem 0.65rem 0.85rem;
    }

    .phf-countdown-hero-intro {
        justify-content: center;
        text-align: left;
    }

    .phf-countdown-hero-copy {
        align-items: flex-start;
        text-align: left;
    }

    .phf-countdown-hero-cohort {
        font-size: 0.86rem;
        text-align: left;
    }

    .phf-countdown-hero-apply,
    .phf-countdown-hero-sub {
        font-size: 0.58rem;
    }

    .phf-countdown-hero-timer {
        width: 100%;
    }

    .phf-countdown-hero-sub {
        margin-bottom: 0.4rem;
    }

    .phf-countdown-unit {
        min-width: 2.75rem;
        padding: 0.4rem 0.2rem 0.35rem;
    }

    .phf-countdown-unit-value {
        font-size: 1.15rem;
    }

    .phf-countdown-unit-label {
        font-size: 0.52rem;
    }

    .phf-countdown-unit-sep {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    .phf-public-nav-actions,
    .phf-mobile-nav-actions {
        display: flex;
        align-items: center;
        gap: 0.45rem;
    }
}

/* ============================================================
   Welcome / post-payment page — elite acceptance experience
   ============================================================ */

/* Logged-out top nav: a single pulsing "Course Page" button (no hamburger).
   Always visible; label expands to "Back to Course Page" on wider screens. */
.phf-welcome-nav-course {
    display: inline-flex !important;
    align-items: center;
    gap: 0.45rem;
}

.phf-welcome-nav-course .phf-welcome-nav-course-full {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.phf-welcome-nav-course .phf-welcome-nav-course-short {
    display: none;
}

@media (max-width: 768px) {
    .phf-welcome-nav-course .phf-welcome-nav-course-full {
        display: none;
    }

    .phf-welcome-nav-course .phf-welcome-nav-course-short {
        display: inline;
    }
}

@keyframes phfWelcomeRise {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes phfWelcomeGlow {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.85; transform: translateX(-50%) scale(1.08); }
}

/* Welcome page content — gutters come from .phf-wrap / .main-content (same as PHF). */
.phf-welcome-wrap {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ---- Hero ---- */
.phf-welcome-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 0 1.75rem;
    padding: 3.25rem 2rem 3.5rem;
    border-radius: 24px;
    background:
        radial-gradient(130% 130% at 50% -25%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 55%),
        linear-gradient(135deg, #0052c4 0%, #0066cc 45%, #06316e 100%);
    box-shadow:
        0 24px 70px rgba(0, 74, 173, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* Scroll-reveal: hidden state only applies when JS is present. */
.js-reveal .phf-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-reveal .phf-reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Staggered session rows reveal once their panel scrolls into view. */
.js-reveal .phf-welcome-session {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.js-reveal .phf-welcome-panel.is-visible .phf-welcome-session {
    opacity: 1;
    transform: none;
}

.js-reveal .phf-welcome-panel.is-visible .phf-welcome-session:nth-child(2) { transition-delay: 0.07s; }
.js-reveal .phf-welcome-panel.is-visible .phf-welcome-session:nth-child(3) { transition-delay: 0.14s; }
.js-reveal .phf-welcome-panel.is-visible .phf-welcome-session:nth-child(4) { transition-delay: 0.21s; }
.js-reveal .phf-welcome-panel.is-visible .phf-welcome-session:nth-child(5) { transition-delay: 0.28s; }
.js-reveal .phf-welcome-panel.is-visible .phf-welcome-session:nth-child(6) { transition-delay: 0.35s; }
.js-reveal .phf-welcome-panel.is-visible .phf-welcome-session:nth-child(n+7) { transition-delay: 0.42s; }

@media (prefers-reduced-motion: reduce) {
    .js-reveal .phf-reveal,
    .js-reveal .phf-welcome-session {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* gold acceptance glow */
.phf-welcome-hero::after {
    content: '';
    position: absolute;
    top: -55%;
    left: 50%;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.22), rgba(251, 191, 36, 0) 62%);
    transform: translateX(-50%);
    animation: phfWelcomeGlow 7s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* shine sweep */
.phf-welcome-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: phfShine 8s infinite;
    pointer-events: none;
    z-index: 1;
}

.phf-welcome-hero > * {
    position: relative;
    z-index: 2;
}

.phf-welcome-title {
    margin: 0;
    /* extra padding gives glyph descenders (e.g. the "g" in August) and the
       last letter room so background-clipped text is never cropped */
    padding: 0.04em 0.12em 0.18em;
    color: #ffffff;
    font-weight: 700;
    font-size: clamp(2.1rem, 5vw, 3.25rem);
    line-height: 1.18;
    letter-spacing: -0.015em;
    text-shadow: 0 2px 26px rgba(0, 0, 0, 0.25);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .phf-welcome-title {
        background: linear-gradient(180deg, #ffffff 0%, #d4e6ff 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

.phf-welcome-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1.3rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #ffffff;
    white-space: nowrap;
    margin: 1.4rem 0 0;
}

.phf-welcome-eyebrow i {
    font-size: 0.95rem;
    color: #fbbf24;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.55));
}

/* ---- Schedule panel ---- */
.phf-welcome-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 22px;
    background:
        linear-gradient(150deg, #0b0e1a 0%, #121a30 52%, #0c1120 100%) padding-box,
        linear-gradient(135deg, rgba(59, 130, 246, 0.6), rgba(251, 191, 36, 0.32) 52%, rgba(59, 130, 246, 0.6)) border-box;
    box-shadow:
        0 26px 70px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(147, 197, 253, 0.08);
    /* !important defeats the global `section { padding: ... !important }` reset
       (home_excess.css, ≤768px) that otherwise zeroes these <section> panels. */
    padding: 2.25rem 2.25rem 2.5rem !important;
}

.phf-welcome-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.07), transparent);
    animation: phfShine 14s infinite;
    pointer-events: none;
}

.phf-lectures-panel::before {
    display: none;
}

.phf-welcome-panel > * {
    position: relative;
    z-index: 1;
}

.phf-welcome-panel-head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin: 0 0 0.95rem;
}

.phf-welcome-panel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(59, 130, 246, 0.08));
    border: 1px solid rgba(59, 130, 246, 0.42);
    color: #9cc4ff;
    font-size: 1.15rem;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(0, 74, 173, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.phf-welcome-panel-eyebrow {
    margin: 0 0 0.15rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #8fbcff;
}

.phf-welcome-panel-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.015em;
}

.phf-welcome-panel-sub {
    margin: 0 0 1.9rem;
    font-size: 0.98rem;
    line-height: 1.72;
    color: rgba(232, 232, 240, 0.74);
}

.phf-welcome-panel-sub a {
    color: #8fbcff;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(143, 188, 255, 0.4);
}

.phf-welcome-panel-sub a:hover {
    color: #b9d6ff;
    border-bottom-color: rgba(143, 188, 255, 0.8);
}

/* ---- Sessions timeline ---- */
.phf-welcome-sessions {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    --phf-session-pad-y: 0.55rem;
    --phf-session-index-size: 36px;
    --phf-session-index-center: calc(var(--phf-session-pad-y) + var(--phf-session-index-size) / 2);
    --phf-session-line-x: 17px;
}

.phf-welcome-session:not(:last-child)::after {
    content: '';
    position: absolute;
    left: var(--phf-session-line-x);
    top: var(--phf-session-index-center);
    bottom: calc(-1 * var(--phf-session-index-center));
    width: 2px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.7) 0%, rgba(251, 191, 36, 0.5) 100%);
    border-radius: 2px;
    z-index: 0;
    pointer-events: none;
}

.phf-welcome-session {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.55rem 0;
    position: relative;
}

.phf-welcome-session-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066cc 0%, #004aad 100%);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow:
        0 0 0 5px #0e1426,
        0 4px 14px rgba(0, 74, 173, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.phf-welcome-session-body {
    min-width: 0;
    flex: 1;
    padding: 0.35rem 0.95rem;
    margin: -0.1rem 0;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.phf-welcome-session:hover .phf-welcome-session-body {
    background: rgba(59, 130, 246, 0.09);
    border-color: rgba(59, 130, 246, 0.28);
    transform: translateX(3px);
}

.phf-welcome-session:hover .phf-welcome-session-index {
    transform: scale(1.08);
    box-shadow:
        0 0 0 5px #0e1426,
        0 6px 20px rgba(0, 102, 204, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.phf-welcome-session-title {
    margin: 0 0 0.3rem;
    font-size: 1.04rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.005em;
}

.phf-welcome-session-meta {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(232, 232, 240, 0.6);
}

.phf-welcome-empty {
    margin: 0;
    padding: 1.15rem 1.3rem;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px dashed rgba(255, 255, 255, 0.18);
    color: rgba(232, 232, 240, 0.6);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ---- Actions ---- */
.phf-welcome-actions {
    margin: 2rem 0 0;
    text-align: center;
}

.phf-welcome-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.3rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.92rem;
    font-weight: 600;
    color: #8fbcff;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.phf-welcome-back:hover {
    color: #d4e6ff;
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .phf-welcome-hero {
        padding: 2.2rem 1.1rem 2.4rem;
        border-radius: 18px;
        margin-bottom: 1.25rem;
    }

    .phf-welcome-title {
        font-size: clamp(1.8rem, 8.5vw, 2.4rem);
    }

    /* Allow the badge to wrap when space gets tight so it never touches the
       hero edges; it still stays on one line whenever it fits. Use inline-block
       so the chess knight icon flows with the text (and stays beside the first line)
       rather than breaking onto its own line above it. */
    .phf-welcome-eyebrow {
        display: inline-block;
        white-space: normal;
        text-align: center;
        max-width: 100%;
    }

    .phf-welcome-eyebrow i {
        margin-right: 0.5rem;
    }

    .phf-welcome-panel {
        padding: 1.4rem 1.25rem 1.6rem !important;
        border-radius: 18px;
    }

    .phf-lectures-panel {
        margin-bottom: 1.25rem;
    }

    .phf-welcome-panel-head {
        gap: 0.7rem;
        margin-bottom: 0.75rem;
    }

    .phf-welcome-panel-icon {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
        border-radius: 12px;
    }

    .phf-welcome-panel-title {
        font-size: 1.25rem;
    }

    .phf-welcome-panel-sub {
        font-size: 0.92rem;
        margin-bottom: 1.4rem;
    }

    .phf-welcome-session {
        gap: 0.8rem;
    }

    .phf-welcome-session-body {
        padding: 0.25rem 0.7rem;
    }

    .phf-welcome-session-title {
        font-size: 0.96rem;
    }

    .phf-welcome-session-meta {
        font-size: 0.84rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .phf-welcome-hero,
    .phf-welcome-panel,
    .phf-welcome-actions,
    .phf-welcome-session {
        animation: none !important;
    }

    .phf-welcome-hero::after,
    .phf-welcome-hero::before,
    .phf-welcome-panel::before {
        animation: none !important;
    }
}

/* ---- Recommended lectures carousel ---- */
.phf-lectures-panel {
    margin: 0 0 1.75rem;
}

.phf-lectures-carousel {
    position: relative;
}

.phf-lectures-viewport {
    overflow: hidden;
    border-radius: 16px;
}

.phf-lectures-track {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.phf-lecture-slide {
    flex: 0 0 100%;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    gap: 1.4rem;
    padding: 0.25rem;
    align-items: center;
}

.phf-lecture-thumb {
    position: relative;
    flex: 0 0 44%;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.3);
    background: #05070f;
    aspect-ratio: 16 / 9;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.48);
}

.phf-lecture-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.phf-lecture-thumb:hover img {
    transform: scale(1.05);
}

.phf-lecture-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    color: #ffffff;
    font-size: 1.05rem;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.phf-lecture-thumb:hover .phf-lecture-play {
    transform: scale(1.12);
    background: #e11d2a;
    border-color: #e11d2a;
}

.phf-lecture-order {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fbbf24;
    background: rgba(0, 0, 0, 0.62);
    border: 1px solid rgba(251, 191, 36, 0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.phf-lecture-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.phf-lecture-step {
    margin: 0 0 0.55rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8fbcff;
}

.phf-lecture-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #004aad;
    color: #ffffff;
    font-size: 0.72rem;
    letter-spacing: 0;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 74, 173, 0.5);
}

.phf-lecture-title {
    margin: 0 0 0.55rem;
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

.phf-lecture-title:hover {
    color: #b9d6ff;
}

.phf-lecture-why {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: rgba(232, 232, 240, 0.66);
}

.phf-lecture-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.9rem 0 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: #8fbcff;
    text-decoration: none;
    transition: color 0.2s ease, gap 0.2s ease;
}

.phf-lecture-cta i {
    font-size: 0.72rem;
}

.phf-lecture-cta:hover {
    color: #d4e6ff;
    gap: 0.55rem;
}

/* Bottom control bar: prev · dots · next */
.phf-lectures-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    margin-top: 1.4rem;
}

.phf-lectures-nav {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(10, 14, 26, 0.85);
    color: #cfe0ff;
    border: 1px solid rgba(59, 130, 246, 0.4);
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.phf-lectures-nav:hover {
    background: rgba(0, 74, 173, 0.92);
    color: #ffffff;
    transform: translateY(-1px);
}

.phf-lectures-nav:disabled {
    opacity: 0.3;
    cursor: default;
}

.phf-lectures-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.phf-lectures-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.22);
    transition: background 0.25s ease, width 0.25s ease, border-radius 0.25s ease;
}

.phf-lectures-dot.is-active {
    width: 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0066cc, #fbbf24);
}

@media (max-width: 640px) {
    .phf-lecture-slide {
        flex-direction: column;
        gap: 0.85rem;
        align-items: stretch;
        padding: 0;
    }

    .phf-lecture-thumb {
        flex: none;
        width: 100%;
    }

    .phf-lectures-controls {
        margin-top: 1.1rem;
        gap: 0.9rem;
    }

    .phf-lectures-nav {
        width: 36px;
        height: 36px;
    }

    .phf-lecture-step {
        font-size: 0.82rem;
        margin-bottom: 0.4rem;
    }

    .phf-lecture-title {
        font-size: 1.02rem;
        margin-bottom: 0.45rem;
    }

    .phf-lecture-why {
        font-size: 0.88rem;
    }

    .phf-lectures-dots {
        gap: 0.6rem;
    }

    .phf-lectures-dot {
        width: 9px;
        height: 9px;
    }

    .phf-lectures-dot.is-active {
        width: 24px;
    }
}
