/* 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: 100vh;
    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: 67px;
    border-bottom: 1px solid rgba(35, 45, 67, .08);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(8px);
}

.landing-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(100% - 60px, 1320px);
    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 29px; width: 29px; height: 29px; overflow: hidden; border-radius: 7px; }
.landing-brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.16); }

.landing-nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 2.6vw, 37px);
    flex: 1 1 auto;
}

.landing-nav-links a {
    padding: 9px 0;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.landing-nav-links a:hover { color: var(--landing-blue); }
.landing-nav-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.landing-login,
.landing-signup {
    min-height: 39px;
    padding: 0 17px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.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-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-hero-backdrop {
    position: absolute;
    z-index: -1;
    top: -70px;
    left: 50%;
    width: calc(var(--landing-folder-curve-width) + 200px);
    height: calc(100% + 170px);
    opacity: .48;
    overflow: hidden;
    pointer-events: none;
    transform: translateX(-50%);
    -webkit-mask-image: url('/assets/landing-aurora-shape.svg?v=20260929-softer-extended-1');
    mask-image: url('/assets/landing-aurora-shape.svg?v=20260929-softer-extended-1');
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}
.landing-hero-backdrop::before,
.landing-hero-backdrop::after,
.landing-hero-backdrop i,
.landing-hero-backdrop span { content: ''; position: absolute; display: block; }
.landing-hero-backdrop::before {
    inset: 0;
    opacity: .96;
    background:
        radial-gradient(70% 125% at 4% -18%, rgb(var(--landing-aurora-highlight) / .5) 0%, transparent 66%),
        radial-gradient(42% 100% at 88% 6%, rgb(var(--landing-paper-aurora) / .4) 0%, transparent 70%),
        radial-gradient(ellipse 22% 112% at 25% 100%, rgb(var(--landing-paper-aurora) / .72) 0%, rgb(var(--landing-paper-aurora) / .38) 55%, transparent 100%),
        radial-gradient(ellipse 22% 112% at 35% 100%, rgb(var(--landing-topical-aurora) / .76) 0%, rgb(var(--landing-topical-aurora) / .4) 55%, transparent 100%),
        radial-gradient(ellipse 22% 112% at 45% 100%, rgb(var(--landing-practice-aurora) / .76) 0%, rgb(var(--landing-practice-aurora) / .4) 55%, transparent 100%),
        radial-gradient(ellipse 22% 112% at 55% 100%, rgb(var(--landing-atlas-aurora) / .78) 0%, rgb(var(--landing-atlas-aurora) / .42) 55%, transparent 100%),
        radial-gradient(ellipse 22% 112% at 65% 100%, rgb(var(--landing-syllabus-aurora) / .82) 0%, rgb(var(--landing-syllabus-aurora) / .44) 55%, transparent 100%),
        radial-gradient(ellipse 22% 112% at 75% 100%, rgb(var(--landing-keywords-aurora) / .78) 0%, rgb(var(--landing-keywords-aurora) / .4) 55%, transparent 100%),
        linear-gradient(112deg, rgb(var(--landing-paper-aurora)) 0%, rgb(var(--landing-topical-aurora)) 20%, rgb(var(--landing-practice-aurora)) 40%, rgb(var(--landing-atlas-aurora)) 60%, rgb(var(--landing-syllabus-aurora)) 80%, rgb(var(--landing-keywords-aurora)) 100%);
    transform: translate3d(0, 0, 0) scale(1.02);
    animation: landing-aurora-drift 22s ease-in-out infinite alternate;
}
.landing-hero-backdrop::after {
    z-index: 3;
    inset: 0;
    background: linear-gradient(to top, rgba(255,255,255,.4) 0%, rgba(255,255,255,.16) 42%, rgba(255,255,255,.27) 78%, #fff 100%);
}
.landing-hero-backdrop i:nth-child(1) { inset: 0; background: radial-gradient(70% 125% at 4% -18%, rgb(var(--landing-aurora-highlight) / .34) 0%, transparent 66%); animation: landing-aurora-flow 18s ease-in-out infinite alternate; }
.landing-hero-backdrop i:nth-child(2) { inset: 0; background: radial-gradient(42% 100% at 88% 6%, rgb(var(--landing-paper-aurora) / .24) 0%, transparent 70%); animation: landing-aurora-flow 21s ease-in-out -4s infinite alternate-reverse; }
.landing-hero-backdrop i:nth-child(3), .landing-hero-backdrop i:nth-child(4) { display: none; }
.landing-hero-backdrop .landing-aurora-hover {
    z-index: 2;
    inset: 0;
    opacity: 0;
    background-color: color-mix(in srgb, rgb(var(--landing-hover-color, 143 200 245)) 38%, #fff);
    transition: opacity .8s cubic-bezier(.22,.61,.36,1), background-color .8s cubic-bezier(.22,.61,.36,1);
}
.landing-hero-backdrop .landing-aurora-grain {
    z-index: 4;
    inset: 0;
    opacity: .6;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.15' numOctaves='4' stitchTiles='stitch'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='2.2' intercept='-.6'/%3E%3CfeFuncG type='linear' slope='2.2' intercept='-.6'/%3E%3CfeFuncB type='linear' slope='2.2' intercept='-.6'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
    background-size: 96px 96px;
    filter: contrast(1.1);
    mix-blend-mode: overlay;
}
@keyframes landing-aurora-drift { from { transform: translate3d(-2%, 1%, 0) scale(1.04); } to { transform: translate3d(2%, -2%, 0) scale(1.12); } }
@keyframes landing-aurora-flow { from { transform: translate3d(-12px, 6px, 0) scaleX(.92); } to { transform: translate3d(18px, -12px, 0) scaleX(1.12); } }
.landing-hero.aurora-folder-active + .landing-tool-ribbon .landing-aurora-hover { opacity: .95; }

.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 {
    --landing-paper-aurora: 143 200 245;
    --landing-topical-aurora: 120 207 165;
    --landing-practice-aurora: 239 168 164;
    --landing-atlas-aurora: 183 165 244;
    --landing-syllabus-aurora: 209 202 234;
    --landing-notes-aurora: 244 210 66;
    --landing-keywords-aurora: 241 166 90;
    --landing-aurora-highlight: 255 255 255;
    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-ribbon::before,
.landing-tool-ribbon::after { position: absolute; z-index: 0; display: block; pointer-events: none; content: ''; }
.landing-tool-ribbon::before {
    top: 26px;
    right: 3%;
    left: 3%;
    height: 125px;
    border-radius: 50%;
    background: linear-gradient(90deg, rgba(103, 164, 243, .1), rgba(150, 111, 224, .14) 48%, rgba(255, 176, 206, .1));
    filter: blur(36px);
}
.landing-tool-ribbon::after {
    right: 8%;
    bottom: 10px;
    left: 8%;
    height: 30px;
    border-radius: 50%;
    background: rgba(101, 85, 174, .12);
    filter: blur(24px);
}
.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)) rotate(var(--sweep-rotate));
    transform-origin: center bottom;
    transition: transform .23s ease;
}
.landing-tool-folder:nth-child(1) { --sweep-y: 32px; --sweep-rotate: -8deg; z-index: 1; }
.landing-tool-folder:nth-child(2) { --sweep-y: 23px; --sweep-rotate: -6deg; z-index: 2; }
.landing-tool-folder:nth-child(3) { --sweep-y: 14px; --sweep-rotate: -4deg; z-index: 3; }
.landing-tool-folder:nth-child(4) { --sweep-y: 6px; --sweep-rotate: -2deg; z-index: 4; }
.landing-tool-folder:nth-child(5) { --sweep-y: 6px; --sweep-rotate: 2deg; z-index: 5; }
.landing-tool-folder:nth-child(6) { --sweep-y: 14px; --sweep-rotate: 4deg; z-index: 6; }
.landing-tool-folder:nth-child(7) { --sweep-y: 23px; --sweep-rotate: 6deg; z-index: 2; }
.landing-tool-folder:nth-child(8) { --sweep-y: 32px; --sweep-rotate: 8deg; z-index: 1; }
.landing-tool-ribbon[data-stack-side="left"] .landing-tool-folder:nth-child(1) { z-index: 8; }
.landing-tool-ribbon[data-stack-side="left"] .landing-tool-folder:nth-child(2) { z-index: 7; }
.landing-tool-ribbon[data-stack-side="left"] .landing-tool-folder:nth-child(3) { z-index: 6; }
.landing-tool-ribbon[data-stack-side="left"] .landing-tool-folder:nth-child(4) { z-index: 5; }
.landing-tool-ribbon[data-stack-side="left"] .landing-tool-folder:nth-child(5) { z-index: 4; }
.landing-tool-ribbon[data-stack-side="left"] .landing-tool-folder:nth-child(6) { z-index: 3; }
.landing-tool-ribbon[data-stack-side="left"] .landing-tool-folder:nth-child(7) { z-index: 2; }
.landing-tool-ribbon[data-stack-side] .landing-tool-folder.is-forward { z-index: 11; }
.landing-tool-folder--filler { 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] { display: none !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; gap: 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-login { color: #e2e6f0; background: #343a49; }
[data-theme="dark"] .landing-hero { background: #171b24; }
[data-theme="dark"] .landing-tool-ribbon {
    --landing-paper-aurora: 48 80 120;
    --landing-topical-aurora: 32 86 65;
    --landing-practice-aurora: 106 57 65;
    --landing-atlas-aurora: 72 52 118;
    --landing-syllabus-aurora: 71 65 97;
    --landing-keywords-aurora: 100 82 30;
    --landing-aurora-highlight: 55 65 85;
}
[data-theme="dark"] .landing-hero-backdrop { opacity: .7; }
[data-theme="dark"] .landing-hero-backdrop::before {
    opacity: .9;
}
[data-theme="dark"] .landing-hero-backdrop::after { background: linear-gradient(to top, rgba(23,27,36,.24) 0%, transparent 42%, rgba(23,27,36,.16) 78%, #171b24 100%); }
[data-theme="dark"] .landing-hero-backdrop .landing-aurora-hover { background-color: color-mix(in srgb, rgb(var(--landing-hover-color, 143 200 245)) 24%, #171b24); }
[data-theme="dark"] .landing-tool-ribbon::before { background: linear-gradient(90deg, rgb(48 80 120 / .16), rgb(72 52 118 / .2), rgb(106 57 65 / .16)); }
[data-theme="dark"] .landing-tool-ribbon::after { background: rgb(45 35 70 / .24); }
[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-topbar-inner { width: min(100% - 36px, 1320px); gap: 14px; }
    .landing-brand { font-size: 20px; }
    .landing-nav-links { gap: 15px; }
    .landing-nav-links a { font-size: 12px; }
    .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: 740px) {
    .landing-topbar { height: 62px; }
    .landing-nav-links { position: absolute; display: none; flex-direction: column; align-items: stretch; gap: 0; width: min(260px, calc(100vw - 32px)); top: 62px; right: 16px; padding: 8px 16px; border: 1px solid var(--landing-line); border-radius: 10px; background: #fff; box-shadow: 0 4px 8px rgba(25,31,51,.1); }
    .landing-nav-links.is-open { display: flex; }
    .landing-nav-links a { padding: 12px 3px; font-size: 14px; }
    .landing-nav-links a + a { border-top: 1px solid var(--landing-line); }
    .landing-nav-actions { margin-left: auto; }
    .landing-menu-toggle { display: grid; width: 39px; height: 39px; flex: 0 0 auto; place-items: center; border: 1px solid var(--landing-line); border-radius: 8px; color: var(--landing-ink); background: transparent; }
    .landing-menu-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }
    .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; }
    [data-theme="dark"] .landing-nav-links { background: #242b39; }
}

@media (max-width: 540px) {
    .landing-topbar-inner { width: calc(100% - 24px); gap: 7px; }
    .landing-brand { gap: 6px; font-size: 17px; }
    .landing-brand-mark { width: 25px; height: 25px; }
    .landing-login { display: none; }
    .landing-signup { min-height: 36px; padding: 0 12px; font-size: 12px; }
    .landing-menu-toggle { width: 36px; height: 36px; }
    .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) {
    .landing-tool-folder--filler { display: none; }
    .landing-tool-ribbon { width: calc(var(--landing-folder-curve-width) * 6 / 7); }
    .landing-tool-folder__visual { grid-template-columns: minmax(0, 1fr); }
    .landing-hero-backdrop { width: calc(100% + 200px); }
}

@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(3, minmax(0, 1fr)); row-gap: 22px; height: auto; margin-top: -120px; }
    .landing-hero-backdrop {
        top: -45px;
        height: calc(100% + 115px);
        width: calc(100% + 120px);
        -webkit-mask-image: radial-gradient(ellipse 65% 60% at 50% 50%, #000 35%, transparent 100%);
        mask-image: radial-gradient(ellipse 65% 60% at 50% 50%, #000 35%, transparent 100%);
    }
    .landing-hero-backdrop::before {
        background:
            radial-gradient(ellipse 42% 48% at 18% 30%, rgb(var(--landing-paper-aurora) / .9), transparent 100%),
            radial-gradient(ellipse 42% 48% at 50% 30%, rgb(var(--landing-topical-aurora) / .9), transparent 100%),
            radial-gradient(ellipse 42% 48% at 82% 30%, rgb(var(--landing-notes-aurora) / .9), transparent 100%),
            radial-gradient(ellipse 42% 48% at 18% 72%, rgb(var(--landing-atlas-aurora) / .9), transparent 100%),
            radial-gradient(ellipse 42% 48% at 50% 72%, rgb(var(--landing-syllabus-aurora) / .9), transparent 100%),
            radial-gradient(ellipse 42% 48% at 82% 72%, rgb(var(--landing-keywords-aurora) / .9), transparent 100%);
    }
    .landing-hero-backdrop i { display: none; }
    .landing-hero-backdrop .landing-aurora-grain { opacity: .45; }
    .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-child(2), .landing-tool-folder:nth-child(5) { --sweep-y: 6px; --sweep-rotate: -5deg; }
    .landing-tool-folder:nth-child(3), .landing-tool-folder:nth-child(6) { --sweep-y: 0px; --sweep-rotate: 0deg; }
    .landing-tool-folder:nth-child(4), .landing-tool-folder:nth-child(7) { --sweep-y: 6px; --sweep-rotate: 5deg; }
    .landing-tool-ribbon > a:last-of-type { --sweep-y: 0px; --sweep-rotate: 0deg; }
    .landing-promise { padding-top: 70px; }
}

@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-hero-backdrop::before,
    .landing-hero-backdrop i { animation: none !important; }
    .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; }
}
