/* ============================================================
   SMART — School Management & Record Tracking
   vibrant motion redesign
   ============================================================ */

:root {
  /* core blue (trust) */
  --blue: #0a84ff;
  --blue-dark: #0040c1;
  --indigo: #5e5ce6;
  /* brand energy (from the paint-splatter identity) */
  --purple: #bf5af2;
  --pink: #ff375f;
  --amber: #ff9f0a;
  --teal: #30d5c8;
  --sky: #5ac8fa;
  --green: #34c759;

  --ink: #0a2540;
  --ink-soft: #43536b;
  --muted: #8a99ad;
  --line: #e7edf5;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --bg-tint: #eef4fb;

  /* signature multi-hue gradient */
  --grad-brand: linear-gradient(115deg, #0a84ff 0%, #5e5ce6 28%, #bf5af2 52%, #ff375f 76%, #ff9f0a 100%);

  --maxw: 1180px;
  --radius: 22px;
  --shadow-sm: 0 2px 10px rgba(10, 37, 64, .06);
  --shadow-md: 0 18px 50px rgba(10, 37, 64, .10);
  --shadow-lg: 0 40px 90px rgba(10, 37, 64, .16);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

/* Lenis manages scrolling; let it own the scroll behavior */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.grad-text {
  background: var(--grad-brand);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: hueShift 8s linear infinite;
}

@keyframes hueShift {
  to {
    background-position: 200% 0;
  }
}

.muted {
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn {
  --pad: .72em 1.4em;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  padding: var(--pad);
  border-radius: 980px;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease), background .25s var(--ease);
}

.btn--primary {
  background: var(--grad-brand);
  background-size: 180% 180%;
  color: #fff;
  box-shadow: 0 10px 26px rgba(91, 60, 230, .34);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(191, 90, 242, .42);
  background-position: 100% 100%;
}

.btn--ghost {
  background: rgba(10, 37, 64, .05);
  color: var(--ink);
}

.btn--ghost:hover {
  background: rgba(10, 37, 64, .1);
}

.btn--white {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--lg {
  font-size: 1.06rem;
  padding: .9em 1.8em;
}

.btn--link {
  color: var(--blue);
  font-weight: 600;
  padding: .72em .4em;
}

.btn--link:hover {
  transform: translateX(3px);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s;
}

/* .badge (the 3D hero badge overlay) sits at z-index 110, above the nav bar,
   so the hero badge can dock visually over it mid-scroll. The open mobile
   menu is a descendant of .nav though, so it's stuck in that same stacking
   context -- it needs .nav itself raised above the badge while open, or the
   dropdown renders underneath the badge instead of covering the page. */
.nav.open {
  z-index: 120;
}

.nav--solid {
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(10, 37, 64, .07);
}

.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -.02em;
}

.nav__logo {
  border-radius: 9px;
  flex-shrink: 0;
}

.nav__logoSlot {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  gap: 1.9rem;
  margin-left: auto;
}

.nav__links a {
  font-size: .95rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink-soft);
  transition: color .2s;
}

.nav__links a:hover {
  color: var(--blue);
}

.nav__actions {
  display: flex;
  gap: .6rem;
}

/* seven links + Login + Book a Demo get tight just above the burger breakpoint */
@media (min-width: 901px) and (max-width: 1180px) {
  .nav__links {
    gap: 1.1rem;
    margin-right: 1rem;
  }

  .nav__links a {
    font-size: .88rem;
  }
}

@media (min-width: 901px) and (max-width: 1040px) {
  .nav__links {
    gap: .8rem;
    margin-right: .5rem;
  }
}

/* Login dropdown (OnlineSMART / SMART Flex / Student Portal). Desktop only --
   at <=900px the same links live inside the burger menu (.nav__mobileLogin). */
.login {
  position: relative;
}

.login__chev {
  transition: transform .3s var(--ease);
}

.login.open .login__chev {
  transform: rotate(180deg);
}

.login__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 210px;
  padding: .45rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s .22s;
}

.login.open .login__menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s;
}

.login__menu a {
  display: block;
  padding: .7rem .9rem;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  transition: background .2s, color .2s;
}

.login__menu a:hover,
.login__menu a:focus-visible {
  background: var(--bg-tint);
  color: var(--blue);
  outline: none;
}

/* The badge overlay (z-index 110) can sit over the nav during the hero; lift
   the nav above it while the dropdown is open, same as .nav.open. */
.nav.login-open {
  z-index: 120;
}

.nav__mobileLogin {
  display: none;
}

.nav__burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}

.nav__burger span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
}

.nav.open .nav__burger span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav.open .nav__burger span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  overflow: clip;
}

.hero__pin {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* top scales with height so short laptop windows still fit the whole stack;
     bottom leaves room for .hero__scroll (absolute, 1.2rem + 42px tall) */
  padding: clamp(5.5rem, 12vh, 8rem) 1.5rem 5.25rem;
  max-width: var(--maxw);
  margin: 0 auto;
}

/* drifting colored glow blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
  opacity: .8;
  animation: blobFloat 22s ease-in-out infinite;
  will-change: transform;
}

@keyframes blobFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(3%, -4%) scale(1.06);
  }

  50% {
    transform: translate(-2%, 3%) scale(0.97);
  }

  75% {
    transform: translate(-4%, -2%) scale(1.04);
  }

  100% {
    transform: translate(0, 0) scale(1);
  }
}

.blob--1 {
  width: 700px;
  height: 700px;
  top: -14%;
  left: -6%;
  background: radial-gradient(closest-side, rgba(10, 132, 255, .55), transparent 70%);
  animation-duration: 24s;
}

.blob--2 {
  width: 660px;
  height: 660px;
  top: -10%;
  right: -8%;
  background: radial-gradient(closest-side, rgba(191, 90, 242, .45), transparent 70%);
  animation-duration: 19s;
  animation-delay: -4s;
}

.blob--3 {
  width: 600px;
  height: 600px;
  bottom: -10%;
  left: 16%;
  background: radial-gradient(closest-side, rgba(255, 55, 95, .34), transparent 70%);
  animation-duration: 27s;
  animation-delay: -11s;
}

.blob--4 {
  width: 560px;
  height: 560px;
  bottom: -6%;
  right: -4%;
  background: radial-gradient(closest-side, rgba(48, 213, 200, .4), transparent 70%);
  animation-duration: 21s;
  animation-delay: -7s;
}

.blob--5 {
  width: 460px;
  height: 460px;
  top: 26%;
  left: 42%;
  background: radial-gradient(closest-side, rgba(255, 159, 10, .3), transparent 70%);
  animation-duration: 17s;
  animation-delay: -13s;
}

.blob--6 {
  width: 420px;
  height: 420px;
  top: 4%;
  left: -8%;
  background: radial-gradient(closest-side, rgba(48, 213, 200, .32), transparent 70%);
  animation-duration: 25s;
  animation-delay: -2s;
}

.blob--7 {
  width: 480px;
  height: 480px;
  bottom: 14%;
  right: -10%;
  background: radial-gradient(closest-side, rgba(191, 90, 242, .3), transparent 70%);
  animation-duration: 20s;
  animation-delay: -9s;
}

.blob--8 {
  width: 380px;
  height: 380px;
  top: 46%;
  left: -4%;
  background: radial-gradient(closest-side, rgba(10, 132, 255, .3), transparent 70%);
  animation-duration: 23s;
  animation-delay: -6s;
}

.blob--9 {
  width: 400px;
  height: 400px;
  top: 52%;
  right: -6%;
  background: radial-gradient(closest-side, rgba(255, 55, 95, .28), transparent 70%);
  animation-duration: 18s;
  animation-delay: -15s;
}

.blob--10 {
  width: 520px;
  height: 520px;
  bottom: -16%;
  left: 48%;
  background: radial-gradient(closest-side, rgba(255, 159, 10, .26), transparent 70%);
  animation-duration: 26s;
  animation-delay: -18s;
}

.blob--11 {
  width: 340px;
  height: 340px;
  top: 8%;
  left: 30%;
  background: radial-gradient(closest-side, rgba(48, 213, 200, .26), transparent 70%);
  animation-duration: 16s;
  animation-delay: -5s;
}

.blob--12 {
  width: 380px;
  height: 380px;
  top: 22%;
  left: -10%;
  background: radial-gradient(closest-side, rgba(10, 132, 255, .34), transparent 70%);
  animation-duration: 24s;
  animation-delay: -10s;
}

.blob--13 {
  width: 340px;
  height: 340px;
  top: 68%;
  left: -6%;
  background: radial-gradient(closest-side, rgba(255, 55, 95, .26), transparent 70%);
  animation-duration: 19s;
  animation-delay: -3s;
}

@media (prefers-reduced-motion: reduce) {
  .blob {
    animation: none;
  }
}

.hero__eyebrow {
  display: inline-block;
  font-size: .92rem;
  font-weight: 600;
  color: var(--blue);
  background: rgba(255, 255, 255, .6);
  border: 1px solid var(--line);
  padding: .4em 1.1em;
  border-radius: 980px;
  margin-bottom: .5rem;
  backdrop-filter: blur(8px);
}

/* Layout spacer — the real badge is a fixed element positioned to match this slot */
/* height-capped too (36vh): on a ~700px-tall laptop window a 420px badge pushed
   the CTAs off the bottom of the hero and under the scroll indicator */
.badge__slot {
  width: clamp(200px, min(40vw, 36vh), 420px);
  aspect-ratio: 200 / 190;
  margin: 0 auto .75rem;
}

/* ---------- Metallic badge (hero centerpiece -> nav mark) ---------- */
.badge {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  z-index: 110;
  pointer-events: none;
  filter: drop-shadow(0 20px 30px rgba(10, 20, 40, .26));
}

.badge canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Static flat mark shown when the WebGL badge can't run (no WebGL, module
   blocked, init failure). badge.js sets html.badge-3d once it's live. */
.badge-fallback {
  width: 100%;
  height: 100%;
  object-fit: contain;
  color: #14151b;
}

.badge__slot .badge-fallback {
  max-width: 62%;
  margin: 0 auto;
}

.badge-3d .badge-fallback {
  display: none;
}

html:not(.badge-3d) .badge {
  display: none;
}

.hero__wordmark {
  font-size: clamp(3.2rem, min(12vw, 13vh), 8rem);
  line-height: .9;
  font-weight: 800;
  letter-spacing: -.04em;
  margin-top: .4rem;
  background: var(--grad-brand);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: hueShift 8s linear infinite;
}

.hero__sub {
  font-size: clamp(1.05rem, 2.3vw, 1.5rem);
  color: var(--ink-soft);
  margin: .6rem auto 1.8rem;
  font-weight: 500;
  letter-spacing: -.01em;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
}

.hero__mouse {
  width: 26px;
  height: 42px;
  border: 2px solid var(--muted);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}

.hero__mouse span {
  width: 4px;
  height: 8px;
  background: var(--muted);
  border-radius: 4px;
  animation: scrolldot 1.6s var(--ease) infinite;
}

@keyframes scrolldot {
  0% {
    opacity: 0;
    transform: translateY(0)
  }

  30% {
    opacity: 1
  }

  80% {
    opacity: 0;
    transform: translateY(12px)
  }

  100% {
    opacity: 0
  }
}

/* ---------- Stats ---------- */
.stats {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 2.6rem 1.5rem;
}

.stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.stat__num {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
}

.stat__num.grad-text {
  display: inline-block;
}

.stat__label {
  font-size: .92rem;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Generic section ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 6rem 1.5rem;
}

.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.eyebrow {
  font-size: .9rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
}

.eyebrow--light {
  color: #9ed0ff;
}

.section__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.08;
}

.section__title--light {
  color: #fff;
}

.section__lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-top: 1.2rem;
}

.section__lead--light {
  color: rgba(255, 255, 255, .8);
}

/* ---------- Module cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-brand);
  opacity: 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: opacity .4s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.card:hover::before {
  opacity: 1;
}

.card__icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  margin-bottom: 1.3rem;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--grad-brand);
  background-size: 160% 160%;
}

.card:nth-child(2) .card__icon {
  background-position: 25% 0;
}

.card:nth-child(3) .card__icon {
  background-position: 50% 0;
}

.card:nth-child(4) .card__icon {
  background-position: 75% 0;
}

.card:nth-child(5) .card__icon {
  background-position: 100% 0;
}

.card:nth-child(6) .card__icon {
  background-position: 100% 100%;
}

.card__icon svg {
  width: 32px;
  height: 32px;
}

.card:hover .card__icon {
  animation: pop .5s var(--ease);
}

@keyframes pop {
  50% {
    transform: scale(1.12) rotate(-4deg);
  }
}

.card h3 {
  font-size: 1.3rem;
  letter-spacing: -.02em;
  margin-bottom: .6rem;
}

.card p {
  color: var(--ink-soft);
  font-size: 1rem;
}

/* Additional Products sits right before the CTA, which brings its own top padding */
#products {
  padding-bottom: 1rem;
}

/* ---------- Additional Products ---------- */
.xprod {
  display: grid;
  gap: 1.4rem;
}

.xprod__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.xtile {
  background: linear-gradient(160deg, var(--bg-soft), var(--bg-tint));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 2.4rem 2.4rem 2.6rem;
}

.xtile h3 {
  font-size: 1.5rem;
  letter-spacing: -.02em;
  margin-bottom: .5rem;
}

.xtile p {
  color: var(--ink-soft);
  max-width: 34ch;
}

/* "SMART ⇄ partner" connector: two chips joined by a dashed gradient line with a travelling dot */
.xtile__link {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.xtile__link span {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  border-radius: 980px;
  padding: .45em 1em;
  font-size: .85rem;
  font-weight: 700;
  white-space: nowrap;
}

.xtile__link span:first-child {
  color: #fff;
  border-color: transparent;
  background: var(--grad-brand);
  background-size: 220% 100%;
}

.xtile__link i {
  position: relative;
  flex: 0 1 110px;
  height: 2px;
  margin: 0 .5rem;
  background: repeating-linear-gradient(90deg, var(--purple) 0 6px, transparent 6px 11px);
  opacity: .7;
}

.xtile__link i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, .18);
  animation: xlink 2.4s var(--ease) infinite alternate;
}

@keyframes xlink {
  to {
    left: 100%;
    background: var(--pink);
    box-shadow: 0 0 0 4px rgba(255, 55, 95, .18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .xtile__link i::after {
    animation: none;
    left: 50%;
  }
}

.xreport {
  position: relative;
  border-radius: 28px;
  padding: 2.6rem 2.4rem;
  background: #fff;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2.6fr;
  gap: 2rem;
  align-items: center;
}

/* gradient hairline border */
.xreport::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--grad-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.xreport__head h3 {
  font-size: 1.5rem;
  letter-spacing: -.02em;
  margin-bottom: .5rem;
}

.xreport__head p {
  color: var(--ink-soft);
}

.xreport__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: space-between;
}

.xreport__list > li {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  padding: .4rem 1.8rem;
  border-left: 1px solid var(--line);
}

.xreport__list strong {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  background: var(--grad-brand);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.xreport__list > li:nth-child(2) strong {
  background-position: 50% 0;
}

.xreport__list > li:nth-child(3) strong {
  background-position: 100% 0;
}

.xreport__items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.xreport__items li {
  position: relative;
  padding-left: 1rem;
  font-size: .95rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.xreport__items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad-brand);
}

.xreport__items .xreport__more {
  font-style: italic;
  opacity: .75;
}

@media (max-width: 900px) {
  .xprod__pair,
  .xreport {
    grid-template-columns: 1fr;
  }

  .xreport__list {
    grid-template-columns: 1fr;
  }

  .xreport__list > li {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 1.3rem 0;
  }

  .xreport__list > li:last-child {
    padding-bottom: 0;
  }
}

@media (max-width: 600px) {
  .xtile,
  .xreport {
    padding: 2rem 1.5rem;
  }
}

/* ---------- Feature split sections ---------- */
.feature {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 6rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature__text .section__title {
  margin-top: .4rem;
}

.feature__text .btn {
  margin-top: 1.8rem;
}

.feature__art {
  display: grid;
  place-items: center;
}

.feature__art svg {
  width: 100%;
  max-width: 440px;
  overflow: visible;
}

.checklist {
  list-style: none;
  margin: 1.8rem 0 2rem;
  display: grid;
  gap: .9rem;
}

.checklist li {
  position: relative;
  padding-left: 2rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .15em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4 10-11'/%3E%3C/svg%3E") center/13px no-repeat;
}

.pillrow {
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.pill {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 980px;
  padding: .55em 1.1em;
  font-weight: 600;
  font-size: .95rem;
}

/* ---------- SIS (Student Information System) ---------- */
.sis {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.sis__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 6rem 1.5rem;
}

.sis__journey {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 820px;
  margin: 0 auto 3.5rem;
  position: relative;
}

/* connecting rail behind the dots */
.sis__journey::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 16.66%;
  right: 16.66%;
  height: 3px;
  border-radius: 3px;
  background: var(--grad-brand);
  opacity: .8;
}

.sis__journey li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .2rem;
  padding: 0 .6rem;
}

.sis__journey strong {
  font-size: 1.1rem;
  letter-spacing: -.01em;
}

.sis__journey li span:last-child {
  font-size: .92rem;
  color: var(--ink-soft);
}

.sis__dot {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--blue);
  box-shadow: 0 0 0 5px var(--bg-soft);
  margin-bottom: .7rem;
}

.sis__journey li:nth-child(2) .sis__dot {
  border-color: var(--purple);
}

.sis__journey li:nth-child(3) .sis__dot {
  border-color: var(--pink);
}

.sis__cta {
  text-align: center;
  margin-top: 3rem;
}

/* ---------- SMARTTime fingerprint zoom-out ---------- */
.ftprint {
  position: relative;
  background: #fff;
}

.ftprint__pin {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #fff;
  /* opaque — prevents underlying sections bleeding through when pinned */
}

.ftprint__stage {
  position: absolute;
  inset: 0;
}

.ftprint__stage svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ftprint__text {
  position: absolute;
  left: 50%;
  bottom: 6vh;
  transform: translateX(-50%);
  width: min(92vw, 640px);
  text-align: center;
  z-index: 2;
}

.ftprint__text .section__title {
  margin-top: .5rem;
}

.ftprint__text .section__lead {
  margin-left: auto;
  margin-right: auto;
}

.ftprint__text .pillrow {
  justify-content: center;
}

/* biometric idle ripple (decorative) */
.ripple {
  transform-origin: 190px 190px;
  animation: ripple 2.6s var(--ease) infinite;
}

.ripple--2 {
  animation-delay: 1.3s;
}

@keyframes ripple {
  0% {
    transform: scale(.55);
    opacity: .6
  }

  100% {
    transform: scale(1.5);
    opacity: 0
  }
}

/* ---------- Student Portal (dark, cinematic) ---------- */
.portal {
  position: relative;
  background: radial-gradient(120% 120% at 80% 0%, #0a3a8c 0%, #061a3a 55%, #04122a 100%);
  color: #fff;
  margin: 2rem 0;
  overflow: hidden;
}

.portal::before,
.portal::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.portal::before {
  width: 420px;
  height: 420px;
  top: -10%;
  left: -6%;
  background: radial-gradient(closest-side, rgba(191, 90, 242, .5), transparent 70%);
}

.portal::after {
  width: 460px;
  height: 460px;
  bottom: -16%;
  right: -4%;
  background: radial-gradient(closest-side, rgba(48, 213, 200, .45), transparent 70%);
}

.portal__inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 6rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.portal__devices {
  display: grid;
  place-items: center;
}

.device--phone {
  width: 240px;
  filter: drop-shadow(0 40px 70px rgba(0, 0, 0, .5));
}

/* ---------- About prose ---------- */
.prose {
  max-width: 760px;
  margin: 0 auto;
}

/* About is now just the head + prose; tighten so the gaps match neighbouring sections */
#about {
  padding-bottom: 4rem;
}

#about .section__head {
  margin-bottom: 2rem;
}

.prose p {
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-top: 1.3rem;
}

.prose p:first-child {
  margin-top: 0;
}

/* ---------- CTA ---------- */
.cta {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 6rem 1.5rem 3rem;
}

.cta__actions {
  display: flex;
  gap: .9rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: .4rem;
}

/* ---------- Contact form ---------- */
.contact {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
}

.contact__intro .section__title {
  margin-top: .4rem;
}

.contact__intro .section__lead a {
  color: var(--blue);
  font-weight: 600;
}

.contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.2rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 2.2rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label,
.field legend {
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
}

.field input,
.field textarea {
  font: inherit;
  padding: .8em 1em;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, .15);
}

.field--radio {
  grid-column: 1 / -1;
  border: 0;
  padding: 0;
}

.field--radio legend {
  margin-bottom: .5rem;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.6rem;
}

.field--radio label {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
}

.contact__form button {
  margin-top: .4rem;
}

.contact__form button:disabled {
  opacity: .6;
  cursor: progress;
}

.field__hint {
  font-size: .82rem;
  color: var(--ink-soft);
}

/* honeypot: off-screen rather than display:none, which some bots skip */
.field--hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* reserves the widget's height so the form doesn't jump when it loads */
.contact__captcha {
  min-height: 78px;
}

.contact__status {
  font-size: .95rem;
  font-weight: 600;
  padding: .8em 1em;
  border-radius: 14px;
}

.contact__status.is-ok {
  color: #0b6b3a;
  background: #e3f6ea;
}

.contact__status.is-error {
  color: #a3261b;
  background: #fde8e6;
}

.field input.is-invalid,
.field textarea.is-invalid {
  border-color: #d93a2b;
}

.cta__card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--bg-soft), #e9f1fc);
  border: 1px solid var(--line);
  border-radius: 36px;
  padding: clamp(2.5rem, 6vw, 5rem);
  text-align: center;
}

.cta__card::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 0;
  opacity: .14;
  background: var(--grad-brand);
  background-size: 200% 200%;
  animation: hueShift 10s linear infinite;
}

.cta__card>* {
  position: relative;
  z-index: 1;
}

.cta__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
}

.cta__sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 1.2rem auto 2.4rem;
}

.cta__form {
  display: flex;
  gap: .8rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 640px;
  margin: 0 auto;
}

.cta__form input {
  flex: 1 1 200px;
  padding: .9em 1.2em;
  border: 1px solid var(--line);
  border-radius: 980px;
  font: inherit;
  font-size: 1rem;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}

.cta__form input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, .15);
}

.cta__phone {
  margin-top: 1.6rem;
  color: var(--muted);
  font-weight: 500;
}

.cta__phone a {
  color: var(--blue);
  font-weight: 600;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}

.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 4rem 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 3rem;
}

.footer__brand p {
  color: var(--muted);
  margin-top: 1rem;
  font-size: .95rem;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.footer__cols h4 {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink);
  margin-bottom: 1rem;
}

.footer__cols a {
  display: block;
  color: var(--ink-soft);
  font-size: .95rem;
  padding: .3rem 0;
  transition: color .2s;
}

.footer__cols a:hover {
  color: var(--blue);
}

.footer__bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem;
  font-size: .88rem;
  color: var(--muted);
}

.footer__legal a:hover {
  color: var(--blue);
}

/* ---------- Legal pages (website-terms-of-use/) ---------- */
.legal-nav__actions {
  margin-left: auto;
}

.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 9rem 1.5rem 5rem;
}

.legal__head {
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.legal__head h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin: .6rem 0 .8rem;
}

.legal__updated {
  color: var(--muted);
  font-size: .95rem;
}

.legal__body p,
.legal__address {
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 1.1rem;
}

.legal__body h2 {
  font-size: 1.3rem;
  letter-spacing: -.02em;
  margin: 2.4rem 0 .7rem;
}

.legal__body strong {
  color: var(--ink);
}

.legal__address {
  font-style: normal;
  padding: 1.2rem 1.4rem;
  border-radius: 16px;
  background: var(--bg-soft);
}

.legal__address a {
  color: var(--blue);
}

@media (max-width: 600px) {
  .legal {
    padding-top: 7rem;
  }

  .legal-nav__actions .btn--primary {
    display: none;
  }
}

/* ============================================================
   Animation base states (only when JS is active)
   GSAP overrides these; no-JS users see everything.
   ============================================================ */
.js .anim-up {
  opacity: 0;
  transform: translateY(40px);
}

.js .anim-fade {
  opacity: 0;
}

/* SVG stroke-draw setup (JS measures and animates dashoffset) */
.draw-path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {

  .nav__links,
  .login {
    display: none;
  }

  /* Book a Demo stays in the bar next to the burger; Login moves into the menu */
  .nav__actions {
    margin-left: auto;
  }

  .nav__actions .btn {
    font-size: .88rem;
    --pad: .6em 1.1em;
  }

  .nav__burger {
    display: flex;
  }

  .nav__inner {
    gap: .75rem;
  }

  .nav.open .nav__mobileLogin {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
  }

  .nav__mobileLabel {
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
  }

  .nav.open .nav__links {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature,
  .portal__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .feature__text {
    order: 2;
  }

  .feature__art {
    order: 1;
  }

  .footer__inner {
    grid-template-columns: 1fr;
  }

  .hero__pin {
    min-height: auto;
    padding-top: 7rem;
    /* room for .hero__scroll (absolute, 1.2rem + 42px tall) below the CTAs */
    padding-bottom: 5.75rem;
  }

  .badge__slot {
    width: clamp(170px, 40vw, 220px);
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 620px) {
  .stats__grid {
    grid-template-columns: 1fr;
    gap: 1.8rem 1rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .footer__cols {
    grid-template-columns: 1fr 1fr;
  }

  /* long email addresses get the full row; Company + Login sit side by side */
  .footer__cols > div:nth-child(2) {
    grid-column: 1 / -1;
    order: -1;
  }

  .contact__form {
    grid-template-columns: 1fr;
    padding: 1.6rem;
  }

  /* main.js switches reCAPTCHA to its 164x144 "compact" size here */
  .contact__captcha {
    min-height: 144px;
  }

  .prose p {
    font-size: 1.08rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .anim-up,
  .js .anim-fade {
    opacity: 1 !important;
    transform: none !important;
  }

  .draw-path {
    stroke-dashoffset: 0 !important;
  }

  .hero__wordmark {
    animation: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ============ BOOKING MODAL ============ */
.book-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}

.book-modal.is-open {
  display: block;
}

.book-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 37, 64, 0.55);
  backdrop-filter: blur(4px);
}

.book-modal__panel {
  position: relative;
  margin: 4vh auto;
  width: min(920px, 94vw);
  height: min(760px, 88vh);
  background: var(--bg);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(10, 37, 64, 0.35);
  overflow: hidden;
}

.book-modal__frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.book-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(10, 37, 64, 0.2);
}

.book-modal__close:hover {
  background: var(--bg-soft);
}

@media (max-width: 640px) {
  .book-modal__panel {
    margin: 0;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }
}
/* ---------- Phones: drop per-frame filter work ----------
   iOS Safari/Chrome (both WebKit) re-run CSS filters whenever the filtered content
   changes. The 3D badge canvas redraws every frame, so its drop-shadow filter was
   recomputed every frame too; the hero blobs were 60px blurs that also scaled
   (blobFloat) and moved (parallax), so their blur was re-rasterised constantly.
   The blobs are already radial-gradient fades, so they read nearly the same unblurred
   and static; the badge gets a plain gradient shadow layer instead of a filter. */
@media (max-width: 900px) {
  .blob {
    filter: none;
    animation: none;
    will-change: auto;
  }

  .hero__eyebrow {
    backdrop-filter: none;
    background: rgba(255, 255, 255, .85);
  }

  .badge {
    filter: none;
  }

  .badge::before {
    content: "";
    position: absolute;
    left: 14%;
    right: 14%;
    top: 22%;
    bottom: 0;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(10, 20, 40, .22), transparent);
    z-index: -1;
    pointer-events: none;
  }
}

@media (max-width: 600px) {
  .sis__inner {
    padding: 4rem 1.25rem;
  }

  .sis__journey {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    text-align: left;
  }

  .sis__journey::before {
    top: 10px;
    bottom: 3.9rem;
    left: 10px;
    right: auto;
    width: 3px;
    height: auto;
  }

  .sis__journey li {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding-left: 2.6rem;
  }

  .sis__dot {
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
  }
}
