/* The public landing route has its own navigation and visual language. */
body:has(#homeWorkspace:not([hidden])) .main {
    display: block;
}

body:has(#homeWorkspace:not([hidden])) .main > .topbar {
    display: none !important;
}

.subject-landing {
    --landing-ink: #181d29;
    --landing-muted: #69707d;
    --landing-blue: #4b61ff;
    --landing-line: #e5e7ee;
    --landing-folder-curve-width: min(calc(100vw + 20px), 1040px);
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: calc(100vh / 1.05); /* body is zoomed 1.05x, so match its height */
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0;
    color: var(--landing-ink);
    background: #fff;
    scroll-behavior: smooth;
}

.subject-landing * { box-sizing: border-box; }
.subject-landing a { color: inherit; }
.subject-landing a:focus-visible,
.subject-landing button:focus-visible { outline: 3px solid #7890ff; outline-offset: 3px; }

.landing-topbar {
    position: sticky;
    z-index: 30;
    top: 0;
    height: 56px;
    border-bottom: 1px solid transparent;
    background: #fff;
    transition: border-color 160ms ease;
}
.landing-topbar.is-scrolled { border-bottom-color: #e5e7ee; }

.landing-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    width: min(100% - 32px, 1152px);
    height: 100%;
    margin: 0 auto;
}

.landing-brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -.05em;
    text-decoration: none;
    white-space: nowrap;
}

.landing-brand-mark { display: block; flex: 0 0 30px; width: 30px; height: 30px; overflow: hidden; border-radius: 7px; }
.landing-brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.32); }
.landing-section-title { width: min(calc(100% - 48px), 1240px); margin: 80px auto 0; color: #181d29; font-family: Inter, "Segoe UI", system-ui, sans-serif; font-size: clamp(30px, 3.5vw, 42px); font-weight: 600; letter-spacing: -.045em; line-height: 1.08; }
.landing-section-title + .landing-reader-showcase { padding-top: 36px; }
.landing-section-title--features { margin-top: 0; margin-bottom: 36px; }
@media (max-width: 700px) { .landing-section-title { width: calc(100% - 32px); margin-top: 55px; font-size: 30px; } .landing-section-title + .landing-reader-showcase { padding-top: 28px; } .landing-section-title--features { margin-top: 0; margin-bottom: 28px; } }

.landing-nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 1 1 auto;
}

.landing-nav-links a {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.landing-nav-links a:hover { color: var(--landing-blue); }
.landing-subjects-trigger { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 999px; color: inherit; background: transparent; font-size: 14px; line-height: 20px; font-weight: 500; }
.landing-subjects-trigger:hover, .landing-subjects-trigger[aria-expanded="true"] { color: var(--landing-blue); }
.landing-subjects-trigger svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform 160ms ease; }
.landing-subjects-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.landing-subjects-menu { position: absolute; top: 100%; left: 0; width: 100%; background: #fff; border-top: 1px solid var(--landing-line); }
.landing-subjects-menu[hidden] { display: none; }
.landing-subjects-menu-inner { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; width: min(100% - 32px, 1152px); min-height: 310px; margin: auto; padding: 34px 0 44px; }
.landing-subjects-menu h3 { margin: 0 0 16px; color: var(--landing-muted); font-size: 13px; font-weight: 500; }
.landing-subjects-menu h3 span { font-weight: 400; }
.landing-subjects-menu section a { display: block; width: fit-content; padding: 7px 0; border-radius: 0; font-size: 14px; font-weight: 400; }
.landing-nav-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.landing-login,
.landing-signup {
    min-height: 32px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
}

.landing-login { color: #505763; background: #f2f3f7; }
.landing-login:hover { background: #e8eaf0; }
.landing-signup { color: #fff; background: var(--landing-blue); }
.landing-signup:hover { background: #344bdc; }
.landing-menu-toggle { display: none; }
.landing-mobile-menu-heading, .landing-mobile-menu-actions, .landing-menu-backdrop { display: none; }

.landing-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 500px;
    overflow: visible;
    isolation: isolate;
    padding: 26px 24px 168px;
    text-align: center;
    background: #fff;
}




.landing-announcement {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 39px;
    padding: 7px 16px;
    border: 1px solid #d8d5ff;
    border-radius: 999px;
    background: rgba(255, 255, 255, .78);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
}
.landing-announcement:hover { border-color: #aaa8ef; background: #fff; }
.landing-announcement-spark { display: block; width: 17px; height: 17px; background: #8b5cf6; clip-path: polygon(50% 0, 59% 39%, 100% 50%, 59% 59%, 50% 100%, 41% 59%, 0 50%, 41% 39%); }
.landing-announcement-arrow { width: 7px; height: 7px; margin-left: 3px; border-top: 1.6px solid currentColor; border-right: 1.6px solid currentColor; transform: rotate(45deg); }

.landing-hero h1 {
    max-width: 950px;
    margin: 0;
    font-size: clamp(46px, 5.8vw, 76px);
    font-weight: 700;
    letter-spacing: -.07em;
    line-height: 1.035;
}

.landing-hero h1 span { position: relative; display: inline-block; }
.landing-hero h1 span::after { content: ''; position: absolute; height: 5px; right: 3%; bottom: -7px; left: 3%; border-radius: 50%; background: #4b61ff; transform: rotate(-1deg); }
.landing-hero-copy { max-width: 730px; margin: 29px 0 0; color: #6f7381; font-size: clamp(16px, 1.55vw, 19px); line-height: 1.5; }
.landing-hero-actions { position: relative; z-index: 3; width: min(100%, 390px); margin-top: 26px; }
.landing-hero-primary { display: block; width: 100%; min-height: 51px; border-radius: 10px; color: #fff; background: var(--landing-blue); font-size: 16px; font-weight: 700; }
.landing-hero-primary:hover { background: #344bdc; }
.landing-hero-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 9px; }
.landing-hero-secondary a { display: grid; place-items: center; min-height: 43px; padding: 7px 10px; border: 1px solid rgba(93, 96, 139, .19); border-radius: 10px; background: rgba(255, 255, 255, .6); color: #596170; font-size: 13px; font-weight: 600; text-decoration: none; }
.landing-hero-secondary a:hover { background: #fff; border-color: #aca9ed; }

.landing-tool-ribbon {
    position: relative;
    z-index: 4;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    width: var(--landing-folder-curve-width);
    height: 180px;
    left: 50%;
    margin-top: -135px;
    transform: translateX(-50%);
}
.landing-tool-folder {
    --sweep-y: 0px;
    --sweep-rotate: 0deg;
    position: relative;
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 3px;
    min-width: 0;
    height: 155px;
    color: #202633;
    text-decoration: none;
    transform: translateY(var(--sweep-y));
    transform-origin: center bottom;
    transition: transform .23s ease;
}
/* Stable positions keep the tools centred when decorative pairs appear. */
/* Mirrored heights 23/6/0/0/6/23; original stacking order (left folders on top). */
.landing-tool-folder[data-ribbon-position="-1"] { --sweep-y: 23px; --sweep-rotate: 0deg; z-index: 12; }
.landing-tool-folder[data-ribbon-position="0"] { --sweep-y: 6px; --sweep-rotate: 0deg; z-index: 11; }
.landing-tool-folder[data-ribbon-position="1"] { --sweep-y: 6px; --sweep-rotate: 0deg; z-index: 10; }
.landing-tool-folder[data-ribbon-position="3"] { --sweep-y: 0px; --sweep-rotate: 0deg; z-index: 8; }
.landing-tool-folder[data-ribbon-position="2"] { --sweep-y: 0px; --sweep-rotate: 0deg; z-index: 9; }

.landing-tool-folder[data-ribbon-position="4"] { --sweep-y: 6px; --sweep-rotate: 0deg; z-index: 7; }
.landing-tool-folder[data-ribbon-position="5"] { --sweep-y: 23px; --sweep-rotate: 0deg; z-index: 6; }
.landing-tool-ribbon[data-stack-side] .landing-tool-folder.is-forward { z-index: 20; }
.landing-tool-folder--filler { display: none; pointer-events: none; }
.landing-tool-folder__visual { display: grid; flex: 0 0 122px; width: 100%; height: 122px; place-items: center; }
.landing-tool-folder .react-folder-mount { --landing-folder-scale: 1.66; width: 100px; height: 80px; transform: scale(var(--landing-folder-scale)); transition: transform .24s cubic-bezier(.32, .08, .2, 1); }
.landing-tool-folder.is-moving .react-folder-mount { transition: none; }
.landing-tool-folder:not(.is-open):not(.is-touch-pressed) .react-folder-component .folder:not(.folder--click):hover { transform: none; }
.landing-tool-folder:not(.is-open):not(.is-touch-pressed) .react-folder-component .folder:not(.folder--click):hover .paper { transform: translate(-50%, 10%); }
.landing-tool-folder:not(.is-open):not(.is-touch-pressed) .react-folder-component .folder:not(.folder--click):hover .folder__front { transform: none; }
.landing-tool-folder.is-open .react-folder-component .folder { transform: translateY(-8px); }
.landing-tool-folder.is-open .react-folder-component .paper { transform: translate(-50%, 0%); }
.landing-tool-folder.is-open .react-folder-component .folder__front { transform: skew(15deg) scaleY(.6); }
.landing-tool-folder.is-open .react-folder-component .folder__front.right { transform: skew(-15deg) scaleY(.6); }
.landing-tool-folder .folder { filter: drop-shadow(0 10px 14px rgb(42 43 95 / 25%)); }
.landing-tool-folder__label { display: block; width: 100%; color: #202633; font-size: 15px; font-weight: 700; letter-spacing: -.035em; line-height: 1.2; text-align: center; white-space: nowrap; transition: transform .24s cubic-bezier(.32, .08, .2, 1); }
.landing-tool-folder.is-moving .landing-tool-folder__label { transition: none; }
@media (hover: hover) and (pointer: fine) {
    .landing-tool-folder:not(.landing-tool-folder--filler):hover .landing-tool-folder__label { color: var(--landing-blue); }
}
.landing-tool-folder:focus-visible .landing-tool-folder__label { color: var(--landing-blue); }
.landing-tool-folder.is-touch-pressed .react-folder-component .folder { transform: translateY(-8px); }
.landing-tool-folder.is-touch-pressed .react-folder-component .paper { transform: translate(-50%, 0%); }
.landing-tool-folder.is-touch-pressed .react-folder-component .folder__front { transform: skew(15deg) scaleY(.6); }
.landing-tool-folder.is-touch-pressed .react-folder-component .folder__front.right { transform: skew(-15deg) scaleY(.6); }

.landing-promise { max-width: 760px; margin: 0 auto; padding: 120px 24px 100px; text-align: center; }
.landing-promise-links { display: flex; justify-content: center; gap: 8px; margin-bottom: 41px; }
.landing-promise-links a { padding: 8px 13px; border: 1px solid var(--landing-line); border-radius: 999px; color: #626873; font-size: 12px; text-decoration: none; }
.landing-promise-links a:hover { border-color: #b2bafc; color: var(--landing-blue); }
.landing-promise h2 { margin: 0; font-size: clamp(27px, 3.4vw, 40px); font-weight: 600; letter-spacing: -.055em; line-height: 1.17; }
.landing-promise h2 em { color: var(--landing-blue); font-style: normal; }
.landing-promise p { margin: 22px 0 0; color: var(--landing-muted); font-size: 15px; line-height: 1.6; }
.landing-promise-dots { display: flex; justify-content: center; gap: 5px; margin-top: 38px; }
.landing-promise-dots i { width: 5px; height: 5px; border-radius: 50%; background: #d8dbe2; }
.landing-promise-dots i:first-child { width: 22px; border-radius: 9px; background: #4b61ff; }

.landing-platform { max-width: 1050px; margin: 0 auto; padding: 22px 24px 116px; text-align: center; }
.landing-platform h2 { max-width: 590px; margin: 0 auto; font-size: clamp(31px, 3.6vw, 45px); font-weight: 600; letter-spacing: -.055em; line-height: 1.08; }
.landing-platform-art { position: relative; display: grid; place-items: center; width: 310px; height: 220px; margin: 15px auto -20px; overflow: hidden; }
.landing-orbit { position: absolute; width: 220px; height: 220px; bottom: -94px; border-radius: 50%; background: #85c6f4; }
.landing-orbit--two { width: 175px; height: 175px; left: 23px; bottom: -102px; background: #73dbbc; }
.landing-platform-art img { position: relative; z-index: 1; width: 164px; height: 164px; margin-top: 42px; border-radius: 25%; object-fit: contain; transform: rotate(-6deg); }
.landing-platform-qualities { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--landing-line); border-radius: 12px; background: #fff; text-align: left; }
.landing-platform-qualities > div { min-height: 124px; padding: 18px 19px; }
.landing-platform-qualities > div + div { border-left: 1px solid var(--landing-line); }
.landing-platform-qualities strong { display: block; margin-bottom: 10px; font-size: 14px; }
.landing-platform-qualities span { display: block; color: var(--landing-muted); font-size: 12px; line-height: 1.45; }

.landing-features { max-width: 1150px; margin: 0 auto; padding: 0 24px 115px; scroll-margin-top: 90px; }
.landing-features > h2 { margin: 0 0 26px; text-align: center; font-size: clamp(32px, 3.9vw, 47px); font-weight: 600; letter-spacing: -.055em; }
.landing-feature-tabs { display: flex; justify-content: center; gap: 7px; margin-bottom: 12px; }
.landing-feature-tabs button { min-height: 35px; padding: 0 15px; border-radius: 999px; color: #69707d; background: #f3f4f7; font-size: 12px; font-weight: 600; }
.landing-feature-tabs button:hover { background: #e9ebf0; }
.landing-feature-tabs button[aria-selected="true"] { color: #fff; background: #191d25; }
.landing-feature-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(30px, 5vw, 80px); min-height: 380px; overflow: hidden; padding: clamp(25px, 4vw, 55px); border-radius: 12px; }
.landing-feature-panel[hidden] { visibility: hidden !important; }
.landing-feature-panel--papers { background: #fff3ad; }
.landing-feature-panel--topics { background: #d7f3e8; }
.landing-feature-panel--atlas { background: #e7dcff; }
.landing-feature-panel--progress { background: #dbeafa; }
.landing-preview { min-height: 270px; max-width: 440px; overflow: hidden; border: 1px solid rgba(35, 45, 67, .12); border-radius: 10px; background: #fff; box-shadow: 0 4px 8px rgba(35, 45, 67, .06); }
.landing-preview-bar { display: flex; align-items: center; gap: 5px; height: 38px; padding: 0 13px; border-bottom: 1px solid #edf0f3; color: #71788a; font-size: 11px; font-weight: 600; }
.landing-preview-bar i { width: 7px; height: 7px; border-radius: 50%; background: #cbd1dc; }
.landing-preview-bar span { margin-left: 8px; }
.landing-preview-sheet { width: calc(100% - 40px); min-height: 215px; margin: 20px auto 0; padding: 21px; border: 1px solid #e5e8ef; border-radius: 8px 8px 0 0; background: #fcfcff; text-align: left; }
.landing-preview-sheet small { display: block; color: #4268b6; font-size: 10px; font-weight: 700; }
.landing-preview-sheet strong { display: block; margin: 12px 0 17px; color: #262b37; font-size: 18px; }
.landing-preview-line { display: block; width: 92%; height: 7px; margin: 9px 0; border-radius: 4px; background: #e8ebf2; }
.landing-preview-line--short { width: 62%; }
.landing-preview-answer { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; padding-top: 14px; border-top: 1px solid #e7eaf0; color: #6d7582; font-size: 11px; }
.landing-preview-answer span:last-child { color: #4b61ff; font-weight: 700; }
.landing-feature-copy { max-width: 400px; }
.landing-feature-copy > p { margin: 0 0 10px; color: #45516b; font-size: 13px; font-weight: 700; }
.landing-feature-copy h3 { margin: 0 0 15px; color: #252838; font-size: clamp(29px, 3.2vw, 41px); font-weight: 700; letter-spacing: -.055em; line-height: 1.08; }
.landing-feature-copy > span { display: block; max-width: 370px; color: #4d5968; font-size: 15px; line-height: 1.6; }
.landing-feature-copy a { display: inline-flex; align-items: center; gap: 11px; min-height: 40px; margin-top: 25px; padding: 0 17px; border-radius: 999px; color: #fff; background: #273252; font-size: 13px; font-weight: 700; text-decoration: none; }
.landing-feature-copy a::after { content: ''; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
.landing-feature-copy a:hover { background: #151e3d; }
.landing-topic-list { display: grid; gap: 10px; padding: 28px; color: #2c3441; }
.landing-topic-list strong { margin-bottom: 8px; font-size: 19px; }
.landing-topic-list span { display: flex; justify-content: space-between; padding: 12px 15px; border: 1px solid #e5e8ef; border-radius: 8px; font-size: 13px; }
.landing-topic-list span::after { content: ''; width: 7px; height: 7px; border-top: 1.5px solid #158b72; border-right: 1.5px solid #158b72; transform: rotate(45deg); }
.landing-preview--atlas { position: relative; background: #fdfcff; }
.landing-preview--atlas > img { position: absolute; width: 160px; height: 160px; top: 5px; right: -2px; object-fit: contain; }
.landing-chat-preview { position: relative; display: grid; gap: 12px; width: 75%; margin: 48px 0 0 23px; padding: 23px; border: 1px solid #e5e2f0; border-radius: 10px; background: rgba(255,255,255,.95); color: #323347; text-align: left; }
.landing-chat-preview span { color: #7153bd; font-size: 11px; font-weight: 700; }
.landing-chat-preview strong { font-size: 16px; }
.landing-chat-preview p { margin: 0; color: #5e6372; font-size: 12px; line-height: 1.5; }
.landing-progress-preview { padding: 24px; color: #253249; text-align: left; }
.landing-progress-preview strong { display: block; margin-bottom: 24px; font-size: 18px; }
.landing-progress-preview > span { display: inline-block; width: 30%; height: 100px; margin-right: 3%; border-radius: 8px 8px 0 0; background: #8bb5ec; vertical-align: bottom; }
.landing-progress-preview > span:nth-of-type(2) { height: 145px; background: #5f8edc; }
.landing-progress-preview > span:nth-of-type(3) { height: 76px; background: #b4cef2; }
.landing-progress-preview > div { display: flex; justify-content: space-between; margin-top: 18px; color: #7a8493; font-size: 12px; }

.landing-subjects { padding: 93px 24px 104px; background: #f7f8fc; scroll-margin-top: 64px; }
.landing-section-heading { max-width: 720px; margin: 0 auto 30px; text-align: center; }
.landing-section-heading > p { margin: 0 0 9px; color: var(--landing-blue); font-size: 13px; font-weight: 700; }
.landing-section-heading h2 { margin: 0; font-size: clamp(31px, 3.8vw, 45px); font-weight: 600; letter-spacing: -.055em; line-height: 1.12; }
.landing-section-heading > span { display: block; margin-top: 12px; color: var(--landing-muted); font-size: 15px; }
.subject-landing .subject-choice-panel { width: min(100%, 830px); max-width: none; margin: 0 auto; padding: 23px; border: 1px solid var(--landing-line); border-radius: 12px; background: #fff; }
.subject-landing .subject-choice-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 0 14px; }
.subject-landing .subject-choice-heading h3 { margin: 0; font-size: 15px; font-weight: 700; }
.subject-landing .subject-manager-open { width: 37px; height: 37px; border: 1px solid var(--landing-line); border-radius: 8px; color: #4b61ff; background: #f7f8fc; }
.subject-landing .subject-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0; }
.subject-landing .subject-choice { min-height: 76px; padding: 13px 16px; border: 1px solid var(--landing-line); border-radius: 8px; background: #fff; box-shadow: none; }
.subject-landing .subject-choice:hover { border-color: #8996fa; background: #f8f9ff; }
.subject-landing .subject-choice-copy strong { font-size: 16px; }
.subject-landing .subject-choice-copy span { font-size: 12px; }
.subject-landing .subject-choice > svg { stroke: var(--landing-blue); }

.landing-how { max-width: 1130px; margin: 0 auto; padding: 95px 24px 120px; scroll-margin-top: 70px; }
.landing-how .landing-section-heading { margin-bottom: 52px; }
.landing-how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.landing-how-steps > div { min-height: 175px; padding: 20px 26px 20px 0; border-top: 1px solid var(--landing-line); }
.landing-how-steps span { color: var(--landing-blue); font-size: 13px; font-weight: 700; }
.landing-how-steps h3 { margin: 20px 0 8px; font-size: 22px; font-weight: 600; letter-spacing: -.035em; }
.landing-how-steps p { max-width: 270px; margin: 0; color: var(--landing-muted); font-size: 14px; line-height: 1.6; }
.landing-final { display: flex; align-items: center; justify-content: center; gap: 40px; min-height: 270px; margin: 0 24px 0; padding: 30px; border-radius: 12px; color: #fff; background: linear-gradient(115deg, #344fbc, #7665cf); text-align: left; }
.landing-final img { width: 160px; height: 160px; border-radius: 25%; object-fit: contain; transform: rotate(-7deg); }
.landing-final p { margin: 0 0 8px; font-size: 13px; }
.landing-final h2 { max-width: 530px; margin: 0; font-size: clamp(28px, 3.8vw, 43px); font-weight: 600; letter-spacing: -.05em; line-height: 1.1; }
.landing-final button { min-height: 43px; margin-top: 22px; padding: 0 19px; border-radius: 8px; color: #2e3e8b; background: #fff; font-size: 13px; font-weight: 700; }
.landing-final button:hover { background: #eef1ff; }
.landing-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1180px; margin: 0 auto; padding: 45px 24px; color: #6f7581; font-size: 12px; }
.landing-footer > span { color: var(--landing-ink); font-size: 17px; font-weight: 700; }
.landing-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 23px; }
.landing-footer a { text-decoration: none; }
.landing-footer a:hover { color: var(--landing-blue); }

[data-theme="dark"] .subject-landing { --landing-ink: #eef1f9; --landing-muted: #aab2c2; --landing-line: #3a4150; background: #171b24; }
[data-theme="dark"] .landing-topbar { border-color: #353d4c; background: rgba(25, 29, 39, .94); }
[data-theme="dark"] .landing-topbar:not(.is-scrolled) { border-color: transparent; }
[data-theme="dark"] .landing-subjects-menu { background: #242b39; border-color: #353d4c; }
[data-theme="dark"] .landing-login { color: #e2e6f0; background: #343a49; }
[data-theme="dark"] .landing-hero { background: #171b24; }
[data-theme="dark"] .landing-announcement { border-color: #656c9c; background: rgba(38, 43, 66, .9); }
[data-theme="dark"] .landing-hero-copy { color: #c5c7d6; }
[data-theme="dark"] .landing-hero-secondary a { border-color: #777ca4; color: #e8e9f4; background: rgba(35, 39, 63, .68); }
[data-theme="dark"] .landing-tool-folder__label { color: #e8eaf4; }
[data-theme="dark"] .landing-promise-links a { color: #d2d6e2; }
[data-theme="dark"] .landing-platform-qualities,
[data-theme="dark"] .subject-landing .subject-choice-panel,
[data-theme="dark"] .subject-landing .subject-choice { background: #232936; }
[data-theme="dark"] .subject-landing .subject-choice { color: #eef1f9; }
[data-theme="dark"] .subject-landing .subject-choice-copy strong { color: #eef1f9; }
[data-theme="dark"] .subject-landing .subject-choice:hover { background: #2c3445; }
[data-theme="dark"] .landing-subjects { background: #1d222c; }
[data-theme="dark"] .landing-feature-tabs button { color: #c1c8d7; background: #313747; }
[data-theme="dark"] .landing-feature-tabs button[aria-selected="true"] { color: #fff; background: #4b61ff; }
[data-theme="dark"] .landing-footer > span { color: #eef1f9; }

@media (max-width: 900px) {
    .subject-landing { --landing-folder-curve-width: max(calc(100vw + 20px), 688px); }
    .landing-platform-qualities > div { padding: 14px; }
    .landing-tool-folder .react-folder-mount { --landing-folder-scale: 1.4; }
}

@media (min-width: 1200px) {
    .landing-tool-folder .react-folder-mount { --landing-folder-scale: 1.73; }
}

@media (min-width: 1450px) {
    .landing-tool-ribbon { margin-top: -125px; }
}

@media (max-width: 1023px) {
    .landing-menu-backdrop:not([hidden]) { display: block; position: fixed; z-index: 31; inset: 0; background: rgba(0,0,0,.5); }
    .landing-nav-links { position: fixed; z-index: 32; display: none; flex-direction: column; align-items: stretch; gap: 0; width: 100%; top: 0; right: 0; padding: 16px 16px 32px; border: 0; border-radius: 0 0 16px 16px; background: #fff; box-shadow: none; }
    .landing-nav-links.is-open { display: flex; }
    .landing-nav-links { max-height: min(90vh, 760px); overflow-y: auto; }
    .landing-subjects-trigger { width: 100%; justify-content: space-between; min-height: 40px; padding: 8px 4px; font-size: 16px; line-height: 24px; }
    .landing-subjects-trigger svg { margin-right: 12px; }
    .landing-subjects-menu { position: static; width: 100%; border: 0; box-shadow: none; }
    .landing-subjects-menu-inner { width: 100%; min-height: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; padding: 18px 4px 24px; }
    .landing-subjects-menu h3 { margin-bottom: 8px; }
    .landing-subjects-menu section a { white-space: normal; }
    .landing-nav-links > a { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 8px 4px; font-size: 16px; line-height: 24px; }
    .landing-nav-links > a::after { content: ''; width: 9px; height: 9px; margin-right: 14px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); opacity: .55; }
    .landing-mobile-menu-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
    .landing-mobile-menu-heading .landing-brand { font-size: 42px; line-height: 1; }
    .landing-mobile-menu-heading .landing-brand-mark { flex-basis: 58px; width: 58px; height: 58px; }
    .landing-mobile-menu-close { display: grid; place-items: center; width: 24px; height: 24px; color: var(--landing-ink); background: transparent; }
    .landing-mobile-menu-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
    .landing-mobile-menu-actions { display: flex; gap: 8px; margin-top: 40px; }
    .landing-nav-actions { margin-left: auto; }
    .landing-nav-actions .landing-login { display: none; }
    .landing-menu-toggle { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border: 0; color: var(--landing-muted); background: transparent; }
    .landing-menu-toggle svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }
    [data-theme="dark"] .landing-nav-links { background: #242b39; }
}
@media (max-width: 740px) {
    .landing-hero { min-height: 495px; }
    .landing-hero h1 { margin-top: 0; font-size: clamp(43px, 8.4vw, 65px); }
    .landing-platform-qualities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .landing-platform-qualities > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--landing-line); }
    .landing-platform-qualities > div:nth-child(4) { border-top: 1px solid var(--landing-line); }
    .landing-feature-panel { grid-template-columns: 1fr; gap: 26px; }
    .landing-preview { width: 100%; max-width: none; }
    .landing-feature-copy { max-width: none; }
}

@media (max-width: 540px) {
    .landing-hero { min-height: 515px; padding: 23px 17px 165px; }
    .landing-announcement { max-width: 100%; padding: 7px 12px; font-size: 11px; }
    .landing-hero h1 { margin-top: 0; font-size: clamp(40px, 11vw, 58px); }
    .landing-hero-copy { max-width: 460px; margin-top: 24px; font-size: 15px; }
    .landing-hero-actions { max-width: 350px; margin-top: 23px; }
    .landing-hero-primary { min-height: 48px; font-size: 14px; }
    .landing-hero-secondary a { min-height: 41px; font-size: 11px; }
    .landing-tool-ribbon { height: 165px; margin-top: -122px; }
    .landing-tool-folder { height: 145px; }
    .landing-tool-folder__visual { flex-basis: 115px; height: 115px; }
    .landing-tool-folder__label { font-size: 12px; }
    .landing-tool-folder:nth-child(1), .landing-tool-folder:nth-child(8) { --sweep-y: 22px; }
    .landing-tool-folder:nth-child(2), .landing-tool-folder:nth-child(7) { --sweep-y: 16px; }
    .landing-tool-folder:nth-child(3), .landing-tool-folder:nth-child(6) { --sweep-y: 10px; }
    .landing-tool-folder:nth-child(4), .landing-tool-folder:nth-child(5) { --sweep-y: 6px; }
    .landing-promise { padding: 91px 22px 80px; }
    .landing-promise-links { margin-bottom: 32px; }
    .landing-promise-links a { padding: 7px 9px; font-size: 10px; }
    .landing-platform { padding-bottom: 85px; }
    .landing-platform-art { margin-top: 4px; }
    .landing-platform-qualities > div { min-height: 130px; padding: 14px; }
    .landing-features { padding: 0 16px 86px; }
    .landing-features > h2 { font-size: 33px; }
    .landing-feature-tabs { justify-content: flex-start; overflow-x: auto; padding-bottom: 5px; }
    .landing-feature-tabs button { flex: 0 0 auto; padding: 0 12px; }
    .landing-feature-panel { padding: 20px; }
    .landing-preview { min-height: 250px; }
    .landing-feature-copy h3 { font-size: 32px; }
    .landing-subjects { padding: 78px 16px 82px; }
    .subject-landing .subject-choice-panel { padding: 17px; }
    .subject-landing .subject-grid { grid-template-columns: 1fr; }
    .landing-how { padding: 78px 20px 82px; }
    .landing-how-steps { grid-template-columns: 1fr; gap: 0; }
    .landing-how-steps > div { min-height: 128px; }
    .landing-final { flex-direction: column; gap: 5px; margin: 0 16px; padding: 22px; text-align: center; }
    .landing-final img { width: 115px; height: 115px; }
    .landing-footer { flex-direction: column; gap: 14px; padding: 39px 16px; text-align: center; }
}

@media (max-width: 1000px) {
    .subject-landing { --landing-folder-curve-width: min(calc(100vw - 56px), 900px); }
}

@media (min-width: 701px) { .subject-landing:has(.landing-tool-folder[data-ribbon-position="0"][hidden]) .landing-tool-ribbon { width: min(calc(100vw - 56px), 500px); } }
@media (min-width: 701px) {
    .landing-tool-ribbon { width: min(calc(100vw - 56px), 600px); }
    .landing-tool-folder__visual { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 901px) { .subject-landing:has(.landing-tool-folder[data-ribbon-position="0"][hidden]) .landing-tool-ribbon { width: min(calc(100vw - 80px), 784px); } }
@media (min-width: 901px) {
    .landing-tool-ribbon { width: min(calc(100vw - 80px), 940px); }
    .landing-tool-folder--filler[data-filler-level="1"] { display: flex; }
}

@media (max-width: 700px) {
    .subject-landing { --landing-folder-curve-width: min(calc(100vw - 40px), 420px); }
    .landing-tool-folder--filler { display: none; }
    .landing-tool-ribbon { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 22px; height: auto; margin-top: -120px; }
    .landing-tool-folder:not(.landing-tool-folder--filler) { grid-column: span 2; }
    
    
    .landing-tool-folder { height: 150px; }
    .landing-tool-folder__visual { flex-basis: 122px; height: 122px; }
    .landing-tool-folder .react-folder-mount { --landing-folder-scale: 1.5; }
    .landing-tool-folder__label { font-size: 12px; }
    .landing-tool-folder:nth-of-type(2), .landing-tool-folder:nth-of-type(4) { --sweep-y: 6px; --sweep-rotate: -5deg; }
    .landing-tool-folder:nth-of-type(3) { --sweep-y: 0px; --sweep-rotate: 0deg; }
    .landing-tool-folder:nth-of-type(3), .landing-tool-folder:nth-of-type(5) { --sweep-y: 6px; --sweep-rotate: 5deg; }
    .landing-tool-ribbon > a:last-of-type { --sweep-y: 6px; --sweep-rotate: 5deg; }
    .landing-promise { padding-top: 70px; }
}
.landing-tool-ribbon > a[data-ribbon-position="4"]:nth-of-type(5) { --sweep-rotate: 2deg; }

@media (max-width: 430px) {
    .landing-tool-folder .react-folder-mount { --landing-folder-scale: 1.35; }
}

@media (max-width: 360px) {
    .landing-tool-folder .react-folder-mount { --landing-folder-scale: 1.08; }
    .landing-tool-folder__label { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
    .subject-landing { scroll-behavior: auto; }
    .landing-tool-folder,
    .landing-tool-folder .react-folder-mount,
    .landing-tool-folder .react-folder-component .folder,
    .landing-tool-folder .react-folder-component .paper,
    .landing-tool-folder .react-folder-component .folder__front { transition: none !important; }
}

.landing-feature-grid{display:grid;grid-template-columns:1fr 2.08fr;gap:16px;width:min(calc(100% - 48px),1240px);margin:0 auto 100px}.landing-feature-grid__small{display:grid;grid-template-rows:1fr 1fr;gap:16px}.landing-feature-grid__small>div,.landing-feature-grid__large{background:#f2f2f2;border-radius:16px}.landing-feature-grid__small>div{min-height:235px}.landing-feature-grid__large{min-height:486px}@media(max-width:700px){.landing-feature-grid{width:calc(100% - 32px);gap:10px}.landing-feature-grid__small{gap:10px}.landing-feature-grid__small>div{min-height:130px}.landing-feature-grid__large{min-height:270px}}
.landing-definitions{display:flex;flex-direction:column;padding:20px;overflow:hidden}.landing-definitions h2{margin:0;font-size:18px;line-height:1.3;font-weight:600;letter-spacing:-.02em}.landing-definitions>p{margin:8px 0 16px;color:#777;font-size:13px;line-height:1.45}.landing-definitions__viewport{position:relative;flex:1;min-height:0;max-height:370px;overflow:hidden;border-radius:10px;background:#fff}.landing-definitions__track{width:100%}.landing-definitions__set{display:grid;gap:14px;padding:16px;box-sizing:border-box}.landing-definitions__track.is-looping{animation:landing-definitions-scroll 28s linear infinite}.landing-definition{padding:15px;border:1px solid #e7e9ee;border-radius:8px;background:#fff;color:#242b36;font-size:13px;line-height:1.4}.landing-definition>strong{display:block;margin-bottom:8px;font-size:14px;font-weight:600}.landing-definition table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:11px}.landing-definition th,.landing-definition td{padding:7px 9px;border:1px solid #d9dde4;text-align:left;font-weight:400}.landing-definition th{font-weight:600}.landing-definition th:last-child,.landing-definition td:last-child{width:58px;text-align:center}.landing-definition table{color:#303d4c}@keyframes landing-definitions-scroll{to{transform:translateY(-50%)}}@media(prefers-reduced-motion:reduce){.landing-definitions__track.is-looping{animation:none}.landing-definitions__viewport{overflow-y:auto}.landing-definitions__set[aria-hidden=true]{display:none}}@media(max-width:700px){.landing-definitions{padding:12px}.landing-definitions h2{font-size:14px}.landing-definitions>p{font-size:10px;margin:6px 0 10px}.landing-definitions__viewport{max-height:210px}.landing-definitions__set{padding:8px;gap:8px}.landing-definition{padding:8px;font-size:10px}.landing-definition>strong{font-size:11px}.landing-definition table{font-size:9px}.landing-definition th,.landing-definition td{padding:5px}.landing-definition th:last-child,.landing-definition td:last-child{width:38px}}
.landing-definitions{padding:10px}.landing-definitions h2,.landing-definitions>p{margin-left:3px;margin-right:3px}.landing-definitions>p{margin-top:5px;margin-bottom:9px}.landing-definitions__viewport{max-height:none}.landing-definitions__track.is-looping{animation:none}.landing-definitions__track.is-looping.is-visible{animation:landing-definitions-scroll 23s linear infinite}.landing-definitions__set{gap:9px;padding:10px}.landing-definition{border:0;border-radius:0;padding:2px 3px;font-size:14px}.landing-definition>strong{font-size:16px;margin-bottom:5px}.landing-definition table{font-size:13px}.landing-definition th,.landing-definition td{padding:5px 8px}.landing-definition__subject{font-weight:500;white-space:nowrap}.landing-definition__subject--physics{color:#6598c5}.landing-definition__subject--biology{color:#6da68b}.landing-definition__subject--chemistry{color:#c98181}.landing-definition__subject--maths{color:#9a88c3}@media(max-width:700px){.landing-definitions{padding:8px}.landing-definitions__set{gap:7px;padding:7px}.landing-definition{padding:2px}.landing-definition>strong{font-size:12px}.landing-definition table{font-size:10px}.landing-definition th,.landing-definition td{padding:4px}.landing-definitions__viewport{max-height:none}}@media(prefers-reduced-motion:reduce){.landing-definitions__track.is-looping.is-visible{animation:none}}
.landing-feature-grid__large{height:486px;box-sizing:border-box}.landing-definitions__viewport{height:0}.landing-definition th:last-child,.landing-definition td:last-child{width:72px}@media(max-width:700px){.landing-feature-grid__large{height:270px}.landing-definition th:last-child,.landing-definition td:last-child{width:58px}}
.landing-definition__subject,.landing-definition__subject--physics,.landing-definition__subject--biology,.landing-definition__subject--chemistry,.landing-definition__subject--maths{color:#a0a4aa;font-weight:400}.landing-definition>strong{font-size:14px;font-weight:400}.landing-definition table:has(th:only-child) th:last-child,.landing-definition table:has(th:only-child) td:last-child{width:auto;text-align:left}@media(max-width:700px){.landing-definition>strong{font-size:11px}}
.landing-definitions{padding:20px;background:#f2f2f2;border-radius:16px}.landing-definitions h2,.landing-definitions>p{margin-left:0;margin-right:0}.landing-definitions>p{margin-top:8px;margin-bottom:16px}.landing-definitions__viewport{border-radius:10px;background:#fff}@media(max-width:700px){.landing-definitions{padding:12px}.landing-definitions>p{margin-top:6px;margin-bottom:10px}}
.landing-definitions{padding:16px;background:#f4f4f4;border-radius:16px;font-family:Inter,"Segoe UI",system-ui,sans-serif}.landing-definitions h2{margin:0;color:#171717;font-size:16px;line-height:24px;letter-spacing:-.015em;font-weight:500}.landing-definitions>p{margin:4px 0 12px;color:#737373;font-size:12px;line-height:18px;font-weight:400}.landing-definitions__viewport{border-radius:10px}@media(max-width:700px){.landing-definitions{padding:12px}.landing-definitions h2{font-size:13px;line-height:19px}.landing-definitions>p{font-size:10px;line-height:15px;margin:4px 0 10px}}
.landing-definitions h2{font-size:19px;line-height:26px}.landing-definitions>p{font-size:14px;line-height:20px}.landing-definitions__set{gap:12px;padding:12px}.landing-definition>strong{font-size:16px;line-height:1.4}.landing-definition table{font-size:15px;line-height:1.4}.landing-definition th,.landing-definition td{padding:7px 10px}.landing-definition th:last-child,.landing-definition td:last-child{width:78px}@media(max-width:700px){.landing-definitions h2{font-size:15px;line-height:21px}.landing-definitions>p{font-size:11px;line-height:16px}.landing-definitions__set{gap:8px;padding:8px}.landing-definition>strong{font-size:13px}.landing-definition table{font-size:11px}.landing-definition th,.landing-definition td{padding:5px 6px}.landing-definition th:last-child,.landing-definition td:last-child{width:55px}}
.landing-saved-feature{box-sizing:border-box;display:flex;flex-direction:column;padding:12px;overflow:hidden;color:#202630}.landing-saved-feature__preview{flex:1;min-height:0;overflow:hidden;padding:13px;border-radius:9px;background:#fff;font-family:Inter,"Segoe UI",sans-serif}.landing-saved-feature__header{display:flex;align-items:center;gap:7px;font-size:13px;line-height:1.25}.landing-saved-feature__header svg,.landing-saved-feature h3 svg{width:13px;height:16px;fill:#ff5267;flex:none}.landing-saved-feature__header strong{font-weight:600}.landing-saved-feature__header strong span{color:#777}.landing-saved-feature__tabs{display:flex;gap:9px;margin-top:10px;white-space:nowrap;color:#77818d;font-size:6px}.landing-saved-feature__tabs span:first-child{padding-bottom:4px;border-bottom:1px solid #222;color:#202630}.landing-saved-feature__toolbar{display:flex;align-items:center;gap:4px;margin:8px 0;font-size:6px;color:#737d89}.landing-saved-feature__toolbar span{padding:5px;border:1px solid #e2e5e9;border-radius:6px;white-space:nowrap}.landing-saved-feature__toolbar span:first-child{margin-right:auto;background:#f1f2f4;border-color:#f1f2f4}.landing-saved-feature__toolbar span:last-child{background:#888;color:#fff;border-color:#888}.landing-saved-feature__list{border:1px solid #d9dfe7;border-radius:7px;overflow:hidden}.landing-saved-feature__list>div{display:flex;gap:6px;padding:8px;border-bottom:1px solid #e8eaed}.landing-saved-feature__list>div:last-child{border:0}.landing-saved-feature__list i{width:7px;height:7px;flex:none;border:1px solid #aaa;border-radius:2px;margin-top:2px}.landing-saved-feature__list section{min-width:0}.landing-saved-feature__list p{display:flex;align-items:center;gap:4px;margin:0 0 5px;white-space:nowrap}.landing-saved-feature__list p span{padding:3px 5px;border-radius:4px;background:#f0f1f4;font-size:6px}.landing-saved-feature__list p span:nth-child(2){background:#fff2d9;color:#997632}.landing-saved-feature__list small{display:block;color:#7f8997;font-size:6px}.landing-saved-feature__list p small{display:inline}.landing-saved-feature__list strong{display:block;margin:0 0 5px;font-size:7px;font-weight:400;white-space:nowrap}.landing-saved-feature h3{display:flex;align-items:center;gap:6px;margin:11px 0 4px;font-size:15px;line-height:1.3;font-weight:500}.landing-saved-feature h3 svg{width:12px;height:14px}.landing-saved-feature>p{margin:0;color:#777;font-size:11px;line-height:1.4}@media(max-width:700px){.landing-saved-feature{padding:8px}.landing-saved-feature__preview{padding:8px}.landing-saved-feature__header{font-size:10px}.landing-saved-feature__tabs{gap:5px;font-size:5px;margin-top:6px}.landing-saved-feature__toolbar{font-size:5px;margin:4px 0}.landing-saved-feature__list>div{padding:5px}.landing-saved-feature h3{font-size:12px;margin:7px 0 3px}.landing-saved-feature>p{font-size:9px}.landing-topic-feature h3{font-size:15px;line-height:21px;bottom:41px}.landing-topic-feature>p{font-size:9px;bottom:23px}}
.landing-feature-grid__small{height:486px;grid-template-rows:repeat(2,minmax(0,1fr))}.landing-feature-grid__small>div{min-height:0}.landing-saved-feature__preview{overflow:hidden}.landing-saved-feature{min-height:0}@media(max-width:700px){.landing-feature-grid__small{height:270px}}
.landing-saved-feature__preview{padding:8px 12px}.landing-saved-feature__tabs{margin-top:5px}.landing-saved-feature__toolbar{margin:4px 0}.landing-saved-feature__toolbar span{padding:3px 5px}.landing-saved-feature__list>div{padding:5px 7px}.landing-saved-feature__list p{margin-bottom:3px}.landing-saved-feature__list strong{margin-bottom:3px}
.landing-saved-feature__toolbar{justify-content:flex-end;margin:0 0 7px}.landing-saved-feature__toolbar span:first-child{margin-right:0;background:#fff;border-color:#e2e5e9}.landing-saved-feature__list>div{padding:8px}.landing-saved-feature__list p{margin-bottom:5px}.landing-saved-feature__list strong{margin-bottom:5px}@media(max-width:700px){.landing-saved-feature__list>div{padding:5px}.landing-saved-feature__list p,.landing-saved-feature__list strong{margin-bottom:3px}}
.landing-saved-feature__preview{padding:12px 14px}
.landing-saved-feature h3{font-size:19px;line-height:26px}
.landing-saved-feature h3 svg{width:22px;height:30px}
@media(max-width:700px){.landing-saved-feature h3{font-size:15px;line-height:21px}.landing-saved-feature h3 svg{width:18px;height:25px}}
.landing-saved-feature__list>div{gap:9px;padding:11px 12px}
.landing-study-graph{box-sizing:border-box;min-height:0;padding:0;overflow:hidden}
.landing-study-graph svg{display:block;width:100%;height:100%;min-height:0;border:1px solid #e8ebf0;border-radius:12px;background:#fff}
.landing-study-time{box-sizing:border-box;display:flex;flex-direction:column;gap:5px;min-height:0;padding:12px;overflow:hidden;color:#202630}
.landing-study-time h3{margin:0;font-size:19px;line-height:26px;font-weight:500}
.landing-study-time>p{margin:0;color:#777;font-size:11px;line-height:1.4}
.landing-study-graph{flex:1}
.landing-history-feature{box-sizing:border-box;display:flex;flex-direction:column;gap:5px;min-height:0;padding:12px;overflow:hidden;color:#202630}
.landing-history-preview{box-sizing:border-box;flex:1;min-height:0;padding:10px;overflow:hidden;border:1px solid #e4e7ec;border-radius:10px;background:#fff;box-shadow:0 1px 3px rgba(20,28,40,.08);font-family:Inter,"Segoe UI",sans-serif}
.landing-history-preview h4{margin:0;padding:0 0 6px;border-bottom:1px solid #e9ebef;font-size:12px;line-height:16px;font-weight:600}
.landing-history-date{margin:6px 0 4px;font-size:14px;line-height:17px;font-weight:700}
.landing-history-columns{display:grid;grid-template-columns:1fr 1fr;min-height:0}
.landing-history-columns>div{min-width:0;padding-right:8px}
.landing-history-columns>div+div{padding:0 0 0 8px;border-left:1px solid #e5e7eb}
.landing-history-columns>div>div{display:flex;align-items:center;justify-content:space-between;gap:5px;min-width:0;padding:5px 0;border-bottom:1px solid #eef0f3}
.landing-history-columns>div>div:last-child{border-bottom:0}
.landing-history-columns span{min-width:0;overflow:hidden;color:#525b67;font-size:9px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}
.landing-history-columns strong{flex:none;color:#202630;font-size:10px;line-height:1.2;font-weight:600}
.landing-history-feature h3{margin:0;font-size:19px;line-height:26px;font-weight:500}
.landing-history-feature>p{margin:0;color:#777;font-size:11px;line-height:1.4}
.landing-topic-feature{position:relative;box-sizing:border-box;display:block;min-height:0;padding:12px;overflow:hidden;color:#202630}.landing-topic-feature .landing-prep-list{position:absolute;inset:12px;height:auto;clip-path:inset(0 0 81px round 11px)}.landing-topic-feature h3{position:absolute;z-index:2;right:12px;bottom:56px;left:12px;margin:0;font-size:19px;line-height:26px;font-weight:500}.landing-topic-feature>p{position:absolute;z-index:2;right:12px;bottom:12px;left:12px;margin:0;color:#777;font-size:11px;line-height:1.4}
.landing-prep-list{display:flex;flex:1;flex-direction:column;min-width:0;min-height:0;overflow:hidden;border:1px solid #e1e4e9;border-radius:11px;background:#fff}
.landing-topic-row{display:grid;grid-template-columns:16px minmax(0,1fr) max-content;align-items:center;column-gap:10px;flex:1;min-height:0;padding:9px 12px;border-bottom:1px solid #e8eaed;font-family:Inter,"Segoe UI",sans-serif}
.landing-topic-row:last-child{border-bottom:0}
.landing-topic-check{box-sizing:border-box;width:15px;height:15px;border:1.5px solid #c9cdd2;border-radius:4px}
.landing-topic-main{display:flex;min-width:0;flex-direction:column;gap:5px}
.landing-topic-main>strong{overflow:hidden;color:#202124;font-size:13px;line-height:1.2;font-weight:500;text-overflow:ellipsis;white-space:nowrap}
.landing-topic-meta{display:flex;align-items:center;gap:8px}
.landing-topic-subject{padding:3px 7px;border-radius:6px;font-size:9px;line-height:1.2;font-weight:500}
.landing-topic-subject--maths{color:#1498b7;background:#d9f7ff}
.landing-topic-subject--physics{color:#4c65d8;background:#e8eaff}
.landing-topic-subject--chemistry{color:#ab51c0;background:#f8e6fc}
.landing-topic-time{display:inline-flex;align-items:center;gap:4px;color:#747982;font-size:11px;line-height:1.2;white-space:nowrap}
.landing-topic-time svg{width:15px;height:13px;flex:none;fill:#a4a8ae;stroke:#fff;stroke-width:1;stroke-linecap:round;stroke-linejoin:round}
.landing-topic-time--green svg{fill:#148b74;stroke:none}
.landing-topic-time--purple svg{fill:#9864d8;stroke:none}
.landing-topic-time--blue svg{fill:#3487d7;stroke:none}
.landing-topic-start{display:inline-flex;align-items:center;justify-self:end;gap:6px;width:max-content;box-sizing:border-box;padding:6px 10px;border-radius:18px;background:#f4f4f4;color:#777;font-size:10px;line-height:1.2;white-space:nowrap}
.landing-topic-start svg{width:10px;height:10px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.landing-saved-feature__list i{width:10px;height:10px;margin-top:3px}
.landing-saved-feature__list p{gap:6px;margin-bottom:7px}
.landing-saved-feature__list p span{padding:4px 7px;font-size:10px;line-height:1.2}
.landing-saved-feature__list p span.landing-saved-feature__hard{background:#ffe3e3;color:#bd3c42}
.landing-saved-feature__list small{font-size:10px;line-height:1.35}
.landing-saved-feature__list strong{margin-bottom:6px;font-size:12px;line-height:1.35}
@media(max-width:700px){.landing-feature-grid__small{height:360px}.landing-mini-folders{padding:6px;gap:4px}.landing-mini-folder__icon{width:56px;height:40px}.landing-mini-folder strong{font-size:10px}.landing-mini-folder>span{font-size:8px}.landing-study-time{padding:8px;gap:3px}.landing-study-time h3{font-size:12px;line-height:16px}.landing-study-time>p{font-size:9px;line-height:1.3}.landing-saved-feature__preview{padding:8px}.landing-saved-feature__list>div{gap:6px;padding:7px}.landing-saved-feature__list i{width:8px;height:8px;margin-top:2px}.landing-saved-feature__list p{gap:4px;margin-bottom:4px}.landing-saved-feature__list p span{padding:3px 5px;font-size:8px}.landing-saved-feature__list small{font-size:8px}.landing-saved-feature__list strong{font-size:10px;margin-bottom:4px}}


.landing-topic-time .landing-topic-mini-folder{width:16px;height:10.4px;flex:none;overflow:visible;fill:currentColor;stroke:none;filter:drop-shadow(0 1px 1px rgba(25,35,50,.16))}.landing-topic-mini-folder path:first-child{fill:var(--landing-folder-tab)}.landing-topic-mini-folder path:last-child{fill:currentColor}.landing-topic-mini-folder--blue{color:#7ea9df;--landing-folder-tab:#588cc3}.landing-topic-mini-folder--green{color:#078875;--landing-folder-tab:#006b5d}.landing-topic-mini-folder--purple{color:#b77af5;--landing-folder-tab:#925bd0}

.landing-topic-feature h3,.landing-saved-feature h3{font-family:Inter,"Segoe UI",system-ui,sans-serif;color:#171717;font-size:19px;line-height:26px;letter-spacing:-.015em;font-weight:500}.landing-topic-feature>p,.landing-saved-feature>p{font-family:Inter,"Segoe UI",system-ui,sans-serif;color:#737373;font-size:14px;line-height:20px;font-weight:400}@media(max-width:700px){.landing-topic-feature h3,.landing-saved-feature h3{font-size:15px;line-height:21px}.landing-topic-feature>p,.landing-saved-feature>p{font-size:11px;line-height:16px}}

@media(max-width:700px){.landing-topic-feature .landing-prep-list{clip-path:inset(0 0 72px round 11px)}.landing-topic-feature h3{bottom:60px}.landing-topic-feature>p{bottom:8px}}
@media(max-width:700px){.landing-feature-grid{grid-template-columns:1fr;gap:12px}.landing-feature-grid__small{height:auto;grid-template-rows:none;gap:12px}.landing-feature-grid__small>div{min-height:220px}.landing-feature-grid__large{height:330px}.landing-topic-feature .landing-prep-list{clip-path:inset(0 0 72px round 11px)}.landing-saved-feature__preview{min-height:140px}.landing-definitions h2{font-size:17px}.landing-definitions>p{font-size:12px}.landing-definition>strong{font-size:13px}.landing-definition table{font-size:11px}}
@media(max-width:700px){.landing-feature-grid__small{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}.landing-feature-grid__small>div{min-width:0;min-height:260px}.landing-topic-feature{display:flex;flex-direction:column;padding:8px}.landing-topic-feature .landing-prep-list{position:relative;inset:auto;flex:1;min-height:130px;clip-path:none}.landing-topic-feature h3{position:static;margin:7px 0 3px}.landing-topic-feature>p{position:static;margin:0}.landing-topic-row{padding:6px;column-gap:4px;grid-template-columns:12px minmax(0,1fr) max-content}.landing-topic-check{width:11px;height:11px}.landing-topic-main>strong{font-size:10px}.landing-topic-meta{gap:3px}.landing-topic-time{font-size:8px}.landing-topic-start{padding:4px 6px;font-size:9px}.landing-saved-feature__preview{min-height:130px}}
@media(max-width:700px){.landing-feature-grid__small{grid-template-columns:minmax(0,1fr);width:100%;justify-self:stretch}}
@media(min-width:701px){.landing-feature-grid__small>div{display:flex;flex-direction:column;padding:12px}.landing-topic-feature .landing-prep-list,.landing-saved-feature__preview{position:relative;inset:auto;flex:1;min-height:0;clip-path:none}.landing-topic-feature h3,.landing-saved-feature h3{position:static;margin:7px 0 3px;min-height:30px}.landing-topic-feature>p,.landing-saved-feature>p{position:static;margin:0;line-height:20px}}
.landing-topic-feature h3,.landing-saved-feature h3,.landing-definitions h2{font-size:22px;line-height:1.3;font-weight:500}
.landing-definitions h2{margin:0 0 12px}
.landing-topic-feature h3{display:flex;align-items:center;gap:6px}
.landing-topic-feature h3 svg{width:26px;height:26px;flex:none}
@media(max-width:700px){.landing-topic-feature h3,.landing-saved-feature h3,.landing-definitions h2{font-size:19px;line-height:1.3}}
@media(max-width:700px){
  .landing-topic-row:nth-child(n+3){display:none}
  .landing-topic-row{padding:12px;column-gap:9px;grid-template-columns:15px minmax(0,1fr) max-content}
  .landing-topic-check{width:15px;height:15px}
  .landing-topic-main>strong{font-size:13px}
  .landing-topic-meta{gap:7px}
  .landing-topic-subject{font-size:10px}
  .landing-topic-time{font-size:10px}
  .landing-topic-start{padding:6px 10px;font-size:10px}
  .landing-saved-feature__preview{display:flex;flex-direction:column}
  .landing-saved-feature__list{display:flex;flex:1;min-height:0;flex-direction:column}
  .landing-saved-feature__list>div{flex:1;align-items:center;gap:9px;padding:12px}
  .landing-saved-feature__list p span,.landing-saved-feature__list small{font-size:10px}
  .landing-saved-feature__list strong{font-size:12px}
}

@media (max-width: 700px) {
  .landing-tool-ribbon { row-gap: 12px; }
  .landing-tool-folder { --sweep-x: 0px; transform: translateX(var(--sweep-x)) translateY(var(--sweep-y)); }
  .landing-tool-folder[data-ribbon-position="1"], .landing-tool-folder[data-ribbon-position="3"] { --sweep-x: 16px; }
  .landing-tool-folder[data-ribbon-position="2"], .landing-tool-folder[data-ribbon-position="4"] { --sweep-x: -16px; }
  .landing-tool-ribbon > a[data-ribbon-position="4"]:nth-of-type(5) { --sweep-rotate: 2deg; }
}


/* ---- Split hero, matched value-for-value to the supplied reference at 1024px and up ---- */
.landing-hero-panel, .landing-hero-ghost, .landing-hl-line, .landing-announcement { display: none; }
.landing-hero-primary { background: #171717; }
.landing-hero-primary:hover { background: #2b2b2b; }
.landing-signup { color: #e0f2fe; background: #1cb0f6; }
.landing-signup:hover { background: #17a0e2; }
[data-theme="dark"] .landing-hero-primary { color: #171717; background: #f5f5f5; }
[data-theme="dark"] .landing-signup { color: #e0f2fe; background: #1cb0f6; }

@media (min-width: 1024px) {
    /* The app body is zoomed 1.05x; cancel it here so pixel values below are literal. */
    .landing-topbar { zoom: .952381; box-sizing: border-box; height: 56px; border-bottom: 2px solid transparent; }
    .landing-topbar.is-scrolled { border-bottom-color: #e5e5e5; }
    .landing-topbar-inner { gap: 0; }
    .landing-brand { flex: 0 0 136px; }
    .landing-nav-links { flex: 1 1 auto; justify-content: flex-end; gap: 8px; padding-left: 0; margin-right: 8px; }
    .landing-nav-links a, .landing-subjects-trigger { display: inline-flex; align-items: center; height: 36px; padding: 0 12px; color: rgb(10 10 10 / .8); font: 500 14px/20px Inter, ui-sans-serif, system-ui, sans-serif; }
    .landing-nav-actions { gap: 8px; }
    .landing-login, .landing-signup { height: 32px; min-height: 32px; padding: 0 12px; border-radius: 12px; font: 500 14px/20px Inter, ui-sans-serif, system-ui, sans-serif; }
    .landing-login { color: #737373; background: #f5f5f5; }
    .landing-login:hover { background: #ebebeb; }
    .landing-signup { color: #e0f2fe; }

    .landing-hero-split {
        zoom: .952381;
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(24rem, .9fr);
        column-gap: 32px;
        align-items: center;
        box-sizing: border-box;
        width: 100%;
        max-width: 1280px;
        min-height: 800px;
        margin: 0 auto;
        padding: 96px 48px;
    }
    .landing-hero-main { position: relative; width: 100%; min-width: 0; }
    .landing-hero-split .landing-hero { display: block; min-height: 0; padding: 0; text-align: left; background: transparent; isolation: auto; }

    .landing-hero-split .landing-announcement { display: inline-flex; align-items: center; gap: 4px; width: fit-content; height: 28px; min-height: 28px; padding: 0 8px; border: 0; border-radius: 999px; color: #1cb0f6; background: #e0f2fe; font: 500 14px/20px Inter, ui-sans-serif, system-ui, sans-serif; }
    .landing-hero-split .landing-announcement:hover { background: #e0f2fe; border: 0; }
    .landing-hero-split .landing-announcement svg { width: 16px; height: 16px; }
    .landing-hero-split .landing-hero h1 { max-width: none; margin: 28px 0 0; color: #0a0a0a; font: 450 60px/66px "DM Sans", ui-sans-serif, system-ui, sans-serif; letter-spacing: -3.3px; font-optical-sizing: none; text-wrap: balance; }
    .landing-hero-split .landing-hero h1 span { position: relative; display: inline-block; white-space: nowrap; }
    .landing-hero-split .landing-hero h1 span::after { display: none; }
    .landing-hero-split .landing-hl-line { position: absolute; left: 0; bottom: -.06em; display: block; width: 100%; height: .2em; overflow: visible; color: #1cb0f6; pointer-events: none; }
    .landing-hero-split .landing-hero-copy { width: 100%; max-width: none; margin: 28px 0 0; color: #737373; font: 400 24px/33px Inter, ui-sans-serif, system-ui, sans-serif; text-wrap: balance; }
    .landing-hero-split .landing-hero-actions { display: flex; align-items: center; gap: 8px; width: auto; margin-top: 28px; }
    .landing-hero-split .landing-hero-primary, .landing-hero-split .landing-hero-ghost { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: auto; height: 48px; min-height: 48px; padding: 0 28.8px; border-radius: 999px; font: 500 18px/28px Inter, ui-sans-serif, system-ui, sans-serif; text-decoration: none; white-space: nowrap; }
    .landing-hero-split .landing-hero-primary { color: #fafafa; }
    .landing-hero-split .landing-hero-ghost { box-sizing: border-box; border: 2px solid rgb(10 10 10 / .1); color: #737373; background: #fff; }
    .landing-hero-split .landing-hero-ghost:hover { background: #fafafa; }

    /* Folder row hangs under the buttons without changing the hero's measured layout. */
    .landing-hero-split .landing-tool-ribbon { position: absolute; top: 100%; left: 0; width: 100% !important; max-width: none; height: 150px; margin: 12px 0 0; transform: none; }
    .landing-hero-split .landing-tool-folder { height: 140px; }
    .landing-hero-split .landing-tool-folder__visual { flex-basis: 104px; height: 104px; }
    .landing-hero-split .landing-tool-folder .react-folder-mount { --landing-folder-scale: 1.3; }
    .landing-hero-split .landing-tool-folder__label { font-size: 14px; }
    .landing-hero-split .landing-tool-folder[data-ribbon-position="-1"], .landing-hero-split .landing-tool-folder[data-ribbon-position="5"] { --sweep-y: 10px; }
    .landing-hero-split .landing-tool-folder[data-ribbon-position="0"], .landing-hero-split .landing-tool-folder[data-ribbon-position="1"], .landing-hero-split .landing-tool-folder[data-ribbon-position="4"] { --sweep-y: 4px; }

    /* Right column: 576px tall cell, everything placed from the reference's measured offsets. */
    .landing-hero-panel { position: relative; display: block; height: 576px; }
    /* Cloud stack: pills drift down a five-slot column, entering at the top and dissolving at the bottom. */
    .landing-cloud-stack { position: absolute; inset: 0; --cloud-ease: cubic-bezier(.65, 0, .35, 1); }
    .landing-cloud { position: absolute; left: 50%; top: 67px; width: 260px; height: 64px; box-sizing: border-box; border: 1.5px solid #dfe5ee; border-radius: 999px; background: #f7f9fc; transform: translateX(-50%) scale(1);
        transition: top 1s var(--cloud-ease), width 1s var(--cloud-ease), height 1s var(--cloud-ease), transform 1s var(--cloud-ease); }
    .landing-cloud.is-jump { transition: none; }
    /* Pop in waits .5s so the cloud below has slid clear of the top slot first. Scales up from nothing with a small overshoot. Pop out: snaps down to nothing. */
    .landing-cloud[data-slot="0"] { top: 67px; width: 260px; height: 64px; transform: translateX(-50%) scale(0); }
    .landing-cloud[data-slot="1"] { top: 67px; width: 260px; height: 64px; transform: translateX(-50%) scale(1); transition: top 1s var(--cloud-ease), width 1s var(--cloud-ease), height 1s var(--cloud-ease), transform .65s cubic-bezier(.34, 1.7, .5, 1) .5s; }
    .landing-cloud[data-slot="2"] { top: 157px; width: 400px; height: 78px; }
    .landing-cloud[data-slot="3"] { top: 261px; width: 300px; height: 54px; }
    .landing-cloud[data-slot="4"] { top: 341px; width: 400px; height: 80px; }
    .landing-cloud[data-slot="5"] { top: 447px; width: 250px; height: 62px; }
    .landing-cloud[data-slot="6"] { top: 447px; width: 250px; height: 62px; transform: translateX(-50%) scale(0); transition: transform .3s cubic-bezier(.5, 0, .75, 0); }
    [data-theme="dark"] .landing-cloud { border-color: #2f3640; background: #1a1f27; }
}


@media (prefers-reduced-motion: reduce) { .landing-cloud { transition: none !important; } }


/* Hero folder arc: fixed-size folders (240px) in a fixed arc; neutral fillers extend it past both screen edges. */
.subject-landing { overflow-x: clip; }
.subject-landing .landing-hero-split .landing-tool-ribbon {
    --arc-s: 2.4;
    --arc-x: 0px;
    position: absolute;
    top: 100%;
    left: 0;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    width: 1330px !important;
    height: auto;
    left: 50%;
    margin: -350px 0 0;
    transform: translateX(-50%);
}
.landing-tool-ribbon .landing-tool-folder { flex: 0 0 190px; height: auto; padding-bottom: 24px; --sweep-y: 0px; }
.landing-tool-ribbon .landing-tool-folder--filler { display: flex; pointer-events: none; }
.landing-tool-ribbon .landing-tool-folder__visual { flex: 0 0 auto; width: 100%; height: 192px; }
.landing-tool-ribbon .landing-tool-folder .react-folder-mount { --landing-folder-scale: 2.4; }
.landing-tool-ribbon .landing-tool-folder__label { color: #3B3B3B; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 20px; font-weight: 500; line-height: 1.2; letter-spacing: normal; }
.landing-tool-ribbon [data-ribbon-position="-4"] { --d: 6; }
.landing-tool-ribbon [data-ribbon-position="-3"] { --d: 5; }
.landing-tool-ribbon [data-ribbon-position="-2"] { --d: 4; }
.landing-tool-ribbon [data-ribbon-position="-1"] { --d: 3; }
.landing-tool-ribbon [data-ribbon-position="0"] { --d: 2; }
.landing-tool-ribbon [data-ribbon-position="1"] { --d: 1; }
.landing-tool-ribbon [data-ribbon-position="2"] { --d: 0; }
.landing-tool-ribbon [data-ribbon-position="3"] { --d: 1; }
.landing-tool-ribbon [data-ribbon-position="4"] { --d: 2; }
.landing-tool-ribbon [data-ribbon-position="5"] { --d: 3; }
.landing-tool-ribbon [data-ribbon-position="6"] { --d: 4; }
.landing-tool-ribbon [data-ribbon-position="7"] { --d: 5; }
.landing-tool-ribbon [data-ribbon-position="8"] { --d: 6; }

/* Anchor the ribbon to the full-width hero row so it centres on the page, not the left column. */
.subject-landing .landing-hero-split { position: relative; }
.subject-landing .landing-hero-split .landing-hero-main { position: static; }

/* Pull everything below the folder arc up to close the empty gap. */
.subject-landing .landing-reader-showcase { margin-top: -150px !important; }

/* Folder animations disabled for now: no opening, sliding, hover motion or shadows. */
.landing-tool-ribbon .landing-tool-folder,
.landing-tool-ribbon .landing-tool-folder * { transition: none !important; animation: none !important; }
.landing-tool-ribbon .landing-tool-folder { transform: translateY(var(--sweep-y)) !important; }
.landing-tool-ribbon .landing-tool-folder .react-folder-mount { transform: scale(var(--landing-folder-scale)) !important; }
.landing-tool-ribbon .landing-tool-folder__label { transform: none !important; }
.landing-tool-ribbon .landing-tool-folder .react-folder-component .folder,
.landing-tool-ribbon .landing-tool-folder .react-folder-component .paper,
.landing-tool-ribbon .landing-tool-folder .react-folder-component .folder__front,
.landing-tool-ribbon .landing-tool-folder .react-folder-component .folder__front.right { transform: none !important; }
.landing-tool-ribbon .landing-tool-folder .react-folder-component .paper { transform: translate(-50%, 10%) !important; }
.landing-tool-ribbon .landing-tool-folder { pointer-events: none; cursor: default; }
.landing-tool-ribbon .landing-tool-folder .folder { filter: drop-shadow(0 10px 14px rgb(42 43 95 / 10%)); }

/* Hero call to action, centred on the page above the folder arc. */
.subject-landing .landing-hero-split .landing-cta {
    position: absolute;
    top: 100%;
    left: calc(25% - 105px);
    z-index: 5;
    display: grid;
    gap: 10px;
    width: max-content;
    min-width: 320px;
    max-width: calc(100% - 48px);
    margin-top: -546px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.landing-cta__primary {
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #e0f2fe;
    background: #1cb0f6;
    font: 500 16px/1 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    letter-spacing: -.01em;
    cursor: pointer;
    transition: background-color .18s ease, transform .18s ease;
}
.landing-cta__primary:hover { background: #17a0e3; transform: translateY(-1px); }
.landing-cta__row { display: flex; justify-content: center; gap: 10px; }
.landing-cta__secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    box-sizing: border-box;
    height: 45px;
    padding: 0 27px;
    border: 2px solid rgb(10 10 10 / .1);
    border-radius: 999px;
    color: #737373;
    background: #fff;
    font: 500 17px/26px Inter, ui-sans-serif, system-ui, sans-serif;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .18s ease;
}
.landing-cta__secondary:hover { background: #fafafa; }

/* Text above the call to action. Absolutely placed so the buttons and everything else stay where they were. */
.landing-cta__intro {
    position: absolute;
    bottom: 100%;
    left: 50%;
    width: min(760px, calc(100vw - 48px));
    margin: 0 0 28px;
    text-align: center;
    transform: translateX(-50%);
}
.landing-cta__intro h1 {
    margin: 0;
    color: #0a0a0a;
    font: 450 clamp(38px, 4.2vw, 60px)/1.1 "DM Sans", ui-sans-serif, system-ui, sans-serif;
    font-optical-sizing: none;
    letter-spacing: -.055em;
    text-wrap: balance;
}
.landing-cta__intro h1 span { position: relative; display: inline-block; white-space: nowrap; }
.landing-cta__intro h1 svg { position: absolute; right: 0; bottom: -.06em; left: 0; width: 100%; height: .2em; overflow: visible; color: #1cb0f6; pointer-events: none; }
.landing-cta__intro p { margin: 24px 0 0; color: #737373; font: 400 clamp(16px, 1.4vw, 20px)/1.45 Inter, ui-sans-serif, system-ui, sans-serif; text-wrap: balance; }
[data-theme="dark"] .landing-cta__intro h1 { color: #f5f5f5; }
/* Centre the call to action and its text on the page. */
.subject-landing .landing-hero-split .landing-cta { left: 50%; transform: translateX(-50%); }

/* Zoomed-in browsers (about 125%) fall below the 1024px desktop breakpoint. Keep the same hero box there so the button and
   the folder arc, which are positioned from its bottom edge, do not collapse into the header. */
@media (min-width: 701px) and (max-width: 1023px) {
    .subject-landing .landing-hero-split {
        zoom: .952381;
        display: block;
        box-sizing: border-box;
        width: 100%;
        max-width: 1280px;
        min-height: 800px;
        margin: 0 auto;
        padding: 96px 48px;
    }
}
/* Short windows (browser zoom 110% and up): lift the whole hero so the folders still show in the first screen. */
@media (min-width: 701px) and (max-height: 580px) {
    .subject-landing .landing-hero-split { min-height: 745px; padding-top: 48px; padding-bottom: 48px; }
}
@media (min-width: 701px) and (max-height: 500px) {
    .subject-landing .landing-hero-split { min-height: 716px; }
}

/* Keywords section: all three panels share one background colour. */
.landing-feature-grid .landing-feature-grid__small > div, .landing-feature-grid .landing-feature-grid__large, .landing-feature-grid .landing-definitions, .landing-topic-feature, .landing-saved-feature { background: #f4f4f4; }

/* Plan your studies: the small folders are the same static folders used elsewhere on the page. */
.landing-topic-time span.landing-topic-mini-folder.react-folder-mount { display: inline-block; width: 18px; height: 13px; flex: none; filter: none; pointer-events: none; }

/* Plan your studies: only the top-left part of the list shows (cut off on the right and below Mechanics), like a peek. */
@media (min-width: 701px) {
    /* The white window is the list itself (real grey border + rounded corners, like Save your mistakes). Its rows are zoomed in
       and laid out wider than the window, so only the top-left of them shows; the window clips the rest. */
    .landing-feature-grid .landing-topic-feature .landing-prep-list { clip-path: none; transform: none; box-sizing: border-box; border: 1px solid #e1e4e9; border-radius: 16px; overflow: hidden; }
    .landing-feature-grid .landing-topic-feature .landing-topic-row { zoom: 1.87; flex: none; box-sizing: border-box; width: 187%; height: 57px; }
    .landing-feature-grid .landing-topic-feature .landing-topic-main strong { font-size: 10px; line-height: 1.2; }
    .landing-feature-grid .landing-topic-feature .landing-topic-row:nth-child(2) .landing-topic-check { transform: translateY(-6px); }
}
@media (max-width: 700px) {
    /* Phones: a gentler zoom of the same window; the crop widens so it still fills the panel. */
    .landing-feature-grid .landing-topic-feature .landing-prep-list { top: 24px; bottom: auto; flex: none; min-height: 0; height: 164px; margin-bottom: 44px; clip-path: none; transform: none; box-sizing: border-box; border: 1px solid #e1e4e9; border-radius: 16px; overflow: hidden; }
    .landing-feature-grid .landing-topic-feature .landing-topic-row { zoom: 1.5; flex: none; box-sizing: border-box; width: 150%; height: 73px; }
    .landing-feature-grid .landing-topic-feature .landing-topic-main strong { font-size: 10px; line-height: 1.2; }
    .landing-feature-grid .landing-topic-feature .landing-topic-row:nth-child(2) .landing-topic-check { transform: translateY(-14px); }
    .landing-feature-grid .landing-topic-feature h3 { transform: translateY(-22px); }
}
/* Save your mistakes: same treatment as Plan your studies. The outline sits on the white window, not on the content, and the content is zoomed in from the top-left corner. */
.landing-feature-grid .landing-saved-feature .landing-saved-feature__preview { box-sizing: border-box; padding: 0; border: 1px solid #e1e4e9; border-radius: 16px; }
.landing-feature-grid .landing-saved-feature .landing-saved-feature__list { border: 0; transform: scale(1.5); transform-origin: 0 0; }

/* Phones: the desktop hero positions the heading, buttons and folder arc from the hero's bottom edge, which collapses on a phone.
   Here everything flows in normal order instead: heading and buttons, then a smaller folder arc, then the rest of the page. */
@media (max-width: 700px) {
    .subject-landing .landing-hero-split { display: block; min-height: 0; margin: 0; padding: 0; zoom: 1; }
    .subject-landing .landing-hero-split .landing-hero { display: none; }
    .subject-landing .landing-hero-split .landing-cta { position: static; left: auto; top: auto; transform: none; width: auto; min-width: 0; max-width: none; margin: 0; padding: 28px 16px 0; }
    .subject-landing .landing-hero-split .landing-cta__intro { position: static; left: auto; width: auto; margin: 0 0 22px; transform: none; }
    .landing-cta__intro h1 { font-size: 36px; }
    .landing-cta__intro p { margin-top: 16px; font-size: 16px; }
    .subject-landing .landing-hero-split .landing-tool-ribbon { position: relative; left: 50%; top: auto; width: 910px !important; height: 165px; margin: 24px 0 0; transform: translateX(-50%); }
    .landing-tool-ribbon .landing-tool-folder { flex: 0 0 130px; padding-bottom: 0; }
    .landing-tool-ribbon .landing-tool-folder__visual { height: 131px; }
    .landing-tool-ribbon .landing-tool-folder .react-folder-mount { --landing-folder-scale: 1.64; }
    /* Let the page run all the way to the bottom of the screen, behind the phone's floating toolbar, instead of stopping above it. */
    @supports (height: 100lvh) {
        html:has(.subject-landing) body, html:has(.subject-landing) .app-shell, html:has(.subject-landing) .subject-landing { height: calc(100lvh / 1.05); }
        .subject-landing .landing-hero-split .landing-hero-main { min-height: calc(100lvh - 59px); }
    }
    /* No black strip under the page when the phone's toolbar floats over it. */
    :root:not([data-theme="dark"]):has(.subject-landing), :root:not([data-theme="dark"]):has(.subject-landing) body, :root:not([data-theme="dark"]):has(.subject-landing) .app-shell { background: #fff; }
    .landing-tool-ribbon .landing-tool-folder__label { font-size: 11px; }
    .subject-landing .landing-reader-showcase { margin-top: 0 !important; }
    /* The hero fills the first screen; the heading and buttons sit at the top and the folder arc rests on the bottom edge, like desktop. */
    .subject-landing .landing-hero-split .landing-hero-main { display: flex; flex-direction: column; min-height: calc(100vh - 59px); min-height: calc(100svh - 59px); }
    .subject-landing .landing-hero-split .landing-cta { order: 1; flex: 1 1 auto; align-content: center; padding-top: 0; padding-bottom: 0; }
    .subject-landing .landing-hero-split .landing-tool-ribbon { order: 2; flex: none; margin-top: 0; margin-bottom: 0; transform: translate(-50%, 36px); }
    .landing-cta__secondary { flex: 1 1 0; padding: 0 12px; }
}

/* "I'm a parent" / "I'm an educator" popups. */
.landing-popup { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: rgb(10 10 10 / .45); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.landing-popup[hidden] { display: none; }
.landing-popup-open { overflow: hidden; }
.landing-popup__card { position: relative; box-sizing: border-box; width: 100%; max-width: 420px; padding: 28px 24px 24px; border-radius: 20px; background: #fff; box-shadow: 0 20px 60px rgb(15 23 42 / .25); color: #0a0a0a; }
.landing-popup__close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; color: #737373; background: transparent; cursor: pointer; }
.landing-popup__close:hover { background: #f4f4f4; }
.landing-popup__close svg { width: 16px; height: 16px; }
.landing-popup__card h2 { margin: 0 32px 0 0; font: 500 24px/1.2 "DM Sans", Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: -.02em; }
.landing-popup__intro { margin: 10px 0 0; color: #737373; font-size: 15px; line-height: 1.45; }
.landing-popup__form { display: grid; gap: 14px; margin-top: 20px; }
.landing-popup__form[hidden] { display: none; }
.landing-popup__form label { display: grid; gap: 6px; }
.landing-popup__form label span { font-size: 14px; font-weight: 500; color: #232529; }
.landing-popup__form input { box-sizing: border-box; width: 100%; height: 46px; padding: 0 14px; border: 1.5px solid #e1e4e9; border-radius: 12px; color: #0a0a0a; background: #fff; font: 400 16px/1 Inter, sans-serif; outline: none; }
.landing-popup__form input:focus { border-color: #1cb0f6; }
.landing-popup__form label.has-error input { border-color: #dc2626; }
.landing-popup__error { color: #dc2626; font-size: 13px; }
.landing-popup__error[hidden] { display: none; }
.landing-popup__submit { height: 48px; margin-top: 4px; border: 0; border-radius: 999px; color: #e0f2fe; background: #1cb0f6; font: 500 16px/1 Inter, sans-serif; cursor: pointer; }
.landing-popup__submit:hover { background: #17a0e3; }
.landing-popup__submit:disabled { opacity: .6; cursor: default; }
.landing-popup__done { margin: 20px 0 0; font-size: 17px; font-weight: 500; }
.landing-popup__done[hidden] { display: none; }

/* Phones: Plan your studies uses the same flow as Save your mistakes (8px panel padding, window on top,
   heading under it), so the two panels line up. Appended last so it overrides the absolute peek positions above. */
@media (max-width: 700px) {
    .landing-feature-grid .landing-topic-feature { display: flex; flex-direction: column; padding: 8px; }
    .landing-feature-grid .landing-topic-feature .landing-prep-list { position: relative; inset: auto; top: auto; bottom: auto; flex: none; min-height: 0; height: 209px; margin: 0; transform: none; clip-path: none; }
    .landing-feature-grid .landing-topic-feature h3 { position: static; bottom: auto; transform: none; margin: 7px 0 3px; }
    .landing-feature-grid .landing-topic-feature > p { position: static; bottom: auto; margin: 0; }
}

@keyframes wm_Leg_1_transform_0 {
  0% {
    animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1);
    transform: translateY(0px) translate(-16.604px, 66.843px) rotate(0rad) translate(16.604px, -66.843px);
  }
  50% {
    animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1);
    transform: translateY(0px) translate(-16.604px, 66.843px) rotate(0.719rad) translate(16.604px, -66.843px);
  }
  100% {
    transform: translateY(0px) translate(-16.604px, 66.843px) rotate(0rad) translate(16.604px, -66.843px);
  }
}
.landing-mascot .wm-leg1 {
  transform-origin: 0 0;
  animation: wm_Leg_1_transform_0 1.5s linear infinite;
}
@keyframes wm_Ellipse_7_transform_0 {
  0% {
    animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1);
    transform: translateX(7.641px) translateY(0px) translate(14.359px, 26.741px) rotate(0rad) scaleX(1) scaleY(1) translate(-14.359px, -26.741px) rotate(0.159rad) scaleX(1) scaleY(1) skewX(0rad);
  }
  50% {
    animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1);
    transform: translateX(7.641px) translateY(0px) translate(14.359px, 26.741px) rotate(0.745rad) scaleX(1.25) scaleY(1.25) translate(-14.359px, -26.741px) rotate(0.159rad) scaleX(1) scaleY(1) skewX(0rad);
  }
  100% {
    transform: translateX(7.641px) translateY(0px) translate(14.359px, 26.741px) rotate(0rad) scaleX(1) scaleY(1) translate(-14.359px, -26.741px) rotate(0.159rad) scaleX(1) scaleY(1) skewX(0rad);
  }
}
.landing-mascot .wm-ell7 {
  transform-origin: 0 0;
  animation: wm_Ellipse_7_transform_0 1.5s linear infinite;
}
@keyframes wm_Leg_2_transform_0 {
  0% {
    animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1);
    transform: translateX(14.981px) translateY(27.239px) translate(-36.3px, 46.675px) rotate(0rad) translate(36.3px, -46.675px);
  }
  50% {
    animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1);
    transform: translateX(14.981px) translateY(27.239px) translate(-36.3px, 46.675px) rotate(-0.506rad) translate(36.3px, -46.675px);
  }
  100% {
    transform: translateX(14.981px) translateY(27.239px) translate(-36.3px, 46.675px) rotate(0rad) translate(36.3px, -46.675px);
  }
}
.landing-mascot .wm-leg2 {
  transform-origin: 0 0;
  animation: wm_Leg_2_transform_0 1.5s linear infinite;
}
@keyframes wm_Leg_2_2_transform_0 {
  0% {
    animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1);
    transform: translateX(53.838px) translateY(0px) translate(-17.329px, 33.109px) rotate(0rad) scaleX(1) scaleY(1) translate(17.329px, -33.109px) rotate(1.134rad) scaleX(1) scaleY(1) skewX(0rad);
  }
  50% {
    animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1);
    transform: translateX(53.838px) translateY(0px) translate(-17.329px, 33.109px) rotate(-0.242rad) scaleX(0.75) scaleY(0.75) translate(17.329px, -33.109px) rotate(1.134rad) scaleX(1) scaleY(1) skewX(0rad);
  }
  100% {
    transform: translateX(53.838px) translateY(0px) translate(-17.329px, 33.109px) rotate(0rad) scaleX(1) scaleY(1) translate(17.329px, -33.109px) rotate(1.134rad) scaleX(1) scaleY(1) skewX(0rad);
  }
}
.landing-mascot .wm-leg22 {
  transform-origin: 0 0;
  animation: wm_Leg_2_2_transform_0 1.5s linear infinite;
}
@keyframes wm_Back_transform_0 {
  0% {
    transform: translateX(513.644px) translateY(112px) translateX(0px) translateY(0px) rotate(0.03rad) scaleX(1) scaleY(1) skewX(0.025381rad);
  }
  50% {
    transform: translateX(513.644px) translateY(112px) translateX(6px) translateY(0px) rotate(0.03rad) scaleX(1) scaleY(1) skewX(0.025381rad);
  }
  100% {
    transform: translateX(513.644px) translateY(112px) translateX(0.003px) translateY(0px) rotate(0.03rad) scaleX(1) scaleY(1) skewX(0.025381rad);
  }
}
.landing-mascot .wm-back {
  transform-origin: 0 0;
  animation: wm_Back_transform_0 1.5s linear infinite;
}
@keyframes wm_body_transform_0 {
  0% {
    animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1);
    transform: translateX(349px) translateY(59.555px) translate(171.591px, 176.223px) rotate(-5deg) scaleX(1) scaleY(1) translate(-171.591px, -176.223px) rotate(-0.246rad) scaleX(1) scaleY(1) skewX(0rad);
  }
  50% {
    animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1);
    transform: translateX(349px) translateY(59.555px) translate(171.591px, 176.223px) rotate(3deg) scaleX(1) scaleY(1) translate(-171.591px, -176.223px) rotate(-0.246rad) scaleX(1) scaleY(1) skewX(0rad);
  }
  100% {
    transform: translateX(349px) translateY(59.555px) translate(171.591px, 176.223px) rotate(-5deg) scaleX(1) scaleY(1) translate(-171.591px, -176.223px) rotate(-0.246rad) scaleX(1) scaleY(1) skewX(0rad);
  }
}
.landing-mascot .wm-body {
  transform-origin: 0 0;
  animation: wm_body_transform_0 1.5s linear infinite;
}
@keyframes wm_Vector_transform_0 {
  0% {
    animation-timing-function: step-end;
    transform: translateX(128.948px) translateY(57.227px) translate(27.945px, 24.144px) scaleX(1) scaleY(1) translate(-27.945px, -24.144px) rotate(-0.024rad) scaleX(1) scaleY(1);
  }
  25% {
    animation-timing-function: step-end;
    transform: translateX(128.948px) translateY(57.227px) translate(27.945px, 24.144px) scaleX(1.025) scaleY(1.025) translate(-27.945px, -24.144px) rotate(-0.024rad) scaleX(1) scaleY(1);
  }
  50% {
    animation-timing-function: step-end;
    transform: translateX(128.948px) translateY(57.227px) translate(27.945px, 24.144px) scaleX(1) scaleY(1) translate(-27.945px, -24.144px) rotate(-0.024rad) scaleX(1) scaleY(1);
  }
  75% {
    animation-timing-function: step-end;
    transform: translateX(128.948px) translateY(57.227px) translate(27.945px, 24.144px) scaleX(1.025) scaleY(1.025) translate(-27.945px, -24.144px) rotate(-0.024rad) scaleX(1) scaleY(1);
  }
  100% {
    transform: translateX(128.948px) translateY(57.227px) translate(27.945px, 24.144px) scaleX(1) scaleY(1) translate(-27.945px, -24.144px) rotate(-0.024rad) scaleX(1) scaleY(1);
  }
}
.landing-mascot .wm-heart-r {
  transform-origin: 0 0;
  animation: wm_Vector_transform_0 1.5s linear infinite;
}
@keyframes wm_Vector_2_transform_0 {
  0% {
    animation-timing-function: step-end;
    transform: translateX(64.185px) translateY(56.417px) translate(27.945px, 24.144px) scaleX(1) scaleY(1) translate(-27.945px, -24.144px) rotate(-0.024rad) scaleX(1) scaleY(1);
  }
  25% {
    animation-timing-function: step-end;
    transform: translateX(64.185px) translateY(56.417px) translate(27.945px, 24.144px) scaleX(1.05) scaleY(1.05) translate(-27.945px, -24.144px) rotate(-0.024rad) scaleX(1) scaleY(1);
  }
  50% {
    animation-timing-function: step-end;
    transform: translateX(64.185px) translateY(56.417px) translate(27.945px, 24.144px) scaleX(1) scaleY(1) translate(-27.945px, -24.144px) rotate(-0.024rad) scaleX(1) scaleY(1);
  }
  75% {
    animation-timing-function: step-end;
    transform: translateX(64.185px) translateY(56.417px) translate(27.945px, 24.144px) scaleX(1.025) scaleY(1.025) translate(-27.945px, -24.144px) rotate(-0.024rad) scaleX(1) scaleY(1);
  }
  100% {
    transform: translateX(64.185px) translateY(56.417px) translate(27.945px, 24.144px) scaleX(1) scaleY(1) translate(-27.945px, -24.144px) rotate(-0.024rad) scaleX(1) scaleY(1);
  }
}
.landing-mascot .wm-heart-l {
  transform-origin: 0 0;
  animation: wm_Vector_2_transform_0 1.5s linear infinite;
}

/* Hero folders are inline SVG artwork (same colours, same 216 x 144 box as before), with the animated mascot peeking over the middle ones. */
.landing-svg-folder-mount .landing-svg-folder { position: absolute; top: 50%; left: 50%; display: block; width: 100px; height: 80px; transform: translate(-50%, -50%) scale(.9, .75); transform-origin: center; cursor: default; }
/* The middle three folders (green, blue, purple) sit on one level; yellow, orange and the greys keep their place. */
.landing-hero-split .landing-tool-ribbon .landing-tool-folder[data-ribbon-position="1"] { --sweep-y: 0px; }

/* Mascot: file units (the Welcome screen artwork) scaled to the folder arc, anchored where its hands meet the green/blue folder tops. */
.landing-tool-ribbon { --wm-s: 2.4; }
.landing-mascot {
    --wm-r: calc(var(--wm-s) / 2.4);
    --wm-b: calc(.74 * var(--wm-r));
    --wm-k: calc(var(--wm-b) * .89);
    position: absolute;
    left: calc(665px * var(--wm-r) - 165px * var(--wm-k));
    top: calc(37.57px * var(--wm-r) - 187.4px * var(--wm-k));
    width: calc(460px * var(--wm-k));
    height: calc(260px * var(--wm-k));
    overflow: visible;
    pointer-events: none;
}
.landing-mascot { translate: -7% 0; }
/* The folders and the mascot sit a little lower so the sparkles above the mascot have room. */
.landing-tool-ribbon { translate: 0 28px; }
.landing-mascot--back { z-index: 1; }
.landing-mascot--front { z-index: 30; }
@media (max-width: 700px) { .landing-tool-ribbon { --wm-s: 1.64; } }
@media (prefers-reduced-motion: reduce) { .landing-mascot * { animation: none !important; } }

/* The two grey edge folders at the far left and right of the hero arc. Switch: set --edge-folders to visible to show them, hidden to hide them (they keep their space either way, so the other folders don't move). */
.landing-tool-ribbon { --edge-folders: hidden; }
.landing-tool-ribbon .landing-tool-folder--filler[data-ribbon-position="-1"], .landing-tool-ribbon .landing-tool-folder--filler[data-ribbon-position="5"] { visibility: var(--edge-folders) !important; }

/* Plan / Keywords / Save panels: the three panels sit a little closer together and are narrower, so there is less empty space (the cropped content just shows a bit less). */
@media (min-width: 701px) {
    .landing-page-body .landing-feature-grid { width: min(100%, 1075px); margin-left: auto; margin-right: auto; grid-template-columns: minmax(0, .3125fr) minmax(0, .6875fr); }
}

/* Plan your studies and Save your mistakes: no outline on the white content windows. */
.landing-feature-grid .landing-topic-feature .landing-prep-list, .landing-feature-grid .landing-saved-feature .landing-saved-feature__preview { border: 0; }

/* Phone: the two small panels get the same side space (12px) around their white windows as the Definitions panel. */
@media (max-width: 700px) {
    .landing-feature-grid .landing-topic-feature, .landing-feature-grid .landing-saved-feature { padding-left: 12px; padding-right: 12px; }
}

/* Mascot hearts get a thin pink outline, centred on the heart's edge. */
.landing-mascot .wm-heart-l, .landing-mascot .wm-heart-r { stroke: #ff6cb4; stroke-width: 5; stroke-linejoin: round; }
