/* NP Plankton – Batch 2 site style (design C "Djuphavet" with three doors). Fonts are self-hosted (see /fonts/fonts.css). */
:root {
  --navy: #0B2545; --abyss: #071A33; --sea: #164B78; --ink: #0B2545; --muted: #3D5872; --line: #DFE7EF;
  --sun: #FFD23F; --teal: #13A89E; --link: #0E6E8C; --soft: #F5F8FB; --mint: #EEF8F6; --cream: #FFF8E1; --sky: #EEF3FC;
  --head: 'Nunito', system-ui, sans-serif; --body: 'NP Digits', 'Atkinson Hyperlegible', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 18px; line-height: 1.6; color: var(--ink); background: #fff; }
a { color: var(--link); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--head); font-weight: 900; line-height: 1.12; margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* Header */
.top { background: var(--navy); color: #fff; }
.top.clear { background: transparent; position: relative; z-index: 3; }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--head); font-weight: 900; font-size: 22px; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.menu { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-left: auto; font-size: 17px; }
.menu a { color: #DDEBF7; text-decoration: none; padding: 6px 0; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--sun); }
.menu a[aria-current="page"] { font-weight: 700; }
.langbtn { font: inherit; font-size: 16px; color: #DDEBF7; background: none; border: 0; cursor: pointer; padding: 6px 0; text-decoration: underline; text-underline-offset: 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; text-decoration: none; font-family: var(--head); font-weight: 900; font-size: 19px; padding: 13px 28px; border-radius: 16px; border: 0; cursor: pointer; }
.btn.sun { background: var(--sun); color: var(--navy); box-shadow: 0 5px 0 #C99A00; }
.btn.sun:hover { color: var(--navy); filter: brightness(1.04); }
.btn.navy { background: var(--navy); color: #fff; }
.btn.navy:hover { color: #fff; background: #12335c; }
.btn.line { background: #fff; color: var(--navy); border: 2px solid #CBD8E5; font-weight: 800; }
.btn.line.dark { background: transparent; color: #fff; border-color: #5E86AD; }
.btn.small { min-height: 44px; font-size: 16px; padding: 9px 18px; border-radius: 12px; box-shadow: none; }

/* Hero (welcome page) */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(circle at 72% 38%, var(--sea) 0%, var(--navy) 55%, var(--abyss) 100%); }
.hero .inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 36px; padding-top: 22px; padding-bottom: 160px; }
.hero .text { flex: 999 1 520px; min-width: 0; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(38px, 6vw, 60px); max-width: 660px; }
.hero .lead { margin: 20px 0 0; font-size: 21px; color: #CFE1F0; max-width: 580px; }
.hero .nums { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; max-width: 600px; }
.hero .nums li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: 14px; padding: 10px 16px; min-width: 104px; }
.hero .nums li.tot { background: rgba(255,210,63,.16); border-color: rgba(255,210,63,.55); }
.hero .nums b { display: block; font-size: 26px; line-height: 1.1; font-weight: 800; color: #fff; }
.hero .nums span { display: block; font-size: 14px; color: #CFE1F0; }
.hero .row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 28px; }
.hero .note { font-size: 16px; color: #B8CDE0; }
.stage { flex: 1 1 340px; min-height: 380px; position: relative; }
.mascot { position: absolute; left: 50%; top: 50%; width: 300px; height: 300px; margin: -150px 0 0 -150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79,209,197,.35) 0%, rgba(79,209,197,0) 68%); display: grid; place-items: center; }
.mascot img { width: 280px; height: 280px; object-fit: contain; animation: bob 4.5s ease-in-out infinite; }
.sb { position: absolute; z-index: 2; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none;
  font-weight: 700; font-size: 16px; line-height: 1.2; color: #fff; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.3), inset -6px -8px 14px rgba(0,0,0,.18);
  animation: bob 5s ease-in-out infinite; transition: transform .2s; }
.sb, .sb:hover, .sb:focus-visible { color: var(--navy) !important; text-shadow: 0 1px 0 rgba(255,255,255,.55); }
.sb.ma:hover, .sb.ma:focus-visible { color: var(--navy); }
.sb:hover, .sb:focus-visible { color: #fff; transform: scale(1.08); animation-play-state: paused; }
.sb small { font-size: 14px; font-weight: 400; opacity: .95; }
.sb.ma { width: 124px; height: 124px; left: 2%; top: 0; color: var(--navy); background: radial-gradient(circle at 32% 28%, #fff 0 7%, #7FE3D8 38%, #0B8F86 100%); }
.sb.fy { width: 96px; height: 96px; right: 0; top: 10px; color: var(--navy); background: radial-gradient(circle at 32% 28%, #fff 0 7%, #FFE28A 38%, #D99A00 100%); animation-duration: 6s; animation-delay: -1s; }
.sb.fy:hover, .sb.fy:focus-visible { color: var(--navy); }
.sb.ke { width: 92px; height: 92px; left: 6%; bottom: 0; background: radial-gradient(circle at 32% 28%, #fff 0 7%, #FFC2DA 38%, #E0609A 100%); animation-duration: 5.5s; animation-delay: -2s; }
.sb.bi { width: 96px; height: 96px; right: 2%; bottom: 10px; background: radial-gradient(circle at 32% 28%, #fff 0 7%, #C4DAFF 38%, #5B86D6 100%); animation-duration: 6.5s; animation-delay: -.5s; }
.glow { position: absolute; border-radius: 50%; pointer-events: none; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.85), rgba(155,231,224,.3) 45%, rgba(155,231,224,0) 72%); animation: rise linear infinite; bottom: -30px; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .8; } 100% { transform: translateY(-560px); opacity: 0; } }

/* Doors */
.doors { position: relative; z-index: 4; margin-top: -116px; }
.doors .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.door { display: flex; flex-direction: column; gap: 8px; min-height: 214px; padding: 26px 28px; border-radius: 22px; background: #fff; color: var(--ink); text-decoration: none;
  box-shadow: 0 16px 40px rgba(11,37,69,.16); border-top: 6px solid var(--teal); transition: transform .2s, box-shadow .2s; }
.door:hover { color: var(--ink); transform: translateY(-4px); box-shadow: 0 22px 48px rgba(11,37,69,.2); }
.door.par { border-top-color: var(--sun); }
.door.tea { border-top-color: #3B7DD8; }
.door b { font-family: var(--head); font-weight: 900; font-size: 26px; }
.door span { color: var(--muted); }
.door em { margin-top: auto; font-style: normal; font-weight: 700; color: var(--link); }
.door.mine, .feat.mine { outline: 3px solid var(--sun); outline-offset: 4px; }

/* Sections */
.sec { padding: 56px 0 24px; }
.sec h2 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 18px; }
.sec .sub { margin: -8px 0 20px; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--soft); border-radius: 20px; padding: 24px; }
.card h3 { font-size: 22px; margin-bottom: 6px; }
.card p { margin: 0; color: var(--muted); }
.subjects { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.subj { display: block; text-decoration: none; color: var(--ink); background: #EEF5FB; border-radius: 16px; padding: 18px 20px; transition: background .2s; }
.subj:hover { color: var(--ink); background: #E1EDF8; }
.subj b { display: block; font-size: 21px; }
.subj span { font-size: 16px; color: var(--muted); }
.soon { margin: 12px 0 0; font-size: 16px; color: var(--muted); }
.split { display: flex; flex-wrap: wrap; gap: 36px; align-items: center; padding-top: 40px; padding-bottom: 56px; }
.split img { width: 190px; height: 190px; object-fit: contain; }
.split > div { flex: 1 1 460px; min-width: 0; }
.ladder { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ladder span { padding: 6px 16px; border-radius: 999px; font-weight: 700; background: #EEF2F6; color: var(--muted); }
.ladder .ok { background: #D6F3EF; color: var(--ink); }
.ladder .now { background: var(--navy); color: #fff; }
.darkbox { background: var(--navy); color: #fff; border-radius: 24px; padding: 28px 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.darkbox b { display: block; font-family: var(--head); font-weight: 900; font-size: 21px; color: var(--sun); }
.darkbox span { color: #DDEBF7; }
.origin { margin: 12px 4px 0; color: var(--muted, #3D5872); font-size: 15px; } /* review 28 Nov: where the questions come from */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; counter-reset: s; }
.steps li { border: 2px solid var(--line); border-radius: 20px; padding: 22px; counter-increment: s; }
.steps li::before { content: counter(s); display: block; font-family: var(--head); font-weight: 900; font-size: 34px; color: var(--link); }
.fb { background: var(--navy); color: #fff; border-radius: 22px; padding: 24px 28px; }
.fb .k { margin: 0; font-size: 16px; font-weight: 700; color: #9BE7E0; }
.fb .lv { margin: 0 0 10px; font-family: var(--head); font-weight: 900; font-size: 28px; }
.fb .ladder span { background: #23476E; color: #fff; font-size: 16px; }
.fb .ladder .ok { background: var(--teal); }
.fb .ladder .now { background: var(--sun); color: var(--navy); }
.fb p { margin: 12px 0 0; color: #DDEBF7; }
.fb p b { color: #fff; }
.chart { background: #fff; border-radius: 20px; padding: 20px; box-shadow: 0 14px 34px rgba(11,37,69,.12); flex: 1 1 360px; min-width: 0; }
.bar { height: 10px; border-radius: 5px; background: #E6ECF4; margin: 2px 0 10px; }
.bar i { display: block; height: 10px; border-radius: 5px; background: var(--teal); }
.bar.low i { background: #D98E04; }

/* Audience page hero */
.phero { padding: 52px 0; }
.phero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 36px; }
.phero .text { flex: 999 1 520px; min-width: 0; }
.phero .kick { margin: 0 0 10px; font-weight: 700; color: var(--link); }
.phero h1 { font-size: clamp(34px, 5vw, 50px); }
.phero .lead { margin: 18px 0 0; font-size: 20px; color: var(--muted); max-width: 620px; }
.phero .row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.phero > .wrap > img { width: 230px; height: 230px; object-fit: contain; animation: bob 5s ease-in-out infinite; }
.phero.mint { background: var(--mint); } .phero.cream { background: var(--cream); } .phero.sky { background: var(--sky); }
.phero.cream .kick { color: #7A5600; } .phero.sky .kick { color: #2F5FA8; }

/* Next-step bar and footer */
.next { border-top: 2px solid #E6ECF4; background: var(--soft); margin-top: 32px; }
.next .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-top: 28px; padding-bottom: 28px; }
.next .lab { font-size: 16px; color: var(--muted); }
.next .home { margin-left: auto; }
.ready { text-align: center; padding: 56px 0; }
.ready h2 { font-size: 34px; margin-bottom: 18px; }
.ready .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.foot { background: var(--navy); color: #B8CDE0; font-size: 16px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-top: 26px; padding-bottom: 26px; }
.foot a { color: #DDEBF7; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .menu { width: 100%; margin-left: 0; order: 3; }
  .hero .inner { padding-bottom: 130px; }
  .stage { min-height: 320px; }
  .mascot { width: 220px; height: 220px; margin: -110px 0 0 -110px; }
  .mascot img { width: 200px; height: 200px; }
  .sb.ma { width: 104px; height: 104px; } .sb.fy, .sb.ke, .sb.bi { width: 84px; height: 84px; font-size: 14px; }
  .doors { margin-top: -100px; }
  .next .lab { margin-left: 0; width: 100%; } .next .home { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mascot img, .sb, .glow, .phero > .wrap > img { animation: none; }
  .glow { display: none; }
  .door, .sb { transition: none; }
}

/* ---------- Premium glossy 3D layer (owner: "premium, glossy, 3D shapes, buttons like the yellow one") ---------- */
.top { background: linear-gradient(180deg, #12335c 0%, var(--navy) 60%, #091f3b 100%); box-shadow: 0 2px 0 rgba(255,255,255,.04) inset; }
.top.clear { background: transparent; box-shadow: none; }
.btn { position: relative; transition: transform .12s, box-shadow .12s, filter .12s; text-shadow: none; }
.btn::after { content: ''; position: absolute; left: 10%; right: 10%; top: 3px; height: 40%; border-radius: 12px 12px 40% 40%; background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0)); pointer-events: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(3px); }
.btn.sun { background: linear-gradient(180deg, #FFF6C2 0%, #FFD23F 45%, #F5A800 100%); box-shadow: 0 5px 0 #C98400, 0 12px 22px rgba(201,132,0,.35), inset 0 -2px 0 rgba(0,0,0,.06); }
.btn.sun:active { box-shadow: 0 2px 0 #C98400, 0 6px 12px rgba(201,132,0,.3); }
.btn.navy { background: linear-gradient(180deg, #2B5E93 0%, #12335c 45%, #071A33 100%); box-shadow: 0 5px 0 #030C18, 0 12px 22px rgba(7,26,51,.35); }
.btn.navy::after { background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0)); }
.btn.navy:active { box-shadow: 0 2px 0 #030C18, 0 6px 12px rgba(7,26,51,.3); }
.btn.line { background: linear-gradient(180deg, #FFFFFF 0%, #F2F7FB 55%, #E1ECF4 100%); border: 1px solid #CBD8E5; box-shadow: 0 5px 0 #C3D3E0, 0 10px 18px rgba(11,37,69,.10); }
.btn.line:active { box-shadow: 0 2px 0 #C3D3E0; }
.btn.line.dark { background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.06)); border: 1px solid rgba(255,255,255,.35); box-shadow: 0 4px 0 rgba(0,0,0,.35), 0 10px 20px rgba(0,0,0,.25); color: #fff; backdrop-filter: blur(6px); }
.btn.line.dark::after { background: linear-gradient(180deg, rgba(255,255,255,.25), rgba(255,255,255,0)); }
.btn.small { box-shadow: 0 4px 0 #C98400, 0 8px 14px rgba(0,0,0,.18); }
.btn.line.small { box-shadow: 0 4px 0 #C3D3E0; } .btn.line.dark.small { box-shadow: 0 4px 0 rgba(0,0,0,.35); }

/* Glossy 3D orbs used as icons (pure CSS, no emoji) */
.door, .subj, .card, .steps li { position: relative; overflow: hidden; }
.door::after { content: ''; position: absolute; right: 22px; top: 22px; width: 54px; height: 54px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff 0 9%, #7FE3D8 40%, #0B8F86 100%); box-shadow: 0 8px 16px rgba(11,143,134,.35), inset -4px -6px 10px rgba(0,0,0,.18); }
.door.par::after { background: radial-gradient(circle at 32% 28%, #fff 0 9%, #FFE28A 40%, #D99A00 100%); box-shadow: 0 8px 16px rgba(217,154,0,.35), inset -4px -6px 10px rgba(0,0,0,.15); }
.door.tea::after { background: radial-gradient(circle at 32% 28%, #fff 0 9%, #A9C8FF 40%, #2F5FBF 100%); box-shadow: 0 8px 16px rgba(47,95,191,.35), inset -4px -6px 10px rgba(0,0,0,.18); }
.door { background: linear-gradient(180deg, #FFFFFF 0%, #F6FAFD 100%); box-shadow: 0 18px 40px rgba(11,37,69,.18), 0 2px 0 #fff inset, 0 -3px 0 #E3ECF3 inset; }
.door b { padding-right: 70px; }
.subj { background: linear-gradient(180deg, #F6FAFE 0%, #E7F0F9 100%); box-shadow: 0 4px 0 #D3E1EE, 0 10px 18px rgba(11,37,69,.06); padding-left: 64px; }
.subj::before { content: ''; position: absolute; left: 18px; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff 0 9%, #7FE3D8 40%, #0B8F86 100%); box-shadow: 0 4px 8px rgba(0,0,0,.18), inset -2px -3px 6px rgba(0,0,0,.18); }
.subj.fy::before { background: radial-gradient(circle at 32% 28%, #fff 0 9%, #FFE28A 40%, #D99A00 100%); }
.subj.ke::before { background: radial-gradient(circle at 32% 28%, #fff 0 9%, #FFA8CB 40%, #C2306E 100%); }
.subj.bi::before { background: radial-gradient(circle at 32% 28%, #fff 0 9%, #A9C8FF 40%, #2F5FBF 100%); }
.subj:hover { background: linear-gradient(180deg, #FFFFFF 0%, #DDEAF6 100%); transform: translateY(-2px); }
.card { background: linear-gradient(180deg, #FFFFFF 0%, #F1F6FA 100%); border: 1px solid #E3ECF3; box-shadow: 0 5px 0 #DCE7EF, 0 14px 24px rgba(11,37,69,.06); }
.card::before { content: ''; display: block; width: 40px; height: 40px; margin-bottom: 12px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff 0 9%, #9BE7E0 40%, #13A89E 100%); box-shadow: 0 6px 12px rgba(19,168,158,.3), inset -3px -4px 8px rgba(0,0,0,.15); }
.cards .card:nth-child(4n+2)::before { background: radial-gradient(circle at 32% 28%, #fff 0 9%, #FFE28A 40%, #D99A00 100%); box-shadow: 0 6px 12px rgba(217,154,0,.3), inset -3px -4px 8px rgba(0,0,0,.12); }
.cards .card:nth-child(4n+3)::before { background: radial-gradient(circle at 32% 28%, #fff 0 9%, #FFA8CB 40%, #C2306E 100%); box-shadow: 0 6px 12px rgba(194,48,110,.3), inset -3px -4px 8px rgba(0,0,0,.15); }
.cards .card:nth-child(4n+4)::before { background: radial-gradient(circle at 32% 28%, #fff 0 9%, #A9C8FF 40%, #2F5FBF 100%); box-shadow: 0 6px 12px rgba(47,95,191,.3), inset -3px -4px 8px rgba(0,0,0,.15); }
.steps li { background: linear-gradient(180deg, #FFFFFF 0%, #F3F7FB 100%); border: 1px solid #E3ECF3; box-shadow: 0 5px 0 #DCE7EF; }
.steps li::before { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; color: var(--navy); margin-bottom: 12px;
  background: radial-gradient(circle at 32% 28%, #fff 0 10%, #FFE28A 42%, #E0A100 100%); box-shadow: 0 6px 12px rgba(217,154,0,.3), inset -3px -4px 8px rgba(0,0,0,.12); }
.ladder span { box-shadow: 0 3px 0 rgba(11,37,69,.12), inset 0 1px 0 rgba(255,255,255,.6); }
.ladder .ok { background: linear-gradient(180deg, #E8FBF8, #BFEDE6); }
.ladder .now { background: linear-gradient(180deg, #2B5E93, #0B2545); box-shadow: 0 3px 0 #030C18; }
.darkbox, .fb { background: linear-gradient(160deg, #1B4A7A 0%, #0B2545 55%, #071A33 100%); box-shadow: 0 14px 34px rgba(7,26,51,.3), inset 0 1px 0 rgba(255,255,255,.12); position: relative; overflow: hidden; }
.darkbox::after, .fb::after { content: ''; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 35%, rgba(155,231,224,.35), rgba(155,231,224,0) 65%); }
.chart { background: linear-gradient(180deg, #FFFFFF, #F4F8FC); box-shadow: 0 18px 40px rgba(11,37,69,.16), inset 0 1px 0 #fff; }
.bar i { background: linear-gradient(180deg, #4FD1C5, #0B8F86); }
.bar.low i { background: linear-gradient(180deg, #FFD36B, #D98E04); }
/* Big soft 3D glass orbs behind the audience page headers */
.phero { position: relative; overflow: hidden; }
.phero::before, .phero::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.phero::before { width: 420px; height: 420px; right: -120px; top: -160px; background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.9), rgba(255,255,255,0) 60%); }
.phero::after { width: 260px; height: 260px; left: -90px; bottom: -120px; background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.7), rgba(255,255,255,0) 62%); }
.phero .wrap { position: relative; z-index: 1; }
.phero.mint { background: linear-gradient(160deg, #F4FCFA 0%, #DDF3EE 100%); }
.phero.cream { background: linear-gradient(160deg, #FFFCF0 0%, #FFEFC2 100%); }
.phero.sky { background: linear-gradient(160deg, #F6F9FF 0%, #DCE7FA 100%); }
.next { background: linear-gradient(180deg, #F7FAFD, #EAF1F7); }
@media (prefers-reduced-motion: reduce) { .btn, .subj { transition: none; } .btn:hover, .btn:active, .subj:hover { transform: none; } }

/* ---------- "Allt vi erbjuder": glossy 3D year tabs + subject cards (open / coming soon) ---------- */
.years { display: flex; flex-wrap: wrap; gap: 14px; margin: 6px 0 22px; }
.ytab { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 150px; min-height: 64px; padding: 12px 22px; border-radius: 18px; cursor: pointer;
  font: inherit; text-align: left; color: var(--navy); border: 1px solid #CBD8E5;
  background: linear-gradient(180deg, #FFFFFF 0%, #F2F7FB 55%, #E1ECF4 100%); box-shadow: 0 5px 0 #C3D3E0, 0 10px 18px rgba(11,37,69,.08); transition: transform .12s, box-shadow .12s; }
.ytab::after { content: ''; position: absolute; left: 10%; right: 10%; top: 3px; height: 38%; border-radius: 12px 12px 40% 40%; background: linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,0)); pointer-events: none; }
.ytab b { font-family: var(--head); font-weight: 900; font-size: 22px; line-height: 1.1; }
.ytab small { font-size: 14px; color: var(--muted); }
.ytab.open small { color: #0B7F77; font-weight: 700; }
.ytab:hover { transform: translateY(-1px); }
.ytab:active { transform: translateY(3px); box-shadow: 0 2px 0 #C3D3E0; }
.ytab[aria-selected="true"] { color: #fff; border-color: transparent; background: linear-gradient(180deg, #2B5E93 0%, #12335c 45%, #071A33 100%); box-shadow: 0 5px 0 #030C18, 0 12px 22px rgba(7,26,51,.3); }
.ytab[aria-selected="true"]::after { background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0)); }
.ytab[aria-selected="true"] small { color: #DDEBF7; }
.ytab[aria-selected="true"].open small { color: var(--sun); }
.subj { display: flex; flex-direction: column; gap: 2px; min-height: 104px; justify-content: center; }
.subj .chip { align-self: flex-start; margin-top: 6px; font-style: normal; font-size: 14px; font-weight: 700; padding: 3px 12px; border-radius: 999px; color: var(--muted);
  background: linear-gradient(180deg, #FFFFFF, #EAF0F5); box-shadow: 0 2px 0 #D5E0EA; }
.subj .chip.open { color: #fff; background: linear-gradient(180deg, #4FD1C5, #0B8F86); box-shadow: 0 2px 0 #08665F; }
.subj.c-sun::before { background: radial-gradient(circle at 32% 28%, #fff 0 9%, #FFE28A 40%, #D99A00 100%); }
.subj.c-pink::before { background: radial-gradient(circle at 32% 28%, #fff 0 9%, #FFA8CB 40%, #C2306E 100%); }
.subj.c-blue::before { background: radial-gradient(circle at 32% 28%, #fff 0 9%, #A9C8FF 40%, #2F5FBF 100%); }
.subj.soon { color: #3D5872; background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(238,244,249,.9)); border: 2px dashed #CBD8E5; box-shadow: none; cursor: default; }
.subj.soon:hover { transform: none; background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(238,244,249,.9)); }
.subj.soon::before { filter: saturate(.35) brightness(1.08); opacity: .8; }
.subj.soon b { color: var(--navy); }
@media (prefers-reduced-motion: reduce) { .ytab { transition: none; } .ytab:hover, .ytab:active { transform: none; } }
.subj { padding-right: 14px; min-width: 0; }
.subj b { hyphens: auto; overflow-wrap: anywhere; line-height: 1.2; }
.subj.soon { min-height: 92px; }
.subj.soon b { font-size: 19px; }
.offer .subjects { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
@media (max-width: 760px) {
  .offer .subjects { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .offer .subj { padding: 54px 12px 14px; min-height: 0; justify-content: flex-start; }
  .offer .subj::before { left: 12px; top: 14px; margin-top: 0; width: 30px; height: 30px; }
  .offer .subj b { font-size: 17px; }
  .ytab { min-width: 0; flex: 1 1 140px; }
}

/* Language chosen once at the start (owner idea, 19 Nov). */
.langpick { position: fixed; z-index: 60; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(520px, calc(100% - 24px)); padding: 18px 20px 14px; border-radius: 22px; text-align: center;
  background: linear-gradient(180deg, #FFFFFF 0%, #F2F7FB 100%); color: var(--navy); border: 1px solid #DCE7EF; box-shadow: 0 8px 0 #CBD8E5, 0 24px 48px rgba(4,20,42,.35); }
.langpick p { margin: 0 0 12px; font-size: 18px; }
.langpick .lprow { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }
.langpick .btn { min-width: 150px; }
.langpick small { color: #4A6378; font-size: 14px; }

/* Batch 3.1 – reviews ("Tyck till") */
.rvmain { background: var(--soft); padding: 40px 0 56px; }
.rvwrap { max-width: 760px; }
.rvwrap h1 { margin-bottom: 8px; }
.rvform { background: #fff; border-radius: 22px; padding: 26px 28px; box-shadow: 0 12px 32px rgba(11,37,69,.10); margin-top: 18px; }
.rvform fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.rvform legend, .rvlab { display: block; font-weight: 800; margin-bottom: 8px; color: var(--navy); }
.rvroles { display: flex; flex-wrap: wrap; gap: 10px; }
.rvroles label { position: relative; cursor: pointer; }
.rvroles input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rvroles span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 14px; border: 2px solid #CBD8E5; background: #fff; font-weight: 800; box-shadow: 0 4px 0 #CBD8E5; }
.rvroles input:checked + span { background: var(--sun); border-color: #C99A00; box-shadow: 0 4px 0 #C99A00; color: var(--navy); }
.rvroles input:focus-visible + span, .rvstars input:focus-visible + label { outline: 3px solid var(--link); outline-offset: 2px; }
.rvstars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rvstars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rvstars label { width: 48px; height: 48px; cursor: pointer; background: no-repeat center/40px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3 6.6 7.2.7-5.4 4.8 1.6 7.1L12 17.5 5.6 21.2l1.6-7.1L1.8 9.3 9 8.6z' fill='%23E3EAF1' stroke='%23B5C4D3'/%3E%3C/svg%3E"); }
.rvstars input:checked ~ label, .rvstars label:hover, .rvstars label:hover ~ label { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3 6.6 7.2.7-5.4 4.8 1.6 7.1L12 17.5 5.6 21.2l1.6-7.1L1.8 9.3 9 8.6z' fill='%23FFD23F' stroke='%23C99A00'/%3E%3C/svg%3E"); }
.rvform textarea, .rvform input:not([type]) { width: 100%; box-sizing: border-box; font: inherit; font-size: 17px; padding: 12px 14px; border: 2px solid #CBD8E5; border-radius: 14px; background: #fff; color: var(--ink); }
.rvform textarea:focus, .rvform input:not([type]):focus { outline: 3px solid var(--link); outline-offset: 1px; }
.rvcount { display: block; text-align: right; color: var(--muted); font-size: 14px; margin: 4px 0 14px; }
.rvtwo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 560px) { .rvtwo { grid-template-columns: 1fr; } .rvform { padding: 20px 16px; } }
.rvnote { color: var(--muted); margin: 0 0 14px; }
.rvtrap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rvcheck { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 16px; cursor: pointer; }
.rvcheck input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.rverr { color: #A4262C; font-weight: 700; }
.rvdone { background: #fff; border-radius: 22px; padding: 26px 28px; margin-top: 18px; border-top: 6px solid var(--teal); }
.rvhow { margin-top: 28px; }
.rvhow h2 { font-size: 22px; }
.rvhow p { color: var(--muted); }
/* Home: what users say (only shown with at least two approved reviews) */
.says { padding: 44px 0; background: var(--mint); overflow: hidden; }
.says h2 { margin-bottom: 6px; }
.says .sub { color: var(--muted); margin: 0 0 18px; }
.saysrow { display: flex; gap: 18px; width: max-content; animation: saysmove 60s linear infinite; }
.saysbox:hover .saysrow, .saysbox:focus-within .saysrow { animation-play-state: paused; }
@keyframes saysmove { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .saysrow { animation: none; width: auto; flex-wrap: nowrap; } .saysbox { overflow-x: auto; } }
.say { margin: 0; width: 300px; flex: none; background: #fff; border-radius: 20px; padding: 20px 22px; box-shadow: 0 8px 22px rgba(11,37,69,.10); border-top: 5px solid var(--sun); }
.say .st { color: #C99A00; font-size: 20px; letter-spacing: 2px; }
.say p { margin: 8px 0 10px; }
.say small { color: var(--muted); font-weight: 700; }
.says .row { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.says .how { color: var(--muted); font-size: 15px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Batch C (25 Nov 2026): exam boards, prices, FAQ, contact, footer ---------- */
.center { text-align: center; }
.narrow { max-width: 780px; }
.more { margin: 22px 0 0; font-weight: 700; }
.more a { text-decoration: none; }
.lead2 { font-size: 20px; color: var(--muted); max-width: 820px; margin: 0; }
.fine { font-size: 15px; color: var(--muted); margin: 16px 0 0; }
.boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.board { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: 0 5px 0 #DCE7EF; transition: transform .15s; }
.board:hover { color: var(--ink); transform: translateY(-2px); border-color: #B7CCE0; }
.board.open { border-color: var(--teal); box-shadow: 0 5px 0 #0E8A81; }
.board.ask { border-style: dashed; background: var(--soft); box-shadow: none; }
.board .bmeta { font-size: 14px; color: var(--muted); font-weight: 700; }
.board b { font-family: var(--head); font-weight: 900; font-size: 24px; line-height: 1.15; }
.board .blev { font-size: 16px; color: var(--link); font-weight: 700; }
.board .bblurb { font-size: 16px; color: var(--muted); flex: 1; }
.board .bcount { font-size: 15px; font-weight: 700; color: var(--navy); }
.chip { align-self: flex-start; font-size: 14px; font-weight: 800; padding: 4px 12px; border-radius: 99px; background: var(--sky); color: #2F5FA8; }
.chip.ok { background: #DDF5EE; color: #0B6B58; }
.chip.soon { background: var(--cream); color: #7A5600; }
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px 28px; }
.feat { border-left: 4px solid var(--teal); padding: 4px 0 4px 16px; }
.feat b { display: block; font-family: var(--head); font-weight: 900; font-size: 20px; }
.feat span { color: var(--muted); font-size: 17px; }
.steps li b { display: block; font-family: var(--head); font-weight: 900; font-size: 20px; margin-bottom: 4px; }
.steps li span { color: var(--muted); font-size: 17px; }
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; align-items: stretch; }
.price { position: relative; display: flex; flex-direction: column; gap: 6px; background: #fff; border: 2px solid var(--line); border-radius: 22px; padding: 24px 22px; }
.price.hot { border-color: var(--sun); background: #FFFBEA; box-shadow: 0 6px 0 #E8C34A; }
.price .tag { position: absolute; top: -14px; left: 20px; background: var(--sun); color: var(--navy); font-weight: 800; font-size: 14px; padding: 3px 12px; border-radius: 99px; }
.price h3 { font-size: 22px; }
.price .amt { margin: 0; font-family: var(--head); font-weight: 900; font-size: 34px; color: var(--navy); }
.price .amt small { font-size: 16px; color: var(--muted); font-weight: 700; }
.price .btn { margin-top: auto; }
.ticks { list-style: none; padding: 0; margin: 6px 0 14px; }
.ticks li { position: relative; padding-left: 28px; margin: 6px 0; font-size: 16px; }
.ticks li::before { content: "✓"; position: absolute; left: 4px; color: var(--teal); font-weight: 900; }
.ticks.big li { font-size: 18px; }
.faq details { border: 2px solid var(--line); border-radius: 16px; padding: 4px 18px; margin: 10px 0; background: #fff; }
.faq summary { cursor: pointer; font-family: var(--head); font-weight: 800; font-size: 19px; padding: 12px 0; }
.faq p { margin: 0 0 14px; color: var(--muted); }
.vision { background: var(--navy); color: #fff; padding: 56px 0; margin-top: 40px; }
.vision h2 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 14px; }
.vision > .wrap > p { color: #DDEBF7; max-width: 820px; font-size: 19px; margin: 0; }
.road { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 28px; }
.road div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); border-radius: 18px; padding: 18px; }
.road b { display: block; color: var(--sun); font-family: var(--head); font-weight: 900; font-size: 18px; }
.road span { color: #DDEBF7; font-size: 16px; }
.card.gold { background: #FFFBEA; border-color: var(--sun); }
.cform { display: grid; gap: 16px; }
.cform fieldset { border: 2px solid var(--line); border-radius: 16px; padding: 12px 18px; margin: 0; }
.cform legend { font-weight: 800; padding: 0 6px; }
.ckind label { display: flex; gap: 10px; align-items: center; margin: 8px 0; cursor: pointer; }
.cfield { display: grid; gap: 6px; font-weight: 700; }
.cfield input, .cfield select, .cfield textarea { font: inherit; font-weight: 400; padding: 12px 14px; border: 2px solid #CBD8E5; border-radius: 12px; }
.cerr { color: #B42318; font-weight: 700; margin: 0; }
.cdone { text-align: center; padding: 30px 0; }
.cdone h2 { margin-bottom: 10px; }
.policy { padding: 40px 0; }
.policy h1 { font-size: clamp(30px, 4.4vw, 42px); margin-bottom: 16px; }
.policy h2 { font-size: 24px; margin: 28px 0 10px; }
.policy table { width: 100%; border-collapse: collapse; font-size: 16px; }
.policy td, .policy th { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
.policy .tablewrap, .policy table { display: block; overflow-x: auto; }
.policy table:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 6px; }
/* Site check 27 Nov: the four facts at the top of the privacy policy (big figure, text under it) */
.policy .facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0 8px; }
.policy .facts > div { background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 14px 16px; box-shadow: 0 3px 0 var(--line); color: var(--muted); font-size: 15px; line-height: 1.4; }
.policy .facts b { display: block; font-family: var(--head); font-size: 30px; line-height: 1.1; color: var(--link); margin-bottom: 4px; }
@media (max-width: 760px) { .policy .facts { grid-template-columns: 1fr 1fr; gap: 8px; } .policy .facts > div { padding: 12px; font-size: 14px; } .policy .facts b { font-size: 24px; } }
.foot .fcols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; padding-top: 36px; padding-bottom: 20px; justify-content: stretch; }
.foot .fcol { display: flex; flex-direction: column; gap: 8px; }
.foot .fcol b { color: #fff; font-family: var(--head); font-weight: 900; }
.foot .fcol a { text-decoration: none; }
.foot .fcol a:hover { text-decoration: underline; }
.foot .fbrand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--head); font-weight: 900; font-size: 20px; margin: 0; }
.foot .fbrand img { border-radius: 8px; }
.foot .fcol p { margin: 0; }
.foot .fsmall { border-top: 1px solid rgba(255,255,255,.12); padding-top: 14px; padding-bottom: 20px; font-size: 14px; }
.hero .note { margin: 12px 0 0; color: #CFE1F0; font-size: 16px; }
.hero .kick { margin: 0 0 10px; font-weight: 700; color: var(--sun); }
@media (max-width: 860px) { .foot .fcols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot .fcols { grid-template-columns: 1fr; } .board b { font-size: 21px; } .price .amt { font-size: 30px; } }
.cform, .cform fieldset, .cfield { min-width: 0; }
.cfield select, .cfield input, .cfield textarea { max-width: 100%; width: 100%; box-sizing: border-box; }
.crumbs { background: var(--soft); border-bottom: 1px solid var(--line); font-size: 15px; }
.crumbs .wrap { padding-top: 10px; padding-bottom: 10px; }
.crumbs a { text-decoration: none; }
.yh { font-size: 22px; margin: 26px 0 12px; }
.tlist { display: flex; flex-wrap: wrap; gap: 10px; }
.tlist a { text-decoration: none; background: #fff; border: 2px solid var(--line); border-radius: 99px; padding: 8px 16px; font-weight: 700; color: var(--navy); }
.tlist a:hover { border-color: var(--teal); }
.phero .chip { margin: 0 0 10px; }
/* Site check 27 Nov: on a phone the exam and subject pages skip the big mascot, so the question counts and "Om provet" are on the first screen */
@media (max-width: 560px) { .bhero > .wrap > img { display: none; } .bhero { padding-bottom: 28px; } }

/* ---------- Batch C+ (25 Nov 2026): premium glossy 3D exam-board cards ---------- */
.boardsec { position: relative; overflow: hidden; background: radial-gradient(ellipse at 15% 0%, #E6F4FF 0%, rgba(230,244,255,0) 55%), radial-gradient(ellipse at 90% 100%, #EAFBF4 0%, rgba(234,251,244,0) 50%), #F7FAFD; padding-bottom: 64px; }
.boardsec .bub { position: absolute; bottom: -60px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.95) 0 10%, rgba(127,214,232,.45) 45%, rgba(19,168,158,.15) 100%); box-shadow: inset -4px -6px 12px rgba(11,37,69,.12); animation: bubrise linear infinite; opacity: .7; }
@keyframes bubrise { 0% { transform: translateY(0) translateX(0); opacity: 0; } 10% { opacity: .7; } 50% { transform: translateY(-50vh) translateX(18px); } 100% { transform: translateY(-110vh) translateX(-12px); opacity: 0; } }
.boards3d { position: relative; z-index: 1; perspective: 1200px; gap: 26px; }
.b3d { --c1: #E9F6FF; --c2: #CFE8FB; --edge: #9CC3E4; --ink2: #0B4F7A; --orb1: #4FB3FF; --orb2: #0B5FA5;
  position: relative; overflow: hidden; isolation: isolate; border: 0 !important; border-radius: 28px; padding: 24px 24px 22px;
  background: linear-gradient(165deg, #FFFFFF 0%, var(--c1) 48%, var(--c2) 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.95), inset 0 -3px 0 rgba(11,37,69,.06), 0 9px 0 var(--edge), 0 22px 34px rgba(11,37,69,.16);
  transform-style: preserve-3d; transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; animation: brise .7s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d, 0ms); }
.b3d:hover, .b3d:focus-visible { --ty: -6px; box-shadow: inset 0 2px 0 rgba(255,255,255,.95), inset 0 -3px 0 rgba(11,37,69,.06), 0 13px 0 var(--edge), 0 34px 48px rgba(11,37,69,.22); color: var(--ink); }
.b3d:active { --ty: 2px; box-shadow: inset 0 2px 0 rgba(255,255,255,.95), 0 4px 0 var(--edge), 0 10px 18px rgba(11,37,69,.16); }
@keyframes brise { from { opacity: 0; transform: perspective(1200px) translateY(28px) rotateX(10deg); } to { opacity: 1; } }
.b3d::before { content: ""; position: absolute; z-index: -1; right: -60px; top: -70px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.85) 0%, rgba(255,255,255,0) 65%); }
.b3d .bshine { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.75) 48%, rgba(255,255,255,0) 60%); transform: translateX(-120%); }
.b3d:hover .bshine, .b3d:focus-visible .bshine { animation: bsheen 1s ease forwards; }
@keyframes bsheen { to { transform: translateX(120%); } }
.b3d .btop { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.b3d .borb { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 32% 26%, #fff 0 9%, var(--orb1) 38%, var(--orb2) 100%);
  box-shadow: inset 0 -6px 10px rgba(0,0,0,.22), inset 0 4px 6px rgba(255,255,255,.55), 0 6px 0 rgba(11,37,69,.18), 0 10px 18px rgba(11,37,69,.18);
  animation: bfloat 5s ease-in-out infinite; animation-delay: calc(var(--d, 0ms) * -3); }
.b3d .borb svg { width: 36px; height: 36px; border-radius: 5px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); }
@keyframes bfloat { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-5px) rotate(-4deg); } }
.b3d .bmeta { font-size: 14px; line-height: 1.35; color: var(--ink2); font-weight: 800; letter-spacing: .01em; }
.b3d b { font-size: 27px; color: var(--navy); text-shadow: 0 1px 0 #fff; margin-top: 4px; }
.bpills { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 2px; }
.bpill { font-size: 14px; font-weight: 800; color: var(--ink2); padding: 4px 11px; border-radius: 99px; background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.55) 100%); box-shadow: inset 0 1px 0 #fff, 0 2px 0 rgba(11,37,69,.12), 0 3px 8px rgba(11,37,69,.08); border: 1px solid rgba(255,255,255,.8); }
.b3d .bblurb { font-size: 16px; color: #3D5872; }
.b3d .bfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.b3d .bgo { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--head); font-weight: 900; font-size: 22px; color: var(--navy);
  background: radial-gradient(circle at 35% 28%, #fff 0 12%, #FFE27A 45%, #F5B800 100%); box-shadow: inset 0 -4px 6px rgba(150,95,0,.3), 0 5px 0 #C99A00, 0 8px 14px rgba(11,37,69,.18); transition: transform .25s; }
.b3d:hover .bgo { transform: translateX(4px) scale(1.06); }
.b3d .chip { box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 2px 0 rgba(11,37,69,.12); padding: 6px 14px; font-size: 14px; }
.b3d .chip.ok { background: linear-gradient(180deg, #E8FFF6, #BDF0DC); color: #075E4C; }
.b3d .chip.ok::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #16B37E; margin-right: 7px; vertical-align: 1px; box-shadow: 0 0 0 0 rgba(22,179,126,.6); animation: bpulse 1.8s infinite; }
@keyframes bpulse { 0% { box-shadow: 0 0 0 0 rgba(22,179,126,.55); } 70% { box-shadow: 0 0 0 9px rgba(22,179,126,0); } 100% { box-shadow: 0 0 0 0 rgba(22,179,126,0); } }
.b3d .chip.soon { background: linear-gradient(180deg, #FFF8DD, #FFE7A1); color: #6E4E00; }
.b3d .chip.ask { background: linear-gradient(180deg, #F0F4FF, #D9E3FF); color: #2C4BA8; }
.b3d .bcount { font-size: 15px; font-weight: 800; color: var(--ink2); margin-top: 2px; }
.b3d.th-nationella-prov { --c1: #EAF6FF; --c2: #CBE6FF; --edge: #7FB3E0; --ink2: #0A4C82; --orb1: #3E9BEB; --orb2: #0A4C82; }
.b3d.th-tavlingar { --c1: #F4EEFF; --c2: #E0D2FF; --edge: #B39DEA; --ink2: #4B2A9A; --orb1: #9B7BFF; --orb2: #4B2A9A; }
.b3d.th-junior-cycle { --c1: #ECFBF2; --c2: #CDEFD9; --edge: #8ED0A6; --ink2: #136B3C; --orb1: #4CC77F; --orb2: #136B3C; }
.b3d.th-cambridge { --c1: #FFF1EC; --c2: #FFD9CC; --edge: #E9A992; --ink2: #8A2E14; --orb1: #FF8A65; --orb2: #A3341A; }
.b3d.th-ask { --c1: #F5F8FC; --c2: #E4ECF6; --edge: #B9C8DA; --ink2: #36506B; --orb1: #8EA7C4; --orb2: #36506B; }
.b3d.open { outline: 3px solid rgba(19,168,158,.0); }
.b3d.open::after { content: ""; position: absolute; inset: 0; border-radius: 28px; padding: 3px; z-index: 3; pointer-events: none;
  background: conic-gradient(from var(--ang, 0deg), #13A89E, #4FB3FF, #FFD23F, #13A89E); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: bspin 6s linear infinite; }
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes bspin { to { --ang: 360deg; } }
@media (prefers-reduced-motion: reduce) { .b3d, .b3d .borb, .b3d .chip.ok::before, .b3d.open::after, .boardsec .bub { animation: none !important; } .b3d { transform: none !important; } }
.b3d.ask { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px 22px; padding: 20px 26px; }
.b3d.ask .btop { margin: 0; grid-row: 1 / span 2; }
.b3d.ask .btop .bmeta { display: none; }
.b3d.ask b { margin: 0; font-size: 24px; }
.b3d.ask .bblurb { grid-column: 2; }
.b3d.ask .bfoot { grid-column: 3; grid-row: 1 / span 2; margin: 0; gap: 14px; }
@media (max-width: 640px) { .b3d.ask { grid-template-columns: auto 1fr; } .b3d.ask .bfoot { grid-column: 1 / -1; grid-row: auto; } }
/* ---------- Batch D: parent panel ---------- */
.pnlogin { max-width: 560px; }
.pform { display: grid; gap: 14px; cursor: default; }
.pform:hover { --ty: 0px; }
.kids { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 26px; }
.kid { cursor: default; gap: 10px; display: flex; flex-direction: column; }
.kid:hover { --ty: -3px; }
.kidhead { display: flex; align-items: center; gap: 14px; }
.kid .borb { color: #fff; font-family: var(--head); font-weight: 900; font-size: 26px; text-shadow: 0 2px 2px rgba(0,0,0,.3); }
.kidname { flex: 1; min-width: 0; display: grid; gap: 4px; }
.kidname .plabel { display: grid; gap: 4px; font-size: 13px; font-weight: 800; color: var(--ink2, #0A4C82); }
.kidname input { font: inherit; font-family: var(--head); font-weight: 900; font-size: 22px; padding: 6px 10px; border-radius: 12px; border: 2px solid rgba(11,37,69,.12); background: rgba(255,255,255,.8); width: 100%; }
.kidname small { color: #3D5872; font-weight: 700; }
.kidtiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.kt { background: linear-gradient(180deg, #fff, rgba(255,255,255,.6)); border-radius: 16px; padding: 10px 12px; box-shadow: inset 0 1px 0 #fff, 0 3px 0 rgba(11,37,69,.1); }
.kt b { display: block; font-family: var(--head); font-weight: 900; font-size: 22px; color: var(--navy); }
.kt span { font-size: 13px; color: #3D5872; font-weight: 700; }
.kid h3 { font-size: 19px; margin: 8px 0 0; }
.kplan { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 6px 10px; background: rgba(255,255,255,.7); border-radius: 14px; padding: 10px 12px; }
.kplan b { font-family: var(--head); font-weight: 900; font-size: 16px; }
.kplan .kgoal { font-weight: 900; color: #fff; background: linear-gradient(180deg, #2C6FB4, #0B2545); border-radius: 99px; padding: 2px 10px; font-size: 14px; }
.kplan .kdate { font-size: 14px; font-weight: 700; color: #3D5872; }
.kplan .meter, .kplan small { grid-column: 1 / -1; }
.kplan .meter { height: 12px; border-radius: 99px; background: #E3ECF3; overflow: hidden; }
.kplan .meter span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #13A89E, #4FB3FF); }
.kplan small { font-size: 13px; color: #3D5872; }
.kweak { background: linear-gradient(180deg, #FFF8E6, #FFEFC2); border-radius: 14px; padding: 10px 12px; display: grid; gap: 2px; }
.kweak b { font-size: 15px; } .kweak span { font-size: 14px; color: #5C4A10; }
.pmuted { color: #3D5872; font-size: 15px; margin: 0; }
.pfoot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.pfoot #pValid { font-weight: 800; color: var(--navy); margin-right: auto; }
[hidden] { display: none !important; }

.b3d.th-ib { --c1: #EEF2FF; --c2: #D6DEFF; --edge: #9DAEEA; --ink2: #23308A; --orb1: #6F86FF; --orb2: #23308A; }
@media (min-width: 1000px) {
  .boards3d { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .boards3d .b3d.open { grid-column: span 2; }
  .boards3d .b3d.ask { grid-column: span 2; } /* 2 Dec 2026: fills the last row next to the fifth board */
  .boards3d .b3d.open b { font-size: 34px; }
  .boards3d .b3d.open .bblurb { font-size: 18px; max-width: 46ch; }
}
/* Batch D: parent panel try-it example */
.pdemo{margin:0 0 18px;padding:12px 16px;border-radius:14px;background:linear-gradient(135deg,#fff7d6,#ffe9a8);border:1px solid #f1c94b;color:#4a3800;font-weight:600;box-shadow:0 6px 18px rgba(160,120,0,.15)}
/* Parent panel: plan charts and the parent's plan editor (25 Nov) */
.kplan .kcharts{grid-column:1/-1;display:grid;align-items:start;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:12px}
.kplan .kacts{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px}
.kplan .kacts .btn{padding:8px 16px;font-size:14px}
.kplan .kby{grid-column:1/-1;font-size:12px;font-weight:700;color:#7A4B00;background:linear-gradient(135deg,#FFF4CC,#FFE08A);border-radius:99px;padding:3px 10px;box-shadow:0 2px 0 #E9C46A;justify-self:start}
.kedit{margin:14px 0 4px;border-radius:16px;background:rgba(255,255,255,.7);box-shadow:inset 0 0 0 1px #D6E4F2;padding:10px 14px}
.kedit summary{cursor:pointer;font-weight:700;color:#0B2545}
.keform{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr));gap:10px;align-items:end;margin-top:10px}
.keform select,.keform input{width:100%;min-width:0;padding:10px;border-radius:12px;border:1px solid #C8D8E8;font:inherit;background:#fff}
.kmsg{margin:6px 0 0;font-size:14px;color:#33475B}.kmsg.ok{color:#0F7B4A;font-weight:600}
/* With the charts each child gets the full width; the two charts sit side by side on a wide screen */
.kids { grid-template-columns: 1fr; }
.kid .kidtiles { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
/* Batch E: buy page and thank-you page */
.pplans { border: 0; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 14px; }
.pplans legend { font-weight: 800; color: #0B2545; margin-bottom: 10px; font-size: 17px; }
.pplan { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 16px; border-radius: 22px; cursor: pointer; background: linear-gradient(165deg, #FFFFFF 0%, #EEF7FF 60%, #DDEEFC 100%); box-shadow: inset 0 2px 0 #fff, 0 6px 0 #A9CBE8, 0 14px 24px rgba(11,37,69,.12); transition: transform .15s ease, box-shadow .15s ease; overflow: hidden; }
.pplan input { position: absolute; opacity: 0; pointer-events: none; }
.pplan b { font-family: var(--head); font-size: 20px; color: #0B2545; }
.pplan .amt { font-size: 22px; font-weight: 900; color: #1E3A8A; }
.pplan ul { margin: 4px 0 0; }
.pplan .ppay { font-size: 13px; color: #3D5872; font-weight: 700; margin-top: auto; }
.pplan .tag { align-self: flex-start; font-size: 12px; font-weight: 800; color: #7A4B00; background: linear-gradient(135deg, #FFF4CC, #FFE08A); border-radius: 99px; padding: 3px 10px; box-shadow: 0 2px 0 #E9C46A; }
.pplan:hover { transform: translateY(-2px); }
.pplan.on { background: linear-gradient(165deg, #0B2545 0%, #1E4E8C 100%); box-shadow: inset 0 2px 0 rgba(255,255,255,.25), 0 6px 0 #061629, 0 16px 28px rgba(11,37,69,.3); }
.pplan.on b, .pplan.on .amt, .pplan.on .ppay, .pplan.on li { color: #fff; }
.pplan:focus-within { outline: 3px solid #FFC83D; outline-offset: 3px; }
.ptotal { font-weight: 800; color: #0B2545; font-size: 17px; margin: 4px 0 14px; min-height: 1.4em; }
.pconsent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; margin: 12px 0; color: #22384D; }
.pconsent input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: #1E6FE0; }
.ptest { padding: 12px 16px; border-radius: 14px; background: linear-gradient(135deg, #FFF4CC, #FFE08A); color: #5A3D00; font-weight: 700; box-shadow: 0 3px 0 #E9C46A; }
.pclosed { text-align: center; padding: 24px; border-radius: 22px; background: #fff; box-shadow: 0 6px 0 #C9DDF2; }
.btn.big { font-size: 19px; padding: 15px 30px; }
.bhelp { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.bhelp form { position: relative; padding: 20px; border-radius: 22px; }
.bhelp h2 { font-size: 20px; margin: 0 0 6px; }
.cmsg { margin: 8px 0 0; font-size: 14px; color: #0F5132; font-weight: 600; min-height: 1em; }
.tcodes { display: grid; gap: 14px; }
.tcode { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 14px; padding: 18px 20px; border-radius: 22px; overflow: hidden; }
.tcode .tlab { grid-column: 1 / -1; font-size: 14px; font-weight: 700; color: #3D5872; }
.tcode .tval { font-family: Consolas, 'Courier New', monospace; font-size: clamp(22px, 6vw, 32px); letter-spacing: 2px; color: #0B2545; word-break: break-all; }
.tsteps { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.tsteps .fine { flex-basis: 100%; }
.twait { padding: 20px; text-align: center; font-weight: 700; color: #3D5872; }

/* ---------- 26 Nov 2026: calm start page, product tour, one menu button on small screens ---------- */
/* Menu: a single "Meny" button below 980 px (like the practice app); the links open as a glossy panel. */
.top { position: relative; z-index: 20; }
.menubtn { display: none; align-items: center; gap: 10px; font: inherit; font-family: var(--head); font-weight: 900; font-size: 16px; color: #fff; cursor: pointer;
  min-height: 44px; padding: 8px 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,.35); background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.06)); box-shadow: 0 4px 0 rgba(0,0,0,.35); }
.menubtn .mb { display: grid; gap: 4px; } .menubtn .mb i { display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff; transition: transform .2s, opacity .2s; }
.top.open .menubtn .mb i:nth-child(1) { transform: translateY(6px) rotate(45deg); } .top.open .menubtn .mb i:nth-child(2) { opacity: 0; } .top.open .menubtn .mb i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.langbtn { text-decoration: none; border: 1px solid rgba(255,255,255,.35); border-radius: 10px; padding: 4px 12px; color: #DDEBF7; }
.langbtn:hover { color: var(--sun); border-color: var(--sun); }
@media (max-width: 980px) {
  .top .wrap { flex-wrap: nowrap; gap: 12px; }
  .top .brand { margin-right: auto; }
  .top .btn.small { order: 2; padding: 9px 14px; }
  .menubtn { display: inline-flex; order: 3; }
  .top .menu { display: none; position: absolute; left: 12px; right: 12px; top: calc(100% - 4px); order: 4; margin: 0; flex-direction: column; gap: 2px; padding: 10px;
    border-radius: 20px; background: linear-gradient(180deg, #12335c 0%, #0B2545 100%); box-shadow: 0 24px 48px rgba(7,26,51,.45), inset 0 1px 0 rgba(255,255,255,.12); width: auto; }
  .top.open .menu { display: flex; }
  .top .menu a { font-size: 19px; padding: 12px 14px; border-radius: 12px; }
  .top .menu a:hover, .top .menu a[aria-current="page"] { background: rgba(255,255,255,.08); }
  .top .langbtn { align-self: flex-start; margin: 8px 14px 4px; }
}
@media (max-width: 430px) { .top .brand { font-size: 19px; } .top .brand img { width: 34px; height: 34px; } .top .btn.small { font-size: 15px; padding: 8px 12px; } .menubtn { padding: 8px 12px; } .menubtn > span:last-child { display: none; } }

/* Hero: one line of live numbers instead of three boxes, and a floating result card next to the mascot */
.hero .note { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; }
.hero .note b { color: #fff; font-weight: 800; }
.hero .note > *:not(:last-child)::after { content: '·'; margin-left: 18px; color: #6F8FAE; }
.hero .lead { max-width: 600px; }
.hcard { position: absolute; z-index: 3; left: 0; bottom: 18px; display: grid; gap: 8px; padding: 16px 20px; border-radius: 20px; color: var(--navy); transform: rotate(-3deg);
  background: linear-gradient(180deg, #FFFFFF 0%, #EEF5FB 100%); box-shadow: 0 22px 44px rgba(0,0,0,.35), 0 5px 0 #C3D3E0, inset 0 1px 0 #fff; animation: bob 6s ease-in-out infinite; animation-delay: -2s; }
.hcard b { font-family: var(--head); font-weight: 900; font-size: 20px; }
.hcard small { font-size: 14px; color: var(--muted); max-width: 230px; }
.dlad { display: flex; gap: 6px; }
.dlad span { padding: 3px 12px; border-radius: 99px; font-weight: 800; font-size: 15px; background: #EEF2F6; color: var(--muted); box-shadow: 0 2px 0 rgba(11,37,69,.12); }
.dlad .ok { background: linear-gradient(180deg, #E8FBF8, #BFEDE6); color: #0B6B58; }
.dlad .nx { background: linear-gradient(180deg, #FFF6C2, #FFD23F); color: var(--navy); }

/* Product tour: text and a real-looking piece of the product side by side, alternating */
.toursec { padding-top: 64px; }
.toursec h2, .toursec > .wrap > .sub { text-align: center; }
.tour { display: grid; gap: 64px; margin-top: 28px; }
.trow { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.trow.flip .ttext { order: 2; }
.ttext .tk { margin: 0 0 8px; font-weight: 800; color: #0b7d75; text-transform: none; } /* 27 Nov: darker teal, contrast 5:1 on white */
.ttext h2, .ttext h3 { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 12px; }
.ttext > p { margin: 0; color: var(--muted); }
.ttext .ticks { margin-top: 14px; }
.ttext .ticks li { font-size: 17px; }
.demo { position: relative; border-radius: 26px; padding: 24px 26px; background: linear-gradient(180deg, #FFFFFF 0%, #F2F7FB 100%); border: 1px solid #E3ECF3;
  box-shadow: 0 26px 50px rgba(11,37,69,.14), 0 6px 0 #DCE7EF, inset 0 1px 0 #fff; }
.demo .dk { margin: 0 0 8px; font-size: 14px; font-weight: 800; color: var(--link); }
.dans .dq { margin: 0 0 14px; font-family: var(--head); font-weight: 800; font-size: 20px; line-height: 1.3; }
.dyour { display: grid; gap: 4px; padding: 14px 16px; border-radius: 16px; background: #fff; border: 2px solid var(--line); }
.dyour small { font-size: 14px; font-weight: 800; color: var(--muted); }
.dyour span { font-size: 17px; }
.dres { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding: 14px 16px; border-radius: 16px; color: #fff;
  background: linear-gradient(160deg, #1B4A7A 0%, #0B2545 70%); box-shadow: inset 0 1px 0 rgba(255,255,255,.14); }
.dres b { font-family: var(--head); font-weight: 900; font-size: 22px; }
.dnext { margin: 12px 0 0; font-size: 16px; color: var(--muted); }
.dnext b { color: var(--navy); }
.tcharts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; border-radius: 26px; padding: 18px; background: linear-gradient(180deg, #FFFFFF 0%, #F2F7FB 100%); border: 1px solid #E3ECF3;
  box-shadow: 0 26px 50px rgba(11,37,69,.14), 0 6px 0 #DCE7EF; min-height: 260px; }
.tcharts .npchart { margin: 0; }
.dpan { display: grid; gap: 10px; }
.dkid { display: grid; grid-template-columns: 42px 1fr 64px; grid-template-rows: auto auto; align-items: center; gap: 2px 12px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.dav { grid-row: 1 / 3; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: var(--head); font-weight: 900; color: var(--navy);
  background: radial-gradient(circle at 32% 28%, #fff 0 9%, #9BE7E0 40%, #13A89E 100%); box-shadow: inset -3px -4px 8px rgba(0,0,0,.15); }
.dkid:nth-child(3) .dav { background: radial-gradient(circle at 32% 28%, #fff 0 9%, #FFE28A 40%, #D99A00 100%); }
.dkid:nth-child(4) .dav { background: radial-gradient(circle at 32% 28%, #fff 0 9%, #A9C8FF 40%, #2F5FBF 100%); }
.dkt { display: flex; flex-wrap: wrap; gap: 0 10px; align-items: baseline; font-size: 15px; color: var(--muted); }
.dkt b { font-family: var(--head); font-size: 18px; color: var(--navy); }
.dbar { grid-column: 2; height: 10px; border-radius: 6px; background: #E6ECF4; overflow: hidden; }
.dbar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(180deg, #4FD1C5, #0B8F86); }
.dpc { grid-column: 3; grid-row: 1 / 3; text-align: right; font-family: var(--head); font-weight: 900; font-size: 18px; }
.dkid small { display: none; }
.dfoot { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.also { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 8px 0 0; padding: 0; }
.also li { padding: 8px 16px; border-radius: 99px; font-weight: 700; font-size: 16px; color: var(--navy); background: linear-gradient(180deg, #FFFFFF, #EAF1F7); border: 1px solid #DCE7EF; box-shadow: 0 3px 0 #DCE7EF; }

/* Choose your exam: the open board as one header, its years and subjects, and one slim "coming soon" row */
.offer h2 { margin-bottom: 18px; }
.board.nph { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 16px; padding: 16px 22px; margin-bottom: 20px; border-radius: 22px; flex-direction: row; }
.board.nph .borb { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: #fff; box-shadow: 0 4px 10px rgba(11,37,69,.12); }
.board.nph .borb svg { width: 36px; }
.board.nph b { font-size: 24px; display: block; }
.board.nph .chip { align-self: center; }
.soonrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.soonrow > b { font-family: var(--head); font-weight: 900; margin-right: 4px; }
.board.soonb { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 99px; border: 1px solid var(--line); font-weight: 700; font-size: 16px; box-shadow: 0 3px 0 #E3ECF3; }
.board.soonb .borb { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); overflow: hidden; }
.board.soonb .borb svg { width: 20px; height: 20px; }
.soonask { font-weight: 700; }

/* Prices: four cards in one row and schools as a bar */
.prices { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1060px) { .prices { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .prices { grid-template-columns: 1fr; } }
.swipehint { display: none; margin: 2px 0 0; font-size: 14px; font-weight: 700; color: var(--muted); text-align: right; }
.schoolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 18px; padding: 18px 22px; border-radius: 22px; background: linear-gradient(180deg, #F6F9FF, #E6EEFA); border: 1px solid #DCE5F3; }
.schoolbar b { font-family: var(--head); font-weight: 900; font-size: 22px; }
.schoolbar span { flex: 1 1 380px; color: var(--muted); }
.narrow2 > .wrap { max-width: 900px; }
.ready .sub { margin: -6px 0 20px; color: var(--muted); }

@media (max-width: 900px) {
  .trow, .trow.flip { grid-template-columns: 1fr; gap: 24px; }
  .trow.flip .ttext { order: 0; }
  .tour { gap: 48px; }
  .board.nph { grid-template-columns: auto 1fr; }
  .board.nph .bcount, .board.nph .chip { grid-column: 2; }
}
@media (max-width: 760px) {
  .hero .inner { padding-bottom: 120px; gap: 10px; }
  .stage { min-height: 250px; flex-basis: 100%; }
  .mascot { width: 200px; height: 200px; margin: -100px 0 0 -10px; left: 50%; }
  .mascot img { width: 180px; height: 180px; }
  .hcard { left: 0; bottom: 10px; padding: 12px 14px; }
  .hcard b { font-size: 17px; }
  .tcharts { grid-template-columns: 1fr; }
  .demo { padding: 18px; }
  .toursec { padding-top: 44px; }
}
@media (prefers-reduced-motion: reduce) { .hcard { animation: none; } .menubtn .mb i { transition: none; } }
/* 26 Nov (after the first screenshots): mascot and result card side by side; phone: cards swipe sideways, compact doors, 2-column footer */
.stage { min-height: 400px; }
.mascot { left: auto; right: 0; top: 46%; margin: -150px 0 0 0; }
.hcard { left: 0; bottom: 34px; }
@media (max-width: 760px) {
  .hero .inner { padding-bottom: 116px; }
  .stage { min-height: 190px; margin-top: 6px; }
  .mascot { width: 170px; height: 170px; right: -6px; top: 50%; margin: -85px 0 0 0; left: auto; }
  .mascot img { width: 160px; height: 160px; }
  .hcard { left: 0; bottom: 20px; }
  .door { min-height: 0; padding: 20px 22px; }
  .door::after { width: 42px; height: 42px; right: 18px; top: 18px; }
  .prices { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding: 16px 4px 14px; margin: 0 -28px; padding-left: 28px; padding-right: 28px; scroll-padding-left: 28px; }
  .prices .price { flex: 0 0 78%; scroll-snap-align: start; }
  .swipehint { display: block; }
  .foot .fcols { grid-template-columns: 1fr 1fr; }
  .foot .fcols > .fcol:first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .foot .fcols { grid-template-columns: 1fr 1fr; } }
.hero .stage { flex: 1 1 420px; min-height: 420px; }
.hero .mascot { top: 38%; right: 10px; }
.hero .hcard { left: 0; bottom: 6px; }
@media (max-width: 760px) {
  .hero .stage { flex-basis: 100%; min-height: 180px; }
  .hero .hcard { display: none; }
  .hero .mascot { left: 50%; right: auto; top: 50%; margin: -85px 0 0 -85px; }
}

/* 26 Nov: full rows only – the grid follows the number of cards (3 → 3, 4 → 4, 5 → 3 + 2, 6 → 3 + 3) */
@media (min-width: 900px) {
  .cards:has(> :nth-child(3):last-child), .cards:has(> :nth-child(6):last-child), .feats:has(> :nth-child(6):last-child), .feats:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
  .cards:has(> :nth-child(4):last-child), .steps:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); }
  .cards:has(> :nth-child(5):last-child) { grid-template-columns: repeat(6, 1fr); }
  .cards:has(> :nth-child(5):last-child) > * { grid-column: span 2; }
  .cards:has(> :nth-child(5):last-child) > :nth-child(n+4) { grid-column: span 3; }
  .cards:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 561px) and (max-width: 899px) {
  .cards, .feats, .steps { grid-template-columns: repeat(2, 1fr); }
  .cards > :last-child:nth-child(odd), .feats > :last-child:nth-child(odd), .steps > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
/* hero: two buttons, the other ways in as small links */
.hlinks { display: flex; flex-wrap: wrap; gap: 6px 22px; flex-basis: 100%; margin-top: 4px; font-weight: 700; font-size: 17px; }
.hlinks a { text-decoration: none; }
.hlinks a:hover { text-decoration: underline; }
/* teacher panel example */
.dtcols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
.dth { display: block; font-family: var(--head); font-weight: 900; font-size: 16px; margin-bottom: 8px; }
.dta { display: grid; grid-template-columns: 1fr 54px; gap: 4px 10px; align-items: center; margin-bottom: 10px; font-size: 15px; }
.dta .dbar { grid-column: 1; height: 9px; } .dta .dpc { grid-column: 2; grid-row: 1 / 3; font-size: 16px; }
.dbar.low i { background: linear-gradient(180deg, #FFD36B, #D98E04); }
.dtr { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); margin-bottom: 6px; }
.dtr code { font-size: 14px; color: var(--muted); }
.dlv { min-width: 34px; text-align: center; font-weight: 900; border-radius: 99px; padding: 1px 8px; font-size: 14px; }
.dlv.ok { background: linear-gradient(180deg, #E8FBF8, #BFEDE6); color: #0B6B58; } .dlv.mid { background: linear-gradient(180deg, #FFF6C2, #FFD23F); color: var(--navy); } .dlv.no { background: #EEF2F6; color: var(--muted); }
@media (max-width: 560px) { .dtcols { grid-template-columns: 1fr; } }
/* parent panel login: the box and a preview side by side */
.plogwrap { display: grid; grid-template-columns: minmax(300px, 420px) 1fr; gap: 40px; align-items: start; }
.plogwrap[hidden] { display: none; }
.plogwrap .pnlogin { max-width: none; }
@media (max-width: 860px) { .plogwrap { grid-template-columns: 1fr; } }
/* buy page: the two help boxes the same height and padding */
.bhelp { align-items: stretch; }
.bhelp > div { position: relative; padding: 20px; border-radius: 22px; }
.bhelp h2 { margin-top: 0; }
/* 26 Nov: optional child names (parent page) – closed by default, warning first */
.pnamebar { display: grid; gap: 8px; margin: 0 0 14px; justify-items: start; }
.pnamewarn { background: #FFF4E5; border: 1px solid #F5C27A; color: #6B3B00; padding: 12px 14px; border-radius: 14px; display: grid; gap: 8px; justify-items: start; max-width: 680px; }
.pnamewarn p { margin: 0; }
.pnamenote { margin: 0; background: #FFF4E5; border: 1px solid #F5C27A; color: #6B3B00; padding: 8px 12px; border-radius: 12px; font-size: 14px; }
.kidname .kidtitle { font-family: var(--head); font-weight: 900; font-size: 22px; }
.kidname input.bad { border-color: #d64545; background: #fff3f3; }

/* 27 Nov: exam guide on subject pages */
.gfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 8px; }
@media (max-width: 560px) { .gfacts { grid-template-columns: 1fr 1fr; gap: 8px; } .gfacts > div { padding: 10px 12px; } .gfacts b { font-size: 15px; } .gfacts .gl { font-size: 13px; } .gfacts > div:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.gfacts > div { background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 14px 16px; box-shadow: 0 3px 0 var(--line); }
.gfacts .gl { display: block; font-size: 14px; color: var(--muted); font-weight: 700; margin-bottom: 2px; }
.gfacts b { font-family: var(--head); font-size: 17px; color: var(--navy); line-height: 1.3; }
.faq.guide p { color: var(--ink, #1d2b3a); }
.faq.guide .gsrc { font-size: 14px; color: var(--muted); }
.faq.guide .gsrc a { color: #0b7d75; }
.gchk { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.gfacts .gcd { display: inline-block; margin-top: 6px; background: #fff4c2; color: #7a5200; border-radius: 99px; padding: 2px 10px; font-size: 13px; font-weight: 800; }
.gfacts .gcd[hidden] { display: none; }
.faq.guide .gbtn { margin: 4px 0 12px; }

/* Site check 27 Nov: text for screen readers only (a heading the page needs for its order) */
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* 29 Nov 2026: /kop from a Buy button – only the chosen plan, with a "Change plan" button */
.pplans.chosen { grid-template-columns: minmax(0, 360px) auto; align-items: center; }
.pplans.chosen .pplan:not(.on) { display: none; }
.pplans .pchange { justify-self: start; }
@media (max-width: 560px) { .pplans.chosen { grid-template-columns: 1fr; } }
/* 2 Dec 2026: IB MYP guide parts as bullet points */
.guide .glist { margin: .4em 0 .7em; padding-left: 1.25em; }
.guide .glist li { margin: .35em 0; line-height: 1.5; }
/* 2 Dec 2026: calm home page – one grid of features, each one line and one link (owner) */
.featsec h2 { text-align: center; }
.feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 18px; }
@media (min-width: 900px) { .feats { grid-template-columns: repeat(3, minmax(0, 1fr)); } } /* nine features = three full rows */
.feat { display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto auto; column-gap: 14px; row-gap: 2px; align-items: start; text-decoration: none; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: 0 5px 0 #DCE7EF; transition: transform .15s, border-color .15s; }
.feat:hover, .feat:focus-visible { transform: translateY(-2px); border-color: var(--teal); color: var(--ink); }
.feat .fic { grid-row: 1 / span 3; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--soft); }
.feat b { font-size: 17px; line-height: 1.25; } .feat span:not(.fic) { color: var(--muted); font-size: 15px; line-height: 1.4; }
.feat em { font-style: normal; font-weight: 700; color: #0b7d75; font-size: 14px; margin-top: 6px; }
.pricebar { background: var(--soft); padding: 34px 0; } .pricebar .wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; }
.pricebar h2 { margin: 0 0 4px; } .pricebar p { margin: 0; color: var(--muted); } .pricebar .row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (prefers-reduced-motion: reduce) { .feat { transition: none; } }
@media (max-width: 600px) { /* phones: two columns, title + link only, so the list stays short */
  .feats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .feat { grid-template-columns: 1fr; padding: 14px; row-gap: 6px; }
  .feat .fic { grid-row: auto; width: 40px; height: 40px; font-size: 20px; }
  .feat b { font-size: 15px; } .feat span:not(.fic) { display: none; } .feat em { margin-top: 0; font-size: 14px; }
  .feat:last-child:nth-child(odd) { grid-column: span 2; }
}
/* 2 Dec 2026: home – small exam chips that lead to the library (owner: no big exam cards on the home page) */
.examstrip h2 { text-align: center; }
.exchips { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 16px; }
.exchip { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: center; text-decoration: none; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.exchip .xi { grid-row: 1 / span 2; font-size: 26px; text-align: center; } .exchip b { font-size: 16px; } .exchip span:not(.xi) { color: var(--muted); font-size: 14px; }
.exchip.open { border-color: var(--teal); } .exchip.open:hover { transform: translateY(-1px); color: var(--ink); } .exchip.soon { background: var(--soft); border-style: dashed; }
.exgo { text-align: center; margin: 20px 0 0; }
/* the library */
.libbar { display: grid; gap: 12px; background: #fff; border: 2px solid var(--line); border-radius: 20px; padding: 14px; position: sticky; top: 8px; z-index: 5; box-shadow: 0 8px 24px rgba(7,41,74,.08); }
.libtabs, .libyears { display: flex; flex-wrap: wrap; gap: 8px; }
.libchip { font: inherit; font-weight: 700; font-size: 15px; border: 2px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 7px 14px; cursor: pointer; min-height: 40px; }
.libtabs .libchip { font-size: 16px; } .libchip.on { background: var(--navy); border-color: var(--navy); color: #fff; } .libchip:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.libsearch input { width: 100%; font: inherit; font-size: 16px; border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.libcount { color: var(--muted); font-weight: 700; margin: 14px 2px 0; }
.libyear { margin: 26px 0 10px; font-size: 22px; }
.libgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.libcard { background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.libhead h3 { margin: 0; font-size: 18px; } .libhead p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.libact { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; } .liblink { font-weight: 700; font-size: 14px; color: #0b7d75; }
.libtog { font: inherit; font-size: 14px; font-weight: 700; color: var(--navy); background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; margin-left: auto; }
.libtopics { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.libtopics a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 15px; }
.libtopics a:hover { color: #0b7d75; } .libtopics small { color: var(--muted); white-space: nowrap; }
.libnone { font-weight: 700; margin-top: 18px; } .libsoon { margin-top: 22px; } .libyears[hidden] { display: none; }

@media (max-width: 640px) {
  .libbar { position: static; padding: 12px; gap: 10px; }
  .libtabs, .libyears { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 0 12px 2px; }
  .libtabs::-webkit-scrollbar, .libyears::-webkit-scrollbar { display: none; }
  .libchip { flex: 0 0 auto; white-space: nowrap; }
}

/* 2 Dec 2026: "Så hjälper vi dig framåt" – drawn example pictures on the start page */
.showsec { background: var(--soft); }
.shows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.show { background: #fff; border: 2px solid var(--line); border-radius: 20px; padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.show h3 { margin: 8px 0 0; font-size: 19px; } .show p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; flex: 1; }
.show a { font-weight: 700; color: var(--link); font-size: 15px; margin-top: 4px; }
.shpic { position: relative; background: var(--sky); border-radius: 14px; padding: 6px; }
.shpic svg { display: block; width: 100%; height: auto; font-family: var(--body); font-weight: 700; }
.shtag { position: absolute; top: -12px; left: 12px; font-size: 14px; font-weight: 700; color: var(--muted); background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 0 9px; line-height: 20px; }
.show { margin-top: 6px; }
.shpic .g { stroke: #C9D6E3; stroke-width: 1.5; stroke-dasharray: 4 4; }
.shpic .ax { fill: var(--muted); font-size: 13px; }
.shpic .ln { fill: none; stroke: var(--teal); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.shpic .dt { fill: #fff; stroke: var(--teal); stroke-width: 3; } .shpic .dn { fill: var(--sun); stroke: var(--navy); stroke-width: 3; }
.shpic .big { fill: var(--navy); font-size: 24px; font-weight: 800; } .shpic .md { fill: var(--navy); font-size: 15px; } .shpic .sm { fill: var(--muted); font-size: 13px; } .shpic .xs { fill: var(--navy); font-size: 12.5px; }
.shpic .cs { fill: #fff; stroke: var(--line); stroke-width: 2; } .shpic .cm { fill: var(--mint); stroke: #BFE6E0; stroke-width: 2; }
.shpic .cp { fill: #FDECF3; stroke: #F6C5D9; stroke-width: 2; } .shpic .cy { fill: var(--cream); stroke: #F5DE8C; stroke-width: 2; }
.shpic .tr { fill: #DCE6F0; } .shpic .fl { fill: var(--teal); } .shpic .flp { fill: #E5578A; }
.shpic .bb { fill: #9FC3E2; } .shpic .bn { fill: var(--sun); stroke: var(--navy); stroke-width: 2; }
.shpic .ar { stroke: var(--navy); stroke-width: 3; fill: none; marker-end: none; } .shpic .ar2 { stroke: var(--navy); stroke-width: 2.5; fill: none; stroke-dasharray: 5 4; }
.shpic .phone { fill: #fff; stroke: var(--navy); stroke-width: 3; }
.shpic .h0 { fill: #E5578A; } .shpic .h1 { fill: #F6A8C4; } .shpic .h2 { fill: #A8DCD5; } .shpic .h3 { fill: var(--teal); }
.shpic .alarm { fill: #FDECF3; stroke: #E5578A; stroke-width: 2; }
.shpic .rt { fill: none; stroke: #DCE6F0; stroke-width: 14; } .shpic .rf { fill: none; stroke: var(--teal); stroke-width: 14; stroke-linecap: round; }
@media (max-width: 900px) { .shows { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .shows { grid-template-columns: 1fr; gap: 14px; } }

/* 2 Dec 2026: feature groups with a picture from the app (start page and /funktioner) */
.fgroups { display: flex; flex-direction: column; gap: 56px; margin-top: 26px; }
.fgroup { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.fgroup.flip .fpic { order: 2; }
.fgroup.mine .ftext { outline: 3px solid var(--sun); outline-offset: 8px; border-radius: 14px; }
.fpic { position: relative; margin: 0; border-radius: 22px; padding: 10px; background: linear-gradient(160deg, #EAF1FA 0%, #DCE9F6 100%); box-shadow: 0 18px 40px rgba(11,37,69,.14); }
.fpic img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: top center; border-radius: 14px; border: 1px solid #D3DFEA; background: #fff; }
.ftag { position: absolute; left: 22px; top: -13px; border: 2px solid var(--line); font-size: 14px; font-weight: 700; color: var(--navy); background: rgba(255,255,255,.92); border-radius: 999px; padding: 2px 10px; }
.ftext h2, .ftext h3 { margin: 0 0 6px; font-size: 28px; line-height: 1.15; }
.fintro { margin: 0 0 16px; color: var(--muted); font-size: 17px; line-height: 1.5; max-width: 46ch; }
.flist { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.flist li { display: flex; gap: 10px; align-items: flex-start; }
.flist .fi { flex: 0 0 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--soft); border: 1px solid var(--line); font-size: 17px; }
.flist b { display: block; font-size: 16px; line-height: 1.25; } .flist li > span:last-child > span { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; }
.fgo { font-weight: 800; color: var(--link); font-size: 16px; }
.fall { text-align: center; margin: 44px 0 0; }
.fjump { position: sticky; top: 0; z-index: 6; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.fjump .wrap { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-top: 10px; padding-bottom: 10px; }
.fjump .wrap::-webkit-scrollbar { display: none; }
.fjump a { flex: 0 0 auto; white-space: nowrap; font-weight: 700; font-size: 15px; color: var(--navy); text-decoration: none; border: 2px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.fjump a:hover, .fjump a:focus-visible { border-color: var(--teal); }
.fpage .fgroup { scroll-margin-top: 70px; }
.fcta { text-align: center; } .fcta .row { justify-content: center; }
@media (max-width: 900px) {
  .fgroup { grid-template-columns: 1fr; gap: 18px; } .fgroup.flip .fpic { order: 0; }
  .fgroups { gap: 44px; }
}
@media (max-width: 560px) {
  .flist { grid-template-columns: 1fr; gap: 10px; } .ftext h2, .ftext h3 { font-size: 24px; } .fpic { padding: 6px; border-radius: 18px; } .ftag { left: 14px; }
}

/* 2 Dec 2026: short start page – one tile per feature group */
.ftiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 24px; }
.ftile { flex: 0 1 calc((100% - 40px) / 3); display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 22px; padding: 10px 10px 18px; box-shadow: 0 6px 0 #DCE7EF; transition: transform .15s, border-color .15s; }
.ftile:hover, .ftile:focus-visible { transform: translateY(-3px); border-color: var(--teal); color: var(--ink); }
.ftile.mine { outline: 3px solid var(--sun); outline-offset: 4px; }
.tpic { display: block; border-radius: 14px; overflow: hidden; background: linear-gradient(160deg, #EAF1FA 0%, #DCE9F6 100%); padding: 6px; margin-bottom: 8px; }
.tpic img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: top center; border-radius: 10px; border: 1px solid #D3DFEA; background: #fff; }
.ftile b { font-family: var(--head); font-weight: 900; font-size: 20px; padding: 0 8px; }
.ftile > span:not(.tpic) { color: var(--muted); font-size: 15px; line-height: 1.45; padding: 0 8px; flex: 1; }
.ftile em { font-style: normal; font-weight: 800; color: var(--link); font-size: 15px; padding: 4px 8px 0; }
@media (max-width: 900px) { .ftile { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 560px) { .ftiles { gap: 14px; } .ftile { flex-basis: 100%; } .ftile b { font-size: 19px; } }
@media (prefers-reduced-motion: reduce) { .ftile { transition: none; } .ftile:hover { transform: none; } }
.showsec h2 { text-align: center; }
@media (max-width: 560px) {
  .ftile { display: grid; grid-template-columns: 112px 1fr; grid-template-rows: auto auto auto; column-gap: 12px; row-gap: 2px; padding: 8px 10px 8px 8px; align-items: start; }
  .tpic { grid-row: 1 / span 3; margin: 0; padding: 3px; border-radius: 12px; align-self: center; }
  .tpic img { border-radius: 9px; }
  .ftile b, .ftile > span:not(.tpic), .ftile em { padding: 0; } .ftile b { font-size: 18px; margin-top: 4px; } .ftile > span:not(.tpic) { font-size: 14px; } .ftile em { font-size: 14px; }
}

/* Home page (2 Dec 2026, whiteboard "Home page – build it together"): one flow, one type family, the house colours. */
.freebig { background: var(--soft); padding: 28px 0; }
.freecard { display: flex; align-items: center; gap: 18px; text-decoration: none; color: var(--navy); background: var(--sun); border-radius: 24px; padding: 20px 26px; box-shadow: 0 6px 0 #C99A00; transition: transform .15s; }
.freecard:hover, .freecard:focus-visible { transform: translateY(-2px); color: var(--navy); }
.freecard .fbadge { flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: var(--sun); display: grid; place-items: center; font-family: var(--head); font-weight: 900; font-size: 34px; }
.freecard > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.freecard b { font-family: var(--head); font-weight: 900; font-size: 26px; line-height: 1.15; }
.freecard span span { font-size: 17px; }
.freecard em { font-style: normal; font-family: var(--head); font-weight: 900; font-size: 44px; line-height: 1; }
.whysec h2, .dashsec h2 { text-align: center; }
.secsub { text-align: center; color: var(--muted); margin: 6px 0 0; }
.why3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.why { background: #fff; border: 2px solid var(--line); border-radius: 22px; padding: 22px; }
.why .wi { font-size: 32px; display: block; margin-bottom: 8px; }
.why h3 { font-size: 21px; margin-bottom: 6px; }
.why p { margin: 0; color: var(--muted); font-size: 16px; }
.codepair { padding: 8px 0 34px; }
.codepair .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cbox { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; align-items: center; text-decoration: none; color: var(--ink); background: #fff; border: 3px solid var(--teal); border-radius: 22px; padding: 18px 22px; box-shadow: 0 6px 0 #BFE6E2; transition: transform .15s; }
.cbox.buy { border-color: var(--navy); box-shadow: 0 6px 0 #C9D6E4; }
.cbox:hover, .cbox:focus-visible { transform: translateY(-2px); color: var(--ink); }
.cbox .ci { grid-row: 1 / span 2; font-size: 34px; text-align: center; }
.cbox b { font-family: var(--head); font-weight: 900; font-size: 21px; }
.cbox span:not(.ci) { color: var(--muted); font-size: 15px; }
.dash2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 24px; }
.dblock { display: flex; flex-direction: column; background: #fff; border: 2px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: 0 6px 0 #DCE7EF; }
.dblock.mine { outline: 3px solid var(--sun); outline-offset: 4px; }
.dblock .dpic { aspect-ratio: 3 / 1.45; overflow: hidden; background: var(--sky); }
.dblock .dpic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dblock .dtext { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dblock h3 { font-size: 24px; }
.dblock p { margin: 0; color: var(--muted); font-size: 16px; flex: 1; }
.dblock .drow { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 6px; }
.dblock .dgo { font-weight: 800; font-size: 16px; }
.exblock { display: block; text-decoration: none; color: var(--ink); background: #fff; border: 3px solid var(--teal); border-radius: 26px; padding: 24px; transition: transform .15s, box-shadow .15s; box-shadow: 0 6px 0 #BFE6E2; }
.exblock:hover, .exblock:focus-visible { transform: translateY(-2px); color: var(--ink); }
.exblock h2 { text-align: center; }
.exlist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 12px; }
.exi { display: grid; grid-template-columns: 36px 1fr; column-gap: 10px; align-items: center; background: var(--mint); border-radius: 16px; padding: 12px 14px; }
.exi > span:first-child { grid-row: 1 / span 2; font-size: 24px; text-align: center; }
.exi b { font-size: 16px; } .exi span:not(:first-child) { color: var(--muted); font-size: 14px; }
.exi.soon { background: var(--soft); }
.exgo2 { display: block; text-align: center; font-style: normal; font-family: var(--head); font-weight: 900; color: var(--link); font-size: 18px; }
.faqsec h2 { text-align: center; } .faqsec .faq { max-width: 820px; margin: 18px auto 0; }
.fsmall .fnot { opacity: .8; margin-left: 8px; }
@media (max-width: 760px) {
  .why3, .codepair .wrap, .dash2, .exlist { grid-template-columns: 1fr; }
  .freecard { padding: 16px 18px; gap: 14px; } .freecard b { font-size: 21px; } .freecard .fbadge { width: 52px; height: 52px; font-size: 28px; } .freecard em { display: none; }
  .dblock .dpic { aspect-ratio: 3 / 1.2; }
}
@media (prefers-reduced-motion: reduce) { .freecard, .cbox, .exblock { transition: none; } }
/* phone: "Practise free" is always one tap away on the home page */
.mfree { display: none; }
@media (max-width: 760px) {
  .mfree { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; justify-content: center; align-items: center; min-height: 52px; border-radius: 16px; background: var(--sun); color: var(--navy); font-family: var(--head); font-weight: 900; font-size: 18px; text-decoration: none; box-shadow: 0 5px 0 #C99A00, 0 10px 24px rgba(7, 26, 51, .25); }
  body:has(.mfree) { padding-bottom: 80px; }
}
