@font-face {
    font-family: "DM Sans";
    src: url("/fonts/dm-sans-latin.woff2") format("woff2");
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}
:root {
    --ink: #17243c;
    --teal: #2749b6;
    --paper: #fbfcff;
    --muted: #51617a;
    --line: #d8dfea;
    --mint: #e4eafa;
    --blue: #2749b6;
    font-family: "DM Sans", system-ui, sans-serif;
}
.wrap { width: min(1180px, calc(100% - 4rem)); }
header { background: #fff; }
.bar { min-height: 4.65rem; }
.brand { letter-spacing: -.05em; font-weight: 760; }
.brand i { background: #203995; border-radius: 8px; }
.brand b { background: #e9f6a9; }
nav a:hover, .softlink:hover, .catalog-heading a:hover { text-decoration: underline; }
.navbutton { border-color: #b8c8e0; }
.btn { background: var(--blue); border-color: var(--blue); border-radius: .68rem; padding: .84rem 1.35rem; transition: background-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.btn:hover { background: #203c94; transform: translateY(-1px); box-shadow: 0 6px 18px #1f3d9a24; }
.btn.light { background: #fff; color: #23395c; border-color: #c8d2e2; }
.btn.light:hover { background: #f0f4fc; box-shadow: 0 4px 12px #1c315712; }
.btn-primary { gap: .45rem; }
.edition {
    display: flex; align-items: center; gap: .65rem;
    margin: 0 0 1.05rem;
    color: #314979; font-size: .8rem; font-weight: 750; letter-spacing: .095em; text-transform: uppercase;
}
.edition::before { content: ""; width: 1.75rem; height: 2px; background: currentColor; flex: none; }
.cover {
    display: grid; grid-template-columns: 1.08fr .96fr;
    margin-top: 1.5rem; overflow: hidden; isolation: isolate;
    border: 1px solid #d4dff1; border-radius: 1.35rem;
    background: radial-gradient(circle at 0% 0%, #f6f9ff 0%, #ebf0fc 58%, #e2e9fb 100%);
    box-shadow: 0 12px 32px #1a2d5a0d;
}
.cover-copy { align-self: center; padding: clamp(1.7rem, 4.2vw, 3.8rem); }
.cover h1, .member-head h1 {
    color: #17254a; font-size: clamp(2.8rem, 4.9vw, 4.7rem);
    line-height: 1.01; font-weight: 760; letter-spacing: -.062em; margin: 0;
}
.cover h1 em { color: var(--blue); }
.cover-intro { max-width: 40ch; line-height: 1.62; font-size: clamp(1rem, 1.35vw, 1.12rem); color: #3a4d6d; margin: 1.2rem 0 1.25rem; }
.cover-intro strong { color: #17254a; font-weight: 700; }
.hero-checks {
    display: flex; flex-wrap: wrap; gap: .45rem .95rem;
    list-style: none; padding: 0; margin: 0 0 1.55rem;
    font-size: .9rem; font-weight: 600; color: #263b5e;
}
.hero-checks li { display: inline-flex; align-items: center; gap: .4rem; }
.hero-checks li::before {
    content: "✓"; display: inline-grid; place-items: center;
    width: 1.2rem; height: 1.2rem; border-radius: 50%;
    background: #dff0b7; color: #2b4e1e; font-size: .74rem; font-weight: 800;
}
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.35rem; }
.softlink, .catalog-heading a { font-weight: 650; text-underline-offset: .3em; }
.softlink { color: #253859; display: inline-flex; align-items: center; min-height: 44px; }
.cover-art { position: relative; min-height: 26rem; background: #aebedb; }
.cover-art img, .account-cover img { display: block; width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.art-float {
    position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1.25rem; z-index: 2;
    display: grid; gap: .18rem; padding: .95rem 1.15rem;
    border-radius: .95rem; border: 1px solid #ffffff42;
    background: #17254ae6; color: #fff; backdrop-filter: blur(8px);
    box-shadow: 0 10px 24px #0e193440;
}
.art-badge {
    width: fit-content; padding: .16rem .55rem; border-radius: 99px;
    background: #d9ee9f; color: #1e3717; font-size: .72rem; font-weight: 780; letter-spacing: .04em; text-transform: uppercase;
}
.art-float strong { font-size: 1.08rem; letter-spacing: -.02em; margin-top: .18rem; }
.art-float span:last-child { font-size: .84rem; color: #d5e0fa; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 1rem 0 3.2rem; border-block: 1px solid var(--line); padding: 1.2rem 0; background: #fff; border-radius: .75rem; }
.facts div { display: flex; flex-direction: column; gap: .15rem; align-items: center; text-align: center; padding-inline: .75rem; }
.facts div + div { border-left: 1px solid var(--line); }
.facts dt { color: #17254a; font-size: 1.32rem; font-weight: 780; letter-spacing: -.04em; }
.facts dd { color: var(--muted); margin: 0; font-size: .88rem; }

.section-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin: 0 0 1.35rem; flex-wrap: wrap; }
.section-intro h2, .catalog-heading h2, .sample-panel h2, .showcase-copy h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); margin: 0; color: #17254a; }
.section-intro .edition, .catalog-heading .edition { margin-bottom: .5rem; }

.syllabus-section { margin: 0 0 3.6rem; }
.syllabus-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.syllabus-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--line); border-radius: 1rem;
    padding: 1.35rem 1.4rem; box-shadow: 0 4px 16px #182c5407;
}
.syllabus-card.subj-TWK { --tone: #3050a8; --pale: #e8eefc; }
.syllabus-card.subj-TIU { --tone: #764c8c; --pale: #f3e9f8; }
.syllabus-card.subj-TKP { --tone: #1f6b63; --pale: #e2f2ed; }
.syllabus-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .9rem; }
.subj-pill {
    display: inline-block; padding: .26rem .62rem; border-radius: .45rem;
    background: var(--pale); color: var(--tone); font-size: .82rem; font-weight: 800; letter-spacing: .06em;
}
.subj-count { font-size: .86rem; font-weight: 650; color: var(--muted); }
.syllabus-card h3 { font-size: 1.24rem; margin: 0 0 .45rem; color: #17254a; }
.syllabus-card p { margin: 0 0 1.2rem; color: var(--muted); font-size: .94rem; line-height: 1.55; }
.threshold-meter { margin-top: auto; padding-top: .85rem; border-top: 1px solid #ebeff6; }
.meter-head { display: flex; justify-content: space-between; font-size: .84rem; color: var(--muted); margin-bottom: .45rem; }
.meter-head strong { color: var(--tone); font-weight: 760; }
.meter-track { height: .48rem; border-radius: 99px; background: var(--pale); overflow: hidden; }
.meter-track span { display: block; height: 100%; border-radius: inherit; background: var(--tone); }

#katalog { scroll-margin-top: 1.4rem; }
.catalog-section { margin: 0 0 3.6rem; }
.catalog-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin: 0 0 1.35rem; flex-wrap: wrap; }
.catalog-heading a { font-size: .95rem; }
.volume {
    padding: 1.4rem 1.5rem; border-radius: 1rem;
    box-shadow: 0 4px 16px #1c315708;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.volume:hover { transform: translateY(-2px); box-shadow: 0 10px 26px #1c315714; border-color: #b7c8e6; }
.volume.is-featured { border-color: #9db4e8; background: linear-gradient(180deg, #f8faff 0%, #fff 45%); }
.volume-top { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.volume-tags { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.rec-tag { font-size: .75rem; font-weight: 740; padding: .22rem .55rem; border-radius: 99px; background: #e6edfc; color: #234296; }
.coming-tag { display: inline-block; font-size: .75rem; font-weight: 740; padding: .22rem .58rem; border-radius: 99px; background: #fff1d6; color: #7c4a03; border: 1px solid #f0d49c; }
.btn.is-disabled { opacity: .72; cursor: default; pointer-events: none; transform: none; box-shadow: none; }
.book-mark {
    position: relative; display: grid; place-items: center; width: 3.15rem; height: 3.15rem; border-radius: .7rem; flex: none;
    background: #e8ecfc; --binding: #304eaf; --motif: #e4f3a8;
}
.theme-1 .book-mark { background: #f1eafb; --binding: #805d9b; --motif: #f4d9fa; }
.theme-2 .book-mark { background: #e1efed; --binding: #286765; --motif: #c7ebcc; }
.book-mark i { position: relative; width: 1.42rem; height: 1.86rem; transform: rotate(-10deg); border-radius: 2px 3px 3px 2px; background: var(--binding); border-left: 3px solid #ffffff6b; box-shadow: 1px 2px 0 #fff, 2px 3px 0 #23324c61; }
.book-mark i::before { content: ""; position: absolute; left: 3px; right: 3px; top: 5px; height: 2px; background: var(--motif); }
.book-mark i::after { content: ""; position: absolute; right: 0; bottom: 0; width: .77rem; height: .77rem; border-radius: 100% 0 0 0; background: var(--motif); }
.price-tag { font-weight: 740; padding: .24rem .68rem; border-radius: 5rem; color: #31425e; background: #eff2f7; font-size: .86rem; }
.price-tag.available { background: #e4f3bf; color: #2f4d1e; }
.volume h3 { font-size: 1.45rem; margin: 1.05rem 0 .35rem; color: #17254a; }
.volume p { margin: 0 0 1rem; font-size: .95rem; }
.volume-points {
    list-style: none; padding: .85rem 0 0; margin: auto 0 1.2rem; width: 100%;
    border-top: 1px solid #edf1f8; display: grid; gap: .42rem;
    font-size: .87rem; color: #40526e;
}
.volume-points li { display: flex; align-items: baseline; gap: .45rem; }
.volume-points li::before { content: "•"; color: var(--blue); font-weight: 800; }
.volume-action { width: 100%; display: grid; gap: .55rem; }
.volume-action .under { margin-top: .1rem; text-align: center; font-size: .9rem; }
.devnote { font-size: .83rem; color: #546177; margin-top: 1rem; }

.showcase-section {
    display: grid; grid-template-columns: 1fr 1.12fr; gap: clamp(1.5rem, 3.6vw, 3rem); align-items: center;
    margin: 0 0 3.6rem; padding: clamp(1.5rem, 3.5vw, 2.75rem);
    border: 1px solid #d4dff1; border-radius: 1.3rem;
    background: linear-gradient(135deg, #f3f6fe 0%, #ffffff 62%, #eef4ff 100%);
}
.showcase-lead { color: #3e5170; font-size: 1.02rem; margin: .85rem 0 1.35rem; }
.feature-list { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .95rem; }
.feature-list li {
    padding-left: 1rem; border-left: 3px solid #2749b6;
    display: grid; gap: .16rem;
}
.feature-list strong { color: #17254a; font-size: .98rem; }
.feature-list span { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.showcase-media { position: relative; padding-bottom: 1.5rem; }
.device-desktop, .device-mobile { margin: 0; overflow: hidden; background: #fff; }
.device-desktop {
    border-radius: .95rem; border: 1px solid #cad6eb;
    box-shadow: 0 16px 38px #17274d1c;
}
.device-desktop img { display: block; width: 100%; height: auto; }
.device-mobile {
    position: absolute; right: -.6rem; bottom: 0; width: 31%; max-width: 175px;
    border-radius: 1rem; border: 3px solid #17254a;
    box-shadow: 0 14px 30px #121f3d33;
}
.device-mobile img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 680; object-fit: cover; object-position: top; }

.sample-panel {
    display: grid; grid-template-columns: .95fr 1.65fr; gap: 2rem; align-items: start;
    margin: 0 0 3.6rem; padding: clamp(1.4rem, 3vw, 2.25rem);
    border: 1px solid #cfdbee; border-radius: 1.15rem; background: #f1f5fd;
    scroll-margin-top: 1.4rem;
}
.sample-panel p:first-child, .sample-panel .edition { margin-top: 0; }
.sample-sub { color: var(--muted); font-size: .94rem; margin: .7rem 0 0; }
.sample-question { font-size: 1.08rem; font-weight: 560; color: #17254a; margin: 0 0 1.1rem; line-height: 1.55; }
.sample-panel fieldset { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1rem; padding: 0; border: 0; }
.sample-panel label {
    display: inline-flex; align-items: center; gap: .45rem;
    border: 1px solid #c5d1e4; border-radius: .65rem;
    padding: .5rem .9rem; min-height: 46px; background: #fff; cursor: pointer;
    font-weight: 600; color: #1f3354; transition: border-color .14s ease, background-color .14s ease;
}
.sample-panel label:hover { border-color: var(--blue); }
.sample-panel label:has(:checked) { background: #dbe5ff; border-color: var(--blue); color: #142759; }
.opt-key {
    display: inline-grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: .38rem;
    background: #eef2fa; color: #2749b6; font-size: .8rem; font-weight: 780;
}
.sample-feedback {
    margin: 0 0 .9rem; padding: .7rem .95rem; border-radius: .6rem;
    font-size: .92rem; font-weight: 620;
}
.sample-feedback.is-correct { background: #e1f3cc; color: #254a1c; border: 1px solid #bddb99; }
.sample-feedback.is-wrong { background: #fff0e2; color: #7b3e11; border: 1px solid #f0cfa9; }
.sample-panel details { background: #fff; border: 1px solid #d7e0ef; border-radius: .75rem; padding: .85rem 1rem; }
.sample-panel details p { margin: .65rem 0 0; color: #364966; font-size: .94rem; }
.sample-panel code { background: #eef3fc; padding: .1rem .38rem; border-radius: .3rem; font-size: .9em; color: #1f3c8c; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.steps-section { margin: 0 0 3.6rem; }
.how-grid {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem;
}
.how-grid li {
    background: #fff; border: 1px solid var(--line); border-radius: 1rem;
    padding: 1.4rem; box-shadow: 0 3px 12px #1c315706;
}
.step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.3rem; height: 2.3rem; border-radius: .65rem;
    background: #e7eeff; color: var(--blue); font-weight: 800; font-size: .95rem; letter-spacing: -.02em;
    margin-bottom: .9rem;
}
.how-grid h3 { font-size: 1.18rem; margin: 0 0 .4rem; color: #17254a; }
.how-grid p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.55; }

.faq-section { margin: 0 0 3.6rem; scroll-margin-top: 1.4rem; }
.faq-list { display: grid; gap: .7rem; }
.faq-item {
    background: #fff; border: 1px solid var(--line); border-radius: .9rem;
    padding: 0 1.25rem; transition: border-color .15s ease;
}
.faq-item[open] { border-color: #aebfe0; background: #fcfdff; }
.faq-item summary {
    list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.05rem 0; font-weight: 680; font-size: 1.02rem; color: #17254a;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+"; flex: none; display: grid; place-items: center;
    width: 1.7rem; height: 1.7rem; border-radius: 50%;
    background: #eef2fb; color: var(--blue); font-size: 1.1rem; font-weight: 700; line-height: 1;
}
.faq-item[open] summary::after { content: "−"; background: var(--blue); color: #fff; }
.faq-item p { margin: 0 0 1.15rem; color: var(--muted); font-size: .95rem; line-height: 1.62; max-width: 78ch; }

.closing-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap;
    padding: clamp(1.6rem, 3.8vw, 3rem); border-radius: 1.3rem; color: #fff;
    background: linear-gradient(115deg, #14274c 0%, #224193 65%, #3154b8 100%);
    box-shadow: 0 14px 34px #162b5a26;
}
.cta-kicker {
    margin: 0 0 .5rem; font-size: .78rem; font-weight: 780; letter-spacing: .1em;
    text-transform: uppercase; color: #d8ed9b;
}
.closing-cta h2 { margin: 0 0 .45rem; font-size: clamp(1.65rem, 3vw, 2.35rem); color: #fff; }
.closing-cta p:last-child { margin: 0; color: #dbe4fb; max-width: 52ch; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .65rem; flex: none; }
.btn-light-solid { background: #fff; color: #182f68; border-color: #fff; font-weight: 740; }
.btn-light-solid:hover { background: #e9f1ff; color: #122554; }
.cta-login { color: #dce5fc; font-size: .9rem; font-weight: 600; text-underline-offset: .25em; }

.site-footer { flex-wrap: wrap; gap: 1rem 2rem; }
.footer-brand { display: flex; align-items: baseline; flex-wrap: wrap; gap: .35rem .8rem; }
.footer-brand strong { color: var(--ink); font-size: 1rem; }
.footer-links { gap: 1.25rem; flex-wrap: wrap; }
.footer-links a { font-size: .88rem; font-weight: 600; color: var(--muted); }
.footer-links a:hover { color: var(--blue); }

.member-head { margin: 2rem 0; padding: clamp(1.4rem, 4vw, 3.4rem); background: #eaf0ff; border-radius: 1.1rem; }
.member-head h1 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); }
.member-head p:last-child { margin-bottom: 0; color: var(--muted); }
.account-layout { display: grid; grid-template-columns: 1fr 1fr; margin: clamp(1.5rem, 4.5vw, 4rem) auto; max-width: 1000px; border-radius: 1.25rem; border: 1px solid var(--line); overflow: hidden; background: white; }
.account-cover { position: relative; isolation: isolate; background: #213575; min-height: 30rem; }
.account-cover img { height: 76%; }
.account-cover div { position: absolute; inset: auto 0 0; display: grid; color: white; background: #213575; padding: 1.6rem 2rem; }
.account-cover div span:first-child { color: #dee5fb; font-size: .9rem; }
.account-cover strong { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.06em; line-height: 1.2; }
.account-cover div span:last-child { color: #d9ed9e; font-size: .9rem; margin-top: .45rem; }
.account-layout .formbox { padding: clamp(1.5rem, 4vw, 3.4rem); margin: auto 0; border: 0; border-radius: 0; max-width: none; }
.account-layout .formbox > p:last-child { margin: 1.35rem 0 0; }
.account-layout .formbox h1 { color: #1d2e51; margin-top: 0; }
.account-layout input { border-color: #b7c5d8 !important; }
.account-layout .fields small { margin-top: -.7rem; }

.notice {
    display: flex; align-items: center; gap: .75rem;
    margin: 1.25rem 0 0; padding: .9rem 1.05rem;
    border-radius: .8rem; border: 1px solid #b8dcb8;
    background: #eef8ef; color: #1b4b28;
    font-size: .95rem; font-weight: 560;
    box-shadow: 0 4px 14px #1836220c;
}
.notice.error {
    background: #fff3ee; color: #842b12; border-color: #f3c6b6;
    box-shadow: 0 4px 14px #5a1c0a0c;
}
.notice-icon {
    flex: none; display: grid; place-items: center;
    width: 1.55rem; height: 1.55rem; border-radius: 50%;
    background: #277d42; color: #fff; font-size: .85rem; font-weight: 800;
}
.notice.error .notice-icon { background: #c9461f; }
.notice-text { flex: 1; min-width: 0; }
.notice-close {
    flex: none; display: grid; place-items: center;
    width: 1.9rem; height: 1.9rem; padding: 0; border: 0; border-radius: .45rem;
    background: transparent; color: currentColor; font-size: 1.25rem; line-height: 1; opacity: .7;
}
.notice-close:hover { background: #00000010; opacity: 1; }

.pw-field { position: relative; display: block; margin-top: .3rem; }
.pw-field input { margin-top: 0 !important; padding-right: 2.9rem !important; }
.pw-toggle {
    position: absolute; top: 50%; right: .35rem; transform: translateY(-50%);
    display: grid; place-items: center;
    width: 2.35rem; height: 2.35rem; padding: 0; border: 0; border-radius: .45rem;
    background: transparent; color: #51617a;
}
.pw-toggle:hover { background: #eef2fa; color: #17254a; }
.pw-toggle svg[hidden] { display: none; }
@media (max-width: 960px) {
    .facts { grid-template-columns: repeat(2, 1fr); gap: 1rem 0; }
    .facts div:nth-child(3) { border-left: 0; }
    .syllabus-grid, .how-grid, .showcase-section { grid-template-columns: 1fr; }
    .showcase-media { max-width: 620px; width: 100%; }
}
@media (max-width: 850px) {
    .cover-copy { padding: 2rem; }
    .cover-art { min-height: 22rem; }
    .shelf { grid-template-columns: repeat(auto-fit,minmax(min(13rem,100%),1fr)); }
    .volume { padding: 1.15rem; }
}
@media (max-width: 650px) {
    .wrap { width: calc(100% - 2rem); }
    .bar { min-height: 4rem; }
    .cover { grid-template-columns: 1fr; margin-top: 1rem; }
    .cover-copy { padding: 1.5rem; }
    .cover h1 { font-size: clamp(2.55rem, 10.5vw, 3.6rem); }
    .cover-intro { margin-block: .85rem 1.05rem; }
    .cover-art { min-height: 0; aspect-ratio: 1.65; }
    .cover-art img { object-position: 50% 45%; }
    .art-float { left: .85rem; right: .85rem; bottom: .85rem; padding: .75rem .9rem; }
    .facts { margin-bottom: 2.1rem; padding: .95rem 0; }
    .facts dt { font-size: 1.1rem; }
    .facts dd { font-size: .8rem; }
    .syllabus-section, .catalog-section, .showcase-section, .sample-panel, .steps-section, .faq-section { margin-bottom: 2.4rem; }
    .catalog-heading { margin-bottom: .9rem; }
    .shelf, .sample-panel, .account-layout { grid-template-columns: 1fr; }
    .sample-panel { gap: 1.1rem; padding: 1.25rem; }
    .device-mobile { width: 32%; right: 0; }
    .faq-item { padding: 0 1rem; }
    .faq-item summary { font-size: .96rem; }
    .closing-cta { padding: 1.5rem; }
    .account-cover { display: none; }
    .account-layout { border-top: 4px solid var(--blue); }
}
@media (min-width: 360px) and (max-width: 650px) {
    .bar .brand { font-size: 1.1rem; }
    .bar .brand i { width: 1.7rem; height: 1.7rem; margin-right: .1rem; }
    .bar nav { gap: .55rem; }
    .bar nav a, .bar nav button { font-size: .875rem; }
    .bar .navbutton { padding: .42rem .55rem; }
    .actions { column-gap: .9rem; }
    .actions .btn { padding-inline: 1rem; }
    .cover-art img { object-position: 50% 30%; }
}
