/* Header session */
.session-placeholder { width: 190px; }
.session-login { color: var(--ink); font-weight: 700; font-size: .96rem; text-decoration: none; }
.session-login:hover { color: var(--pink-ink); }

/* Course filter */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip { border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: .55rem 1.05rem; font: 700 .9rem var(--font); cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.group-note { margin-left: .7rem; font-size: .85rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); }

/* Currency */
.currency-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: 1.75rem; }
.currency-label { font-size: .9rem; font-weight: 700; color: var(--muted); }
.currency-switch { display: inline-flex; gap: 4px; background: var(--pink-wash); border-radius: 999px; padding: 4px; }
.currency-switch button { border: 0; background: transparent; border-radius: 999px; padding: .4rem .95rem; font: 700 .88rem var(--font); color: var(--muted); cursor: pointer; }
.currency-switch button:hover { color: var(--ink); }
.currency-switch button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(70, 19, 34, .16); }

/* Pricing */
.pricing-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 3rem; }
.pstep-title { display: flex; align-items: center; gap: .8rem; font-size: 1.45rem; margin-bottom: 1.2rem; }
.pstep-num { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--maroon); color: #fff; font-size: 1rem; }
.pstep-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem; }
.pstep-done { display: inline-flex; align-items: center; gap: .55rem; margin: 0; font-weight: 700; }
.pstep-done::before { content: ""; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--pink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 72% no-repeat; }
.pstep .chips { margin-bottom: 0; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.6rem; box-shadow: var(--shadow); }
.price-card-bundle { border: 2px solid var(--pink); background: var(--soft); }
.price-card-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.price-card-head h3 { margin: 0; font-size: 1.25rem; }
.price-card-head .course-meta { margin: .15rem 0 0; font-size: .85rem; color: var(--muted); }
.price-card .perks { margin: 1rem 0 1.5rem; }
.price-card .perks li { font-size: .92rem; }
.price-actions { margin-top: auto; display: grid; justify-items: center; gap: .8rem; }
.price-tag { position: absolute; top: -.85rem; left: 1.6rem; margin: 0; padding: .3rem .8rem; border-radius: 999px; background: var(--pink-ink); color: #fff; font-size: .8rem; font-weight: 800; }
.plan-meta s { color: var(--muted); }
.consent { display: flex; align-items: flex-start; gap: .7rem; max-width: 760px; margin-top: 1.5rem; font-size: .92rem; color: var(--muted); cursor: pointer; }
.consent input { flex: none; width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--pink-ink); }
.buy-error { min-height: 1.2em; margin: .6rem 0 0; color: var(--error); font-size: .92rem; font-weight: 700; }
.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin-bottom: 1.75rem; }
.summary-item { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem 1.6rem; }
.summary-item p { margin: 0; color: var(--muted); }
.summary-item .summary-price { font-size: 2rem; font-weight: 800; line-height: 1.2; color: var(--ink); }
.summary-from { font-size: 1rem; font-weight: 700; color: var(--muted); }
.section-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Subscribe options on course and library pages */
.buy-options { display: grid; gap: 1rem; }
.buy-option { border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.2rem; }
.buy-option-bundle { border: 2px solid var(--pink); background: var(--soft); }
.buy-option-name { margin: 0 0 .35rem; font-weight: 800; }
.buy-option .plan-price .amount { font-size: 1.6rem; }
.buy-option .price-tag { position: static; display: inline-block; margin: 0 0 .5rem; }
.buy-option .btn { margin-top: .75rem; }
.buy-options .consent { margin-top: .25rem; font-size: .86rem; }
.locked-card { max-width: 640px; }

/* Testimonials */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.quote-card { margin: 0; display: flex; flex-direction: column; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.6rem; box-shadow: var(--shadow); }
.quote-card blockquote { margin: 0; font-size: 1.02rem; line-height: 1.65; }
.quote-card blockquote::before { content: "\201C"; display: block; font-size: 2.6rem; font-weight: 800; line-height: .8; color: var(--pink); }
.quote-card figcaption { margin-top: auto; display: grid; gap: .1rem; font-size: .9rem; }
.quote-name { font-weight: 800; }
.quote-role, .quote-course { color: var(--muted); }

/* Schools band */
.band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: clamp(1.75rem, 4vw, 2.5rem); border-radius: 24px; background: linear-gradient(150deg, var(--maroon), var(--maroon-2)); color: #fff; }
.band h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: .4rem; }
.band p { max-width: 620px; margin: 0; color: rgba(255, 255, 255, .86); }

/* Questions */
.faq { max-width: 760px; display: grid; gap: .75rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.35rem; }
.faq summary { font-weight: 800; cursor: pointer; }
.faq details[open] summary { color: var(--pink-ink); }
.faq details p { margin: .75rem 0 0; color: var(--muted); }

/* Policy pages */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.3rem; margin: 2.25rem 0 .6rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 0 0 1em; padding-left: 1.3rem; }
.prose li { margin-bottom: .45rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.contact-side { display: grid; gap: 1.5rem; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.5rem, 4vw, 2.1rem); box-shadow: var(--shadow); }
.contact-card h2 { font-size: 1.3rem; }
.contact-card .perks { margin: 0; }
.contact-mail { font-size: 1.2rem; font-weight: 800; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.msg-form .field input, .msg-form .field select, .msg-form .field textarea { width: 100%; font: inherit; padding: .7rem .85rem; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.msg-form .field select:focus, .msg-form .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(47, 111, 223, .2); }
.msg-form .form-error { min-height: 0; margin: .3rem 0 0; }
.form-done { margin: 0; font-weight: 700; }

/* Chat */
.chat-launch { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40; display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.25rem; border: 0; border-radius: 999px; background: var(--pink-ink); color: #fff; font: 800 .95rem var(--font); box-shadow: 0 10px 30px rgba(70, 19, 34, .3); cursor: pointer; }
.chat-launch:hover { background: var(--maroon-2); }
.chat-launch svg { width: 20px; height: 20px; }
.chat-panel { position: fixed; right: 1.25rem; bottom: 5.25rem; z-index: 41; display: flex; flex-direction: column; width: min(380px, calc(100vw - 2.5rem)); height: min(600px, calc(100vh - 7rem)); overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 24px 60px rgba(70, 19, 34, .28); }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; background: linear-gradient(150deg, var(--maroon), var(--maroon-2)); color: #fff; }
.chat-title { margin: 0; font-weight: 800; }
.chat-sub { margin: 0; font-size: .85rem; color: rgba(255, 255, 255, .82); }
.chat-close { width: 32px; height: 32px; flex: none; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.chat-close:hover { background: rgba(255, 255, 255, .28); }
.chat-log { flex: 1; display: flex; flex-direction: column; gap: .6rem; overflow-y: auto; padding: 1rem; background: var(--soft); }
.bubble { max-width: 88%; margin: 0; padding: .65rem .9rem; border-radius: 16px; font-size: .93rem; line-height: 1.5; }
.bubble-bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble-me { align-self: flex-end; background: var(--maroon); color: #fff; border-bottom-right-radius: 4px; }
.chat-foot { max-height: 58%; overflow-y: auto; padding: .9rem 1rem 1rem; border-top: 1px solid var(--line); }
.chat-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip-small { padding: .4rem .75rem; font-size: .82rem; text-align: left; }
.chip-strong { background: var(--pink-ink); border-color: var(--pink-ink); color: #fff; }
.chip-strong:hover { background: var(--maroon-2); border-color: var(--maroon-2); }
.chat-back { margin-bottom: .6rem; }
.chat-foot .field { margin-bottom: .7rem; }
@media (max-width: 560px) {
  .chat-launch { padding: .85rem; }
  .chat-launch span { display: none; }
  .chat-panel { right: .75rem; left: .75rem; bottom: 4.75rem; width: auto; height: min(600px, calc(100vh - 6rem)); }
}

/* Footer */
.footer-mail { color: #fff; font-weight: 700; }
.footer-brand p + p { margin-top: .2rem; }
.course-heading { flex-wrap: wrap; }
.heading-action { margin-left: auto; }
.logo-subjects { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; justify-content: center; gap: 1.4rem; }
.logo-subjects li { display: flex; flex-direction: column; align-items: center; gap: .35rem; font-size: .82rem; font-weight: 700; color: var(--muted); }
.wordmarks { gap: 0; }
.wordmark { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .1rem .75rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.wm-years { font-size: .85rem; font-weight: 700; color: var(--maroon); }
.wm-boards { grid-column: 1 / -1; font-size: .9rem; font-weight: 600; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.finder-stats { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1.5rem; padding: 0; }
.finder-stats li { padding: .45rem .95rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .9rem; color: var(--muted); }
.finder-stats b { font-size: 1.02rem; color: var(--pink-ink); }
.finder { display: grid; gap: 1.4rem; margin-bottom: 1.1rem; padding: clamp(1.25rem, 3vw, 1.75rem); background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.finder-label { display: flex; align-items: center; gap: .6rem; margin: 0 0 .75rem; font-weight: 800; }
.finder-num { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--maroon); color: #fff; font-size: .85rem; }
.finder-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem; }
.finder-options-2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.finder-option { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; padding: 1rem 1.15rem; border: 2px solid var(--line); border-radius: 16px; background: var(--soft); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s, transform .15s, box-shadow .15s; }
.finder-option:hover { border-color: var(--pink); box-shadow: 0 8px 20px rgba(70, 19, 34, .08); transform: translateY(-2px); }
.finder-option:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.finder-option[aria-pressed="true"] { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.fo-title { font-size: 1.1rem; font-weight: 800; }
.fo-sub { font-size: .86rem; color: var(--muted); }
.finder-option[aria-pressed="true"] .fo-sub { color: #f6d3dc; }
.finder-help { margin: .8rem 0 0; font-size: .92rem; color: var(--muted); }
.finder-help .text-link { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; cursor: pointer; }
.finder-status { margin: 0 0 1.25rem; font-size: .92rem; color: var(--muted); }
.cc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 1rem; }
.cc { position: relative; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); text-decoration: none; box-shadow: 0 1px 2px rgba(70, 19, 34, .05); transition: transform .18s, box-shadow .18s, border-color .18s; }
.cc::before { content: ""; position: absolute; inset: 0 0 auto; z-index: 1; height: 5px; background: var(--cc-accent, var(--pink)); }
.cc-biology { --cc-accent: #3bb36b; }
.cc-chemistry { --cc-accent: #2340f0; }
.cc-physics { --cc-accent: #e8c800; }
.cc:hover { border-color: var(--pink); box-shadow: var(--shadow); transform: translateY(-4px); }
.cc:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.cc-cover { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--soft); }
.cc-cover img:not(.badge) { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.cc:hover .cc-cover img:not(.badge) { transform: scale(1.04); }
.cc-cover .badge { position: absolute; left: .7rem; bottom: .7rem; width: 40px; height: 40px; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.cc-body { display: flex; flex: 1; flex-direction: column; gap: .3rem; padding: 1rem 1.1rem 1.1rem; }
.cc-subject { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--pink-ink); }
.cc-title { font-size: 1.12rem; font-weight: 800; line-height: 1.25; }
.cc-meta { font-size: .86rem; color: var(--muted); }
.cc-stats { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .35rem; }
.cc-stats span { padding: .2rem .55rem; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); font-size: .78rem; color: var(--muted); }
.cc-stats b { color: var(--ink); }
.cc-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: .8rem; }
.cc-price { font-size: .98rem; font-weight: 800; }
.cc-price s { margin-left: .25rem; font-size: .85rem; font-weight: 600; opacity: .7; }
.cc-cta { font-size: .9rem; font-weight: 800; color: var(--pink-ink); white-space: nowrap; }
.cc-cta::after { content: " →"; }
.cc-bundle { background: linear-gradient(160deg, var(--maroon), var(--maroon-2)); border-color: var(--maroon); color: #fff; }
.cc-bundle .cc-subject { color: #ffb3c6; }
.cc-bundle .cc-meta { color: rgba(255, 255, 255, .82); }
.cc-bundle .cc-cta { color: #fff; }
.cc-bundle-badges { display: flex; gap: .45rem; padding: 1.5rem 1.1rem 0; }
.cc-bundle-badges .badge { width: 44px; height: 44px; }
.cc-save { align-self: flex-start; margin-top: .5rem; padding: .2rem .6rem; border-radius: 999px; background: var(--pink-2); color: #fff; font-size: .8rem; font-weight: 800; }
@media (prefers-reduced-motion: reduce) {
  .cc, .cc-cover img, .finder-option { transition: none; }
  .cc:hover, .finder-option:hover, .cc:hover .cc-cover img:not(.badge) { transform: none; }
}
.billing-switch { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-left: 1rem; }
.buy-options .billing-switch { margin: 0 0 .85rem; }
.summary-alt { margin: .2rem 0 0; font-size: .9rem; color: var(--muted); }
.taster { max-width: 820px; margin: 0 auto; }
.taster-head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-bottom: 1.25rem; }
.taster-head label { font-weight: 700; }
.taster-head select { padding: .6rem .9rem; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: 600 1rem var(--font); }
.taster-result { padding: 1.25rem; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.taster-cta { margin-top: 1.25rem; padding: 1.1rem 1.25rem; border: 1px solid #f6c6d3; border-radius: var(--radius); background: var(--pink-wash); }
.taster-cta p { margin: 0; }
.about { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.about-facts { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin: 0; padding: 0; }
.about-facts li { padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--muted); font-size: .92rem; line-height: 1.4; }
.about-facts b { display: block; margin-bottom: .25rem; font-size: 1.35rem; color: var(--maroon); }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .billing-switch { margin-left: 0; }
}
.class-box { margin-bottom: 1.2rem; }
.class-box:empty { display: none; }
.class-card { padding: 1.2rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.class-card h2 { margin: 0 0 .8rem; font-size: 1.2rem; }
.class-card table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.class-card th, .class-card td { padding: .5rem .6rem; border-bottom: 1px solid var(--line); text-align: left; }
.class-card .muted { margin: .8rem 0 0; }
.class-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .05em; white-space: nowrap; }
.class-line { margin: 0; }
.class-join summary { cursor: pointer; font-weight: 700; }
.class-join form { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .7rem; }
.class-join input { flex: 1 1 14rem; max-width: 20rem; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; letter-spacing: .04em; text-transform: uppercase; }
.price-grid-class { margin-top: 1.6rem; }
.taster-lead { max-width: 480px; }
.lead-form { display: grid; gap: .8rem; margin-top: .9rem; }
.lead-form .btn { justify-self: start; }
.cookie-bar { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 80; display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; max-width: 620px; margin: 0 auto; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .14); font-size: .92rem; }
.cookie-bar p { flex: 1 1 15rem; margin: 0; }
