/* Homepage hero: scoped to keep shared school and Level Up styles intact. */
.wk-home-hero{position:relative;isolation:isolate;overflow:hidden;color:#101d37;background:radial-gradient(ellipse at 63% 2%,#e1efff 0,transparent 42%),radial-gradient(ellipse at 100% 100%,#e9dcff 0,transparent 45%),linear-gradient(135deg,#fff 10%,#f9f7ff 100%);font-family:'Inter',sans-serif}
.wk-home-hero *{box-sizing:border-box}
.wk-home-hero::before,.wk-home-hero::after{content:"";position:absolute;z-index:-1;border-radius:50%;pointer-events:none;background:linear-gradient(130deg,#e6dcff99,#dceaff55)}
.wk-home-hero::before{width:460px;height:260px;left:-190px;bottom:-170px;transform:rotate(-25deg)}
.wk-home-hero::after{width:75%;height:200px;right:-10%;bottom:-180px;transform:rotate(-12deg)}
.wk-home-hero .wk-hero-symbols{position:absolute;overflow:hidden}
.wk-home-hero-inner{margin:0 auto;padding:30px 0 40px;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:22px;align-items:center}
.wk-hero-copy{min-width:0;position:relative;z-index:1}
.wk-home-hero h1{font-family:inherit;font-size:clamp(2rem,3.25vw,3.55rem);font-weight:850;line-height:1.09;letter-spacing:-.045em;color:#101d37;margin:0 0 12px;text-align:left}
.wk-hero-gradient,.wk-hero-maths-word{color:#2458fa;background:linear-gradient(105deg,#006aee 5%,#353bff 52%,#a12bff 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.wk-hero-maths-word{position:relative;display:inline-block}
.wk-hero-maths-word::after{content:"";position:absolute;bottom:-3px;left:0;width:100%;height:6px;border-top:3px solid #8d48ff;border-radius:50%;transform:rotate(-2deg)}
.wk-home-hero .wk-hero-maths-word>svg{position:absolute;width:38px;height:32px;right:-21px;top:-20px;fill:none;stroke:#9643ff;stroke-width:4;stroke-linecap:round}

.wk-hero-subjects{display:grid;grid-template-columns:1.18fr .9fr 1.2fr 1.25fr;gap:12px;margin-bottom:16px}
.wk-home-hero a{font-family:inherit;text-decoration:none}
.wk-hero-subject{display:flex;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:9px 10px;border:1px solid #dfe0f6;border-radius:50px;color:#15213e;background:linear-gradient(#fff,#f2f1ff);box-shadow:0 4px 8px #383ac615;font-size:clamp(.8rem,.95vw,1rem);font-weight:750;letter-spacing:-.035em;line-height:1.2;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.wk-home-hero svg{width:26px;height:26px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.wk-hero-subject svg{color:#9740ff}
.wk-home-hero .wk-hero-subject-maths{--hero-subject-color:#fff;color:#fff;background:linear-gradient(110deg,#00afee,#194cff 55%,#8e2aff);border-color:transparent;font-size:1.1rem;box-shadow:0 6px 12px #4e36ed2b}
/* The shared a:hover rule uses inline-block; subject pills must stay flex. */
.wk-home-hero .wk-hero-subject:hover{display:flex;color:var(--hero-subject-color,#15213e)}
.wk-hero-subject-maths svg{color:#fff}
.wk-hero-subject-coins svg{color:#f8a000}
.wk-hero-subject-logic svg{color:#00bd4c}
.wk-hero-features{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:22px}
.wk-hero-feature{--hero-tone:#008eea;--hero-tint:#dcf2ff;display:flex;align-items:center;gap:12px;position:relative;isolation:isolate;overflow:hidden;padding:10px 14px;min-height:70px;border:1px solid #e0dff4;border-radius:19px;background:linear-gradient(120deg,#fff,#fafaff);box-shadow:0 4px 8px #3931bd13}
.wk-hero-feature::after{content:"";position:absolute;z-index:-1;right:-22px;bottom:-30px;width:100px;height:60px;border-radius:70% 0 0 0;transform:rotate(-25deg);background:var(--hero-tint)}
.wk-hero-feature-green{--hero-tone:#00be39;--hero-tint:#defbea}
.wk-hero-feature-purple{--hero-tone:#933cff;--hero-tint:#f0e1ff}
.wk-hero-feature-gold{--hero-tone:#f4a000;--hero-tint:#fff3d8}
.wk-hero-feature-icon{width:48px;height:48px;border-radius:12px;display:grid;place-items:center;flex-shrink:0;color:var(--hero-tone);background:linear-gradient(#fff8,var(--hero-tint)),var(--hero-tint)}
.wk-hero-feature-icon svg{width:30px;height:30px;stroke-width:2.2}
.wk-home-hero .wk-hero-feature h2{color:#14213d;font-family:inherit;font-size:clamp(.92rem,1.08vw,1.125rem);font-weight:800;line-height:1.25;letter-spacing:-.04em;margin:0 0 3px;text-align:left}
.wk-home-hero .wk-hero-feature p{color:#4c566e;font-size:clamp(.84rem,.95vw,1rem);font-weight:500;line-height:1.35;letter-spacing:-.025em;margin:0}
.wk-hero-actions{display:flex;align-items:stretch;flex-wrap:wrap;gap:10px}
.wk-home-hero .wk-hero-actions a{display:flex;align-items:center;justify-content:center;gap:10px;min-height:50px;padding:12px 15px;border:1px solid #dddef1;border-radius:19px;background:#ffffffd9;color:#12203d;font-weight:750;font-size:clamp(.78rem,.94vw,1rem);line-height:1.25;letter-spacing:-.035em;box-shadow:0 5px 10px #3b32ba16;cursor:pointer;transition:transform .18s,box-shadow .18s}
.wk-home-hero .wk-hero-actions .wk-hero-start{flex:1.2;color:#fff;border-color:transparent;background:linear-gradient(110deg,#00a9ed,#1556ff 48%,#9d25fa);box-shadow:0 10px 21px #6730df36;font-size:clamp(.9rem,1.05vw,1.1rem)}
.wk-home-hero .wk-hero-actions .wk-hero-demo,.wk-home-hero .wk-hero-actions .wk-hero-teachers{flex:1}
.wk-hero-actions span{white-space:nowrap}
.wk-hero-actions svg{width:24px;height:24px}
.wk-hero-actions .wk-hero-arrow{width:20px;height:20px;margin-left:auto}
.wk-home-hero .wk-hero-actions a:hover{color:#1a43c5;transform:translateY(-2px);box-shadow:0 7px 16px #4e36ed26}
.wk-home-hero .wk-hero-actions .wk-hero-start:hover{color:#fff}
.wk-home-hero a:focus-visible{outline:3px solid #4c40e8;outline-offset:4px}
.wk-hero-visual{position:relative;min-width:0;align-self:center;display:flex;align-items:center}
.wk-hero-photo-frame{width:100%;border-radius:34px;background:#fff;box-shadow:0 16px 30px -24px #7354c780}
.wk-hero-photo{overflow:hidden;width:100%;aspect-ratio:754/482;border:2px solid #fff;border-radius:inherit}
.wk-hero-photo img{display:block;width:100%;height:auto;max-width:100%}
@media(min-width:1101px) and (max-width:1450px){.wk-hero-actions{gap:8px}.wk-home-hero .wk-hero-actions a{padding:12px 10px;gap:6px}.wk-hero-actions svg{width:20px;height:20px}.wk-hero-actions .wk-hero-arrow{display:none}.wk-hero-feature{gap:10px;padding:10px}.wk-hero-feature-icon{width:42px;height:42px}}
@media(max-width:1100px){.wk-home-hero-inner{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);padding:32px 0;gap:22px}.wk-hero-subjects{grid-template-columns:repeat(2,minmax(0,1fr))}.wk-hero-feature{gap:10px;padding:10px;min-height:76px}.wk-hero-feature-icon{width:38px;height:40px}.wk-hero-feature-icon svg{width:28px;height:28px}.wk-hero-actions .wk-hero-start{flex-basis:100%}.wk-hero-actions .wk-hero-arrow{margin-left:0}.wk-hero-photo-frame{border-radius:26px}}
.wk-hero-actions .wk-hero-label-mobile{display:none}
@media(max-width:760px){.wk-home-hero-inner{grid-template-columns:minmax(0,1fr);padding:16px 0 28px;gap:26px}.wk-home-hero h1{font-size:clamp(2rem,6.9vw,3rem);max-width:650px}.wk-hero-subject{font-size:.94rem;min-height:46px}.wk-home-hero .wk-hero-subject-maths{font-size:1rem}.wk-hero-features{gap:8px;margin-bottom:14px;grid-template-columns:minmax(0,1fr)}.wk-home-hero .wk-hero-feature h2{font-size:.95rem;margin:0 0 2px}.wk-home-hero .wk-hero-feature p{font-size:.875rem}.wk-hero-feature{min-height:60px;align-items:center;gap:10px;flex-direction:row;padding:6px 10px;border-radius:15px}.wk-hero-feature-icon{width:34px;height:34px;border-radius:9px}.wk-hero-feature-icon svg{width:24px;height:24px}.wk-home-hero .wk-hero-actions a{font-size:.92rem;padding:12px;min-height:50px}.wk-home-hero .wk-hero-actions .wk-hero-start{font-size:1.05rem;flex-basis:100%}.wk-hero-photo-frame{max-width:600px;margin:0 auto;border-radius:24px}.wk-hero-visual{width:100%}.wk-home-hero .wk-hero-maths-word>svg{display:none}
.wk-home-hero .wk-hero-actions .wk-hero-demo,.wk-home-hero .wk-hero-actions .wk-hero-teachers{flex:1 1 0;min-width:0;padding:10px 8px;gap:6px;font-size:.875rem}
.wk-hero-actions .wk-hero-label-full{display:none}
.wk-hero-actions .wk-hero-label-mobile{display:inline;white-space:nowrap}
.wk-hero-actions .wk-hero-demo svg,.wk-hero-actions .wk-hero-teachers svg{width:20px;height:20px}}
@media(max-width:400px){.wk-hero-subject{font-size:.85rem;gap:7px}.wk-home-hero .wk-hero-feature h2{font-size:.93rem}}
/* Keep all desktop actions on one row, allowing labels to wrap inside them at narrower widths or higher zoom. */
@media (min-width:761px){
.wk-home-hero .wk-hero-actions{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) minmax(0,1.12fr);gap:8px}
.wk-home-hero .wk-hero-actions a{min-width:0;padding:12px 8px;gap:6px}
.wk-home-hero .wk-hero-actions a,.wk-home-hero .wk-hero-actions .wk-hero-start{font-size:clamp(.8rem,.9vw,1rem)}
.wk-home-hero .wk-hero-actions span{min-width:0;white-space:normal;overflow-wrap:break-word}
.wk-home-hero .wk-hero-actions svg{width:20px;height:20px}
.wk-home-hero .wk-hero-actions a:only-child{grid-column:1 / -1}
/* Subject labels stay on one line; longer subjects receive their actual content width. */
.wk-home-hero .wk-hero-subject{white-space:nowrap;font-size:clamp(.8rem,.9vw,1rem);gap:6px;padding:9px 8px}
.wk-home-hero .wk-hero-subject svg{width:22px;height:22px}
.wk-home-hero .wk-hero-subject-maths{font-size:1.1rem}
/* Match the reference hero's share of the viewport, including browser zoom. */
.wk-home-hero{height:65svh}
.wk-home-hero>.container{height:100%}
.wk-home-hero-inner{height:100%;min-height:0;grid-template-rows:minmax(0,1fr);padding:clamp(12px,3.3svh,30px) 0 clamp(16px,4.4svh,40px)}
.wk-hero-copy{height:100%;min-height:0;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:min(14px,1.5svh)}
.wk-home-hero h1{margin:0;font-size:clamp(1.65rem,min(3.25vw,6.25svh),3.55rem)}
.wk-hero-subjects{margin:0;align-self:start}
.wk-home-hero .wk-hero-subject{min-height:min(46px,5.8svh);padding:min(9px,1svh) 8px;font-size:min(1rem,1.8svh)}
.wk-home-hero .wk-hero-subject-maths{font-size:min(1.1rem,2.1svh)}
.wk-hero-features{min-height:0;margin:0;grid-template-rows:repeat(2,minmax(0,1fr));gap:min(10px,1.1svh)}
.wk-hero-feature{min-height:0;padding:min(10px,1.1svh) min(14px,1vw);gap:min(12px,1.3svh)}
.wk-hero-feature-icon{width:min(48px,5.3svh);height:min(48px,5.3svh)}
.wk-hero-feature-icon svg{width:min(30px,3.4svh);height:min(30px,3.4svh)}
.wk-home-hero .wk-hero-feature h2{font-size:min(1.3rem,2.4svh)}
.wk-home-hero .wk-hero-feature p{font-size:min(1.1rem,2.1svh)}
.wk-home-hero .wk-hero-actions a{min-height:min(50px,6.4svh);padding:min(12px,1.25svh) 8px}
.wk-home-hero .wk-hero-actions a,.wk-home-hero .wk-hero-actions .wk-hero-start{font-size:min(1rem,1.8svh)}
.wk-hero-visual{height:100%;min-height:0}
.wk-hero-photo-frame{height:100%}
.wk-hero-photo{height:100%;aspect-ratio:auto}
.wk-hero-photo img{height:100%;object-fit:cover;object-position:center}
}
@media (min-width:1101px){.wk-hero-subjects{grid-template-columns:minmax(0,1fr) repeat(3,max-content);gap:clamp(6px,.65vw,12px)}}
@media (hover:hover) and (pointer:fine){.wk-home-hero .wk-hero-subject:hover{transform:translateY(-2px);border-color:#bfc3ff;box-shadow:0 7px 16px #4e36ed26}.wk-home-hero .wk-hero-subject-maths:hover{border-color:transparent;box-shadow:0 8px 18px #4e36ed40}}
@media(prefers-reduced-motion:reduce){.wk-home-hero .wk-hero-actions a{transition:none}.wk-home-hero a:hover{transform:none}.wk-home-hero .wk-hero-subject{transition:none}.wk-home-hero .wk-hero-subject:hover{transform:none}}
