/* ===================================================================
   SchoolPro Ke — Modern Design System & Visual Masterpiece
   Aesthetic overhaul: deep slate navy, vibrant sapphire blue, amber accents,
   glassmorphic surface physics, smooth micro-interactions & responsive perfection.
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,500;0,6..72,600;0,6..72,700;1,6..72,500&family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=IBM+Plex+Mono:wght@500;600;700&display=swap');

:root {
  --ink:          #0F172A;
  --ink-soft:     #475569;
  --ink-light:    #64748B;
  --blue:         #2563EB;
  --blue-dark:    #1D4ED8;
  --blue-deep:    #090E26;
  --blue-light:   #EFF6FF;
  --blue-glow:    rgba(37, 99, 235, 0.35);
  --paper:        #F8FAFC;
  --paper-alt:    #F1F5F9;
  --white:        #FFFFFF;
  --amber:        #F59E0B;
  --amber-dark:   #D97706;
  --amber-glow:   rgba(245, 158, 11, 0.35);
  --green:        #10B981;
  --green-soft:   #ECFDF5;
  --green-dark:   #059669;
  --line:         #E2E8F0;
  --line-soft:    #F1F5F9;

  --font-display: 'Newsreader', Georgia, serif;
  --font-body:    'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    24px;

  --shadow-sm:    0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-card:  0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 20px 35px -8px rgba(37, 99, 235, 0.16), 0 8px 16px -4px rgba(15, 23, 42, 0.06);
  --shadow-glow:  0 0 35px rgba(37, 99, 235, 0.25);
  --shadow-dark:  0 24px 50px -12px rgba(0, 0, 0, 0.4);

  --max-width:    1180px;
}

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

:focus-visible {
  outline: 2.5px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

html:focus-within {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.32rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
  color: var(--ink-soft);
  max-width: 62ch;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

button {
  font-family: inherit;
}

.mono {
  font-family: var(--font-mono);
}

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

.section {
  padding: 96px 0;
  scroll-margin-top: 88px;
  position: relative;
}

[id] {
  scroll-margin-top: 88px;
}

.section-tight {
  padding: 60px 0;
}

.section-head {
  max-width: 650px;
  margin-bottom: 48px;
}

.section-head p {
  font-size: 1.08rem;
  line-height: 1.6;
}

/* ===================================================================
   Keyframe Animations
   =================================================================== */
@keyframes float-1 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(0.6deg); }
}

@keyframes float-2 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(8px) rotate(-0.6deg); }
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes eyebrow-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

@keyframes glow-shift {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.08); }
}

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

/* ===================================================================
   Buttons
   =================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%);
  color: var(--blue-deep);
  box-shadow: 0 4px 16px var(--amber-glow);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #FBBF24 0%, #D97706 100%);
  box-shadow: 0 8px 24px var(--amber-glow), 0 0 0 1px var(--amber);
  transform: translateY(-2px);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 16px var(--blue-glow);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
  box-shadow: 0 8px 26px var(--blue-glow), 0 0 0 1px var(--blue);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  border-color: var(--line);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: var(--paper-alt);
  border-color: var(--ink);
  transform: translateY(-1px);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-small {
  padding: 9px 20px;
  font-size: 0.88rem;
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--blue);
  transition: gap 0.2s ease, color 0.2s ease;
}

.btn-text:hover {
  color: var(--blue-dark);
  gap: 10px;
}

/* ===================================================================
   Header / Navigation
   =================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.navbar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.logo-link:hover {
  transform: scale(1.02);
}

.logo-link img {
  height: 42px;
  width: 42px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.logo-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin-left: 12px;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.nav-menu-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: flex-end;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a,
.nav-links > li > button.nav-top-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-links > li > a:hover,
.nav-links > li > button.nav-top-link:hover {
  background: var(--paper-alt);
  color: var(--ink);
}

.nav-links > li > a.active {
  color: var(--blue);
  font-weight: 600;
  background: var(--blue-light);
}

.chevron {
  width: 8px;
  height: 8px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform 0.2s ease;
}

.has-dropdown:hover .chevron,
.has-dropdown.open .chevron {
  transform: rotate(225deg);
  margin-top: 3px;
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 320px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.16);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
}

.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-group + .dropdown-group {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
}

.dropdown-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 12px 4px;
}

.dropdown a.dropdown-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--ink);
  transition: all 0.18s ease;
}

.dropdown a.dropdown-item:hover {
  background: var(--blue-light);
  color: var(--blue);
  transform: translateX(3px);
}

.dropdown a.dropdown-item span.item-sub {
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 12px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}

.hamburger:hover {
  background: var(--paper-alt);
}

.hamburger .bar {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.25s ease;
}

/* ===================================================================
   Hero Section
   =================================================================== */
.hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.28) 0%, transparent 45%),
              radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.18) 0%, transparent 45%),
              var(--blue-deep);
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: contrast(110%) saturate(120%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, rgba(9, 14, 38, 0.94) 0%, rgba(9, 14, 38, 0.85) 55%, rgba(9, 14, 38, 0.65) 100%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #FDE68A;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
  animation: eyebrow-pulse 2s infinite ease-in-out;
}

.hero-copy h1 {
  margin-bottom: 22px;
  color: var(--white);
  font-size: clamp(2.6rem, 4.8vw, 4.2rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
  background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy p.lead {
  font-size: 1.15rem;
  max-width: 48ch;
  color: rgba(241, 245, 249, 0.88);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.hero-actions .btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.hero-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* Hero Dashboard Visual */
.hero-visual {
  position: relative;
  padding: 6px 26px 46px 0;
}

.mock-frame {
  position: relative;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-dark), 0 0 0 1px rgba(255, 255, 255, 0.15);
  padding: 18px;
  transition: transform 0.3s ease;
}

.mock-bar {
  display: flex;
  gap: 8px;
  padding: 2px 4px 14px;
}

.mock-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #CBD5E1;
}

.mock-bar span:nth-child(1) { background: #EF4444; }
.mock-bar span:nth-child(2) { background: #F59E0B; }
.mock-bar span:nth-child(3) { background: #10B981; }

.mock-screen {
  background: linear-gradient(160deg, #090E26 0%, #121B3E 100%);
  border-radius: var(--radius-md);
  padding: 22px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.mock-screen .mock-title {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
}

.mock-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.mock-stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px;
  backdrop-filter: blur(8px);
}

.mock-stat .num {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}

.mock-stat .lbl {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

.mock-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mock-bars i {
  display: block;
  flex: 1;
  background: linear-gradient(180deg, var(--amber) 0%, var(--amber-dark) 100%);
  border-radius: 6px 6px 0 0;
  opacity: 0.95;
  box-shadow: 0 0 12px var(--amber-glow);
  transition: height 0.5s ease;
}

.mock-float {
  position: absolute;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.2);
  padding: 14px 18px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.mock-float .ic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.mock-float.float-1 {
  top: -18px;
  right: -14px;
  animation: float-1 5s ease-in-out infinite;
}

.mock-float.float-1 .ic {
  background: var(--green-soft);
  color: var(--green);
}

.mock-float.float-2 {
  bottom: -20px;
  left: -18px;
  animation: float-2 6s ease-in-out infinite;
}

.mock-float.float-2 .ic {
  background: var(--blue-light);
  color: var(--blue);
}

.mock-float strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--ink);
}

.mock-float small {
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.mock-device-label {
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 999px;
  z-index: 7;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mock-frame-desktop {
  position: relative;
  z-index: 1;
}

.mock-frame-mobile {
  position: absolute;
  right: -8px;
  bottom: 4px;
  width: 146px;
  z-index: 6;
  padding: 12px 10px 16px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.mock-device-label-mobile {
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.mock-phone-notch {
  width: 38px;
  height: 5px;
  background: var(--line);
  border-radius: 4px;
  margin: 2px auto 10px;
}

.mock-frame-mobile .mock-screen {
  padding: 14px 10px;
  border-radius: 16px;
}

.mock-frame-mobile .mock-title {
  font-size: 0.65rem;
  margin-bottom: 10px;
}

.mock-stat-row-mobile {
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.mock-frame-mobile .mock-stat {
  padding: 8px;
}

.mock-frame-mobile .mock-stat .num {
  font-size: 0.85rem;
}

.mock-frame-mobile .mock-stat .lbl {
  font-size: 0.58rem;
}

.mock-bars-mobile {
  height: 46px;
  gap: 4px;
  padding: 8px;
}

/* ===================================================================
   Trust Bar Section
   =================================================================== */
.trust {
  padding: 44px 0;
  background: var(--white);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.trust-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}

.trust-copy {
  font-size: 0.98rem;
  color: var(--ink-soft);
  max-width: 36ch;
  line-height: 1.6;
}

.trust-chips {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.trust-chip {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 22px;
  min-width: 140px;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.trust-chip:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
  background: var(--white);
}

.trust-chip .n {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--blue-dark);
  font-size: 1.15rem;
}

.trust-chip .l {
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-weight: 500;
}

/* ===================================================================
   Pillars Section ("Three jobs, one platform")
   =================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.registrar-page .pillars-grid {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.registrar-page .pillar-card.p2 {
  display: none;
}

.pillar-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
  transition: background 0.3s ease;
}

.pillar-card.p1::before { background: linear-gradient(90deg, #2563EB, #60A5FA); }
.pillar-card.p2::before { background: linear-gradient(90deg, #10B981, #34D399); }
.pillar-card.p3::before { background: linear-gradient(90deg, #F59E0B, #FBBF24); }

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(37, 99, 235, 0.3);
}

.pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 1.4rem;
  transition: transform 0.3s ease;
}

.pillar-card:hover .pillar-icon {
  transform: scale(1.08) rotate(-4deg);
}

.pillar-card.p1 .pillar-icon { background: var(--blue-light); color: var(--blue); }
.pillar-card.p2 .pillar-icon { background: var(--green-soft); color: var(--green); }
.pillar-card.p3 .pillar-icon { background: #FEF3C7; color: var(--amber-dark); }

.pillar-card h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.pillar-card ul {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pillar-card ul li {
  display: flex;
  gap: 12px;
  font-size: 0.94rem;
  color: var(--ink-soft);
  align-items: flex-start;
  line-height: 1.5;
}

.pillar-card ul li::before {
  content: '✓';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.pillar-card.p2 ul li::before {
  background: var(--green-soft);
  color: var(--green);
}

.pillar-card.p3 ul li::before {
  background: #FEF3C7;
  color: var(--amber-dark);
}

/* ===================================================================
   Role-Based Showcase Section
   =================================================================== */
.roles {
  background: var(--paper);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.role-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 38px;
  flex-wrap: wrap;
  background: var(--paper-alt);
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  max-width: fit-content;
}

.role-tab {
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-weight: 600;
  font-size: 0.93rem;
  cursor: pointer;
  color: var(--ink-soft);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.role-tab:hover {
  color: var(--ink);
}

.role-tab.active {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 14px var(--blue-glow);
}

.role-panel {
  display: none;
}

.role-panel.active {
  display: grid;
  animation: slideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.role-panel {
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-card);
}

#roles .container {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-lg);
  --role-background: none;
}

#roles .container::before {
  content: '';
  position: absolute;
  inset: -8%;
  z-index: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)),
              var(--role-background) center / cover no-repeat;
  transform-origin: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#roles .container > * {
  position: relative;
  z-index: 1;
}

#roles:has(.role-panel[data-role="principals"].active) .container { --role-background: url('assets/principal-bg.jpg'); }
#roles:has(.role-panel[data-role="teachers"].active) .container { --role-background: url('assets/teacher-bg.jpg'); }
#roles:has(.role-panel[data-role="parents"].active) .container { --role-background: url('assets/parent-bg.jpg'); }
#roles:has(.role-panel[data-role="registrars"].active) .container { --role-background: url('assets/registrar-bg.jpg'); }
#roles:has(.role-panel[data-role="librarians"].active) .container { --role-background: url('assets/librarian-bg.jpg'); }

#roles:has(.role-panel[data-role="principals"].active) .container::before,
#roles:has(.role-panel[data-role="teachers"].active) .container::before,
#roles:has(.role-panel[data-role="parents"].active) .container::before,
#roles:has(.role-panel[data-role="registrars"].active) .container::before,
#roles:has(.role-panel[data-role="librarians"].active) .container::before {
  opacity: 1;
  animation: principal-background-motion 18s ease-in-out infinite alternate;
}

@keyframes principal-background-motion {
  from { transform: scale(1) rotate(0deg); }
  to { transform: scale(1.06) rotate(1.5deg); }
}

.role-panel .role-eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  display: inline-block;
}

.role-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 22px;
}

.role-list li {
  display: flex;
  gap: 12px;
  font-size: 0.96rem;
  color: var(--ink);
  align-items: flex-start;
}

.role-list li .check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.role-visual {
  position: relative;
}

.role-example {
  background: var(--blue-deep);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 24px;
  font-size: 0.92rem;
  box-shadow: 0 16px 36px -10px rgba(9, 14, 38, 0.3);
}

.role-example .tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  background: rgba(245, 158, 11, 0.15);
  border-radius: 6px;
  font-weight: 600;
}

.role-example p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

/* ===================================================================
   Security & Uptime Section
   =================================================================== */
.security {
  background: radial-gradient(circle at 50% 0%, #121B3E 0%, #090E26 100%);
  color: var(--white);
}

.security .section-head p {
  color: rgba(255, 255, 255, 0.75);
}

.security h2 {
  color: var(--white);
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 44px;
}

.security-badge {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.security-badge:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(37, 99, 235, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.2);
}

.security-badge .b-icon {
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.security-badge h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 8px;
  font-family: var(--font-body);
}

.security-badge p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.5;
}

.security-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 72ch;
  line-height: 1.6;
}

/* ===================================================================
   Final CTA / Closer Section
   =================================================================== */
.closer {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 88px 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.closer::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.12) 0%, transparent 50%);
  animation: glow-shift 10s infinite ease-in-out;
  pointer-events: none;
}

.closer h2 {
  color: var(--white);
  max-width: 28ch;
  margin: 0 auto 16px;
  font-size: clamp(2rem, 3.2vw, 2.6rem);
}

.closer p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 52ch;
  margin: 0 auto 36px;
  font-size: 1.1rem;
}

.closer-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===================================================================
   Footer Section
   =================================================================== */
.footer {
  background: var(--blue-deep);
  color: rgba(255, 255, 255, 0.72);
  padding-top: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 36px;
}

.footer-brand-desc {
  font-size: 0.88rem;
  margin: 14px 0 20px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 34ch;
  line-height: 1.6;
}

.social-row {
  display: flex;
  gap: 12px;
}

.social-row a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.social-row a[aria-label*="X"]:hover,
.social-row a[href*="x.com"]:hover {
  background: #000000;
  border-color: #38BDF8;
  color: #38BDF8;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.4);
}

.social-row a[aria-label*="Instagram"]:hover,
.social-row a[href*="instagram"]:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-color: transparent;
  color: #FFFFFF;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 6px 20px rgba(225, 48, 108, 0.5);
}

.social-row a[aria-label*="Facebook"]:hover,
.social-row a[href*="facebook"]:hover {
  background: #1877F2;
  border-color: #1877F2;
  color: #FFFFFF;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 6px 20px rgba(24, 119, 242, 0.5);
}

.social-row a[aria-label*="TikTok"]:hover,
.social-row a[href*="tiktok"]:hover {
  background: #000000;
  border-color: #FE2C55;
  color: #FE2C55;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 6px 20px rgba(254, 44, 85, 0.5);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.68);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.75);
}

.footer-contact-item i,
.footer-contact-item .ic {
  width: 18px;
  text-align: center;
  color: var(--amber);
}

.footer-top {
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-left p {
  margin: 0;
}

.footer-bottom-left .powered-by {
  margin-top: 4px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom-left .powered-by a {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-bottom-left .powered-by a:hover {
  color: var(--amber);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
  margin-left: 20px;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: var(--white);
}

/* ===================================================================
   Page Hero (Contact / Pricing / Resources)
   =================================================================== */
.page-hero {
  background: radial-gradient(circle at 85% 15%, rgba(37, 99, 235, 0.14) 0%, transparent 45%),
              radial-gradient(circle at 15% 85%, rgba(245, 158, 11, 0.12) 0%, transparent 45%),
              var(--paper);
  padding: 76px 0 0;
  position: relative;
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}

.page-hero .container {
  padding-bottom: 52px;
  position: relative;
  z-index: 1;
}

.page-hero .eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-dark);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 6px 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.06);
}

.page-hero .eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 6px var(--amber);
}

.page-hero h1 {
  color: var(--ink);
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1.1rem;
  max-width: 54ch;
  line-height: 1.6;
}

.wave-divider {
  line-height: 0;
  position: relative;
  z-index: 1;
}

.wave-divider svg {
  width: 100%;
  height: 48px;
  display: block;
}

/* ---------- Contact Page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 52px;
  align-items: start;
}

.contact-info h3,
.contact-form h3 {
  margin-bottom: 20px;
}

.location-item h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
  margin-bottom: 12px;
}

.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: 14px;
  box-shadow: var(--shadow-sm);
}

.map-container iframe {
  width: 100%;
  height: 230px;
  border: 0;
  display: block;
}

.mt-30 {
  margin-top: 32px;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--ink);
  background: var(--white);
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-success { color: var(--green); }
.form-error { color: #DC2626; }

.contact-shortcuts {
  display: flex;
  gap: 14px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.shortcut-card {
  flex: 1;
  min-width: 170px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  background: var(--white);
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

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

.shortcut-card .ic {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.shortcut-card strong {
  display: block;
  font-size: 0.93rem;
  color: var(--ink);
}

.shortcut-card span {
  font-size: 0.84rem;
  color: var(--ink-soft);
}

/* ---------- Pricing Page ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}

.pricing-grid-2col {
  grid-template-columns: 1.1fr 0.9fr;
}

.price-card {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  position: relative;
}

.price-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.price-card.featured {
  border-color: var(--blue);
  box-shadow: 0 12px 36px -6px rgba(37, 99, 235, 0.2);
}

.price-card .plan-badge {
  position: absolute;
  top: -14px;
  right: 28px;
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%);
  color: var(--blue-deep);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 12px var(--amber-glow);
}

.price-card .plan-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin-bottom: 8px;
}

.price-card .plan-price {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin: 12px 0 6px;
}

.price-card .plan-price span {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--ink-soft);
}

.price-card .plan-desc {
  font-size: 0.94rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.price-card ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  flex: 1;
}

.price-card ul li {
  font-size: 0.93rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.5;
}

.price-card ul li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.45;
  flex-shrink: 0;
}

.pricing-faq {
  margin-top: 76px;
}

.faq-item {
  border-bottom: 1px solid var(--line-soft);
  padding: 22px 0;
}

.faq-item h4 {
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
}

.faq-item p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- Resources Section ---------- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.resource-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: all 0.25s ease;
}

.resource-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: var(--shadow-hover);
}

.resource-card .tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* ===================================================================
   WhatsApp Float Button
   =================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 300;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  animation: pulse-ring 3s infinite;
  transition: transform 0.25s ease, background 0.25s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background: linear-gradient(135deg, #28E16D 0%, #14A090 100%);
}

/* ===================================================================
   Legal Pages (Privacy Policy & Terms of Service Trust Styling)
   =================================================================== */
.legal-page {
  background: var(--paper);
}

.legal-container {
  max-width: 840px;
  margin: 0 auto;
}

.legal-trust-banner {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: linear-gradient(135deg, var(--blue-deep) 0%, #121B3E 100%);
  color: var(--white);
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  margin-bottom: 36px;
  border: 1px solid rgba(37, 99, 235, 0.3);
  box-shadow: 0 14px 36px -8px rgba(9, 14, 38, 0.25);
  position: relative;
  overflow: hidden;
}

.legal-trust-banner::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.15));
  pointer-events: none;
}

.legal-trust-banner .banner-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.18);
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  flex-shrink: 0;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.legal-trust-banner h4 {
  color: var(--white);
  font-size: 1.18rem;
  margin-bottom: 6px;
  font-family: var(--font-body);
}

.legal-trust-banner p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

.legal-card {
  display: flex;
  gap: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-top-color 0.25s ease;
}

.legal-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-top-color: var(--amber);
}

.legal-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.legal-card h3 {
  font-size: 1.28rem;
  margin-bottom: 10px;
  color: var(--ink);
}

.legal-card p {
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}

.legal-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-list li {
  font-size: 0.94rem;
  color: var(--ink-soft);
  line-height: 1.6;
  position: relative;
  padding-left: 24px;
}

.legal-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--green);
  font-weight: 700;
  font-size: 0.88rem;
}

.legal-email-link {
  color: var(--blue);
  font-weight: 600;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legal-email-link:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

/* ===================================================================
   Responsive Media Queries
   =================================================================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 480px; margin: 0 auto; }
  .pillars-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .role-panel { grid-template-columns: 1fr; padding: 32px; }
  .role-panel .role-visual { order: -1; }
  .pricing-grid, .pricing-grid-2col { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .resource-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}

@media (max-width: 760px) {
  .navbar { padding: 12px 20px; }
  .logo-wordmark { font-size: 1.1rem; }
  
  .nav-menu-wrap {
    position: fixed;
    inset: 64px 0 0 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    justify-content: flex-start;
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
  }

  .nav-menu-wrap.open { transform: translateX(0); }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links > li { border-bottom: 1px solid var(--line-soft); }
  .nav-links > li > a, .nav-links > li > button.nav-top-link { width: 100%; justify-content: space-between; padding: 16px 8px; font-size: 1.02rem; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; display: none; padding: 0 0 12px 10px; min-width: 0; background: transparent; }
  .has-dropdown.open .dropdown { display: block; }
  .nav-right { flex-direction: column; align-items: stretch; margin: 20px 0 0; gap: 12px; }
  .nav-right .btn { width: 100%; justify-content: center; padding: 14px 22px; }
  .hamburger { display: flex; }

  .container { padding: 0 20px; }
  .section { padding: 56px 0; }
  .section-tight { padding: 40px 0; }
  h1 { font-size: clamp(2rem, 7.5vw, 2.5rem); }
  h2 { font-size: clamp(1.55rem, 5.5vw, 1.9rem); }
  .hero { padding: 44px 0 32px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .mock-frame { margin: 0 10px; }
  .hero-visual { padding: 6px 18px 40px 0; }
  .mock-device-label { font-size: 0.62rem; padding: 3px 9px; top: -10px; left: 14px; }
  .mock-frame-mobile { width: 114px; right: -4px; bottom: -6px; padding: 8px 6px 12px; border-radius: 20px; }
  .mock-frame-mobile .mock-screen { padding: 9px 8px; border-radius: 12px; }
  .mock-frame-mobile .mock-title { font-size: 0.52rem; margin-bottom: 6px; }
  .mock-stat-row-mobile { gap: 4px; }
  .mock-frame-mobile .mock-stat { padding: 6px; }
  .mock-frame-mobile .mock-stat .num { font-size: 0.68rem; }
  .mock-frame-mobile .mock-stat .lbl { font-size: 0.48rem; }
  .mock-bars-mobile { height: 32px; padding: 6px; gap: 3px; }
  .mock-stat-row { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .mock-stat { padding: 9px; }
  .mock-stat .num { font-size: 0.92rem; }
  .mock-float { padding: 10px 12px; font-size: 0.76rem; max-width: 75%; }
  .mock-float strong { font-size: 0.8rem; }
  .mock-float.float-1 { top: -14px; right: -6px; }
  .mock-float.float-2 { bottom: -14px; left: -6px; }

  .trust-row { flex-direction: column; align-items: flex-start; gap: 24px; }
  .trust-chips { width: 100%; }
  .trust-chip { flex: 1; min-width: 0; padding: 12px 14px; }

  .pillar-card { padding: 28px 22px; }
  .role-tabs { gap: 6px; width: 100%; max-width: none; overflow-x: auto; }
  .role-tab { padding: 10px 16px; font-size: 0.88rem; flex: 1; text-align: center; white-space: nowrap; }
  .role-panel { padding: 24px; gap: 28px; }

  .security-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .closer { padding: 64px 0; }
  .closer-actions { flex-direction: column; align-items: stretch; }
  .closer-actions .btn { width: 100%; justify-content: center; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom a { margin-left: 0; margin-right: 20px; }

  .contact-form { padding: 24px; }
  .contact-shortcuts { flex-direction: column; }
  .price-card { padding: 28px 24px; }

  .whatsapp-float { width: 52px; height: 52px; bottom: 20px; right: 20px; font-size: 1.4rem; }
}

@media (max-width: 380px) {
  .mock-stat-row { grid-template-columns: repeat(3, 1fr); }
  .mock-stat .lbl { font-size: 0.6rem; }
  .trust-chips { flex-direction: column; }
  .mock-frame-mobile { display: none; }
  .mock-device-label { display: none; }
}
