/* Real portal and Flutter screenshots inside CSS device frames. */
.app-tour { position: relative; min-width: 0; }
.app-tour--phone { width: min(100%, 286px); margin-inline: auto 1rem; }
.app-device { position: relative; background: #172336; border: 2px solid #778797; box-shadow: 0 28px 55px #08102a38, inset 0 0 0 2px #ffffff12; }
.app-device--phone { padding: 21px 8px 15px; border-radius: 36px; }
.app-device--tablet { padding: 13px 22px; border-radius: 27px; }
.app-device__camera { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #060b16; box-shadow: inset 0 0 0 1px #34445d; top: 7px; left: calc(50% - 3px); }
.app-device--tablet .app-device__camera { top: calc(50% - 3px); left: 8px; }
.app-device__screen { display: flex; width: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 20px; background: #f5f5fb; overscroll-behavior-x: contain; cursor: grab; }
.app-device__screen::-webkit-scrollbar { display: none; }
.app-device--tablet .app-device__screen { border-radius: 10px; }
.app-device__screen:active { cursor: grabbing; }
.app-device__slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.app-device__slide img { width: 100%; height: auto; display: block; user-select: none; }
.app-tour__controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-block: 1rem .75rem; direction: ltr; }
.app-tour__controls[hidden], .app-tour__caption [hidden] { display: none; }
.app-tour__controls button { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid var(--home-line); background: var(--home-surface); color: inherit; font-size: 1.2rem; transition: background .2s; }
.app-tour__controls button:hover { background: color-mix(in srgb, var(--home-accent) 12%, var(--home-surface)); }
.app-tour__dots { display: flex; }
.app-tour__dots button { min-width: 28px; width: 28px; border: 0; background: transparent; }
.app-tour__dots span { width: 7px; height: 7px; border-radius: 99px; background: currentColor; opacity: .4; transition: width .2s; }
.app-tour__dots [aria-pressed="true"] span { opacity: 1; width: 20px; background: var(--home-accent); }
.app-tour__caption { margin: 0; text-align: center; color: inherit; font-size: .84rem; line-height: 1.6; min-height: 7.2em; }
.app-tour__caption strong { display: block; font-size: 1rem; margin-bottom: .3rem; color: inherit; }
.app-tour--phone .app-tour__caption > span > span { display: none; }
.app-tour--phone .app-tour__caption { min-height: 1.5em; }
.app-tour__hint { text-align: center; color: inherit; opacity: .75; margin: .5rem 0 0; font-size: .75rem; }
.app-tour__hint span { margin-inline-start: .4rem; }
.app-preview-note { max-width: 60ch; margin: 1.5rem auto 0; text-align: center; color: inherit; opacity: .7; font-size: .75rem; line-height: 1.7; }
.app-showcase { padding-block: clamp(4rem, 7vw, 7rem); color: var(--home-ink); border-radius: 3rem 3rem 0 0; position: relative; }
.app-showcase__heading { max-width: 760px; text-align: center; margin: 0 auto 3rem; }
.alpha-homepage .app-showcase .alpha-kicker { color: var(--home-accent); }
.app-showcase__heading h2 { color: var(--home-ink); font-size: clamp(2rem, 4.3vw, 3.8rem); line-height: 1.1; letter-spacing: -.045em; margin: 1rem 0; text-wrap: balance; }
.app-showcase__heading p { color: var(--home-muted); line-height: 1.8; }
.app-showcase__layout { display: grid; grid-template-columns: minmax(230px, .8fr) minmax(0, 1.65fr); gap: 2.5rem; align-items: center; }
.app-showcase__features { display: grid; gap: .7rem; }
.app-feature { display: flex; align-items: start; gap: .8rem; width: 100%; text-align: start; color: var(--home-muted); background: transparent; border: 1px solid transparent; border-radius: 1.1rem; padding: 1rem; transition: background .2s, box-shadow .2s; }
.app-feature:hover { background: var(--home-surface); }
.app-feature[aria-pressed="true"] { background: var(--alpha-surface-solid); border-color: var(--home-hover-line); box-shadow: var(--alpha-shadow-sm); }
.app-feature__icon { display: grid; place-items: center; background: color-mix(in srgb, var(--home-accent) 12%, var(--alpha-surface-solid)); color: var(--home-accent); width: 38px; height: 38px; flex-shrink: 0; border-radius: 12px; font-size: 1.15rem; }
.app-feature strong { display: block; color: var(--home-ink); font-size: 1rem; }
.app-feature strong + span { display: block; font-size: .82rem; line-height: 1.65; margin-top: .3rem; }
.app-benefits__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.app-benefit { position: relative; overflow: hidden; border: 1px solid var(--home-line); border-radius: 1.5rem; background: var(--home-benefit-one); padding: 2rem; }
.app-benefit:nth-child(2) { background: var(--home-benefit-two); }
.app-benefit:nth-child(3) { background: var(--home-benefit-three); }
.app-benefit > i { font-size: 2rem; color: var(--home-accent); }
.app-benefit__number { position: absolute; top: .7rem; inset-inline-end: 1.3rem; color: var(--home-number); font-size: 4rem; font-weight: 900; line-height: 1; }
.app-benefit h3 { color: var(--home-ink); font-size: 1.3rem; margin: 1.8rem 0 .8rem; }
.app-benefit p { color: var(--home-muted); line-height: 1.8; margin: 0; }
.app-faq .container { max-width: 900px; }
.app-faq details { border-bottom: 1px solid var(--home-line); padding-block: 1.3rem; }
.app-faq summary { cursor: pointer; color: var(--home-ink); font-size: 1.1rem; font-weight: 700; }
.app-faq details p { color: var(--home-muted); line-height: 1.8; margin: 1rem 0 0; max-width: 75ch; }
.app-tour :focus-visible, .app-feature:focus-visible, .app-faq summary:focus-visible { outline: 3px solid var(--home-accent); outline-offset: 4px; }
#mobile-app, #course-campuses, #missions { scroll-margin-top: 110px; }
@media (max-width: 991px) {
    .app-tour--phone { width: min(90%, 260px); margin-inline: auto 0; }
    .app-showcase__layout { grid-template-columns: 1fr; }
    .app-showcase__features { grid-template-columns: repeat(4, 1fr); gap: .5rem; }
    .app-feature { flex-direction: column; padding: .8rem; }
    .app-feature strong + span { display: none; }
    .app-feature strong { font-size: .8rem; }
    .app-showcase__tablet { max-width: 760px; width: 100%; margin: auto; }
}
@media (max-width: 640px) {
    .app-tour--phone { width: 245px; max-width: 83%; margin-inline: auto .5rem; }
    .app-benefits__grid { grid-template-columns: 1fr; }
    .app-showcase { border-radius: 2rem 2rem 0 0; }
    .app-showcase__features { grid-template-columns: repeat(2, 1fr); }
    .app-feature { flex-direction: row; align-items: center; }
    .app-device--tablet { padding: 9px 14px; border-radius: 18px; }
    .app-device--tablet .app-device__camera { left: 4px; }
    .app-showcase__layout { gap: 1.5rem; }
    .app-tour__caption { min-height: 9em; }
}
@media (prefers-reduced-motion: reduce) {
    .app-tour *, .app-feature { transition: none !important; scroll-behavior: auto !important; }
}


/* The original illustrated hero background remains in alpha-home.css. */
.alpha-homepage .alpha-home-hero > .container { max-width: 1480px; width: calc(100% - 64px); }
.alpha-homepage .alpha-home-hero__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: 2.5rem; padding-block: 5rem; }
.alpha-homepage .alpha-home-copy h1 { font-size: clamp(3rem, 5vw, 5.3rem); }
.lms-features { background: linear-gradient(180deg, var(--home-soft), transparent); }
.app-ai-invite { margin-block-start: 3rem; border: 1px solid var(--home-line); padding: clamp(1.5rem, 4vw, 3rem); border-radius: 1.5rem; background: var(--home-surface); }
.app-ai-invite h3 { color: var(--home-ink); font-size: clamp(1.6rem, 3vw, 2.5rem); margin-block: .8rem; }
.app-ai-invite p { color: var(--home-muted); line-height: 1.8; max-width: 78ch; }
.app-ai-invite ol { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin: 1.5rem 0; padding-inline-start: 1.25rem; color: var(--home-ink); font-weight: 700; }
.app-ai-invite li { list-style: decimal; }
.app-ai-invite .app-ai-invite__note { font-size: .8rem; }
#learning-platform { scroll-margin-top: 110px; }
@media (max-width: 1199px) {
    .alpha-homepage .alpha-home-hero__grid { grid-template-columns: 1fr; gap: 3rem; }
    .alpha-homepage .alpha-home-copy { max-width: 850px; }
    .alpha-homepage .alpha-home-copy h1 { max-width: 18ch; }
}
@media (max-width: 640px) {
    .alpha-homepage .alpha-home-hero > .container { width: calc(100% - 30px); }
    .alpha-homepage .alpha-home-hero__grid { padding-block: 3rem; }
    .alpha-homepage .alpha-home-copy h1 { font-size: clamp(2.8rem, 12vw, 4rem); }
    .app-ai-invite ol { display: grid; gap: .7rem; }
}

/* A curved deck: inactive devices stay visible behind the selected view. */
.lms-hero-preview { min-width: 0; }
.device-deck { position: relative; min-width: 0; }
.device-deck__selectors { position: relative; z-index: 8; display: flex; justify-content: center; flex-wrap: wrap; gap: .65rem; margin-bottom: 1.5rem; }
.device-deck__selectors[hidden] { display: none; }
.device-deck__selector { --device-accent: var(--home-device-web); display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .75rem 1.25rem; border: 1px solid color-mix(in srgb, var(--device-accent) 45%, transparent); border-radius: 99px; color: var(--device-accent); background: var(--home-surface); box-shadow: inset 0 1px 0 #ffffff12; font-size: .9rem; font-weight: 800; transition: background 250ms, color 250ms, box-shadow 250ms, transform 250ms; }
.device-deck__selector--mobile { --device-accent: var(--home-device-mobile); }
.device-deck__selector--tablet { --device-accent: var(--home-device-tablet); }
.device-deck__selector[aria-selected="true"] { background: var(--device-accent); color: var(--home-device-selected-ink); border-color: transparent; box-shadow: 0 5px 28px color-mix(in srgb, var(--device-accent) 30%, transparent); transform: translateY(-3px); }
.device-deck__selector:hover { transform: translateY(-3px); }
.device-deck__selector:focus-visible { outline: 3px solid var(--home-accent); outline-offset: 4px; }
.device-deck__stage { position: relative; perspective: 1400px; min-width: 0; }
.device-deck__card { margin: 1rem auto; max-width: 100%; }
.device-deck__card--mobile { width: 220px; }
.device-deck.is-enhanced .device-deck__stage { height: 620px; }
.device-deck.is-enhanced .device-deck__card { position: absolute; inset-inline-start: 50%; top: 15px; margin: 0; transform-origin: center 70%; transition: transform 650ms cubic-bezier(.22,.8,.25,1), opacity 500ms, filter 500ms; will-change: transform; }
.device-deck__card--web { width: 82%; }
.device-deck__card--tablet { width: 72%; }
.device-deck.is-enhanced [data-position="front"] { z-index: 3; opacity: 1; filter: none; transform: translateX(-50%) translateY(0) rotateY(0) rotateZ(0) scale(1); }
.device-deck.is-enhanced [data-position="left"] { z-index: 1; opacity: 1; filter: brightness(.7) saturate(.75); transform: translateX(-85%) translateY(65px) rotateY(-24deg) rotateZ(-12deg) scale(.66); pointer-events: none; }
.device-deck.is-enhanced [data-position="right"] { z-index: 2; opacity: 1; filter: brightness(.8) saturate(.85); transform: translateX(-8%) translateY(55px) rotateY(24deg) rotateZ(12deg) scale(.66); pointer-events: none; }
[dir="rtl"] .device-deck.is-enhanced .device-deck__card { inset-inline-start: auto; left: 50%; }
.device-deck .app-tour--phone { width: 100%; max-width: none; margin: 0; }
.device-deck .app-device { box-shadow: 0 24px 55px #0007; }
.device-deck .app-device--phone { padding: 16px 5px 10px; border-radius: 27px; }
.device-deck .app-device--phone .app-device__screen { border-radius: 18px; }
.device-deck .app-device--tablet { padding: 8px 12px; border-radius: 20px; }
.device-deck .app-device--tablet .app-device__camera { left: 3px; }
.portal-window { padding: 4px; overflow: hidden; border: 1px solid #9eafca88; border-radius: 15px; background: #172336; box-shadow: 0 24px 55px #0007; }
.portal-window__screen { border-radius: 10px; aspect-ratio: 16 / 9; }
.portal-window__screen img { width: 100%; height: 100%; object-fit: cover; }
.device-deck .app-tour__caption { min-height: 0; font-size: .8rem; padding-inline: .5rem; color: var(--home-ink); }
.device-deck .app-tour__caption strong { font-size: .92rem; }
.device-deck .app-tour__caption > span > span { display: none; }
.device-deck .app-tour__hint { margin-top: .45rem; font-size: .7rem; }
.device-deck [data-position]:not([data-position="front"]) .app-tour__controls,
.device-deck [data-position]:not([data-position="front"]) .app-tour__caption,
.device-deck [data-position]:not([data-position="front"]) .app-tour__hint { visibility: hidden; }
.device-deck .app-preview-note { margin-top: 0; }
@media (min-width: 1200px) {
    .device-deck__card--web { top: 65px !important; }
    .device-deck__card--tablet { top: 45px !important; }
}
@media (max-width: 1199px) {
    .device-deck { max-width: 820px; margin: auto; }
}
@media (max-width: 640px) {
    .device-deck__selectors { gap: .4rem; margin-bottom: 1rem; }
    .device-deck__selector { padding: .65rem .85rem; font-size: .82rem; }
    .device-deck.is-enhanced .device-deck__stage { height: 550px; }
    .device-deck__card--web { width: 88%; }
    .device-deck__card--tablet { width: 80%; }
    .device-deck__card--mobile { width: 190px; }
    .device-deck.is-enhanced .device-deck__card--web,
    .device-deck.is-enhanced .device-deck__card--tablet { top: 80px; }
    .device-deck.is-enhanced [data-position="left"] { transform: translateX(-72%) translateY(55px) rotateY(-20deg) rotateZ(-10deg) scale(.64); }
    .device-deck.is-enhanced [data-position="right"] { transform: translateX(-25%) translateY(55px) rotateY(20deg) rotateZ(10deg) scale(.64); }
}
@media (prefers-reduced-motion: reduce) {
    .device-deck__selector, .device-deck.is-enhanced .device-deck__card { transition: none !important; }
}
.device-deck .app-tour__controls { width: max-content; max-width: 100%; margin-inline: auto; padding: .2rem .35rem; border: 1px solid var(--home-line); border-radius: 99px; background: var(--home-surface); box-shadow: 0 8px 24px #0003; }
.device-deck .app-tour__caption { width: fit-content; max-width: 100%; margin-inline: auto; padding: .3rem .7rem; border-radius: .6rem;  }
