/* =====================================================================
   BioLab Academy — landing page (rebuilt from the Tilda version)
   ===================================================================== */

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff;
  padding: 10px 14px; border-radius: 8px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- header (new: logo + schedule button) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__row { display: flex; align-items: center; gap: 16px; min-height: 62px; }
.site-nav { display: none; gap: 4px; margin-left: auto; }
.site-nav a {
  text-decoration: none; font-size: 15px; font-weight: 500; color: var(--text);
  padding: 8px 12px; border-radius: 8px; white-space: nowrap;
}
.site-nav a:hover { background: var(--sage-50); color: var(--sage-800); }
.schedule-btn { margin-left: auto; }
.schedule-btn .label-long { display: none; }
@media (min-width: 560px) { .schedule-btn .label-long { display: inline; } .schedule-btn .label-short { display: none; } }
@media (min-width: 1180px) { .site-nav { display: flex; } .schedule-btn { margin-left: 8px; } }

/* ---------- search band ---------- */
.search-band { background: var(--sage); padding-top: 34px; }
.search-row { display: flex; gap: 10px; align-items: flex-end; max-width: 760px; margin-inline: auto; }
.bulb-btn {
  flex: none; width: 50px; height: 46px; display: grid; place-items: center; color: #fff;
  background: var(--sage-600); border: 1.5px solid #fff; border-radius: 12px 12px 0 0; border-bottom: 0;
  text-decoration: none; transition: background 0.15s;
}
.bulb-btn:hover { background: var(--sage-700); }
.bulb-btn .icon { width: 22px; height: 22px; stroke-width: 1.6; }
.search-box { position: relative; flex: 1; }
.search-box input {
  width: 100%; height: 46px; border: 0; border-radius: 14px 14px 0 0; background: #fff;
  padding: 0 18px 0 22px; font-size: 18px; color: var(--ink);
}
.search-box input::placeholder { color: #a3a8a5; }
.search-box input:focus { outline: none; box-shadow: inset 0 -2px 0 var(--sage-700); }
.search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; background: #fff;
  border-radius: 12px; box-shadow: var(--shadow-2); padding: 6px; max-height: 360px; overflow: auto;
}
.search-results a {
  display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--text);
}
.search-results a:hover, .search-results a[aria-selected="true"] { background: var(--sage-50); }
.search-results strong { display: block; font-size: 15px; color: var(--ink); }
.search-results span { display: block; font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-results mark { background: #e3efe5; color: var(--sage-900); border-radius: 3px; padding: 0 1px; }
.search-results .empty { padding: 12px; color: var(--muted); font-size: 14.5px; }
.search-hit { animation: hit 2.4s var(--ease); border-radius: 6px; }
@keyframes hit { 0%, 60% { background: #e3efe5; box-shadow: 0 0 0 6px #e3efe5; } 100% { background: transparent; box-shadow: none; } }

/* ---------- programs ---------- */
.programs { padding: 26px 0 64px; }
.programs-card {
  background: var(--sage); color: #fff; padding: 40px 22px 46px;
  box-shadow: 0 8px 24px rgba(40, 60, 45, 0.12);
}
.programs-card h2 { color: #fff; font-size: 21px; font-weight: 800; margin-bottom: 14px; }
.programs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.programs-list a {
  display: inline-flex; align-items: center; gap: 10px; padding: 3px 0; color: #fff; text-decoration: none;
  font-size: 20px; font-weight: 400; line-height: 1.4;
}
.programs-list a .icon { opacity: 0; transform: translateX(-4px); transition: 0.2s var(--ease); width: 18px; height: 18px; }
.programs-list a:hover .icon, .programs-list a:focus-visible .icon { opacity: 1; transform: none; }
.programs-list a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
@media (min-width: 760px) {
  .programs-card { padding: 44px 48px 48px; }
  .programs-list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 8px; }
}
.stripe { height: 20px; background: var(--sage); }

/* ---------- registration ---------- */
.register { padding: 72px 0 80px; }
.register .container { max-width: 560px; }
.section-title { text-align: center; font-size: clamp(30px, 5vw + 12px, 46px); font-weight: 800; letter-spacing: -0.01em; }
.register .section-title { margin-bottom: 44px; }
.tilda-form .field + .field { margin-top: 26px; }
.tilda-form .field__label { font-size: 16px; font-weight: 400; color: var(--ink); }
.tilda-form .input {
  min-height: 60px; border: 1px solid #000; border-radius: 0; padding: 0 20px; font-size: 17px;
}
.tilda-form .input:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--sage-700) 25%, transparent); border-color: #000; }
.tilda-form .input[aria-invalid="true"] { border-color: var(--danger); }
.tilda-form .submit {
  margin-top: 30px; width: 100%; min-height: 60px; border: 0; border-radius: 0; background: var(--sage-700);
  color: #fff; font-weight: 700; font-size: 17px; transition: background 0.15s;
}
.tilda-form .submit:hover { background: var(--sage-800); }
.phone-field {
  display: flex; align-items: center; min-height: 60px; border: 1px solid #000; background: #fff; padding: 0 0 0 14px;
}
.phone-field:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--sage-700) 25%, transparent); }
.phone-field[aria-invalid="true"] { border-color: var(--danger); }
.phone-cc { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 8px 6px; border-radius: 6px; }
.phone-cc:focus-within { box-shadow: 0 0 0 2px var(--sage-200); }
.phone-cc .flag { font-size: 21px; line-height: 1; }
.phone-cc .caret { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid #9a9a9a; }
.phone-cc select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.phone-field .dial { font-size: 17px; color: var(--ink); margin: 0 6px 0 10px; }
.phone-field input { flex: 1; min-width: 0; border: 0; height: 58px; font-size: 17px; background: transparent; padding-right: 14px; }
.phone-field input:focus { outline: none; }
.phone-field input::placeholder { color: #9a9f9c; }
.form-note { margin-top: 14px; font-size: 14px; color: var(--muted); text-align: center; }
.form-status { margin-top: 16px; }
.grade-chip { display: flex; justify-content: center; margin: -26px 0 26px; }
.grade-chip .chip { font-size: 14px; padding: 6px 8px 6px 14px; }
.grade-chip button { border: 0; background: rgba(0,0,0,.08); border-radius: 999px; width: 22px; height: 22px; display: grid; place-items: center; }
.form-success { text-align: center; padding: 24px 8px; }
.form-success .icon { width: 54px; height: 54px; margin: 0 auto 14px; color: var(--sage-700); stroke-width: 1.6; }
.form-success h3 { font-size: 24px; margin-bottom: 8px; }
.form-success p { color: var(--muted); }

/* ---------- about ---------- */
.about { position: relative; padding: 8px 0 72px; text-align: center; overflow: hidden; }
.eyebrow { font-size: 15px; font-weight: 800; letter-spacing: 0.04em; color: var(--ink); text-align: center; }
.about__body { position: relative; max-width: 760px; margin: 0 auto; padding-top: 130px; }
.about__rocket {
  position: absolute; left: 50%; top: 40px; width: min(76vw, 300px); transform: translateX(-50%);
  pointer-events: none; user-select: none;
}
.about__body p { position: relative; font-size: 19px; line-height: 1.52; font-weight: 300; color: #141414; }
.about__body p + p { margin-top: 28px; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0 auto; width: min(100% - 40px, 1120px); }

/* ---------- about the teacher (from the admin panel) ---------- */
.teacher { padding: 10px 0 76px; }
.teacher .section-title { margin-bottom: 36px; }
.teacher-card {
  position: relative; display: grid; gap: 22px; justify-items: center; text-align: center;
  max-width: 920px; margin: 0 auto; padding: 34px 24px 32px; border-radius: 28px;
  background: linear-gradient(160deg, var(--sage-50) 0%, #fff 70%); border: 1px solid var(--sage-100);
}
.teacher-card::before {
  content: ""; position: absolute; inset: 0 auto auto 0; width: 120px; height: 120px; border-radius: 28px 0 120px 0;
  background: var(--sage-100); opacity: 0.55; pointer-events: none;
}
.teacher-card__photo, .teacher-mini__photo {
  position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 50%; flex: none;
  background: var(--sage); color: #fff; font-weight: 700; letter-spacing: 0.04em;
}
.teacher-card__photo { width: 148px; height: 148px; font-size: 46px; box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--sage-200), 0 12px 30px rgba(40, 60, 45, 0.16); }
.teacher-card__photo img, .teacher-mini__photo img { width: 100%; height: 100%; object-fit: cover; }
.teacher-card__body { position: relative; max-width: 620px; }
.teacher-card__name { font-size: clamp(24px, 2vw + 16px, 32px); font-weight: 800; color: var(--ink); line-height: 1.2; }
.teacher-card__title { margin-top: 6px; font-size: 16.5px; font-weight: 600; color: var(--sage-700); }
.teacher-card__bio { margin-top: 18px; }
.teacher-card__bio p { font-size: 17.5px; line-height: 1.6; font-weight: 300; color: #141414; }
.teacher-card__bio p + p { margin-top: 14px; }
.teacher-card__cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 11px 22px; border-radius: 999px;
  background: var(--sage-700); color: #fff; font-weight: 600; text-decoration: none; transition: background 0.15s;
}
.teacher-card__cta:hover { background: var(--sage-800); }
@media (min-width: 760px) {
  .teacher-card { grid-template-columns: 200px 1fr; justify-items: start; text-align: left; gap: 40px; padding: 44px 48px; align-items: center; }
  .teacher-card__photo { width: 190px; height: 190px; font-size: 58px; justify-self: center; }
}
.teacher-more { display: grid; gap: 16px; max-width: 920px; margin: 20px auto 0; }
@media (min-width: 760px) { .teacher-more { grid-template-columns: 1fr 1fr; } }
.teacher-mini { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--line-soft); border-radius: 20px; background: #fff; }
.teacher-mini__photo { width: 64px; height: 64px; font-size: 20px; }
.teacher-mini h3 { font-size: 18px; }
.teacher-mini__title { color: var(--sage-700); font-weight: 600; font-size: 14.5px; margin-top: 2px; }
.teacher-mini__bio p { font-size: 15px; line-height: 1.5; font-weight: 300; margin-top: 8px; }

/* ---------- why us ---------- */
.why { padding: 72px 0 40px; }
.why .section-title { margin-bottom: 48px; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
.why-item { display: grid; grid-template-columns: 44px 1fr; column-gap: 24px; }
.why-item svg { width: 44px; height: 40px; margin-top: 2px; }
.why-item h3 { font-size: 19.5px; line-height: 1.35; margin-bottom: 12px; }
.why-item p { font-size: 15.5px; line-height: 1.45; font-weight: 300; }
@media (min-width: 860px) {
  .why-list { grid-template-columns: 1fr 1fr; column-gap: 56px; row-gap: 48px; }
}

/* ---------- learning system ---------- */
.system { padding: 64px 0 40px; }
.system .section-title { margin-bottom: 64px; }
.system__intro { max-width: 760px; margin: 0 auto 50px; text-align: center; font-size: 19px; line-height: 1.52; font-weight: 300; color: #141414; }
.feature-grid { display: grid; gap: 20px; }
.feature {
  background: var(--sage-600); color: #fff; padding: 22px 20px 40px;
}
.feature h3 { color: #fff; font-size: 19.5px; line-height: 1.3; display: flex; gap: 10px; align-items: flex-start; }
.feature h3 .emoji { font-size: 22px; line-height: 1.15; }
.feature hr { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.92); margin: 22px 0 26px; }
.feature p { font-size: 15.5px; line-height: 1.45; font-weight: 300; }
@media (min-width: 900px) { .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .feature { padding: 28px 26px 44px; } }

/* ---------- learning process ---------- */
.process { padding: 72px 0 56px; }
.process .section-title { margin-bottom: 56px; }
.steps { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; }
.step { position: relative; display: grid; grid-template-columns: 46px 1fr; column-gap: 22px; padding-bottom: 38px; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ""; position: absolute; left: 22px; top: 46px; bottom: 0; width: 2px; background: #232323;
}
.step:last-child::before { display: none; }
.step__num {
  width: 46px; height: 46px; border-radius: 50%; background: #222; color: #fff;
  display: grid; place-items: center; font-size: 17px; font-weight: 500;
}
.step h3 { font-size: 21px; line-height: 1.3; margin: 8px 0 8px; }
.step p { font-size: 15px; line-height: 1.5; font-weight: 300; }

/* ---------- quiz ---------- */
.quiz { padding: 40px 0 72px; }
.quiz-card {
  max-width: 760px; margin: 0 auto; border: 1px solid #e3e6e4; background: #fff; overflow: hidden;
}
.quiz-progress { height: 5px; background: var(--sage-100); }
.quiz-progress span { display: block; height: 100%; background: #64906c; transition: width 0.35s var(--ease); }
.quiz-body { padding: 30px 20px 24px; min-height: 520px; display: flex; flex-direction: column; }
.quiz-q { font-size: 23px; line-height: 1.3; font-weight: 800; margin-bottom: 24px; color: var(--ink); }
.quiz-options { display: grid; gap: 15px; }
.quiz-option {
  position: relative; display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 12px 16px 12px 15px;
  background: var(--soft); border-radius: 8px; cursor: pointer; font-size: 17px; line-height: 1.3;
  transition: background 0.15s, box-shadow 0.15s;
}
.quiz-option:hover { background: #eef1ef; }
.quiz-option input { position: absolute; opacity: 0; pointer-events: none; }
.quiz-option .radio {
  flex: none; width: 21px; height: 21px; border-radius: 50%; border: 2px solid var(--ring); display: grid; place-items: center;
  transition: border-color 0.15s;
}
.quiz-option .radio::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--sage-700); transform: scale(0); transition: transform 0.15s var(--ease); }
.quiz-option input:checked + .radio { border-color: var(--sage-700); }
.quiz-option input:checked + .radio::after { transform: scale(1); }
.quiz-option:has(input:checked) { background: #e9f0ea; box-shadow: inset 0 0 0 1.5px #b7cdbb; }
.quiz-option input:focus-visible + .radio { outline: 3px solid color-mix(in srgb, var(--sage-700) 45%, transparent); outline-offset: 2px; }
.quiz-own { margin-top: 12px; }
.quiz-own input { width: 100%; min-height: 54px; border: 1px solid #c9cfcb; border-radius: 8px; padding: 0 16px; font-size: 16px; }
.quiz-own input:focus { outline: none; border-color: var(--sage-700); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sage-700) 20%, transparent); }
.quiz-contact .field + .field { margin-top: 16px; }
.quiz-contact .input { min-height: 54px; border-radius: 8px; }
.quiz-contact .phone-field { border-radius: 8px; border-color: #b9bfbb; min-height: 54px; }
.quiz-contact .phone-field input { height: 52px; }
.quiz-nav { display: flex; gap: 10px; margin-top: auto; padding-top: 32px; }
.quiz-back {
  flex: none; width: 50px; min-height: 52px; border: 1.5px solid #5d7263; border-radius: 6px; background: #fff; color: #5c7162;
  display: grid; place-items: center;
}
.quiz-back:disabled { border-color: #c0c9c6; color: #c0c9c6; cursor: default; }
.quiz-next {
  flex: 1; min-height: 52px; border: 0; border-radius: 6px; color: #fff; font-weight: 700; font-size: 17px;
  background: linear-gradient(90deg, #61906c, #57775f); display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  transition: filter 0.15s;
}
.quiz-next:hover { filter: brightness(0.95); }
.quiz-next .icon { width: 20px; height: 20px; }
.quiz-error { color: var(--danger); font-size: 14px; margin-top: 12px; }
.quiz-done { text-align: center; margin: auto 0; padding: 20px 0; }
.quiz-done .big-emoji { font-size: 54px; line-height: 1; margin-bottom: 14px; }
.quiz-done h3 { font-size: 26px; margin-bottom: 10px; }
.quiz-done p { color: var(--muted); max-width: 440px; margin: 0 auto 24px; }
@media (min-width: 760px) {
  .quiz-card { border-radius: 14px; box-shadow: var(--shadow-1); }
  .quiz-body { padding: 40px 44px 34px; min-height: 480px; }
}

/* ---------- free lesson CTA ---------- */
.cta { background: var(--gray-bg); padding: 90px 0 110px; text-align: center; }
.cta .container { max-width: 760px; }
.cta h2 { font-size: clamp(30px, 5vw + 12px, 46px); line-height: 1.25; margin-bottom: 30px; }
.cta p { font-size: 19px; line-height: 1.5; font-weight: 300; color: #141414; }
.cta__arrow { width: 30px; height: 60px; margin: 32px auto 34px; color: #c7c7c7; }
.cta__btn {
  display: flex; align-items: center; justify-content: center; width: 100%; max-width: 560px; margin: 0 auto;
  min-height: 60px; border: 0; border-radius: 999px; background: var(--sage-700); color: #fff;
  font-weight: 700; font-size: 16.5px; padding: 12px 24px; transition: background 0.15s, transform 0.1s;
}
.cta__btn:hover { background: var(--sage-800); }
.cta__btn:active { transform: translateY(1px); }

/* ---------- footer ---------- */
.site-footer { padding: 36px 0 calc(36px + var(--tabbar-h) + env(safe-area-inset-bottom)); text-align: center; color: var(--muted); font-size: 14px; }
.site-footer .logo { justify-content: center; margin-bottom: 10px; }
.site-footer nav { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin: 12px 0 8px; }
.site-footer nav a { color: var(--sage-800); font-weight: 600; text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
@media (min-width: 900px) { .site-footer { padding-bottom: 40px; } }

/* ---------- mobile tab bar (from the original design) ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--sage);
  display: flex; justify-content: space-around; align-items: center;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.06);
}
.tabbar a, .tabbar button {
  width: 64px; height: 48px; display: grid; place-items: center; color: #fff; border: 0; background: none; border-radius: 12px;
}
.tabbar a:active, .tabbar button:active { background: rgba(255, 255, 255, 0.14); }
.tabbar .icon { width: 28px; height: 28px; stroke-width: 1.7; }
@media (min-width: 900px) { .tabbar { display: none; } }

/* ---------- booking dialog ---------- */
.booking-intro { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.booking .phone-field { border-radius: var(--radius-sm); border: 1.5px solid #b9bfbb; min-height: 46px; padding-left: 10px; }
.booking .phone-field input { height: 44px; font-size: 16px; }
.booking .phone-field .dial { font-size: 16px; }

@media (min-width: 900px) {
  .search-band { padding-top: 40px; }
  .register { padding: 96px 0 104px; }
  .about { padding-bottom: 96px; }
  .why, .system, .process { padding-top: 96px; }
  .quiz { padding: 64px 0 104px; }
  .cta { padding: 110px 0 120px; }
}

/* demo ribbon sits above the mobile tab bar */
.demo-ribbon { bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .demo-ribbon { bottom: 16px; } }

/* =====================================================================
   Animations (2026-12) — same design, a little more life.
   Everything here is switched off for people who turn off motion.
   ===================================================================== */
/* logo: drawn once on load, the DNA twists on hover */
.logo-anim__hex { fill: #62916d; stroke: #57775f; stroke-width: 1.6; }
.logo-anim__a { stroke: #fff; stroke-width: 2.2; }
.logo-anim__b { stroke: #dfe9e1; stroke-width: 2.2; }
.logo-anim__rungs { stroke: #fff; stroke-width: 1.6; opacity: 0.9; }
.logo-anim__dna { transform-origin: 20px 20px; transform-box: view-box; }
/* header gets a hairline once the page is scrolled */
.site-header { transition: box-shadow 0.25s; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line-soft), 0 6px 18px rgba(17, 17, 17, 0.05); }

@media (prefers-reduced-motion: no-preference) {
  .logo-anim__hex { stroke-dasharray: 1; animation: bl-draw 0.9s var(--ease) both, bl-fill 0.5s 0.55s ease both; }
  .logo-anim__a, .logo-anim__b { stroke-dasharray: 1; animation: bl-draw 0.9s 0.35s var(--ease) both; }
  .logo-anim__rungs { animation: bl-fade 0.4s 1s ease both; }
  .logo:hover .logo-anim__dna, .logo:focus-visible .logo-anim__dna { animation: bl-twist 1.1s var(--ease); }

  /* programs: grades slide in one after another the first time */
  .programs-list li { animation: bl-rise 0.6s var(--ease) both; }
  .programs-list li:nth-child(2) { animation-delay: 0.06s; } .programs-list li:nth-child(3) { animation-delay: 0.12s; }
  .programs-list li:nth-child(4) { animation-delay: 0.18s; } .programs-list li:nth-child(5) { animation-delay: 0.24s; }
  .programs-list li:nth-child(6) { animation-delay: 0.3s; }

  /* about: the rocket floats */
  .about__rocket { animation: bl-float 6s ease-in-out infinite; }

  /* learning process: numbers appear one by one, the line grows (when scrolled into view) */
  .steps.is-armed .step__num { opacity: 0; transform: scale(0.5); transition: opacity 0.4s, transform 0.5s var(--ease); }
  .steps.is-armed .step::before { transform: scaleY(0); transform-origin: top; transition: transform 0.6s var(--ease); }
  .steps.is-visible .step__num { opacity: 1; transform: none; }
  .steps.is-visible .step::before { transform: none; }
  .steps.is-visible .step:nth-child(1)::before { transition-delay: 0.2s; }
  .steps.is-visible .step:nth-child(2) .step__num { transition-delay: 0.45s; } .steps.is-visible .step:nth-child(2)::before { transition-delay: 0.6s; }
  .steps.is-visible .step:nth-child(3) .step__num { transition-delay: 0.85s; } .steps.is-visible .step:nth-child(3)::before { transition-delay: 1s; }
  .steps.is-visible .step:nth-child(4) .step__num { transition-delay: 1.25s; }

  /* free lesson: the arrow points to the button */
  .cta__arrow { animation: bl-nudge 2.2s ease-in-out infinite; }
  .cta__btn { transition: background 0.2s, transform 0.15s var(--ease), box-shadow 0.2s; }
  .cta__btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(70, 95, 76, 0.25); }

  /* quiz: each new question slides in */
  .quiz-body > * { animation: bl-rise 0.45s var(--ease) both; }

  /* small press feedback on the mobile tab bar */
  .tabbar a, .tabbar button { transition: transform 0.12s; }
  .tabbar a:active, .tabbar button:active { transform: scale(0.92); }
}
@keyframes bl-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes bl-fill { from { fill: transparent; } to { fill: #62916d; } }
@keyframes bl-fade { from { opacity: 0; } to { opacity: 0.9; } }
@keyframes bl-twist { 0% { transform: scaleX(1); } 50% { transform: scaleX(-1); } 100% { transform: scaleX(1); } }
@keyframes bl-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes bl-float { 0%, 100% { transform: translateX(-50%) translateY(0) rotate(0deg); } 50% { transform: translateX(-50%) translateY(-10px) rotate(-2deg); } }
@keyframes bl-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* =====================================================================
   Top of the page (2026-12): sage hero with the header on it,
   search inside the hero, living DNA helix, new grade cards.
   Colours stay the original BioLab sage.
   ===================================================================== */
/* header sits on the sage hero; turns white once you scroll */
.site-header { background: var(--sage); border-bottom-color: transparent; transition: background 0.3s, box-shadow 0.3s, border-color 0.3s; }
.site-header .logo__text, .site-header .site-nav a { color: #fff; transition: color 0.3s; }
.site-header .logo__text small { color: rgba(255, 255, 255, 0.82); }
.site-header .site-nav a:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.site-header .schedule-btn { background: #fff; color: var(--sage-800); }
.site-header .schedule-btn:hover { background: var(--sage-50); }
.site-header.is-scrolled { background: rgba(255, 255, 255, 0.95); border-bottom-color: var(--line-soft); }
.site-header.is-scrolled .logo__text, .site-header.is-scrolled .site-nav a { color: var(--ink); }
.site-header.is-scrolled .logo__text small { color: var(--muted); }
.site-header.is-scrolled .site-nav a:hover { background: var(--sage-50); color: var(--sage-800); }
.site-header.is-scrolled .schedule-btn { background: var(--sage-700); color: #fff; }
.site-header.is-scrolled .schedule-btn:hover { background: var(--sage-800); }
.site-header__row { min-height: 72px; }

/* logo: the mark sits on a white tile, so it reads on sage and on white */
.site-header .logo { gap: 12px; }
.site-header .logo__mark {
  width: 46px; height: 46px; padding: 6px; background: #fff; border-radius: 14px;
  box-shadow: 0 4px 14px rgba(47, 67, 52, 0.18); transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.site-header .logo:hover .logo__mark { transform: rotate(-6deg) scale(1.04); box-shadow: 0 8px 20px rgba(47, 67, 52, 0.22); }
.site-header .logo__text { font-size: 21px; letter-spacing: 0.2em; }
.site-header .logo__text small { font-size: 11.5px; letter-spacing: 0.02em; margin-top: 3px; }

/* hero */
.hero { position: relative; overflow: hidden; background: var(--sage); color: #fff; padding: 36px 0 150px; }
.hero::before {
  content: ""; position: absolute; inset: auto -10% -40% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 62%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-items: center; }
.hero__title { font-size: clamp(38px, 4.6vw + 16px, 72px); line-height: 1.08; font-weight: 800; letter-spacing: -0.01em; color: #fff; margin: 0; }
.hero__lead { font-size: clamp(17px, 0.5vw + 15px, 20px); line-height: 1.55; font-weight: 300; color: rgba(255, 255, 255, 0.94); max-width: 40ch; margin: 22px 0 0; }

/* search: a white pill with a soft shadow, clearly separate from the page below */
.hero .search-box { position: relative; max-width: 560px; margin-top: 32px; }
.hero .search-box input {
  width: 100%; height: 58px; border: 0; border-radius: 999px; background: #fff; color: var(--ink);
  padding: 0 22px 0 54px; font: inherit; font-size: 16.5px; box-shadow: 0 10px 30px rgba(47, 67, 52, 0.22);
}
.hero .search-box input::placeholder { color: #9aa39d; }
.hero .search-box input:focus { outline: none; box-shadow: 0 10px 30px rgba(47, 67, 52, 0.22), 0 0 0 4px rgba(255, 255, 255, 0.45); }
.search-box__icon { position: absolute; left: 20px; top: 29px; transform: translateY(-50%); width: 21px; height: 21px; color: var(--sage-700); pointer-events: none; z-index: 1; }
.hero .search-results { top: calc(100% + 10px); border-radius: 18px; color: var(--text); z-index: 40; }
.hero__quiz {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 8px 14px 8px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 14.5px; font-weight: 500; text-decoration: none;
  transition: background 0.2s;
}
.hero__quiz:hover { background: rgba(255, 255, 255, 0.26); }
.hero__quiz .icon { stroke-width: 1.8; }

/* DNA helix (drawn by landing.js) */
.hero__visual { position: absolute; right: -70px; top: -20px; width: 210px; height: 380px; opacity: 0.35; pointer-events: none; }
.helix { width: 100%; height: 100%; overflow: visible; }
.helix .strand { fill: none; stroke-width: 3.4; stroke-linecap: round; }
.helix .strand--a { stroke: #fff; }
.helix .strand--b { stroke: var(--sage-100); }
.helix .rung { stroke: #fff; stroke-width: 2.6; stroke-linecap: round; }
.helix .node { stroke: var(--sage); stroke-width: 2; }
@media (min-width: 900px) {
  .hero { padding: 56px 0 170px; }
  .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 40px; }
  .hero__visual { position: relative; right: auto; top: auto; width: 100%; height: 440px; opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__title, .hero__lead, .hero .search-box, .hero__quiz { animation: bl-rise 0.8s var(--ease) both; }
  .hero__lead { animation-delay: 0.1s; } .hero .search-box { animation-delay: 0.2s; } .hero__quiz { animation-delay: 0.3s; }
  .hero__visual { animation: bl-appear 1.4s 0.15s ease both; }
}
@keyframes bl-appear { from { opacity: 0; } }

/* programs: a white panel that floats over the bottom of the hero */
.programs { padding: 0 0 64px; margin-top: -110px; position: relative; z-index: 2; }
.programs__panel { background: #fff; border-radius: 28px; padding: 26px 18px 18px; box-shadow: 0 24px 60px rgba(47, 67, 52, 0.14); }
.programs__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; padding: 0 6px 18px; }
.programs__head h2 { font-size: clamp(24px, 1.2vw + 18px, 30px); font-weight: 800; color: var(--ink); margin: 0; }
.programs__head p { color: var(--muted); font-size: 15px; margin: 0; }
.grade-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .grade-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grade-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } .programs__panel { padding: 30px 26px 26px; } }
.grade-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 150px; padding: 16px 16px 14px;
  border-radius: 20px; background: var(--sage-50); color: var(--ink); text-decoration: none; overflow: hidden;
  transition: background 0.3s var(--ease), color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.grade-card::before {               /* faint hexagon from the logo, top right */
  content: ""; position: absolute; right: -18px; top: -18px; width: 86px; height: 96px; opacity: 0.5;
  background: var(--sage-100); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  transition: transform 0.5s var(--ease), background 0.3s;
}
.grade-card__num { position: relative; font-size: 58px; line-height: 0.95; font-weight: 800; letter-spacing: -0.03em; color: var(--sage-700); transition: color 0.3s; }
.grade-card__label { position: relative; font-size: 15px; color: var(--muted); margin-top: 4px; transition: color 0.3s; }
.grade-card__tag {
  position: absolute; left: 12px; top: 12px; z-index: 1; font-size: 11.5px; font-weight: 700; color: #fff; background: var(--sage-700);
  border-radius: 999px; padding: 3px 9px; transition: background 0.3s, color 0.3s;
}
.grade-card__go {
  position: absolute; right: 12px; bottom: 12px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--sage-700); transition: transform 0.3s var(--ease), background 0.3s;
}
.grade-card:hover, .grade-card:focus-visible { background: var(--sage-700); transform: translateY(-4px); box-shadow: 0 14px 28px rgba(70, 95, 76, 0.28); }
.grade-card:hover .grade-card__num, .grade-card:focus-visible .grade-card__num { color: #fff; }
.grade-card:hover .grade-card__label, .grade-card:focus-visible .grade-card__label { color: rgba(255, 255, 255, 0.85); }
.grade-card:hover::before, .grade-card:focus-visible::before { background: rgba(255, 255, 255, 0.14); transform: rotate(30deg) scale(1.15); }
.grade-card:hover .grade-card__go, .grade-card:focus-visible .grade-card__go { transform: translateX(3px); }
.grade-card:hover .grade-card__tag, .grade-card:focus-visible .grade-card__tag { background: #fff; color: var(--sage-800); }
@media (prefers-reduced-motion: no-preference) {
  .grade-grid li { animation: bl-rise 0.6s var(--ease) both; }
  .grade-grid li:nth-child(1) { animation-delay: 0.35s; } .grade-grid li:nth-child(2) { animation-delay: 0.41s; }
  .grade-grid li:nth-child(3) { animation-delay: 0.47s; } .grade-grid li:nth-child(4) { animation-delay: 0.53s; }
  .grade-grid li:nth-child(5) { animation-delay: 0.59s; } .grade-grid li:nth-child(6) { animation-delay: 0.65s; }
}
.register { padding-top: 56px; }
.site-header .logo__text small { white-space: nowrap; }
.grade-card__tag { white-space: nowrap; }
@media (max-width: 520px) { .grade-card__tag { font-size: 10px; padding: 2px 7px; left: 10px; top: 10px; } .grade-card__num { font-size: 50px; } }
@media (max-width: 380px) { .site-header .logo__text small { display: none; } }
.site-header .logo__mark { flex: none; box-sizing: border-box; width: 46px; height: 46px; min-width: 46px; }
.hero .search-box { z-index: 5; }
.hero .search-results { max-height: 300px; }
