/* Poppins (SIL OFL), self-hosted so no visitor data goes to Google; same font as the main site header. */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/poppins-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/poppins-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/poppins-500-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/poppins-500-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/poppins-600-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/poppins-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/poppins-700-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/poppins-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* class.interactivelessons.nl. Colours and controls as in Math Explorer: the site (apps_site/site.css), the BBB plugin
   (theme.ts) and the applets (mx.css buttons, mx.js PAL colours). A class colour comes in as --ink (tone) and --fill (light). */
:root {
  --primary: #0f70d7; --primary-dark: #0c57a7; --text: #1c2733; --muted: #5b6877; --border: #d6dde5;
  --bg: #f5f7fa; --card: #fff; --active: #e8f1fc;
  --soft: #e4eefb; --soft-hover: #d6e5f8; --soft-border: #c3d9f3; --soft-text: #1f5fab;
  --danger: #c92a2a; --danger-fill: #ffe3e3; --ok: #2b8a3e; --ok-fill: #d3f9d8; --amber: #ffb020;
  --ink: #1971C2; --fill: #D0EBFF;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--bg);
  min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
a { color: var(--primary); }
h1, h2 { line-height: 1.25; margin: 0 0 12px; }
h1 { font-size: 26px; }
h2 { font-size: 18px; }
p { margin: 0 0 12px; }

/* top bar: the same header as the main site (white, Poppins, teal links, logo image, language and account icons) */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand img { display: block; }

.page { flex: 1; width: 100%; max-width: var(--cw); margin: 0 auto; padding: 28px 16px 40px; }
.narrow .page { max-width: 520px; }

/* controls: buttons as the applet buttons (mx-btn) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 16px;
  font: 600 14.5px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; border-radius: 8px; border: 1px solid var(--soft-border);
  background: var(--soft); color: var(--soft-text); cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background .12s, border-color .12s, transform .06s; }
.btn:hover { background: var(--soft-hover); border-color: #a9c8ee; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .link:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid #1971C2; outline-offset: 2px; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn.ghost { background: #fff; border-color: #dbe3ec; color: #475569; }
.btn.ghost:hover { background: #f4f7fb; }
.btn.danger { background: #fff; border-color: #ffa8a8; color: var(--danger); }
.btn.danger:hover { background: var(--danger-fill); }
.btn.big { height: 48px; padding: 0 24px; font-size: 16px; border-radius: 10px; }
.btn.small { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 6px; }
.btn.copied { background: var(--ok-fill); border-color: #8ce99a; color: var(--ok); }
.link { font: inherit; font-size: 14px; color: var(--primary); background: none; border: 0; padding: 6px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.danger-text { color: var(--danger) !important; }

input[type=text], input[type=email], input[type=password], input:not([type]), textarea {
  font: inherit; width: 100%; padding: 9px 12px; border: 1.5px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); }
input:focus, textarea:focus { border-color: var(--primary); }
textarea { resize: vertical; }
label, .label { font-weight: 600; font-size: 14px; }
.mono, code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
input.mono { font-size: 13px; color: #334155; background: var(--bg); }
.stack { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.stack .btn { align-self: flex-start; margin-top: 6px; }
.hint { color: var(--muted); font-size: 13.5px; }
.center { text-align: center; }
.error { color: var(--danger); font-weight: 600; font-size: 14px; margin: 4px 0 0; }
.lead { font-size: 17px; color: #334155; }

/* the applet tag: a coloured label */
.tag { display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: .03em; padding: 3px 10px; border-radius: 4px;
  color: var(--ink); background: var(--fill); white-space: nowrap; line-height: 1.35; vertical-align: middle; }
.tag.big { font-size: 15px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .08em; }

.panel { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 22px 24px; margin-bottom: 18px; }
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 18px; font-weight: 600; font-size: 14px;
  background: var(--ok-fill); color: var(--ok); border: 1px solid #b2f2bb; }
.flash.error { background: var(--danger-fill); color: var(--danger); border-color: #ffc9c9; }

/* palette dots (the amber points of the Math Explorer icon, in the applet colours) */
.dots { display: flex; gap: 10px; padding: 0; margin: 18px 0 0; list-style: none; }
.dots li { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); }
.dots.pulse { justify-content: center; margin: 22px 0 18px; }
.dots.pulse li { animation: bob 1.4s ease-in-out infinite; }
.dots.pulse li:nth-child(2) { animation-delay: .15s; } .dots.pulse li:nth-child(3) { animation-delay: .3s; } .dots.pulse li:nth-child(4) { animation-delay: .45s; }
@keyframes bob { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .dots.pulse li, .live::before { animation: none !important; } }

/* the class code box */
.join-code h2 { margin-bottom: 14px; }
.join-code form { display: flex; flex-direction: column; gap: 10px; }
.code-input { font: 700 30px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace !important; letter-spacing: .18em; text-align: center;
  text-transform: uppercase; padding: 14px 10px !important; border-width: 2px !important; }
.code-input::placeholder { color: #c3ccd6; }
.join-code .btn { width: 100%; }

/* my classes */
.pagehead { margin-bottom: 18px; }
.pagehead h1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 0; }
.back { display: inline-flex; gap: 6px; color: var(--primary); text-decoration: none; font-weight: 600; font-size: 14px; }
.back span { font-size: 20px; line-height: .9; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.class-card { display: flex; flex-direction: column; gap: 10px; min-height: 132px; padding: 16px 18px; border-radius: 12px; text-decoration: none;
  color: var(--text); background: var(--fill); border: 1.5px solid transparent; box-shadow: inset 0 4px 0 var(--ink);
  transition: border-color .15s, box-shadow .15s, transform .1s; }
a.class-card:hover, a.class-card:focus-visible { border-color: var(--ink); box-shadow: inset 0 4px 0 var(--ink), 0 4px 14px rgba(28, 39, 51, .12); outline: none; }
.class-card .tag { background: #fff; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .06em; }
.cc-top { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.cc-name { font-size: 19px; font-weight: 700; line-height: 1.25; flex: 1; }
.cc-meta { font-size: 13px; color: #475569; }
.class-card.new { background: #fff; border: 1.5px dashed #b9c6d4; box-shadow: none; }
.class-card.new .cc-name { flex: none; font-size: 16px; }
.class-card.new .btn { align-self: flex-start; }
.class-card.new { gap: 12px; }
.class-card.new .swatches { gap: 6px; }
.class-card.new .swatch { width: 20px; height: 20px; }
.class-card.new .swatch:has(input:checked) { box-shadow: 0 0 0 2px var(--fill), 0 0 0 3.5px var(--ink); }
.class-card.new .swatch:has(input:checked)::after { width: 4px; height: 8px; border-width: 0 2px 2px 0; }
.cc-lines { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: #3b4a5c; }
.cc-line { display: flex; align-items: center; gap: 7px; line-height: 1.3; }
.cc-line > svg { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--ink); }
.cc-open { margin-top: auto; padding-top: 4px; font-size: 13.5px; font-weight: 700; color: var(--ink); }
a.class-card:hover .cc-open { text-decoration: underline; }

.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); cursor: pointer;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px transparent; transition: box-shadow .12s; }
.swatch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.swatch:has(input:checked) { box-shadow: 0 0 0 3px var(--fill), 0 0 0 5px var(--ink); }
.swatch:has(input:checked)::after { content: ""; position: absolute; left: 50%; top: 45%; width: 6px; height: 12px;
  border: solid #fff; border-width: 0 3px 3px 0; transform: translate(-50%, -50%) rotate(45deg); }
.swatch:has(input:focus-visible) { outline: 2px solid #1971C2; outline-offset: 5px; }

/* the two kinds of lessons */
.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kind { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1.5px solid #d6dde5; border-radius: 10px;
  background: #fff; cursor: pointer; transition: border-color .12s, background .12s; }
.kind input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.kind:has(input:checked) { border-color: #0f70d7; background: #e8f1fc; box-shadow: 0 0 0 1px #0f70d7; }
.kind:has(input:focus-visible) { outline: 2px solid #1971C2; outline-offset: 2px; }
.kind-icon { flex: none; display: inline-flex; width: 34px; height: 34px; border-radius: 9px; align-items: center; justify-content: center;
  background: #f1f4f8; color: #475569; }
.kind:has(input:checked) .kind-icon { background: #0f70d7; color: #fff; }
.kind svg, .cc-kind svg, .kind-line svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kind-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.kind-text strong { font-size: 14.5px; font-weight: 700; line-height: 1.25; }
.kind-text small { font-size: 13px; font-weight: 400; color: #5b6877; line-height: 1.4; }
.kinds.compact { gap: 6px; }
.kinds.compact .kind { padding: 7px 8px; gap: 7px; align-items: center; }
.kinds.compact .kind-icon { width: 26px; height: 26px; border-radius: 7px; }
.kinds.compact .kind svg { width: 16px; height: 16px; }
.kinds.compact .kind-text strong { font-size: 13px; }
.cc-kind { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.cc-kind svg { width: 15px; height: 15px; vertical-align: -3px; }
.kind-line { display: inline-flex; align-items: center; gap: 6px; }
.tier-change { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 14px; }
.tier-change form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; }
.tier-change .hint { font-size: 13.5px; }
.kind-note { margin: 6px 0 0; font-size: 14px; color: #475569; }
.kind-note .kind-line svg { width: 18px; height: 18px; vertical-align: -4px; }
.kind-note a { margin-left: 4px; }

/* live badge */
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #c92a2a; background: #fff; border: 1px solid #ffc9c9; border-radius: 999px; padding: 2px 9px 2px 8px; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fa5252; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }

/* one class */
.lesson { display: flex; align-items: center; gap: 18px 28px; justify-content: space-between; flex-wrap: wrap;
  background: var(--fill); border-color: transparent; box-shadow: inset 4px 0 0 var(--ink); }
.lesson-main { flex: 1 1 320px; min-width: 0; }
.lesson-state { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; color: #1e293b; margin: 0; }
.lesson.is-live { background: #fff; border-color: var(--ink); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; justify-content: flex-end; }
.actions form { margin: 0; }
.cols { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; align-items: start; }
.cols .panel { margin-bottom: 0; }
.share { display: flex; flex-direction: column; gap: 12px; margin: 6px 0 8px; }
.share-row { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 10px; }
.code-big { font-size: 26px; font-weight: 700; letter-spacing: .14em; color: var(--ink); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-top: 8px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); }
.count { display: inline-block; font-size: 13px; color: var(--muted); background: var(--bg); border: 1px solid var(--border);
  border-radius: 999px; padding: 0 9px; vertical-align: middle; margin-left: 4px; }
.add-pupils { margin-top: 16px; }

/* pupil pages */
.join { padding: 0; overflow: hidden; }
.join-head { background: var(--fill); padding: 22px 24px 18px; box-shadow: inset 0 4px 0 var(--ink); }
.join-head .tag { background: #fff; }
.join-head h1 { margin: 10px 0 4px; font-size: 26px; }
.join-head .hint { margin: 0; }
.join form, .waiting > p, .waiting > a { margin-left: 24px; margin-right: 24px; }
.join form { padding: 20px 0 24px; }
.join form .btn { align-self: stretch; }
.big-input { font-size: 20px !important; padding: 12px 14px !important; }
.hello { font-size: 22px; font-weight: 700; margin: 0 0 6px; }
.waiting { text-align: center; padding-bottom: 24px; }
.waiting .join-head { text-align: left; }
.waiting .lead { font-weight: 700; margin-bottom: 6px; }
.waiting > a { display: inline-block; margin-top: 4px; }

/* message page */
.message { text-align: center; padding: 30px 24px; }
.msg-icon { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--primary); }
.message.done .msg-icon { background: var(--ok-fill); color: var(--ok); }
.msg-icon svg { width: 30px; height: 30px; }

@media (max-width: 860px) {
  .cols { grid-template-columns: 1fr; }
  .cols .panel { margin-bottom: 0; }
}
@media (max-width: 600px) {
  .page { padding: 18px 16px 30px; }
  .panel { padding: 18px 16px; }
  .panel.join { padding: 0; }
  .share-row { grid-template-columns: 1fr auto; }
  .share-row .label { grid-column: 1 / -1; }
}

/* ---------- site header ---------- */
:root { --teal: #024e64; --green: #63c76a; --cw: 100%; }
/* page, header and footer share the container widths of the main site (Bootstrap steps) */
@media (min-width: 576px) { :root { --cw: 540px; } }
@media (min-width: 768px) { :root { --cw: 720px; } }
@media (min-width: 992px) { :root { --cw: 960px; } }
@media (min-width: 1200px) { :root { --cw: 1140px; } }
@media (min-width: 1400px) { :root { --cw: 1320px; } }
.bar { position: sticky; top: 0; z-index: 10; background: #fff; font-family: Poppins, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.bar-in { display: flex; align-items: center; gap: 4px; height: 70px; margin: 0 auto; padding: 0 16px; max-width: var(--cw); }

.hbrand { display: flex; align-items: center; margin-right: 28px; flex: none; }
.hbrand img { display: block; }
.hbrand .logo { display: none; height: 56px; width: auto; }
.hbrand .logo-c { height: 36px; width: auto; }
/* inside pages: the round logo only, as on the inner pages of the main site (the full logo is for the home page) */
.bar.inner { border-bottom: 1px solid #dee2e6; }
.bar.inner .hbrand .logo { display: none !important; }
.bar.inner .hbrand .logo-c { display: block !important; height: 56px; }
.nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav > a { color: var(--teal); text-decoration: none; font-weight: 700; font-size: 17px; padding: 8px; white-space: nowrap; border-bottom: 2px solid transparent; }
.nav > a:hover { color: var(--green); }
.nav > a[aria-current] { border-bottom-color: var(--green); }
.nav .panel-only { display: none; }
.bar-end { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.cta { display: inline-block; background: var(--teal); color: #fff; font-family: inherit; font-weight: 500; font-size: 15px; text-decoration: none; padding: 8px 24px; border-radius: 50px; white-space: nowrap; }
.cta:hover { background: #013a4b; color: #fff; }
.head-cta { margin-left: 8px; }
.dd { position: relative; }
.dd > summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; color: #1d2125; font-size: 15px; font-weight: 500; padding: 6px 8px; border-radius: 8px; }
.dd > summary::-webkit-details-marker { display: none; }
.dd > summary:hover { color: var(--teal); }
.dd svg { flex: none; fill: var(--teal); }
.ic-lang { width: 19px; height: 15px; }
.ic-user { width: 27px; height: 27px; }
.chev { width: 10px; height: 6px; fill: none !important; color: #1d2125; }
.user-link { display: grid; place-items: center; padding: 6px 8px; border-radius: 8px; }
.user-link svg { fill: var(--teal); }
.user-dd > summary { padding: 6px 8px; }
.user-dd, .user-link { margin-right: -4px; }
.dd-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 190px; background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 12px 28px rgba(28, 39, 51, .14); padding: 6px; z-index: 20; display: flex; flex-direction: column; }
.dd-menu.right { left: auto; right: 0; }
.lang-dd .dd-menu { left: auto; right: 0; }
.dd-menu a, .dd-menu button { display: block; width: 100%; text-align: left; background: none; border: 0; font: inherit; font-size: 15px; font-weight: 400; color: #1d2125;
  padding: 7px 12px; border-radius: 6px; text-decoration: none; cursor: pointer; }
.dd-menu a:hover, .dd-menu button:hover { background: var(--active); color: var(--teal); }
.dd-menu a[aria-current] { font-weight: 600; color: var(--teal); }
.dd-menu form { margin: 0; }
.dd-who { padding: 7px 12px 8px; font-size: 13px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.menu-btn { display: none; flex-direction: column; justify-content: center; gap: 6px; width: 40px; height: 40px; padding: 8px 6px; margin-right: 6px; border: 0; background: none; cursor: pointer; }
.menu-btn span { display: block; height: 2px; background: var(--teal); border-radius: 2px; }
@media (min-width: 1200px) {
  .hbrand .logo { display: block; }
  .hbrand .logo-c { display: none; }
  .hbrand { margin-right: 36px; }
}
@media (min-width: 1200px) and (max-width: 1449px) {
  .bar.guest .hbrand .logo { display: none; }
  .bar.guest .hbrand .logo-c { display: block; }
}

/* trial / subscription band under the bar */
.band { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 9px 16px; font-size: 14px; font-weight: 600; text-align: center; }
.band a { font-weight: 700; }
.band.trial { background: var(--active); color: var(--soft-text); border-bottom: 1px solid var(--soft-border); }
.band.expired { background: var(--danger-fill); color: var(--danger); border-bottom: 1px solid #ffc9c9; }
.band.expired a { color: var(--danger); }

/* ---------- wide pages (start page, pricing...): full-width sections ---------- */
.wide .page { max-width: none; padding: 0; }
.wide .page > .flash { max-width: var(--cw); padding: 0 16px; margin: 18px auto 0; }
.wrap { max-width: var(--cw); margin: 0 auto; padding: 0 16px; }
.narrow-wrap { max-width: var(--cw); }
/* long text stays readable inside the wide page */
.qa > p, .acc-body p, .legal p, .legal li { max-width: 900px; }
.section { padding: 64px 0; }
.section.top { padding-top: 40px; }
.section.alt { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { font-size: 32px; letter-spacing: -.01em; text-align: center; margin: 0 0 10px; }
.section-lead { font-size: 17.5px; color: #475569; text-align: center; max-width: 660px; margin: 0 auto 34px; }
.section-title.left, .section-lead.left { text-align: left; margin-left: 0; }
h3 { font-size: 17px; margin: 0 0 6px; }

.hero2 { padding: 48px 0 0; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); border-bottom: 1px solid var(--border); }
.hero2-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
.hero2 h1 { font-size: 46px; line-height: 1.12; letter-spacing: -.02em; margin: 16px 0 16px; }
.hero2 .lead { font-size: 18.5px; color: #475569; max-width: 600px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 10px; }
.hero2 .join-code { box-shadow: 0 10px 30px rgba(28, 39, 51, .08); }
.hero2 .join-code h2 { margin: 10px 0 14px; font-size: 22px; }
.hero2 .join-code .hint { margin: 12px 0 0; text-align: center; }
.shot { margin: 44px auto 0; padding-bottom: 0; text-align: center; }
.shot-frame { background: #1c2733; border-radius: 14px 14px 0 0; padding: 30px 10px 0; position: relative; box-shadow: 0 -2px 40px rgba(15, 112, 215, .12); }
.shot-frame img { display: block; width: 100%; height: auto; border-radius: 6px 6px 0 0; }
.shot-dots { position: absolute; left: 16px; top: 11px; display: flex; gap: 6px; }
.shot-dots i { width: 9px; height: 9px; border-radius: 50%; background: #475569; }
.shot-dots i:nth-child(1) { background: #fa5252; } .shot-dots i:nth-child(2) { background: #fcc419; } .shot-dots i:nth-child(3) { background: #51cf66; }
.shot figcaption { display: none; }

.numbers { background: #1c2733; color: #fff; padding: 26px 0; }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.numbers strong { display: block; font-size: 34px; line-height: 1.1; color: #fff; }
.numbers div:nth-child(1) strong { color: #74c0fc; } .numbers div:nth-child(2) strong { color: #8ce99a; }
.numbers div:nth-child(3) strong { color: #ffc078; } .numbers div:nth-child(4) strong { color: #b197fc; }
.numbers span { font-size: 14px; color: #cbd5e1; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 24px; box-shadow: inset 0 4px 0 var(--ink); }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--fill); color: var(--ink); font-weight: 800; font-size: 19px; margin-bottom: 14px; }
.steps p { color: #475569; margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.features.four { grid-template-columns: repeat(4, 1fr); }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.section.alt .feature { background: var(--bg); border-color: #e3e8ee; }
.feature p { color: #475569; margin: 0; font-size: 14.5px; }
.f-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: var(--fill); color: var(--ink); margin-bottom: 14px; }
.f-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.f-dot { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); margin-bottom: 14px; box-shadow: 0 0 0 5px var(--fill); }

.showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.applet { margin: 0; background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.applet:hover { box-shadow: 0 8px 24px rgba(28, 39, 51, .1); transform: translateY(-2px); }
.applet img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--border); }
.applet figcaption { padding: 12px 14px 14px; font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.applet figcaption span { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 3px; }

.price-teaser { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.price-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.price-mini div { position: relative; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 22px; text-align: center; }
.price-mini div.best { background: #ebfbee; border-color: #8ce99a; }
.price-mini strong { display: block; font-size: 30px; }
.price-mini span { color: var(--muted); font-size: 14px; }
.price-mini em { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 12px; font-weight: 700; color: #fff; background: #2f9e44; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }

/* accordion: one soft style for every page (class page, account, FAQ) */
.accs { display: flex; flex-direction: column; gap: 10px; }
.acc, .qa { background: #fff; border: 1px solid #dbe5f0; border-radius: 12px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.acc:hover, .qa:hover { border-color: #c3d9f3; }
.acc[open], .qa[open] { border-color: #c3d9f3; box-shadow: 0 1px 6px rgba(15, 112, 215, .07); }
.acc > summary, .qa > summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; position: relative;
  padding: 14px 18px; font-weight: 700; font-size: 16px; background: #f6f9fd; transition: background .15s; }
.acc > summary::-webkit-details-marker, .qa > summary::-webkit-details-marker { display: none; }
.acc > summary:hover, .qa > summary:hover { background: #eef4fb; }
.acc[open] > summary, .qa[open] > summary { background: #eef4fb; border-bottom: 1px solid #dbe5f0; }
.acc > summary:focus-visible, .qa > summary:focus-visible { outline: 2px solid #1971C2; outline-offset: -2px; }
.acc-icon { flex: none; display: inline-flex; width: 30px; height: 30px; border-radius: 9px; align-items: center; justify-content: center;
  background: var(--soft); color: var(--soft-text); }
.acc-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.acc-title { flex: 0 1 auto; }
.acc > summary .count { margin-left: 0; background: #fff; }
.acc-chev, .qa > summary::after { flex: none; margin-left: auto; width: 9px; height: 9px; border: solid #6b7c93; border-width: 0 2px 2px 0;
  transform: rotate(45deg); margin-top: -4px; transition: transform .2s; }
.acc[open] > summary .acc-chev, .qa[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.qa > summary::after { content: ""; }
.acc-body { padding: 18px 20px 20px; }
.acc-body > :last-child { margin-bottom: 0; }
.qa > p { padding: 14px 18px 16px; margin: 0; color: #475569; }
.acc-danger { border-color: #f3d4d4; }
.acc-danger:hover, .acc-danger[open] { border-color: #f0bcbc; box-shadow: none; }
.acc-danger > summary { background: #fdf6f6; color: #a61e1e; }
.acc-danger > summary:hover, .acc-danger[open] > summary { background: #fbeeee; border-bottom-color: #f3d4d4; }
.acc-danger .acc-icon { background: #ffe3e3; color: #c92a2a; }
.acc-danger .acc-chev { border-color: #c98a8a; }
.acc-body .stack { max-width: 520px; }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions > * { vertical-align: middle; }
.row-actions form { display: inline-block; margin: 0 0 0 4px; }
/* account page */
.sub-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px; margin-bottom: 14px; border-radius: 12px;
  background: var(--fill); border: 1.5px solid transparent; box-shadow: inset 0 4px 0 var(--ink); }
.sub-hero .tag { background: #fff; }
.sub-hero p { flex: 1 1 260px; margin: 0; font-size: 15px; }
.sub-hero .btn { margin-left: auto; }
.set-grid.stats { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.set-card .stat-value { margin: 0; font-size: 18px; font-weight: 700; }
.set-card .stat-value.plain { font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.set-card form { margin: 0; }
.set-card input:not([type=checkbox]), .set-card select { width: 100%; box-sizing: border-box; background: #fff; }
.set-card.has-error input { border-color: #ff8787; }
.set-card .error { margin: 0; font-size: 13.5px; }
.set-card.danger { background: #fff6f6; border-color: #f3d4d4; }
.set-card.danger .acc-icon { background: #ffe3e3; color: #c92a2a; }
.set-grid.invoices { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
a.set-card.inv { flex-direction: row; align-items: center; gap: 12px; text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .15s; }
a.set-card.inv:hover, a.set-card.inv:focus-visible { border-color: #9dc2ee; box-shadow: 0 2px 8px rgba(15, 112, 215, .1); outline: none; }
.inv-text { display: flex; flex-direction: column; min-width: 0; }
.inv-text strong { font-size: 15px; }
.inv-text small { font-size: 13px; color: var(--muted); }
.inv-amount { margin-left: auto; font-weight: 700; font-size: 16px; }
/* the list of personal links: one small card per pupil */
.pupil-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; margin: 8px 0 14px; }
.pupil-card { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 14px; background: #f4f9ff; border: 1px solid #d9e7f7; border-radius: 12px; }
.pc-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pc-initial { flex: none; display: inline-flex; width: 28px; height: 28px; border-radius: 50%; align-items: center; justify-content: center;
  background: var(--soft); color: var(--soft-text); font-size: 13px; font-weight: 700; }
.pupil-card .pname { font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.pupil-card input.mono { background: #fff; width: 100%; box-sizing: border-box; }
.pc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.pc-actions form { margin: 0; }
/* settings: small cards side by side */
.set-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-bottom: 16px; grid-auto-flow: dense; }
.set-card { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; background: #f4f9ff; border: 1px solid #d9e7f7; border-radius: 12px; }
.set-card h3 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 14.5px; font-weight: 700; }
.set-card .acc-icon { width: 26px; height: 26px; border-radius: 8px; }
.set-card .acc-icon svg { width: 16px; height: 16px; }
.set-card .check { margin: 0; }
.set-card textarea { width: 100%; box-sizing: border-box; }
.set-card input[type=file] { width: 100%; box-sizing: border-box; }
.set-card .hint { margin: 0; font-size: 13px; }
.set-card .kinds { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.set-card select { width: 100%; }
.set-card .cur-pick select { flex: 1 1 180px; }
@media (min-width: 640px) { .set-card.wide { grid-column: span 2; } }
.acc-body .add-pupils { margin-top: 18px; }
.faq-short { max-width: var(--cw); }
.faq-group { font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 30px 0 12px; }
.note-box { background: var(--active); border: 1px solid var(--soft-border); border-radius: 10px; padding: 14px 18px; margin: 22px 0; }

.cta-band { background: linear-gradient(135deg, #0f70d7 0%, #0c57a7 100%); color: #fff; text-align: center; padding: 56px 0; }
.cta-band h2 { font-size: 30px; margin-bottom: 8px; }
.cta-band p { color: #d0ebff; font-size: 17px; margin-bottom: 22px; }
.btn.light { background: #fff; color: var(--primary-dark); border-color: #fff; }
.btn.light:hover { background: #e7f5ff; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 20px; align-items: stretch; margin-bottom: 34px; }
.plans[style*="--n:1"] { max-width: 420px; margin-inline: auto; }
.plan { position: relative; display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1.5px solid var(--border); border-radius: 16px; padding: 28px 24px; box-shadow: inset 0 5px 0 var(--ink); }
.plan.best { border-color: var(--ink); box-shadow: inset 0 5px 0 var(--ink), 0 10px 30px rgba(47, 158, 68, .15); }
.plan h2 { color: var(--ink); font-size: 18px; margin: 4px 0 0; }
.plan .price { margin: 4px 0 0; }
.plan .price strong { font-size: 38px; letter-spacing: -.02em; }
.plan .price span { color: var(--muted); }
.plan .hint { flex: 1; }
.plan .btn, .plan form .btn { width: 100%; }
.plan form { margin: 0; }
.plan-for { margin: 0 0 6px; color: var(--muted); font-size: 14.5px; min-height: 2.8em; }
.plan .per-note { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.plan .checks { margin: 18px 0 0; flex: 1; }
.plan .checks li { font-size: 14.5px; }
.plan .on-request { font-size: 30px !important; }
.plan .link.center { align-self: center; margin-top: 10px; }
.plan > .per { display: flex; flex-direction: column; }
body:has(.period-switch input[value="month"]:checked) .per-year,
body:has(.period-switch input[value="year"]:checked) .per-month { display: none; }
.period-switch { display: flex; justify-content: center; width: max-content; max-width: 100%; margin: 0 auto 30px; padding: 4px; gap: 4px;
  background: #fff; border: 1px solid var(--border); border-radius: 999px; }
.period-switch label { position: relative; cursor: pointer; }
.period-switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.period-switch span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--muted); }
.period-switch em { font-style: normal; font-size: 12px; font-weight: 700; color: #2f9e44; background: #ebfbee; padding: 2px 8px; border-radius: 999px; }
.period-switch input:checked + span { background: #0f70d7; color: #fff; }
.period-switch input:checked + span em { background: #fff; }
.period-switch input:focus-visible + span { outline: 2px solid #1971C2; outline-offset: 2px; }
.custom-offer { display: flex; align-items: center; justify-content: space-between; gap: 18px 30px; flex-wrap: wrap; margin: -10px 0 30px;
  padding: 22px 26px; background: #fff; border: 1.5px solid var(--border); border-radius: 16px; box-shadow: inset 5px 0 0 var(--ink); }
.custom-offer h2 { color: var(--ink); font-size: 18px; margin: 0 0 4px; }
.custom-offer > div:first-child { flex: 1 1 420px; }
.custom-offer p { margin: 0; color: var(--muted); max-width: 620px; }
.custom-actions { display: flex; align-items: center; gap: 16px; }
.ribbon { position: absolute; top: -12px; right: 20px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.included { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 24px 28px; margin-bottom: 18px; }
.included h2 { font-size: 18px; }
.checks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.included .checks { grid-template-columns: repeat(2, 1fr); margin: 0; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: #d3f9d8; }
.checks li::after { content: ""; position: absolute; left: 7px; top: 6px; width: 5px; height: 9px; border: solid #2f9e44; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.signup-pitch .checks { margin-top: 10px; }

/* forms */
.field { display: flex; flex-direction: column; gap: 5px; }
.field .error { margin: 0; font-size: 13.5px; }
.field.has-error input, .field.has-error textarea { border-color: #ff8787; }
.field .hint { font-size: 12.5px; }
select { font: inherit; padding: 9px 10px; border: 1.5px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check a { font-weight: 600; }

/* account */
.sub-card .sub-state { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 15px; }
.sub-card form { margin: 0 0 10px; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
.list td, .list th { padding: 8px 6px; border-bottom: 1px solid #eef2f6; text-align: left; vertical-align: top; }
.list th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.list .num { text-align: right; white-space: nowrap; }
.accs-narrow { max-width: 860px; }

/* admin */
.pagehead.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0 22px; }
.kpis div { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; box-shadow: inset 4px 0 0 var(--ink); }
.kpis strong { display: block; font-size: 24px; }
.kpis span { color: var(--muted); font-size: 13px; }
.search-row { display: flex; gap: 8px; margin-bottom: 14px; max-width: 520px; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 6px 10px; }
.admin-list tr.off { opacity: .5; }
.admin-list select { padding: 5px 6px; font-size: 13px; }
.admin-list .row-actions form { display: flex; gap: 4px; }
.msg-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.msg-body { white-space: normal; }
.msg.handled { opacity: .6; }

/* legal pages */
.legal h1 { font-size: 32px; }
.legal .acc-body { font-size: 15.5px; }
.legal .acc-body ul { margin: 0 0 12px; padding-left: 22px; }
.legal .acc-body .legal-table { margin: 6px 0 12px; }
.acc-tools { margin: 18px 0 10px; font-size: 14px; color: var(--muted); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--primary-dark); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.legal li { margin-bottom: 6px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.legal-table th, .legal-table td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal-table th { background: var(--bg); }

/* footer: dark like the footer of the main site (Poppins, big white headings, soft white links, yellow cap) */
.foot { background: #201f1e; color: #fff; font-family: Poppins, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 15px; line-height: 1.5; }
.foot-top { padding: 100px 0 50px; }
.foot-cols { max-width: var(--cw); margin: 0 auto; padding: 0 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 40px; }
.foot-brand { flex: 0 0 312px; }
.foot-cols nav { display: flex; flex-direction: column; gap: 15px; align-items: flex-start; }
.foot-cols h3 { font-size: 26px; font-weight: 400; letter-spacing: 1.2px; line-height: 1.4; margin: 10px 0 10px; color: #fff; }
.foot-cols nav a, .foot-addr a { color: #fff; opacity: .8; text-decoration: none; }
.foot-cols nav a:hover, .foot-addr a:hover { opacity: 1; color: var(--green); }
.foot-name { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-size: 22px; font-weight: 600; text-transform: uppercase; line-height: 1.3; }
.foot-name img { display: block; flex: none; }
.foot-dec { opacity: .8; margin: 4px 0 0; padding-right: 15px; max-width: none; }
.foot-addr { display: flex; gap: 10px; opacity: .8; margin-top: 22px; }
.foot-addr svg { flex: none; color: var(--green); margin-top: 4px; }
.foot-bottom { background: #201f1e; max-width: none; margin: 0; padding: 10px 16px 40px; text-align: center; font-size: 14px; display: block; border-top: 0; }
.foot-bottom a { color: #fff; opacity: .8; }
.foot-kvk { color: #999; margin-top: 2px; }
.pay-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 14px; }
.pay-badge { display: inline-flex; align-items: center; justify-content: center; height: 24px; padding: 0 10px; border-radius: 4px; font-size: 11px; font-weight: 700; line-height: 1; color: #fff; letter-spacing: .2px; }
.pay-badge.ideal { background: #cc0066; }
.pay-badge.paypal { background: #0070ba; }
.pay-badge.card { background: #4b5563; padding: 0 8px; }
.pay-badge.sepa { background: #003399; }
.foot.small .foot-bottom { padding: 26px 16px; }

/* invoice */
.invoice-page { background: var(--bg); }
.invoice-tools { max-width: 800px; margin: 20px auto 10px; padding: 0 16px; display: flex; justify-content: space-between; align-items: center; }
.invoice { max-width: 800px; margin: 0 auto 40px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 44px 48px; }
.inv-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.inv-co { text-align: right; font-size: 13.5px; color: #475569; }
.inv-meta { display: flex; justify-content: space-between; gap: 20px; margin: 10px 0 30px; font-size: 14.5px; }
.inv-meta table td { padding: 2px 0 2px 18px; }
.inv-meta table td:first-child { color: var(--muted); padding-left: 0; }
.paid { color: var(--ok); }
.inv-lines { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-bottom: 18px; }
.inv-lines th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border-bottom: 2px solid var(--text); padding: 8px 6px; }
.inv-lines td { padding: 10px 6px; border-bottom: 1px solid var(--border); }
.inv-lines .num { text-align: right; white-space: nowrap; }
.inv-lines tfoot td { border-bottom: 0; }
.inv-lines tr.total td { font-weight: 800; font-size: 17px; border-top: 2px solid var(--text); }
@media print {
  .invoice-tools { display: none; }
  .invoice-page { background: #fff; }
  .invoice { border: 0; padding: 0; margin: 0; max-width: none; }
}

/* ---------- small screens ---------- */
@media (max-width: 991px) {
  .menu-btn { display: flex; }
  .hbrand { margin-right: 0; }
  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; margin: 0;
    background: #fff; border-bottom: 1px solid var(--border); padding: 8px 16px 16px; box-shadow: 0 10px 20px rgba(28, 39, 51, .08); }
  body[data-menu-open] .nav { display: flex; }
  .nav > a { padding: 11px 8px; border-bottom: 0; }
  .nav > a[aria-current] { background: var(--active); border-radius: 8px; }
  .nav .panel-only { display: block; }
  .nav .cta { text-align: center; margin-top: 8px; color: #fff; }
  .head-cta { display: none; }
  .lang-name { display: none; }
}
@media (max-width: 1000px) {
  .hero2-grid, .price-teaser, .two-col { grid-template-columns: 1fr; gap: 28px; }
  .hero2 h1 { font-size: 36px; }
  .features, .showcase, .plans { grid-template-columns: repeat(2, 1fr); }
  .features.four { grid-template-columns: repeat(2, 1fr); }
  .foot-cols > * { flex: 1 1 40%; }
  .foot-top { padding: 60px 0 30px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .section { padding: 44px 0; }
  .hero2 { padding-top: 28px; }
  .hero2 h1 { font-size: 30px; }
  .section-title { font-size: 25px; }
  .numbers-grid, .steps, .features, .features.four, .showcase, .plans, .included .checks, .price-mini { grid-template-columns: 1fr; }
  .numbers-grid { grid-template-columns: 1fr 1fr; }
  .foot-cols > * { flex: 1 1 100%; }
  .invoice { padding: 24px 18px; }
  .inv-head, .inv-meta { flex-direction: column; }
  .inv-co { text-align: left; }
}
.nowrap { white-space: nowrap; }

/* teacher guide */
.guide { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-direction: column; gap: 22px; }
.guide li { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; position: relative; }
.guide li::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--ink); z-index: 1; }
.guide-text { padding: 22px 24px 14px; }
@media (min-width: 992px) {
  .guide li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
  .guide-text { padding: 30px 32px; }
  .guide li img { border-top: 0; border-left: 1px solid var(--border); }
  .guide li:nth-child(even) .guide-text { order: 2; }
  .guide li:nth-child(even) img { border-left: 0; border-right: 1px solid var(--border); }
  ol.guide li:nth-child(2) img { align-self: stretch; width: 100%; height: auto; padding: 0; margin: 0; border: 0; object-fit: none; object-position: center; background: var(--bg); }
}
.guide-text .step-n { float: left; margin: 0 14px 0 0; }
.guide-text h2 { font-size: 19px; margin: 8px 0 10px; }
.guide-text p { clear: both; color: #475569; margin: 0; }
.guide img { display: block; width: 100%; height: auto; border-top: 1px solid var(--border); background: var(--bg); }
.guide li:nth-child(2) img { width: auto; max-width: 100%; margin: 0 auto; border: 0; padding: 0 24px 22px; background: none; }
/* first steps on My classes */
.first-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 22px; padding: 18px; background: #fff; border: 1px solid var(--border); border-radius: 14px; }
.first-steps h2 { grid-column: 1 / -1; font-size: 17px; margin: 0; }
.first-steps div { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #475569; }
.first-steps .step-n { flex: none; width: 30px; height: 30px; font-size: 15px; margin: 0; }
.first-steps div.done { opacity: .55; text-decoration: line-through; }
.first-steps a.link { grid-column: 1 / -1; justify-self: start; padding: 0; }
@media (max-width: 640px) { .first-steps { grid-template-columns: 1fr; } }

.cur-pick { display: flex; gap: 10px; flex-wrap: wrap; }
.cur-pick select { flex: 1 1 200px; min-width: 0; }
input[type=file] { font: inherit; font-size: 14px; padding: 8px; background: #f6f9fd; border: 1px dashed #b9cfe8; border-radius: 8px; }
input[type=file]::file-selector-button { font: inherit; font-weight: 600; font-size: 13.5px; margin-right: 10px; padding: 5px 12px; border: 1px solid var(--soft-border); border-radius: 7px; background: var(--soft); color: var(--soft-text); cursor: pointer; }

/* "Live" tag next to the logo (Interactive Lessons Live) */
.live-tag { display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-family: 'Poppins', system-ui, sans-serif; font-weight: 600; font-size: 16px; letter-spacing: .08em; color: #fff; background: var(--green); height: 32px; padding: 2px 16px 0; border-radius: 20px; line-height: 1; }
.hbrand .live-tag { margin-left: 10px; align-self: center; }
.foot-name .live-tag { margin-left: 8px; height: 22px; padding: 2px 10px 0; font-size: 12px; }

/* spacing of the FAQ accordions and the button below them */
.qa { margin: 0 0 10px; }
.qa + p.center { margin-top: 26px; }
.faq-short .section-title { margin-bottom: 26px; }

/* admin: payments page */
.head-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.mode-opts { display: grid; gap: 10px; }
.mode-opt { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; cursor: pointer; background: #fff; }
.mode-opt:hover { border-color: #c3d9f3; }
.mode-opt:has(input:checked) { border-color: #1971C2; background: #eef4fb; }
.mode-opt input { margin-top: 4px; }
.mode-opt strong { display: block; }
.mode-opt .hint { display: block; }
.note-box.ok { border-color: #8ce99a; background: #ebfbee; }
.note-box.bad { border-color: #ffc9c9; background: #fff5f5; }
.acc-body .field + .field { margin-top: 12px; }
.acc-body .row-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }

/* pricing: comparison table */
.compare { margin: -6px 0 30px; }
.compare h2 { font-size: 18px; margin: 0 0 12px; }
.compare-table th { color: var(--ink, var(--text)); text-align: center; }
.compare-table td { text-align: center; }
.compare-table td:first-child, .compare-table th:first-child { text-align: left; color: var(--muted); font-weight: 500; }
.note-box.warn { border-color: #ffd8a8; background: #fff9db; }
.btn.disabled { opacity: .45; pointer-events: none; }
.strong-link { font-weight: 700; color: var(--text); text-decoration: none; }
.strong-link:hover { color: var(--primary); text-decoration: underline; }

/* admin: one teacher's own limits */
.lim-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px 16px; margin-bottom: 14px; }
.lim-grid .field { margin: 0 !important; }
.lim-grid .field > span:first-child { font-weight: 600; font-size: 14px; }

/* admin: the plan editor */
.pl-wrap { max-width: 1440px; }
.pl-head { gap: 12px; flex-wrap: wrap; align-items: center; }
.pl-head h1 { margin-right: auto; }
.pl-head form { margin: 0; }
.pl-status { font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: #f1f3f5; color: #495057; }
.pl-status.ok { background: #e7f5ff; color: #1864ab; }
.pl-status.saving { background: #fff4e6; color: #d9480f; }
.pl-status.error { background: #fff5f5; color: #c92a2a; }
.pl-problems .note-box { margin: 8px 0; padding: 9px 14px; font-size: 14px; }
.pl-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; align-items: start; margin-top: 14px; }
.pl-editor { padding: 0 18px 18px; }
.pl-preview { position: sticky; top: 12px; padding: 0; overflow: hidden; }
.pl-preview iframe { display: block; width: 100%; height: calc(100vh - 90px); min-height: 520px; border: 0; background: #fff; }
.pl-pv-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid var(--border); background: #f8fafc; font-size: 14px; }
.pl-pv-bar .check { margin: 0; }
.pl-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 0 -18px 16px; padding: 0 12px; }
.pl-tabs button { border: 0; background: none; padding: 13px 12px; font: inherit; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; cursor: pointer; }
.pl-tabs button[aria-selected="true"] { color: var(--primary); border-bottom-color: var(--primary); }
.pl-group { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 6px 0 8px; }
.pl-list { display: flex; flex-direction: column; gap: 6px; }
.pl-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1.5px solid var(--border); border-radius: 10px; background: #fff; cursor: pointer; }
.pl-row:hover { border-color: #c3d9f3; }
.pl-row.on { border-color: #1971C2; background: #eef4fb; }
.pl-row:focus-visible { outline: 2px solid #1971C2; outline-offset: 2px; }
.pl-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.pl-name { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-price { white-space: nowrap; }
.pl-move { display: flex; flex-direction: column; }
.pl-move button { border: 0; background: none; padding: 0 4px; font-size: 10px; line-height: 1.2; color: #6b7c93; cursor: pointer; }
.pl-move button:hover { color: var(--primary); }
.pl-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 18px; }
.tag.sys { --ink: #1864ab; --fill: #e7f5ff; font-size: 11px; }
.tag.info { --ink: #2b8a3e; --fill: #ebfbee; font-size: 11px; }
.tag.hid { --ink: #d9480f; --fill: #fff4e6; font-size: 11px; }
.tag.closed { --ink: #c92a2a; --fill: #fff5f5; font-size: 11px; }
.tag.new { --ink: #5f3dc4; --fill: #f3f0ff; font-size: 11px; }
.tag.ok { --ink: #2b8a3e; --fill: #ebfbee; font-size: 11px; }
.pl-edit-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 22px 0 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.pl-edit-head h2 { font-size: 18px; margin: 0; color: var(--ink); }
.pl-acc { margin-bottom: 10px; }
.pl-acc .acc-body { display: grid; gap: 12px; }
.pl-acc .acc-body > * { margin: 0; }
.pl-acc .field { display: grid; gap: 4px; margin: 0; }
.pl-acc .field > span:first-child { font-weight: 600; font-size: 14px; }
.pl-def-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.pl-langs { display: inline-flex; border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden; }
.pl-langs button { border: 0; background: #fff; padding: 4px 11px; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.pl-langs button + button { border-left: 1px solid var(--border); }
.pl-langs button[aria-pressed="true"] { background: var(--primary); color: #fff; }
.pl-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.pl-eur { position: relative; display: block; }
.pl-eur::before { content: "€"; position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.pl-eur input { padding-left: 26px; }
.pl-calc { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pl-var { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.pl-var code, .pl-acc code { font-size: 12px; color: var(--muted); }
.pl-var-name strong { font-size: 14px; }
.pl-unl { display: flex; gap: 10px; align-items: center; }
.pl-unl input[type=number] { flex: 1; min-width: 0; }
.pl-unl .check { margin: 0; white-space: nowrap; font-size: 13px; }
.pl-def { background: #f4f8fd; border: 1px solid #dbe5f0; border-radius: 10px; padding: 12px 14px; display: grid; gap: 10px; }
.pl-line { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.pl-line input { flex: 1; min-width: 0; }
.pl-link { display: flex; gap: 6px; align-items: center; }
.pl-link input { flex: 1; min-width: 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.pl-langlist { display: grid; gap: 6px; }
.pl-diff { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.pl-diff li { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.pl-diff .tag { flex: none; min-width: 74px; text-align: center; }
.preview-band { background: #fff4e6; color: #d9480f; text-align: center; font-weight: 600; font-size: 13px; padding: 6px 12px; }
@media (max-width: 1100px) {
  .pl-grid { grid-template-columns: minmax(0, 1fr); }
  .pl-preview { position: static; }
  .pl-preview iframe { height: 80vh; }
}
@media (max-width: 560px) {
  .pl-var { grid-template-columns: minmax(0, 1fr) auto; }
  .pl-var-name { grid-column: 1 / -1; }
}
.pl-acc label.field, .pl-acc .mode-opt, .lim-grid .field { font-weight: 400; }
.pl-acc .field input, .pl-acc .field textarea, .pl-acc .field select, .lim-grid input { font-weight: 400; }
.mode-opt .hint { font-weight: 400; }
.contact .teachers-field { display: none; }
.contact form:has(#f-topic option[value="school"]:checked) .teachers-field,
.contact form:has(#f-topic option[value="custom"]:checked) .teachers-field { display: block; }

/* schools: forms, the offer, the school page, the admin's school page */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .field, .acc-body .form-grid .field + .field { margin: 0 0 12px; justify-content: flex-start; }
.form-grid input:not([type=checkbox]):not([type=radio]), .form-grid select { height: 44px; }
/* number, date and select fields look and size exactly like the text fields */
.form-grid input[type=number], .form-grid input[type=date], .form-grid input[type=tel], .form-grid input[type=url], .form-grid select,
.field input[type=number], .field input[type=date], .field select {
  font: inherit; width: 100%; box-sizing: border-box; padding: 9px 12px; border: 1.5px solid var(--border); border-radius: 8px;
  background: #fff; color: var(--text); }
.form-grid input[type=number]:focus, .form-grid input[type=date]:focus, .form-grid select:focus { border-color: var(--primary); }
.offer-card { background: #fff; border: 1.5px solid var(--border); border-radius: 16px; padding: 24px; box-shadow: inset 0 5px 0 var(--ink); margin-bottom: 22px; }
.offer-head h2 { color: var(--ink); margin: 0 0 4px; font-size: 22px; }
.offer-sum { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.offer-sum td { padding: 7px 0; border-bottom: 1px solid var(--border); }
.offer-sum td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.offer-sum tr.total td { font-weight: 700; font-size: 17px; border-bottom: 0; }
.offer-form h2 { margin-top: 0; }
.offer-form .check { margin: 10px 0; }
.offer-form .btn.big { margin-top: 12px; }
.invite-panel h2 { font-size: 18px; margin-top: 22px; }
.invite-panel .check { margin: 12px 0; }
.invite-opts { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 4px 0 16px; }
.invite-opts .check { margin: 0; }
.invite-opts select { width: auto; }
.two-forms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 16px 0; }
.two-forms form { background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.two-forms h3 { margin: 0 0 8px; font-size: 15px; }
.member-dd { display: inline-block; position: relative; }
.member-dd > summary { list-style: none; cursor: pointer; }
.member-dd > summary::-webkit-details-marker { display: none; }
.member-dd .dd-menu { display: grid; gap: 10px; min-width: 240px; padding: 12px; text-align: left; white-space: normal; z-index: 20; }
.member-dd .dd-menu form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.member-dd .dd-menu .check { margin: 0; }
.member-dd .dd-menu input[name=reason] { flex: 1 1 140px; }
table.members td { vertical-align: top; }
.small-num { width: 80px !important; display: inline-block; }
.check.inline { display: inline-flex; margin: 0 8px 0 0; }
.pl-actions form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.timeline li { display: flex; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: 14px; flex-wrap: wrap; }
.timeline details { flex: 1 1 300px; min-width: 0; }
.timeline summary { cursor: pointer; }
.timeline .ev-body { white-space: pre-wrap; font: 13px/1.5 system-ui, sans-serif; background: #f8fafc; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin: 8px 0 4px; max-height: 360px; overflow: auto; }
.tag.ev { font-size: 11px; --ink: #495057; --fill: #f1f3f5; }
.timeline .ev-owner .tag.ev { --ink: #1864ab; --fill: #e7f5ff; }
.timeline .ev-school .tag.ev, .timeline .ev-teacher .tag.ev { --ink: #2b8a3e; --fill: #ebfbee; }
.renew-form { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; margin-top: 14px; }
@media (max-width: 720px) {
  .form-grid, .form-grid.three, .two-forms { grid-template-columns: minmax(0, 1fr); }
}
