:root {
  --bg: #FBF7F0; --surface: #FFFFFF; --surface-soft: #F5EFE4; --ink: #26231F;
  --muted: #6B6359; --muted-light: #8A8175; --border: #EFE7DA; --border-strong: #DFD2BD;
  --terracotta: #D46A4C; --terracotta-hover: #BF5A3E; --sage: #4A8B71;
  --radius-card: 26px; --radius-media: 18px;
  --font-head: 'Quicksand', ui-rounded, 'Trebuchet MS', system-ui, sans-serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; padding: 0; background-color: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.site-header-wrap { position: sticky; top: 0; z-index: 40; padding: 14px 16px 6px; background: linear-gradient(180deg, rgba(251,247,240,0.96) 70%, rgba(251,247,240,0)); }
.site-nav { max-width: 1040px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 8px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; box-shadow: 0 6px 24px rgba(38,35,31,0.045); }
.brand-link { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-link img { height: 38px; width: auto; display: block; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.18rem; letter-spacing: -0.02em; color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { text-decoration: none; font-size: 0.9rem; font-weight: 700; color: var(--muted); padding: 8px 14px; border-radius: 999px; transition: background-color 0.16s ease, color 0.16s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: var(--surface-soft); }
.nav-links a.nav-cta { background: var(--terracotta); color: #FFFFFF; margin-left: 4px; }
.nav-links a.nav-cta:hover { background: var(--terracotta-hover); color: #FFFFFF; }
.nav-mobile { display: none; position: relative; }
.nav-mobile summary { list-style: none; cursor: pointer; font-size: 0.88rem; font-weight: 700; color: var(--ink); background: var(--surface-soft); padding: 7px 14px; border-radius: 999px; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 10px; box-shadow: 0 18px 40px rgba(38,35,31,0.12); display: flex; flex-direction: column; gap: 4px; }
.nav-mobile-menu a { text-decoration: none; font-size: 0.92rem; font-weight: 700; color: var(--ink); padding: 10px 14px; border-radius: 12px; }
.nav-mobile-menu a:hover { background: var(--surface-soft); }
@media (max-width: 780px) { .nav-links { display: none; } .nav-mobile { display: block; } }
.ap-main { padding: 40px 16px 76px; }
.ap-container { max-width: 1040px; margin: 0 auto; }
.ap-container--narrow { max-width: 980px; }
.ap-hero { text-align: center; max-width: 740px; margin: 0 auto 38px; }
.ap-eyebrow { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--sage); margin-bottom: 14px; }
.ap-title { font-family: var(--font-head); font-size: clamp(2rem, 4.4vw, 3.15rem); font-weight: 700; line-height: 1.09; letter-spacing: -0.025em; color: var(--ink); margin: 0 0 18px; }
.ap-subtitle { font-size: 1.04rem; line-height: 1.65; color: var(--muted); margin: 0 auto; max-width: 610px; }
.ap-radio { position: absolute; opacity: 0; pointer-events: none; }
.ap-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.ap-pill { display: inline-block; padding: 9px 20px; border-radius: 999px; font-size: 14px; font-weight: 700; color: #5D564C; background: var(--surface); border: 1px solid #E7DEC9; cursor: pointer; user-select: none; transition: all 0.18s ease; }
.ap-pill:hover { border-color: var(--ink); color: var(--ink); }
#ap-f-all:checked ~ .ap-filters label[for="ap-f-all"], #ap-f-lecture:checked ~ .ap-filters label[for="ap-f-lecture"], #ap-f-maths:checked ~ .ap-filters label[for="ap-f-maths"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
#ap-f-lecture:checked ~ .ap-grid .ap-card:not([data-cat="lecture"]), #ap-f-maths:checked ~ .ap-grid .ap-card:not([data-cat="maths"]) { display: none; }
.ap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-bottom: 64px; }
@media (max-width: 767px) { .ap-grid { grid-template-columns: 1fr; gap: 22px; } }
.ap-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 16px; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.ap-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(38,35,31,0.08); border-color: var(--border-strong); }
.ap-card--soon { background: #F7F1E6; border: 1.5px dashed #DDD0BC; justify-content: space-between; padding: 28px; }
.ap-card--soon:hover { background: #F4ECDF; box-shadow: none; transform: translateY(-2px); }
.ap-media { aspect-ratio: 16 / 10; border-radius: var(--radius-media); overflow: hidden; margin-bottom: 16px; background: var(--surface-soft); }
.ap-media img, .ap-media svg { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s cubic-bezier(.2,.8,.2,1); }
.ap-card:hover .ap-media img, .ap-card:hover .ap-media svg { transform: scale(1.03); }
.ap-card-body { padding: 2px 8px 6px; display: flex; flex-direction: column; flex-grow: 1; justify-content: space-between; gap: 14px; }
.ap-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ap-card-title { font-family: var(--font-head); font-size: 1.28rem; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.ap-card-desc { font-size: 0.93rem; line-height: 1.55; color: var(--muted); margin: 0; }
.ap-age { flex-shrink: 0; font-size: 12px; font-weight: 700; color: #5D564C; background: var(--surface-soft); padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.ap-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid #F3ECE0; font-size: 12.5px; color: #7D7469; font-weight: 600; }
.ap-card-go { color: var(--terracotta); font-weight: 800; }
.ap-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 44px; }
@media (max-width: 767px) { .ap-pillars { grid-template-columns: 1fr; } }
.ap-pillar { border-radius: 24px; padding: 26px 24px; }
.ap-pillar--sage { background: #EEF4F0; }
.ap-pillar--ochre { background: #F7ECD9; }
.ap-pillar--clay { background: #F6E5DE; }
.ap-pillar-tag { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.ap-pillar--sage .ap-pillar-tag { color: #3B6E59; }
.ap-pillar--ochre .ap-pillar-tag { color: #9E6B1E; }
.ap-pillar--clay .ap-pillar-tag { color: #B45238; }
.ap-pillar h3 { font-family: var(--font-head); font-size: 1.08rem; font-weight: 700; margin: 0 0 6px; }
.ap-pillar p { font-size: 0.9rem; line-height: 1.55; margin: 0; color: #565047; }
.ap-pass { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 32px 34px; margin-bottom: 28px; display: grid; grid-template-columns: 1.45fr 1fr; gap: 28px; align-items: center; }
@media (max-width: 767px) { .ap-pass { grid-template-columns: 1fr; padding: 24px; } }
.ap-pass-kicker { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--terracotta); margin-bottom: 8px; }
.ap-pass h2 { font-family: var(--font-head); font-size: 1.45rem; font-weight: 700; margin: 0 0 10px; }
.ap-pass p { font-size: 0.93rem; line-height: 1.62; color: var(--muted); margin: 0; }
.ap-pass-box { background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: 20px 22px; }
.ap-pass-price { font-family: var(--font-head); font-size: 1.32rem; font-weight: 700; margin: 0 0 4px; }
.ap-pass-note { font-size: 12.5px; color: var(--muted); margin: 0 0 14px; }
.ap-pass-list { list-style: none; padding: 0; margin: 0; font-size: 13.5px; color: #4B453E; display: grid; gap: 6px; }
.ap-about { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 32px 34px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.ap-about h2 { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; margin: 0 0 8px; }
.ap-about p { font-size: 0.93rem; line-height: 1.62; color: var(--muted); margin: 0; max-width: 620px; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--terracotta); color: #FFFFFF; text-decoration: none; font-weight: 700; font-size: 0.94rem; padding: 12px 24px; border-radius: 999px; border: none; cursor: pointer; transition: background-color 0.16s ease, transform 0.15s ease; }
.btn-primary:hover { background: var(--terracotta-hover); transform: translateY(-1px); }
.btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.92rem; padding: 11px 20px; border-radius: 999px; border: 1px solid var(--border-strong); cursor: pointer; transition: border-color 0.16s ease, background-color 0.16s ease; }
.btn-secondary:hover { border-color: var(--ink); background: var(--surface-soft); }
.ap-back { display: inline-block; font-size: 14px; font-weight: 700; color: var(--muted); text-decoration: none; margin-bottom: 22px; }
.ap-back:hover { color: var(--ink); }
.ap-d-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.ap-d-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.ap-d-tag { font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: #5D564C; }
.ap-d-head h1 { font-family: var(--font-head); font-size: clamp(2rem, 3.8vw, 2.85rem); font-weight: 700; margin: 0 0 8px; line-height: 1.1; }
.ap-d-lead { font-size: 1rem; line-height: 1.62; color: var(--muted); margin: 0; max-width: 610px; }
.ap-d-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ap-stage { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 14px; box-shadow: 0 18px 40px rgba(38,35,31,0.06); margin-bottom: 32px; }
.ap-stage-frame { aspect-ratio: 16 / 10; width: 100%; border-radius: var(--radius-media); overflow: hidden; background: var(--surface-soft); }
.ap-stage-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.ap-d-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 24px; }
@media (max-width: 767px) { .ap-d-grid { grid-template-columns: 1fr; } }
.ap-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 26px; }
.ap-panel--sage { background: #EEF4F0; border-color: #DCEAE2; }
.ap-panel--ochre { background: #F7ECD9; border-color: #EAD8B8; }
.ap-panel--clay { background: #F6E5DE; border-color: #EBD2C7; }
.ap-panel h2 { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; margin: 0 0 14px; }
.ap-panel ul { margin: 0; padding-left: 18px; display: grid; gap: 10px; font-size: 0.93rem; line-height: 1.55; color: #4D4740; }
.ap-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 28px; }
@media (max-width: 767px) { .ap-levels { grid-template-columns: 1fr; } }
.ap-lvl { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 22px; }
.ap-lvl-num { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--terracotta); margin-bottom: 6px; }
.ap-lvl h3 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; margin: 0 0 6px; }
.ap-lvl p { font-size: 0.89rem; line-height: 1.55; color: var(--muted); margin: 0; }
.site-footer { border-top: 1px solid var(--border); padding: 28px 16px 36px; }
.site-footer-inner { max-width: 1040px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 0.86rem; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { text-decoration: none; font-weight: 600; color: var(--muted); }
.footer-links a:hover { color: var(--ink); }