        font-size: 1.2rem;
    }
    
    .dynamic-subject {
        min-width: min(300px, 90vw);
    }

    .university-logos-grid {
        gap: 1rem; /* Even smaller gap on small mobile */
        animation-duration: 20s;
    }
    
    .logo-item {
        width: 3.5rem; /* 56px - even smaller */
        height: 1.5rem; /* 24px */
    }
    
    .trust-title {
        font-size: 0.625rem; /* Even smaller on very small screens */
        white-space: normal; /* Allow wrapping if needed */
        line-height: 1.2;
    }
}


/* ========================================
   FEATURES TABS SECTION - Headspace Style
   ======================================== */

.features-tabs-section {
    padding: 0;
    background: var(--bg-white);
    overflow: hidden;
}

.features-tabs-header {
    text-align: center;
    padding: 0 var(--container-padding) var(--space-lg);
}

.features-tabs-title {
    font-family: var(--font-family);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

/* Tab Navigation - Larger pills with circle indicator */
.features-tabs-nav {
    display: flex;
    justify-content: flex-start;
    gap: var(--space-sm);
    padding: 0 var(--container-padding) var(--space-sm);
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
}

.features-tabs-nav::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

@media (max-width: 640px) {
    .feature-tab {
        font-size: 0.75rem;
    }

    .tab-icon {
        width: 28px;
        height: 28px;
    }
}

.feature-tab {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    border: none;
    background: var(--gray-100);
    border-radius: 100px;
    font-family: var(--font-family);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.2s cubic-bezier(0.32, 0.94, 0.6, 1), color 0.2s cubic-bezier(0.32, 0.94, 0.6, 1);
    white-space: nowrap;
}

.feature-tab:hover {
    background: var(--gray-200);
    color: var(--text-primary);
}

.feature-tab.active {
    background: #111111;
    color: white;
}

/* Tab icons */
.tab-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: transform 0.2s cubic-bezier(0.32, 0.94, 0.6, 1);
}

.feature-tab.active .tab-icon {
    transform: scale(1.1);
}

.tab-label {
    transition: color 0.2s ease;
}

/* Splide Carousel */
.features-carousel {
    background: #FFFFFF;
    padding: var(--space-xl) 0 0;
    position: relative;
}

.features-carousel .splide__track {
    overflow: hidden;
    padding: 0 10%;
}

.features-carousel .splide__list {
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    transition: transform 150ms ease-out;
    will-change: transform;
}

.features-carousel .splide__slide {
    flex: 0 0 100%;
    min-width: 0;
    display: flex;
}

.features-carousel.is-pending {
    min-height: clamp(380px, 52vw, 720px);
}

.features-carousel.is-pending .splide__track {
    visibility: visible;
    max-height: none;
    overflow: hidden;
}

.features-carousel.is-pending::before {
    content: 'Loading live interactions...';
    position: absolute;
    top: var(--space-lg);
    right: calc(var(--container-padding) + var(--space-lg));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(5, 150, 105, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0;
    text-align: center;
    z-index: 3;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.features-carousel.is-pending .splide__list {
    display: block;
}

.features-carousel.is-pending .splide__slide {
    display: none;
}

.features-carousel.is-pending .splide__slide:first-child {
    display: block;
}

.features-carousel.is-ready::before {
    content: none;
}

@media (max-width: 900px) {
    .features-carousel .splide__track {
        padding: 0 5%;
    }
}

@media (max-width: 640px) {
    .features-carousel .splide__track {
        padding: 0 3%;
    }
}

/* ========================================
   FORM STYLES - Consistent with Landing Page
   ======================================== */

/* Form inputs - sharp edges, black borders */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="url"],
textarea,
select,
.form-control,
.form-input {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    border: 1px solid #000000;
    border-radius: 6px;
    background: #FFFFFF;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: var(--text-base);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus,
.form-control:focus,
.form-input:focus {
    border-color: var(--green-primary);
    box-shadow: 0 0 0 1px var(--green-primary);
    outline: none;
}

/* Form labels */
label,
.form-label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: var(--font-semibold);
    color: #000000;
    font-size: var(--text-sm);
}

/* Form placeholders */
input::placeholder,
textarea::placeholder {
    color: var(--text-tertiary);
    opacity: 0.7;
}

/* Submit buttons - consistent with CTA button */
input[type="submit"],
button[type="submit"],
.submit-button,
.form-submit {
    background: #1DB954;
    color: white;
    border: 1px solid #1DB954;
    padding: var(--space-md) var(--space-2xl);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    font-family: var(--font-family);
    border-radius: 0.7em;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

input[type="submit"]:hover,
button[type="submit"]:hover,
.submit-button:hover,
.form-submit:hover {
    background: #1AA34A;
    color: white;
}

/* Disabled form elements */
input:disabled,
textarea:disabled,
select:disabled,
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* iOS-specific performance fixes */
@supports (-webkit-touch-callout: none) {
    html {
        -webkit-overflow-scrolling: touch;
    }

    body {
        -webkit-overflow-scrolling: touch;
        overflow-x: hidden;
    }

    .navbar,
    .card-hover-state,
    .modal-overlay {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.95);
    }

    .animated-element {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-overflow-scrolling: touch) {
    body {
        -webkit-overflow-scrolling: touch;
    }

    .fixed-element {
        -webkit-transform: translateZ(0);
    }
}

/* ========================================
   HERO SPLIT LAYOUT
   ======================================== */
.hero-split {
    margin-top: 64px;
    padding: 3.75rem 0;
    background: white;
    position: relative;
}

.hero-split::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../assets/images/hero-background.webp');
    background-image: -webkit-image-set(
        url('../assets/images/hero-background.avif') type('image/avif'),
        url('../assets/images/hero-background.webp') type('image/webp')
    );
    background-image: image-set(
        url('../assets/images/hero-background.avif') type('image/avif'),
        url('../assets/images/hero-background.webp') type('image/webp')
    );
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.hero-split::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.84) 0%,
        rgba(255, 255, 255, 0.72) 18%,
        rgba(255, 255, 255, 0.48) 36%,
        rgba(255, 255, 255, 0.18) 54%,
        rgba(255, 255, 255, 0) 74%
    );
    pointer-events: none;
    z-index: 0;
}

.hero-split-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 max(1.5rem, 8%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.hero-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 40rem;
}

.hero-main-headline {
    font-size: clamp(2rem, 3.5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.82), 0 10px 28px rgba(255, 255, 255, 0.4);
}

.hero-subtext {
    font-size: clamp(1.1rem, 1.75vw, 1.4rem);
    color: var(--text-secondary);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72), 0 8px 22px rgba(255, 255, 255, 0.3);
}

.hero-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.signup-box {
    background: var(--icy-aqua-light);
    border: 1px solid var(--icy-aqua);
    border-radius: 12px;
    padding: 2rem 2.25rem;
    width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.signup-headline {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 0.5rem;
}

.signup-subtext {
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 1.25rem;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.signup-email-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #E8E5E1;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.signup-email-input:focus {
    outline: none;
    border-color: var(--green-primary);
}

.signup-email-input::placeholder {
    color: #9ca3af;
}

.signup-submit-btn {
    display: inline-block;
    padding: 0.875rem 2.5rem;
    background: #1DB954;
    color: white;
    border: none;
    border-radius: 0.7em;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    align-self: flex-start;
    text-decoration: none;
}

.signup-submit-btn:hover {
    background: #1AA34A;
}

.article-back {
    display: inline-block;
    margin-bottom: 24px;
    padding: 8px 16px;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    text-decoration: none;
    background: #f5f3f0;
    border: 1px solid #e8e4df;
    border-radius: 6px;
    transition: background 0.15s, border-color 0.15s;
}

.article-back:hover {
    background: #ebe7e2;
    border-color: #d6d0c9;
    color: var(--text-primary);
}

.cta-microcopy {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

.signup-no-cc {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.signup-terms {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-align: center;
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.signup-terms a {
    color: var(--text-secondary);
    text-decoration: underline;
}

/* Tablet + Mobile */
@media (max-width: 1024px) {
    .hero-split {
        padding: 2rem 0 1.5rem;
    }

    .hero-split-container {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
        padding: 0 max(1.5rem, 6%);
    }

    .hero-left {
        align-items: center;
    }

    .hero-right {
        width: 100%;
        padding: 0 3.75rem;
    }

    .signup-box {
        width: 100%;
        max-width: 100%;
        padding: 1.25rem 1.5rem;
    }

    .signup-headline {
        font-size: 1.15rem;
        margin-bottom: 0.25rem;
    }

    .signup-subtext {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }

    .signup-email-input {
        padding: 0.65rem 0.875rem;
        font-size: 0.9rem;
    }

    .signup-submit-btn {
        padding: 0.65rem 3rem;
        font-size: 0.95rem;
        align-self: center;
    }
}

/* ========================================
   LEARNING PROOF SECTION
   ======================================== */
.learning-proof-section {
    padding: 0 var(--container-padding);
    background: #ffffff;
}

.learning-proof-shell {
    max-width: 1400px;
    margin: 0 auto;
}

.learning-proof-header {
    max-width: 780px;
    margin: 0 auto 1.75rem;
    text-align: center;
}

.learning-proof-title {
    font-size: clamp(2rem, 4.2vw, 3.1rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}

.learning-proof-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1.14fr);
    grid-template-areas:
        "stat evidence"
        "outcome outcome";
    gap: clamp(1.35rem, 3vw, 2.25rem);
    align-items: start;
}

.learning-proof-stat-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    grid-area: stat;
    align-self: stretch;
}

.learning-proof-stat-block {
    display: grid;
    gap: 0.38rem;
    justify-items: center;
    text-align: center;
}

.learning-proof-stat-value {
    font-size: clamp(2.8rem, 5.5vw, 4rem);
    line-height: 0.9;
    letter-spacing: -0.06em;
    font-weight: 800;
    color: var(--text-primary);
}

.learning-proof-stat-copy {
    display: flex;
    flex-direction: column;
    gap: 0.14rem;
    max-width: 17rem;
    align-items: center;
}

.learning-proof-stat-copy strong {
    font-size: 1.3rem;
    line-height: 1.18;
    color: var(--text-primary);
}

.learning-proof-stat-copy span {
    font-size: 1.1rem;
    line-height: 1.42;
    color: var(--text-secondary);
}

.learning-proof-outcome-header {
    grid-area: header;
    padding: 0 0.2rem;
    text-align: center;
}

.learning-proof-outcome-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.learning-proof-outcome-subtitle {
    font-size: 1.08rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

.learning-proof-evidence-column {
    display: block;
    grid-area: evidence;
    align-self: center;
}

.learning-proof-outcome-row {
    grid-area: outcome;
    display: grid;
    width: min(100%, 1080px);
    justify-self: center;
    grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.48fr);
    grid-template-areas: "chart header";
    gap: 2.5rem;
    align-items: center;
}

.learning-proof-chart {
    position: relative;
    min-height: 292px;
    padding: 1rem 1rem 0.55rem;
    border: 1px solid rgba(5, 150, 105, 0.16);
    border-radius: 24px;
    background: #ffffff;
}

.learning-proof-chart svg {
    max-width: 100%;
    height: auto;
    display: block;
}

.learning-proof-chart::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
    pointer-events: none;
}

.learning-proof-chart--outcome {
    grid-area: chart;
    min-height: 330px;
}

@media (max-width: 1180px) {
    .learning-proof-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "stat"
            "evidence"
            "outcome";
    }

    .learning-proof-evidence-column {
        max-width: 760px;
        margin: 0 auto;
    }

    .learning-proof-stat-panel {
        max-width: 760px;
        margin: 0 auto;
    }

    .learning-proof-outcome-row {
        max-width: 760px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 720px) {
    .learning-proof-section {
        padding: 0 1rem;
    }

    .learning-proof-outcome-row {
        grid-template-columns: 1fr;
        grid-template-areas:
            "chart"
            "header";
        gap: 0.85rem;
    }

    .learning-proof-outcome-title {
        font-size: 1.22rem;
    }

    .learning-proof-stat-block {
        justify-items: center;
        text-align: center;
    }

    .learning-proof-chart {
        min-height: 252px;
        padding: 0.85rem 0.85rem 0.4rem;
        border-radius: 20px;
    }

    .learning-proof-chart--outcome {
        min-height: 300px;
    }
}

/* ========================================
   COURSE CATEGORIES SECTION - CAROUSEL
   ======================================== */
.course-categories {
    padding: 0;
    background: var(--bg-warm-gray);
    overflow: hidden;
}

.categories-container {
    max-width: min(82vw, 1300px);
    margin: 0 auto;
    padding: 0 var(--space-3xl);
}

.categories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.categories-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.2;
}

.categories-nav {
    display: none;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.category-image-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
    text-decoration: none;
    display: block;
    pointer-events: none;
}

.category-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-image-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(0,0,0,0.6);
}

.category-image-title {
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    font-weight: 700;
    margin-bottom: var(--space-xs);
    line-height: 1.25;
    color: white;
}

.category-image-subtitle {
    font-size: clamp(0.75rem, 1.3vw, 0.88rem);
    opacity: 0.9;
    font-weight: 400;
    color: white;
    line-height: 1.4;
}

/* CTA button in categories header */
.categories-cta-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.6em 1.2em;
    background: var(--green-primary, #059669);
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 999px;
    transition: opacity 0.2s ease;
}

.categories-cta-link:hover {
    opacity: 0.85;
}

.categories-cta-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .categories-container {
        padding: 0 var(--space-lg);
    }
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    .category-image-overlay {
        padding: var(--space-sm);
    }
}

/* ========================================
   HOW IT WORKS SECTION
   ======================================== */
.how-it-works-section {
    padding: 0 var(--container-padding);
    background: var(--bg-warm-gray);
}

.hiw-section-title {
    font-size: clamp(2rem, 4.2vw, 3.1rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 2rem;
}

.platform-mock-window {
    width: 100%;
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #e7e5e4;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.pmw-titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: #fafaf9;
    border-bottom: 1px solid #eceae8;
    flex-shrink: 0;
}

.pmw-dots {
    display: flex;
    gap: 4px;
}

.pmw-dots span {
    width: 7px;
    height: 7px;
    display: block;
    border-radius: 999px;
}

.pmw-dots span:nth-child(1) {
    background: #ef4444;
}

.pmw-dots span:nth-child(2) {
    background: #eab308;
}

.pmw-dots span:nth-child(3) {
    background: #22c55e;
}

.pmw-url {
    flex: 1;
    padding: 2px 10px;
    border: 1px solid #eceae8;
    border-radius: 999px;
    background: #ffffff;
    color: #a8a29e;
    font-size: 9px;
    text-align: center;
}

.pmw-mode-body {
    flex: 1;
    min-height: 0;
}

.pmw-embed-wrap {
    flex: 1;
    min-height: 0;
    isolation: isolate;
}

.pmw-embed-wrap > .pmw-embed-iframe,
.pmw-embed-wrap > .pmw-embed-shadow {
    opacity: 0;
    z-index: 2;
    transition: opacity 220ms ease;
}

.pmw-embed-wrap.is-live-ready > .pmw-embed-iframe,
.pmw-embed-wrap.is-live-ready > .pmw-embed-shadow {
    opacity: 1;
}

.pmw-poster {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    padding: 12px;
    background:
        radial-gradient(circle at top left, rgba(16, 185, 129, 0.16), transparent 45%),
        linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
    transition: opacity 220ms ease;
}

.pmw-embed-wrap.is-live-ready .pmw-poster {
    opacity: 0;
    pointer-events: none;
}

.pmw-poster-surface,
.pmw-poster-create-modal,
.pmw-poster-session-shell {
    width: 100%;
    height: 100%;
    border: 1px solid #eceae8;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.pmw-poster-library .pmw-poster-surface {
    display: flex;
}

.pmw-poster-library-rail {
    width: 22%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 10px;
    background: #fafaf9;
    border-right: 1px solid #eceae8;
}

.pmw-poster-logo-dot {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.pmw-poster-nav-pill,
.pmw-poster-chip,
.pmw-poster-step,
.pmw-poster-practice-pill {
    display: block;
    border-radius: 999px;
    background: #e7e5e4;
}

.pmw-poster-nav-pill {
    width: 80%;
    height: 9px;
}

.pmw-poster-nav-pill.is-active {
    background: #d1fae5;
}

.pmw-poster-library-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
}

.pmw-poster-searchbar {
    height: 16px;
    border-radius: 999px;
    background: #f5f5f4;
}

.pmw-poster-chip-row {
    display: flex;
    gap: 6px;
}

.pmw-poster-chip {
    width: 50px;
    height: 12px;
}

.pmw-poster-chip.is-active {
    background: #1c1917;
}

.pmw-poster-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.pmw-poster-tile,
.pmw-poster-upload-zone,
.pmw-poster-preview-page,
.pmw-poster-note-card,
.pmw-poster-practice-card,
.pmw-poster-practice-side {
    display: block;
    border: 1px solid #eceae8;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

.pmw-poster-tile {
    min-height: 54px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0, rgba(15, 23, 42, 0.05) 28px, transparent 28px),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.pmw-poster-create-modal {
    padding: 14px;
    background:
        radial-gradient(circle at top, rgba(16, 185, 129, 0.12), transparent 42%),
        #ffffff;
}

.pmw-poster-step-row {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.pmw-poster-step {
    flex: 1;
    height: 10px;
}

.pmw-poster-step.is-done {
    background: #d1fae5;
}

.pmw-poster-step.is-active {
    background: #10b981;
}

.pmw-poster-create-body {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 10px;
    height: calc(100% - 22px);
}

.pmw-poster-upload-card,
.pmw-poster-preview-card {
    border: 1px solid #eceae8;
    border-radius: 12px;
    background: #ffffff;
    padding: 12px;
}

.pmw-poster-upload-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pmw-poster-heading {
    display: block;
    width: 54%;
    height: 11px;
    border-radius: 999px;
    background: #1f2937;
}

.pmw-poster-line {
    display: block;
    height: 8px;
    border-radius: 999px;
    background: #e7e5e4;
}

.pmw-poster-line.short {
    width: 68%;
}

.pmw-poster-upload-zone {
    flex: 1;
    min-height: 58px;
    background:
        repeating-linear-gradient(
            -45deg,
            rgba(16, 185, 129, 0.08) 0,
            rgba(16, 185, 129, 0.08) 8px,
            rgba(255, 255, 255, 0.75) 8px,
            rgba(255, 255, 255, 0.75) 16px
        ),
        #f8fafc;
}

.pmw-poster-button {
    display: block;
    width: 42%;
    height: 13px;
    border-radius: 999px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.pmw-poster-preview-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pmw-poster-preview-bar {
    display: block;
    width: 72%;
    height: 10px;
    border-radius: 999px;
    background: #f3f4f6;
}

.pmw-poster-preview-page {
    flex: 1;
    min-height: 88px;
}

.pmw-poster-session-shell {
    display: grid;
    grid-template-columns: 14% 1fr 30%;
    background: #ffffff;
}

.pmw-poster-session-nav {
    border-right: 1px solid #eceae8;
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(248, 250, 252, 1)),
        #fafaf9;
}

.pmw-poster-session-canvas {
    position: relative;
    background:
        linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
        #fbfdff;
    background-size: 22px 22px;
}

.pmw-poster-focus-chip {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 56px;
    height: 13px;
    border-radius: 999px;
    background: #fef3c7;
}

.pmw-poster-note-card {
    position: absolute;
    width: 88px;
    height: 52px;
}

.pmw-poster-note-card.is-primary {
    top: 42px;
    left: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
}

.pmw-poster-note-card.is-secondary {
    top: 108px;
    left: 86px;
    background: linear-gradient(180deg, #ffffff 0%, #ecfdf5 100%);
}

.pmw-poster-note-card.is-tertiary {
    top: 34px;
    right: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fefce8 100%);
}

.pmw-poster-session-chat,
.pmw-poster-practice-side {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-left: 1px solid #eceae8;
    background: #fafaf9;
}

.pmw-poster-chat-bubble {
    display: block;
    height: 16px;
    border-radius: 10px;
    background: #e7e5e4;
}

.pmw-poster-chat-bubble.is-user {
    margin-left: 24px;
    background: #dcfce7;
}

.pmw-poster-chat-bubble.wide {
    height: 28px;
}

.pmw-poster-practice .pmw-poster-session-shell {
    grid-template-columns: 22% 1fr 26%;
}

.pmw-poster-practice-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: #fafaf9;
    border-right: 1px solid #eceae8;
}

.pmw-poster-practice-pill {
    width: 100%;
    height: 14px;
}

.pmw-poster-practice-pill.is-active {
    background: #dbeafe;
}

.pmw-poster-practice-card {
    margin: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pmw-poster-choice {
    display: block;
    height: 18px;
    border-radius: 10px;
    background: #f3f4f6;
}

.pmw-poster-choice.is-selected {
    background: #dbeafe;
    border: 1px solid #60a5fa;
}

.pmw-poster-score-ring {
    display: block;
    width: 44px;
    height: 44px;
    margin-bottom: 6px;
    border-radius: 999px;
    border: 6px solid #e7e5e4;
    border-top-color: #10b981;
}

.how-it-works-section.is-pending .pmw-container {
    position: relative;
    isolation: isolate;
    border: 1px solid rgba(5, 150, 105, 0.12);
    background: linear-gradient(135deg, #f9fcfb 0%, #eef6f2 100%);
    box-shadow: var(--shadow-sm);
}

.how-it-works-section.is-pending .pmw-container > * {
    display: none;
}

.how-it-works-section.is-pending .pmw-container::after {
    content: 'Loading preview...';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: var(--space-lg);
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(240, 247, 243, 0.96) 100%),
        repeating-linear-gradient(
            -45deg,
            rgba(5, 150, 105, 0.04) 0,
            rgba(5, 150, 105, 0.04) 10px,
            rgba(255, 255, 255, 0.2) 10px,
            rgba(255, 255, 255, 0.2) 20px
        );
}

.how-it-works-section.is-ready .pmw-container::after {
    content: none;
}

.hiw-flow {
    display: flex;
    justify-content: center;
    gap: var(--space-3xl);
}

.hiw-step-group {
    flex: 1;
    max-width: 50%;
    text-align: center;
}

.hiw-step-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px;
}

.hiw-step-num {
    color: #10b981;
    font-weight: 700;
}

.hiw-branches,
.hiw-modes {
    display: flex;
    align-items: stretch;
}

.hiw-branch,
.hiw-mode {
    flex: 1;
    min-width: 0;
    padding: var(--space-md);
}

.hiw-branch-icon,
.hiw-mode-icon {
    max-width: min(340px, 100%);
    width: 100%;
    aspect-ratio: 5 / 4;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto 8px;
}

.hiw-branch-icon img,
.hiw-mode-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hiw-branch-desc,
.hiw-mode-desc {
    font-size: 1rem;
    color: #374151;
    margin: 0 auto;
    line-height: 1.5;
    max-width: 280px;
}

.hiw-mode-desc strong {
    color: #111827;
}

.hiw-branch-divider,
.hiw-mode-divider {
    width: 2px;
    height: 180px;
    background: #d1d5db;
    align-self: center;
    flex-shrink: 0;
}

@media (min-width: 1200px) {
    .hiw-flow { gap: var(--space-4xl); }
}

@media (max-width: 1100px) {
    .hiw-step-title {
        font-size: 1.25rem;
    }

    .hiw-branch-desc,
    .hiw-mode-desc {
        font-size: 0.9rem;
    }

    .hiw-branch-divider,
    .hiw-mode-divider {
        height: 120px;
    }
}

@media (max-width: 899px) {
    .hiw-flow {
        flex-direction: column;
        align-items: center;
        gap: var(--space-2xl);
    }

    .hiw-step-group {
        max-width: 100%;
        width: 100%;
    }

    .hiw-branches,
    .hiw-modes {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .how-it-works-section {
        padding: 0 var(--space-sm);
    }

    .hiw-step-title {
        font-size: 1.15rem;
    }

    .hiw-branches,
    .hiw-modes {
        max-width: 100%;
    }

    .hiw-branch,
    .hiw-mode {
        padding: var(--space-xs);
    }

    .hiw-branch-icon,
    .hiw-mode-icon {
        max-width: 100%;
    }

    .hiw-branch-desc,
    .hiw-mode-desc {
        font-size: 0.75rem;
        max-width: 100%;
    }

    .hiw-branch-divider,
    .hiw-mode-divider {
        height: 100px;
    }
}
