/* ═══════════════════════════════════════════════════════════
   EDUORA School Connect — styles.css
   Refactored & enhanced
   ═══════════════════════════════════════════════════════════ */

/* ── Reset & base ─────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: #0e1530;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 0%, #f7f7ff 0, #f0f2ff 35%, transparent 60%),
    radial-gradient(circle at 90% 120%, #e1f3ff 0, #edf6ff 40%, transparent 60%),
    linear-gradient(180deg, #f7f8ff 0%, #eef3ff 40%, #f6fbff 100%);
}
.container { width: min(1120px, 92%); margin: 0 auto; }
.page-flow { padding-top: 72px; }

.flow-section {
  position: relative;
  padding: clamp(80px, 10vh, 130px) 0;
}

/* Prevent subpixel hairline gaps between stacked sections */
.flow-section + .flow-section {
  margin-top: -2px;
}

/* ── Typography tokens ──────────────────────────────────────── */
.section-title {
  font-size: clamp(2rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.3rem;
  color: #04102e;
}
.section-sub {
  color: #5a6182;
  margin-top: 0.75rem;
  max-width: 620px;
}
.section-heading.center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.section-title.light,
.section-sub.light { color: #f6f7ff; }
.section-sub.light { opacity: 0.9; }

/* ── Section curves ─────────────────────────────────────────── */
.section-curve {
  position: absolute;
  left: 0; right: 0;
  height: 120px;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  opacity: 0.7;
}
.section-curve-top {
  top: -80px;
  height: 160px;
  background-image: radial-gradient(circle at 50% 120%, rgba(132,150,255,.14) 0, transparent 58%);
}
.section-curve-top.soft {
  background-image: radial-gradient(circle at 50% 120%, rgba(163,186,255,.16) 0, transparent 65%);
}
.section-curve-top.subtle {
  background-image: radial-gradient(circle at 50% 120%, rgba(150,170,255,.12) 0, transparent 70%);
}
.section-curve-bottom {
  bottom: 0;
  background-image: radial-gradient(circle at 50% 120%, rgba(87,115,250,.16) 0, transparent 60%);
}

/* ── Ambient shapes ─────────────────────────────────────────── */
.section-ambient {
  position: absolute;
  inset: -80px 0 0;
  opacity: 0.6;
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.ambient-communication { background: radial-gradient(circle at 5% 0%, rgba(82,125,255,.24) 0, transparent 55%); }
.ambient-features      { background: radial-gradient(circle at 100% 10%, rgba(56,209,194,.2) 0, transparent 55%); }
.ambient-groups        { background: radial-gradient(circle at 90% 0%, rgba(255,179,94,.24) 0, transparent 55%); }
.ambient-attendance    { background: radial-gradient(circle at 0% 10%, rgba(167,139,250,.22) 0, transparent 60%); }
.ambient-fees          { background: radial-gradient(circle at 100% 20%, rgba(35,189,163,.24) 0, transparent 60%); }
.ambient-security {
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(124,196,255,.4) 0, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(102,126,255,.35) 0, transparent 55%);
}
.ambient-roadmap { background: radial-gradient(circle at 50% 0%, rgba(180,148,255,.2) 0, transparent 60%); }

/* ── Parallax ───────────────────────────────────────────────── */
.parallax-layer { position: relative; overflow: hidden; }
.parallax-bg { position: absolute; inset: 0; z-index: 0; will-change: transform; }
.parallax-section { position: relative; overflow: hidden; }
.parallax-section .container,
.parallax-layer .container { position: relative; z-index: 1; }

/* ═══════════════════════════ NAV ════════════════════════════ */
.navbar {
  position: fixed;
  inset-inline: 0; top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(247,249,255,.96), rgba(242,246,255,.96));
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(13,25,58,.15);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}
/* When nav-links are hidden the logo and actions fill the bar naturally */
.nav-container .nav-actions { margin-left: auto; }
/* ── Logo (SVG emblem + logotype) ────────────────────────────── */
.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-emblem {
  width: 32px;
  height: auto;
  display: block;
}
.logo-type {
  height: 22px;
  width: auto;
  display: block;
}
/* Keep legacy .logo style for any remaining uses (footer text) */
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1b2559;
  letter-spacing: .08em;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 24px;
}
.nav-links a {
  text-decoration: none;
  color: #3a4567;
  font-weight: 500;
  font-size: .95rem;
  position: relative;
  padding-bottom: 3px;
  transition: color .16s ease-out;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg,#6675ff,#4fd1c5);
  transition: width .2s ease-out;
}
.nav-links a:hover { color: #1b2559; }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ═══════════════════════════ HERO ═══════════════════════════ */
.hero-section {
  min-height: calc(100vh - 72px);
  display: flex; align-items: center;
  color: #fff;
  padding-top: 72px; padding-bottom: 64px;
}
.hero-gradient {
  inset: -80px -40px;
  background:
    radial-gradient(circle at 0% 0%, #5e7bff 0, transparent 55%),
    radial-gradient(circle at 100% 0%, #4bd1c9 0, transparent 55%),
    linear-gradient(135deg, #171c3a 0%, #182346 45%, #12334b 100%);
}
.hero-orbit {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  mix-blend-mode: screen;
}
.hero-orbit-1 { width: 420px; height: 420px; right: 8%; top: 18%; }
.hero-orbit-2 { width: 520px; height: 520px; right: -4%; top: 28%; }
.hero-content {
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(0,1fr);
  gap: clamp(2.5rem,4vw,4rem);
  align-items: center;
}
.hero-text { max-width: 540px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .82rem;
  color: rgba(226,234,255,.9);
  margin-bottom: .5rem;
}
.hero-section h1 {
  font-size: clamp(2.2rem,3.4vw,2.9rem);
  margin-bottom: .75rem;
  line-height: 1.18;
  text-shadow: 0 18px 52px rgba(0,0,0,.35);
}
.hero-sub { font-size: 1.02rem; opacity: .9; margin-bottom: 1.75rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 1.5rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: radial-gradient(circle at 0 0,rgba(255,255,255,.35),transparent 60%);
  border: 1px solid rgba(255,255,255,.35);
  font-size: .78rem; color: rgba(233,239,255,.95);
}
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.live   { background: #48bb78; box-shadow: 0 0 0 5px rgba(72,187,120,.35); }
.dot.secure { background: #63b3ed; box-shadow: 0 0 0 5px rgba(99,179,237,.35); }

.hero-devices {
  position: relative;
  min-height: 360px;
  display: flex; justify-content: center; align-items: center;
  overflow: visible;
}

/* ═══════════════════════════ PHONE FRAMES ═══════════════════ */
.phone-frame {
  position: relative;
  width: 280px;
  background: radial-gradient(circle at 10% 10%, #6e7280 0%, #292d3e 60%, #1a1c29 100%);
  border-radius: 46px; /* modern phone roundness */
  padding: 10px;
  box-shadow:
    0 24px 60px rgba(0,0,0,.55),
    0 0 0 1px rgba(255,255,255,.15),
    inset 0 1.5px 1px rgba(255,255,255,.3),
    inset 0 0 4px rgba(255,255,255,.1);
  will-change: transform;
  overflow: hidden;
}
.phone-notch {
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 14px; height: 14px;
  background: #050608;
  border-radius: 50%; /* small camera hole */
  z-index: 2;
  box-shadow: inset 0 0 3px rgba(255,255,255,.1);
}
.phone-screen {
  border-radius: 36px;
  overflow: hidden;
  background: #050608;
  aspect-ratio: 9 / 19.5;
  min-height: 520px;
}
.app-placeholder { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }

.phone-main { width: 300px; z-index: 2; }
.phone-main .phone-screen { min-height: 560px; }
.phone-secondary { position: absolute; width: 270px; opacity: .94; }
.phone-secondary.phone-left  { right: 60%; transform: translateY(40px) scale(.9); overflow: hidden; }
.phone-secondary.phone-right { left: 60%;  transform: translateY(40px) scale(.9); overflow: hidden; }
.mini-phone { width: 240px; }
.mini-phone .phone-screen { min-height: 480px; }
.tiny-phone { width: 210px; }
.tiny-phone .phone-screen { min-height: 420px; }

/* Hero phone slider (vanilla JS version in parallax.js) */
.phone-slider { position: relative; width: 100%; height: 100%; overflow: hidden; touch-action: pan-y; cursor: grab; }
.phone-slider:active { cursor: grabbing; }
.phone-slider-track { display: flex; width: 100%; height: 100%; transition: transform .4s ease; }
.phone-slide { flex: 0 0 100%; height: 100%; }
.phone-slide img { width: 100%; height: 100%; object-fit: cover; }
.phone-slider-dots {
  position: absolute; left: 50%; bottom: 10px;
  transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 3;
}
.dot-button {
  width: 6px; height: 6px; border-radius: 999px;
  border: none; padding: 0;
  background: rgba(255,255,255,.32);
  transition: background .2s ease, transform .2s ease, width .2s ease;
}
.dot-button.is-active { width: 16px; background: #fff; transform: translateY(-1px); }

/* ═══════════════════════════ LAYOUTS ════════════════════════ */
/*
 * Unified column ratio: text 1.2fr | visual 1fr on ALL split sections.
 * This keeps the phone column at the same proportional width and
 * horizontal start-position regardless of .reverse, giving a consistent
 * vertical alignment line as the user scrolls.
 */
.split-layout {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);
  gap: clamp(2.8rem,5vw,5rem);
  align-items: center;
}
/* CSS-based layout reversal for standard split layout */
.split-layout.reverse { 
  grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); 
}
.split-layout.reverse > .split-text {
  grid-column: 2;
  grid-row: 1;
}
.split-layout.reverse > .split-visual {
  grid-column: 1;
  grid-row: 1;
  padding-left: 0;
  padding-right: clamp(1rem,3vw,2.5rem);
  justify-content: flex-end;
}
.split-text .body-text { margin-top: .9rem; color: #4c5474; }
.split-visual {
  position: relative;
  display: flex;
  justify-content: flex-start;   /* anchor phone to the left edge of its column */
  align-items: center;
  padding-left: clamp(1rem,3vw,2.5rem);  /* consistent left inset for all phone columns */
}

/* ── Command Center 3-column layout ─────────────────────────── */
.cmd-three-col {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}

/* ── Communication section full-width layout ─────────────────── */
.communication-full { display: block; }
.split-text--full {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}
.split-text--full .feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1.4rem 2.4rem;
  margin-top: 2rem;
}
@media (max-width: 640px) {
  .split-text--full .feature-list {
    grid-template-columns: 1fr;
  }
}

/* ── Floating animation for feature items ───────────────────── */
@keyframes featureFloat {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-7px); }
  100% { transform: translateY(0); }
}

.feature-float {
  animation-name: featureFloat;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-duration: 4s;
}
.feature-float--1 { animation-delay: 0s; }
.feature-float--2 { animation-delay: 0.6s; }
.feature-float--3 { animation-delay: 1.2s; }
.feature-float--4 { animation-delay: 1.8s; }
.feature-float--5 { animation-delay: 2.4s; }
.feature-float--6 { animation-delay: 3.0s; }

/* ── Communication section visuals ──────────────────────────── */
.floating-panel {
  position: relative;
  padding: 18px 20px;
  border-radius: 24px;
  background: radial-gradient(circle at 0 0, rgba(255,255,255,.9), rgba(246,249,255,.98));
  box-shadow: 0 18px 55px rgba(13,25,58,.14);
  max-width: 320px; margin-bottom: 20px;
}
.panel-label {
  display: block; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .16em;
  color: #6b7394; margin-bottom: 8px;
}
.panel-bubble { border-radius: 18px; padding: 10px 12px; font-size: .9rem; margin-bottom: 8px; }
.panel-bubble.teacher { background: #eef3ff; color: #252f65; }
.panel-bubble.parent  { background: #e6fffa; color: #125f52; margin-left: 30px; }
.panel-meta { font-size: .78rem; color: #7a82a5; margin-top: 4px; }

/* ── Icons & chips ───────────────────────────────────────────── */
.icon-circle {
  width: 42px; height: 42px; border-radius: 999px;
  background: radial-gradient(circle at 0 0,#6675ff,#4fd1c5);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: white;
  box-shadow: 0 10px 30px rgba(63,81,181,.4);
}
.icon-circle.small { width: 34px; height: 34px; box-shadow: 0 8px 26px rgba(63,81,181,.35); }
.icon-circle svg { width: 20px; height: 20px; fill: currentColor; }
.chip {
  display: inline-flex; align-items: center;
  padding: 2px 10px; border-radius: 999px;
  background: rgba(86,105,255,.06); color: #4c57a0;
  font-size: .75rem; margin-top: 3px;
}

/* ── Feature list rows ───────────────────────────────────────── */
.feature-list { margin-top: 1.6rem; display: flex; flex-direction: column; gap: 1.1rem; }
.feature-row {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: .9rem 1rem; align-items: flex-start;
}
.feature-row h3 { font-size: 1.02rem; margin-bottom: 3px; color: #11152e; }
.feature-row p  { font-size: .95rem; color: #586087; }

/* ═══════════════════════════════════════════════════════════
   COMPLETE FEATURE SET — REMODELLED LAYOUT
   ═══════════════════════════════════════════════════════════ */

/* Outer two-column grid: left (roles) | right (phone) */
.features-outer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 3.5vw, 3.2rem);
  margin-top: 2.4rem;
  align-items: start;
}
.features-left-stack { grid-column: 1; grid-row: 1; }
.features-phone-column { grid-column: 2; grid-row: 1; }

/* Left stack: role-top-row + student-wide */
.features-left-stack {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

/* Top row: Parents + Teachers side-by-side */
.role-top-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

/* Role column cards */
.role-column {
  background: rgba(255,255,255,.88);
  border-radius: 24px;
  padding: 20px 22px 22px;
  box-shadow: 0 16px 44px rgba(13,25,58,.11);
  border: 1px solid rgba(102,117,255,.1);
  transition: transform .2s ease, box-shadow .2s ease;
}
.role-column:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 56px rgba(13,25,58,.16);
}
.role-column-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.role-column h3 { font-size: 1.08rem; color: #151a3a; }
.role-column ul { list-style: none; font-size: .94rem; color: #4b557b; }
.role-column li { padding: 5px 0; position: relative; padding-left: 18px; }
.role-column li::before {
  content: "";
  position: absolute; left: 5px; top: 10px;
  width: 6px; height: 6px; border-radius: 999px;
  background: linear-gradient(135deg,#6675ff,#4fd1c5);
}

/* Students landscape band */
.student-wide {
  background: rgba(255,255,255,.92);
  border-radius: 24px;
  padding: 18px 22px 22px;
  box-shadow: 0 18px 50px rgba(13,25,58,.12);
  border: 1px solid rgba(102,117,255,.14);
}
.student-wide-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.student-wide h3   { font-size: 1.1rem; margin-bottom: 2px; color: #151a3a; }
.student-wide-sub  { color: #5a6182; font-size: .91rem; }
.student-wide-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 8px 14px;
  color: #4b557b; font-size: .94rem;
}
.student-wide-list li { position: relative; padding-left: 18px; }
.student-wide-list li::before {
  content: "";
  position: absolute; left: 5px; top: 10px;
  width: 6px; height: 6px; border-radius: 999px;
  background: linear-gradient(135deg,#6675ff,#4fd1c5);
}

/* Right: phone column */
.features-phone-column {
  position: sticky;
  top: 96px;
  display: flex; justify-content: center;
}
.features-phone-wrap {
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
}
.features-phone-label {
  display: block; font-size: .75rem;
  text-transform: uppercase; letter-spacing: .16em;
  color: #6b7394; text-align: center;
}
.features-phone {
  width: 240px;
}
.features-phone .phone-screen { min-height: 480px; }

/* Role tags below phone */
.features-phone-tags {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  margin-top: 4px;
}
.role-tag {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: 999px;
  font-size: .75rem; font-weight: 600;
  letter-spacing: .02em;
}
.tag-parent  { background: rgba(102,117,255,.1);  color: #4a56c0; }
.tag-teacher { background: rgba(79,209,197,.12);  color: #1a7a70; }
.tag-student { background: rgba(255,159,79,.12);  color: #b85c00; }

/* ── Remaining pill layouts (attendance grid) ────────────────── */
.pill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.1rem; margin-top: 1.6rem;
}
.pill-item {
  background: rgba(255,255,255,.95);
  border-radius: 22px; padding: 16px 18px;
  box-shadow: 0 16px 42px rgba(15,25,61,.12);
}
.pill-item h3 { font-size: .98rem; margin-bottom: 4px; color: #191f3e; }
.pill-item p  { font-size: .9rem; color: #555f82; }

/* Groups & communities */
.stacked-card {
  background: rgba(255,255,255,.9);
  border-radius: 26px; padding: 20px 22px 18px;
  box-shadow: 0 18px 50px rgba(13,25,58,.14);
  max-width: 360px;
}
.stacked-card .card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.stacked-card h3 { font-size: 1.05rem; color: #171b37; }
.feed-list {
  list-style: none; font-size: .92rem; color: #4e5679;
  display: flex; flex-direction: column; gap: 8px;
}
.feed-list .dot.post { width: 7px; height: 7px; background: #6675ff; }
.feed-list li { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 8px; align-items: flex-start; }

/* Fees receipt */
.receipt-card {
  background: rgba(255,255,255,.96);
  border-radius: 26px; padding: 20px 22px;
  max-width: 360px;
  box-shadow: 0 18px 52px rgba(13,25,58,.16);
}
.receipt-card .card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.receipt-body .line { display: flex; justify-content: space-between; font-size: .9rem; color: #323858; padding: 3px 0; }
.receipt-body .divider {
  margin: 8px 0; height: 1px;
  background: linear-gradient(90deg, rgba(144,164,255,.1), rgba(144,164,255,.4), rgba(144,164,255,.1));
}
.receipt-body .total span:last-child { font-weight: 600; }
.receipt-body .note { font-size: .8rem; color: #6a7399; margin-top: 6px; }

/* Security band */
.dark-band {
  color: #f9fafe;
  background:
    radial-gradient(circle at 0% 0%, #3949ab 0, transparent 55%),
    radial-gradient(circle at 100% 100%, #0bc5ea 0, transparent 55%),
    linear-gradient(145deg, #050815, #0a1024 55%, #071b2b 100%);
}
.security-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.8rem; margin-top: 2.2rem; }
.security-card {
  background: rgba(6,13,34,.82);
  border-radius: 26px; padding: 20px 22px 22px;
  border: 1px solid rgba(129,140,248,.4);
  box-shadow: 0 24px 70px rgba(5,11,31,.8);
}
.security-card .card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.security-card h3 { font-size: 1.05rem; }
.bullet-list {
  list-style: none; font-size: .92rem; color: #d1d6ff;
  display: flex; flex-direction: column; gap: 6px; margin-top: 4px;
}
.bullet-list li { position: relative; padding-left: 16px; }
.bullet-list li::before {
  content: ""; position: absolute; left: 3px; top: 9px;
  width: 5px; height: 5px; border-radius: 999px;
  background: linear-gradient(135deg,#63b3ed,#9f7aea);
}

/* ═══════════════════════════════════════════════════════════
   TESTIMONIALS — 2-UP + PEEK CAROUSEL
   2 full cards centred · partial cards bleed from both edges
   ═══════════════════════════════════════════════════════════ */
.testimonials-section {
  background: transparent;
  /* Clips the peeking partial cards at the section boundary */
  overflow: hidden;
}

.testi-eyebrow {
  color: #6675ff;
  opacity: 1;
  font-size: .78rem;
  margin-bottom: .5rem;
  display: block;
}

/* ── Band: holds arrows + carousel in a flex row ──────────── */
.testi-band {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-top: 2.8rem;
  width: 100%;
}

/* ── Arrow buttons ────────────────────────────────────────── */
.testi-arrow {
  flex-shrink: 0;
  align-self: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(102,117,255,.22);
  background: rgba(247,248,255,.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #5a6080;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 2px 12px rgba(13,25,58,.09);
  transition: background .18s, color .18s, border-color .18s, box-shadow .18s, transform .18s;
  position: relative;
}
.testi-arrow:hover {
  background: #6675ff;
  color: #fff;
  border-color: #6675ff;
  box-shadow: 0 6px 22px rgba(102,117,255,.36);
  transform: scale(1.07);
}
.testi-arrow--prev { margin-right: 10px; }
.testi-arrow--next { margin-left: 10px; }

/* ── Carousel wrapper ─────────────────────────────────────── */
.testimonial-carousel {
  flex: 1;
  min-width: 0;
}

/* KEY: overflow visible lets partial cards bleed outside carousel bounds.
   The section overflow:hidden clips them at the viewport edge.
   Padding creates the peek gutter on both sides. */
.testimonial-carousel .slick-list {
  overflow: visible !important;
  padding: 12px 9% !important;   /* 9% shows ~half a card on each side */
}

/* Equal-height cards: stretch every slide to the tallest in the row */
.testimonial-carousel .slick-track {
  display: flex !important;
}
.testimonial-carousel .slick-slide {
  display: flex !important;
  height: auto !important;
}

/* ── Per-slide wrapper ────────────────────────────────────── */
.testi-slide {
  padding: 0 10px 22px;  /* horizontal gap between cards; bottom for dots */
  width: 100%;
  display: flex !important;
  flex-direction: column;
}

/* ── Card — blended with page background ─────────────────── */
.testi-card {
  background: linear-gradient(145deg, rgba(247,248,255,.88) 0%, rgba(238,243,255,.92) 100%);
  border: 1px solid rgba(102,117,255,.12);
  border-radius: 18px;
  padding: 30px 26px 24px;
  box-shadow:
    0 1px 2px rgba(13,25,58,.03),
    0 6px 24px rgba(13,25,58,.08);
  /* fill the stretched flex row for equal height */
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* Dim non-active cards slightly for visual hierarchy */
  opacity: .72;
  transform: scale(.985);
  transition: opacity .3s ease, transform .3s ease,
              box-shadow .3s ease, border-color .3s ease;
  outline: none;
  user-select: none;
}
/* Active / hovered card pops forward */
.testimonial-carousel .slick-active .testi-card {
  opacity: 1;
  transform: scale(1);
}
.testi-card:hover {
  box-shadow:
    0 2px 6px rgba(13,25,58,.05),
    0 14px 40px rgba(13,25,58,.12);
  border-color: rgba(102,117,255,.28);
  transform: scale(1) translateY(-3px);
}

/* ── Quote text ───────────────────────────────────────────── */
.testi-comment {
  font-size: .97rem;
  font-style: italic;
  line-height: 1.78;
  color: #2d3657;
  flex: 1;
  margin-bottom: 20px;
}
.testi-comment em {
  font-weight: 700;
  font-style: italic;
  color: #1a2040;
}

/* ── Divider ──────────────────────────────────────────────── */
.testi-divider {
  border: none;
  border-top: 1px solid rgba(102,117,255,.12);
  margin: 0 0 16px;
}

/* ── Footer: avatar + info ────────────────────────────────── */
.testi-footer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testi-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 700;
  letter-spacing: .03em;
  /* gradient set by inline JS via --avatar-h */
}
.testi-info  { display: flex; flex-direction: column; gap: 2px; }
.testi-name  { font-size: .95rem; font-weight: 700; color: #111827; font-style: normal; }
.testi-meta  { font-size: .81rem; color: #6b7394; font-style: normal; }

/* ── Dots ─────────────────────────────────────────────────── */
.testimonial-carousel .slick-dots {
  display: flex !important;
  justify-content: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 6px 0 0;
}
.testimonial-carousel .slick-dots li { margin: 0; width: auto; height: auto; }
.testimonial-carousel .slick-dots li button {
  width: 8px; height: 8px;
  padding: 0; border: none; border-radius: 999px;
  background: rgba(102,117,255,.2);
  font-size: 0; line-height: 0; cursor: pointer;
  transition: background .2s, width .22s;
}
.testimonial-carousel .slick-dots li.slick-active button {
  width: 24px; background: #6675ff;
}
.testimonial-carousel .slick-dots li button::before { display: none; }

/* ═══════════════════════════ BUTTONS ════════════════════════ */
.btn {
  display: inline-block;
  padding: 11px 22px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: .9rem;
  border: none; cursor: pointer;
  transition: transform .16s ease-out, box-shadow .16s ease-out, background .16s ease-out, color .16s ease-out;
}
.btn.primary {
  background: linear-gradient(120deg,#6675ff,#4fd1c5);
  color: white;
  box-shadow: 0 16px 40px rgba(45,55,150,.55);
}
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 18px 48px rgba(37,49,130,.7); }
.btn.ghost {
  background: rgba(9,14,40,.4);
  color: #e2e8ff;
  border: 1px solid rgba(203,213,255,.5);
}
.btn.ghost:hover { background: rgba(9,14,40,.7); }
/* Secondary nav button — lighter variant of primary, visually subordinate */
.btn.secondary {
  background: rgba(102,117,255,.11);
  color: #6675ff;
  border: 1.5px solid rgba(102,117,255,.32);
  box-shadow: none;
  opacity: .92;
}
.btn.secondary:hover {
  background: rgba(102,117,255,.2);
  border-color: rgba(102,117,255,.55);
  opacity: 1;
  transform: translateY(-1px);
}
.btn.small { padding: 8px 18px; font-size: .82rem; }
.btn.full-width { width: 100%; text-align: center; }

/* ═══════════════════════════ REVEAL ANIMATIONS ══════════════ */
.reveal-up, .reveal-left, .reveal-right, .reveal-scale {
  opacity: 0; transform-origin: center;
  transition: opacity .7s ease-out, transform .7s ease-out;
  transition-delay: var(--reveal-delay, 0s);
}
.reveal-up    { transform: translateY(32px); }
.reveal-left  { transform: translateX(-32px); }
.reveal-right { transform: translateX(32px); }
.reveal-scale { transform: translateY(32px) scale(.96); }
.reveal-up.in-view,
.reveal-left.in-view,
.reveal-right.in-view,
.reveal-scale.in-view { opacity: 1; transform: translate3d(0,0,0) scale(1); }

.parallax-move { will-change: transform; }

/* ═══════════════════════════════════════════════════════════
   FOOTER — EXPANDED SAAS LAYOUT
   ═══════════════════════════════════════════════════════════ */
.footer-mega {
  background: #050815;
  color: #a0aec0;
  padding: 60px 20px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, minmax(0,1fr));
  gap: 32px;
  align-items: start;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(203,213,255,.1);
}
.footer-brand .footer-logo { color: #e2e8ff; margin-bottom: 2px; }
.footer-tagline {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #6675ff;
  margin-bottom: 12px;
  font-weight: 600;
}
.footer-note { color: #a0aec0; font-size: .91rem; line-height: 1.7; max-width: 260px; }

/* Social buttons */
.footer-social { display: flex; gap: 8px; margin-top: 18px; }
.social-btn {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06);
  color: #a0aec0;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.08);
  transition: background .16s, color .16s, transform .16s;
}
.social-btn:hover { background: rgba(102,117,255,.2); color: #e2e8ff; transform: translateY(-2px); }

/* Link columns */
.footer-col h3 {
  color: #e2e8ff;
  font-size: .88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.footer-col a {
  display: block; color: #8b99c2;
  text-decoration: none; font-size: .9rem;
  margin: 9px 0;
  transition: color .15s, transform .15s;
}
.footer-col a:hover { color: #e2e8ff; transform: translateX(3px); }

/* Bottom bar */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 18px 0 24px;
  font-size: .86rem;
}
.footer-copy { color: #6b7394; }

/* Right-side attribution */
.footer-attribution {
  color: #6b7394;
  font-size: .85rem;
  text-align: right;
  margin-left: auto;
}
.footer-attribution-link {
  display: inline-flex; align-items: center; gap: 4px;
  color: #8fa0e0;
  text-decoration: none;
  font-weight: 600;
  transition: color .15s;
}
.footer-attribution-link:hover { color: #b4c4ff; }

/* ═══════════════════════════════════════════════════════════
   SLICK INSIDE PHONE MOCKUPS
   ═══════════════════════════════════════════════════════════ */
.phone-screen--slick { position: relative; display: flex; flex-direction: column; }
.phone-screen--slick > div { height: 100%; min-height: 0; }
.phone-screen--slick .slick-slider,
.phone-screen--slick .slick-list,
.phone-screen--slick .slick-track { height: 100%; }
.phone-screen--slick .slick-slider { width: 100%; margin: 0; margin-bottom: 0px;}
.phone-screen--slick .slick-slide { height: 100%; }
.phone-screen--slick .slick-slide > div { height: 100%; }
.phone-screen--slick .slick-slide img { width: 100%; height: 100%; object-fit: cover; display: block; object-position: top; }
.phone-screen--slick .slick-dots {
  position: absolute; bottom: 10px; left: 50%;
  transform: translateX(-50%);
  margin: 0; padding: 0; list-style: none;
  display: flex; gap: 6px; justify-content: center; z-index: 3;
}
.phone-screen--slick .slick-dots li { margin: 0; width: auto; height: auto; }
.phone-screen--slick .slick-dots li button {
  width: 6px; height: 6px; padding: 0;
  border: none; border-radius: 999px;
  background: rgba(255,255,255,.35);
  font-size: 0; line-height: 0; cursor: pointer;
  transition: background .2s ease, width .2s ease, transform .2s ease;
}
.phone-screen--slick .slick-dots li button:hover { background: rgba(255,255,255,.6); }
.phone-screen--slick .slick-dots li.slick-active button { width: 16px; background: #fff; transform: translateY(-1px); }
.phone-screen--slick .slick-dots li button::before { display: none; }

/* ═══════════════════════════════════════════════════════════
   AUTH / LEGAL PAGES
   ═══════════════════════════════════════════════════════════ */
.auth-body {
  background:
    radial-gradient(circle at 0% 0%, #f0f4ff 0, transparent 55%),
    radial-gradient(circle at 100% 100%, #e0f7ff 0, transparent 55%),
    linear-gradient(180deg, #f8f9ff 0%, #eff6ff 45%, #f8fafc 100%);
}
.auth-page .auth-section,
.legal-page .legal-section { padding-top: 96px; padding-bottom: 96px; }
.auth-grid {
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(0,.9fr);
  gap: clamp(2.6rem,4vw,4rem);
  align-items: center;
}
.auth-intro h1 { font-size: clamp(2rem,3vw,2.4rem); margin-bottom: .6rem; color: #06102b; }
.auth-card { background: #fff; border-radius: 24px; padding: 24px 24px 26px; box-shadow: 0 20px 60px rgba(15,23,42,.14); }
.auth-card h2 { font-size: 1.3rem; margin-bottom: 1.2rem; color: #111827; }
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 4px; }
.form-field label { font-size: .86rem; font-weight: 600; color: #4b5563; }
.form-field input {
  border-radius: 10px; border: 1px solid #d1d5db;
  padding: 9px 11px; font-size: .9rem; font-family: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.form-field input:focus { border-color: #6675ff; box-shadow: 0 0 0 1px rgba(102,117,255,.45); background-color: #f9fafb; }
.captcha-field label { margin-bottom: 4px; }
.captcha-box {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; border-radius: 12px; border: 1px dashed #cbd5e1;
  padding: 9px 11px; background: #f9fafb;
}
.captcha-prompt { display: flex; flex-direction: column; gap: 2px; }
.captcha-text { font-weight: 600; color: #111827; }
.captcha-note { font-size: .78rem; color: #6b7280; }
.captcha-box input { max-width: 80px; text-align: center; }
.legal-body { max-width: 780px; }
.legal-header h1 { font-size: clamp(2rem,3vw,2.4rem); margin-bottom: .6rem; color: #041025; }
.legal-content { margin-top: 1.8rem; font-size: .96rem; color: #111827; }
.legal-content h2 { font-size: 1.08rem; margin-top: 1.2rem; margin-bottom: .4rem; color: #111827; }
.legal-content p  { margin-bottom: .6rem; color: #4b5563; }
.legal-content ul { padding-left: 1.1rem; margin-bottom: .6rem; color: #4b5563; }
.legal-content li { margin-bottom: .25rem; }

/* ─── Standalone footer (auth / legal pages) ─────────────── */
.footer {
  background: #050815; color: #a0aec0;
  padding: 26px 20px 30px; font-size: .9rem;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-links { display: flex; gap: 1.4rem; font-size: .88rem; }
.footer-links a { color: #cbd5f5; text-decoration: none; transition: color .16s; }
.footer-links a:hover { color: #e2e8ff; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-content,
  .split-layout,
  .security-grid,
  .pill-grid { grid-template-columns: minmax(0,1fr); }

  /* On tablet/mobile phones stack below text, centered */
  .split-visual {
    justify-content: center;
    padding-left: 0;
  }

  .hero-section { min-height: auto; padding-top: 60px; padding-bottom: 56px; }
  .hero-content { gap: 2.6rem; }
  .hero-text { max-width: 100%; text-align: center; }
  .hero-cta, .hero-badges { justify-content: center; }
  .hero-devices { min-height: 320px; }
  .phone-secondary.phone-left,
  .phone-secondary.phone-right { display: none; }
  .split-layout.reverse { grid-template-columns: minmax(0,1fr); }
  .split-layout.reverse > .split-text,
  .split-layout.reverse > .split-visual {
    grid-column: 1;
    grid-row: auto;
    padding-right: 0;
  }
  .cmd-three-col { grid-template-columns: 1fr; }
  .cmd-three-col > * { grid-column: 1 !important; grid-row: auto !important; }
  .auth-grid { grid-template-columns: minmax(0,1fr); }

  /* Features section */
  .features-outer-grid { grid-template-columns: minmax(0,1fr); }
  .features-left-stack, .features-phone-column { grid-column: 1; grid-row: auto; }
  .features-phone-column { position: static; margin-top: 0.8rem; order: -1; } /* phone above on tablet */
  .features-left-stack { order: 2; }


  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-note { max-width: 100%; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .page-flow { padding-top: 70px; }
  .flow-section { padding: 64px 0; }

  /* Features */
  .role-top-row { grid-template-columns: 1fr; }
  .student-wide-list { grid-template-columns: repeat(2, minmax(0,1fr)); }

  /* Phone sizes */
  .phone-frame { width: 240px; }
  .phone-screen { min-height: 440px; }
  .phone-main { width: 260px; }

  /* Testimonials — tablet: 2 cards, reduced peek gutter */
  .testi-arrow { width: 38px; height: 38px; }
  .testi-arrow--prev { margin-right: 6px; }
  .testi-arrow--next { margin-left: 6px; }
  .testi-slide { padding: 0 8px 18px; }
  .testi-card { padding: 22px 18px 20px; }
  /* Tighten peek on tablet */
  .testimonial-carousel .slick-list { padding: 10px 6% !important; }

  /* Footer */
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: .7rem; }
  .footer-attribution { margin-left: 0; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .student-wide-list { grid-template-columns: minmax(0,1fr); }
  .features-phone-wrap { width: 100%; }
  .features-phone { width: 200px; }
  .features-phone .phone-screen { min-height: 400px; }
  /* Testimonials — mobile: 1 card, no peek, swipe only */
  .testi-arrow { display: none; }
  .testi-band { display: block; }
  .testi-slide { padding: 4px 0 16px; }
  /* Disable peek on mobile for clean single-card view */
  .testimonial-carousel .slick-list { padding: 8px 0 !important; overflow: hidden !important; }
  .logo-type { height: 16px; }
  .logo-emblem { width: 26px; }
}

/* ═══════════════════════════════════════════════════════════
   SCROLL TO TOP BUTTON
   ═══════════════════════════════════════════════════════════ */
#scroll-to-top {
  /* Positioning */
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;

  /* Size & shape */
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  cursor: pointer;

  /* Brand gradient — matches .btn.primary */
  background: linear-gradient(135deg, #6675ff, #4fd1c5);

  /* Icon colour */
  color: #fff;

  /* Centering the arrow SVG */
  display: flex;
  align-items: center;
  justify-content: center;

  /* Subtle transparency at rest */
  opacity: 0.72;

  /* Soft depth — matches card shadow language */
  box-shadow:
    0 8px 28px rgba(45, 55, 150, 0.42),
    0 2px 8px  rgba(0,   0,   0,  0.14);

  /* Glass-like edge */
  outline: 1.5px solid rgba(255, 255, 255, 0.22);
  outline-offset: -1px;

  /* Backdrop blur for frosted feel */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  /* Hidden by default — JS adds/removes .stt-visible */
  visibility: hidden;
  pointer-events: none;

  /* Fade + lift transition */
  transition:
    opacity     0.32s ease,
    transform   0.32s ease,
    visibility  0s    linear 0.32s,
    box-shadow  0.2s  ease;

  /* Start slightly below final position for the reveal animation */
  transform: translateY(10px) scale(0.92);
}

/* Visible state — toggled by jQuery */
#scroll-to-top.stt-visible {
  visibility: visible;
  pointer-events: auto;
  opacity: 0.72;
  transform: translateY(0) scale(1);
  transition:
    opacity    0.32s ease,
    transform  0.32s ease,
    visibility 0s    linear 0s,
    box-shadow 0.2s  ease;
}

/* Hover — brighter, lifts up */
#scroll-to-top:hover {
  opacity: 1;
  transform: translateY(-3px) scale(1.06);
  box-shadow:
    0 14px 38px rgba(45, 55, 150, 0.58),
    0 4px  12px rgba(0,   0,   0,  0.18);
}

/* Active / press feedback */
#scroll-to-top:active {
  transform: translateY(0) scale(0.97);
  opacity: 0.88;
}

/* ── Responsive adjustments ─────────────────────────────── */
@media (max-width: 768px) {
  #scroll-to-top {
    width: 42px;
    height: 42px;
    bottom: 20px;
    right: 16px;
  }
}

@media (max-width: 480px) {
  #scroll-to-top {
    width: 38px;
    height: 38px;
    bottom: 16px;
    right: 14px;
  }
  #scroll-to-top svg {
    width: 16px;
    height: 16px;
  }
}


/* ═══════════════════════════════════════════════════════════
   COMMUNICATION SECTION — Reworked dark-frame phone
   ═══════════════════════════════════════════════════════════ */
.comm-phone-visual { justify-content: center; align-items: center; }

.comm-phone-wrap {
  animation: phoneFloat 4.2s ease-in-out infinite;
}

@keyframes phoneFloat {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-10px); }
}

/* Dark phone frame — matches reference image style */
.comm-phone-frame {
  position: relative;
  width: 240px;
  background: #1a1f35;
  border-radius: 42px;
  padding: 16px 10px 22px;
  box-shadow:
    0 0 0 2px rgba(255,255,255,.06),
    0 32px 80px rgba(13,18,40,.55),
    0 8px 24px rgba(86,105,255,.22);
}

.comm-phone-notch {
  width: 80px; height: 22px;
  background: #1a1f35;
  border-radius: 0 0 18px 18px;
  margin: 0 auto 8px;
  position: relative;
  z-index: 2;
}
.comm-phone-notch::before {
  content:'';
  position:absolute; top:4px; left:50%; transform:translateX(-50%);
  width:10px; height:10px; border-radius:50%;
  background:#2a2e4a;
  box-shadow:0 0 0 2px rgba(255,255,255,.08);
}

.comm-phone-screen {
  background: #ffffff;
  border-radius: 28px;
  overflow: hidden;
  height: 360px;
}

/* Slide dots */
.comm-phone-dots {
  display: flex; align-items: center; justify-content: center;
  gap: 5px; padding-top: 10px;
}
.comm-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.25);
  transition: background .3s, width .3s;
}
.comm-dot--1 { width: 16px; border-radius: 999px; background: rgba(255,255,255,.75); }

/* Screen track — vertical scroll through 4 slides */
.comm-screen-track {
  display: flex; flex-direction: column;
  height: 400%;  /* 4 slides */
  animation: commScroll 15s ease-in-out infinite;
}

@keyframes commScroll {
  0%,  20% { transform: translateY(0);     }
  28%, 48% { transform: translateY(-25%);  }
  56%, 76% { transform: translateY(-50%);  }
  84%, 97% { transform: translateY(-75%);  }
  100%      { transform: translateY(-75%); }
}

.comm-slide {
  flex: 0 0 25%; height: 25%;
  display: flex; flex-direction: column;
  background: #fff;
}

/* ── Shared screen inner elements (cs-*) ─────────────────── */
.cs-header {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 13px;
  font-size: .79rem; font-weight: 700; color: #fff;
  letter-spacing: .02em; flex-shrink: 0;
}
.cs-header--blue   { background: linear-gradient(120deg,#5671ff,#4fc3b8); }
.cs-header--purple { background: linear-gradient(120deg,#7c5cfc,#6675ff); }
.cs-header--teal   { background: linear-gradient(120deg,#38c9b9,#5671ff); }

.cs-live-badge {
  margin-left: auto; font-size: .67rem; font-weight: 600;
  background: rgba(255,255,255,.18); border-radius: 999px;
  padding: 2px 7px; letter-spacing: .04em;
}

/* Chat body inside slide */
.cs-chat-body {
  flex: 1; padding: 10px 10px 8px;
  display: flex; flex-direction: column; gap: 7px;
  overflow: hidden;
}
.cs-chat-msg { display: flex; align-items: flex-end; gap: 6px; }
.cs-chat-msg--out { flex-direction: row-reverse; }
.cs-chat-avatar {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg,#6675ff,#4fd1c5);
  color: #fff; font-size: .65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.cs-chat-bubble {
  border-radius: 16px; padding: 7px 10px;
  font-size: .76rem; line-height: 1.4; max-width: 82%;
}
.cs-chat-bubble .cs-chat-name {
  display: block; font-size: .63rem; font-weight: 700;
  color: #6675ff; margin-bottom: 2px;
}
.cs-chat-bubble--in {
  background: #eef3ff; color: #1a2040;
  border-bottom-left-radius: 4px;
}
.cs-chat-bubble--out {
  background: linear-gradient(120deg,#5671ff,#3d52e0);
  color: #fff; border-bottom-right-radius: 4px;
}
.cs-typing-row { display: flex; align-items: flex-end; gap: 6px; }
.cs-typing-bubble {
  display: flex; align-items: center; gap: 3px;
  background: #eef3ff; border-radius: 16px; border-bottom-left-radius: 4px;
  padding: 7px 10px;
}
.cs-typing-bubble span {
  width: 5px; height: 5px; border-radius: 50%;
  background: #8896c6;
  animation: csBounce 1s ease-in-out infinite;
}
.cs-typing-bubble span:nth-child(2) { animation-delay:.18s; }
.cs-typing-bubble span:nth-child(3) { animation-delay:.36s; }

@keyframes csBounce {
  0%,60%,100% { transform: translateY(0); }
  30%          { transform: translateY(-4px); }
}

/* Stats / attendance body */
.cs-body {
  flex: 1; padding: 10px 13px;
  display: flex; flex-direction: column; gap: 8px; overflow: hidden;
}
.cs-label { font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: #8896c6; }
.cs-stat-row { display: flex; align-items: center; gap: 7px; font-size: .82rem; color: #3a4471; }
.cs-stat-row strong { margin-left: auto; font-weight: 700; }
.cs-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.cs-dot--green { background: #38c9b9; }
.cs-dot--red   { background: #fc5c65; }
.cs-dot--amber { background: #f6ad55; }
.cs-bar { height: 6px; background: #e8ecff; border-radius: 999px; overflow: hidden; }
.cs-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg,#6675ff,#4fd1c5); }
.cs-note { font-size: .68rem; color: #8896c6; margin-top: -2px; }
.cs-exam-row { display: flex; align-items: center; gap: 7px; font-size: .8rem; color: #3a4471; }
.cs-exam-row em { margin-left: auto; font-size: .74rem; color: #8896c6; font-style: normal; }
.cs-pill { padding: 2px 7px; border-radius: 999px; font-size: .66rem; font-weight: 700; flex-shrink: 0; }
.cs-pill--mon { background: #eef3ff; color: #5671ff; }
.cs-pill--wed { background: #e6fff8; color: #1a9c82; }
.cs-pill--fri { background: #fff7e6; color: #b07a10; }

/* ═══════════════════════════════════════════════════════════
   COMMAND CENTER — Chat snapshot card (matches chatsample.png)
   Card on LEFT, phone on RIGHT
   ═══════════════════════════════════════════════════════════ */
.cmd-visual { flex-direction: row; align-items: center; justify-content: center; gap: 0; }
.cmd-phone { flex-shrink: 0; }

.cmd-scene {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
}

/* Floating chat snapshot card — slightly overlaps phone on right edge */
.chat-snapshot {
  position: relative;
  z-index: 2;
  margin-right: -20px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 22px;
  padding: 20px 22px 16px;
  width: 240px;
  flex-shrink: 0;
  box-shadow:
    0 4px 6px rgba(13,25,58,.04),
    0 20px 50px rgba(13,25,58,.13);
  border: 1px solid rgba(255,255,255,.8);
}

.chat-snapshot__label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #8896c6;
  margin-bottom: 14px;
}

.chat-snapshot__body {
  display: flex; flex-direction: column; gap: 0;
  min-height: 160px;
}

/* Teacher bubble — blue/indigo tint, left-aligned */
.chat-bubble-wrap { display: flex; }
.chat-bubble-wrap--2,
.chat-bubble-wrap--4 { justify-content: flex-end; }

.chat-bubble {
  max-width: 88%;
  border-radius: 18px;
  padding: 10px 13px;
  font-size: .84rem;
  line-height: 1.5;
  margin-bottom: 8px;
}
.chat-bubble--teacher {
  background: #eaedff;
  color: #1a2040;
  border-bottom-left-radius: 5px;
  align-self: flex-start;
}
.chat-bubble--parent {
  background: #e2faf4;
  color: #0e3d30;
  border-bottom-right-radius: 5px;
  margin-left: 24px;
}

/* Typing indicator inside chat card */
.chat-typing-wrap { display: flex; margin-bottom: 8px; }
.chat-typing-wrap--2 { justify-content: flex-end; }
.chat-typing {
  display: flex; align-items: center; gap: 4px;
  background: #eaedff;
  border-radius: 14px; border-bottom-left-radius: 4px;
  padding: 7px 10px;
}
.chat-typing-wrap--2 .chat-typing {
  background: #e2faf4;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 4px;
}
.chat-typing span {
  width: 5px; height: 5px; border-radius: 50%;
  background: #8896c6;
  animation: csBounce 1s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay:.16s; }
.chat-typing span:nth-child(3) { animation-delay:.32s; }

/* Animated message appearance — 16s loop */
.chat-bubble-wrap--1  { animation: chatIn 16s ease-in-out infinite; opacity:0; }
.chat-typing-wrap--1  { animation: chatTyp1 16s ease-in-out infinite; opacity:0; }
.chat-bubble-wrap--2  { animation: chatIn2 16s ease-in-out infinite; opacity:0; }
.chat-bubble-wrap--3  { animation: chatIn3 16s ease-in-out infinite; opacity:0; }
.chat-typing-wrap--2  { animation: chatTyp2 16s ease-in-out infinite; opacity:0; }
.chat-bubble-wrap--4  { animation: chatIn4 16s ease-in-out infinite; opacity:0; }

@keyframes chatIn  { 0%{opacity:0;transform:translateY(7px)} 5%{opacity:1;transform:translateY(0)} 78%{opacity:1} 88%{opacity:0} 100%{opacity:0} }
@keyframes chatTyp1{ 0%,13%{opacity:0;transform:translateY(5px)} 15%{opacity:1;transform:translateY(0)} 21%{opacity:1} 24%{opacity:0} 100%{opacity:0} }
@keyframes chatIn2 { 0%,23%{opacity:0;transform:translateY(7px)} 26%{opacity:1;transform:translateY(0)} 78%{opacity:1} 88%{opacity:0} 100%{opacity:0} }
@keyframes chatIn3 { 0%,37%{opacity:0;transform:translateY(7px)} 40%{opacity:1;transform:translateY(0)} 78%{opacity:1} 88%{opacity:0} 100%{opacity:0} }
@keyframes chatTyp2{ 0%,49%{opacity:0;transform:translateY(5px)} 51%{opacity:1;transform:translateY(0)} 56%{opacity:1} 59%{opacity:0} 100%{opacity:0} }
@keyframes chatIn4 { 0%,58%{opacity:0;transform:translateY(7px)} 61%{opacity:1;transform:translateY(0)} 78%{opacity:1} 88%{opacity:0} 100%{opacity:0} }

.chat-snapshot__caption {
  font-size: .76rem; color: #8896c6;
  margin-top: 10px; line-height: 1.45;
}

/* ═══════════════════════════════════════════════════════════
   ACADEMIC — Mobile Snapshots container (matches sample2phone.png)
   Navy rounded container, two equal phones
   ═══════════════════════════════════════════════════════════ */
.acad-dual-visual { justify-content: center; }

.mobile-snapshots-container {
  background: #16213e;
  border-radius: 28px;
  padding: 20px 22px 24px;
  box-shadow: 0 30px 80px rgba(10,15,40,.45), 0 8px 24px rgba(86,105,255,.18);
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.mobile-snapshots-label {
  font-size: .71rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: rgba(255,255,255,.7);
}

.mobile-snapshots-phones {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.snap-phone {
  width: 178px;
  flex-shrink: 0;
  animation: snapFloat1 4s ease-in-out infinite;
  /* Override phone-frame background for dark appearance */
  background: #0f1428;
  box-shadow:
    0 0 0 1.5px rgba(255,255,255,.08),
    0 16px 40px rgba(0,0,0,.55);
}
.snap-phone .phone-notch { background: #0f1428; }
.snap-phone .phone-screen { min-height: 360px; }

.snap-phone--right {
  margin-top: 22px;
  animation: snapFloat2 4.6s ease-in-out infinite;
}

@keyframes snapFloat1 {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-7px); }
}
@keyframes snapFloat2 {
  0%,100% { transform: translateY(22px); }
  50%     { transform: translateY(14px); }
}

/* ═══════════════════════════════════════════════════════════
   CONTACT PAGE v2 — matches reference image layout
   ═══════════════════════════════════════════════════════════ */
.contact-page .contact-section { padding-top: 96px; padding-bottom: 0; }

.contact-page-hero {
  text-align: center;
  padding-bottom: 3rem;
}
.contact-page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.04em;
  color: #04102e;
  margin-bottom: .35rem;
}
.contact-accent { color: #6675ff; }
.contact-page-sub {
  font-size: 1.05rem;
  color: #5a6182;
  margin-bottom: 1rem;
}
.contact-divider {
  width: 48px; height: 3px;
  background: linear-gradient(90deg,#6675ff,#4fd1c5);
  border-radius: 999px;
  margin: 0 auto;
}

/* Two-column: form | info */
.contact-two-col {
  display: grid;
  grid-template-columns: minmax(0,1.4fr) minmax(0,1fr);
  gap: clamp(2.4rem,4vw,4.5rem);
  align-items: start;
  padding-bottom: 3rem;
}

/* Form column */
.contact-form-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: #04102e;
  margin-bottom: 1.4rem;
  letter-spacing: -.02em;
}
.contact-form-v2 { display: flex; flex-direction: column; gap: .9rem; }
.cfv2-field { display: flex; flex-direction: column; }
.cfv2-field--full { width: 100%; }
.cfv2-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }

.cfv2-field input,
.cfv2-field textarea {
  border: 1.5px solid #d1d9f0;
  border-radius: 10px;
  padding: 12px 15px;
  font-size: .93rem;
  font-family: inherit;
  color: #1a2040;
  background: #fafbff;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
  resize: vertical;
}
.cfv2-field input:focus,
.cfv2-field textarea:focus {
  border-color: #6675ff;
  box-shadow: 0 0 0 3px rgba(102,117,255,.13);
  background: #fff;
}
.cfv2-field input::placeholder,
.cfv2-field textarea::placeholder { color: #9aa3c4; }
.cfv2-field textarea { min-height: 160px; }

.contact-send-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 28px;
  background: linear-gradient(120deg,#6675ff,#4fd1c5);
  color: #fff; font-weight: 700; font-size: .93rem;
  border: none; border-radius: 10px; cursor: pointer;
  box-shadow: 0 14px 36px rgba(86,105,255,.45);
  transition: transform .16s, box-shadow .16s;
  align-self: flex-start;
}
.contact-send-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(86,105,255,.6); }

/* Info column */
.contact-info-col { display: flex; flex-direction: column; gap: 1.6rem; padding-top: .25rem; }

.contact-info-heading {
  font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .14em;
  color: #04102e; margin-bottom: .75rem;
  padding-bottom: .55rem;
  border-bottom: 1.5px solid #e8ecff;
}
.contact-info-row {
  display: flex; align-items: flex-start; gap: 12px;
}
.contact-info-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #fff;
  box-shadow: 0 8px 20px rgba(86,105,255,.3);
}
.contact-info-icon--blue   { background: linear-gradient(135deg,#6675ff,#4fd1c5); }
.contact-info-icon--teal   { background: linear-gradient(135deg,#38c9b9,#5671ff); }
.contact-info-icon--purple { background: linear-gradient(135deg,#7c5cfc,#6675ff); }

.contact-info-text {
  font-size: .9rem; color: #3a4471; line-height: 1.65;
}

/* Social buttons */
.contact-social-icons { display: flex; gap: 10px; flex-wrap: wrap; }
.contact-social-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; text-decoration: none;
  transition: transform .16s, box-shadow .16s;
}
.contact-social-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,0,0,.25); }
.contact-social-btn--fb { background: #1877f2; }
.contact-social-btn--tw { background: #1da1f2; }
.contact-social-btn--yt { background: #ff0000; }
.contact-social-btn--ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }

/* Map */
.contact-map-wrap {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 55px rgba(13,25,58,.12);
  margin-bottom: 0;
  border: 1.5px solid rgba(102,117,255,.1);
}
.contact-map-wrap iframe { display: block; }

/* ═══════════════════════════════════════════════════════════
   INNER PAGES (about, blog, etc.)
   ═══════════════════════════════════════════════════════════ */
.inner-page .inner-section { padding-top: 100px; padding-bottom: 80px; }
.inner-hero {
  text-align: center;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 720px;
  margin: 0 auto;
}
.inner-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  letter-spacing: -.04em;
  color: #04102e;
  margin-bottom: .6rem;
}
.inner-hero p { color: #5a6182; font-size: 1rem; line-height: 1.75; }
.inner-content {
  max-width: 820px; margin: 0 auto;
  background: #fff;
  border-radius: 24px;
  padding: clamp(1.8rem, 3vw, 2.8rem);
  box-shadow: 0 16px 50px rgba(13,25,58,.08);
  border: 1px solid rgba(102,117,255,.08);
}
.inner-content h2 { font-size: 1.15rem; color: #06102b; margin: 1.4rem 0 .5rem; }
.inner-content h2:first-child { margin-top: 0; }
.inner-content p  { color: #4b5563; line-height: 1.75; margin-bottom: .7rem; }
.inner-content ul { padding-left: 1.2rem; color: #4b5563; margin-bottom: .7rem; }
.inner-content li { margin-bottom: .3rem; line-height: 1.7; }
.inner-cta-band {
  margin-top: 3rem; text-align: center; padding: 2rem;
  background: linear-gradient(135deg,#eef3ff,#f0fbff);
  border-radius: 20px; border: 1px solid rgba(102,117,255,.12);
}
.inner-cta-band h3 { font-size: 1.15rem; color: #04102e; margin-bottom: .5rem; }
.inner-cta-band p  { color: #5a6182; margin-bottom: 1rem; font-size: .93rem; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .cmd-scene { flex-direction: column; align-items: center; gap: 20px; }
  .chat-snapshot { margin-right: 0; width: 280px; }
}

@media (max-width: 768px) {
  .contact-two-col { grid-template-columns: 1fr; }
  .cfv2-row { grid-template-columns: 1fr; }
  .comm-phone-frame { width: 210px; }
  .comm-phone-screen { height: 300px; }
  .mobile-snapshots-phones { gap: 10px; }
  .snap-phone { width: 148px; }
  .snap-phone .phone-screen { min-height: 290px; }
  .contact-send-btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .mobile-snapshots-container { padding: 16px 14px 18px; }
  .snap-phone { width: 130px; }
  .snap-phone .phone-screen { min-height: 260px; }
}

/* ═══════════════════════════════════════════════════════════
   iPAD PLACEHOLDER — Communication Section
   ═══════════════════════════════════════════════════════════ */
.ipad-visual { justify-content: center; align-items: center; }

.ipad-wrap {
  animation: phoneFloat 5s ease-in-out infinite;
}
.ipad-frame {
  position: relative;
  width: 400px;
  background: radial-gradient(circle at 10% 10%, #e1e4eb 0%, #aeb4c5 50%, #858b9e 100%);
  border-radius: 28px;
  padding: 8px; /* thin uniform bezel */
  box-shadow:
    0 0 0 1px rgba(255,255,255,.4),
    inset 0 1px 2px rgba(255,255,255,.5),
    0 40px 90px rgba(13,18,40,.35),
    0 8px 28px rgba(86,105,255,.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.ipad-camera {
  position: absolute;
  top: 13px; /* right on the bezel */
  left: 50%;
  transform: translateX(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #111;
  box-shadow: 0 0 0 1px rgba(0,0,0,.3);
  z-index: 5;
}
.ipad-screen {
  width: 100%;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  min-height: 380px;
  position: relative;
}
.ipad-home-bar {
  display: none; /* modern iPads don't have this physically on the bezel */
}

/* iPad slides — fade crossfade via JS-driven class */
.ipad-slides { position: relative; min-height: 340px; }
.ipad-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .8s ease-in-out;
  display: flex; flex-direction: column;
}
.ipad-slide--active { opacity: 1; }

.ipad-slide-header {
  display: flex; align-items: center; gap: 9px;
  padding: 14px 18px;
  font-size: .88rem; font-weight: 700;
  color: #fff; letter-spacing: .02em;
  flex-shrink: 0;
}
.ipad-header--blue   { background: linear-gradient(120deg,#5671ff,#4fc3b8); }
.ipad-header--teal   { background: linear-gradient(120deg,#38c9b9,#5671ff); }
.ipad-header--purple { background: linear-gradient(120deg,#7c5cfc,#6675ff); }
.ipad-live {
  margin-left: auto; font-size: .72rem; font-weight: 600;
  background: rgba(255,255,255,.2); border-radius: 999px;
  padding: 2px 8px;
}

/* Chat slide */
.ipad-chat-body {
  flex: 1; padding: 16px 18px; display: flex;
  flex-direction: column; gap: 12px; overflow: hidden;
}
.ipad-msg { display: flex; align-items: flex-end; gap: 8px; }
.ipad-msg--out { flex-direction: row-reverse; }
.ipad-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg,#6675ff,#4fd1c5);
  color: #fff; font-size: .72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.ipad-bubble {
  border-radius: 18px; padding: 9px 14px;
  font-size: .84rem; line-height: 1.5; max-width: 80%;
}
.ipad-bubble strong { display: block; font-size: .72rem; color: #6675ff; margin-bottom: 2px; }
.ipad-bubble--in { background: #eef3ff; color: #1a2040; border-bottom-left-radius: 4px; }
.ipad-bubble--out { background: linear-gradient(120deg,#5671ff,#3d52e0); color: #fff; border-bottom-right-radius: 4px; }
.ipad-bubble--out strong { color: rgba(255,255,255,.7); }

/* Attendance stats slide */
.ipad-stats-body { flex: 1; padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.ipad-class-header { display: flex; justify-content: space-between; align-items: center; }
.ipad-class-label { font-size: .82rem; font-weight: 700; color: #1a2040; }
.ipad-date { font-size: .75rem; color: #8896c6; }
.ipad-stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.ipad-stat {
  border-radius: 14px; padding: 12px 8px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.ipad-stat--green { background: #e6fff8; }
.ipad-stat--red   { background: #fff1f1; }
.ipad-stat--amber { background: #fff8e6; }
.ipad-stat--blue  { background: #eef3ff; }
.ipad-stat-num { font-size: 1.3rem; font-weight: 800; color: #04102e; }
.ipad-stat--green .ipad-stat-num { color: #1a9c82; }
.ipad-stat--red   .ipad-stat-num { color: #e05252; }
.ipad-stat--amber .ipad-stat-num { color: #b07a10; }
.ipad-stat--blue  .ipad-stat-num { color: #5671ff; }
.ipad-stat-lbl { font-size: .68rem; font-weight: 600; color: #8896c6; text-transform: uppercase; letter-spacing: .06em; }
.ipad-bar-wrap { height: 8px; background: #e8ecff; border-radius: 999px; overflow: hidden; }
.ipad-bar-fill { height: 100%; width: 87.5%; background: linear-gradient(90deg,#6675ff,#4fd1c5); border-radius: 999px; }
.ipad-bar-note { font-size: .75rem; color: #8896c6; }

/* Exam slide */
.ipad-exam-body { flex: 1; padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; }
.ipad-section-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #8896c6; }
.ipad-exam-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; background: #f8f9ff;
  border-radius: 12px; border: 1px solid rgba(102,117,255,.1);
}
.ipad-pill {
  padding: 3px 9px; border-radius: 999px;
  font-size: .7rem; font-weight: 700; flex-shrink: 0;
}
.ipad-pill--mon { background: #eef3ff; color: #5671ff; }
.ipad-pill--wed { background: #e6fff8; color: #1a9c82; }
.ipad-pill--fri { background: #fff7e6; color: #b07a10; }
.ipad-exam-info { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.ipad-exam-info strong { font-size: .84rem; color: #1a2040; }
.ipad-exam-info span { font-size: .74rem; color: #8896c6; }
.ipad-exam-pts { font-size: .74rem; font-weight: 700; color: #6675ff; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════
   ═══════════════════════════════════════════════════════════ */
.att-three-col {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr) minmax(0, 0.85fr);
  gap: clamp(1.6rem, 3vw, 3.2rem);
  align-items: center;
}
.att-text {
  text-align: left;
}
.att-text .pill-grid {
  grid-template-columns: 1fr;
  gap: 1rem;
}
.att-phone { flex-shrink: 0; }

.classroom-cartoon {
  flex-shrink: 0;
}
.classroom-svg {
  width: 320px; height: 240px;
  filter: drop-shadow(0 8px 24px rgba(86,105,255,.15));
}

/* Teacher arm animation — tablet marking */
.teacher-group {
  animation: teacherIdle 3s ease-in-out infinite;
  transform-origin: 175px 130px;
}
@keyframes teacherIdle {
  0%,100% { transform: rotate(0deg); }
  50%      { transform: rotate(1deg); }
}

/* Raise arm - student 1 */
.raise-arm-1 {
  transform-origin: 260px 145px;
  animation: raiseArm 3.5s ease-in-out infinite;
}
@keyframes raiseArm {
  0%,30%,100% { transform: rotate(0deg); opacity: 1; }
  15%         { transform: rotate(-18deg); }
  60%,80%     { opacity: 0; transform: rotate(0deg); }
  85%         { opacity: 1; }
}

/* Nodding head - student 2 */
.nod-head {
  transform-origin: 55px 130px;
  animation: nodHead 2.8s ease-in-out infinite 0.6s;
}
@keyframes nodHead {
  0%,40%,100% { transform: translateY(0); }
  20%         { transform: translateY(3px); }
}

/* ═══════════════════════════════════════════════════════════
   ACADEMIC PHONES — Static (no float), dark bg container
   ═══════════════════════════════════════════════════════════ */
.snap-phone--static { animation: none !important; }
.snap-phone--right-static { margin-top: 22px; animation: none !important; }

/* ═══════════════════════════════════════════════════════════
   PRICING PAGE
   ═══════════════════════════════════════════════════════════ */
.pricing-page .pricing-section { padding-top: 96px; padding-bottom: 80px; }

.pricing-hero {
  text-align: center;
  padding-bottom: 3rem;
}
.pricing-hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  letter-spacing: -.04em;
  color: #04102e;
  margin-bottom: .4rem;
}
.pricing-hero-sub {
  font-size: 1.05rem; color: #5a6182;
  max-width: 520px; margin: 0 auto 1.6rem;
}

/* Billing toggle */
.pricing-toggle {
  display: inline-flex; gap: 4px;
  background: #eef3ff; border-radius: 999px;
  padding: 4px;
}
.ptoggle-btn {
  padding: 8px 20px; border-radius: 999px; border: none;
  background: transparent; cursor: pointer;
  font-size: .88rem; font-weight: 600; color: #5a6182;
  transition: all .18s;
  display: flex; align-items: center; gap: 6px;
}
.ptoggle-btn.ptoggle-active {
  background: #fff; color: #04102e;
  box-shadow: 0 2px 8px rgba(13,25,58,.12);
}
.ptoggle-save {
  font-size: .7rem; font-weight: 700;
  background: linear-gradient(120deg,#6675ff,#4fd1c5);
  color: #fff; border-radius: 999px;
  padding: 2px 7px;
}

/* Pricing grid — 3 equal cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
  align-items: start;
  margin-bottom: 4rem;
}

.pricing-card {
  background: #fff;
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow: 0 8px 30px rgba(13,25,58,.08), 0 1px 4px rgba(13,25,58,.04);
  border: 1.5px solid rgba(102,117,255,.1);
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 55px rgba(13,25,58,.13), 0 4px 12px rgba(86,105,255,.1);
}

/* Popular card highlight */
.pricing-card--popular {
  border-color: #6675ff;
  box-shadow: 0 12px 45px rgba(86,105,255,.2), 0 4px 14px rgba(86,105,255,.12);
  background: linear-gradient(180deg,#f7f9ff 0%,#fff 100%);
}
.pricing-popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(120deg,#6675ff,#4fd1c5);
  color: #fff; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  padding: 5px 18px; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(86,105,255,.4);
  white-space: nowrap;
}
/* Premium card subtle dark glow */
.pricing-card--premium {
  background: linear-gradient(160deg,#f0f1ff 0%,#fff 100%);
  border-color: rgba(124,92,252,.25);
}

/* Plan icon */
.pricing-card-head { margin-bottom: 20px; }
.pricing-plan-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  color: #fff;
}
.pricing-plan-icon--starter { background: linear-gradient(135deg,#38c9b9,#5671ff); }
.pricing-plan-icon--school  { background: linear-gradient(135deg,#6675ff,#4fd1c5); }
.pricing-plan-icon--premium { background: linear-gradient(135deg,#7c5cfc,#f6ad55); }

.pricing-plan-name {
  font-size: 1.3rem; font-weight: 800; color: #04102e;
  margin-bottom: 3px;
}
.pricing-plan-tag { font-size: .84rem; color: #8896c6; }

/* Price */
.pricing-price-wrap {
  display: flex; align-items: baseline; gap: 2px;
  margin-bottom: 4px;
}
.pricing-currency { font-size: 1.2rem; font-weight: 700; color: #04102e; }
.pricing-amount { font-size: 2.8rem; font-weight: 900; color: #04102e; line-height: 1; letter-spacing: -.04em; }
.pricing-amount--custom { font-size: 1.9rem; color: #6675ff; }
.pricing-per { font-size: .88rem; color: #8896c6; margin-left: 2px; }
.pricing-capacity { font-size: .82rem; color: #38c9b9; font-weight: 700; margin-bottom: 20px; }

/* Feature list */
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.pricing-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: .88rem; line-height: 1.4;
}
.pf-yes { color: #1a2040; }
.pf-no  { color: #b0b8d8; }
.pf-yes::before { content: '✓'; color: #38c9b9; font-weight: 700; font-size: .9rem; flex-shrink: 0; }
.pf-no::before  { content: '✗'; color: #d1d9f0; font-size: .9rem; flex-shrink: 0; }

/* CTA buttons */
.pricing-btn {
  display: block; text-align: center;
  padding: 13px 24px; border-radius: 12px;
  font-weight: 700; font-size: .92rem;
  text-decoration: none; transition: all .18s;
}
.pricing-btn--primary {
  background: linear-gradient(120deg,#6675ff,#4fd1c5);
  color: #fff;
  box-shadow: 0 10px 28px rgba(86,105,255,.4);
}
.pricing-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(86,105,255,.55); }
.pricing-btn--outline {
  background: transparent;
  color: #6675ff; border: 2px solid rgba(102,117,255,.35);
}
.pricing-btn--outline:hover { background: #eef3ff; border-color: #6675ff; }
.pricing-btn--dark { color: #7c5cfc; border-color: rgba(124,92,252,.35); }
.pricing-btn--dark:hover { background: #f5f0ff; border-color: #7c5cfc; }

/* All plans include */
.pricing-includes {
  background: #fff; border-radius: 24px; padding: 36px 40px;
  box-shadow: 0 6px 24px rgba(13,25,58,.07);
  border: 1px solid rgba(102,117,255,.1);
  margin-bottom: 3rem; text-align: center;
}
.pricing-includes h3 { font-size: 1.15rem; color: #04102e; margin-bottom: 1.4rem; }
.pricing-includes-grid {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 18px;
}
.pi-item {
  display: flex; align-items: center; gap: 10px;
  font-size: .9rem; color: #3a4471; font-weight: 500;
  background: #f7f9ff; border-radius: 12px; padding: 12px 16px;
}

/* FAQ */
.pricing-faq { text-align: center; }
.pricing-faq h3 { font-size: 1.15rem; color: #04102e; margin-bottom: 1.4rem; }
.pricing-faq-grid {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 18px; text-align: left;
}
.faq-item {
  background: #fff; border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 4px 14px rgba(13,25,58,.06);
  border: 1px solid rgba(102,117,255,.08);
}
.faq-item strong { display: block; font-size: .95rem; color: #04102e; margin-bottom: .4rem; }
.faq-item p { font-size: .88rem; color: #5a6182; line-height: 1.65; margin: 0; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .ipad-frame { width: 340px; }
  .ipad-screen { min-height: 300px; }
  .ipad-slides { min-height: 300px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .pricing-includes-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .ipad-frame { width: 280px; }
  .ipad-screen { min-height: 250px; }
  .ipad-slides { min-height: 250px; }
  .classroom-svg { width: 260px; height: 195px; }
  .att-three-col {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .att-text { text-align: center; }
  .att-text .pill-item { 
    text-align: center; 
    align-items: center; 
    display: flex;
    flex-direction: column;
  }
  .pricing-includes-grid { grid-template-columns: 1fr; }
  .pricing-faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .ipad-frame { width: 240px; }
}

/* ═══════════════════════════════════════════════════════════
   ACADEMIC EXCELLENCE — 3-column layout
   Text | Pencil Illustration | Phone
   ═══════════════════════════════════════════════════════════ */
.acad-three-col {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,.95fr) minmax(0,.85fr);
  gap: clamp(1.6rem,3vw,3.2rem);
  align-items: center;
}

/* Col 1 — text */

/* Col 2 — illustration */
.acad-illus {
  display: flex;
  justify-content: center;
  align-items: center;
}
.acad-svg {
  width: 100%;
  max-width: 300px;
  height: auto;
  filter: drop-shadow(0 6px 22px rgba(86,105,255,.12));
}

/* ── Illustration animations ─────────────────────────────── */

/* Teacher arm swings gently with pointer */
.acad-teacher-arm {
  transform-origin: 76px 110px;
  animation: acadArmSwing 3.5s ease-in-out infinite;
}
@keyframes acadArmSwing {
  0%,100% { transform: rotate(0deg); }
  40%     { transform: rotate(-8deg); }
}

/* Student raised hand pumps up-down */
.acad-student-hand {
  transform-origin: 252px 102px;
  animation: acadHandPump 2.8s ease-in-out infinite 0.5s;
}
@keyframes acadHandPump {
  0%,40%,100% { transform: translateY(0); }
  20%         { transform: translateY(-8px); }
}

/* Paper floats gently */
.acad-paper {
  animation: acadPaperFloat 4s ease-in-out infinite;
}
@keyframes acadPaperFloat {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%     { transform: translateY(-6px) rotate(1deg); }
}

/* Score badge pulses softly */
.acad-score-badge {
  animation: acadBadgePulse 3s ease-in-out infinite 1s;
}
@keyframes acadBadgePulse {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.04); }
}

/* Timetable cells highlight in sequence */
.acad-cell-1 { animation: acadCellFade 6s ease-in-out infinite; }
.acad-cell-2 { animation: acadCellFade 6s ease-in-out infinite 2s; }
.acad-cell-3 { animation: acadCellFade 6s ease-in-out infinite 4s; }
@keyframes acadCellFade {
  0%,30%,100% { opacity: .18; }
  15%         { opacity: .55; }
}

/* Pending ring spins */
.acad-pending-ring {
  transform-origin: 186px 193px;
  animation: acadRingSpin 3s linear infinite;
}
@keyframes acadRingSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Second checkmark fades in */
.acad-checks path:nth-child(2) {
  animation: acadCheckIn 5s ease-in-out infinite 2.5s;
}
@keyframes acadCheckIn {
  0%,45%,100% { opacity: 0; }
  55%,90%     { opacity: 1; }
}

/* Pencil dot writes hint */
.acad-pencil-dot {
  animation: acadDotWrite 3s ease-in-out infinite 1s;
}
@keyframes acadDotWrite {
  0%,60%,100% { opacity: 0; transform: scale(1); }
  30%         { opacity: 0.85; transform: scale(1.5); }
}

/* Writing lines grow */
.acad-writing line {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: acadLineWrite 4s ease-in-out infinite;
}
.acad-writing line:nth-child(2) { animation-delay: 1.3s; }
.acad-writing line:nth-child(3) { animation-delay: 2.6s; }
@keyframes acadLineWrite {
  0%,10%  { stroke-dashoffset: 40; opacity: 0; }
  30%,80% { stroke-dashoffset: 0;  opacity: 1; }
  95%,100%{ stroke-dashoffset: 0;  opacity: 0.3; }
}

/* Col 3 — phone frame */
.acad-phone {
  display: flex;
  justify-content: center;
  align-items: center;
}

.acad-phone-frame {
  position: relative;
  width: 210px;
  background: #1a1f35;
  border-radius: 36px;
  padding: 14px 10px 16px;
  box-shadow:
    0 0 0 2px rgba(255,255,255,.07),
    0 28px 70px rgba(13,18,40,.5),
    0 6px 20px rgba(86,105,255,.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* Notch re-uses existing .phone-notch styles, just override bg */
.acad-phone-frame .phone-notch {
  background: #1a1f35;
  width: 70px; height: 18px;
  margin-bottom: 4px;
}

.acad-phone-screen {
  width: 100%;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  min-height: 320px;
  position: relative;
}

.acad-phone-dots {
  display: flex; gap: 5px; align-items: center;
  padding: 2px 0 2px;
}
.acad-pdot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,.22);
  transition: background .3s, width .3s;
}
.acad-pdot--active {
  width: 14px; border-radius: 999px;
  background: rgba(255,255,255,.72);
}

/* Phone slides — crossfade */
.acad-phone-slides { position: relative; min-height: 320px; }
.acad-pslide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .7s ease-in-out;
  display: flex; flex-direction: column;
  background: #fff;
}
.acad-pslide--active { opacity: 1; }

/* Slide header */
.aps-header {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 13px;
  font-size: .78rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.aps-header--indigo { background: linear-gradient(120deg,#5671ff,#7c5cfc); }
.aps-header--teal   { background: linear-gradient(120deg,#38c9b9,#5671ff); }
.aps-header--purple { background: linear-gradient(120deg,#7c5cfc,#6675ff); }
.aps-count {
  margin-left: auto; font-size: .66rem; font-weight: 600;
  background: rgba(255,255,255,.2); border-radius: 999px; padding: 2px 7px;
}

/* Slide body */
.aps-body {
  flex: 1; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 7px;
  overflow: hidden;
}

/* Worklist tasks */
.aps-task {
  display: flex; align-items: center; gap: 7px;
  font-size: .78rem; color: #3a4471;
  padding: 5px 8px; border-radius: 8px;
  background: #f8f9ff;
}
.aps-task--done { opacity: .6; }
.aps-check { color: #38c9b9; font-weight: 700; font-size: .8rem; flex-shrink: 0; }
.aps-ring {
  width: 13px; height: 13px; border-radius: 50%;
  border: 1.5px solid #8896c6; flex-shrink: 0;
}
.aps-tag {
  margin-left: auto; font-size: .6rem; font-weight: 700;
  border-radius: 999px; padding: 1px 5px; flex-shrink: 0;
}
.aps-tag--hw { background: #eef3ff; color: #5671ff; }
.aps-tag--cw { background: #e6fff8; color: #1a9c82; }
.aps-tag--sp { background: #fff7e6; color: #b07a10; }
.aps-progress-row {
  display: flex; align-items: center; gap: 6px;
  margin-top: 2px;
}
.aps-prog-label { font-size: .68rem; color: #8896c6; white-space: nowrap; }
.aps-prog-bar { flex: 1; height: 5px; background: #e8ecff; border-radius: 999px; overflow: hidden; }
.aps-prog-fill { height: 100%; background: linear-gradient(90deg,#6675ff,#4fd1c5); border-radius: 999px; }
.aps-prog-pct { font-size: .68rem; color: #6675ff; font-weight: 700; }

/* Timetable periods */
.aps-period {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 8px; border-radius: 8px;
  background: #f8f9ff;
}
.aps-period--now { background: #eef3ff; border: 1px solid rgba(102,117,255,.2); }
.aps-time { font-size: .7rem; color: #8896c6; width: 30px; flex-shrink: 0; font-weight: 600; }
.aps-subject { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.aps-subject strong { font-size: .78rem; color: #1a2040; }
.aps-subject span { font-size: .65rem; color: #8896c6; }
.aps-subject--blue  strong { color: #5671ff; }
.aps-subject--teal  strong { color: #1a9c82; }
.aps-subject--amber strong { color: #b07a10; }
.aps-subject--purple strong { color: #7c5cfc; }
.aps-now-badge {
  font-size: .62rem; font-weight: 700;
  background: #6675ff; color: #fff;
  border-radius: 999px; padding: 2px 6px; flex-shrink: 0;
}

/* Exam result rows */
.aps-result-row {
  display: flex; align-items: center; gap: 7px;
  font-size: .76rem; color: #3a4471;
}
.aps-result-row span:first-child { width: 54px; flex-shrink: 0; font-size: .72rem; }
.aps-result-bar { flex: 1; height: 6px; background: #e8ecff; border-radius: 999px; overflow: hidden; }
.aps-result-fill { height: 100%; border-radius: 999px; }
.aps-result-row strong { width: 24px; text-align: right; font-size: .78rem; color: #1a2040; }
.aps-grade-badge {
  margin-top: 4px; text-align: center;
  background: linear-gradient(120deg,#eef3ff,#f0fbff);
  border-radius: 10px; padding: 8px;
  font-size: .78rem; color: #5a6182;
  border: 1px solid rgba(102,117,255,.12);
}
.aps-grade-badge strong { color: #6675ff; font-size: 1rem; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .acad-three-col {
    grid-template-columns: minmax(0,1fr) minmax(0,.85fr);
    grid-template-rows: auto auto;
  }
  .acad-illus {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    justify-content: flex-start;
  }
  .acad-phone {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    align-self: center;
  }
}

@media (max-width: 768px) {
  .acad-three-col {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .acad-text  { grid-column: 1; grid-row: 1; }
  .acad-illus { grid-column: 1; grid-row: 3; justify-content: center; }
  .acad-phone { grid-column: 1; grid-row: 2; }
  .acad-svg   { max-width: 240px; }
  .acad-phone-frame { width: 190px; }
  .acad-phone-screen { min-height: 280px; }
  .acad-phone-slides { min-height: 280px; }
}
