body {
    font-family: 'Lexend', sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* ============================
   Landing Theme Tokens
   ============================ */
body[data-theme="light"] {
    --landing-bg: #f6f6f8;
    --landing-surface: #ffffff;
    --landing-surface-soft: #f8f9fa;
    --landing-border: #dee2e6;
    --landing-text: #111318;
    --landing-muted: #616f89;
    --brand-logo-primary: #1E3A8A;
    --brand-logo-secondary: #0D9488;
    --brand-logo-accent: #F59E0B;
    --brand-wordmark-main: #0F172A;
    --brand-wordmark-accent: #1E3A8A;
}

body[data-theme="dark"] {
    --landing-bg: #0f0e47;
    --landing-surface: #272757;
    --landing-surface-soft: #1c1b4d;
    --landing-border: #505081;
    --landing-text: #edeef7;
    --landing-muted: #b3bbda;
    --brand-logo-primary: #FFFFFF;
    --brand-logo-secondary: #8EE2D2;
    --brand-logo-accent: #FFD27A;
    --brand-wordmark-main: #FFFFFF;
    --brand-wordmark-accent: #9DC3FF;
    background-color: var(--landing-bg) !important;
    color: var(--landing-text);
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-lockup.stacked {
    flex-direction: column;
    text-align: center;
}

.brand-mark {
    display: block;
    flex: 0 0 auto;
}

.brand-wordmark {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-wordmark-name {
    font-family: "Lexend", sans-serif;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--brand-wordmark-main);
}

.brand-wordmark-name .accent {
    color: var(--brand-wordmark-accent);
}

.brand-wordmark-tagline {
    margin-top: 0.38rem;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--landing-muted);
}

.landing-nav {
    border-bottom: 1px solid rgba(233, 236, 239, 0.9);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .landing-nav {
    border-bottom-color: rgba(45, 50, 102, 0.85);
    background: rgba(26, 28, 61, 0.86);
}

.nav-inner {
    min-height: 4.25rem;
}

.landing-nav-actions {
    flex-shrink: 0;
}

.landing-brand .brand-lockup {
    gap: 0.7rem;
}

.landing-brand .brand-wordmark-name {
    font-size: 1.32rem;
}

.landing-brand .brand-wordmark-tagline {
    font-size: 0.64rem;
    letter-spacing: 0.08em;
}

[data-theme="dark"] .landing-brand .brand-wordmark-tagline {
    color: var(--landing-muted);
}

.landing-brand-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0d6efd;
    color: #fff;
}

.landing-brand-icon-sm {
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 0.35rem;
}

.landing-link {
    text-decoration: none;
    color: var(--bs-secondary-color);
}

[data-theme="dark"] .landing-link {
    color: var(--landing-muted);
}

.landing-link:hover {
    color: var(--bs-body-color);
}

[data-theme="dark"] .landing-link:hover {
    color: var(--landing-text);
}

.landing-login {
    color: var(--bs-secondary-color);
    text-decoration: none;
    font-weight: 500;
}

[data-theme="dark"] .landing-login {
    color: var(--landing-muted);
}

.landing-login:hover {
    color: var(--bs-body-color);
}

[data-theme="dark"] .landing-login:hover {
    color: var(--landing-text);
}

.landing-hero {
    padding: 8rem 0 5rem;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.7s ease,
        transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
    will-change: opacity, transform;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

.landing-hero [data-reveal],
.landing-hero .preview-shell {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

[data-reveal-group="stagger"] [data-reveal] {
    transition-delay: var(--reveal-delay, 0ms);
}

[data-theme="dark"] .landing-hero,
[data-theme="dark"] .landing-section,
[data-theme="dark"] .landing-footer {
    background-color: var(--landing-bg);
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

[data-theme="light"] .hero-grid {
    background-image:
        linear-gradient(to right, rgba(13, 17, 38, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(13, 17, 38, 0.05) 1px, transparent 1px);
}

.landing-title {
    font-size: clamp(2.3rem, 5.3vw, 4rem);
    line-height: 1.08;
    font-weight: 700;
    color: var(--landing-text);
}

.landing-typewriter {
    position: relative;
    min-height: 2.2em;
}

.landing-typewriter-ghost {
    display: block;
    visibility: hidden;
    pointer-events: none;
}

.landing-typewriter-live {
    position: absolute;
    inset: 0;
    display: block;
}

.landing-typewriter-base,
.landing-typewriter-brand,
.landing-typewriter-ghost {
    white-space: pre-wrap;
}

.landing-typewriter-caret {
    display: inline-block;
    width: 0.08em;
    height: 0.92em;
    margin-left: 0.06em;
    vertical-align: -0.08em;
    background: currentColor;
    border-radius: 999px;
    animation: landing-caret-blink 0.9s steps(1, end) infinite;
}

.landing-typewriter.is-complete .landing-typewriter-caret {
    opacity: 0.45;
}

.landing-gradient-text {
    background: linear-gradient(90deg, #0d6efd 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@keyframes landing-caret-blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

@keyframes landing-card-float-in {
    0% {
        opacity: 0;
        transform: translateY(26px) rotate(-1.5deg) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(-1.5deg) scale(1);
    }
}

.landing-subtitle {
    max-width: 56ch;
    color: var(--bs-secondary-color);
    font-size: 1.05rem;
}

.landing-hero-note {
    max-width: 58ch;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    border: 1px solid rgba(13, 110, 253, 0.12);
    background: rgba(13, 110, 253, 0.06);
    color: var(--landing-text);
    display: grid;
    gap: 0.3rem;
}

.landing-hero-note strong {
    font-size: 0.96rem;
}

.landing-hero-note span {
    color: var(--bs-secondary-color);
    font-size: 0.95rem;
    line-height: 1.55;
}

[data-theme="dark"] .landing-subtitle {
    color: var(--landing-muted);
}

[data-theme="dark"] .landing-hero-note {
    background: rgba(103, 139, 255, 0.12);
    border-color: rgba(128, 159, 255, 0.2);
}

[data-theme="dark"] .landing-hero-note span {
    color: var(--landing-muted);
}

.landing-blob {
    position: absolute;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}

.landing-blob-a {
    left: -200px;
    top: 120px;
    background: rgba(13, 110, 253, 0.28);
}

.landing-blob-b {
    right: -180px;
    top: 170px;
    background: rgba(111, 66, 193, 0.24);
}

.hero-mini-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.48rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(13, 110, 253, 0.12);
    background: rgba(255, 255, 255, 0.74);
    color: var(--bs-secondary-color);
    font-weight: 600;
}

.hero-mini-chip-strong {
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.12);
    border-color: rgba(13, 110, 253, 0.18);
}

[data-theme="dark"] .hero-mini-chip {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--landing-border);
    color: var(--landing-muted);
}

[data-theme="dark"] .hero-mini-chip-strong {
    background: rgba(103, 139, 255, 0.14);
    border-color: rgba(128, 159, 255, 0.22);
    color: #c6d7ff;
}

.avatars-stack .avatar-chip {
    width: 2rem;
    height: 2rem;
    margin-left: -0.35rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
    font-weight: 700;
    border: 2px solid var(--bs-body-bg);
    color: #fff;
}

.avatars-stack .avatar-chip:first-child {
    margin-left: 0;
    background: #0d6efd;
}

.avatars-stack .avatar-chip:nth-child(2) {
    background: #198754;
}

.avatars-stack .avatar-chip:nth-child(3) {
    background: #6f42c1;
}

.preview-shell {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
    background: #fff;
    transform: rotate(-1.5deg);
    transition: transform 0.45s ease;
}

.preview-shell:hover {
    transform: rotate(0deg);
}

.preview-shell.is-visible {
    animation: landing-card-float-in 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

[data-theme="dark"] .preview-shell {
    background: var(--landing-surface);
    border-color: var(--landing-border);
}

[data-theme="dark"] .preview-shell h5,
[data-theme="dark"] .preview-shell .fw-semibold,
[data-theme="dark"] .preview-shell .badge,
[data-theme="dark"] .preview-shell .material-symbols-outlined {
    color: var(--landing-text);
}

.preview-head {
    padding: 0.7rem 1rem;
    background: rgba(248, 249, 250, 0.78);
    border-bottom: 1px solid var(--bs-border-color);
}

[data-theme="dark"] .preview-head {
    background: var(--landing-surface-soft);
    border-bottom-color: var(--landing-border);
}

.preview-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}

.preview-search {
    height: 28px;
    border-radius: 0.45rem;
    border: 1px solid var(--bs-border-color);
    background: rgba(255, 255, 255, 0.7);
    padding: 0 0.65rem;
    display: inline-flex;
    align-items: center;
    font-size: 0.74rem;
    color: var(--bs-secondary-color);
    min-width: 180px;
}

[data-theme="dark"] .preview-search {
    border-color: var(--landing-border);
    background: var(--landing-surface);
    color: var(--landing-muted);
}

.preview-card {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    padding: 0.85rem;
    background: #fff;
}

.preview-muted {
    opacity: 0.82;
}

[data-theme="dark"] .preview-card {
    border-color: var(--landing-border);
    background: var(--landing-surface-soft);
}

.preview-primary {
    background: rgba(13, 110, 253, 0.18);
    color: #0d6efd;
}

[data-theme="dark"] .preview-primary {
    background: rgba(103, 139, 255, 0.18);
    color: #8eb7ff;
}

[data-theme="dark"] .preview-card {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .preview-muted {
    opacity: 1;
}

[data-theme="dark"] .preview-muted .badge.text-bg-secondary {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #dbe3ff !important;
}

.landing-section {
    padding: 5rem 0;
}

/* Prevent decorative layers/GSAP x-transforms from widening page layout */
.landing-hero,
.landing-section,
.algorithm-band,
.stats-band,
.landing-cta {
    overflow-x: hidden;
    overflow-x: clip;
}

.section-alt {
    background: rgba(248, 249, 250, 0.7);
}

[data-theme="dark"] .section-alt {
    background: #17164b;
}

.pain-card,
.feature-card,
.step-card,
.example-list,
.option-card,
.university-card,
.faq-item,
.calendar-preview {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.95rem;
    background: #fff;
}

.pain-card,
.feature-card,
.step-card,
.example-list,
.option-card,
.university-card,
.faq-item {
    padding: 1.2rem;
    height: 100%;
}

[data-theme="dark"] .pain-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .step-card,
[data-theme="dark"] .example-list,
[data-theme="dark"] .option-card,
[data-theme="dark"] .university-card,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .calendar-preview {
    border-color: var(--landing-border);
    background: var(--landing-surface);
    color: var(--landing-text);
}

.pain-card .emoji {
    font-size: 1.9rem;
    margin-bottom: 0.6rem;
}

#pain-points,
#how-it-works {
    position: relative;
    isolation: isolate;
    overflow-x: hidden;
    overflow-x: clip;
}

#pain-points {
    --pain-tint-alpha: 0;
    --pain-glow-alpha: 0;
    --pain-card-border-alpha: 0.03;
    --pain-card-glow-alpha: 0.04;
    min-height: clamp(760px, 88vh, 980px);
    padding-top: 5.5rem;
    padding-bottom: 5.1rem;
    display: flex;
    align-items: center;
    background:
        linear-gradient(180deg,
            rgba(255, 248, 246, 0) 0%,
            rgba(255, 247, 244, calc(var(--pain-tint-alpha) * 0.36)) 14%,
            rgba(255, 240, 235, calc(var(--pain-tint-alpha) * 0.98)) 50%,
            rgba(255, 236, 231, calc(var(--pain-tint-alpha) * 1.04)) 72%,
            rgba(255, 236, 231, calc(var(--pain-tint-alpha) * 0.42)) 88%,
            rgba(255, 236, 231, 0) 100%
        );
}

#pain-points .container-xxl {
    max-width: 1500px;
}

#pain-points::before,
#pain-points::after,
#how-it-works::before,
#how-it-works::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

#pain-points::before {
    inset: -90px auto auto -130px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 128, 98, var(--pain-glow-alpha)) 0%, transparent 72%);
    filter: blur(10px);
}

#pain-points::after {
    inset: auto -120px -170px auto;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 165, 135, calc(var(--pain-glow-alpha) * 0.84)) 0%, transparent 74%);
}

#pain-points .pain-card {
    min-height: 320px;
    padding: 1.85rem 1.6rem 1.7rem;
    border-radius: 1.25rem;
    border-color: rgba(255, 138, 115, calc(0.06 + var(--pain-card-border-alpha)));
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 247, 244, 0.98)),
        #fff;
    box-shadow: 0 18px 40px rgba(59, 34, 29, calc(var(--pain-card-glow-alpha)));
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

#pain-points .text-center {
    max-width: 860px;
    margin-inline: auto;
}

#pain-points .pain-points-grid {
    --bs-gutter-x: 1.2rem;
    --bs-gutter-y: 1.2rem;
    margin-top: 0.25rem;
}

#pain-points .pain-points-grid > [class*="col-"] {
    display: flex;
}

#pain-points .pain-card h5 {
    margin-bottom: 0.5rem;
    font-size: 1.18rem;
    line-height: 1.24;
}

#pain-points .pain-card p {
    font-size: 1rem;
    line-height: 1.68;
}

#pain-points .pain-card .emoji {
    font-size: 2.45rem;
    margin-bottom: 1rem;
}

.landing-plan-panel {
    padding: 1.4rem;
}

.landing-plan-panel-accent {
    background: linear-gradient(180deg, rgba(13, 110, 253, 0.06), rgba(13, 110, 253, 0.02));
}

.landing-plan-kicker {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #4d78ff;
    margin-bottom: 0.55rem;
}

.landing-checklist {
    display: grid;
    gap: 0.8rem;
}

.landing-check-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.7rem;
    align-items: start;
}

.landing-check-item .material-symbols-outlined {
    color: #2f67ef;
    font-size: 1.15rem;
    margin-top: 0.08rem;
}

.landing-check-item span:last-child {
    color: var(--landing-text);
    line-height: 1.5;
}

.landing-inline-note {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bs-border-color);
    color: var(--bs-secondary-color);
    font-size: 0.92rem;
    line-height: 1.55;
}

.landing-rate-list {
    display: grid;
    gap: 0.55rem;
}

.landing-rate-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0.95rem;
    border-radius: 0.9rem;
    border: 1px solid var(--bs-border-color);
    background: rgba(13, 110, 253, 0.03);
}

.landing-rate-item span {
    color: var(--landing-text);
    font-size: 0.94rem;
}

.landing-rate-item strong {
    color: #2f67ef;
    white-space: nowrap;
}

#packages {
    position: relative;
    isolation: isolate;
    overflow-x: hidden;
    overflow-x: clip;
    padding-top: 5.1rem;
    padding-bottom: 5.2rem;
    background:
        linear-gradient(180deg,
            rgba(13, 110, 253, 0) 0%,
            rgba(13, 110, 253, 0.035) 22%,
            rgba(13, 110, 253, 0.055) 52%,
            rgba(13, 110, 253, 0.02) 82%,
            rgba(13, 110, 253, 0) 100%
        );
}

#packages::before,
#packages::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

#packages::before {
    inset: -80px auto auto -100px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.1) 0%, transparent 74%);
    filter: blur(8px);
}

#packages::after {
    inset: auto -120px -140px auto;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(84, 170, 255, 0.11) 0%, transparent 74%);
}

.landing-package-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(13, 110, 253, 0.14);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 251, 255, 0.98)),
        #fff;
    box-shadow: 0 16px 34px rgba(13, 17, 38, 0.09);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.landing-package-card::before {
    content: "";
    position: absolute;
    inset: -22% -40% auto;
    height: 62%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
    opacity: 0.22;
    pointer-events: none;
}

.landing-package-card.is-featured {
    border-color: rgba(13, 110, 253, 0.22);
    background:
        linear-gradient(180deg, rgba(232, 243, 255, 0.92), rgba(247, 251, 255, 0.99)),
        #fff;
    box-shadow: 0 24px 50px rgba(13, 110, 253, 0.18);
}

.landing-package-price {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--landing-text);
    margin-bottom: 0.4rem;
}

.landing-package-price small {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bs-secondary-color);
}

.landing-package-credits {
    font-size: 1.05rem;
    font-weight: 700;
    color: #2f67ef;
    margin-bottom: 0.65rem;
}

.landing-package-bonus {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(13, 110, 253, 0.15);
    background: linear-gradient(180deg, rgba(13, 110, 253, 0.14), rgba(13, 110, 253, 0.08));
    color: #2f67ef;
    font-size: 0.84rem;
    font-weight: 700;
}

.landing-package-bonus.is-muted {
    background: rgba(108, 117, 125, 0.08);
    color: var(--bs-secondary-color);
}

#how-it-works {
    --solution-wash-alpha: 0.16;
    --solution-glow-alpha: 0;
    min-height: clamp(820px, 92vh, 1080px);
    contain: layout paint;
    padding-top: 5rem;
    padding-bottom: 4.75rem;
    display: flex;
    align-items: center;
    background:
        linear-gradient(180deg,
            rgba(244, 248, 255, 0) 0%,
            rgba(244, 248, 255, calc(0.34 + (var(--solution-wash-alpha) * 0.1))) 14%,
            rgba(238, 245, 255, calc(0.68 + (var(--solution-wash-alpha) * 0.14))) 50%,
            rgba(232, 241, 255, calc(0.42 + (var(--solution-wash-alpha) * 0.24))) 72%,
            rgba(232, 241, 255, calc(0.2 + (var(--solution-wash-alpha) * 0.08))) 88%,
            rgba(232, 241, 255, 0) 100%
        );
}

#how-it-works::before {
    inset: -120px auto auto -140px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(91, 136, 255, calc(var(--solution-glow-alpha) * 0.2)) 0%, transparent 72%);
}

#how-it-works::after {
    inset: auto -130px -180px auto;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 181, 255, calc(var(--solution-glow-alpha) * 0.16)) 0%, transparent 74%);
}

#how-it-works .container-xxl {
    max-width: 1520px;
}

.how-it-works-heading {
    max-width: 860px;
    margin-inline: auto;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
    min-height: 348px;
    align-items: stretch;
}

#how-it-works .step-card {
    min-height: 348px;
    padding: 2rem 1.75rem 1.9rem;
    border-radius: 1.2rem;
    display: grid;
    align-content: start;
    gap: 1rem;
    background:
        linear-gradient(180deg, rgba(13, 110, 253, 0.05), rgba(13, 110, 253, 0.015)),
        #fff;
}

#how-it-works .step-card h6 {
    margin: 0;
    font-size: 1.18rem;
    line-height: 1.22;
}

#how-it-works .step-card p {
    font-size: 1.03rem;
    line-height: 1.72;
}

.step-icon,
.feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.7rem;
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.7rem;
}

#how-it-works .step-icon {
    width: 4.85rem;
    height: 4.85rem;
    border-radius: 1.15rem;
    margin-bottom: 0;
}

#how-it-works .step-icon .material-symbols-outlined {
    font-size: 2.15rem;
}

[data-theme="dark"] .step-icon,
[data-theme="dark"] .feature-icon {
    background: rgba(103, 139, 255, 0.14);
    color: #c6d7ff;
}

[data-theme="dark"] #how-it-works .step-card {
    background:
        linear-gradient(180deg, rgba(103, 139, 255, 0.08), rgba(103, 139, 255, 0.025)),
        var(--landing-surface);
}

[data-theme="dark"] #pain-points {
    background:
        linear-gradient(180deg,
            rgba(50, 24, 36, 0) 0%,
            rgba(50, 24, 36, calc(var(--pain-tint-alpha) * 0.3)) 14%,
            rgba(45, 23, 39, calc(var(--pain-tint-alpha) * 0.72)) 50%,
            rgba(37, 22, 40, calc(var(--pain-tint-alpha) * 0.76)) 72%,
            rgba(37, 22, 40, calc(var(--pain-tint-alpha) * 0.36)) 88%,
            rgba(37, 22, 40, 0) 100%
        ),
        #17164b;
}

[data-theme="dark"] #pain-points .pain-card {
    border-color: rgba(255, 142, 115, calc(0.08 + var(--pain-card-border-alpha)));
    background:
        linear-gradient(180deg, rgba(43, 33, 58, 0.95), rgba(29, 24, 45, 0.96)),
        var(--landing-surface);
    box-shadow: 0 18px 44px rgba(8, 4, 16, calc(0.24 + var(--pain-card-glow-alpha)));
}

[data-theme="dark"] #how-it-works {
    background:
        linear-gradient(180deg,
            rgba(25, 34, 82, 0) 0%,
            rgba(25, 34, 82, calc(0.36 + (var(--solution-wash-alpha) * 0.08))) 14%,
            rgba(23, 31, 76, calc(0.78 + (var(--solution-wash-alpha) * 0.1))) 50%,
            rgba(21, 29, 70, calc(0.62 + (var(--solution-wash-alpha) * 0.2))) 72%,
            rgba(21, 29, 70, calc(0.32 + (var(--solution-wash-alpha) * 0.1))) 88%,
            rgba(21, 29, 70, 0) 100%
        ),
        var(--landing-bg);
}

[data-theme="dark"] #packages {
    background:
        linear-gradient(180deg,
            rgba(36, 54, 110, 0) 0%,
            rgba(36, 54, 110, 0.24) 22%,
            rgba(36, 54, 110, 0.34) 52%,
            rgba(36, 54, 110, 0.18) 82%,
            rgba(36, 54, 110, 0) 100%
        );
}

[data-theme="dark"] .landing-plan-panel-accent,
[data-theme="dark"] .landing-rate-item {
    background: rgba(103, 139, 255, 0.08);
}

[data-theme="dark"] .landing-inline-note,
[data-theme="dark"] .landing-package-price small {
    color: var(--landing-muted);
}

[data-theme="dark"] .landing-check-item span:last-child,
[data-theme="dark"] .landing-rate-item span,
[data-theme="dark"] .landing-package-price {
    color: var(--landing-text);
}

[data-theme="dark"] .landing-package-card.is-featured {
    border-color: rgba(128, 159, 255, 0.24);
    box-shadow: 0 18px 44px rgba(8, 12, 38, 0.34);
}

[data-theme="dark"] .landing-package-card {
    border-color: rgba(128, 159, 255, 0.2);
    background:
        linear-gradient(180deg, rgba(45, 62, 112, 0.5), rgba(26, 38, 78, 0.7)),
        var(--landing-surface);
    box-shadow: 0 18px 38px rgba(2, 6, 23, 0.3);
}

[data-theme="dark"] .landing-package-card.is-featured {
    border-color: rgba(151, 179, 255, 0.34);
    background:
        linear-gradient(180deg, rgba(58, 82, 148, 0.62), rgba(32, 48, 98, 0.74)),
        var(--landing-surface);
    box-shadow: 0 24px 54px rgba(43, 91, 255, 0.28);
}

[data-theme="dark"] .landing-package-credits,
[data-theme="dark"] .landing-package-bonus,
[data-theme="dark"] .landing-check-item .material-symbols-outlined,
[data-theme="dark"] .landing-rate-item strong {
    color: #aecdff;
}

[data-theme="dark"] .landing-package-bonus {
    border-color: rgba(170, 196, 255, 0.24);
    background: linear-gradient(180deg, rgba(128, 159, 255, 0.25), rgba(128, 159, 255, 0.14));
}

[data-theme="dark"] .landing-package-bonus.is-muted {
    background: rgba(255, 255, 255, 0.08);
    color: var(--landing-muted);
}

.calendar-preview {
    width: min(100%, 1280px);
    max-width: 1280px;
    min-height: 688px;
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
    border-radius: 1.2rem;
    background: color-mix(in srgb, var(--landing-surface) 92%, transparent);
    box-shadow: 0 24px 54px rgba(13, 17, 38, 0.16);
    contain: layout paint;
}

.calendar-preview .calendar-head,
.calendar-preview .calendar-body {
    opacity: 1;
    transform: none;
    transition: none;
}

.calendar-preview.is-visible .calendar-head,
.calendar-preview.is-visible .calendar-body {
    opacity: 1;
    transform: translateY(0);
}

.calendar-head {
    display: grid;
    grid-template-columns: 58px repeat(7, 1fr);
    min-height: 54px;
    border-bottom: 1px solid var(--bs-border-color);
}

.calendar-head > div {
    text-align: center;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--bs-secondary-color);
    padding: 0.8rem 0.35rem;
    border-left: 1px solid var(--bs-border-color);
}

.calendar-head > div:first-child {
    border-left: 0;
}

.calendar-body {
    display: grid;
    grid-template-columns: 58px 1fr;
    height: 630px;
    min-height: 630px;
}

.hour-col {
    border-right: 1px solid var(--bs-border-color);
    display: grid;
    grid-template-rows: repeat(9, 1fr);
}

.hour-col span {
    font-size: 0.8rem;
    color: var(--bs-secondary-color);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0.45rem;
    border-top: 1px solid var(--bs-border-color);
}

.hour-col span:first-child {
    border-top: 0;
}

.grid-col {
    position: relative;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(9, 1fr);
    background-image:
        linear-gradient(to right, var(--bs-border-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--bs-border-color) 1px, transparent 1px);
    background-size:
        calc(100% / 7) 100%,
        100% calc(100% / 9);
}

.grid-block {
    border: 0;
}

.event-chip {
    position: absolute;
    left: calc((var(--day) - 1) * (100% / 7) + 0.42rem);
    top: calc(var(--start) * (100% / 9) + 0.4rem);
    width: calc((100% / 7) - 0.84rem);
    height: calc((var(--span) * (100% / 9)) - 0.54rem);
    border-radius: 0.85rem;
    color: #fff;
    padding: 0.75rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    justify-content: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: var(--tone, linear-gradient(180deg, #0d6efd, #2563eb));
    box-shadow: 0 12px 28px rgba(13, 17, 38, 0.2);
    opacity: 0;
    transform: translateY(12px) scale(0.96);
    transition: none;
}

.calendar-preview.is-visible .event-chip {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.event-chip strong {
    font-size: 0.86rem;
    line-height: 1.1;
}

.event-chip small {
    font-size: 0.72rem;
    opacity: 0.88;
}

.event-chip span {
    font-size: 0.72rem;
    line-height: 1.35;
    opacity: 0.92;
}

.example-list ul li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
}

.example-list .material-symbols-outlined {
    font-size: 1rem;
    color: #22b36f;
}

.autoschedule-showcase {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 1.5rem;
    min-height: 620px;
    align-items: stretch;
    contain: layout paint;
}

.autoschedule-showcase-sidebar,
.autoschedule-showcase-results {
    min-width: 0;
}

.autoschedule-showcase-panel {
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    background: #fff;
    padding: 1.25rem;
    height: 100%;
    min-height: 100%;
    contain: layout paint;
}

.autoschedule-showcase-sidebar .autoschedule-showcase-panel {
    min-height: 520px;
}

.autoschedule-showcase-results .autoschedule-showcase-panel {
    min-height: 620px;
}

.autoschedule-showcase-kicker {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4d78ff;
    margin-bottom: 0.5rem;
}

.autoschedule-showcase-selection {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.9rem;
    padding: 1rem;
    background: rgba(13, 110, 253, 0.03);
}

.autoschedule-showcase-selection-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.92rem;
}

.autoschedule-showcase-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.autoschedule-showcase-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.1);
    border: 1px solid rgba(13, 110, 253, 0.12);
    color: #315fd6;
    font-size: 0.88rem;
    font-weight: 600;
}

.autoschedule-showcase-note {
    margin-top: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border-radius: 0.9rem;
    padding: 0.95rem 1rem;
    background: rgba(34, 179, 111, 0.08);
    border: 1px solid rgba(34, 179, 111, 0.16);
}

.autoschedule-showcase-note .material-symbols-outlined {
    color: #22b36f;
}

.autoschedule-showcase-note strong {
    display: block;
    margin-bottom: 0.2rem;
}

.autoschedule-showcase-note p {
    color: var(--bs-secondary-color);
    font-size: 0.9rem;
}

.autoschedule-showcase-results-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.autoschedule-showcase-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.12);
    color: #315fd6;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.autoschedule-showcase-proposal {
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    padding: 1rem;
    background: #fff;
    min-height: 220px;
}

.autoschedule-showcase-proposal + .autoschedule-showcase-proposal {
    margin-top: 1rem;
}

.autoschedule-showcase-proposal.is-featured {
    background: linear-gradient(180deg, rgba(13, 110, 253, 0.05), rgba(13, 110, 253, 0.02));
    border-color: rgba(13, 110, 253, 0.2);
}

.autoschedule-showcase-proposal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.autoschedule-showcase-proposal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.55rem;
}

.autoschedule-showcase-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.34rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.autoschedule-showcase-tag.primary {
    background: rgba(13, 110, 253, 0.12);
    color: #315fd6;
}

.autoschedule-showcase-tag.warning {
    background: rgba(245, 158, 11, 0.12);
    color: #c68100;
}

.autoschedule-showcase-score {
    text-align: right;
    min-width: 88px;
    width: 88px;
    flex: 0 0 88px;
}

.autoschedule-showcase-score strong {
    display: block;
    min-width: 3ch;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.autoschedule-showcase-score span {
    font-size: 0.78rem;
    color: var(--bs-secondary-color);
}

.autoschedule-showcase-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.9rem;
    min-height: 40px;
}

.autoschedule-showcase-metrics span {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.75rem;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.08);
    color: #315fd6;
    font-size: 0.8rem;
    font-weight: 600;
}

.autoschedule-showcase-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1rem;
    min-height: 38px;
}

[data-theme="dark"] .autoschedule-showcase-panel,
[data-theme="dark"] .autoschedule-showcase-proposal {
    border-color: var(--landing-border);
    background: var(--landing-surface);
    color: var(--landing-text);
}

[data-theme="dark"] .autoschedule-showcase-selection {
    border-color: var(--landing-border);
    background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .autoschedule-showcase-chip,
[data-theme="dark"] .autoschedule-showcase-badge,
[data-theme="dark"] .autoschedule-showcase-tag.primary,
[data-theme="dark"] .autoschedule-showcase-metrics span {
    background: rgba(103, 139, 255, 0.14);
    border-color: rgba(128, 159, 255, 0.18);
    color: #c6d7ff;
}

[data-theme="dark"] .autoschedule-showcase-tag.warning {
    background: rgba(245, 158, 11, 0.14);
    color: #ffd27a;
}

[data-theme="dark"] .autoschedule-showcase-note {
    background: rgba(34, 179, 111, 0.1);
    border-color: rgba(34, 179, 111, 0.18);
}

[data-theme="dark"] .autoschedule-showcase-note p,
[data-theme="dark"] .autoschedule-showcase-score span,
[data-theme="dark"] .autoschedule-showcase-results-head p {
    color: var(--landing-muted);
}

[data-theme="dark"] .autoschedule-showcase-proposal.is-featured {
    background: linear-gradient(180deg, rgba(103, 139, 255, 0.12), rgba(103, 139, 255, 0.05));
    border-color: rgba(128, 159, 255, 0.2);
}

.university-card {
    max-width: 520px;
    padding: 2rem;
}

.uni-logo {
    width: 78px;
    height: 78px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
    font-weight: 700;
    font-size: 1.35rem;
}

[data-theme="dark"] .uni-logo {
    background: rgba(103, 139, 255, 0.16);
    color: #d7e3ff;
}

.stats-band {
    padding: 4rem 0;
    color: #fff;
    background: #0d6efd;
}

.stat-number {
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    margin-top: 0.4rem;
    color: rgba(255, 255, 255, 0.8);
}

.faq-grid {
    display: grid;
    gap: 1rem;
}

.algorithm-band {
    padding: 4.5rem 0;
    background: rgba(248, 249, 250, 0.75);
}

[data-theme="dark"] .algorithm-band {
    background: #17164b;
}

.landing-cta {
    padding: 5rem 0;
    background: linear-gradient(180deg, rgba(13, 110, 253, 0.06) 0%, rgba(13, 110, 253, 0.11) 100%);
}

[data-theme="dark"] .landing-cta {
    background: linear-gradient(180deg, rgba(13, 110, 253, 0.12) 0%, rgba(13, 110, 253, 0.18) 100%);
}

.landing-footer {
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--bs-border-color);
    background: #fff;
}

[data-theme="dark"] .landing-footer {
    border-top-color: var(--landing-border);
    background: var(--landing-surface);
}

.landing-copyright {
    border-top: 1px solid var(--bs-border-color);
    padding-top: 1.1rem;
}

[data-theme="dark"] .landing-copyright {
    border-top-color: var(--landing-border);
}

/* Force Bootstrap secondary text to system dark muted tone in landing */
body[data-theme="dark"] .landing-hero .text-secondary,
body[data-theme="dark"] .landing-section .text-secondary,
body[data-theme="dark"] .landing-footer .text-secondary,
body[data-theme="dark"] .landing-cta .text-secondary,
body[data-theme="dark"] .algorithm-band .text-secondary {
    color: var(--landing-muted) !important;
}

body[data-theme="dark"] .landing-section h2,
body[data-theme="dark"] .landing-section h4,
body[data-theme="dark"] .landing-section h5,
body[data-theme="dark"] .landing-section h6,
body[data-theme="dark"] .landing-footer h6,
body[data-theme="dark"] .landing-cta h2,
body[data-theme="dark"] .algorithm-band h2 {
    color: var(--landing-text);
}

body[data-theme="dark"] .landing-nav small.text-secondary,
body[data-theme="dark"] .landing-footer ul,
body[data-theme="dark"] .stat-label,
body[data-theme="dark"] .calendar-head > div,
body[data-theme="dark"] .hour-col span,
body[data-theme="dark"] .preview-search,
body[data-theme="dark"] .preview-card small,
body[data-theme="dark"] .option-card .text-primary,
body[data-theme="dark"] .faq-item p,
body[data-theme="dark"] .pain-card p,
body[data-theme="dark"] .feature-card p,
body[data-theme="dark"] .step-card p,
body[data-theme="dark"] .example-list,
body[data-theme="dark"] .university-card ul,
body[data-theme="dark"] .preview-shell p,
body[data-theme="dark"] .preview-shell small {
    color: var(--landing-muted) !important;
}

body[data-theme="dark"] .option-card .text-primary {
    color: #9cbfff !important;
}

body[data-theme="dark"] .stats-band {
    background: linear-gradient(135deg, #2849a5 0%, #1b2a73 100%);
}

body[data-theme="dark"] .landing-cta .btn-primary {
    box-shadow: 0 12px 28px rgba(18, 52, 158, 0.32);
}

body[data-theme="dark"] .landing-hero .btn-outline-secondary {
    border-color: var(--landing-border);
    color: var(--landing-text);
    background: transparent;
}

body[data-theme="dark"] .landing-hero .btn-outline-secondary:hover {
    background-color: var(--landing-surface);
    border-color: var(--landing-border);
    color: var(--landing-text);
}

@media (max-width: 991.98px) {
    #packages {
        padding-top: 4.25rem;
        padding-bottom: 4.25rem;
    }

    #packages::before,
    #packages::after {
        display: none;
    }

    #pain-points::before,
    #pain-points::after,
    #how-it-works::before,
    #how-it-works::after {
        display: none;
    }

    #pain-points {
        min-height: auto;
        padding-top: 4.4rem;
        padding-bottom: 4rem;
    }

    #pain-points .pain-card {
        min-height: 260px;
        padding: 1.5rem 1.35rem;
    }

    #how-it-works {
        min-height: auto;
        padding-top: 3.5rem;
        padding-bottom: 3.25rem;
    }

    .steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.9rem;
    }

    #how-it-works .step-card {
        min-height: 268px;
        padding: 1.55rem 1.35rem;
    }

    #how-it-works .step-icon {
        width: 4.15rem;
        height: 4.15rem;
    }

    #how-it-works .step-icon .material-symbols-outlined {
        font-size: 1.9rem;
    }

    .landing-hero {
        padding-top: 7rem;
    }

    .landing-hero-note {
        max-width: none;
    }

    .preview-shell {
        transform: none;
    }

    .calendar-head,
    .calendar-body {
        min-width: 980px;
    }

    .calendar-preview {
        overflow-x: auto;
    }

    .landing-brand .brand-wordmark-tagline {
        display: none;
    }

    .autoschedule-showcase {
        grid-template-columns: 1fr;
        min-height: auto;
        contain: none;
    }

    .autoschedule-showcase-sidebar .autoschedule-showcase-panel,
    .autoschedule-showcase-results .autoschedule-showcase-panel,
    .autoschedule-showcase-proposal {
        min-height: 0;
    }

    .autoschedule-showcase-panel {
        contain: none;
    }

    .autoschedule-showcase-results-head,
    .autoschedule-showcase-proposal-head {
        flex-direction: column;
    }

    .autoschedule-showcase-score {
        text-align: left;
    }
}

@media (max-width: 575.98px) {
    #packages {
        padding-top: 3.8rem;
        padding-bottom: 3.8rem;
    }

    #pain-points {
        padding-top: 3.75rem;
        padding-bottom: 3.5rem;
    }

    #pain-points .pain-card {
        min-height: 0;
        padding: 1.35rem 1.2rem;
    }

    #pain-points .pain-card .emoji {
        font-size: 2.1rem;
        margin-bottom: 0.8rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    #how-it-works .step-card {
        min-height: 0;
        padding: 1.4rem 1.2rem;
    }

    .landing-nav-actions .theme-toggle-btn {
        display: none !important;
    }

    .nav-inner {
        min-height: auto;
        padding-block: 0.6rem;
        gap: 0.65rem;
        flex-wrap: wrap;
    }

    .landing-brand .brand-lockup {
        gap: 0.55rem;
    }

    .landing-brand .brand-wordmark-name {
        font-size: 1.12rem;
    }

    .landing-nav-actions {
        width: 100%;
        justify-content: flex-end;
        gap: 0.5rem !important;
    }

    .landing-login {
        padding-inline: 0.45rem !important;
        font-size: 0.92rem;
        white-space: nowrap;
    }

    .landing-nav-actions .btn-primary {
        padding-inline: 0.85rem;
        font-size: 0.92rem;
        white-space: nowrap;
    }
}

@media (max-width: 430px) {
    .landing-brand .brand-wordmark-name {
        font-size: 1.02rem;
    }

    .landing-nav-actions {
        justify-content: space-between;
    }

    .landing-login,
    .landing-nav-actions .btn-primary {
        font-size: 0.86rem;
    }

    .landing-nav-actions .btn-primary {
        padding-inline: 0.7rem;
    }
}
[data-theme="dark"] .calendar-head > div,
[data-theme="dark"] .hour-col span {
    color: var(--landing-muted);
}

[data-theme="dark"] .calendar-head,
[data-theme="dark"] .calendar-head > div,
[data-theme="dark"] .hour-col,
[data-theme="dark"] .hour-col span,
[data-theme="dark"] .grid-block {
    border-color: var(--landing-border);
}

[data-theme="dark"] .grid-col {
    background-image:
        linear-gradient(to right, var(--landing-border) 1px, transparent 1px),
        linear-gradient(to bottom, var(--landing-border) 1px, transparent 1px);
}

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

    [data-reveal],
    .calendar-preview .calendar-head,
    .calendar-preview .calendar-body,
    .calendar-preview .event-chip,
    .preview-shell {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
}

/* ============================
   GSAP-driven landing states
   ============================ */
body.js-landing-anim [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
}

.landing-nav.is-scrolled {
    border-bottom-color: rgba(13, 110, 253, 0.14);
    box-shadow: 0 10px 28px rgba(13, 17, 38, 0.08);
}

[data-theme="dark"] .landing-nav.is-scrolled {
    border-bottom-color: rgba(128, 159, 255, 0.18);
    box-shadow: 0 14px 34px rgba(2, 6, 23, 0.34);
}

.landing-hero {
    transform-origin: center top;
}

.preview-shell,
.calendar-preview,
.autoschedule-showcase-panel,
.step-card,
.landing-package-card,
.pain-card,
.feature-card,
.faq-item,
.stats-item,
.landing-rate-item,
.event-chip,
.hero-mini-chip {
    will-change: transform, opacity;
}

.pain-card,
.feature-card,
.step-card,
.faq-item,
.landing-package-card,
.stats-item,
.landing-rate-item,
.autoschedule-showcase-panel,
.autoschedule-showcase-proposal,
.preview-shell,
.calendar-preview {
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.step-card {
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.step-card:hover {
    border-color: rgba(13, 110, 253, 0.2);
}

.autoschedule-showcase-proposal {
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.autoschedule-showcase-proposal.is-featured {
    box-shadow: 0 18px 36px rgba(13, 110, 253, 0.08);
}

.hero-grid,
.grid-col {
    will-change: transform, opacity;
}

.stats-band {
    position: relative;
    overflow: hidden;
}

.stats-band::before {
    content: "";
    position: absolute;
    inset: -20% auto auto -10%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 70%);
    pointer-events: none;
    filter: blur(10px);
}

.algorithm-band,
.landing-cta,
.section-alt {
    position: relative;
    overflow: clip;
}

.algorithm-band::after,
.landing-cta::after,
.section-alt::after {
    content: "";
    position: absolute;
    inset: auto -10% -140px auto;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.08), transparent 72%);
    pointer-events: none;
}

[data-theme="dark"] .algorithm-band::after,
[data-theme="dark"] .landing-cta::after,
[data-theme="dark"] .section-alt::after {
    background: radial-gradient(circle, rgba(128, 159, 255, 0.12), transparent 72%);
}

@media (max-width: 991.98px) {
    .algorithm-band::after,
    .landing-cta::after,
    .section-alt::after,
    .stats-band::before {
        display: none;
    }
}
