:root {
    color-scheme: light;
    --ink: #171716;
    --muted: #585856;
    --action: #1657cc;
    --line: #dcdcd8;
    --paper: #f6f6f4;
    --gutter: clamp(20px, 5vw, 72px);
    --radius: clamp(20px, 3vw, 38px);
    --station-width: 290px;
    --tuner-height: 104px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    color: var(--ink);
    background: var(--paper);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-anchor: none; }
body, h1, h2, h3, p, figure { margin: 0; }
body { letter-spacing: .014em; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }

a:focus-visible, button:focus-visible {
    outline: 3px solid var(--focus, #215bcc);
    outline-offset: 4px;
}

.wrap {
    width: calc(100% - 2 * var(--gutter));
    max-width: 1220px;
    margin-inline: auto;
}

.skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.skip-link {
    position: fixed;
    inset: 12px auto auto 12px;
    z-index: 6;
    padding: 12px 18px;
    color: white;
    background: var(--action);
    border-radius: 8px;
}

.masthead {
    position: relative;
    z-index: 4;
    background: #fafaf8;
    border-bottom: 1px solid #16161516;
}

.masthead-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    min-height: 66px;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 9px;
    font-size: 21px;
    font-weight: 770;
    letter-spacing: -.005em;
    text-decoration: none;
}

.wordmark img { border-radius: 25%; }

.main-nav { display: flex; align-items: center; gap: clamp(20px, 3.1vw, 48px); }

.main-nav a, .header-download {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 14px;
    font-weight: 620;
    text-decoration: none;
    white-space: nowrap;
}

.main-nav a { color: #474745; }
.main-nav a:hover, .footer-links a:hover { color: var(--action); }

.header-download {
    justify-self: end;
    gap: 11px;
    padding-inline: 17px;
    border-radius: 100px;
    background: #e9effb;
    color: #194591;
}
.header-download:hover { background: #dfe9fb; }

.hero {
    --focus: #c2dbff;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    background: linear-gradient(128deg, #071122 0%, #0d234b 56%, #17294f 100%);
}

.hero-light {
    position: absolute;
    z-index: -1;
    inset: -23% -13% -38% 9%;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 66% 48%, #90bfff 0%, #3d73d5 17%, #1c448d 40%, transparent 72%),
        radial-gradient(ellipse at 65% 61%, #598aeb 0%, #1a2f54 43%, transparent 68%);
    opacity: .8;
}

.hero-light::before,
.hero-light::after {
    position: absolute;
    content: "";
    width: min(95vw, 1180px);
    aspect-ratio: 1.43;
    top: 47%;
    left: 66%;
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(-31deg);
}

.hero-light::before {
    border: 1px solid #ebebe448;
    box-shadow: 0 0 0 45px #efefea0d, 0 0 0 116px #efefea08, inset 0 0 90px #e7e7e219;
}

.hero-light::after {
    width: min(69vw, 840px);
    border: 1px solid #e8e8e149;
    box-shadow: 0 0 80px #d9d9d028;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
    align-items: center;
    gap: clamp(22px, 6vw, 84px);
    padding-block: clamp(36px, 4.7vw, 72px) clamp(24px, 3.1vw, 46px);
}

.hero-copy { position: relative; padding-block: 15px 40px; }
.app-mark {
    width: clamp(58px, 5.25vw, 76px);
    border-radius: 24%;
    box-shadow: 0 0 0 1px #efefea4d, 0 16px 32px #05050550;
}

h1 {
    margin-top: 24px;
    font-size: clamp(70px, 8.4vw, 124px);
    font-weight: 780;
    line-height: .98;
    letter-spacing: .003em;
}

h1 span {
    display: block;
    margin-top: .29em;
    font-size: .42em;
    font-weight: 715;
    letter-spacing: .055em;
    line-height: 1.22;
}

.intro {
    margin-top: clamp(21px, 3vw, 36px);
    color: #dddcd8;
    font-size: clamp(15px, 1.65vw, 21px);
    line-height: 1.78;
    letter-spacing: .027em;
}

.download-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-top: clamp(20px, 2.7vw, 34px);
}

.store-link {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 0 clamp(14px, 1.55vw, 22px);
    border: 1px solid transparent;
    border-radius: 100px;
    background: var(--action);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.store-link:hover { background: #1045a4; }
.link-arrow { font-size: 17px; }

[data-platform="apple"] .store-link[data-store="android"],
[data-platform="android"] .store-link[data-store="apple"] {
    border-color: #c5c5c0;
    color: #2d2d2b;
    background: #fff;
}

[data-platform="apple"] .store-link[data-store="android"]:hover,
[data-platform="android"] .store-link[data-store="apple"]:hover { background: #eeeeeb; }

.hero .store-link {
    background: #f1f1ed;
    color: #191917;
}
.hero .store-link:hover { background: #fff; }
[data-platform="apple"] .hero .store-link[data-store="android"],
[data-platform="android"] .hero .store-link[data-store="apple"] {
    border-color: #e0e0d97a;
    background: #18181866;
    color: #f5f5f1;
}
[data-platform="apple"] .hero .store-link[data-store="android"]:hover,
[data-platform="android"] .hero .store-link[data-store="apple"]:hover { background: #3c3c3a; }

.hero-next {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: clamp(15px, 2.2vw, 31px);
    gap: 11px;
    color: #dfdfda;
    font-size: 14px;
    font-weight: 620;
    text-decoration: none;
}
.hero-next:hover { color: #fff; }
.hero-next span {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border: 1px solid #c6c6be85;
    border-radius: 50%;
}

.hero-preview { display: grid; min-width: 0; position: relative; }
.hero-stage {
    display: grid;
    grid-row: 1;
    min-height: clamp(494px, 44vw, 618px);
    place-items: center;
}
.hero-devices, .course-devices {
    --watch-size: clamp(104px, 15vw, 185px);
    position: relative;
    width: 100%;
    margin-inline: auto;
}
.hero-devices { max-width: clamp(225px, 20.55vw, 282px); }
.course-devices { max-width: 411px; }
[data-preview="ipad"] .hero-devices { max-width: 860px; }
[data-preview="ipad"] .course-devices { max-width: 1070px; }
[data-preview="iphone"] .hero-devices, [data-preview="iphone"] .course-devices {
    left: calc(var(--watch-size) * -.2);
}
.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; }

.preview-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 9px 15px;
    min-height: 73px;
    padding: 11px clamp(14px, 2.3vw, 28px);
}
.preview-caption {
    color: #373735;
    font-size: 14px;
    font-weight: 720;
}
.hero .preview-bar {
    grid-row: 2;
    width: fit-content;
    max-width: 100%;
    min-height: 0;
    gap: 9px 16px;
    justify-content: center;
    margin: clamp(19px, 2vw, 28px) auto 0;
    padding: 0;
}
.device-selector {
    display: inline-flex;
    gap: 2px;
    padding: 4px;
    border: 1px solid #35353226;
    border-radius: 100px;
    background: #f7f7f4;
}
.device-selector button {
    min-width: 59px;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 100px;
    color: #3f3f3c;
    background: transparent;
    font-size: 13px;
    font-weight: 680;
    cursor: pointer;
}
.device-selector button:hover { background: #e9e9e5; }
.device-selector button[aria-pressed="true"] {
    color: #fff;
    background: var(--action);
    box-shadow: 0 2px 5px #10100f29;
}
.device-selector button:focus-visible { outline-offset: 1px; }
.hero .device-selector {
    border-color: #e9e9e257;
    background: #181818ab;
}
.hero .device-selector button { color: #e8e8e3; }
.hero .device-selector button:hover { background: #ffffff22; }
.hero .device-selector button[aria-pressed="true"] {
    background: #e6efff;
    color: #144593;
}

.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;
}

.features { position: relative; }
.features a, .features button { scroll-margin-top: calc(var(--tuner-height) + 17px); }
.tuner {
    position: sticky;
    top: 0;
    z-index: 3;
    padding-block: 10px;
    background: #f6f6f3;
    border-bottom: 1px solid #deded8;
    box-shadow: 0 5px 18px #1b1b180b;
}
.tuner-inner {
    position: relative;
    display: grid;
    grid-template-columns: 113px minmax(0, 1fr) 113px;
    align-items: center;
    min-height: calc(var(--tuner-height) - 21px);
    padding: 6px 10px;
    border: 1px solid #d4d4ce;
    border-radius: 19px;
    background: linear-gradient(#fafaf8, #eeeeea);
    box-shadow: 0 2px 5px #1717130d, inset 0 1px #fff;
}
.tuner-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 10px;
    font-size: 13px;
    font-weight: 730;
    letter-spacing: .11em;
    color: #3a3a37;
}
.tuner-title::before {
    content: "";
    width: 10px;
    height: 10px;
    border: 1px solid #848480;
    border-radius: 50%;
    background: radial-gradient(circle, #52524e 0 24%, transparent 28%);
}

.readout {
    position: relative;
    display: grid;
    justify-items: center;
    min-width: 0;
    height: 68px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid #d4d4ce;
    border-radius: 13px;
    background: linear-gradient(#e3e3de, #f1f1ed);
    box-shadow: inset 0 2px 5px #1b1b1720, 0 1px #fff;
}
.dial-window {
    position: absolute;
    inset: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 13% 87%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 13% 87%, transparent);
}
.dial-window::before {
    position: absolute;
    content: "";
    inset: 37px 0 auto;
    border-top: 1px solid #b8b8b1;
}
.dial { display: flex; position: absolute; top: 2px; left: calc(50% - var(--station-width) * 1.5); }
.dial-cell {
    flex: 0 0 var(--station-width);
    width: var(--station-width);
    text-align: center;
    color: #565652;
    font-size: 12px;
    font-weight: 640;
    letter-spacing: .075em;
}
.ticks {
    display: grid;
    grid-template-columns: repeat(17, minmax(0, 1fr));
    justify-items: center;
    align-items: end;
    height: 35px;
}
.ticks i { width: 1px; height: 7px; border-radius: 1px 1px 0 0; background: #888882; }
.ticks .mid { height: 13px; background: #6f6f6a; }
.ticks .major { height: 23px; width: 2px; background: #444440; }
.dial-cell > span { display: block; margin-top: 10px; }
.dial-cell[data-current] > span { visibility: hidden; }

.needle {
    position: absolute;
    z-index: 1;
    top: 5px;
    left: 50%;
    width: 2px;
    height: 34px;
    transform: translateX(-50%);
    background: #b6532b;
}
.needle::before {
    position: absolute;
    content: "";
    top: -3px;
    left: -3px;
    border: 4px solid transparent;
    border-top: 6px solid #b6532b;
}
.station {
    position: absolute;
    z-index: 1;
    top: 41px;
    padding: 1px 14px 2px;
    border: 1px solid #343431;
    border-radius: 7px;
    background: linear-gradient(#41413e, #272725);
    box-shadow: 0 1px 2px #16161325, inset 0 1px #ffffff26;
    color: #fff;
    font-size: 13px;
    font-weight: 680;
    letter-spacing: .09em;
    line-height: 1.45;
    white-space: nowrap;
}

.chapter {
    padding-block: clamp(70px, 9.3vw, 142px);
    scroll-margin-top: var(--tuner-height);
}

.chapter-heading { margin-bottom: clamp(30px, 5vw, 67px); }
.chapter-heading-split {
    display: grid;
    grid-template-columns: minmax(0, 1.32fr) minmax(0, .68fr);
    align-items: end;
    gap: 18px clamp(24px, 7vw, 104px);
}
.course-controls { padding-bottom: 4px; }
.course-controls .device-selector { margin-top: 17px; }
.eyebrow {
    margin-bottom: 14px;
    color: var(--action);
    font-size: clamp(15px, 1.65vw, 20px);
    font-weight: 770;
    letter-spacing: .07em;
}
h2 {
    font-size: clamp(43px, 6.5vw, 94px);
    font-weight: 770;
    line-height: 1.13;
    letter-spacing: .024em;
    text-wrap: balance;
}
.chapter-heading p:not(.eyebrow) {
    max-width: 31em;
    color: var(--muted);
    font-size: clamp(16px, 1.68vw, 21px);
    line-height: 1.8;
    letter-spacing: .028em;
}
.chapter-heading h2 + p { margin-top: clamp(17px, 2.1vw, 28px); }

.course-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.38fr) minmax(0, 1fr);
    gap: clamp(12px, 2.25vw, 28px);
}
.course-stage, .power-stage { min-width: 0; border-radius: var(--radius); }
.course-stage {
    display: grid;
    grid-template-rows: auto 1fr;
    background: radial-gradient(ellipse at 53% 51%, #fbfbf9 0%, #e2e2de 83%), #ebebe7;
    border: 1px solid #dadad6;
}
.course-stage .preview-bar { min-height: 54px; border-bottom: 1px solid #bfbfbb65; }
.course-screen {
    display: grid;
    place-items: center;
    position: relative;
    z-index: 0;
    min-width: 0;
    min-height: 135px;
    padding: clamp(19px, 3.4vw, 51px);
}
.course-screen::before {
    position: absolute;
    z-index: -1;
    content: "";
    inset: 10% 3%;
    background:
        linear-gradient(transparent 0 calc(100% - 1px), #77777335 calc(100% - 1px)) 0 0 / 100% 62px,
        linear-gradient(90deg, transparent 0 calc(100% - 1px), #77777335 calc(100% - 1px)) 0 0 / 62px 100%;
    opacity: .62;
}
.course-aside { display: grid; grid-auto-rows: 1fr; gap: inherit; min-width: 0; }
.excerpt-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(16px, 2.4vw, 27px);
    min-width: 0;
    border: 1px solid #dadad6;
    border-radius: var(--radius);
    overflow: hidden;
}
.exam-stage {
    background: linear-gradient(155deg, #fbfbf9, #e8e8e5);
}
.excerpt-intro { padding: clamp(16px, 2.4vw, 28px) clamp(16px, 2.4vw, 28px) 0; }
.excerpt-card h3, .power-note h3 {
    font-size: clamp(22px, 2.6vw, 35px);
    line-height: 1.2;
    font-weight: 760;
    letter-spacing: .025em;
}
.excerpt-card p, .services dd, .power-note p {
    margin-top: 8px;
    font-size: clamp(14px, 1.3vw, 17px);
    line-height: 1.75;
    letter-spacing: .027em;
    color: var(--muted);
}
.excerpt-screen {
    display: grid;
    justify-items: center;
    margin-top: auto;
    padding-inline: clamp(12px, 2vw, 27px);
}
.excerpt-screen .screen {
    max-width: 264px;
    aspect-ratio: 9 / 10;
    overflow: hidden;
}
[data-preview="android"] .excerpt-screen .screen { aspect-ratio: 4 / 5; }
[data-preview="ipad"] .course-layout { grid-template-columns: 1fr; }
[data-preview="ipad"] .course-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
[data-preview="ipad"] .excerpt-screen .screen { max-width: 680px; aspect-ratio: 1.8; }
.calendar-card { background: #ebeae7; }

.academics { background: #ededea; }
.academics .chapter-heading { text-align: center; }
.academics .chapter-heading > p { margin-inline: auto; }
.academic-title-line { display: inline-block; position: relative; white-space: nowrap; }
.title-punctuation { position: absolute; inset-inline-start: 100%; }
.academic-stage .preview-bar { padding-inline: 3px; }
.academic-screens {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 2.25vw, 28px);
}
.academic-screens .screen {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: start;
    gap: clamp(22px, 3.7vw, 49px);
    padding: clamp(23px, 3.7vw, 58px);
    border: 1px solid #21211f18;
    border-radius: var(--radius);
    background: linear-gradient(148deg, #fbfbf9, #e7e7e3);
}
.academic-screens .screen + .screen {
    border-color: #27272521;
    background: linear-gradient(148deg, #f3f3f0, #dbdbd6);
}
.academic-screens .device-visual { width: 100%; max-width: 338px; }
[data-preview="ipad"] .academic-screens { grid-template-columns: 1fr; }
[data-preview="ipad"] .academic-screens .device-visual { max-width: 1030px; }
.screen figcaption {
    color: #292927;
    font-size: clamp(19px, 2.45vw, 33px);
    font-weight: 760;
    line-height: 1.25;
    letter-spacing: .022em;
    text-align: center;
}

.campus-layout { display: grid; }
.campus .chapter-heading { margin-bottom: clamp(30px, 5vw, 55px); }
.power-stage {
    border: 1px solid #d7d7d4;
    background: #eeeee9;
}
.power-stage .preview-bar { border-bottom: 1px solid #bdbdb868; }
.power-content {
    display: grid;
    grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
    align-items: center;
    gap: clamp(17px, 3vw, 45px);
    padding: clamp(24px, 4.4vw, 62px);
    border-radius: 0 0 var(--radius) var(--radius);
    background: radial-gradient(ellipse at 72% 50%, #dcdcd7, transparent 69%), linear-gradient(154deg, #fafaf8, #e8e8e4);
}
.power-note { padding-left: clamp(0px, 2vw, 30px); }
.power-content .screen { max-width: 386px; }
[data-preview="ipad"] .power-content { grid-template-columns: 1fr; }
[data-preview="ipad"] .power-content .screen { max-width: 1060px; }
[data-preview="ipad"] .power-note { padding-left: 0; }
.services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 3vw, 40px);
    margin: clamp(28px, 4vw, 56px) 0 0;
}
.services > div { padding-block: 16px 3px; border-top: 1px solid #d0d0cc; }
.services dt { font-size: clamp(18px, 1.9vw, 24px); font-weight: 740; }
.services dd { margin-inline-start: 0; }

.download-section {
    padding-bottom: clamp(53px, 7vw, 105px);
    text-align: center;
    scroll-margin-top: 24px;
}
.download-panel {
    padding: clamp(40px, 7.5vw, 102px) var(--gutter);
    border: 1px solid #d8d8d5;
    border-radius: var(--radius);
    background:
        radial-gradient(ellipse at 50% 0%, #fdfdfb 3%, transparent 55%),
        radial-gradient(ellipse at 50% 110%, #d9d9d3, transparent 76%),
        #eeeeea;
}
.download-panel .app-mark { margin-inline: auto; }
.download-panel h2 { margin-top: 23px; font-size: clamp(39px, 6.3vw, 82px); }
.download-panel p { margin-top: 16px; color: var(--muted); font-size: clamp(15px, 1.5vw, 18px); line-height: 1.7; }
.download-panel .download-links { justify-content: center; }
.beta-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    gap: 8px;
    margin-top: 10px;
    color: #2d2d2b;
    font-weight: 660;
    text-decoration: none;
}
.beta-link:hover { text-decoration: underline; }

.footer { background: #ededeb; border-top: 1px solid var(--line); }
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px 30px;
    padding-block: 32px;
}
.footer-inner p { margin-top: 8px; color: var(--muted); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 22px; }
.footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 640;
    text-decoration: none;
}

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
    .hero-copy { animation: hero-entry 880ms var(--ease) both; }
    .hero-devices { animation: hero-entry 1040ms var(--ease) 85ms both; }
    .hero-copy:focus-within { animation: none; }
    .hero-light { transform: translate3d(0, var(--light-shift, 0px), 0); }
    .hero-stage { transform: translate3d(0, var(--screen-shift, 0px), 0); }
    .has-entered { animation: chapter-entry 770ms var(--ease); }
    .link-arrow { transition: transform 230ms var(--ease); }
    .store-link:hover .link-arrow { transform: translate(2px, -2px); }
    .main-nav a, .header-download, .store-link, .device-selector button {
        transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
    }
    @keyframes hero-entry {
        from { opacity: .32; transform: translateY(22px); }
        to { opacity: 1; transform: translateY(0); }
    }
    @keyframes chapter-entry {
        from { opacity: .4; transform: translateY(22px); }
        to { opacity: 1; transform: translateY(0); }
    }

    @supports (view-timeline-name: --hero-visibility) and (animation-timeline: --hero-visibility) and (animation-range: exit 0% exit 100%) {
        .hero { view-timeline: --hero-visibility block; }
        .hero-light, .hero-stage {
            animation: hero-drift 1ms linear both;
            animation-timeline: --hero-visibility;
            animation-range: exit 0% exit 100%;
        }
        .hero-light { --drift: 114px; }
        .hero-stage { --drift: -28px; }
        @keyframes hero-drift {
            from { transform: translate3d(0, 0, 0); }
            to { transform: translate3d(0, var(--drift), 0); }
        }
    }
}

@media (max-width: 980px) {
    .hero-layout { gap: clamp(16px, 3.8vw, 42px); }
    .tuner-inner { grid-template-columns: 104px minmax(0, 1fr) 104px; }
    .course-layout { grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); }
}

@media (min-width: 821px) {
    [data-preview="ipad"] .hero-layout {
        grid-template-columns: minmax(0, .75fr) minmax(0, 1.5fr);
        gap: clamp(18px, 3.5vw, 53px);
    }
    [data-preview="ipad"] h1 { font-size: clamp(65px, 7.4vw, 106px); }
}

@media (max-width: 820px) {
    :root { --tuner-height: 85px; --station-width: 245px; }
    .hero-layout { grid-template-columns: 1fr; gap: 24px; padding-block: 43px 27px; }
    .hero-copy { padding-block: 0; }
    .hero-light {
        inset: 12% -90% -25% -64%;
        background:
            radial-gradient(ellipse at 58% 59%, #84baff 0%, #3974d4 21%, #254b85 40%, transparent 68%);
    }
    .hero-light::before, .hero-light::after { left: 58%; top: 59%; }
    .hero-light::before { width: 120vw; }
    .hero-light::after { width: 95vw; }
    .hero-stage { grid-row: auto; min-height: 0; }
    .hero-devices { max-width: min(253px, 88%); }
    [data-preview="ipad"] .hero-devices { max-width: 720px; }
    [data-preview="iphone"] .hero-devices { max-width: min(253px, 76%); }
    [data-preview="iphone"] .course-devices { max-width: min(411px, 73%); }
    .hero .preview-bar { grid-row: auto; margin: 0 auto 19px; }
    .hero-next { margin-top: 10px; }
    h1 { font-size: clamp(60px, 11.8vw, 97px); }

    .tuner { padding-block: 7px; }
    .tuner-inner { grid-template-columns: 1fr; min-height: calc(var(--tuner-height) - 15px); padding: 5px; border-radius: 14px; }
    .tuner-title { position: absolute; z-index: 1; left: 14px; bottom: 13px; padding: 0; font-size: 10px; letter-spacing: .06em; }
    .tuner-title::before { display: none; }
    .readout { height: 58px; border-radius: 10px; }
    .dial-window::before { top: 31px; }
    .ticks { height: 29px; }
    .ticks .major { height: 19px; }
    .dial-cell > span { visibility: hidden; }
    .needle { height: 28px; }
    .station { top: 34px; font-size: 12px; }

    .chapter-heading-split { grid-template-columns: 1fr; }
    .course-controls { padding-bottom: 0; }
    .course-layout { grid-template-columns: 1fr; }
    .course-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .power-note { padding-left: 0; }
}

@media (max-width: 520px) {
    .masthead-inner { grid-template-columns: 1fr auto; gap: 2px 16px; padding-top: 7px; }
    .header-download { grid-column: 2; grid-row: 1; min-height: 37px; padding-inline: 14px; }
    .main-nav { grid-column: 1 / -1; justify-content: space-between; }
    .main-nav a { font-size: 13px; }
    .wordmark { font-size: 19px; }
    .wordmark img { width: 29px; }
    .hero-layout { padding-top: 38px; }
    .intro { margin-top: 21px; }
    h2 { font-size: clamp(39px, 10vw, 45px); }
    .chapter { padding-block: clamp(55px, 12vw, 71px); }
    .chapter-heading { margin-bottom: 27px; }
    .academics .chapter-heading { text-align: left; }
    .academics .chapter-heading > p { margin-inline: 0; }
    .academic-screens { grid-template-columns: 1fr; }
    .course-aside, [data-preview="ipad"] .course-aside { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .power-content { grid-template-columns: 1fr; }
    .power-note p { margin-top: 4px; }
    .services { grid-template-columns: 1fr; gap: 13px; }
    [data-preview="ipad"] :is(.course-devices, .academic-screens, .power-content) .device-visual {
        aspect-ratio: 1.3;
        border: 1px solid #cecec9;
        border-radius: 11px;
        overflow: hidden;
    }
    [data-preview="ipad"] :is(.course-devices, .academic-screens, .power-content) .device-visual::after { display: none; }
    [data-preview="ipad"] :is(.course-devices, .academic-screens, .power-content) .device-visual img {
        top: 0;
        left: -27%;
        width: 163%;
        height: auto;
        max-width: none;
        -webkit-mask: none;
        mask: none;
    }
}

@media (max-width: 355px) {
    :root { --gutter: 16px; }
    .preview-bar { gap: 7px; }
    .device-selector button { min-width: 49px; padding-inline: 8px; }
    .hero .preview-bar { gap: 8px; }
}

@media (pointer: coarse) {
    .device-selector button { min-height: 44px; }
}

@media (max-height: 430px) {
    .tuner { position: relative; }
    .chapter, .features a, .features button { scroll-margin-top: 0; }
}

@media (forced-colors: active) {
    .device-selector button[aria-pressed="true"] {
        color: HighlightText;
        background: Highlight;
        forced-color-adjust: none;
    }
    .ticks i, .needle { background: Highlight; forced-color-adjust: none; }
    .needle::before { border-top-color: Highlight; }
}
