/* Ziibay School ERP — Marketing Site */
:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --primary-light: #818cf8;
  --accent: #0891b2;
  --accent-light: #22d3ee;
  --dark: #0f172a;
  --dark-soft: #1e293b;
  --text: #334155;
  --text-muted: #64748b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0f172a;
  --border: #e2e8f0;
  --success: #059669;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --max: 1180px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 { color: var(--dark); font-weight: 700; line-height: 1.2; }
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 16px;
}
.section-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 640px;
}
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .section-desc { margin: 0 auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.45);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--dark);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(79, 70, 229, 0.04);
}
.btn-white {
  background: #fff;
  color: var(--primary-dark);
}
.btn-white:hover { background: #f1f5f9; color: var(--primary-dark); }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow);
}
.nav-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) auto minmax(0, 1.18fr);
  align-items: center;
  height: var(--nav-h);
  column-gap: 24px;
  overflow: visible;
}
.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  flex-shrink: 0;
  overflow: visible;
  min-width: max-content;
  grid-column: 1;
  justify-self: start;
}
.logo-main {
  display: inline-flex;
  align-items: center;
  color: var(--dark);
  text-decoration: none;
  flex-shrink: 0;
  overflow: visible;
  padding: 4px 0;
}
.logo-main:hover { color: var(--dark); }
.logo-wordmark {
  font-family: 'Sora', var(--font);
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  overflow: visible;
}
.logo-wordmark-desk {
  color: var(--dark);
}
.logo-wordmark-os {
  display: inline-block;
  background: linear-gradient(135deg, #2563eb 0%, #0891b2 55%, #10b981 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  padding-right: 2px;
}
.logo-main--footer .logo-wordmark {
  font-size: 2.125rem;
}
.logo-main--footer .logo-wordmark-desk {
  color: #fff;
}
.logo--footer {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}
.logo-accent { color: var(--primary); font-weight: 600; }
.logo-product { font-weight: 800; color: var(--dark); }
.logo-powered {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 2px;
}
.logo-powered a { color: var(--text-muted); }
.logo-powered a:hover { color: var(--primary); }
.footer-powered { margin-top: 12px; font-size: 0.875rem; }
.footer-powered a { color: var(--accent-light); }
.nav-links a.active { color: var(--primary); font-weight: 600; }

/* WhatsApp floating widget */
.wa-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: var(--font);
}
.wa-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px 14px 16px;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s, box-shadow 0.25s;
}
.wa-toggle:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
}
.wa-toggle.is-open {
  border-radius: 50%;
  padding: 16px;
}
.wa-toggle.is-open .wa-toggle-label { display: none; }
.wa-toggle-pulse {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #25d366;
  animation: wa-pulse 2s ease-out infinite;
  z-index: -1;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.35); opacity: 0; }
}
.wa-toggle-label {
  font-size: 0.9375rem;
  font-weight: 700;
}
.wa-panel {
  position: absolute;
  bottom: calc(100% + 16px);
  right: 0;
  width: min(320px, calc(100vw - 48px));
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  border: 1px solid var(--border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}
.wa-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.wa-panel-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg-alt);
  border-radius: 8px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
}
.wa-panel-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.wa-panel-icon {
  width: 48px;
  height: 48px;
  background: #dcf8c6;
  color: #25d366;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wa-panel-header strong { display: block; color: var(--dark); font-size: 1rem; }
.wa-panel-header span { font-size: 0.8125rem; color: var(--text-muted); }
.wa-panel-text { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 8px; line-height: 1.5; }
.wa-panel-number { font-size: 1.125rem; font-weight: 700; color: var(--dark); margin-bottom: 16px; }
.wa-panel-btn {
  width: 100%;
  background: #25d366 !important;
  color: #fff !important;
  border: none;
  box-shadow: none;
}
.wa-panel-btn:hover { background: #1da851 !important; color: #fff !important; }
@media (max-width: 768px) {
  .logo-powered { display: none; }
  .wa-widget { bottom: 16px; right: 16px; }
  .wa-toggle-label { display: none; }
  .wa-toggle { padding: 16px; border-radius: 50%; }
}
.nav-menu {
  display: contents;
}
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: nowrap;
  grid-column: 2;
  justify-self: center;
  margin-right: 16px;
}
.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  grid-column: 3;
  justify-self: end;
  margin-left: 20px;
}
.nav-cta .btn-outline {
  margin-right: 2px;
}
.nav-quote { display: none; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  cursor: pointer;
  color: #0f172a;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
  flex-shrink: 0;
  z-index: 1002;
  color-scheme: light;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #0f172a;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav.mobile-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.mobile-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.mobile-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  padding: calc(var(--nav-h) + 64px) 0 80px;
  background: linear-gradient(180deg, #f0f4ff 0%, #fff 55%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 70%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(79, 70, 229, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* Home hero — full-width admin dashboard screenshot */
.hero--dashboard {
  padding-bottom: 56px;
}
.hero--dashboard .hero-intro {
  text-align: center;
  max-width: 100%;
  width: 100%;
  margin: 0 auto 40px;
  padding: 0;
}
.hero--dashboard .hero-lead,
.hero--dashboard .hero-lead.hero-lead--wide {
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  width: 100%;
}
.hero--dashboard .hero-lead--wide {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 28px;
}
.hero--dashboard h1 {
  max-width: 100%;
}
.hero--dashboard .hero-actions {
  justify-content: center;
}
.hero--dashboard .hero-trust {
  justify-content: center;
}
.hero-dashboard-showcase {
  max-width: 1120px;
  margin: 0 auto;
}
.portal-access-section {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.portal-access-split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}
.portal-access-copy .section-title {
  text-align: left;
}
.portal-access-shot .hero-dashboard-frame {
  margin: 0;
}
.features-portal-shots {
  grid-template-columns: repeat(3, 1fr);
}
.features-portal-shots .shot-figure {
  box-shadow: var(--shadow-lg);
}
.hero-dashboard-frame {
  margin: 0;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 28px 64px rgba(15, 23, 42, 0.14), 0 8px 24px rgba(79, 70, 229, 0.08);
  overflow: hidden;
}
.hero-dashboard-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
  border-bottom: 1px solid var(--border);
}
.hero-dashboard-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}
.hero-dashboard-dot:nth-child(1) { background: #f87171; }
.hero-dashboard-dot:nth-child(2) { background: #fbbf24; }
.hero-dashboard-dot:nth-child(3) { background: #34d399; }
.hero-dashboard-url {
  flex: 1;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-left: 8px;
}
.hero-dashboard-img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}
.hero--dashboard .hero-dashboard-showcase .hero-dashboard-img {
  max-height: 480px;
  object-fit: cover;
  object-position: top center;
}
.hero-dashboard-caption {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 16px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.hero-badge span { color: var(--success); }
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 520px;
}
/* Home dashboard hero: full container width (overrides 520px default) */
.hero-lead.hero-lead--wide,
.hero--dashboard .hero-lead {
  max-width: 100%;
  width: 100%;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust svg { color: var(--success); flex-shrink: 0; }

/* Dashboard mockup */
.hero-visual { position: relative; }
.mockup {
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-lg);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
}
.mockup-bar {
  display: flex;
  gap: 6px;
  padding: 8px 12px 12px;
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dot:nth-child(1) { background: #ef4444; }
.mockup-dot:nth-child(2) { background: #eab308; }
.mockup-dot:nth-child(3) { background: #22c55e; }
.mockup-screen {
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  border-radius: 8px;
  padding: 24px;
  min-height: 320px;
}
.mockup-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.mockup-stat {
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.08);
}
.mockup-stat strong {
  display: block;
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 4px;
}
.mockup-stat span { font-size: 0.7rem; color: #94a3b8; }
.mockup-chart {
  height: 120px;
  background: linear-gradient(180deg, rgba(79,70,229,0.3) 0%, transparent 100%);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  gap: 8px;
}
.mockup-bar-item {
  flex: 1;
  background: linear-gradient(180deg, var(--primary-light), var(--primary));
  border-radius: 4px 4px 0 0;
  min-height: 20%;
}

/* Stats bar */
.stats-bar {
  padding: 52px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 45%, #f1f5f9 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--dark);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item {
  padding: 20px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}
.stat-item strong {
  display: block;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.stat-item span {
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Features */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.feature-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(79, 70, 229, 0.2);
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.125rem; margin-bottom: 10px; }
.feature-card p { font-size: 0.9375rem; color: var(--text-muted); flex: 1; }

/* Modules */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.module-item {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  align-items: flex-start;
}
.module-item svg { flex-shrink: 0; color: var(--primary); margin-top: 2px; }
.module-item h4 { font-size: 1rem; margin-bottom: 4px; }
.module-item p { font-size: 0.875rem; color: var(--text-muted); }

/* Portals */
.portals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}
.portal-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
  padding: 36px 24px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: 0.25s;
}
.portal-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.portal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}
.portal-card h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.portal-card p { font-size: 0.875rem; color: var(--text-muted); flex: 1; }

/* How it works — 3-step process */
.how-steps-section {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 55%, #f8fafc 100%);
}
.how-steps-track {
  display: grid;
  grid-template-columns: 1fr 48px 1fr 48px 1fr;
  gap: 0;
  align-items: stretch;
  margin-top: 8px;
}
.how-step-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.how-step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.how-step-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px 0;
}
.how-step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 800;
  font-size: 1.125rem;
  border-radius: 10px;
}
.how-step-head h3 {
  font-size: 1.125rem;
  margin: 0;
}
.how-step-shot {
  margin: 16px 22px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-alt);
}
.how-step-shot .shot-figure {
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.how-step-shot .shot-img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.how-step-body {
  padding: 18px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.how-step-body p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 14px;
}
.how-step-body a { font-weight: 600; }
.how-step-points {
  margin: 0;
  padding: 0;
  list-style: none;
  margin-top: auto;
}
.how-step-points li {
  position: relative;
  padding-left: 22px;
  font-size: 0.8125rem;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.45;
}
.how-step-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}
.how-step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 48px;
}
.how-step-connector span {
  display: block;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  position: relative;
}
.how-step-connector span::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--accent);
}
.how-steps-cta {
  text-align: center;
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.pricing-grid--packages {
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pricing-grid--packages + .pricing-grid--packages {
  margin-top: 28px;
}
.pricing-ai-note {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--dark);
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: var(--radius);
  padding: 12px 16px;
}
.pricing-grid--packages .pricing-card {
  padding: 28px 18px;
}
.pricing-grid--packages .pricing-price {
  font-size: 1.75rem;
}
.pricing-rate-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 36px;
  padding: 20px 24px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: var(--radius);
}
.pricing-rate-banner p {
  margin: 0;
  font-size: 1rem;
  color: var(--dark);
}
.pricing-standard {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: -4px 0 16px;
  line-height: 1.45;
}
.pricing-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg);
  transform: scale(1.03);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 100px;
}
.pricing-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark);
  margin: 16px 0 8px;
}
.pricing-price span { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.pricing-desc { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 24px; }
.pricing-features { flex: 1; margin-bottom: 28px; }
.pricing-features li {
  font-size: 0.9375rem;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features svg { color: var(--success); flex-shrink: 0; }

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  text-align: left;
  cursor: pointer;
}
.faq-q svg { flex-shrink: 0; transition: transform 0.3s; color: var(--primary); }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-a-inner {
  padding: 0 24px 20px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 300px; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.contact-info h3 { margin-bottom: 16px; }
.contact-detail {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  font-size: 0.9375rem;
}
.contact-detail svg { color: var(--primary); flex-shrink: 0; }
.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 0.9375rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* CTA band */
.cta-band {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--accent) 100%);
  text-align: center;
  color: #fff;
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 16px;
}
.cta-band p {
  font-size: 1.0625rem;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.cta-band .btn-white { margin: 0 8px; }

/* Footer */
.footer {
  background: var(--bg-dark);
  color: #94a3b8;
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
.footer .logo { color: #fff; }
.footer-brand p { font-size: 0.9375rem; line-height: 1.7; max-width: 280px; }
.footer h4 {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.footer-links a {
  display: block;
  color: #94a3b8;
  font-size: 0.9375rem;
  padding: 6px 0;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-lead:not(.hero-lead--wide), .hero-trust { margin-left: auto; margin-right: auto; }
  .hero--dashboard .hero-lead--wide { max-width: 100%; width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-visual { max-width: 520px; margin: 0 auto; }
  .mockup { transform: none; }
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portals-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .pricing-grid--packages { grid-template-columns: repeat(2, 1fr); max-width: none; }
  .pricing-rate-banner { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1100px) {
  .nav-inner {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 8px;
  }
  .nav-toggle { display: inline-flex; grid-column: 1; grid-row: 1; }
  .logo {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    align-items: center;
  }
  .nav-quote {
    display: inline-flex;
    grid-column: 3;
    grid-row: 1;
    padding: 8px 12px;
    font-size: 0.8125rem;
    white-space: nowrap;
  }
  .nav-menu { display: none; }
  .nav-links {
    margin-right: 0;
  }
  .nav-cta {
    margin-left: 0;
  }
  .nav-cta .btn-outline {
    margin-right: 0;
  }
  .nav-cta-demo { display: none; }
  .nav.mobile-open {
    background: #fff;
  }
  .nav.mobile-open .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 20px 20px;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1001;
  }
  .nav.mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav.mobile-open .nav-links a {
    display: block;
    padding: 12px 4px;
    border-bottom: 1px solid var(--border);
    white-space: normal;
  }
  .nav.mobile-open .nav-cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 8px;
  }
  .nav.mobile-open .nav-cta .btn { width: 100%; text-align: center; }
}
@media (max-width: 768px) {
  .pricing-grid--packages { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .features-grid,
  .modules-grid,
  .how-steps-track {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .how-step-connector { display: none; }
  .portals-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
    margin-bottom: 32px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-brand p {
    max-width: none;
  }
  .footer-legal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    gap: 12px 16px;
  }
  .section { padding: 64px 0; }
  .container { padding: 0 16px; }
  .home-features-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }
  .home-feature-body { padding: 14px 16px; }
  .home-feature-card h3,
  .home-feature-card p { min-height: 0; }
  .home-feature-shot {
    height: 150px;
    flex-basis: 150px;
  }
  .section-header { margin-bottom: 32px; }
  .explore-grid { grid-template-columns: 1fr; }
  .module-link-grid { grid-template-columns: 1fr; }
  .hero--dashboard .hero-dashboard-showcase .hero-dashboard-img { max-height: 280px; }
  .page-hero { padding: calc(var(--nav-h) + 28px) 0 32px; }
  .page-hero h1 { font-size: 1.65rem; }
  .features-subnav-inner {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    overflow: visible;
  }
  .features-subnav-link {
    font-size: 0.8125rem;
    padding: 7px 12px;
  }
  .pricing-compare { font-size: 0.75rem; }
}

@media (max-width: 480px) {
  .logo-wordmark { font-size: 1.5rem; }
  .logo-main--footer .logo-wordmark { font-size: 1.625rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
  }
}
@media (max-width: 380px) {
  .nav-quote { padding: 7px 10px; font-size: 0.75rem; }
  .logo-wordmark { font-size: 1.35rem; }
}

/* Inner pages */
.page-hero {
  padding: calc(var(--nav-h) + 48px) 0 48px;
  background: linear-gradient(180deg, #f0f4ff 0%, var(--bg-alt) 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 12px;
}
.page-hero .lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 640px;
}
.breadcrumb {
  font-size: 0.875rem;
  margin-bottom: 16px;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 8px; color: var(--border); }
.content-block { padding: 64px 0; }
.content-block.alt { background: var(--bg-alt); }
.prose { max-width: 720px; }
.prose p { margin-bottom: 1rem; color: var(--text); }
.prose h2 { font-size: 1.5rem; margin: 2rem 0 1rem; }
.prose ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.5rem; color: var(--text); }
.card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.info-card h3 { font-size: 1.125rem; margin-bottom: 10px; }
.info-card p { font-size: 0.9375rem; color: var(--text-muted); }
.cta-inline {
  margin-top: 48px;
  padding: 40px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-lg);
  color: #fff;
  text-align: center;
}
.cta-inline h2 { color: #fff; margin-bottom: 12px; }
.cta-inline p { opacity: 0.9; margin-bottom: 24px; }
@media (max-width: 768px) {
  .card-grid-2, .card-grid-3 { grid-template-columns: 1fr; }
}

/* App screenshot mockups & figures */
.shot-figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow); }
.shot-figure--img .shot-img { width: 100%; display: block; }
.shot-figure--zoomable { cursor: zoom-in; }
.shot-img--zoomable {
  cursor: zoom-in;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.shot-img--zoomable:hover { opacity: 0.92; }
.shot-img--zoomable:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.hero-dashboard-img.shot-img--zoomable { cursor: zoom-in; }
.shot-caption { font-size: 0.8125rem; color: var(--text-muted); padding: 10px 14px; background: var(--bg-alt); border-top: 1px solid var(--border); }
.shot-mock { font-size: 10px; line-height: 1.3; }
.shot-mock-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: #e2e8f0; border-bottom: 1px solid var(--border); }
.shot-mock-bar span:first-child, .shot-mock-bar span:nth-child(2), .shot-mock-bar span:nth-child(3) {
  width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1;
}
.shot-mock-bar span:first-child { background: #f87171; }
.shot-mock-bar span:nth-child(2) { background: #fbbf24; }
.shot-mock-bar span:nth-child(3) { background: #34d399; }
.shot-mock-url { flex: 1; font-size: 9px; color: var(--text-muted); margin-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot-mock-body { padding: 12px; min-height: 120px; background: #f8fafc; }
.shot-dash { display: flex; gap: 8px; min-height: 140px; }
.shot-sidebar { width: 72px; flex-shrink: 0; background: #1e293b; border-radius: 6px; padding: 8px 4px; }
.shot-side-item { font-size: 8px; color: #94a3b8; padding: 5px 4px; border-radius: 4px; margin-bottom: 2px; }
.shot-side-item.active { background: var(--primary); color: #fff; }
.shot-main { flex: 1; }
.shot-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.shot-card { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 8px; }
.shot-card small { display: block; font-size: 7px; color: var(--text-muted); }
.shot-card strong { font-size: 11px; color: var(--dark); }
.shot-card.c1 { border-left: 3px solid #4f46e5; }
.shot-card.c2 { border-left: 3px solid #0891b2; }
.shot-card.c3 { border-left: 3px solid #059669; }
.shot-card.c4 { border-left: 3px solid #d97706; }
.shot-chart-area { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 10px; min-height: 70px; }
.shot-bars { display: flex; align-items: flex-end; gap: 6px; height: 60px; }
.shot-bars i { flex: 1; background: linear-gradient(180deg, var(--primary-light), var(--primary)); border-radius: 3px 3px 0 0; display: block; min-width: 8px; }
.shot-reports-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.shot-reports-grid--sm { grid-template-columns: repeat(3, 1fr); }
.shot-rbox { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 12px; }
.shot-rbox strong { display: block; font-size: 10px; color: var(--dark); }
.shot-rbox small { font-size: 8px; color: var(--text-muted); }
.shot-rbox.b1 { border-top: 3px solid #4f46e5; }
.shot-rbox.b2 { border-top: 3px solid #0891b2; }
.shot-rbox.b3 { border-top: 3px solid #059669; }
.shot-rbox.b4 { border-top: 3px solid #d97706; }
.shot-table-wrap { background: #fff; border-radius: 6px; overflow: hidden; }
.shot-table-title { font-weight: 700; font-size: 10px; padding: 8px; border-bottom: 1px solid var(--border); color: var(--dark); }
.shot-table-head, .shot-tr { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 4px; padding: 6px 8px; font-size: 8px; }
.shot-table-head { background: #eef2ff; font-weight: 600; color: var(--primary-dark); }
.shot-tr { border-top: 1px solid var(--border); color: var(--text); }
.shot-syllabus .shot-unit { margin-bottom: 10px; }
.shot-syllabus .shot-unit strong { font-size: 9px; display: block; margin-bottom: 4px; }
.shot-topic { font-size: 8px; padding: 4px 8px; background: #fff; border: 1px solid var(--border); border-radius: 4px; margin-top: 3px; }
.shot-topic.done { border-left: 3px solid var(--success); }
.shot-portal-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 14px; max-width: 200px; }
.shot-portal-card h4 { font-size: 11px; margin-bottom: 8px; }
.shot-portal-card li { font-size: 9px; color: var(--text-muted); padding: 3px 0; list-style: disc inside; }
.shot-form label { font-size: 8px; color: var(--text-muted); display: block; margin-bottom: 2px; }
.shot-input, .shot-check { font-size: 9px; background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 6px 8px; margin-bottom: 8px; }

/* Explore modules */
.explore-layout { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }
.explore-sidebar { position: sticky; top: calc(var(--nav-h) + 24px); }
.explore-sidebar-title { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 12px; }
.explore-filter {
  display: block; width: 100%; text-align: left; padding: 10px 12px; margin-bottom: 4px;
  font-family: var(--font); font-size: 0.875rem; border: 1px solid transparent; border-radius: 8px;
  background: transparent; color: var(--text); cursor: pointer; transition: background 0.2s, border-color 0.2s;
}
.explore-filter:hover { background: var(--bg-alt); }
.explore-filter.active { background: #eef2ff; border-color: var(--primary-light); color: var(--primary-dark); font-weight: 600; }
.explore-sidebar-note { margin-top: 20px; font-size: 0.875rem; }
.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(12px, 2.4vw, 24px);
  align-items: stretch;
  width: 100%;
  min-width: 0;
}
.explore-card {
  display: flex;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s, transform 0.2s;
}
.explore-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.explore-card.is-hidden { display: none; }
.explore-card-link {
  color: inherit;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
}
.explore-card-link:hover { color: inherit; }
.explore-card-shot {
  height: 168px;
  flex: 0 0 168px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.explore-card-shot .shot-figure {
  border: none;
  border-radius: 0;
  box-shadow: none;
  height: 100%;
  margin: 0;
}
.explore-card-shot .shot-figure--img:not(.shot-figure--phone) .shot-img,
.explore-card-shot .shot-mock {
  width: 100%;
  height: 168px;
  object-fit: cover;
  object-position: top center;
}
.explore-card-shot .shot-figure--phone {
  height: 168px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.explore-card-shot .phone-bezel {
  width: auto;
  max-width: 92px;
  height: 148px;
  padding: 6px 5px 8px;
  border-radius: 16px;
}
.explore-card-shot .phone-notch { width: 36px; height: 5px; top: 8px; }
.explore-card-shot .phone-screen,
.explore-card-shot .shot-figure--phone .shot-img {
  max-height: 132px !important;
  height: 132px !important;
  object-fit: cover !important;
}
.explore-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 168px;
}
.explore-card-icon { font-size: 1.5rem; display: block; margin-bottom: 8px; }
.explore-card-body h2,
.explore-card-body h3 {
  font-size: 1.0625rem;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}
.explore-card-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.5em;
}
.explore-card-meta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: auto;
}

/* Module detail */
.page-hero--compact {
  padding-top: calc(var(--nav-h) + 32px);
  padding-bottom: 28px;
}
.module-hero-cat { font-size: 0.8125rem; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.module-detail-grid { display: grid; grid-template-columns: 1fr 280px; gap: 40px; align-items: start; }
.module-shot-large { max-width: 100%; }
.module-shot-large .shot-figure { box-shadow: var(--shadow-lg); }
.module-shot-large .shot-figure--img .shot-img {
  max-height: 320px;
  width: 100%;
  object-fit: cover;
  object-position: top center;
}
.module-shot-large .shot-figure--phone {
  padding: 12px 12px 6px;
}
.module-shot-large .shot-figure--phone .shot-img,
.module-shot-large .phone-screen {
  max-height: 360px !important;
  object-fit: contain !important;
}
.shot-hint { font-size: 0.875rem; color: var(--text-muted); margin-top: 12px; }
.feature-checklist { display: grid; gap: 10px; }
.feature-checklist li {
  display: flex; align-items: flex-start; gap: 10px; font-size: 0.9375rem;
  padding: 12px 14px; background: var(--bg-alt); border-radius: 8px; border: 1px solid var(--border);
}
.feature-checklist svg { flex-shrink: 0; color: var(--success); margin-top: 2px; }

/* Reports page */
.reports-showcase { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: stretch; }
.reports-showcase--equal .reports-showcase-cell {
  display: flex;
  min-height: 100%;
}
.reports-showcase--equal .shot-figure {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  height: 100%;
}
.reports-showcase--equal .shot-figure--img .shot-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
}
.reports-showcase--equal .shot-mock {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.reports-showcase--equal .shot-mock-body {
  flex: 1;
  min-height: 200px;
}
.reports-showcase--equal .shot-caption {
  margin-top: auto;
}
.reports-directory { display: grid; gap: 8px; }
.reports-directory li {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px;
  background: #fff; border: 1px solid var(--border); border-radius: 8px; font-size: 0.9375rem;
}
.reports-directory .report-num {
  flex-shrink: 0; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  background: #eef2ff; color: var(--primary); font-weight: 700; font-size: 0.8125rem; border-radius: 6px;
}
.badge-count {
  display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 4px 10px;
  background: #eef2ff; color: var(--primary); border-radius: 20px; vertical-align: middle; margin-left: 8px;
}

/* Features by category */
.features-category { margin-bottom: 48px; }
.features-category h2 { font-size: 1.35rem; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 2px solid var(--primary-light); }
.features-category-desc { color: var(--text-muted); margin-bottom: 20px; font-size: 0.9375rem; }
.module-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 16px;
  align-items: stretch;
}
.module-link-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.module-link-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow); color: inherit; }
.module-link-card h3,
.module-link-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}
.module-link-card p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.9em;
}
.module-link-card span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: auto;
}
.hero-shot-wrap { max-width: 100%; }
.hero-shot-wrap .shot-figure { box-shadow: var(--shadow-lg); }
.modules-hub-shot { max-width: 640px; margin: 0 auto 32px; }

/* Features page sub-navigation */
.features-subnav {
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}
.features-subnav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
}
.features-subnav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  white-space: nowrap;
}
.features-subnav-link:hover { color: var(--primary); border-color: var(--primary-light); background: #eef2ff; }
.features-subnav-link.is-active { color: var(--primary); border-color: var(--primary-light); background: #eef2ff; }
.features-subnav-cta { margin-left: 0; color: var(--primary) !important; background: #eef2ff; }
.features-hero-shot { max-width: 920px; margin: 0 auto 40px; }
.features-hero-shot .shot-figure { box-shadow: var(--shadow-lg); }
.features-category h3 { font-size: 1.25rem; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--primary-light); }

.home-portal-lines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
  text-align: center;
}
.home-portal-lines li {
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--text);
}
.home-portal-lines strong { color: var(--dark); display: block; margin-bottom: 4px; }
@media (max-width: 768px) {
  .home-portal-lines { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
}

.home-portal-lines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
  text-align: center;
}
.home-portal-lines li {
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--text);
}
.home-portal-lines strong { color: var(--dark); display: block; margin-bottom: 4px; }
@media (max-width: 768px) {
  .home-portal-lines { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
}

/* Home page clickable feature cards */
.home-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(12px, 2.4vw, 24px);
  align-items: stretch;
  width: 100%;
}
.home-feature-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.home-feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--primary-light);
  color: inherit;
}
.home-feature-shot {
  height: clamp(140px, 32vw, 180px);
  flex: 0 0 clamp(140px, 32vw, 180px);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  min-width: 0;
}
.home-feature-shot .shot-figure {
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  height: 100%;
  max-width: 100%;
  min-width: 0;
}
.home-feature-shot .shot-img,
.home-feature-shot .shot-mock {
  height: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: top center;
  width: 100%;
  max-width: 100%;
}
.home-feature-shot .shot-figure--phone {
  height: 180px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-feature-shot .phone-bezel {
  width: auto;
  max-width: 96px;
  height: 160px;
}
.home-feature-shot .phone-screen,
.home-feature-shot .shot-figure--phone .shot-img {
  max-height: 144px !important;
  height: 144px !important;
  object-fit: cover !important;
}
.home-feature-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.home-feature-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.home-feature-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}
.home-feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  flex: 1;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.65em;
}
.home-feature-link { font-size: 0.875rem; font-weight: 600; color: var(--primary); margin-top: auto; padding-top: 12px; }

/* AI Suite + Campus Chat differentiator */
.section-ai-diff {
  background: linear-gradient(180deg, #f0fdfa 0%, #fff 48%, #f8fafc 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ai-diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 8px;
  align-items: stretch;
}
.ai-diff-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(15, 23, 42, 0.06));
  height: 100%;
}
.ai-diff-shot {
  background: #0f172a0a;
  height: 200px;
  min-height: 200px;
  max-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  overflow: hidden;
}
.ai-diff-shot .shot-figure,
.ai-diff-shot .shot-figure--phone,
.ai-diff-shot .shot-figure--img {
  margin: 0;
  max-height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-diff-shot .phone-bezel {
  transform: scale(0.72);
  transform-origin: center center;
  max-height: 176px;
}
.ai-diff-shot .phone-screen,
.ai-diff-shot .shot-img {
  max-height: 176px !important;
  height: auto !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
}
.ai-diff-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.ai-diff-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f766e;
  margin-bottom: 8px;
}
.ai-diff-body h3 { font-size: 1.35rem; margin: 0 0 10px; }
.ai-diff-body > p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin: 0 0 14px; }
.ai-diff-list {
  margin: 0 0 16px;
  padding-left: 1.1rem;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.55;
}
.ai-diff-list li { margin-bottom: 4px; }
.ai-diff-compare {
  margin-top: 40px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 16px);
}
.ai-diff-compare-title {
  font-size: 1.15rem;
  margin: 0 0 16px;
  text-align: center;
}
.ai-diff-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 24px 0 0;
}
@media (max-width: 900px) {
  .ai-diff-grid { grid-template-columns: 1fr; }
}

/* Solutions page split layout */
.solutions-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.solutions-split--reverse .solutions-shot { order: -1; }
.solutions-shot .shot-figure { box-shadow: var(--shadow-lg); }
.solutions-copy .section-label { margin-bottom: 8px; }
.solutions-copy h2 { font-size: 1.75rem; margin-bottom: 12px; }
.solutions-copy > p { color: var(--text-muted); font-size: 1.0625rem; }
.portal-card a { display: inline-block; margin-top: 10px; font-size: 0.875rem; font-weight: 600; }

@media (max-width: 1024px) {
  .solutions-split, .solutions-split--reverse { grid-template-columns: 1fr; }
  .solutions-split--reverse .solutions-shot { order: 0; }
  .explore-layout { grid-template-columns: 1fr; }
  .explore-sidebar { position: static; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
  .explore-sidebar-title { width: 100%; }
  .explore-filter { width: auto; max-width: 100%; padding: 8px 12px; font-size: 0.8125rem; }
  .module-detail-grid { grid-template-columns: 1fr; }
  .reports-showcase,
  .features-portal-shots { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .shot-cards { grid-template-columns: repeat(2, 1fr); }
}

/* Homepage FAQ (details/summary) */
.home-faq-list { max-width: 720px; margin: 0 auto; }
.home-faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: #fff;
  overflow: hidden;
}
.home-faq-item summary {
  padding: 18px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.home-faq-item summary::-webkit-details-marker { display: none; }
.home-faq-item summary::after {
  content: '+';
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 700;
}
.home-faq-item[open] summary::after { content: '−'; }
.home-faq-item p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.9375rem;
}
.hero-seo-links a { color: var(--primary); font-weight: 600; }
.hero-seo-links a:hover { text-decoration: underline; }
.blog-prose h2 { margin-top: 2rem; }
.blog-prose h3 { margin-top: 1.25rem; font-size: 1.125rem; }
.blog-prose ol {
  list-style: decimal;
  padding-left: 1.35rem;
  margin-bottom: 1rem;
}
.blog-prose ol li { margin-bottom: 0.5rem; color: var(--text); }
.blog-prose a { color: var(--primary); font-weight: 600; }
.blog-prose a:hover { text-decoration: underline; }

/* Blog hub & article pages */
.blog-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #f8fafc 0%, #eef2ff 45%, #ecfeff 100%);
}
.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(37, 99, 235, 0.08) 0, transparent 42%),
    radial-gradient(circle at 88% 10%, rgba(6, 182, 212, 0.1) 0, transparent 38%);
  pointer-events: none;
}
.blog-hero .container { position: relative; z-index: 1; }
.blog-hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 12px;
}
.blog-hero--article h1 { max-width: 22em; }
.blog-hero-deck { margin-top: 8px; font-size: 1rem !important; }

.blog-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.blog-meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
}
.blog-meta-pill--cat {
  color: var(--primary);
  background: #fff;
  border-color: rgba(37, 99, 235, 0.2);
}

.blog-index-section {
  padding: 72px 0 96px;
  background: var(--bg-alt);
}
.blog-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}
.blog-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.blog-sidebar-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.blog-topic-list { margin-bottom: 28px; }
.blog-topic-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 0.9375rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.blog-topic-list li:last-child { border-bottom: none; }
.blog-topic-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  flex-shrink: 0;
}
.blog-sidebar-card {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.blog-sidebar-card-label {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 8px;
}
.blog-sidebar-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}
.blog-list-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}
.blog-list-heading { font-size: 1.5rem; color: var(--dark); }
.blog-list-count {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}
.blog-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(79, 70, 229, 0.25);
}
.blog-card--featured { grid-column: 1 / -1; }
.blog-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 28px 24px;
  color: inherit;
}
.blog-card-link:hover { color: inherit; }
.blog-card-badge {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 16px;
  padding: 5px 12px;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-dark);
  background: #eef2ff;
  border-radius: 999px;
}
.blog-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.blog-card-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.35rem;
  flex-shrink: 0;
}
.blog-card-cat {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  text-align: right;
}
.blog-card h3 {
  font-size: 1.125rem;
  line-height: 1.35;
  color: var(--dark);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.blog-card:hover h3 { color: var(--primary); }
.blog-card--featured h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  max-width: 36em;
}
.blog-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 18px;
}
.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-bottom: 14px;
}
.blog-card-cta {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: auto;
}
.blog-card:hover .blog-card-cta { text-decoration: underline; }
.blog-index-cat {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  margin-bottom: 10px;
}
@media (max-width: 960px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
  }
  .blog-topic-list { margin-bottom: 0; }
}
@media (max-width: 768px) {
  .blog-list-grid { grid-template-columns: 1fr; }
  .blog-card--featured { grid-column: auto; }
  .blog-sidebar { grid-template-columns: 1fr; }
  .blog-index-section { padding: 48px 0 64px; }
}

.blog-article-layout {
  max-width: 760px;
  margin: 0 auto;
}
.blog-article-body {
  padding-top: 48px;
  padding-bottom: 48px;
}
.blog-single-footer { padding-top: 0; }
.blog-single-footer .blog-pillar-cta { margin-top: 0; }

.blog-pillar-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 8px;
}
.blog-pillar-cta {
  margin-top: 48px;
  padding: 32px 36px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}
.blog-pillar-cta h2 { font-size: 1.35rem; margin-bottom: 12px; color: var(--dark); }
.blog-pillar-cta p { color: var(--text-muted); margin: 0; line-height: 1.65; }
.blog-pillar-cta p a { color: var(--primary); font-weight: 600; }
.blog-pillar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.blog-related-block { margin-top: 40px; }
.blog-related-heading {
  font-size: 1.25rem;
  margin-bottom: 20px;
  color: var(--dark);
}
.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.blog-related-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.blog-related-card:hover {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}
.blog-related-card strong {
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--dark);
}
.blog-related-card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.blog-back-link {
  margin-top: 32px;
  text-align: center;
}
.blog-back-link a {
  font-weight: 600;
  color: var(--primary);
}
.blog-back-link a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .blog-related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .blog-pillar-actions .btn { width: 100%; margin-left: 0 !important; }
}

/* Full-screen image lightbox */
body.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox[hidden] { display: none !important; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  cursor: zoom-out;
}
.lightbox-dialog {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1400px);
  max-height: 92vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-figure {
  margin: 0;
  max-height: calc(92vh - 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lightbox-figure img {
  max-width: 100%;
  max-height: calc(92vh - 80px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
  background: #fff;
}
.lightbox-figure figcaption {
  color: #e2e8f0;
  font-size: 0.9375rem;
  text-align: center;
  max-width: 640px;
}
.lightbox-close {
  position: absolute;
  top: -12px;
  right: -12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--dark);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
}
.lightbox-close:hover { background: var(--bg-alt); }
@media (max-width: 640px) {
  .lightbox { padding: 12px; }
  .lightbox-close { top: 4px; right: 4px; }
}

/* Home hero copy — full width on localhost and production */
.page-index .hero--dashboard .hero-intro,
.page-home .hero--dashboard .hero-intro {
  max-width: 100%;
  width: 100%;
}
.page-index .hero--dashboard .hero-lead.hero-lead--wide,
.page-home .hero--dashboard .hero-lead.hero-lead--wide {
  max-width: 100%;
  width: 100%;
}

/* Trusted institutions slider & testimonials */
.section-trust { padding-top: 48px; }
.section-trust .section-header { margin-bottom: 32px; }
.trust-slider {
  overflow: hidden;
  margin-bottom: 40px;
  padding: 8px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}
.trust-slider-track {
  display: flex;
  align-items: stretch;
  gap: 16px;
  width: max-content;
  animation: trust-slider-scroll 55s linear infinite;
}
.trust-slider:hover .trust-slider-track {
  animation-play-state: paused;
}
@keyframes trust-slider-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .trust-slider-track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
  .trust-slider { overflow: visible; mask-image: none; -webkit-mask-image: none; }
}
.trust-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 14px;
  min-width: 168px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.trust-logo-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.trust-logo-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}
.trust-logo-type {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  margin: 0;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.testimonial-card p {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 20px;
}
.testimonial-card footer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
  flex-shrink: 0;
}
.testimonial-card footer strong {
  display: block;
  font-size: 0.875rem;
  color: var(--dark);
}
.testimonial-card footer span span {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Pricing comparison table */
.pricing-compare-wrap { overflow-x: auto; margin-top: 16px; }
.pricing-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.pricing-compare th,
.pricing-compare td {
  padding: 12px 14px;
  border: 1px solid var(--border);
  text-align: center;
}
.pricing-compare thead th {
  background: var(--bg-alt);
  font-weight: 700;
  color: var(--dark);
}
.pricing-compare th[scope="row"] {
  text-align: left;
  font-weight: 600;
  background: #fff;
}
.pricing-compare tbody tr:nth-child(even) th[scope="row"],
.pricing-compare tbody tr:nth-child(even) td {
  background: var(--bg-alt);
}
.home-faq-item .pricing-compare-wrap { margin-top: 12px; }
.home-faq-item .pricing-compare { font-size: 0.8125rem; }
.home-faq-item .pricing-compare th,
.home-faq-item .pricing-compare td { padding: 8px 10px; }

/* Footer legal links */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  padding: 20px 0 0;
  margin-top: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-legal a {
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 500;
}
.footer-legal a:hover { color: #fff; }

.legal-prose h2 { margin-top: 1.5rem; font-size: 1.25rem; }

/* DeskOS Team page */
.team-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.team-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20px 20px, rgba(34,211,238,0.22) 0 2px, transparent 2px 100%),
    radial-gradient(circle at 80px 60px, rgba(37,99,235,0.18) 0 2px, transparent 2px 100%),
    linear-gradient(90deg, rgba(37,99,235,0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(34,211,238,0.06) 1px, transparent 1px),
    repeating-linear-gradient(135deg, rgba(37,99,235,0.06) 0 8px, transparent 8px 16px);
  background-size: 140px 140px, 180px 160px, 34px 34px, 34px 34px, 18px 18px;
  opacity: 0.55;
  pointer-events: none;
}
.team-hero::after {
  content: '';
  position: absolute;
  inset: -120px -40px auto -40px;
  height: 340px;
  background: radial-gradient(circle at 30% 40%, rgba(34,211,238,0.22) 0 0, rgba(34,211,238,0.15) 30%, transparent 60%),
              radial-gradient(circle at 70% 35%, rgba(37,99,235,0.18) 0 0, rgba(37,99,235,0.12) 32%, transparent 60%);
  pointer-events: none;
}

.team-page .container { position: relative; z-index: 1; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 12px;
}

.team-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 0;
  overflow: hidden;
  position: relative;
}
.team-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.10), rgba(8,145,178,0.08), rgba(34,211,238,0.06));
  opacity: 0;
  transition: opacity 0.2s ease;
}
.team-card:hover::before { opacity: 1; }

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

.team-card {
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.team-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-light);
}

.team-photo-wrap {
  width: 108px;
  flex-shrink: 0;
  height: 108px;
  border-radius: 22px;
  padding: 4px;
  background: linear-gradient(135deg, #2563EB 0%, #0891B2 55%, #22C55E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-photo {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  object-fit: cover;
  object-position: top center;
  background: #fff;
  display: block;
}
.team-photo--svg { object-fit: contain; }

.team-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
}

.team-name {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin: 0;
}

.team-role {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  color: transparent;
  background: linear-gradient(135deg, #2563EB 0%, #0891B2 55%, #22C55E 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.team-bio {
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .team-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .testimonial-grid { grid-template-columns: 1fr; }
  .trust-logo-item { min-width: 150px; }
  .portal-access-split { grid-template-columns: 1fr; }
  .portal-access-copy .section-title { text-align: center; }
  .portal-access-copy .section-desc { text-align: center !important; }
}
@media (max-width: 480px) {
  .trust-logo-item { min-width: 140px; padding: 14px 10px; }
  .trust-slider-track { animation-duration: 45s; }
}

/* 404 error page */
.error-hero { text-align: center; }
.error-hero .lead { margin-left: auto; margin-right: auto; }
.error-code {
  font-family: var(--font-display, 'Sora', sans-serif);
  font-size: clamp(4rem, 12vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  margin: 0 0 12px;
  background: linear-gradient(135deg, var(--primary) 0%, #0891b2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}
.error-links-heading {
  text-align: center;
  font-size: 1.35rem;
  margin-bottom: 28px;
  color: var(--dark);
}
.error-link-card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.error-link-card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}
.error-link-card h3 { color: var(--dark); }
@media (max-width: 768px) {
  .error-actions .btn { width: 100%; }
}

/* Phone-framed mobile app screenshots */
.shot-figure--phone {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 16px 8px;
}
.phone-bezel {
  position: relative;
  width: min(100%, 280px);
  background: #0f172a;
  border-radius: 28px;
  padding: 10px 8px 12px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
}
.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 8px;
  border-radius: 999px;
  background: #1e293b;
  z-index: 2;
}
.phone-screen,
.shot-figure--phone .shot-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  object-fit: contain !important;
  aspect-ratio: auto !important;
  max-height: none !important;
}
.phone-cluster {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.phone-cluster-item {
  flex: 0 1 240px;
  max-width: 260px;
}
.phone-cluster-item:nth-child(2) {
  transform: translateY(-12px);
}
.app-screen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.app-screen-grid--pair,
.app-screen-grid--home {
  grid-template-columns: repeat(3, 1fr);
}
.app-screen-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.app-screen-card .shot-figure {
  border: none;
  box-shadow: none;
  border-radius: 0;
}
.app-screen-body {
  padding: 16px 18px 20px;
}
.app-screen-role {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}
.app-screen-body h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.app-screen-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.app-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 36px;
}
.home-feature-shot .shot-figure--phone,
.explore-card-shot .shot-figure--phone,
.how-step-shot .shot-figure--phone,
.solutions-shot .shot-figure--phone,
.module-shot-large .shot-figure--phone {
  background: #f8fafc;
}
.how-step-shot .phone-bezel {
  width: min(100%, 220px);
}
.portal-access-shot .shot-figure--phone {
  margin: 0 auto;
}
.reports-showcase .shot-figure--phone .shot-img,
.reports-showcase--equal .shot-figure--phone .shot-img {
  aspect-ratio: auto !important;
  object-fit: contain !important;
  max-height: none !important;
}
@media (max-width: 1024px) {
  .app-screen-grid,
  .app-screen-grid--pair,
  .app-screen-grid--home {
    grid-template-columns: repeat(2, 1fr);
  }
  .phone-cluster-item:nth-child(2) {
    transform: none;
  }
}
@media (max-width: 640px) {
  .app-screen-grid,
  .app-screen-grid--pair,
  .app-screen-grid--home {
    grid-template-columns: 1fr;
  }
  .phone-cluster {
    gap: 12px;
  }
  .phone-cluster-item {
    flex: 1 1 100%;
    max-width: 280px;
  }
  .phone-bezel { width: min(100%, 240px); }
  .app-tools-grid { grid-template-columns: 1fr; }
}
