/* ==========================================================================
   Keespark Academia — Modern Institution ERP & SIS Marketing Site Styles
   Unified with keespark.com & Project_v1.0 Design System
   Slogan: "Business Means Keespark"
   Zero Classical Fallbacks: Modern Custom Selects, Buttons, Tables & Modals
   ========================================================================== */

:root {
  --font-head: 'Sora', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Consolas', 'Monaco', 'Courier New', monospace;

  /* Palette */
  --hero-soft: #f8fafc;
  --hero-ink: #0b1f33;
  --hero-muted: #475569;
  --hero-line: #e2e8f0;
  --hero-surface: #ffffff;
  --hero-accent: #059669; /* Emerald for Education & Growth */
  --hero-accent-deep: #047857;
  --hero-teal: #0284c7;
  --primary-blue: #1e40af;
  --primary-blue-hover: #1d4ed8;

  --border-soft: #e2e8f0;
  --border-strong: #cbd5e1;
  --text-primary: #0f172a;
  --text-muted: #64748b;
  --bg-subtle: #f8fafc;
  --bg-card: #ffffff;

  --radius: 16px;
  --card-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  --card-shadow-hover: 0 14px 34px rgba(15, 23, 42, 0.12);
}

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

html {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: #ffffff;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  background: #ffffff;
  color: var(--text-primary);
  overflow-x: hidden;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

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

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center {
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Honeypot anti-spam field: strictly hidden */
.hp {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  left: -9999px !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
}

/* ==========================================================================
   MODERN FORM CONTROLS (NO CLASSICAL BROWSER DEFAULTS)
   ========================================================================== */

/* Universal Modern Select Dropdown */
select, .calc-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  padding: 12px 42px 12px 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  color: #1e293b;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

select:hover, .calc-select:hover {
  border-color: #059669;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.1);
}

select:focus, .calc-select:focus {
  outline: none;
  border-color: #059669;
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.15);
}

select option {
  padding: 10px;
  background: #ffffff;
  color: #1e293b;
}

/* Universal Modern Text Inputs & Textareas */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  background: #ffffff;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):hover,
textarea:hover {
  border-color: #94a3b8;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
textarea:focus {
  outline: none;
  border-color: #059669;
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.15);
}

input::placeholder, textarea::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

textarea {
  resize: vertical;
}

/* Range input styling for Savings Calculator */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 2.5px solid #ffffff;
  box-shadow: 0 3px 10px rgba(5, 150, 105, 0.4);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 5px 15px rgba(5, 150, 105, 0.5);
}

/* ==========================================================================
   MODERN BUTTONS DESIGN SYSTEM
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.4;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  border: none;
  box-sizing: border-box;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}

/* Button Variants */
.btn-primary, .form-submit-btn {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(4, 120, 87, 0.5);
}

.btn-primary:hover, .form-submit-btn:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.45);
  color: #ffffff !important;
  transform: translateY(-2px);
}

.btn-outline {
  background: #ffffff;
  color: #047857 !important;
  border: 1.5px solid #059669;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.08);
}

.btn-outline:hover {
  background: #059669;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.28);
}

.btn-ghost {
  background: #ffffff;
  color: #334155 !important;
  border: 1.5px solid var(--border-strong);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.btn-ghost:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a !important;
  transform: translateY(-2px);
}

.btn-wa {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  font-weight: 700;
}

.btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
  color: #ffffff !important;
}

.btn-secondary {
  background: #f1f5f9;
  color: #334155 !important;
  border: 1.5px solid #e2e8f0;
}

.btn-secondary:hover {
  background: #e2e8f0;
  color: #0f172a !important;
  transform: translateY(-1px);
}

/* Button Sizes */
.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 14px;
}

.btn-sm {
  padding: 7px 15px;
  font-size: 13px;
  border-radius: 9px;
}

.btn-block {
  width: 100%;
  display: flex;
}

/* ==========================================================================
   TOP ANNOUNCEMENT BAR & HEADER (MATCHING KEESPARK.COM)
   ========================================================================== */

.announce {
  background: linear-gradient(90deg, #1e40af 0%, #059669 100%);
  color: #ffffff;
  text-align: center;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.announce a {
  text-decoration: underline;
  font-weight: 700;
  color: #ffffff;
  margin-left: 6px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.98) 0%, 
    rgba(247, 250, 255, 0.98) 25%, 
    rgba(252, 248, 255, 0.98) 75%, 
    rgba(255, 255, 255, 0.98) 100%);
  backdrop-filter: saturate(1.3) blur(25px);
  -webkit-backdrop-filter: saturate(1.3) blur(25px);
  border-bottom: 1px solid rgba(102, 126, 234, 0.12);
  box-shadow: 
    0 4px 30px rgba(0, 0, 0, 0.08),
    0 2px 10px rgba(102, 126, 234, 0.06),
    0 1px 3px rgba(118, 75, 162, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}

/* Brand Logo Box */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-container {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #000;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease;
}

.brand:hover .brand-logo-container {
  transform: scale(1.05);
}

.brand-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.brand-logo-fallback {
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
  font-family: var(--font-head);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #1e40af 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.brand-module-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #059669;
}

/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-links a {
  color: #475569;
  font-weight: 600;
  font-size: 14.5px;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-links a:hover {
  color: #059669;
  background: rgba(5, 150, 105, 0.08);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  background: #fff;
  border: 1.5px solid var(--border-strong);
  color: var(--hero-ink);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.nav-toggle .bar {
  width: 20px;
  height: 2px;
  background: #334155;
  border-radius: 2px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  position: relative;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--hero-line);
  padding: 44px 0 60px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 700;
  color: #047857;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: sloganPulse 2s infinite;
}

@keyframes sloganPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.3rem, 4.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--hero-ink);
  margin-bottom: 16px;
}

.hero-slogan-highlight {
  background: linear-gradient(120deg, #1e40af 0%, #059669 50%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--hero-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  font-weight: 500;
}

.hero-bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
}

.hero-bullet {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #334155;
  font-weight: 500;
}

.hero-bullet-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #dcfce7;
  color: #059669;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #64748b;
  font-weight: 600;
  flex-wrap: wrap;
}

.trust-divider {
  color: #cbd5e1;
}

/* Hero Rotating Workflow Card (keespark.com 1:1) */
.hero-media-wrapper {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 253, 244, 0.8) 100%);
  border: 1.5px solid #a7f3d0;
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  position: relative;
}

.hero-spotlight-label {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #047857;
  margin-bottom: 14px;
  display: block;
}

.hero-industry-card {
  display: block;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  text-decoration: none;
  transition: all 0.25s ease;
  min-height: 200px;
}

.hero-industry-card:hover {
  border-color: #059669;
  box-shadow: 0 14px 34px rgba(5, 150, 105, 0.16);
  transform: translateY(-2px);
}

.hero-industry-icon {
  font-size: 2.4rem;
  margin-bottom: 10px;
  display: inline-block;
}

.hero-industry-name {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: #0b1f33;
  margin-bottom: 8px;
}

.hero-industry-summary {
  font-size: 14.5px;
  color: #334155 !important;
  line-height: 1.55;
  margin-bottom: 16px;
  font-weight: 500;
}

.hero-industry-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-industry-feature {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  color: #047857;
}

.hero-industry-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}

.hero-industry-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-industry-dot.active {
  width: 28px;
  border-radius: 999px;
  background: #059669;
}

/* ==========================================================================
   LIVE DEMO SHOWCASE FRAME & INTERACTIVE ATTENDANCE ROSTER
   ========================================================================== */

.section {
  padding: 72px 0;
}

.section-alt {
  background: #f8fafc;
  border-top: 1px solid var(--hero-line);
  border-bottom: 1px solid var(--hero-line);
}

.section-head {
  max-width: 840px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--hero-ink);
  letter-spacing: -0.02em;
  margin: 10px 0 14px;
}

.section-head .lead {
  font-size: 1.12rem;
  color: var(--hero-muted);
  line-height: 1.6;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #f0fdf4;
  border: 1px solid #a7f3d0;
  color: #047857;
}

/* Browser Frame around Live Demo GIF */
.live-demo-frame {
  background: #ffffff;
  border: 1.5px solid var(--hero-line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  margin-bottom: 36px;
}

.live-demo-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--hero-line);
}

.demo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.demo-dot.red { background: #ef4444; }
.demo-dot.amber { background: #f59e0b; }
.demo-dot.green { background: #10b981; }

.demo-url {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #64748b;
  background: #ffffff;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  flex: 1;
  margin: 0 10px;
}

.demo-badge {
  font-size: 11px;
  font-weight: 800;
  background: #dcfce7;
  color: #047857;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.live-demo-viewport {
  position: relative;
  background: #ffffff;
}

.live-demo-media {
  width: 100%;
  height: auto;
  display: block;
}

.live-demo-caption {
  padding: 12px 18px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  font-size: 13.5px;
  color: #475569;
  text-align: center;
  font-weight: 600;
}

/* Interactive Student Attendance Roster Widget */
.interactive-demo-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.demo-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-emerald {
  background: #dcfce7;
  color: #047857;
  border: 1px solid #86efac;
}

.demo-stats-box {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-pill {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1.5px solid #86efac;
  padding: 6px 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-num {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  color: #047857;
}

.stat-label {
  font-size: 12px;
  font-weight: 700;
  color: #065f46;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.roster-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.roster-table th {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
}

.roster-row {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.roster-row:hover {
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.roster-row td {
  padding: 12px 16px;
}

.roster-row td:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  border-left: 1px solid #e2e8f0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.roster-row td:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
  border-right: 1px solid #e2e8f0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.student-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.student-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  color: #047857;
  font-weight: 800;
  font-size: 14px;
  display: grid;
  place-items: center;
  border: 1.5px solid #86efac;
  flex-shrink: 0;
}

.status-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

/* Sleek Status Toggle Buttons */
.status-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #64748b;
  cursor: pointer;
  transition: all 0.18s ease;
}

.status-btn:hover {
  transform: translateY(-1px);
  border-color: #94a3b8;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.status-btn.btn-p.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border-color: #047857;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.35);
}

.status-btn.btn-a.active {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  border-color: #b91c1c;
  box-shadow: 0 3px 10px rgba(239, 68, 68, 0.35);
}

.status-btn.btn-l.active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border-color: #b45309;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.35);
}

.status-btn.btn-e.active {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  border-color: #4338ca;
  box-shadow: 0 3px 10px rgba(99, 102, 241, 0.35);
}

.attendance-toast {
  display: none;
  margin-top: 18px;
  padding: 12px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
  color: #ffffff;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(4, 120, 87, 0.28);
  border: 1px solid #10b981;
  animation: toastSlideUp 0.3s ease;
}

.attendance-toast.visible {
  display: block;
}

@keyframes toastSlideUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   FEATURE CARDS (11 INSTITUTIONAL PILLARS)
   ========================================================================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.card {
  background: #ffffff;
  border: 1.5px solid var(--hero-line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--card-shadow);
  transition: all 0.25s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
  border-color: #cbd5e1;
}

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--hero-ink);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14.5px;
  color: var(--hero-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.mini-features {
  list-style: none;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-features li {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mini-features li::before {
  content: '✓';
  color: #059669;
  font-weight: 800;
}

/* ==========================================================================
   DEEP DIVES: PORTAL, AI EXAMS & MULTI-MODULE ECOSYSTEM
   ========================================================================== */

.portal-grid, .exam-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.image-card-frame {
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid var(--hero-line);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.image-card-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.portal-feature-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.portal-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feat-bullet {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  color: #047857;
  font-weight: 800;
  font-size: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.portal-feat-item h4 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 800;
  color: #0b1f33;
  margin-bottom: 4px;
}

.portal-feat-item p {
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
}

/* AI Anti-Cheat Exam Demo Widget */
.exam-proctoring-box {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
  margin-top: 20px;
}

.exam-proctor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.exam-metric-row {
  display: flex;
  justify-content: space-between;
  font-size: 14.5px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
}

.exam-status {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.exam-status.ok {
  background: #f0fdf4;
  color: #065f46;
  border: 1px solid #86efac;
}
.exam-status.warn {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}
.exam-status.danger {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot.green { background: #10b981; }
.status-dot.amber { background: #f59e0b; }
.status-dot.red { background: #ef4444; }

.highlight-item {
  padding: 10px 14px;
  border-left: 3px solid #059669;
  background: #f8fafc;
  border-radius: 0 8px 8px 0;
  margin-bottom: 10px;
  font-size: 14px;
  color: #334155;
}

/* Ecosystem Banner Frame */
.ecosystem-banner-frame {
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid var(--hero-line);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  margin-bottom: 40px;
}

.ecosystem-banner-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* Bundle Selector Card */
.bundle-selector-card {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.bundle-header {
  margin-bottom: 22px;
}
.bundle-header h3 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
  color: #0b1f33;
}

.module-pills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.mod {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.mod:hover {
  background: #ffffff;
  border-color: #059669;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.1);
}

.mod[aria-pressed="true"] {
  background: #f0fdf4;
  border-color: #10b981;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.18);
}

.mod.locked {
  cursor: default;
  opacity: 0.95;
}

.mod-icon {
  font-size: 1.6rem;
}

.mod strong {
  display: block;
  font-size: 14.5px;
  color: #0f172a;
}

.mod small {
  display: block;
  font-size: 12px;
  color: #64748b;
}

.mod-check {
  margin-left: auto;
  font-size: 12px;
  font-weight: 800;
  color: #047857;
}

.bundle-summary-box {
  background: linear-gradient(135deg, #f8fafc 0%, #f0fdf4 100%);
  border: 1.5px solid #86efac;
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

#bundleSummary {
  font-weight: 700;
  color: #064e3b;
  font-size: 15px;
  flex: 1;
}

/* ==========================================================================
   PRICING & FLEXIBLE MILESTONE GUARANTEE
   ========================================================================== */

.trust-pay-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #eff6ff 100%);
  border: 1.5px solid #86efac;
  border-radius: 18px;
  padding: 24px 28px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.08);
}

.trust-pay-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  color: #064e3b;
  margin-bottom: 6px;
}

.trust-pay-desc {
  font-size: 14.5px;
  color: #334155;
  line-height: 1.55;
}

.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
  align-items: stretch;
}

.pricing-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
  border-color: #cbd5e1;
}

.pricing-card.featured {
  border: 2px solid #059669;
  box-shadow: 0 12px 36px rgba(5, 150, 105, 0.16);
  transform: scale(1.02);
}

.pricing-card.featured:hover {
  transform: scale(1.02) translateY(-4px);
  box-shadow: 0 20px 44px rgba(5, 150, 105, 0.22);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
  white-space: nowrap;
}

.pricing-header {
  margin-bottom: 24px;
}

.tier-name {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
  color: #0b1f33;
  display: block;
  margin-bottom: 6px;
}

.tier-desc {
  font-size: 13.5px;
  color: #64748b;
  margin-bottom: 20px;
  min-height: 38px;
}

.tier-price {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 800;
  color: #0b1f33;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.tier-price .currency {
  font-size: 1.6rem;
  font-weight: 700;
  color: #059669;
}

.tier-price .period {
  font-size: 14px;
  color: #64748b;
  font-weight: 600;
  margin-left: 4px;
}

.tier-price-alt {
  font-size: 13.5px;
  font-weight: 700;
  color: #059669;
  margin-top: 6px;
}

.pricing-features {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 28px 0 !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #334155;
  line-height: 1.5;
  list-style: none !important;
}

/* ==========================================================================
   SAVINGS ROI CALCULATOR
   ========================================================================== */

.calc-card {
  background: #ffffff;
  border: 1.5px solid var(--hero-line);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.calc-field label {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 14.5px;
  color: #334155;
  margin-bottom: 10px;
}

.calc-results {
  background: linear-gradient(135deg, #f8fafc 0%, #f0fdf4 100%);
  border: 1.5px solid #cbd5e1;
  border-radius: 16px;
  padding: 24px;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 15px;
  border-bottom: 1px dashed #cbd5e1;
}

.calc-highlight {
  margin-top: 16px;
  text-align: center;
  background: #ffffff;
  border: 1.5px solid #86efac;
  border-radius: 12px;
  padding: 14px;
}

.save-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #047857;
}

.save-val {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: #059669;
  margin-top: 2px;
}

.calc-note {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin-top: 12px;
}

/* ==========================================================================
   COMPETITOR COMPARISON TABLE
   ========================================================================== */

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border: 1.5px solid var(--hero-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.compare-table th, .compare-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--hero-line);
  font-size: 14px;
}

.compare-table th {
  background: #f8fafc;
  font-weight: 800;
  color: #0f172a;
}

.compare-table .brand-col {
  background: #f0fdf4;
  color: #047857;
}

.compare-table .highlight-cell {
  font-weight: 700;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #ffffff;
  border: 1.5px solid var(--hero-line);
  border-radius: 14px;
  padding: 18px 22px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.faq-item[open] {
  border-color: #10b981;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.08);
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--hero-ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 700;
  color: #059669;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  margin-top: 14px;
  color: #475569;
  font-size: 14.5px;
  line-height: 1.6;
}

/* ==========================================================================
   FINAL CTA BAND & LEAD CAPTURE FORM
   ========================================================================== */

.cta-band {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 50%, #f0fdf4 100%);
  border: 1.5px solid #cbd5e1;
  border-radius: 24px;
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.check-list {
  list-style: none;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-list li {
  font-size: 14.5px;
  font-weight: 600;
  color: #334155;
}

.form-card {
  background: #ffffff;
  border: 1.5px solid var(--hero-line);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.form-card h3 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--hero-ink);
  margin-bottom: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.field {
  margin-bottom: 12px;
}

.form-msg {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  min-height: 1.3em;
}
.form-msg.ok { color: #059669; }
.form-msg.err { color: #dc2626; }

.consent {
  font-size: 12px;
  color: #64748b;
  margin-top: 10px;
  line-height: 1.4;
}

/* ==========================================================================
   EXIT-INTENT MODAL
   ========================================================================== */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(11, 31, 51, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.open {
  display: flex;
}

.modal-box {
  background: #ffffff;
  border-radius: 24px;
  padding: 36px 32px;
  max-width: 520px;
  width: 100%;
  position: relative;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
  border: 1.5px solid #cbd5e1;
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-size: 20px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
}

/* ==========================================================================
   FOOTER (MATCHING KEESPARK.COM DARK NAVY FOOTER)
   ========================================================================== */

.footer {
  background: #0b1f33;
  color: #e2e8f0;
  border-top: 1px solid #1e3a5f;
  padding: 4rem 0 2rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #94a3b8;
  margin: 14px 0 18px;
  max-width: 36ch;
}

.footer h4 {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 0.6rem;
  font-size: 0.92rem;
  color: #cbd5e1;
}

.footer a:hover {
  color: #ffffff;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  transition: all 0.2s ease;
}

.social-link:hover {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
  transform: translateY(-2px);
}

.foot-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #1e3a5f;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: #94a3b8;
}

.foot-bottom a:hover {
  color: #ffffff;
}

/* ==========================================================================
   FLOATING ACTION BUTTONS & STICKY CTA
   ========================================================================== */

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1002;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease;
}

.wa-float:hover {
  transform: scale(1.08);
}

.demo-fab {
  position: fixed;
  right: 20px;
  bottom: 88px;
  z-index: 1001;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.demo-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(5, 150, 105, 0.45);
}

.sticky-cta {
  display: none;
}

/* Breadcrumbs */
.crumbs {
  font-size: 13.5px;
  color: #64748b;
  margin-bottom: 12px;
}
.crumbs a {
  color: #059669;
  font-weight: 600;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid, .portal-grid, .exam-grid, .cta-band, .calc-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .pricing-cards-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
  .pricing-card.featured {
    transform: none;
  }
  .pricing-card.featured:hover {
    transform: translateY(-4px);
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--hero-line);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .foot-grid {
    grid-template-columns: 1fr;
  }
  .sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--hero-line);
    padding: 10px 16px;
    display: flex;
    gap: 10px;
    z-index: 999;
  }
  .sticky-cta .btn {
    flex: 1;
  }
  .demo-fab {
    bottom: 74px;
  }
  .wa-float {
    bottom: 74px;
    right: 16px;
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }
}
