/* ==========================================================================
   Homepage motion sections (index.php only)
   1. The bottleneck band: a live drawing of work jamming, being found, and cleared
   2. "After you sign up": animated bento of what comes with every school
   All motion is driven by js/home-motion.js (GSAP + small CSS loops).
   Every element's resting CSS state is its finished state, so the page reads
   correctly with no JavaScript and for visitors who prefer reduced motion.
   ========================================================================== */

/* ---------- shared: split-word headline reveal ---------- */
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.sw-i { display: inline-block; will-change: transform; }

/* ==========================================================================
   1. BOTTLENECK BAND
   ========================================================================== */
.bottleneck {
  position: relative;
  overflow: hidden;
  padding: clamp(88px, 10vw, 128px) 0 12px;
  text-align: center;
  background:
    radial-gradient(900px 420px at 50% 6%, rgba(195, 200, 251, .42), rgba(195, 200, 251, 0) 70%),
    linear-gradient(180deg, #fff 0%, #f7f6ff 40%, #f7f6ff 72%, #fff 100%);
}
.bn-copy { position: relative; z-index: 2; }
.bn-heading {
  font-size: clamp(31px, 4.6vw, 54px);
  font-weight: 700;
  letter-spacing: -.032em;
  line-height: 1.08;
  max-width: 21ch;
  margin: 0 auto;
  color: var(--text);
}
.bn-accent { color: var(--brand); }
.bn-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 58ch;
  margin: 22px auto 34px;
}

.bn-stage {
  position: relative;
  height: clamp(220px, 25vw, 340px);
  margin-top: clamp(16px, 3vw, 36px);
}
.bn-svg { display: block; width: 100%; height: 100%; }

.bn-body { fill: url(#bnBodyGrad); }
.bn-wall {
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.7;
  stroke-opacity: .55;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.bn-center {
  fill: none;
  stroke: #c3c8fb;
  stroke-width: 1.2;
  stroke-dasharray: 2 8;
  vector-effect: non-scaling-stroke;
}
/* .bn-p fill is set per frame by js/home-motion.js (orange when stuck, purple when flowing) */

/* pills drawn inside the SVG */
.bn-pill { opacity: 0; filter: drop-shadow(0 6px 14px rgba(27, 31, 40, .12)); }
.bn-pill text { font-family: var(--font); font-size: 14px; font-weight: 700; letter-spacing: -.005em; }
.bn-tag rect { fill: #fff; stroke: #f5c3a6; stroke-width: 1; }
.bn-tag text { fill: #b4532a; }
.bn-found rect { fill: var(--brand); }
.bn-found text { fill: #fff; }
.bn-sorted rect { fill: #2f9e5b; }
.bn-sorted text { fill: #fff; }
.bn-check { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.bn-pulse { fill: none; stroke: var(--brand); stroke-width: 2; opacity: 0; }

.bn-lens { opacity: 0; }
.bn-lens .glass { fill: rgba(255, 255, 255, .62); stroke: var(--text); stroke-width: 3; }
.bn-lens .rim { fill: none; stroke: #fff; stroke-width: 1.5; opacity: .9; }
.bn-lens .handle { stroke: var(--text); stroke-width: 8; stroke-linecap: round; }
.bn-lens .glint { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; }

/* ==========================================================================
   2. AFTER YOU SIGN UP (bento)
   ========================================================================== */
.bx {
  position: relative;
  overflow: hidden;
  padding: clamp(92px, 10vw, 144px) 0;
  background: linear-gradient(180deg, #fff 0%, #f8f8fc 16%, #f8f8fc 84%, #fff 100%);
}
.bx > .container { position: relative; z-index: 1; }

/* soft moving colour behind the cards */
.bx-aura { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.bx-blob { position: absolute; width: 48vw; max-width: 660px; aspect-ratio: 1; }
.bx-blob i { position: absolute; inset: 0; border-radius: 50%; filter: blur(80px); }
.bx-blob.b1 { top: -6%; left: -14%; }
.bx-blob.b1 i { background: var(--edu-1); opacity: .6; }
.bx-blob.b2 { top: 28%; right: -16%; }
.bx-blob.b2 i { background: var(--health-1); opacity: .42; }
.bx-blob.b3 { bottom: -18%; left: 26%; }
.bx-blob.b3 i { background: var(--agri-1); opacity: .38; }
.bx-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(69, 54, 224, .16) 1px, transparent 1.3px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, #000 0%, transparent 75%);
}

/* heading */
.bx-head { text-align: center; max-width: 780px; margin: 0 auto clamp(48px, 6vw, 76px); }
.bx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  padding: 7px 15px 7px 11px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .85);
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px -10px rgba(36, 30, 110, .25);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand-deep);
}
.bx-eyebrow-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.bx-eyebrow-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--brand);
  opacity: 0;
}
.bx-title {
  font-size: clamp(34px, 5.4vw, 62px);
  font-weight: 700;
  letter-spacing: -.036em;
  line-height: 1.04;
  color: var(--text);
}
.bx-title .bx-accent { color: var(--brand); }
.bx-intro {
  margin: 24px auto 0;
  max-width: 60ch;
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--text-soft);
}

/* grid */
.bx-bento { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 680px) {
  .bx-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bx-wide { grid-column: span 2; }
}
@media (min-width: 1040px) {
  .bx-bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* card */
.bx-card {
  --mx: 50%;
  --my: 0%;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 20px 20px 26px;
  border-radius: 26px;
  background: rgba(255, 255, 255, .84);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
          backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(225, 228, 235, .95);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 22px 44px -26px rgba(36, 30, 110, .26);
  transition: transform .55s cubic-bezier(.2, .8, .2, 1), box-shadow .55s ease;
}
.bx-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 34px 64px -28px rgba(36, 30, 110, .36);
}
/* cursor spotlight */
.bx-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(440px circle at var(--mx) var(--my), rgba(69, 54, 224, .075), transparent 45%);
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}
/* glowing border that follows the cursor */
.bx-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(69, 54, 224, .65), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}
.bx-card:hover::before, .bx-card:hover::after { opacity: 1; }
.bx-wide { padding: 30px 26px 26px; }

.bx-copy { padding: 0 6px; }
.bx-label {
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
}
.bx-copy h3 {
  margin: 0 0 8px;
  font-size: 18.5px;
  font-weight: 700;
  letter-spacing: -.016em;
  line-height: 1.3;
  color: var(--text);
}
.bx-wide .bx-copy h3 { font-size: clamp(21px, 2.1vw, 26px); letter-spacing: -.022em; line-height: 1.22; margin-bottom: 12px; }
.bx-copy p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--text-soft); }
.bx-wide .bx-copy p { max-width: 54ch; }
.bx-copy a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* the little "screen" each card shows */
.bx-vis {
  position: relative;
  overflow: hidden;
  height: 192px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f9f9fe 0%, #f2f1fd 100%);
  border: 1px solid #eceafb;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text);
}
.bx-wide .bx-vis { height: auto; min-height: 212px; margin-top: auto; padding: 18px; }
.mini {
  background: #fff;
  border: 1px solid #eceef3;
  border-radius: 12px;
  box-shadow: 0 8px 18px -12px rgba(27, 31, 40, .22);
}

/* ---------- card: setup and training ---------- */
.bv-onboard { display: flex; flex-direction: column; gap: 16px; }
.bv-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bv-steps li { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; color: var(--text-softer); font-size: 12px; }
.bv-steps b { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 1px; }
.bv-line {
  position: absolute;
  top: 9px;
  left: 10px;
  right: calc((100% - 16px) / 3 - 10px);
  height: 2px;
  border-radius: 2px;
  background: #dedcf7;
  z-index: 0;
}
.bv-fill { position: absolute; inset: 0; border-radius: inherit; background: var(--brand); transform-origin: left center; }
.bv-dot {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid var(--brand);
  box-shadow: 0 0 0 4px #f8f8fd;
}
.bv-dot::after {
  content: "";
  position: absolute;
  left: 5px; top: 2px;
  width: 4px; height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.bv-steps li:nth-child(3) .bv-dot { background: #fff; box-shadow: 0 0 0 5px var(--brand-tint); }
.bv-steps li:nth-child(3) .bv-dot::after { display: none; }

.bv-chat { display: flex; flex-direction: column; gap: 8px; }
.bv-msg { max-width: 86%; margin: 0; padding: 9px 13px; border-radius: 15px; font-size: 13px; line-height: 1.5; }
.bv-q { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 5px; }
.bv-a { position: relative; align-self: flex-start; display: flex; gap: 9px; align-items: flex-start; border-bottom-left-radius: 5px; }
.bv-bot {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--brand-tint);
}
.bv-bot svg { width: 13px; height: 13px; fill: var(--brand); }
.bv-a-body { position: relative; }
.bv-typing { position: absolute; left: 0; top: 50%; display: flex; gap: 4px; transform: translateY(-50%); opacity: 0; }
.bv-typing i { width: 6px; height: 6px; border-radius: 50%; background: #b9b3f3; }

/* ---------- card: your data ---------- */
.bv-secure { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .bv-secure { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } }
.bv-secure > * { min-width: 0; }
.bv-roles { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bv-roles li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px 9px 12px; }
.bv-role { font-weight: 700; font-size: 12.5px; }
.bv-sees {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid #e6e5f5;
  background: #fff;
  color: var(--text-soft);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.bv-sees svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bv-log { padding: 11px 12px 4px; }
.bv-log-title { display: flex; align-items: center; gap: 7px; margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-softer); }
.bv-live { width: 7px; height: 7px; border-radius: 50%; background: #2f9e5b; box-shadow: 0 0 0 3px rgba(47, 158, 91, .18); }
.bv-log-window { height: 114px; overflow: hidden; }
.bv-log-list { margin: 0; padding: 0; list-style: none; }
.bv-log-list li { display: flex; align-items: center; gap: 9px; height: 38px; border-top: 1px solid #f1f2f6; }
.bv-log-list li:first-child { border-top: 0; }
.bv-av {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand-deep);
  font-size: 10px;
  font-weight: 800;
}
.bv-av.a2 { background: #e5f5ec; color: #23764a; }
.bv-av.a3 { background: #fdeee6; color: #b4532a; }
.bv-log-text { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--text-soft); font-size: 12px; }
.bv-log-text b { color: var(--text); font-weight: 700; }
.bv-log-list time { flex: none; font-size: 11px; color: var(--text-softer); font-variant-numeric: tabular-nums; }

/* ---------- card: reports ---------- */
.bv-report { display: flex; flex-direction: column; }
.bv-cap { margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-softer); }
.bv-bars { flex: 1; display: flex; align-items: flex-end; gap: 7px; padding-top: 34px; }
.bv-bar { position: relative; flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 5px; }
.bv-bar i {
  display: block;
  width: 100%;
  height: var(--h);
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, #8f86ef, var(--brand));
  transform-origin: bottom center;
}
.bv-bar small { font-size: 10.5px; font-weight: 600; color: var(--text-softer); }
.bv-bar.is-flag i { background: linear-gradient(180deg, #f6a679, #e0782f); }
.bv-bar.is-flag small { color: #b4532a; }
.bv-tip {
  position: absolute;
  left: 50%;
  bottom: calc(var(--h) + 24px);
  z-index: 3;
  transform: translateX(-50%);
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 18px -8px rgba(27, 31, 40, .45);
}
.bv-tip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  margin-left: -4px;
  border: 4px solid transparent;
  border-top-color: var(--text);
}

/* ---------- card: languages ---------- */
.bv-lang { display: flex; flex-direction: column; gap: 12px; }
.bv-slide { display: grid; grid-template-columns: 1fr 50px; gap: 10px; padding: 11px 12px; }
.bv-slide-title { display: block; margin-bottom: 9px; font-size: 12.5px; font-weight: 700; }
.bv-slide-lines span { display: block; height: 6px; margin-top: 6px; border-radius: 4px; background: #e6e4fa; transform-origin: left center; }
.bv-slide-lines span:nth-child(1) { width: 92%; }
.bv-slide-lines span:nth-child(2) { width: 74%; }
.bv-slide-lines span:nth-child(3) { width: 56%; }
.bv-slide-img { border-radius: 8px; background: linear-gradient(135deg, var(--edu-1), #d6f0c0); }
.bv-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.bv-chip {
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid #e6e5f5;
  color: var(--text-soft);
  font-size: 11.5px;
  font-weight: 700;
}
.bv-chip.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- card: payments and messages ---------- */
.bv-notify { display: flex; flex-direction: column; gap: 8px; }
.bv-note { display: flex; align-items: center; gap: 10px; padding: 7px 10px; }
.bv-note-ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.bv-note-ic svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-pay { background: #2f9e5b; }
.ic-sms { background: var(--brand); }
.ic-ppt { background: #e0782f; }
.bv-note-text { min-width: 0; }
.bv-note-text b { display: block; font-size: 12.5px; font-weight: 700; }
.bv-note-text span { display: block; font-size: 11.5px; color: var(--text-softer); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- card: poor network ---------- */
.bv-net { display: flex; flex-direction: column; gap: 8px; }
.bv-net-top { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-softer); }
.bv-signal { display: flex; align-items: flex-end; gap: 2px; height: 13px; }
.bv-signal i { width: 3px; border-radius: 1px; background: var(--text); }
.bv-signal i:nth-child(1) { height: 4px; }
.bv-signal i:nth-child(2) { height: 7px; }
.bv-signal i:nth-child(3) { height: 10px; }
.bv-signal i:nth-child(4) { height: 13px; }
.bv-rows { display: flex; flex-direction: column; gap: 5px; }
.bv-row { display: flex; align-items: center; gap: 8px; padding: 6px 9px; font-size: 12px; }
.bv-row span { flex: 1; color: var(--text-soft); }
.bv-row b { font-variant-numeric: tabular-nums; }
.bv-state { position: relative; width: 16px; height: 16px; flex: none; }
.bv-state svg { position: absolute; inset: 0; width: 16px; height: 16px; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bv-state .wait { stroke: #e0782f; opacity: 0; }
.bv-state .done { stroke: #2f9e5b; }
.bv-status { position: relative; height: 30px; }
.bv-pill {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
.bv-pill.off { background: #fdeee6; color: #b4532a; opacity: 0; }
.bv-pill.on { background: #e5f5ec; color: #23764a; }

/* ---------- card: records anyone can check ---------- */
.bv-verify { display: grid; gap: 14px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 520px) { .bv-verify { grid-template-columns: 1.1fr 1fr; } }
.bv-doc { position: relative; overflow: hidden; padding: 14px; }
.bv-doc-head { margin: 0 0 3px; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.bv-doc-name { margin: 0 0 10px; font-size: 14px; font-weight: 700; }
.bv-doc-body { display: flex; gap: 12px; align-items: flex-end; }
.bv-doc-lines { flex: 1; }
.bv-doc-lines span { display: block; height: 6px; margin-top: 7px; border-radius: 4px; background: #eceaf7; }
.bv-doc-lines span:nth-child(2) { width: 82%; }
.bv-doc-lines span:nth-child(3) { width: 64%; }
.bv-doc-lines span:nth-child(4) { width: 74%; }
.bv-qr { position: relative; flex: none; width: 58px; height: 58px; padding: 4px; border-radius: 8px; border: 1px solid #eceef3; background: #fff; }
.bv-qr svg { width: 100%; height: 100%; fill: var(--text); }
.bv-beam {
  position: absolute;
  left: -4px;
  right: -4px;
  top: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--brand);
  box-shadow: 0 0 12px 2px rgba(69, 54, 224, .55);
  opacity: 0;
}
.bv-stamp {
  position: absolute;
  left: 22px;
  bottom: 14px;
  padding: 4px 10px;
  border: 2px solid #2f9e5b;
  border-radius: 8px;
  color: #2f9e5b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  transform: rotate(-8deg);
  background: rgba(255, 255, 255, .9);
}
.bv-check { display: flex; flex-direction: column; gap: 8px; }
.bv-field { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 11px; }
.bv-field small { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-softer); }
.bv-field code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 600; color: var(--text); letter-spacing: .04em; }
.bv-result { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-color: #cfead9; background: #f3fbf6; }
.bv-result-ic { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #2f9e5b; }
.bv-result-ic svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.bv-result b { display: block; font-size: 12.5px; color: #1d6b40; }
.bv-result span { display: block; font-size: 11.5px; color: var(--text-soft); }

/* ---------- card: new features ---------- */
.bv-new { display: grid; grid-template-columns: 44px 1fr; gap: 12px; min-height: 212px; }
.bv-side { display: flex; flex-direction: column; gap: 8px; padding: 10px 8px; }
.bv-side span { height: 8px; border-radius: 4px; background: #eceaf7; }
.bv-side span:first-child { height: 22px; border-radius: 7px; background: var(--brand); }
.bv-main { position: relative; display: flex; flex-direction: column; gap: 10px; }
.bv-topbar { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; }
.bv-topbar span { width: 38%; height: 8px; border-radius: 4px; background: #eceaf7; }
.bv-bell { position: relative; width: 18px; height: 18px; transform-origin: 50% 10%; }
.bv-bell svg { width: 18px; height: 18px; fill: none; stroke: var(--text); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.bv-badge {
  position: absolute;
  top: -5px;
  right: -6px;
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e0484f;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  box-shadow: 0 0 0 2px #fff;
}
.bv-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bv-tiles span { height: 46px; border-radius: 10px; background: #fff; border: 1px solid #eceef3; }
.bv-whatsnew {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(280px, 92%);
  padding: 12px 13px;
  border-color: #dcd8fb;
  box-shadow: 0 18px 36px -16px rgba(36, 30, 110, .38);
}
.bv-wn-label { display: flex; align-items: center; gap: 6px; margin: 0 0 5px; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.bv-wn-label svg { width: 13px; height: 13px; fill: var(--brand); }
.bv-whatsnew b { display: block; margin-bottom: 3px; font-size: 13.5px; font-weight: 700; }
.bv-whatsnew p { margin: 0; font-size: 12px; line-height: 1.5; color: var(--text-soft); }

/* ==========================================================================
   Motion loops. They only run while a card is on screen (.is-live, set by
   js/home-motion.js) and never for visitors who prefer reduced motion.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .bx-blob.b1 i { animation: bxDrift 22s ease-in-out infinite alternate; }
  .bx-blob.b2 i { animation: bxDrift 26s ease-in-out -8s infinite alternate-reverse; }
  .bx-blob.b3 i { animation: bxDrift 30s ease-in-out -4s infinite alternate; }
  .bx-eyebrow-dot::after { animation: bxPing 2.4s cubic-bezier(0, 0, .2, 1) infinite; }

  .is-live .bv-fill { animation: bvFill 10s ease-in-out infinite both; }
  .is-live .bv-steps li:nth-child(2) .bv-dot { animation: bvDot2 10s ease infinite both; }
  .is-live .bv-steps li:nth-child(2) .bv-dot::after { animation: bvTick 10s ease infinite both; }
  .is-live .bv-steps li:nth-child(3) .bv-dot { animation: bvDot3 10s ease infinite both; }
  .is-live .bv-q { animation: bvQ 10s ease infinite both; }
  .is-live .bv-a { animation: bvA 10s ease infinite both; }
  .is-live .bv-typing { animation: bvTyping 10s ease infinite both; }
  .is-live .bv-a-text { animation: bvAText 10s ease infinite both; }
  .is-live .bv-typing i { animation: bvBounce 1s ease-in-out infinite; }
  .is-live .bv-typing i:nth-child(2) { animation-delay: .15s; }
  .is-live .bv-typing i:nth-child(3) { animation-delay: .3s; }

  .is-live .bv-roles li:nth-child(1) .bv-sees { animation: bvSee 6s ease infinite both; }
  .is-live .bv-roles li:nth-child(2) .bv-sees { animation: bvSee 6s ease 2s infinite both; }
  .is-live .bv-roles li:nth-child(3) .bv-sees { animation: bvSee 6s ease 4s infinite both; }
  .is-live .bv-log-list { animation: bvLog 9s cubic-bezier(.7, 0, .3, 1) infinite; }
  .is-live .bv-live { animation: bvLive 1.6s ease-in-out infinite; }

  .is-live .bv-bar i { animation: bvGrow 8s cubic-bezier(.2, .8, .2, 1) infinite both; }
  .is-live .bv-bar:nth-child(2) i { animation-delay: .08s; }
  .is-live .bv-bar:nth-child(3) i { animation-delay: .16s; }
  .is-live .bv-bar:nth-child(4) i { animation-delay: .24s; }
  .is-live .bv-bar:nth-child(5) i { animation-delay: .32s; }
  .is-live .bv-bar:nth-child(6) i { animation-delay: .40s; }
  .is-live .bv-tip { animation: bvTip 8s ease infinite both; }

  .is-live .bv-chip { animation: bvChip 7.2s ease infinite both; }
  .is-live .bv-chip:nth-child(2) { animation-delay: 1.2s; }
  .is-live .bv-chip:nth-child(3) { animation-delay: 2.4s; }
  .is-live .bv-chip:nth-child(4) { animation-delay: 3.6s; }
  .is-live .bv-chip:nth-child(5) { animation-delay: 4.8s; }
  .is-live .bv-chip:nth-child(6) { animation-delay: 6s; }
  .is-live .bv-slide-lines span { animation: bvWipe 1.2s cubic-bezier(.2, .8, .2, 1) infinite both; }
  .is-live .bv-slide-lines span:nth-child(2) { animation-delay: .06s; }
  .is-live .bv-slide-lines span:nth-child(3) { animation-delay: .12s; }

  .is-live .bv-note { animation: bvNote 9s cubic-bezier(.2, .8, .2, 1) infinite both; }
  .is-live .bv-note:nth-child(2) { animation-delay: .9s; }
  .is-live .bv-note:nth-child(3) { animation-delay: 1.8s; }

  .is-live .bv-signal i:nth-child(n+2) { animation: bvSignal 9s ease infinite both; }
  .is-live .bv-signal i:nth-child(1) { animation: bvSignal1 9s ease infinite both; }
  .is-live .bv-row .wait { animation: bvWait 9s ease infinite both; }
  .is-live .bv-row .done { animation: bvDone 9s ease infinite both; }
  .is-live .bv-row:nth-child(2) .wait, .is-live .bv-row:nth-child(2) .done { animation-delay: .35s; }
  .is-live .bv-row:nth-child(3) .wait, .is-live .bv-row:nth-child(3) .done { animation-delay: .7s; }
  .is-live .bv-pill.off { animation: bvOff 9s ease infinite both; }
  .is-live .bv-pill.on { animation: bvOn 9s ease infinite both; }

  .is-live .bv-beam { animation: bvBeam 8s ease-in-out infinite both; }
  .is-live .bv-stamp { animation: bvStamp 8s cubic-bezier(.3, 1.6, .5, 1) infinite both; }
  .is-live .bv-result { animation: bvResult 8s ease infinite both; }

  .is-live .bv-whatsnew { animation: bvNew 8s cubic-bezier(.2, .8, .2, 1) infinite both; }
  .is-live .bv-badge { animation: bvBadge 8s cubic-bezier(.3, 1.6, .5, 1) infinite both; }
  .is-live .bv-bell { animation: bvRing 8s ease infinite both; }
}

@keyframes bxDrift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(7%, 5%) scale(1.08); }
  100% { transform: translate(-5%, 9%) scale(.95); }
}
@keyframes bxPing {
  0%   { transform: scale(.6); opacity: .8; }
  80%, 100% { transform: scale(1.8); opacity: 0; }
}

/* setup and training (10s) */
@keyframes bvFill {
  0%       { transform: scaleX(0); }
  10%, 14% { transform: scaleX(.5); }
  24%, 92% { transform: scaleX(1); }
  100%     { transform: scaleX(0); }
}
@keyframes bvDot2 {
  0%, 9%   { background: #fff; border-color: #dedcf7; }
  11%, 93% { background: var(--brand); border-color: var(--brand); }
  100%     { background: #fff; border-color: #dedcf7; }
}
@keyframes bvTick {
  0%, 10%  { opacity: 0; }
  12%, 93% { opacity: 1; }
  100%     { opacity: 0; }
}
@keyframes bvDot3 {
  0%, 22%  { border-color: #dedcf7; box-shadow: 0 0 0 4px #f8f8fd; }
  25%, 92% { border-color: var(--brand); box-shadow: 0 0 0 5px var(--brand-tint); }
  100%     { border-color: #dedcf7; box-shadow: 0 0 0 4px #f8f8fd; }
}
@keyframes bvQ {
  0%, 29%  { opacity: 0; transform: translateY(8px) scale(.96); }
  33%, 92% { opacity: 1; transform: none; }
  97%, 100% { opacity: 0; transform: translateY(-4px); }
}
@keyframes bvA {
  0%, 39%  { opacity: 0; transform: translateY(8px) scale(.96); }
  43%, 92% { opacity: 1; transform: none; }
  97%, 100% { opacity: 0; transform: translateY(-4px); }
}
@keyframes bvTyping {
  0%, 42%  { opacity: 1; }
  54%, 100% { opacity: 0; }
}
@keyframes bvAText {
  0%, 54%  { opacity: 0; }
  59%, 100% { opacity: 1; }
}
@keyframes bvBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30%           { transform: translateY(-4px); }
}

/* your data */
@keyframes bvSee {
  0%, 2%    { background: #fff; border-color: #e6e5f5; color: var(--text-soft); }
  6%, 30%   { background: var(--brand-tint); border-color: #c9c4f7; color: var(--brand-deep); }
  36%, 100% { background: #fff; border-color: #e6e5f5; color: var(--text-soft); }
}
@keyframes bvLog {
  0%, 28%   { transform: translateY(0); }
  33%, 61%  { transform: translateY(-38px); }
  66%, 94%  { transform: translateY(-76px); }
  100%      { transform: translateY(-114px); }
}
@keyframes bvLive {
  0%, 100% { box-shadow: 0 0 0 3px rgba(47, 158, 91, .18); }
  50%      { box-shadow: 0 0 0 6px rgba(47, 158, 91, .05); }
}

/* reports (8s) */
@keyframes bvGrow {
  0%       { transform: scaleY(0); }
  16%, 90% { transform: scaleY(1); }
  97%, 100% { transform: scaleY(0); }
}
@keyframes bvTip {
  0%, 22%  { opacity: 0; transform: translate(-50%, 8px) scale(.9); }
  27%, 87% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  92%, 100% { opacity: 0; transform: translate(-50%, 4px) scale(.95); }
}

/* languages (7.2s, 1.2s per language) */
@keyframes bvChip {
  0%        { background: #fff; border-color: #e6e5f5; color: var(--text-soft); }
  2%, 15%   { background: var(--brand); border-color: var(--brand); color: #fff; }
  18%, 100% { background: #fff; border-color: #e6e5f5; color: var(--text-soft); }
}
@keyframes bvWipe {
  0%        { transform: scaleX(0); }
  45%, 100% { transform: scaleX(1); }
}

/* payments and messages (9s) */
@keyframes bvNote {
  0%        { opacity: 0; transform: translateY(16px) scale(.96); }
  7%, 84%   { opacity: 1; transform: none; }
  92%, 100% { opacity: 0; transform: translateY(-8px) scale(.98); }
}

/* poor network (9s) */
@keyframes bvSignal {
  0%, 28%   { opacity: 1; }
  32%, 64%  { opacity: .15; }
  68%, 100% { opacity: 1; }
}
@keyframes bvSignal1 {
  0%, 28%   { background: var(--text); }
  32%, 64%  { background: #e0782f; }
  68%, 100% { background: var(--text); }
}
@keyframes bvWait {
  0%, 34%   { opacity: 0; transform: scale(.6); }
  38%, 68%  { opacity: 1; transform: none; }
  72%, 100% { opacity: 0; transform: scale(.6); }
}
@keyframes bvDone {
  0%, 30%   { opacity: 1; transform: none; }
  34%, 70%  { opacity: 0; transform: scale(.6); }
  75%, 100% { opacity: 1; transform: none; }
}
@keyframes bvOff {
  0%, 30%   { opacity: 0; transform: translateY(6px); }
  35%, 64%  { opacity: 1; transform: none; }
  68%, 100% { opacity: 0; transform: translateY(-4px); }
}
@keyframes bvOn {
  0%, 26%   { opacity: 1; transform: none; }
  30%, 68%  { opacity: 0; transform: translateY(6px); }
  73%, 100% { opacity: 1; transform: none; }
}

/* records anyone can check (8s) */
@keyframes bvBeam {
  0%        { opacity: 0; top: 0; }
  4%        { opacity: 1; top: 0; }
  18%       { opacity: 1; top: calc(100% - 3px); }
  30%       { opacity: 1; top: 0; }
  34%, 100% { opacity: 0; top: 0; }
}
@keyframes bvStamp {
  0%, 36%   { opacity: 0; transform: rotate(-8deg) scale(1.8); }
  42%, 90%  { opacity: 1; transform: rotate(-8deg) scale(1); }
  96%, 100% { opacity: 0; transform: rotate(-8deg) scale(1); }
}
@keyframes bvResult {
  0%, 33%   { opacity: 0; transform: translateY(8px); }
  38%, 90%  { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: none; }
}

/* new features (8s) */
@keyframes bvNew {
  0%, 12%   { opacity: 0; transform: translateY(26px) scale(.97); }
  20%, 88%  { opacity: 1; transform: none; }
  95%, 100% { opacity: 0; transform: translateY(10px); }
}
@keyframes bvBadge {
  0%, 13%   { transform: scale(0); }
  18%, 90%  { transform: scale(1); }
  96%, 100% { transform: scale(0); }
}
@keyframes bvRing {
  0%, 13%, 24%, 100% { transform: rotate(0); }
  15% { transform: rotate(14deg); }
  17% { transform: rotate(-12deg); }
  19% { transform: rotate(8deg); }
  21% { transform: rotate(-5deg); }
}

/* ==========================================================================
   3. WORKING WITH US: three service cards in one row
   ========================================================================== */
.bx-bento.bx-three { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
.bx-three .bx-card { padding: 28px 22px 22px; }
.bx-three .bx-copy h3 { font-size: clamp(19px, 1.6vw, 21px); line-height: 1.28; letter-spacing: -.02em; margin-bottom: 10px; }
.bx-three .bx-copy p { font-size: 14.8px; }
.bx-three .bx-vis { height: auto; margin-top: auto; padding: 16px; }
.bx-three .bv-secure { grid-template-columns: 1fr; }
.bx-three .bv-log-window { height: 76px; }
@media (min-width: 960px) {
  .bx-bento.bx-three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
  .bx-three .bx-vis { height: 292px; }
  .bx-three .bv-onboard { justify-content: space-between; }
  .bx-three .bv-new { min-height: 0; height: 100%; }
}

/* ==========================================================================
   4. GAGNER IN NUMBERS (homepage version): student cards + party poppers
   ========================================================================== */
.numbers-home { position: relative; overflow: hidden; padding-bottom: clamp(150px, 14vw, 190px); }
/* poppers are placed against the section's bottom corners, so the container stays unpositioned */
.confetti-canvas { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; pointer-events: none; }

.numbers-home {
  background:
    radial-gradient(900px 520px at 12% 0%, rgba(195, 200, 251, .38), rgba(195, 200, 251, 0) 62%),
    radial-gradient(700px 480px at 100% 70%, rgba(255, 201, 190, .22), rgba(255, 201, 190, 0) 60%),
    linear-gradient(180deg, #f8f8fc 0%, #f4f3fb 100%);
}

/* heading */
.nb-head { display: grid; gap: 18px 48px; align-items: end; margin-bottom: clamp(32px, 4vw, 48px); }
@media (min-width: 900px) { .nb-head { grid-template-columns: 1fr auto; } }
.nb-head h2 { margin: 0; max-width: 17ch; }
.nb-asof {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  margin: 0;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .85);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
}
.nb-asof span { width: 7px; height: 7px; border-radius: 50%; background: #2f9e5b; box-shadow: 0 0 0 3px rgba(47, 158, 91, .18); }

/* the big gradient numbers */
.nb-num {
  margin: 0;
  font-size: clamp(52px, 5.4vw, 74px);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: .95;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #2a20b0 0%, #4536e0 45%, #8a7ef5 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  padding-bottom: .06em;
}
.nb-title { margin: 12px 0 6px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; color: var(--text); }
.nb-text { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text-soft); }

/* school figures: one panel, three columns */
.nb-strip {
  display: grid;
  grid-template-columns: 1fr;
  background: #fff;
  border: 1px solid rgba(225, 228, 235, .9);
  border-radius: 28px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 30px 60px -42px rgba(36, 30, 110, .4);
}
.nb-cell { display: flex; flex-direction: column; padding: 30px 28px; }
.nb-cell + .nb-cell { border-top: 1px solid #eef0f4; }
@media (min-width: 900px) {
  .nb-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nb-cell { padding: 36px 36px 34px; }
  .nb-cell + .nb-cell { border-top: 0; border-left: 1px solid #eef0f4; }
}
.nb-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-softer);
}
.nb-tag::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--brand); }
.nb-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 20px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--brand);
}
.nb-link span { transition: transform .2s ease; }
.nb-link:hover span { transform: translateX(3px); }

.nb-people { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; }
.nb-avatars { display: flex; flex: none; }
.nb-avatars i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: -9px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  overflow: hidden;
}
.nb-avatars i:first-child { margin-left: 0; }
.nb-avatars svg { width: 24px; height: 24px; margin-top: 8px; fill: rgba(255, 255, 255, .92); }
.nb-avatars .av1 { background: var(--brand); }
.nb-avatars .av2 { background: #2f9e5b; }
.nb-avatars .av3 { background: #e0782f; }
.nb-avatars .av4 { background: #c2417a; }
.nb-people .nb-text { font-size: 13.5px; line-height: 1.45; }

.nb-word { letter-spacing: -.045em; }
.nb-stages {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: auto 0 0;
  padding: 26px 0 0;
  list-style: none;
}
.nb-stages::before {
  content: "";
  position: absolute;
  top: 31px;
  left: 6px;
  right: calc(25% - 6px);
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), #c3c8fb);
}
.nb-stages li { position: relative; padding-top: 22px; font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--text-soft); }
.nb-stages li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brand);
}

/* student bento */
.nb-kids { margin-top: clamp(48px, 6vw, 72px); }
.kids-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-deep);
}
.kids-label span { width: 28px; height: 2px; border-radius: 2px; background: var(--brand); }

.nb-bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 960px) {
  .nb-bento { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
  .nb-tutor { grid-row: span 2; }
}
.nb-card { position: relative; overflow: hidden; border-radius: 28px; }

/* lead card: the AI tutor */
.nb-tutor {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: 440px;
  padding: clamp(28px, 3.4vw, 40px);
  color: #fff;
  background:
    radial-gradient(520px 320px at 100% 0%, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 60%),
    radial-gradient(520px 420px at 0% 100%, rgba(139, 127, 245, .7), rgba(139, 127, 245, 0) 62%),
    linear-gradient(145deg, #3424cf 0%, #4536e0 45%, #5a4bef 100%);
  box-shadow: 0 34px 70px -38px rgba(53, 40, 200, .7);
}
.nb-tutor::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1.3px);
  background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 85% 15%, #000, transparent 70%);
          mask-image: radial-gradient(ellipse 60% 60% at 85% 15%, #000, transparent 70%);
  pointer-events: none;
}
.nb-tutor > * { position: relative; }
.nb-chip {
  display: inline-block;
  margin: 0 0 22px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .26);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .01em;
}
.nb-num-xl {
  font-size: clamp(72px, 8vw, 112px);
  background: linear-gradient(180deg, #fff 30%, #d9d4ff 100%);
  -webkit-background-clip: text;
          background-clip: text;
}
.nb-tutor .nb-title { margin-top: 14px; font-size: clamp(19px, 1.8vw, 22px); color: #fff; max-width: 22ch; }
.nb-tutor .nb-text { color: rgba(255, 255, 255, .8); font-size: 15px; max-width: 42ch; }

.nb-chat { display: flex; flex-direction: column; gap: 8px; width: min(100%, 380px); align-self: flex-end; }
.nb-bubble { margin: 0; padding: 11px 14px; font-size: 13.5px; line-height: 1.5; }
.nb-me {
  align-self: flex-end;
  max-width: 82%;
  border-radius: 16px 16px 4px 16px;
  background: #fff;
  color: var(--text);
  font-weight: 500;
  box-shadow: 0 12px 24px -14px rgba(20, 12, 90, .6);
}
.nb-ai {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border-radius: 16px 16px 16px 4px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .24);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.nb-ai-mark { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: #fff; }
.nb-ai-mark svg { width: 13px; height: 13px; fill: var(--brand); }
.nb-time { margin: 0; align-self: flex-end; font-size: 11.5px; color: rgba(255, 255, 255, .6); }

/* side cards: Kraftly and certificates */
.nb-side {
  display: grid;
  gap: 22px;
  align-items: center;
  padding: 28px;
  background: #fff;
  border: 1px solid rgba(225, 228, 235, .9);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 24px 50px -40px rgba(36, 30, 110, .4);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s ease;
}
.nb-side:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 30px 60px -36px rgba(36, 30, 110, .45); }
@media (min-width: 560px) { .nb-side { grid-template-columns: minmax(0, 1fr) minmax(0, 200px); } }
.nb-side .nb-num { font-size: clamp(48px, 4.6vw, 62px); }
.nb-kraftly .nb-num { background-image: linear-gradient(135deg, #0f5c34 0%, #23864f 50%, #5cc48a 100%); }
.nb-certs .nb-num { background-image: linear-gradient(135deg, #8f4f00 0%, #d0820a 50%, #f2b544 100%); }
.nb-mini-head { margin: 0 0 10px; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-softer); }

.nb-skills { padding: 16px; border-radius: 18px; background: linear-gradient(180deg, #f5fbf7, #edf8f1); border: 1px solid #dcf0e3; }
.nb-skill { display: grid; grid-template-columns: 1fr auto; gap: 6px 8px; margin-bottom: 12px; font-size: 12.5px; }
.nb-skill span { font-weight: 600; color: var(--text); }
.nb-skill b { font-size: 11.5px; color: #23764a; }
.nb-skill i { grid-column: 1 / -1; position: relative; height: 6px; border-radius: 6px; background: #d6eedf; overflow: hidden; }
.nb-skill i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: inherit; background: linear-gradient(90deg, #23864f, #5cc48a); }
.nb-streak {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px 5px 8px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid #f6dcc8;
  font-size: 11.5px;
  font-weight: 700;
  color: #b4532a;
}
.nb-streak svg { width: 13px; height: 13px; fill: #e0782f; }

.nb-cert { position: relative; padding: 16px 16px 20px; border-radius: 18px; background: linear-gradient(180deg, #fffaf0, #fdf3df); border: 1px solid #f4e3c1; }
.nb-cert-paper {
  position: relative;
  padding: 14px 14px 16px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 22px -14px rgba(143, 79, 0, .45), inset 0 0 0 4px #fff, inset 0 0 0 5px #f1dfba;
}
.nb-cert-paper .nb-mini-head { margin-bottom: 4px; color: #b26a00; }
.nb-cert-name { margin: 0 0 10px; font-size: 13.5px; font-weight: 700; color: var(--text); }
.nb-line { display: block; width: 70%; height: 5px; margin-top: 6px; border-radius: 4px; background: #f1ebe0; }
.nb-line.short { width: 46%; }
.nb-seal { position: absolute; right: 10px; bottom: -14px; width: 34px; height: 41px; filter: drop-shadow(0 4px 6px rgba(143, 79, 0, .3)); }
.nb-verified {
  position: absolute;
  left: 16px;
  bottom: -11px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px 4px 7px;
  border-radius: var(--radius-pill);
  background: #2f9e5b;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 8px 16px -8px rgba(47, 158, 91, .7);
}
.nb-verified svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* party poppers in the bottom corners */
.popper {
  position: absolute;
  bottom: clamp(10px, 2vw, 26px);
  z-index: 4;
  width: clamp(86px, 9vw, 134px);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.popper-left { left: clamp(4px, 3vw, 56px); }
.popper-right { right: clamp(4px, 3vw, 56px); }
.popper svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 12px 18px rgba(36, 30, 110, .2)); }
.popper-right svg { transform: scaleX(-1); }
.popper-streamers path { fill: none; stroke-width: 3.5; stroke-linecap: round; }
.popper-cone, .popper-streamers { transform-box: fill-box; transform-origin: 50% 100%; }
.popper:focus-visible { outline-offset: 4px; border-radius: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .popper:hover .popper-cone { animation: popWiggle .6s ease-in-out; }
}
@keyframes popWiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-6deg); }
  60% { transform: rotate(5deg); }
}

/* ==========================================================================
   5. FAQ
   ========================================================================== */
.faq-layout { display: grid; gap: 36px; }
@media (min-width: 960px) {
  .faq-layout { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 72px; align-items: start; }
  .faq-head { position: sticky; top: calc(var(--nav-height) + 32px); }
}
.faq-head h2 { margin: 0 0 16px; max-width: 14ch; }
.faq-intro { margin: 0 0 26px; max-width: 40ch; font-size: 16px; line-height: 1.65; color: var(--text-soft); }
.faq-intro a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { margin: 0; font-size: inherit; }
.faq-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 4px;
  border: 0;
  background: none;
  text-align: left;
  font-size: clamp(16.5px, 1.5vw, 18.5px);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.4;
  color: var(--text);
  transition: color .2s ease;
}
.faq-btn:hover { color: var(--brand); }
.faq-icon {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: background .3s ease, border-color .3s ease, transform .45s cubic-bezier(.2, .8, .2, 1);
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), background .3s ease;
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item.is-open .faq-icon { background: var(--brand); border-color: var(--brand); transform: rotate(180deg); }
.faq-item.is-open .faq-icon::before, .faq-item.is-open .faq-icon::after { background: #fff; }
.faq-item.is-open .faq-icon::after { transform: rotate(0deg); }

/* answers are open by default; js-faq (set by js/home-motion.js) turns on the accordion */
.faq-a { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .5s cubic-bezier(.2, .8, .2, 1); }
.faq-a-inner { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 56px 26px 4px; max-width: 64ch; font-size: 15.5px; line-height: 1.75; color: var(--text-soft); }
.faq-a a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.js-faq .faq-item:not(.is-open) .faq-a { grid-template-rows: 0fr; }
.js-faq .faq-a p { opacity: 0; transform: translateY(-6px); transition: opacity .35s ease, transform .45s cubic-bezier(.2, .8, .2, 1); }
.js-faq .faq-item.is-open .faq-a p { opacity: 1; transform: none; transition-delay: .08s; }
@media (prefers-reduced-motion: reduce) {
  .faq-a, .js-faq .faq-a p, .faq-icon, .faq-icon::before, .faq-icon::after { transition: none; }
}

/* ==========================================================================
   6. PRODUCT CARDS ("Everything your school runs on"): two new visuals and
   a little life in every card. Loops run only while a card is on screen
   (.is-live from js/home-motion.js). Resting state = finished state.
   ========================================================================== */
.fc-ops   { background: linear-gradient(120deg, #f2f7ff 0%, #dce8fd 100%); --fc-accent: #1f4fa8; }
.fc-learn { background: linear-gradient(120deg, #fffaf0 0%, #fcebc4 100%); --fc-accent: #8a5200; }

/* --- School Management: principal's dashboard --- */
.fc-dash {
  position: absolute;
  left: 8%;
  top: 56px;
  width: 600px;
  border-radius: 12px 0 0 0;
  background: #fff;
  box-shadow: 0 20px 60px -20px rgba(20, 50, 120, .35);
  overflow: hidden;
}
.fc-dash-body { display: grid; grid-template-columns: 54px 1fr; min-height: 380px; }
.fc-dash-side { display: flex; flex-direction: column; gap: 10px; padding: 16px 12px; background: #f7f9fd; border-right: 1px solid #edf0f6; }
.fc-dash-side span { height: 8px; border-radius: 4px; background: #e2e8f3; }
.fc-dash-side span:first-child { height: 26px; border-radius: 8px; background: #1f4fa8; }
.fc-dash-main { padding: 18px 20px; }
.fc-dash-hello { margin: 0 0 14px; font-size: 15px; font-weight: 700; color: var(--text); }
.fc-tiles { display: grid; grid-template-columns: repeat(2, 200px); gap: 12px; }
.fc-tile {
  position: relative;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #edf0f6;
  background: #fff;
  box-shadow: 0 10px 22px -16px rgba(20, 50, 120, .35);
}
.fc-tile p { margin: 10px 0 2px; font-size: 12px; color: var(--text-softer); }
.fc-tile b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.fc-tile-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; font-size: 14px; font-weight: 800; color: #fff; }
.fc-tile-ic svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.t-fees .fc-tile-ic { background: #e0782f; }
.t-res .fc-tile-ic { background: #2f9e5b; }
.fc-tile-bar { display: block; height: 6px; margin-top: 10px; border-radius: 6px; background: #fdeee6; overflow: hidden; }
.fc-tile-bar i { display: block; width: 38%; height: 100%; border-radius: inherit; background: #e0782f; transform-origin: left center; }
.fc-ring { width: 32px; height: 32px; transform: rotate(-90deg); }
.fc-ring circle { fill: none; stroke: #e3ecfb; stroke-width: 5; }
.fc-ring .fc-ring-fill { stroke: #1f4fa8; stroke-linecap: round; stroke-dasharray: 113.1; stroke-dashoffset: 4.5; }
.t-alert { border-color: #f6d3bf; background: #fff8f3; }
.t-alert .fc-tile-ic { position: relative; background: #fde3d3; }
.t-alert .fc-tile-ic i { width: 10px; height: 10px; border-radius: 50%; background: #e0782f; box-shadow: 0 0 0 4px rgba(224, 120, 47, .2); }
.t-alert b { color: #b4532a; }

/* --- Students: Study Buddy chat on a phone + Idea Lab card --- */
.fc-chatphone { display: flex; flex-direction: column; padding: 38px 14px 14px; }
.fc-chat-head { display: flex; align-items: center; gap: 10px; padding: 0 2px 12px; border-bottom: 1px solid #f0f1f5; }
.fc-chat-av { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg, #f2b544, #e0782f); }
.fc-chat-av svg { width: 17px; height: 17px; fill: #fff; }
.fc-chat-head strong { display: block; font-size: 14px; color: var(--text); }
.fc-chat-head span:last-child { font-size: 11.5px; color: var(--text-softer); }
.fc-chat-body { display: flex; flex-direction: column; gap: 12px; padding: 16px 2px; }
.fc-cm { max-width: 86%; }
.fc-cm-photo { align-self: flex-end; text-align: right; }
.fc-photo {
  width: 168px;
  padding: 12px 14px 14px;
  border-radius: 14px 14px 4px 14px;
  text-align: left;
  background:
    repeating-linear-gradient(180deg, transparent 0 17px, #d9e4f5 17px 18px),
    #fffdf6;
  border: 4px solid #8a5200;
  box-shadow: 0 10px 20px -12px rgba(138, 82, 0, .6);
  transform: rotate(-2deg);
}
.fc-photo span { display: block; font-size: 11px; font-weight: 700; color: #8a93a8; }
.fc-photo em { display: block; margin-top: 4px; font-family: 'Comic Sans MS', 'Segoe Print', cursive; font-size: 19px; font-style: normal; color: #24306b; }
.fc-cm small { display: block; margin-top: 5px; font-size: 10.5px; color: var(--text-softer); }
.fc-cm-ai {
  position: relative;
  align-self: flex-start;
  padding: 11px 14px;
  border-radius: 14px 14px 14px 4px;
  background: #fff6e4;
  border: 1px solid #f6e2b8;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text);
}
.fc-typing { position: absolute; left: 14px; top: 50%; display: flex; gap: 4px; transform: translateY(-50%); opacity: 0; }
.fc-typing i { width: 6px; height: 6px; border-radius: 50%; background: #e0a443; }
.fc-chat-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  margin-bottom: 40px;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 12.5px;
  color: var(--text-softer);
}
.fc-chat-input i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #8a5200; }
.fc-chat-input svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
.fc-float-idea { left: -2%; bottom: 14px; width: 180px; padding: 15px 17px; }
.fc-float-idea .fc-float-title { margin-bottom: 10px; font-size: 14px; }
.fc-float-idea ul { gap: 8px; }
.fc-float-idea li { font-size: 12.5px; font-weight: 600; color: var(--text); }
.fc-dot { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.fc-dot.d1 { background: #f2b544; }
.fc-dot.d2 { background: var(--brand); }
.fc-dot.d3 { background: #e0782f; }
.fc-dot.d4 { background: #2f9e5b; }

@media (max-width: 899px) {
  .fc-ops .fc-visual, .fc-learn .fc-visual { margin-left: 0; }
  .fc-dash { left: 24px; top: 24px; }
  .fc-ops .fc-visual { min-height: 360px; }
  .fc-learn .fc-visual { min-height: 400px; }
  .fc-float-idea { display: none; }
}

/* --- the little bit of life --- */
@media (prefers-reduced-motion: no-preference) {
  /* School Management: tiles arrive, ring and bar fill, the alert breathes */
  .fc-ops.is-live .fc-tile { animation: fcTile 9s cubic-bezier(.2, .8, .2, 1) infinite both; }
  .fc-ops.is-live .fc-tile:nth-child(2) { animation-delay: .15s; }
  .fc-ops.is-live .fc-tile:nth-child(3) { animation-delay: .3s; }
  .fc-ops.is-live .fc-tile:nth-child(4) { animation-delay: .45s; }
  .fc-ops.is-live .fc-ring-fill { animation: fcRing 9s cubic-bezier(.3, .7, .2, 1) infinite both; }
  .fc-ops.is-live .fc-tile-bar i { animation: fcBar 9s cubic-bezier(.3, .7, .2, 1) infinite both; }
  .fc-ops.is-live .t-alert .fc-tile-ic i { animation: fcBreathe 1.8s ease-in-out infinite; }

  /* Teachers: the dashboard floats, the checklist ticks itself off */
  .fc-teach.is-live .fc-browser { animation: fcFloat 7s ease-in-out infinite; }
  .fc-teach.is-live .fc-float li { animation: fcTick 8s ease infinite both; }
  .fc-teach.is-live .fc-float li:nth-child(2) { animation-delay: .5s; }
  .fc-teach.is-live .fc-float li:nth-child(3) { animation-delay: 1s; }
  .fc-teach.is-live .fc-float-foot { animation: fcBlink 2.4s ease-in-out infinite; }

  /* Students: photo goes in, Study Buddy types, then asks back */
  .fc-learn.is-live .fc-cm-photo { animation: fcPhoto 9s cubic-bezier(.2, .8, .2, 1) infinite both; }
  .fc-learn.is-live .fc-cm-ai { animation: fcAi 9s cubic-bezier(.2, .8, .2, 1) infinite both; }
  .fc-learn.is-live .fc-typing { animation: fcTyping 9s ease infinite both; }
  .fc-learn.is-live .fc-cm-text { animation: fcAiText 9s ease infinite both; }
  .fc-learn.is-live .fc-typing i { animation: fcBounce 1s ease-in-out infinite; }
  .fc-learn.is-live .fc-typing i:nth-child(2) { animation-delay: .15s; }
  .fc-learn.is-live .fc-typing i:nth-child(3) { animation-delay: .3s; }
  .fc-learn.is-live .fc-float-idea { animation: fcFloat 6s ease-in-out infinite; }

  /* CBT: chips drift, the answer gets picked, the progress bar moves on */
  .fc-cbt.is-live .fc-chip { animation: fcBob 5s ease-in-out infinite; }
  .fc-cbt.is-live .fc-chip-2 { animation-delay: -1.2s; }
  .fc-cbt.is-live .fc-chip-3 { animation-delay: -2.4s; }
  .fc-cbt.is-live .fc-chip-4 { animation-delay: -3.6s; }
  .fc-cbt.is-live .fc-exam-options .is-picked { animation: fcPick 6s ease infinite both; }
  .fc-cbt.is-live .fc-exam-options .is-picked b { animation: fcPickB 6s ease infinite both; }
  .fc-cbt.is-live .fc-exam-progress span { animation: fcProgress 6s ease infinite both; }

  /* Parents: notifications arrive one after another */
  .fc-parent.is-live .fc-note { animation: fcNote 10s cubic-bezier(.2, .8, .2, 1) infinite both; }
  .fc-parent.is-live .fc-note:nth-of-type(2) { animation-delay: .6s; }
  .fc-parent.is-live .fc-note:nth-of-type(3) { animation-delay: 1.2s; }
  .fc-parent.is-live .fc-note:nth-of-type(4) { animation-delay: 1.8s; }
}

@keyframes fcTile {
  0%        { opacity: 0; transform: translateY(14px) scale(.97); }
  8%, 90%   { opacity: 1; transform: none; }
  97%, 100% { opacity: 0; transform: translateY(-6px); }
}
@keyframes fcRing {
  0%, 6%    { stroke-dashoffset: 113.1; }
  24%, 92%  { stroke-dashoffset: 4.5; }
  100%      { stroke-dashoffset: 113.1; }
}
@keyframes fcBar {
  0%, 6%    { transform: scaleX(0); }
  22%, 92%  { transform: scaleX(1); }
  100%      { transform: scaleX(0); }
}
@keyframes fcBreathe {
  0%, 100% { box-shadow: 0 0 0 3px rgba(224, 120, 47, .25); }
  50%      { box-shadow: 0 0 0 7px rgba(224, 120, 47, .06); }
}
@keyframes fcFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes fcTick {
  0%        { opacity: .25; }
  6%, 92%   { opacity: 1; }
  100%      { opacity: .25; }
}
@keyframes fcBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: .45; }
}
@keyframes fcPhoto {
  0%, 4%    { opacity: 0; transform: translateY(18px) scale(.94); }
  12%, 90%  { opacity: 1; transform: none; }
  97%, 100% { opacity: 0; transform: translateY(-6px); }
}
@keyframes fcAi {
  0%, 18%   { opacity: 0; transform: translateY(12px) scale(.96); }
  24%, 90%  { opacity: 1; transform: none; }
  97%, 100% { opacity: 0; transform: translateY(-6px); }
}
@keyframes fcTyping {
  0%, 24%   { opacity: 1; }
  40%, 100% { opacity: 0; }
}
@keyframes fcAiText {
  0%, 40%   { opacity: 0; }
  46%, 100% { opacity: 1; }
}
@keyframes fcBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30%           { transform: translateY(-4px); }
}
@keyframes fcBob {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-9px) rotate(-2deg); }
}
@keyframes fcPick {
  0%, 30%   { border-color: var(--border); background: #fff; }
  36%, 100% { border-color: #6aa832; background: #f3faea; }
}
@keyframes fcPickB {
  0%, 30%   { background: var(--surface-2); color: var(--text); }
  36%, 100% { background: #6aa832; color: #fff; }
}
@keyframes fcProgress {
  0%, 40%   { width: 22%; }
  52%, 100% { width: 24%; }
}
@keyframes fcNote {
  0%        { opacity: 0; transform: translateY(-14px) scale(.97); }
  6%, 88%   { opacity: 1; transform: none; }
  95%, 100% { opacity: 0; transform: scale(.98); }
}

/* HERO SWEEP: a brand-purple block draws left to right behind "AI-native"
   once the hero fades in (.reveal.is-visible from js/main.js), then stays. */
.hero-sweep {
  white-space: nowrap;
  background-image: linear-gradient(var(--brand), var(--brand));
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 0% 100%;
  padding: 0 .12em;
  margin: 0 -.04em;
  border-radius: .12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.reveal.is-visible .hero-sweep {
  animation: heroSweep .8s .4s cubic-bezier(.22, .8, .24, 1) forwards;
}
@keyframes heroSweep {
  to { background-size: 100% 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-sweep { background-size: 100% 100%; animation: none; }
}
