:root {
    color-scheme: light;
    --ink: #152035;
    --muted: #536175;
    --blue: #1758c5;
    --paper: #f9fafb;
    --line: #d6dde5;
    --gutter: clamp(20px, 5.5vw, 88px);
    --header-height: 64px;
    --tuner-height: 78px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, h3, p, figure, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
.icon { width: 20px; height: 20px; flex: none; }
a:focus-visible, button:focus-visible { outline: 3px solid #477fe2; outline-offset: 4px; }
.wrap { width: calc(100% - 2 * var(--gutter)); max-width: 1280px; margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 9; padding: 12px; background: white; color: var(--blue); }
.skip-link:not(:focus) { transform: translateY(-180%); }

.masthead, .tuner { background: #101c31; color: #fff; border-bottom: 1px solid #ffffff1c; }
.masthead-inner, .tuner-inner { min-height: calc(var(--header-height) - 1px); display: flex; align-items: center; gap: clamp(22px, 4vw, 68px); }
.tuner { position: sticky; top: 0; z-index: 3; }
.tuner-inner { min-height: calc(var(--tuner-height) - 1px); }
.tuner-title { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 650; }
.tuner-title .icon { color: #9ac7ff; }
.main-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); margin-left: auto; }
.main-nav a { padding-block: 12px; font-size: 14px; color: #d2dcee; }
.main-nav a:hover { color: white; text-decoration: underline; text-underline-offset: 5px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 770; letter-spacing: -.055em; }
.wordmark img, .download-copy img { border-radius: 24%; }
.header-download { display: inline-flex; align-items: center; min-height: 36px; gap: 9px; padding: 0 15px; border: 1px solid #8793a6; border-radius: 7px; font-size: 14px; white-space: nowrap; }
.header-download:hover { background: #ffffff12; }
.header-download .icon { width: 15px; }

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: white;
    background: radial-gradient(ellipse at 85% 94%, #2756a2 0%, #193264 32%, transparent 68%), #101c31;
}
.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3%;
    height: calc(100vh - var(--header-height) - var(--tuner-height));
    height: calc(100svh - var(--header-height) - var(--tuner-height));
    min-height: min-content;
    padding-block: clamp(32px, 3.5vw, 60px);
}
.hero-copy { z-index: 1; }
.hero-kicker { display: flex; align-items: center; gap: 12px; font-size: 15px; letter-spacing: .07em; color: #d2e0f5; }
.hero-kicker img { border-radius: 24%; }
.hero-kicker b { font-size: 17px; letter-spacing: -.035em; }
.hero-kicker span { padding-left: 12px; border-left: 1px solid #77869e; }
h1 { margin: clamp(21px, 2.5vw, 39px) 0 21px; font-size: clamp(62px, 6.25vw, 102px); line-height: 1.08; letter-spacing: -.062em; font-weight: 780; }
h1 em { color: #a6cbff; font-style: normal; }
.intro { color: #d5dfed; font-size: clamp(15px, 1.13vw, 18px); line-height: 1.85; }
.download-links { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .download-links { margin-top: clamp(24px, 2.6vw, 38px); }
.hero-repos { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; margin-top: 8px; font-size: 13px; }
.hero-repos > span { color: #b8c9df; font-weight: 650; }
.hero-repos a { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; color: #d5e5ff; }
.hero-repos a:hover { color: white; text-decoration: underline; text-underline-offset: 4px; }
.hero-repos .icon { width: 12px; height: 12px; }
.store-link {
    --eye: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    gap: 9px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: #fff;
    color: #10213e;
    font-size: 14px;
    font-weight: 680;
}
.store-link .icon:last-child { width: 13px; height: 13px; margin-left: 4px; }
.store-link:nth-child(2) { --eye: #223451; background: #273953; border-color: #8394ad; color: #fff; }
.store-link:hover { box-shadow: 0 0 0 2px #94bbf3; }
.hero-preview { min-width: 0; position: relative; display: grid; justify-items: center; gap: 24px; }
.hero-stage { position: relative; display: grid; width: 100%; min-height: min(52vh, clamp(350px, 31vw, 470px)); place-items: center; }
.broadcast {
    position: absolute;
    width: clamp(640px, 63vw, 1020px);
    aspect-ratio: 1;
    top: 52%;
    left: 58%;
    transform: translate(-50%, -50%) rotate(-24deg) scaleY(.76);
    border-radius: 50%;
    background:
        repeating-radial-gradient(circle closest-side, transparent 0 8px, #aaceff30 8.5px 9px, transparent 10px 16px),
        conic-gradient(from 80deg, transparent 0deg, #507cce88 58deg, #5183de36 102deg, transparent 146deg, #4c79be33 190deg, #4479d577 240deg, transparent 302deg),
        radial-gradient(circle closest-side, #6fa5ff8c 0%, #4077d478 52%, transparent 91%);
    mask-image: radial-gradient(circle closest-side, transparent 5%, black 42% 92%, transparent 100%);
    pointer-events: none;
}
.broadcast i { position: absolute; inset: 13%; border-radius: 50%; border: 1px solid #c1e0ff78; box-shadow: 0 0 13px #90bbfc38; }
.broadcast i:nth-child(2) { inset: 24%; }
.broadcast i:nth-child(3) { inset: 7%; border-color: transparent; background: repeating-conic-gradient(#b9d8ff90 0deg .17deg, transparent .23deg 2deg); mask-image: radial-gradient(closest-side, transparent 98%, black 98.2%); }
.hero-devices, .course-devices { position: relative; margin-inline: auto; }
.hero-devices { --watch-size: 60%; width: min(27vh, clamp(175px, 15.8vw, 237px)); filter: drop-shadow(8px 18px 13px #04152d57); }
.hero-devices > .screen { transform: rotate(7deg); }
[data-preview="iphone"] .hero-devices { left: -4%; }
.hero-devices .watch-preview { transform: rotate(-7deg); right: -49%; bottom: 1%; }
[data-preview="ipad"] .hero-devices { width: min(94%, 70vh); }
[data-preview="ipad"] .hero-devices > .screen { transform: rotate(3deg); }

.device-selector { position: relative; display: inline-grid; grid-template-columns: repeat(3, 1fr); justify-self: center; gap: 2px; padding: 3px; width: max-content; max-width: 100%; border-radius: 100px; background: #dbe2eb; }
.device-selector::before {
    content: "";
    position: absolute;
    grid-area: 1 / 1 / 2 / 2;
    inset: 0;
    border-radius: inherit;
    background: var(--pill-color, white);
    box-shadow: 0 1px 4px #15264026;
    pointer-events: none;
    transform: translateX(0);
}
[data-preview="ipad"] .device-selector::before { transform: translateX(calc(100% + 2px)); }
[data-preview="android"] .device-selector::before { transform: translateX(calc(200% + 4px)); }
.device-selector button { position: relative; min-height: 30px; padding: 0 7px; border: 0; border-radius: 100px; background: transparent; color: #45546b; font-size: 12px; font-weight: 650; }
.device-selector button:hover:not([aria-pressed="true"]) { color: #163461; background: #ffffff66; }
.device-selector button[aria-pressed="true"] { color: #173459; }
.hero .device-selector { --pill-color: #e5efff; background: #0c1c34db; border: 1px solid #6b87b3; }
.hero .device-selector button { color: #cbd9ed; }
.hero .device-selector button:hover:not([aria-pressed="true"]) { color: white; background: #314a70; }
.hero .device-selector button[aria-pressed="true"] { color: #132b4d; }

.watch-preview {
    display: none;
    position: absolute;
    z-index: 1;
    right: calc(var(--watch-size) * -.54);
    bottom: clamp(11px, 1.2vw, 17px);
    width: var(--watch-size);
    --frame-image: url("frames/watch.webp");
    --frame-mask: url("frames/watch-mask.webp");
    --frame-ratio: 560 / 880;
    --screen-left: 12.8571%;
    --screen-top: 21.8182%;
    --screen-width: 74.2857%;
    --screen-height: 56.3636%;
}
[data-preview="iphone"] .watch-preview { display: block; }

.screen {
    width: 100%;
    min-width: 0;
    margin-inline: auto;
    --frame-image: url("frames/iphone.webp");
    --frame-mask: url("frames/iphone-mask.webp");
    --frame-ratio: 1350 / 2760;
    --screen-left: 5.3333%;
    --screen-top: 2.5%;
    --screen-width: 89.3333%;
    --screen-height: 95%;
}
[data-preview="ipad"] .screen {
    --frame-image: url("frames/ipad.webp");
    --frame-mask: url("frames/ipad-mask.webp");
    --frame-ratio: 3000 / 2300;
    --screen-left: 4.1333%;
    --screen-top: 5.1304%;
    --screen-width: 91.7333%;
    --screen-height: 89.7391%;
}
[data-preview="android"] .screen {
    --frame-image: url("frames/android.webp");
    --frame-mask: url("frames/android-mask.webp");
    --frame-ratio: 600 / 1301;
    --screen-left: 10%;
    --screen-top: 10.0692%;
    --screen-width: 80%;
    --screen-height: 79.8616%;
}
.device-visual {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: var(--frame-ratio);
}
.device-visual::after {
    position: absolute;
    content: "";
    inset: 0;
    background: var(--frame-image) center / 100% 100% no-repeat;
    pointer-events: none;
}
.device-visual img {
    position: absolute;
    left: var(--screen-left);
    top: var(--screen-top);
    width: var(--screen-width);
    height: var(--screen-height);
    object-fit: cover;
    -webkit-mask: var(--frame-mask) center / 100% 100% no-repeat;
    mask: var(--frame-mask) center / 100% 100% no-repeat;
}


.channels { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; position: relative; flex: 1; }
.channels a { display: grid; place-items: end center; min-height: 58px; padding-bottom: 3px; color: #c1cfe2; font-weight: 650; font-size: 13px; letter-spacing: .06em; }
.channels a:hover, .channels a[aria-current] { color: #fff; }
.tuning-scale {
    pointer-events: none;
    position: absolute;
    inset: 7px 0 auto;
    height: 18px;
    border-bottom: 1px solid #586a83;
    background: repeating-linear-gradient(90deg, #96adc9 0 1px, transparent 1px 48px) var(--ticks-x, 0px) bottom / 48px 14px repeat-x,
                repeating-linear-gradient(90deg, #71849c 0 1px, transparent 1px 8px) var(--ticks-x, 0px) bottom / 8px 6px repeat-x;
}
.tuning-scale i { position: absolute; left: var(--position, 0%); top: -3px; width: 2px; height: 25px; background: #9ac7ff; }
.tuning-scale i::before { content: ''; position: absolute; left: -3px; border: 4px solid transparent; border-top: 6px solid #9ac7ff; }

:is(#main, #courses, #academics, #campus, #campus-services, #download) { scroll-margin-top: var(--tuner-height); }
.chapter { padding-block: clamp(65px, 7.5vw, 116px); }
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 15px; color: var(--blue); font-weight: 700; letter-spacing: .1em; font-size: 14px; }
.eyebrow::before { content: ''; width: 23px; height: 3px; background: currentColor; }
h2 { font-size: clamp(37px, 4vw, 64px); letter-spacing: -.065em; line-height: 1.18; }
h3 { font-size: clamp(23px, 2.4vw, 35px); letter-spacing: -.04em; }
.courses, .campus { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); align-items: center; column-gap: clamp(35px, 7vw, 110px); }
.course-options { margin-top: clamp(28px, 3vw, 50px); }
.course-options button { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(10px, 1.4vw, 20px); text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 20px 4px; }
.course-options button:first-child { border-top: 1px solid var(--line); }
.option-icon { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #d3dce7; border-radius: 10px; color: #53667e; }
.course-options strong { display: block; font-size: 19px; }
.course-options small { display: block; margin-top: 5px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.option-arrow { color: #69788c; }
.course-options button[aria-pressed="true"] :is(strong, .option-arrow), .course-options button:hover strong { color: var(--blue); }
.course-options button[aria-pressed="true"] .option-icon { background: #1e58ac; color: white; border-color: transparent; }
.stage { position: relative; isolation: isolate; overflow: hidden; border: 1px solid #ccd6e3; border-radius: 22px; }
.stage-tools { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; padding: 18px 20px; }
.course-stage {
    background: linear-gradient(90deg, #5a78a215 1px, transparent 1px), linear-gradient(#5a78a215 1px, transparent 1px),
                radial-gradient(ellipse at 45% 40%, #f7faff, #dce7f4);
    background-size: 32px 32px, 32px 32px, auto;
}
.course-view { padding: 10px 24px 32px; }
.course-devices { width: clamp(180px, 17vw, 255px); --watch-size: 58%; }
[data-preview="iphone"] #view-timetable .course-devices { left: -4%; }
.course-devices .watch-preview { right: -39%; bottom: 2%; }
[data-preview="ipad"] .course-devices { width: 100%; }
.fallback-caption { margin-bottom: 14px; text-align: center; }
.academics { background: #eaf0f6; }
.chapter-head { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; }
.academic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 30px); }
.academic-card { position: relative; isolation: isolate; overflow: hidden; padding: clamp(24px, 3.2vw, 50px) clamp(22px, 3.5vw, 60px) 0; border-radius: 22px; border: 1px solid #cad5e3; }
.academic-card p { margin-top: 8px; line-height: 1.7; font-size: 15px; }
.grades { background: #1b3359; color: white; }
.grades p { color: #dbe6f6; }
.plan { background: #d9e7fc; }
.plan p { color: #465970; }
.academic-card::before { content: ''; position: absolute; z-index: -1; inset: 25% -15% -30%; opacity: .4; background: repeating-radial-gradient(ellipse at 50% 106%, transparent 0 26px, #7190bd80 27px, transparent 28px); }
.academic-card .screen { width: min(86%, 300px); height: clamp(290px, 26vw, 404px); margin-top: 28px; }
[data-preview="ipad"] .academic-card .screen { width: 100%; height: auto; padding-bottom: 24px; }
.description { margin-top: 22px; max-width: 28em; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.85; color: var(--muted); }
.campus-services { min-width: 0; grid-column: 1 / -1; margin-top: clamp(35px, 5vw, 76px); }
.services-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.service-controls { display: flex; gap: 6px; }
.service-controls button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--ink); }
.service-controls button::before { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 2px 2px 0 0; transform: translateX(-2px) rotate(45deg); }
.service-controls [data-direction="-1"]::before { transform: translateX(2px) rotate(-135deg); }
.service-controls button:hover:enabled { color: var(--blue); border-color: currentColor; }
.service-controls button:disabled { opacity: .4; cursor: default; }
.service-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(min(76%, 224px), 1fr);
    gap: clamp(12px, 1.4vw, 22px);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    padding-bottom: 6px;
}
.service-grid:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.service-card {
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 192px;
    padding: clamp(20px, 2vw, 32px);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
}
.service-card > .icon { width: 42px; height: 42px; padding: 9px; border-radius: 12px; }
.checkin > .icon { color: #286046; background: #e2efe6; }
.leave > .icon { color: #845126; background: #f8ebda; }
.network > .icon { color: #325e96; background: #e4eefb; }
.more-services > .icon { color: #624b88; background: #efe9f7; }
.service-card h4 { margin: 20px 0 0; font-size: clamp(21px, 1.7vw, 27px); line-height: 1.25; letter-spacing: -.04em; }
.service-card p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.power-stage { background: radial-gradient(ellipse at 53% 95%, #c2dace, transparent 75%), #e7f1eb; border-color: #c8d8cf; }
.power-label { display: flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 700; color: #325f4d; }
.power-stage .stage-tools { justify-content: space-between; }
.power-stage .device-selector { background: #d2e1d8; }
.power-stage > .screen { width: clamp(215px, 21vw, 315px); height: clamp(330px, 32vw, 490px); margin-top: 14px; }
[data-preview="ipad"] .power-stage > .screen { width: 90%; height: auto; margin: 16px auto 25px; }

.download-section { padding-bottom: clamp(36px, 5vw, 80px); }
.download-panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: clamp(22px, 2.5vw, 36px);
    padding: clamp(50px, 6.5vw, 98px) clamp(16px, 3vw, 44px);
    border: 1px solid #2e476a;
    border-radius: clamp(22px, 3vw, 40px);
    color: white;
    text-align: center;
    background: radial-gradient(ellipse at 50% 110%, #294c80, transparent 76%), #14223b;
}
.download-panel::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background: repeating-radial-gradient(ellipse at 50% 135%, transparent 0 28px, #a5c7f324 29px, transparent 30px);
    mask-image: linear-gradient(90deg, black, transparent 32% 68%, black);
}
.download-copy { display: grid; justify-items: center; gap: clamp(20px, 2vw, 30px); }
.download-copy img { width: clamp(64px, 6vw, 84px); box-shadow: 0 10px 26px #09132160; }
.download-copy h2 { font-size: clamp(36px, 5vw, 72px); }
.download-copy p { margin-top: 14px; color: #d4deed; line-height: 1.8; font-size: clamp(15px, 1.3vw, 18px); }
.download-actions { display: grid; justify-items: center; gap: 10px; }
.download-actions .download-links { justify-content: center; }
.beta-link { display: inline-flex; gap: 7px; align-items: center; min-height: 36px; font-size: 14px; color: #d5e5ff; }
.beta-link .icon { width: 13px; height: 13px; }
.beta-link:hover, .footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-inner, .footer-links { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; }
.footer-inner { padding-block: clamp(32px, 4.2vw, 65px); }
.footer-inner p, .footer-links a { color: var(--muted); font-size: 13px; line-height: 1.8; }
.footer-inner p { margin-top: 11px; }
.footer-links { column-gap: clamp(24px, 5vw, 86px); }
.footer-links h3 { font-size: 14px; margin-bottom: 6px; }
.footer-links a { display: block; padding-block: 3px; }

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
    .device-selector::before { transition: transform 240ms var(--ease); }
    .store-link, .option-icon, .device-selector button { transition: background .2s, color .2s, box-shadow .2s; }
    .hero-devices { animation: arrive .75s var(--ease) both; }
    [data-guided] .course-view:not(.is-inactive) .course-devices { animation: arrive .35s var(--ease); }
    @keyframes arrive { from { opacity: .5; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
}
@media (max-width: 840px) {
    :root { --gutter: clamp(22px, 4vw, 40px); }
    .hero-layout { gap: 0; }
    h1 { font-size: clamp(52px, 7.6vw, 66px); }
    .courses, .campus { column-gap: 25px; grid-template-columns: 1fr 1fr; }
    .course-options button { gap: 10px; }
    .option-arrow { display: none; }
    .stage-tools { padding: 14px; }
    .power-label { display: none; }
    .power-stage .stage-tools { justify-content: flex-end; }
}
@media (max-width: 660px) {
    :root { --header-height: 54px; --tuner-height: 62px; }
    .masthead-inner { justify-content: space-between; }
    .main-nav, .tuner-title { display: none; }
    .wordmark { font-size: 21px; }
    .wordmark img { width: 29px; }
    .hero-layout { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); padding-block: clamp(14px, 4vh, 37px) clamp(10px, 2vh, 22px); }
    .hero-copy { position: relative; }
    .hero-kicker { font-size: 13px; }
    h1 { margin: 17px 0 14px; font-size: clamp(48px, 12vw, 70px); }
    .intro { font-size: 14px; }
    .hero .download-links { margin-top: 18px; }
    .store-link { gap: 6px; padding-inline: 12px; }
    .store-link .icon:last-child { margin-left: 0; }
    .hero-preview { align-self: stretch; grid-template-rows: minmax(0, 1fr) auto; margin-top: clamp(8px, 2vh, 27px); gap: 10px; }
    .hero-stage { min-height: 0; container-type: size; }
    .hero-devices { width: clamp(142px, 38vw, 210px); max-width: 44cqh; }
    [data-preview="iphone"] .hero-devices { left: -6%; }
    .broadcast { width: max(122%, 450px); left: 53%; }
    [data-preview="ipad"] .hero-devices { width: min(87%, 440px); max-width: 120cqh; }
    .channels a { min-height: 49px; font-size: 12px; }
    .tuning-scale { top: 2px; }
    .courses, .campus { grid-template-columns: 1fr; row-gap: 22px; }
    .chapter { padding-block: 52px; }
    .eyebrow { margin-bottom: 10px; }
    h2 { font-size: clamp(32px, 7.9vw, 46px); }
    .course-options { display: flex; gap: 4px; margin-top: 21px; border-bottom: 1px solid var(--line); }
    .course-options button, .course-options button:first-child { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 3px; border: 0; border-bottom: 2px solid transparent; }
    .course-options button[aria-pressed="true"] { border-bottom-color: var(--blue); }
    .course-options .option-icon { width: auto; height: auto; border: 0; }
    .course-options button[aria-pressed="true"] .option-icon { color: var(--blue); background: transparent; }
    .course-options strong { font-size: 15px; }
    .course-options small { display: none; }
    .option-icon .icon { width: 17px; }
    .course-devices { width: min(65%, 223px); }
    .academic-grid { grid-template-columns: 1fr; }
    .academic-card .screen { width: min(83%, 270px); }
    .chapter-head { margin-bottom: 22px; }
    .academic-card, .stage { border-radius: 16px; }
    .power-label { display: flex; }
    .power-stage .stage-tools { justify-content: space-between; }
    .footer-links { width: 100%; flex-wrap: wrap; gap: 14px; }
}
@media (max-width: 365px) {
    :root { --gutter: 16px; }
    .store-link { padding-inline: 10px; }
    .store-link .icon:last-child { display: none; }
    .power-label { display: none; }
}
@media (max-width: 660px) and (max-height: 680px) {
    .hero-layout { padding-block: 10px; }
    h1 { margin: 9px 0; font-size: clamp(34px, 10vw, 48px); }
    .intro { font-size: 13px; line-height: 1.6; }
    .hero .download-links { margin-top: 10px; }
}
@media (max-width: 660px) and (orientation: portrait) {
    .hero-layout { padding-block: clamp(12px, 2svh, 24px) 0; }
    .hero-preview {
        grid-template-rows: auto minmax(0, 1fr);
        margin: 6px calc(0px - var(--gutter)) 0;
        gap: 8px;
    }
    .hero-preview > .device-selector { grid-row: 1; }
    .hero-stage { grid-row: 2; grid-template: minmax(0, 1fr) / 1fr; overflow: hidden; }
    .hero-devices { align-self: start; width: min(64%, 300px); max-width: none; margin-top: 6px; --watch-size: 45%; }
    .hero-devices > .screen { transform: rotate(2deg); }
    [data-preview="iphone"] .hero-devices { left: -5%; }
    [data-preview="android"] .hero-devices { width: min(60%, 300px); translate: 0 -8%; }
    .hero-devices .watch-preview { top: min(41%, max(4px, calc(94cqh - 47vw))); bottom: auto; right: -28%; }
    [data-preview="ipad"] .hero-devices { align-self: center; width: min(94%, 540px); max-width: none; margin-top: 0; }
    [data-preview="ipad"] .hero-devices > .screen { transform: none; }
    .hero h1 { margin-block: 12px; font-size: clamp(29px, 8.6vw, 47px); }
    .hero h1 br { display: none; }
    .hero .download-links { margin-top: 12px; }
}
@media (orientation: landscape) and (max-height: 520px) {
    :root { --header-height: 48px; --tuner-height: 60px; }
    .hero-layout { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; gap: 3%; padding-block: 10px; }
    .hero-kicker { font-size: 12px; }
    h1 { margin: 10px 0; font-size: clamp(32px, 10vh, 52px); }
    .intro { font-size: 13px; line-height: 1.5; }
    .hero .download-links { margin-top: 10px; }
    .hero-preview { align-self: stretch; grid-template-rows: minmax(0, 1fr) auto; margin: 0; gap: 6px; }
    .hero-stage { min-height: 0; container-type: size; }
    .hero-devices { max-width: 44cqh; }
    [data-preview="ipad"] .hero-devices { max-width: 120cqh; }
}
@media (pointer: coarse) {
    .service-controls button { width: 44px; height: 44px; }
    .device-selector button { min-width: 44px; min-height: 34px; }
    .device-selector button::after { content: ""; position: absolute; inset: -5px 0; }
    .header-download, .footer-links a { min-height: 44px; }
}
@media (forced-colors: active) {
    button[aria-pressed="true"], .channels a[aria-current] { outline: 2px solid Highlight; outline-offset: -2px; }
}

.course-detail { margin: 0 auto 16px; text-align: center; color: #394c65; font-size: 14px; line-height: 1.6; }
.courses:has(.course-options:not([hidden])) .course-detail { display: none; }
@media (max-width: 660px) {
    .courses:has(.course-options:not([hidden])) .course-detail { display: block; }
}

#courses[data-guided]::after {
    content: "";
    display: block;
    height: var(--course-travel);
}
[data-guided] .courses {
    position: sticky;
    top: var(--tuner-height);
    min-height: calc(100vh - var(--tuner-height));
    min-height: calc(100svh - var(--tuner-height));
    padding-block: clamp(12px, 3vh, 44px);
    align-content: center;
}
[data-guided] .course-stage { display: grid; }
[data-guided] .course-view { grid-area: 2 / 1; }
[data-guided] .course-view.is-inactive { visibility: hidden; }
[data-guided] .course-devices { max-width: min(100%, 29vh); }
[data-preview="ipad"] [data-guided] .course-devices { max-width: min(100%, 82vh); }
@media (max-width: 660px) {
    [data-guided] .courses {
        height: calc(100vh - var(--tuner-height));
        height: calc(100svh - var(--tuner-height));
        grid-template-rows: auto minmax(0, 1fr);
        row-gap: 12px;
        padding-block: 12px;
    }
    [data-guided] .course-options { margin-top: 12px; }
    [data-guided] .course-stage { align-self: stretch; grid-template-rows: auto minmax(0, 1fr); }
    [data-guided] .course-view { display: grid; grid-template-rows: auto minmax(0, 1fr); padding: 0 14px 14px; }
    [data-guided] .course-shot { display: grid; place-items: center; min-height: 0; container-type: size; }
    [data-guided] .course-devices { max-width: min(65%, 45cqh); }
    [data-preview="ipad"] [data-guided] .course-devices { max-width: min(100%, 130cqh); }
}
