/* Study material store, tutors, teacher application and other Phase 1 public pages. */
[hidden] { display: none !important; }
.alert { padding: 13px 16px; border-radius: 12px; font-size: 14.5px; margin-bottom: 18px; display: flex; gap: 10px; align-items: center; }
.alert svg { width: 20px; height: 20px; flex-shrink: 0; }
.alert--error { background: #fdecec; color: #a12c2c; border: 1px solid #f6caca; }
.alert--success { background: #e9f7ef; color: #1f6e48; border: 1px solid #bfe6d0; }
.alert--info { background: var(--gold-50); color: var(--gold-600); border: 1px solid var(--gold-200); }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; display: inline-grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--navy-800); cursor: pointer; transition: .25s; }
.icon-btn:hover { border-color: var(--gold-400); color: var(--gold-600); }
.icon-btn svg { width: 18px; height: 18px; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--gold-500); color: var(--navy-900); font-size: 11.5px; font-weight: 700; margin-left: 6px; }
.cur-select { padding: 9px 30px 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23101d3f' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 9px center / 14px; appearance: none; font: 500 14px var(--font-body); color: var(--navy-800); cursor: pointer; }
.modal { position: fixed; inset: 0; background: rgba(11,21,48,.55); backdrop-filter: blur(4px); display: none; place-items: center; z-index: 200; padding: 16px; }
.modal.is-open { display: grid; }
.modal__box { position: relative; background: #fff; border-radius: 20px; padding: 32px; max-width: 460px; width: 100%; box-shadow: var(--shadow-lg); }
.modal__close { position: absolute; right: 14px; top: 14px; }

/* ---------- Store layout ---------- */
.store__bar { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 30px; }
.store__search { flex: 1 1 420px; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px 6px 6px 16px; box-shadow: var(--shadow-sm); }
.store__search svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.store__search input { flex: 1; border: 0; outline: 0; font: 15px var(--font-body); min-width: 0; background: transparent; }
.store__tools { display: flex; gap: 12px; align-items: center; }
.store__cart { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; background: var(--navy-800); color: #fff; font-weight: 500; font-size: 14.5px; }
.store__cart svg { width: 18px; height: 18px; }
.store__layout { display: grid; grid-template-columns: 250px 1fr; gap: 36px; align-items: start; }
.store__filters { position: sticky; top: calc(var(--header-h) + 16px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; max-height: calc(100vh - var(--header-h) - 40px); overflow: auto; }
.store__filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.store__filters-head a { font-size: 13px; color: var(--gold-600); }
.fgroup { border-top: 1px solid #f2ede2; padding: 12px 0 6px; }
.fgroup h4 { font: 600 12.5px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.fopt { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 8px; font-size: 14px; color: var(--ink); transition: .2s; }
.fopt span { color: var(--muted); font-size: 12.5px; }
.fopt:hover { background: var(--gold-50); }
.fopt.is-on { background: var(--navy-800); color: #fff; }
.fopt.is-on span { color: var(--gold-300); }
.store__filter-toggle { display: none; margin-bottom: 16px; }
/* Grade / Year filter: two school systems side by side */
.gsys { margin-bottom: 12px; }
.gsys__head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin: 2px 2px 6px; }
.gsys__head strong { font-size: 13.5px; color: var(--navy-800); }
.gsys__head small { font-size: 11px; color: var(--muted); }
.gsys__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.gchip { position: relative; display: flex; flex-direction: column; align-items: center; padding: 6px 2px 5px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); line-height: 1.1; transition: background-color .2s, border-color .2s, color .2s; }
.gchip b { font-size: 15px; font-weight: 600; }
.gchip small { font-size: 10px; color: var(--muted); margin-top: 2px; }
.gchip i { position: absolute; top: -6px; right: -5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--gold-500, #c9962b); color: #fff; font: 600 10px/16px var(--font-body); font-style: normal; text-align: center; }
.gchip:hover { border-color: var(--gold-300); background: var(--gold-50); }
.gchip.is-empty { opacity: .55; }
.gchip.is-on { background: var(--navy-800); border-color: var(--navy-800); color: #fff; opacity: 1; }
.gchip.is-on small { color: var(--gold-300); }
.gsys__note { font-size: 11.5px; color: var(--muted); margin: 4px 2px 0; }
.store__path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; margin-bottom: 18px; }
.store__path svg { width: 14px; height: 14px; color: var(--muted); }
.store__path a { padding: 4px 10px; border-radius: 20px; background: var(--gold-50); color: var(--navy-800); }
.store__h { font-size: 24px; margin: 0 0 18px; }
.store__count { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 18px; color: var(--muted); font-size: 14.5px; }
.store__empty { text-align: center; padding: 60px 20px; background: var(--cream); border-radius: var(--radius-lg); }
.store__empty > svg { width: 46px; height: 46px; color: var(--gold-500); }
.store__empty p { color: var(--muted); max-width: 420px; margin: 8px auto 20px; }
.store__note { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13.5px; margin-top: 30px; }
.store__note svg { width: 16px; height: 16px; flex-shrink: 0; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.pager a { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); font-weight: 500; }
.pager a.is-on { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

/* ---------- Product cards ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.pgrid--bundles { margin-bottom: 40px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.pgrid--4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s; color: var(--ink); }
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold-200); }
.pcard__img { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--gold-50), #f3ead3); overflow: hidden; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pcard:hover .pcard__img img { transform: scale(1.05); }
.pcard__ph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; color: var(--gold-500); }
.pcard__ph svg { width: 44px; height: 44px; }
.pcard__ph small { color: var(--gold-600); font-weight: 600; }
.pcard__tag { position: absolute; left: 10px; top: 10px; background: rgba(11,21,48,.82); color: #fff; font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 20px; backdrop-filter: blur(4px); }
.pcard__free { position: absolute; right: 10px; top: 10px; background: var(--success); color: #fff; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.pcard__body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.pcard__meta { font-size: 12px; color: var(--gold-600); font-weight: 600; letter-spacing: .02em; margin-bottom: 4px; }
.pcard h3 { font: 600 15.5px/1.35 var(--font-body); margin: 0 0 4px; color: var(--navy-800); }
.pcard__topic { font-size: 13px; color: var(--muted); }
.pcard__foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; gap: 8px; }
.pcard__foot strong { font-size: 17px; color: var(--navy-900); }
.pcard__foot s { color: var(--muted); font-size: 13px; }
.pcard__price--free { color: var(--success) !important; }
.pcard__own { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--success); font-weight: 600; }
.pcard__own svg { width: 16px; height: 16px; }
.pcard__go { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-50); color: var(--gold-600); transition: .3s; }
.pcard__go svg { width: 16px; height: 16px; }
.pcard:hover .pcard__go { background: var(--grad-gold); color: var(--navy-900); }
.pcard--bundle { border-color: var(--gold-200); background: linear-gradient(180deg, #fff, var(--gold-50)); }

/* ---------- Product page ---------- */
.product__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 54px; align-items: start; }
.product__media { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 14px; }
.product__cover { position: relative; aspect-ratio: 4 / 3.4; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(135deg, var(--gold-50), #f3ead3); box-shadow: var(--shadow); }
.product__cover img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.product__info h1 { font-size: clamp(28px, 3.4vw, 40px); margin: 8px 0 14px; }
.product__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.product__desc p { color: var(--muted); font-size: 16px; }
.product__facts { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 8px; }
.product__facts li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; }
.product__facts svg { width: 18px; height: 18px; color: var(--gold-500); }
.buybox { border: 1px solid var(--gold-200); background: linear-gradient(180deg, #fff, var(--gold-50)); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.buybox__price { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.buybox__price strong { font: 700 30px var(--font-display); color: var(--navy-900); }
.buybox__price s { color: var(--muted); }
.buybox__price .save { background: #e9f7ef; color: #1f6e48; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.buybox__price .cur-pick { margin-left: auto; }
.buybox__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.buybox__own { display: flex; gap: 8px; align-items: center; color: var(--success); font-weight: 600; margin-bottom: 14px; }
.buybox__own svg { width: 20px; height: 20px; }
.buybox__note { display: flex; gap: 6px; align-items: center; justify-content: center; text-align: center; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }
.buybox__note svg { width: 14px; height: 14px; }
.buybox__note a { color: var(--gold-600); font-weight: 600; }
.bundle-hint { margin-top: 14px; display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px dashed var(--gold-400); color: var(--navy-800); font-size: 14.5px; }
.bundle-hint svg { width: 20px; height: 20px; color: var(--gold-500); flex-shrink: 0; }
.bundle-hint span { flex: 1; }

/* ---------- Cart ---------- */
.cart { display: grid; grid-template-columns: 1fr 360px; gap: 30px; align-items: start; margin-top: 20px; }
.cart__lines { display: grid; gap: 12px; }
.cart__line { display: grid; grid-template-columns: 76px 1fr auto auto; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.cart__line.is-owned { opacity: .65; }
.cart__img { width: 76px; height: 60px; border-radius: 10px; overflow: hidden; background: var(--gold-50); display: grid; place-items: center; color: var(--gold-500); }
.cart__img img { width: 100%; height: 100%; object-fit: cover; }
.cart__img svg { width: 26px; height: 26px; }
.cart__info { display: grid; gap: 2px; min-width: 0; }
.cart__info strong { color: var(--navy-800); }
.cart__info small { color: var(--muted); }
.cart__info .ok { color: var(--success); display: flex; gap: 4px; align-items: center; }
.cart__info .ok svg { width: 14px; height: 14px; }
.cart__price { font-weight: 600; white-space: nowrap; }
.cart__more { display: inline-flex; gap: 8px; align-items: center; color: var(--gold-600); font-weight: 500; margin-top: 6px; }
.cart__more svg { width: 16px; height: 16px; }
.cart__sum { position: sticky; top: calc(var(--header-h) + 16px); background: #fff; border: 1px solid var(--gold-200); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.cart__sum h3 { font-size: 20px; margin: 0 0 14px; }
.cart__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; font-size: 15px; }
.cart__row--disc { color: var(--success); }
.cart__row--total { border-top: 1px solid var(--line); margin: 8px 0 16px; padding-top: 14px; font-size: 17px; }
.cart__row--total strong { font: 700 24px var(--font-display); }
.cart__coupon { display: flex; gap: 8px; margin-top: 8px; }
.cart__coupon input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: 14px var(--font-body); text-transform: uppercase; }
.cart__msg { font-size: 13px; margin: 6px 0 0; min-height: 18px; }
.cart__msg.is-ok { color: var(--success); }
.cart__msg.is-bad { color: #a12c2c; }

/* ---------- Tutors ---------- */
.tutor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px; }
.tutor { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.tutor:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.tutor__img { aspect-ratio: 1; background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); display: grid; place-items: center; color: var(--gold-300); font: 700 64px var(--font-display); }
.tutor__img img { width: 100%; height: 100%; object-fit: cover; }
.tutor__body { padding: 18px 20px 22px; }
.tutor__body h3 { font-size: 20px; margin: 0 0 2px; }
.tutor__role { color: var(--gold-600); font-weight: 600; font-size: 13.5px; }
.tutor__body p { color: var(--muted); font-size: 14.5px; margin: 10px 0; }
.tutor__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tutor__tags span { background: var(--gold-50); color: var(--navy-800); font-size: 12px; padding: 4px 10px; border-radius: 20px; }

/* ---------- Founder / vision (About) ---------- */
.founder { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.founder__img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; }
.founder__img img { width: 100%; height: 100%; object-fit: cover; }
.founder__role { color: var(--gold-600); font-weight: 600; margin: -6px 0 16px; }
.founder blockquote { margin: 24px 0 0; padding: 18px 22px; border-left: 3px solid var(--gold-500); background: var(--gold-50); border-radius: 0 14px 14px 0; font: italic 600 19px var(--font-display); color: var(--navy-800); }

/* ---------- Long forms (teacher application, demo booking) ---------- */
.xform { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.xform h3 { font-size: 20px; margin: 26px 0 14px; padding-top: 22px; border-top: 1px solid #f2ede2; }
.xform h3:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.xform .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.xform .full { grid-column: 1 / -1; }
.xform .hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; display: block; }
.xform input[type=file] { padding: 10px; background: var(--cream); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 20px; font-size: 13.5px; cursor: pointer; transition: .2s; font-weight: 500; }
.checks input { accent-color: var(--gold-500); width: auto; }
.checks label:has(input:checked) { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.tz-note { font-size: 13px; color: var(--gold-600); margin-top: 6px; min-height: 18px; }
.xform-done { text-align: center; padding: 50px 24px; }
.xform-done .tick { width: 74px; height: 74px; border-radius: 50%; background: var(--grad-gold); display: grid; place-items: center; margin: 0 auto 18px; }
.xform-done .tick svg { width: 38px; height: 38px; }

/* ---------- Smooth in-place browsing ---------- */
.store__main { position: relative; transition: opacity .25s ease; }
#browse.is-busy .store__main { opacity: .45; pointer-events: none; }
#browse.is-busy .store__main::before { content: ''; position: absolute; left: 0; top: -14px; width: 30%; height: 3px; border-radius: 3px; background: var(--grad-gold); animation: loaderBar 1s var(--ease) infinite; z-index: 2; }
#browse.is-busy .store__main { cursor: progress; }
.fopt, .store__path a, .pager a { transition: background-color .2s, color .2s, border-color .2s; }
.pager a:hover { border-color: var(--gold-400); }
.pgrid > .is-entering { animation: storeIn .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
@keyframes storeIn { from { opacity: 0; transform: translateY(12px); } }
.store__filters { scrollbar-width: thin; overscroll-behavior: contain; }

@media (max-width: 980px) {
  .store__layout { grid-template-columns: 1fr; }
  .store__filters { position: static; display: block; max-height: 0; opacity: 0; overflow: hidden; padding-top: 0; padding-bottom: 0; border-width: 0; margin-bottom: 0;
    transition: max-height .4s var(--ease), opacity .3s ease, padding .4s var(--ease), margin .4s var(--ease); }
  .store__filters.is-open { max-height: 70vh; opacity: 1; overflow: auto; padding-top: 18px; padding-bottom: 18px; border-width: 1px; margin-bottom: 18px; }
  .store__filter-toggle { display: inline-flex; }
  .product__grid, .founder { grid-template-columns: 1fr; gap: 30px; }
  .product__media { position: static; }
  .cart { grid-template-columns: 1fr; }
  .cart__sum { position: static; }
}
@media (max-width: 600px) {
  .pgrid, .pgrid--4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .pcard h3 { font-size: 14px; }
  .pcard__body { padding: 10px 12px 12px; }
  .buybox__btns { grid-template-columns: 1fr; }
  .cart__line { grid-template-columns: 56px 1fr auto; }
  .cart__line form { grid-column: 3; grid-row: 1; }
  .cart__line .cart__price { grid-column: 2; }
  .cart__img { width: 56px; height: 48px; }
  .xform { padding: 22px 18px; }
  .xform .form-grid { grid-template-columns: 1fr; }
  .store__search { flex-basis: 100%; }
}

/* ---------- Demo booking extras ---------- */
.lead-form__tz { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; background: var(--gold-50); font-size: 13.5px; color: var(--navy-800); }
.lead-form__tz > svg { width: 18px; height: 18px; color: var(--gold-600); flex-shrink: 0; }
.lead-form__tz select { flex-basis: 100%; }
.linkish { background: none; border: 0; padding: 0; color: var(--gold-600); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.lead-form__note { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; text-align: center; }
.checks label { margin: 0; font-size: 13px; }

/* ---------- Home: workbooks by country & syllabus ---------- */
.wbw { background: linear-gradient(180deg, #fff 0%, var(--gold-50) 100%); }
.wbw__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.wbw__card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 22px 22px; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s; overflow: hidden; }
.wbw__card::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad-gold); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.wbw__card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold-200); }
.wbw__card:hover::before { transform: scaleX(1); }
.wbw__badge { position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 20px; background: var(--navy-800); color: var(--gold-300); font-size: 11.5px; font-weight: 600; letter-spacing: .02em; }
.wbw__badge svg { width: 13px; height: 13px; }
.wbw__flags { display: flex; gap: 6px; margin-bottom: 16px; min-height: 30px; }
.wbw__flags img { width: 42px; height: 30px; object-fit: cover; border-radius: 5px; box-shadow: 0 2px 8px rgba(16,29,63,.18), 0 0 0 1px rgba(16,29,63,.06); }
.wbw__flags img + img { width: 34px; height: 24px; align-self: flex-end; }
.wbw__globe { width: 42px; height: 30px; display: grid; place-items: center; border-radius: 5px; background: var(--grad-navy); color: var(--gold-300); }
.wbw__globe svg { width: 20px; height: 20px; }
.wbw__card h3 { font-size: 21px; margin: 0 0 4px; }
.wbw__card > p { color: var(--muted); font-size: 13.5px; margin: 0 0 14px; }
.wbw__boards { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.wbw__boards a { padding: 5px 11px; border-radius: 20px; background: var(--gold-50); border: 1px solid var(--gold-100); color: var(--navy-800); font-size: 12.5px; font-weight: 600; transition: background-color .2s, color .2s, border-color .2s; }
.wbw__boards a:hover { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.wbw__go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--gold-600); font-weight: 600; font-size: 14px; }
.wbw__go svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.wbw__go:hover svg { transform: translateX(4px); }
.wbw__subjects { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 40px; }
.wbw__subjects span { color: var(--muted); font-size: 14px; margin-right: 4px; }
.wbw__subjects a { padding: 7px 14px; border-radius: 20px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; color: var(--navy-800); transition: border-color .2s, color .2s; }
.wbw__subjects a:hover { border-color: var(--gold-400); color: var(--gold-600); }
.wbw__cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 24px; margin-top: 34px; }
.wbw__ask { display: inline-flex; align-items: center; gap: 8px; color: var(--navy-800); font-size: 14.5px; font-weight: 500; }
.wbw__ask svg { width: 20px; height: 20px; color: #25d366; }
.wbw__ask:hover { color: var(--gold-600); }

/* ---------- Academics: Mathematics ---------- */
.maths__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.maths__box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.maths__box h3 { display: flex; align-items: center; gap: 12px; font-size: 22px; margin: 0 0 12px; }
.maths__box h3 .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-gold); color: var(--navy-900); flex-shrink: 0; }
.maths__box h3 .ico svg { width: 21px; height: 21px; }
.maths__box p { color: var(--muted); font-size: 15px; }
.maths__steps { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: none; }
.maths__steps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 30px; background: var(--gold-50); border: 1px solid var(--gold-100); font-size: 13.5px; font-weight: 600; color: var(--navy-800); }
.maths__steps li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-800); color: var(--gold-300); font-size: 12px; }
.maths__note { font-size: 14px !important; border-left: 3px solid var(--gold-400); padding-left: 12px; margin: 0; }
.maths__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.maths__tags span { padding: 6px 12px; border-radius: 20px; background: var(--cream); border: 1px solid var(--line); font-size: 13px; color: var(--navy-800); }
.maths__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

@media (max-width: 1100px) { .wbw__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .maths__grid { grid-template-columns: 1fr; } .maths__box { padding: 22px 18px; } }
@media (max-width: 560px) { .wbw__grid { grid-template-columns: 1fr; } }

/* ---------- Home: latest workbooks shelf ---------- */
.shelf { padding-bottom: 70px; }
.shelf__track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.shelf__item { min-width: 0; display: flex; }
.shelf__item > .pcard { flex: 1; }
.shelf__trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-top: 34px; padding: 16px 20px; border-radius: 16px; background: var(--cream); border: 1px solid var(--line); }
.shelf__trust span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--navy-800); }
.shelf__trust svg { width: 18px; height: 18px; color: var(--gold-500); }
@media (max-width: 1100px) { .shelf__track { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .shelf__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 10px; margin-inline: -20px; padding-inline: 20px; scrollbar-width: none; }
  .shelf__track::-webkit-scrollbar { display: none; }
  .shelf__item { flex: 0 0 68%; scroll-snap-align: start; }
}

/* ---------- Footer credit ---------- */
.footer__credit a { color: var(--gold-300); font-weight: 600; letter-spacing: .04em; transition: color .2s; }
.footer__credit a:hover { color: #fff; }

/* ---------- Fees & packages ---------- */
.fees__controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 28px; margin: -24px auto 40px; }
.fees__ctl { display: grid; gap: 8px; justify-items: center; }
.fees__label { font: 600 12px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.seg { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 4px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(16, 29, 63, .06); }
.seg button { border: 0; background: transparent; padding: 9px 14px; border-radius: 10px; font: 500 14px var(--font-body); color: var(--navy-800); cursor: pointer; transition: background-color .2s, color .2s; }
.seg button:hover { background: var(--gold-50); }
.seg button.is-on { background: var(--navy-800); color: #fff; }
.seg--num button { min-width: 44px; font-weight: 600; }
.fees__cur { display: flex; align-items: center; gap: 10px; }
.fees__cur small { color: var(--muted); font-size: 13px; }
.fees__empty { text-align: center; display: grid; justify-items: center; gap: 12px; }

.fees__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: stretch; }
.fee-card { position: relative; display: flex; flex-direction: column; border-radius: 18px; background: #fff; border: 1.5px solid var(--line); overflow: hidden; box-shadow: 0 14px 34px rgba(16, 29, 63, .07); transition: transform .3s var(--ease), box-shadow .3s; }
.fee-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(16, 29, 63, .12); }
.fee-card.is-featured { border-color: var(--gold-400); box-shadow: 0 18px 44px rgba(201, 150, 43, .22); }
.fee-card__head { padding: 22px 22px 18px; }
.fee-card__head h3 { margin: 0; font-size: 28px; }
.fee-card--sky .fee-card__head { background: #e6eefc; }
.fee-card--mint .fee-card__head { background: #e2f4ec; }
.fee-card--gold .fee-card__head { background: var(--grad-gold); }
.fee-card--navy .fee-card__head { background: var(--grad-navy); }
.fee-card--navy .fee-card__head h3 { color: #fff; }
.fee-card__tag { position: absolute; top: 16px; right: 16px; padding: 5px 10px; border-radius: 20px; background: var(--navy-800); color: #fff; font: 600 11.5px var(--font-body); letter-spacing: .04em; z-index: 1; }
.fee-card--navy .fee-card__tag { background: var(--grad-gold); color: var(--navy-900); }
.fee-card__body { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px 22px; flex: 1; }
.fee-card__was { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); min-height: 22px; }
.fee-card__was b { padding: 2px 7px; border-radius: 5px; background: #127a3e; color: #fff; font-size: 11.5px; letter-spacing: .03em; }
.fee-card__was[hidden] { display: flex; visibility: hidden; }
.fee-card__price { display: flex; align-items: baseline; gap: 4px; color: var(--navy-900); }
.fee-card__price strong { font: 700 clamp(34px, 3.2vw, 44px)/1 var(--font-display); }
.fee-card__price span { font-weight: 600; color: var(--muted); }
.fee-card__list { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 10px; flex: 1; align-content: start; }
.fee-card__list li { display: flex; gap: 9px; font-size: 14.5px; line-height: 1.4; color: var(--ink); }
.fee-card__list svg { flex: none; width: 19px; height: 19px; margin-top: 1px; color: #18a058; }
.fee-card__list s { color: var(--muted); }
.fee-card__save { color: #127a3e !important; font-weight: 500; }
.fee-card__wa { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.fee-card__wa svg { width: 16px; height: 16px; color: var(--wa); }
.fee-card__wa:hover { color: var(--navy-800); }
.fee-card.is-bump .fee-card__price strong, .fee-card.is-bump [data-f="total"] { animation: feeBump .45s var(--ease); }
@keyframes feeBump { 0% { opacity: .2; transform: translateY(6px); } }

.fees-incl__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.fees-incl__grid h2 { font-size: clamp(28px, 3.4vw, 40px); }
.fees-incl__list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.fees-incl__list li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-weight: 500; }
.fees-incl__list svg { width: 20px; height: 20px; color: var(--gold-600); flex: none; }
.fees-incl__notes { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.fees-incl__notes h3 { margin-top: 0; }
.fees-incl__notes ul { padding-left: 18px; color: var(--muted); display: grid; gap: 8px; }
.fees-incl__cta { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.fees-incl__cta p { color: var(--muted); margin: 6px 0 14px; }
.fees-incl__btns { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 1100px) { .fees__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .fees-incl__grid { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 620px) {
  .fees__grid { grid-template-columns: 1fr; }
  .fees-incl__list { grid-template-columns: 1fr; }
  .seg button { padding: 8px 10px; font-size: 13px; }
}

/* Skills & activities on the fees page */
.fees-act { padding-top: 20px; }
.fees-act__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.act-card { position: relative; display: grid; justify-items: center; gap: 8px; padding: 28px 18px 22px; text-align: center; background: #fff; border: 1.5px solid var(--line); border-radius: 18px; box-shadow: 0 12px 30px rgba(16, 29, 63, .06); transition: transform .3s var(--ease), box-shadow .3s; }
.act-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(16, 29, 63, .11); }
.act-card.is-premium { border-color: var(--gold-300); background: linear-gradient(180deg, #fffaf0, #fff 60%); }
.act-card__ico { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: var(--gold-50); color: var(--gold-600); }
.act-card.is-premium .act-card__ico { background: var(--grad-gold); color: var(--navy-900); }
.act-card__ico svg { width: 28px; height: 28px; }
.act-card__tier { position: absolute; top: 14px; right: 14px; padding: 3px 9px; border-radius: 20px; font: 600 11px var(--font-body); background: #e2f4ec; color: #127a3e; }
.act-card.is-premium .act-card__tier { background: var(--navy-800); color: var(--gold-300); }
.act-card h3 { margin: 4px 0 0; font-size: 21px; }
.act-card__price { display: flex; align-items: baseline; gap: 3px; color: var(--navy-900); }
.act-card__price strong { font: 700 30px/1 var(--font-display); }
.act-card__price span { color: var(--muted); font-weight: 600; font-size: 14px; }
.act-card__wa { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.act-card__wa svg { width: 16px; height: 16px; color: var(--wa); }
.act-card__wa:hover { color: var(--navy-800); }
.fees-act__note { text-align: center; color: var(--muted); margin: 22px 0 0; }
@media (max-width: 1000px) { .fees-act__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .fees-act__grid { gap: 12px; } .act-card { padding: 22px 12px 18px; } .act-card__price strong { font-size: 25px; } }

/* Fees page: buying */
.fees__code { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font: 500 14px var(--font-body); width: 150px; text-transform: uppercase; }
.fees__test { text-align: center; margin: -22px 0 30px; font-size: 13.5px; color: #8a5a00; }
.fee-card__body .btn--block + .btn--block { margin-top: -4px; }
#fee-demo { position: fixed; inset: 0; z-index: 2000; display: none; place-items: center; background: rgba(11, 21, 48, .55); padding: 20px; }
#fee-demo.is-open { display: grid; }
#fee-demo .modal__box { background: #fff; border-radius: 16px; padding: 26px; max-width: 420px; width: 100%; }

/* Fees page: full activities catalogue */
.cat-head { text-align: center; margin: 56px auto 22px; max-width: 640px; }
.cat-head h3 { font-size: clamp(24px, 2.6vw, 30px); margin: 0 0 6px; }
.cat-head p { color: var(--muted); margin: 0; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: start; }
.cat-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 10px 26px rgba(16, 29, 63, .05); height: 100%; }
.cat-card header { display: flex; align-items: center; gap: 10px; }
.cat-card header h4 { margin: 0; font-size: 16.5px; flex: 1; line-height: 1.25; }
.cat-card header small { min-width: 24px; height: 24px; display: grid; place-items: center; border-radius: 12px; background: var(--gold-50); color: var(--gold-600); font-weight: 700; font-size: 12px; }
.cat-card__ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--grad-navy); color: var(--gold-300); }
.cat-card__ico svg { width: 21px; height: 21px; }
.cat-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; flex: 1; align-content: flex-start; }
.cat-card li { padding: 5px 10px; border-radius: 20px; background: #f7f4ec; font-size: 13px; color: var(--ink); display: inline-flex; gap: 6px; align-items: baseline; }
.cat-card li.has-price { background: #fff6e0; border: 1px solid #f0d99a; }
.cat-card li b { font-size: 12px; color: #8a5a00; }
.cat-card__foot { display: flex; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid #f2ede2; font-size: 13.5px; }
.cat-card__foot a { display: inline-flex; align-items: center; gap: 5px; color: var(--navy-800); font-weight: 600; }
.cat-card__foot a svg { width: 15px; height: 15px; }
.cat-card__foot a:first-child svg { color: var(--wa); }
@media (max-width: 1100px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr; } }
