:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #0f172a;
  --muted: #64748b;
  --soft: #f8fafc;
  --border: #e2e8f0;
  --gradient: linear-gradient(135deg, #eff6ff 0%, #ffffff 55%, #e0f2fe 100%);
  /* Logo palette: red · amber · green · blue */
  --brand-red: #e31c23;
  --brand-red-dark: #b9141a;
  --brand-amber: #f0a500;
  --brand-amber-dark: #d48900;
  --brand-green: #1faa59;
  --brand-green-dark: #168a47;
  --brand-blue: #2563eb;
  --brand-blue-dark: #1d4ed8;
  /* Fixed navbar height (slim logo bar) */
  --site-header-height: 72px;
}

html {
  scroll-behavior: smooth;
}

body {
  color: #1e293b;
  font-family: "Nunito", "Segoe UI", sans-serif;
  font-weight: 600;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand,
.directory-card-title,
.punchline-copy h2,
.premium-process-title,
.auth-brand-content h1,
.auth-card-title,
.directory-hero-copy h1,
.punchline-band-title {
  font-family: "Outfit", "Nunito", sans-serif;
  font-weight: 700;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
}

.navbar {
  min-height: 64px;
}

.navbar-brand {
  align-items: center;
  display: inline-flex;
  padding: 0;
}

.brand-logo {
  display: block;
  height: 40px;
  max-width: 180px;
  object-fit: contain;
  width: auto;
}

.brand-logo-badge {
  align-items: center;
  background: linear-gradient(135deg, rgba(79, 70, 229, .16) 0%, rgba(6, 182, 212, .14) 100%);
  border: 1px solid rgba(79, 70, 229, .18);
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(79, 70, 229, .1);
  display: inline-flex;
  height: 48px;
  padding: 6px 10px;
}

main {
  padding-top: var(--site-header-height);
}

.section {
  padding: 88px 0;
}

.page-offset {
  padding-top: 120px;
}

.bg-soft {
  background: var(--soft);
}

.hero-section {
  background: var(--gradient);
  overflow: hidden;
  padding: 64px 0 96px;
  position: relative;
}

.hero-dark {
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
  color: #fff;
}

.hero-home {
  min-height: 620px;
  padding-top: 56px;
}

.hero-section h1 {
  color: var(--secondary);
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.02;
  margin-bottom: 1.5rem;
}

.hero-dark h1,
.bg-primary h2 {
  color: #fff;
}

.hero-section h1 span {
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  background: rgba(37, 99, 235, .1);
  border-radius: 999px;
  color: var(--primary);
  display: inline-flex;
  font-weight: 700;
  margin-bottom: 1rem;
  padding: .45rem 1rem;
}

.hero-dark .eyebrow {
  background: rgba(255, 255, 255, .14);
  color: #bfdbfe;
}

.lead {
  color: var(--muted);
}

.hero-dark .lead {
  color: rgba(255, 255, 255, .82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-stats div,
.mini-card,
.feature-card,
.module-card,
.pricing-card,
.district-card,
.blog-card,
.client-logo-card,
.benefit-card,
.process-card,
.content-card,
.faq-item,
.card-form,
.integration-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
}

.hero-stats div {
  min-width: 132px;
  padding: 1rem;
}

.hero-stats strong {
  color: var(--primary);
  display: block;
  font-size: 1.7rem;
  line-height: 1;
}

.hero-stats small {
  color: var(--muted);
  display: block;
  font-weight: 600;
  margin-top: .35rem;
}

.hero-dark .hero-stats div {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .16);
}

.hero-dark .hero-stats small,
.hero-dark .hero-stats strong {
  color: #fff;
}

.hero-card {
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 32px;
  box-shadow: 0 28px 70px rgba(37, 99, 235, .16);
  padding: 2rem;
}

.hero-module-card {
  background:
    radial-gradient(circle at 90% 10%, rgba(37, 99, 235, .18), transparent 26%),
    rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  overflow: hidden;
  position: relative;
}

.hero-module-card::after {
  background: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(6, 182, 212, .08));
  border-radius: 999px;
  bottom: -90px;
  content: "";
  height: 190px;
  position: absolute;
  right: -80px;
  width: 190px;
}

.hero-module-header {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.hero-module-header h2 {
  color: var(--secondary);
  font-weight: 850;
  margin-bottom: 0;
}

.hero-module-header > i {
  align-items: center;
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  border-radius: 20px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 2rem;
  height: 64px;
  justify-content: center;
  width: 64px;
}

.about-hero-card {
  background:
    radial-gradient(circle at 12% 15%, rgba(37, 99, 235, .16), transparent 32%),
    rgba(255, 255, 255, .94);
}

.about-hero-card .hero-stats {
  gap: 1.15rem;
}

.about-hero-card .hero-stats div {
  min-width: 148px;
}

.about-hero-card .about-stat-highlight {
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .22), transparent 32%),
    linear-gradient(135deg, #0f172a 0%, #1d4ed8 60%, #0891b2 100%);
  border-color: rgba(255, 255, 255, .32);
  box-shadow: 0 24px 70px rgba(37, 99, 235, .25);
  flex-basis: 100%;
  padding: 1.35rem;
}

.about-hero-card .about-stat-highlight strong,
.about-hero-card .about-stat-highlight small {
  color: #fff;
}

.about-hero-card .about-stat-highlight strong {
  font-size: 2.6rem;
}

.hero-module-kicker {
  color: var(--primary);
  display: block;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  margin-bottom: .35rem;
  text-transform: uppercase;
}

.compact {
  margin-top: 0;
}

.mini-card {
  align-items: center;
  color: var(--secondary);
  display: flex;
  gap: .75rem;
  height: 100%;
  padding: 1rem;
}

.mini-card i {
  color: var(--primary);
  font-size: 1.7rem;
}

.mini-card span {
  color: var(--muted);
  display: block;
  font-size: .9rem;
}

.hero-module-link {
  align-items: center;
  background: rgba(255, 255, 255, .88);
  border-color: rgba(37, 99, 235, .1);
  gap: .85rem;
  min-height: 86px;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  z-index: 1;
}

.hero-module-link:hover {
  border-color: rgba(37, 99, 235, .35);
  box-shadow: 0 18px 42px rgba(37, 99, 235, .12);
  transform: translateY(-4px);
}

.module-link-icon {
  align-items: center;
  background: rgba(37, 99, 235, .1);
  border-radius: 16px;
  color: var(--primary);
  display: inline-flex !important;
  flex: 0 0 auto;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.module-link-icon i {
  font-size: 1.6rem;
}

.hero-module-link strong {
  color: var(--secondary);
  display: block;
  font-size: .98rem;
  font-weight: 850;
  line-height: 1.25;
}

.hero-module-link small {
  color: var(--muted);
  display: block;
  font-size: .78rem;
  font-weight: 700;
  margin-top: .15rem;
}

.client-section {
  background:
    radial-gradient(circle at 8% 18%, rgba(37, 99, 235, .1), transparent 28%),
    radial-gradient(circle at 92% 10%, rgba(6, 182, 212, .12), transparent 28%),
    #fff;
}

.client-section-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, .96) 0%, rgba(248, 250, 252, .96) 100%);
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 34px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .1);
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3rem);
  position: relative;
}

.client-section-panel::before {
  background: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(6, 182, 212, .08));
  border-radius: 999px;
  content: "";
  height: 260px;
  position: absolute;
  right: -90px;
  top: -120px;
  width: 260px;
}

.client-section-panel > * {
  position: relative;
  z-index: 1;
}

.client-section-panel h2 {
  color: var(--secondary);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 850;
  letter-spacing: -.03em;
}

.client-section-panel p {
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 0;
  max-width: 760px;
}

.client-trust-stats {
  display: grid;
  gap: .8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.client-trust-stats div {
  background: #fff;
  border: 1px solid rgba(37, 99, 235, .12);
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
  padding: 1rem;
  text-align: center;
}

.client-trust-stats strong {
  color: var(--primary);
  display: block;
  font-size: 1.8rem;
  line-height: 1;
}

.client-trust-stats span {
  color: var(--muted);
  display: block;
  font-size: .82rem;
  font-weight: 800;
  margin-top: .35rem;
}

.client-logo-marquee {
  overflow: hidden;
  position: relative;
}

.client-logo-marquee::before,
.client-logo-marquee::after {
  content: "";
  height: 100%;
  pointer-events: none;
  position: absolute;
  top: 0;
  width: 120px;
  z-index: 2;
}

.client-logo-marquee::before {
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
  left: 0;
}

.client-logo-marquee::after {
  background: linear-gradient(270deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
  right: 0;
}

.client-logo-track {
  animation: client-logo-marquee 34s linear infinite;
  display: flex;
  gap: 1rem;
  width: max-content;
}

.client-logo-marquee:hover .client-logo-track {
  animation-play-state: paused;
}

@keyframes client-logo-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - .5rem));
  }
}

.client-logo-card {
  align-items: center;
  background: rgba(255, 255, 255, .92);
  display: flex;
  flex: 0 0 210px;
  justify-content: center;
  min-height: 150px;
  padding: 1.25rem;
  transition: transform .2s ease, box-shadow .2s ease;
}

.client-logo-card:hover {
  box-shadow: 0 22px 60px rgba(15, 23, 42, .12);
  transform: translateY(-3px);
}

.client-logo-card a,
.client-logo-card div {
  align-items: center;
  color: var(--secondary);
  display: flex;
  flex-direction: column;
  gap: .75rem;
  height: 100%;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.client-logo-card img {
  display: block;
  max-height: 72px;
  max-width: 150px;
  object-fit: contain;
}

.client-logo-card span {
  color: var(--secondary);
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.25;
}

.client-empty-state {
  margin: 0 auto;
  max-width: 720px;
  padding: 2rem;
}

.home-enquiry-section {
  background:
    radial-gradient(circle at 12% 20%, rgba(37, 99, 235, .11), transparent 30%),
    radial-gradient(circle at 90% 18%, rgba(6, 182, 212, .13), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.home-enquiry-panel {
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 58%, #0891b2 100%);
  border-radius: 34px;
  box-shadow: 0 30px 90px rgba(15, 23, 42, .18);
  color: #dbeafe;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3rem);
  position: relative;
}

.home-enquiry-panel::before {
  background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 65%);
  content: "";
  height: 320px;
  position: absolute;
  right: -110px;
  top: -130px;
  width: 320px;
}

.home-enquiry-panel .eyebrow {
  background: rgba(255, 255, 255, .16);
  color: #fff;
  position: relative;
  z-index: 1;
}

.home-enquiry-panel h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 850;
  letter-spacing: -.03em;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.home-enquiry-panel p {
  color: rgba(255, 255, 255, .84);
  font-size: 1.08rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.enquiry-benefits {
  display: grid;
  gap: .8rem;
  position: relative;
  z-index: 1;
}

.enquiry-benefits div {
  align-items: center;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px;
  display: flex;
  gap: .75rem;
  padding: .85rem 1rem;
}

.enquiry-benefits i {
  color: #bfdbfe;
  font-size: 1.45rem;
}

.enquiry-benefits span {
  color: #fff;
  font-weight: 700;
}

.enquiry-card {
  border: 0;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
  padding: clamp(1.25rem, 3vw, 2rem);
  position: relative;
  z-index: 1;
}

.enquiry-card .form-label {
  color: var(--secondary);
  font-weight: 750;
}

.enquiry-card .form-control,
.enquiry-card .input-group-text {
  min-height: 48px;
}

.contact-hero {
  background:
    radial-gradient(circle at 12% 20%, rgba(37, 99, 235, .12), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(6, 182, 212, .14), transparent 26%),
    linear-gradient(180deg, #eff6ff 0%, #fff 100%);
}

.contact-form-card {
  border: 0;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .14);
  padding: clamp(1.35rem, 3vw, 2.25rem);
}

.contact-form-header {
  margin-bottom: 1.4rem;
}

.contact-form-header h2 {
  color: var(--secondary);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 850;
  letter-spacing: -.03em;
  margin-bottom: .55rem;
}

.contact-form-header p {
  color: var(--muted);
  margin-bottom: 0;
}

.contact-form-card .form-label {
  color: var(--secondary);
  font-weight: 750;
}

.contact-form-card .form-control,
.contact-form-card .input-group-text {
  min-height: 48px;
}

.contact-direct-list {
  display: grid;
  gap: .85rem;
  margin-top: 2rem;
  max-width: 460px;
}

.contact-direct-list a {
  align-items: center;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(37, 99, 235, .12);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .08);
  color: var(--secondary);
  display: flex;
  font-weight: 800;
  gap: .85rem;
  padding: .9rem 1rem;
}

.contact-direct-list i {
  align-items: center;
  background: #eff6ff;
  border-radius: 14px;
  color: var(--primary);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.25rem;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.patron-products-hero {
  background:
    radial-gradient(circle at 12% 18%, rgba(37, 99, 235, .12), transparent 30%),
    radial-gradient(circle at 88% 16%, rgba(6, 182, 212, .14), transparent 28%),
    linear-gradient(180deg, #eff6ff 0%, #fff 100%);
}

.patron-products-card {
  background:
    radial-gradient(circle at 90% 10%, rgba(37, 99, 235, .16), transparent 28%),
    rgba(255, 255, 255, .96);
}

.patron-products-card h2 {
  color: var(--secondary);
  font-weight: 850;
  letter-spacing: -.03em;
}

.patron-products-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.patron-product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
  overflow: hidden;
  padding: 1.55rem;
  position: relative;
}

.patron-product-card::after {
  background: linear-gradient(135deg, rgba(37, 99, 235, .1), rgba(6, 182, 212, .08));
  border-radius: 999px;
  content: "";
  height: 140px;
  position: absolute;
  right: -62px;
  top: -72px;
  width: 140px;
}

.patron-product-icon {
  align-items: center;
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  border-radius: 20px;
  color: #fff;
  display: inline-flex;
  font-size: 2rem;
  height: 64px;
  justify-content: center;
  margin-bottom: 1rem;
  position: relative;
  width: 64px;
  z-index: 1;
}

.patron-product-brand {
  background: #eff6ff;
  border-radius: 999px;
  color: var(--primary);
  display: inline-flex;
  font-size: .78rem;
  font-weight: 850;
  margin-bottom: .85rem;
  padding: .35rem .75rem;
  position: relative;
  z-index: 1;
}

.patron-product-card h3,
.patron-product-card p,
.patron-product-card ul {
  position: relative;
  z-index: 1;
}

.patron-product-card h3 {
  color: var(--secondary);
  font-size: 1.18rem;
  font-weight: 850;
  margin-bottom: .75rem;
}

.patron-product-card p {
  color: var(--muted);
}

.home-features-section {
  background:
    radial-gradient(circle at 8% 12%, rgba(37, 99, 235, .09), transparent 28%),
    radial-gradient(circle at 92% 30%, rgba(6, 182, 212, .12), transparent 26%),
    #fff;
}

.home-features-section h2 {
  color: var(--secondary);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 850;
  letter-spacing: -.03em;
}

.home-feature-card {
  overflow: hidden;
  padding: 2rem;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.home-feature-card::after {
  background: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(6, 182, 212, .08));
  border-radius: 999px;
  content: "";
  height: 140px;
  position: absolute;
  right: -70px;
  top: -70px;
  width: 140px;
}

.home-feature-card:hover {
  border-color: rgba(37, 99, 235, .35);
  box-shadow: 0 28px 70px rgba(37, 99, 235, .14);
  transform: translateY(-6px);
}

.home-feature-icon {
  align-items: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(6, 182, 212, .14));
  border-radius: 20px;
  color: var(--primary);
  display: inline-flex;
  font-size: 2rem;
  height: 64px;
  justify-content: center;
  margin-bottom: 1.25rem;
  position: relative;
  width: 64px;
  z-index: 1;
}

.home-feature-card h3,
.home-feature-card p {
  position: relative;
  z-index: 1;
}

.home-feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: .85rem;
}

.home-feature-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.home-cta-section {
  background: linear-gradient(180deg, #fff 0%, #eff6ff 100%);
}

.home-cta-card {
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, .28), transparent 28%),
    linear-gradient(135deg, #0f172a 0%, #1d4ed8 54%, #0891b2 100%);
  border-radius: 32px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .22);
  color: #fff;
  overflow: hidden;
  padding: clamp(2.25rem, 5vw, 4.5rem);
  position: relative;
}

.home-cta-card::after {
  background: rgba(255, 255, 255, .12);
  border-radius: 999px;
  content: "";
  height: 220px;
  position: absolute;
  right: -70px;
  top: -90px;
  width: 220px;
}

.home-cta-card .eyebrow {
  background: rgba(255, 255, 255, .16);
  color: #dbeafe;
  position: relative;
  z-index: 1;
}

.home-cta-card h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 850;
  letter-spacing: -.03em;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.home-cta-card p {
  color: rgba(255, 255, 255, .88);
  font-size: 1.15rem;
  margin: 0 auto 1.75rem;
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.home-cta-card .btn {
  box-shadow: 0 14px 35px rgba(15, 23, 42, .18);
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.city-cta-highlights,
.city-cta-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.city-cta-highlights {
  margin-bottom: 2rem;
}

.city-cta-highlights span {
  align-items: center;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  color: #eff6ff;
  display: inline-flex;
  font-weight: 750;
  gap: .45rem;
  padding: .65rem 1rem;
}

.city-cta-highlights i {
  font-size: 1.15rem;
}

.about-cta-card {
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, .3), transparent 28%),
    radial-gradient(circle at 88% 78%, rgba(125, 211, 252, .2), transparent 30%),
    linear-gradient(135deg, #0f172a 0%, #1d4ed8 50%, #0891b2 100%);
}

.feature-card,
.module-card,
.district-card,
.benefit-card,
.process-card,
.content-card,
.faq-item,
.card-form,
.integration-box {
  padding: 1.6rem;
}

.feature-card h3,
.module-card h3,
.district-card h4,
.blog-card h3,
.benefit-card h3,
.faq-item h3 {
  color: var(--secondary);
  font-size: 1.2rem;
  font-weight: 750;
}

.pricing-faq-section {
  background:
    radial-gradient(circle at 12% 10%, rgba(37, 99, 235, .08), transparent 28%),
    radial-gradient(circle at 88% 22%, rgba(6, 182, 212, .1), transparent 26%),
    var(--soft);
}

.faq-search {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
  display: flex;
  gap: .75rem;
  margin: 0 auto;
  max-width: 840px;
  padding: 1rem;
}

.faq-search .form-control {
  min-height: 48px;
}

.faq-result-count {
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 1rem;
}

.pricing-faq-section .faq-item {
  border-color: rgba(37, 99, 235, .12);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.pricing-faq-section .faq-item:hover {
  border-color: rgba(37, 99, 235, .32);
  box-shadow: 0 24px 60px rgba(37, 99, 235, .12);
  transform: translateY(-4px);
}

.faq-answer {
  color: var(--muted);
}

.faq-answer > :last-child {
  margin-bottom: 0;
}

.faq-answer h1,
.faq-answer h2,
.faq-answer h3,
.faq-answer h4,
.faq-answer h5,
.faq-answer h6 {
  color: var(--secondary);
  font-size: 1rem;
  font-weight: 700;
  margin-top: .75rem;
}

.faq-pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  margin-top: 2rem;
}

.faq-page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.modules-showcase-section {
  background:
    radial-gradient(circle at 8% 10%, rgba(37, 99, 235, .09), transparent 30%),
    radial-gradient(circle at 92% 16%, rgba(6, 182, 212, .12), transparent 28%),
    #fff;
}

.modules-section-header {
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 58%, #0891b2 100%);
  border-radius: 34px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .18);
  color: #dbeafe;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3rem);
  position: relative;
}

.modules-section-header::after {
  background: rgba(255, 255, 255, .12);
  border-radius: 999px;
  content: "";
  height: 240px;
  position: absolute;
  right: -80px;
  top: -110px;
  width: 240px;
}

.modules-section-header > * {
  position: relative;
  z-index: 1;
}

.modules-section-header .eyebrow {
  background: rgba(255, 255, 255, .16);
  color: #fff;
}

.modules-section-header h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 850;
  letter-spacing: -.03em;
}

.modules-section-header p {
  color: rgba(255, 255, 255, .84);
  font-size: 1.1rem;
  margin-bottom: 0;
  max-width: 760px;
}

.modules-header-stats {
  display: grid;
  gap: .8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.modules-header-stats div {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 20px;
  padding: 1rem;
  text-align: center;
}

.modules-header-stats strong {
  color: #fff;
  display: block;
  font-size: 1.8rem;
  line-height: 1;
}

.modules-header-stats span {
  color: #dbeafe;
  display: block;
  font-size: .82rem;
  font-weight: 800;
  margin-top: .35rem;
}

.modules-showcase-card {
  overflow: hidden;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.modules-showcase-card::after {
  background: linear-gradient(135deg, rgba(37, 99, 235, .1), rgba(6, 182, 212, .08));
  border-radius: 999px;
  content: "";
  height: 150px;
  position: absolute;
  right: -75px;
  top: -75px;
  width: 150px;
}

.modules-showcase-card > * {
  position: relative;
  z-index: 1;
}

.modules-showcase-card:hover {
  border-color: rgba(37, 99, 235, .32);
  box-shadow: 0 28px 70px rgba(37, 99, 235, .14);
  transform: translateY(-5px);
}

.module-icon {
  align-items: center;
  background: rgba(37, 99, 235, .1);
  border-radius: 18px;
  color: var(--primary);
  display: inline-flex;
  font-size: 2rem;
  height: 58px;
  justify-content: center;
  margin-bottom: 1rem;
  width: 58px;
}

.check-list,
.feature-list,
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li,
.feature-list li {
  margin-bottom: .5rem;
  padding-left: 1.6rem;
  position: relative;
}

.check-list li::before {
  color: #16a34a;
  content: "\2713";
  font-weight: 800;
  left: 0;
  position: absolute;
}

.trust-row {
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: center;
  padding: 1rem;
}

.trust-row i {
  color: var(--primary);
  margin-right: .35rem;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  position: relative;
}

.pricing-card .btn {
  margin-top: auto;
}

.pricing-card.popular {
  border-color: var(--primary);
  transform: translateY(-8px);
}

.popular-badge {
  background: var(--primary);
  border-radius: 999px;
  color: #fff;
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding: .35rem .8rem;
}

.price {
  color: var(--secondary);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  margin: 1rem 0 .5rem;
}

.price span,
.price small {
  color: var(--muted);
  font-size: 1rem;
}

.setup,
.muted {
  color: var(--muted);
}

.process-card span {
  align-items: center;
  background: var(--primary);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 1.25rem;
  font-weight: 800;
  height: 52px;
  justify-content: center;
  margin-bottom: 1rem;
  width: 52px;
}

.about-process-section {
  background:
    radial-gradient(circle at 12% 16%, rgba(37, 99, 235, .1), transparent 28%),
    radial-gradient(circle at 88% 20%, rgba(6, 182, 212, .12), transparent 26%),
    linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.about-process-grid {
  counter-reset: process-step;
}

.about-process-card {
  overflow: hidden;
  padding: 2rem;
  position: relative;
}

.about-process-card::after {
  background: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(6, 182, 212, .08));
  border-radius: 999px;
  content: "";
  height: 150px;
  position: absolute;
  right: -64px;
  top: -70px;
  width: 150px;
}

.about-process-card span {
  box-shadow: 0 14px 30px rgba(37, 99, 235, .22);
  position: relative;
  z-index: 1;
}

.about-process-card i {
  align-items: center;
  background: #eff6ff;
  border-radius: 18px;
  color: var(--primary);
  display: inline-flex;
  font-size: 2rem;
  height: 58px;
  justify-content: center;
  margin-bottom: 1.1rem;
  position: relative;
  width: 58px;
  z-index: 1;
}

.about-process-card h3,
.about-process-card p {
  position: relative;
  z-index: 1;
}

.about-process-card h3 {
  font-size: 1.2rem;
  margin-bottom: .65rem;
}

.about-process-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.division-title {
  border-left: 5px solid var(--primary);
  padding-left: 1rem;
}

.district-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 1rem;
}

.district-card dt {
  color: var(--muted);
}

.district-card dd {
  font-weight: 700;
  margin-bottom: .25rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.tag-list span {
  background: rgba(37, 99, 235, .1);
  border-radius: 999px;
  color: var(--primary);
  font-size: .78rem;
  font-weight: 700;
  padding: .3rem .65rem;
}

.cms-content {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
  margin: 0 auto;
  max-width: 1040px;
  padding: clamp(1.5rem, 3vw, 3rem);
}

.cms-content h1,
.cms-content h2,
.cms-content h3 {
  color: var(--secondary);
  margin-top: 1.25rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.blog-toolbar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
  padding: 1.25rem;
}

.blog-search {
  display: flex;
  gap: .75rem;
}

.blog-search .form-control {
  min-height: 48px;
}

.blog-category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1rem;
}

.category-filter-chip {
  align-items: center;
  background: rgba(37, 99, 235, .08);
  border: 1px solid rgba(37, 99, 235, .14);
  border-radius: 999px;
  color: var(--primary);
  display: inline-flex;
  font-size: .9rem;
  font-weight: 700;
  gap: .45rem;
  padding: .45rem .85rem;
}

.category-filter-chip span {
  align-items: center;
  background: #fff;
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: .75rem;
  height: 22px;
  justify-content: center;
  min-width: 22px;
  padding: 0 .35rem;
}

.category-filter-chip.active {
  background: var(--primary);
  color: #fff;
}

.blog-result-count {
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 1rem;
}

.blog-card-media {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  display: block;
}

.blog-card-image {
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  width: 100%;
}

.blog-card-placeholder {
  object-fit: contain;
  padding: 2rem;
}

.blog-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.6rem;
}

.blog-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.blog-category {
  align-self: flex-start;
  background: rgba(37, 99, 235, .1);
  border-radius: 999px;
  color: var(--primary);
  font-size: .78rem;
  font-weight: 700;
  margin-bottom: .75rem;
  padding: .3rem .65rem;
}

.blog-category:hover {
  background: rgba(37, 99, 235, .16);
}

.blog-meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: .9rem;
  gap: .5rem 1rem;
  margin-bottom: 1rem;
}

.blog-pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  margin-top: 2rem;
}

.blog-page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.page-number {
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--secondary);
  display: inline-flex;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  min-width: 42px;
  padding: 0 .75rem;
}

.page-number.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.blog-resource-content {
  background: transparent;
  border: 0;
  box-shadow: none;
  max-width: none;
  padding: 0;
}

.blog-resource-panel {
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 56%, #06b6d4 100%);
  border-radius: 32px;
  color: #dbeafe;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3rem);
  position: relative;
}

.blog-resource-panel::before {
  background: radial-gradient(circle, rgba(255, 255, 255, .24), transparent 64%);
  content: "";
  height: 280px;
  position: absolute;
  right: -90px;
  top: -120px;
  width: 280px;
}

.blog-resource-header {
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.blog-resource-kicker {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: 1rem;
  padding: .4rem .85rem;
  text-transform: uppercase;
}

.blog-resource-header h2 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin: 0 0 1rem;
}

.blog-resource-header p {
  color: rgba(255, 255, 255, .82);
  font-size: 1.08rem;
  margin: 0;
}

.blog-resource-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.blog-resource-card {
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .18);
  color: var(--secondary);
  padding: 1.35rem;
}

.blog-resource-icon {
  align-items: center;
  background: rgba(37, 99, 235, .1);
  border-radius: 16px;
  color: var(--primary);
  display: inline-flex;
  font-weight: 800;
  height: 48px;
  justify-content: center;
  margin-bottom: 1rem;
  width: 48px;
}

.blog-resource-card h3 {
  color: var(--secondary);
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 .6rem;
}

.blog-resource-card p {
  color: var(--muted);
  margin: 0;
}

.footer-modern {
  background: #0f172a;
  color: #cbd5e1;
  padding: 70px 0 28px;
}

.footer-logo {
  background: #fff;
  border-radius: 14px;
  display: block;
  height: 54px;
  max-width: 220px;
  object-fit: contain;
  padding: .35rem .6rem;
  width: auto;
}

.footer-modern a {
  color: #dbeafe;
}

.footer-modern a:hover {
  color: #fff;
}

.footer-links li {
  margin-bottom: .55rem;
}

.footer-stats {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.footer-stats span {
  background: rgba(255, 255, 255, .08);
  border-radius: 12px;
  padding: .6rem .75rem;
}

.newsletter-actions {
  display: grid;
  gap: .6rem;
  grid-template-columns: 1fr 1fr;
}

.newsletter-actions .btn {
  font-weight: 800;
}

.network-home-card {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .06);
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: space-between;
  padding: 1.5rem 1.75rem;
}

.network-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.network-home-strip {
  padding-top: 0;
}

.network-hero .hero-actions {
  gap: .75rem;
}

.network-section-title {
  color: var(--secondary);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.03em;
}

.network-audience-section {
  padding-top: 72px;
}

.network-audience-card {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .06);
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  scroll-margin-top: 108px;
}

.network-audience-card h2,
.network-audience-card h3 {
  color: var(--secondary);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: .75rem;
}

.network-audience-card p {
  color: var(--muted);
}

.network-audience-icon {
  align-items: center;
  border-radius: 18px;
  display: inline-flex;
  font-size: 1.8rem;
  height: 58px;
  justify-content: center;
  margin-bottom: 1rem;
  width: 58px;
}

.network-audience-card-teacher .network-audience-icon {
  background: #eff6ff;
  color: #2563eb;
}

.network-audience-card-parent .network-audience-icon {
  background: #ecfdf5;
  color: #059669;
}

.network-audience-card-school .network-audience-icon {
  background: #fff7ed;
  color: #ea580c;
}

.network-audience-card .check-list {
  flex: 1;
  margin: 1rem 0 1.25rem;
}

.network-audience-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: .75rem;
}

.network-audience-link {
  color: var(--primary);
  font-size: .92rem;
  font-weight: 700;
}

/* Homepage punchline bands — logo colors */
.punchline-band {
  padding: 72px 0 0;
}

.punchline-band-intro {
  margin-bottom: 2.5rem;
}

.punchline-band-title {
  color: var(--secondary);
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.1;
  margin-bottom: .75rem;
}

.punchline-stack {
  display: grid;
  gap: 0;
}

.punchline-section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  position: relative;
  scroll-margin-top: 96px;
}

.punchline-section::before {
  content: "";
  inset: 0;
  opacity: .9;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.punchline-section .container {
  position: relative;
  z-index: 1;
}

.punchline-grid {
  align-items: center;
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, .65fr);
}

.punchline-grid-flip {
  grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr);
}

.punchline-grid-flip .punchline-copy {
  order: 2;
}

.punchline-grid-flip .punchline-visual {
  order: 1;
}

.punchline-role {
  border-radius: 999px;
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  margin-bottom: 1rem;
  padding: .4rem .9rem;
  text-transform: uppercase;
}

.punchline-copy h2 {
  font-size: clamp(1.7rem, 3.8vw, 2.65rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.12;
  margin-bottom: .85rem;
}

.punchline-line {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.35;
  margin-bottom: .75rem;
}

.punchline-support {
  font-size: 1.02rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  max-width: 36rem;
  opacity: .92;
}

.punchline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.punchline-btn-solid,
.punchline-btn-ghost {
  align-items: center;
  border-radius: 14px;
  display: inline-flex;
  font-weight: 800;
  min-height: 48px;
  padding: .7rem 1.25rem;
}

.punchline-btn-solid {
  border: none;
  color: #fff !important;
}

.punchline-btn-ghost {
  background: transparent;
  font-weight: 700;
}

.punchline-visual {
  display: flex;
  justify-content: center;
}

.punchline-badge {
  align-items: center;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 28px;
  box-shadow: 0 24px 50px rgba(15, 23, 42, .18);
  display: flex;
  flex-direction: column;
  gap: .35rem;
  justify-content: center;
  min-height: 200px;
  padding: 2rem 1.5rem;
  text-align: center;
  width: min(100%, 240px);
}

.punchline-badge i {
  font-size: 2.4rem;
  margin-bottom: .35rem;
}

.punchline-badge strong {
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -.03em;
}

.punchline-badge span {
  font-size: .95rem;
  font-weight: 600;
  opacity: .9;
}

/* Teachers — logo red */
.punchline-teacher {
  background:
    radial-gradient(circle at 88% 20%, rgba(240, 165, 0, .22), transparent 28%),
    linear-gradient(135deg, #fff5f5 0%, #ffe4e6 48%, #fff 100%);
  color: #7f1d1d;
}

.punchline-teacher .punchline-role {
  background: rgba(227, 28, 35, .12);
  color: var(--brand-red);
}

.punchline-teacher h2 {
  color: #7f1d1d;
}

.punchline-teacher .punchline-line {
  color: var(--brand-red);
}

.punchline-teacher .punchline-support {
  color: #9f1239;
}

.punchline-teacher .punchline-btn-solid {
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
  box-shadow: 0 14px 28px rgba(227, 28, 35, .28);
}

.punchline-teacher .punchline-btn-solid:hover {
  background: var(--brand-red-dark);
  color: #fff !important;
}

.punchline-teacher .punchline-btn-ghost {
  border: 1.5px solid rgba(227, 28, 35, .35);
  color: var(--brand-red) !important;
}

.punchline-teacher .punchline-btn-ghost:hover {
  background: rgba(227, 28, 35, .08);
  color: var(--brand-red-dark) !important;
}

.punchline-teacher .punchline-badge {
  background: linear-gradient(160deg, rgba(227, 28, 35, .95), rgba(185, 20, 26, .92));
  color: #fff;
}

/* Parents — logo blue + amber accent */
.punchline-parent {
  background:
    radial-gradient(circle at 12% 30%, rgba(240, 165, 0, .18), transparent 30%),
    linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #f0f9ff 100%);
  color: #1e3a8a;
}

.punchline-parent .punchline-role {
  background: rgba(37, 99, 235, .12);
  color: var(--brand-blue);
}

.punchline-parent h2 {
  color: #1e3a8a;
}

.punchline-parent .punchline-line {
  color: var(--brand-blue-dark);
}

.punchline-parent .punchline-support {
  color: #1e40af;
}

.punchline-parent .punchline-btn-solid {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  box-shadow: 0 14px 28px rgba(37, 99, 235, .28);
}

.punchline-parent .punchline-btn-solid:hover {
  background: var(--brand-blue-dark);
  color: #fff !important;
}

.punchline-parent .punchline-btn-ghost {
  border: 1.5px solid rgba(37, 99, 235, .35);
  color: var(--brand-blue) !important;
}

.punchline-parent .punchline-btn-ghost:hover {
  background: rgba(37, 99, 235, .08);
  color: var(--brand-blue-dark) !important;
}

.punchline-parent .punchline-badge {
  background: linear-gradient(160deg, rgba(37, 99, 235, .95), rgba(29, 78, 216, .92));
  color: #fff;
}

.punchline-parent .punchline-badge strong {
  color: #fde68a;
}

/* Schools — logo green */
.punchline-school {
  background:
    radial-gradient(circle at 90% 25%, rgba(240, 165, 0, .16), transparent 28%),
    linear-gradient(135deg, #ecfdf5 0%, #d1fae5 48%, #f0fdf4 100%);
  color: #14532d;
}

.punchline-school .punchline-role {
  background: rgba(31, 170, 89, .14);
  color: var(--brand-green-dark);
}

.punchline-school h2 {
  color: #14532d;
}

.punchline-school .punchline-line {
  color: var(--brand-green-dark);
}

.punchline-school .punchline-support {
  color: #166534;
}

.punchline-school .punchline-btn-solid {
  background: linear-gradient(135deg, var(--brand-green), var(--brand-green-dark));
  box-shadow: 0 14px 28px rgba(31, 170, 89, .28);
}

.punchline-school .punchline-btn-solid:hover {
  background: var(--brand-green-dark);
  color: #fff !important;
}

.punchline-school .punchline-btn-ghost {
  border: 1.5px solid rgba(31, 170, 89, .4);
  color: var(--brand-green-dark) !important;
}

.punchline-school .punchline-btn-ghost:hover {
  background: rgba(31, 170, 89, .1);
  color: #14532d !important;
}

.punchline-school .punchline-badge {
  background: linear-gradient(160deg, rgba(31, 170, 89, .95), rgba(22, 138, 71, .92));
  color: #fff;
}

@media (max-width: 991px) {
  .punchline-grid,
  .punchline-grid-flip {
    grid-template-columns: 1fr;
  }

  .punchline-grid-flip .punchline-copy,
  .punchline-grid-flip .punchline-visual {
    order: unset;
  }

  .punchline-visual {
    justify-content: flex-start;
  }

  .punchline-badge {
    min-height: 140px;
    width: min(100%, 220px);
  }
}

@media (max-width: 575px) {
  .punchline-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.cta-btn-teacher {
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark)) !important;
  box-shadow: 0 12px 24px rgba(227, 28, 35, .25);
}

.cta-btn-parent {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark)) !important;
  box-shadow: 0 12px 24px rgba(37, 99, 235, .25);
}

.cta-btn-school {
  background: linear-gradient(135deg, var(--brand-green), var(--brand-green-dark)) !important;
  box-shadow: 0 12px 24px rgba(31, 170, 89, .25);
}

.network-steps {
  color: var(--muted);
  display: grid;
  gap: .85rem;
  margin: 0;
  padding-left: 1.1rem;
}

.network-steps strong {
  color: var(--secondary);
}

.network-cta-card {
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 55%, #e0f2fe 100%);
  border: 1px solid rgba(37, 99, 235, .14);
  border-radius: 28px;
  padding: 2.5rem 1.5rem;
}

.network-cta-section {
  padding-top: 0;
}

.directory-page {
  padding: 0 0 72px;
}

.directory-page-header {
  margin-bottom: 1rem;
}

.directory-page-header h1 {
  color: var(--secondary);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: .35rem;
}

.directory-page-header .eyebrow {
  font-size: .8rem;
  margin-bottom: .6rem;
  padding: .3rem .75rem;
}

.directory-page-header .lead {
  font-size: 1rem;
  margin-bottom: 0;
}

.directory-hero {
  margin-bottom: 1.75rem;
  padding: calc(var(--site-header-height) + 1.5rem) 0 2.5rem;
  position: relative;
}

.directory-hero-teachers {
  background:
    radial-gradient(circle at 88% 18%, rgba(240, 165, 0, .22), transparent 30%),
    linear-gradient(135deg, #fff5f5 0%, #ffe4e6 42%, #fff 100%);
}

.directory-hero-schools {
  background:
    radial-gradient(circle at 88% 18%, rgba(240, 165, 0, .18), transparent 30%),
    linear-gradient(135deg, #ecfdf5 0%, #d1fae5 42%, #fff 100%);
}

.directory-hero-grid {
  align-items: center;
  display: grid;
  gap: 1.75rem;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, .55fr);
}

.directory-hero-copy .eyebrow {
  background: rgba(227, 28, 35, .1);
  color: var(--brand-red);
}

.directory-hero-schools .directory-hero-copy .eyebrow {
  background: rgba(31, 170, 89, .14);
  color: var(--brand-green-dark);
}

.directory-hero-copy h1 {
  color: #7f1d1d;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1.08;
  margin-bottom: .85rem;
}

.directory-hero-schools .directory-hero-copy h1 {
  color: #14532d;
}

.directory-hero-copy .lead {
  color: #9f1239;
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  max-width: 38rem;
}

.directory-hero-schools .directory-hero-copy .lead {
  color: #166534;
}

.directory-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.directory-hero-points span {
  align-items: center;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(227, 28, 35, .12);
  border-radius: 999px;
  color: #7f1d1d;
  display: inline-flex;
  font-size: .88rem;
  font-weight: 700;
  gap: .4rem;
  padding: .45rem .9rem;
}

.directory-hero-schools .directory-hero-points span {
  border-color: rgba(31, 170, 89, .18);
  color: #14532d;
}

.directory-hero-points i {
  color: var(--brand-red);
  font-size: 1rem;
}

.directory-hero-schools .directory-hero-points i {
  color: var(--brand-green-dark);
}

.directory-hero-aside {
  display: flex;
  justify-content: flex-end;
}

.directory-hero-badge {
  align-items: center;
  background: linear-gradient(160deg, rgba(227, 28, 35, .96), rgba(185, 20, 26, .92));
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 28px;
  box-shadow: 0 24px 50px rgba(227, 28, 35, .28);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  justify-content: center;
  min-height: 180px;
  padding: 1.75rem 1.4rem;
  text-align: center;
  width: min(100%, 220px);
}

.directory-hero-schools .directory-hero-badge {
  background: linear-gradient(160deg, rgba(31, 170, 89, .96), rgba(22, 138, 71, .92));
  box-shadow: 0 24px 50px rgba(31, 170, 89, .28);
}

.directory-hero-badge i {
  font-size: 2.2rem;
  margin-bottom: .2rem;
}

.directory-hero-badge strong {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -.03em;
}

.directory-hero-badge span {
  font-size: .92rem;
  font-weight: 600;
  opacity: .92;
}

.directory-body {
  position: relative;
  z-index: 1;
}

.directory-search-card {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .1);
  margin-bottom: 1.5rem;
  padding: 1.35rem 1.4rem;
}

.directory-search-heading {
  align-items: flex-start;
  border-bottom: 1px solid rgba(148, 163, 184, .18);
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  justify-content: space-between;
  margin-bottom: 1.15rem;
  padding-bottom: 1rem;
}

.directory-search-heading h2 {
  color: var(--secondary);
  font-weight: 850;
}

.directory-result-count {
  background: rgba(227, 28, 35, .1);
  border-radius: 999px;
  color: var(--brand-red);
  font-size: .82rem;
  font-weight: 800;
  padding: .4rem .85rem;
}

.directory-result-count-schools {
  background: rgba(31, 170, 89, .12);
  color: var(--brand-green-dark);
}

.directory-search-card .form-label {
  color: var(--secondary);
  font-size: .86rem;
  font-weight: 700;
  margin-bottom: .35rem;
}

.directory-check {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 14px;
  min-height: 50px;
  padding: .75rem 1rem;
  width: 100%;
}

.directory-search-actions {
  border-top: 1px solid rgba(148, 163, 184, .16);
  margin-top: .25rem;
  padding-top: 1rem;
}

.directory-search-submit {
  align-items: center;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
  border: none;
  border-radius: 14px;
  display: inline-flex;
  font-weight: 800;
  gap: .4rem;
  min-height: 48px;
  padding: .7rem 1.25rem;
}

.directory-search-submit:hover {
  background: var(--brand-red-dark);
}

.directory-search-submit-schools {
  background: linear-gradient(135deg, var(--brand-green), var(--brand-green-dark));
}

.directory-search-submit-schools:hover {
  background: var(--brand-green-dark);
}

.directory-location-row {
  align-items: center;
  border-top: 1px solid rgba(15, 23, 42, .08);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  margin-top: .25rem;
  padding-top: .75rem;
}

.directory-location-row small {
  margin: 0;
}

.directory-disclaimer {
  align-items: flex-start;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid rgba(240, 165, 0, .35);
  border-radius: 18px;
  color: #92400e;
  display: flex;
  gap: .75rem;
  padding: 1rem 1.15rem;
}

.directory-disclaimer i {
  color: var(--brand-amber-dark);
  flex: 0 0 auto;
  font-size: 1.35rem;
  margin-top: .1rem;
}

.directory-result-card {
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .08);
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  transition: box-shadow .2s ease;
}

.directory-result-card:hover {
  box-shadow: 0 22px 50px rgba(15, 23, 42, .14);
}

.directory-teacher-card .directory-profile-photo {
  border-color: rgba(227, 28, 35, .25);
}

.directory-teacher-card .directory-profile-photo-placeholder {
  background: linear-gradient(135deg, #fff1f2, #fecdd3);
  color: var(--brand-red);
}

.directory-school-card .directory-school-photo,
.directory-school-card .directory-profile-photo-placeholder {
  background: linear-gradient(135deg, #ecfdf5, #bbf7d0);
  border-color: rgba(31, 170, 89, .3);
  color: var(--brand-green-dark);
}

.directory-school-card .directory-card-location i {
  color: var(--brand-green-dark);
}

.directory-school-card .directory-read-more {
  color: var(--brand-green-dark);
}

.directory-school-card .directory-read-more:hover {
  color: #14532d;
}

.directory-school-card .directory-card-actions .btn-primary {
  background: linear-gradient(135deg, var(--brand-green), var(--brand-green-dark));
}

.directory-card-link {
  color: inherit;
  display: block;
  text-decoration: none;
}

.directory-card-link:hover .directory-card-title {
  color: var(--brand-green-dark);
}

.directory-school-card .directory-read-more {
  display: inline-block;
}

.directory-school-link {
  color: var(--brand-green-dark) !important;
}

.directory-badge-green {
  background: rgba(31, 170, 89, .12);
  color: var(--brand-green-dark);
}

.directory-empty-state-schools .directory-empty-icon {
  background: linear-gradient(135deg, #ecfdf5, #bbf7d0);
  color: var(--brand-green-dark);
}

.directory-page-schools .bio-dialog-kicker {
  color: var(--brand-green-dark);
}

.school-public-page .school-public-hero:not(.school-preview-hero-content) {
  background:
    radial-gradient(circle at 88% 18%, rgba(240, 165, 0, .16), transparent 30%),
    linear-gradient(135deg, #ecfdf5 0%, #d1fae5 45%, #fff 100%);
}

.school-public-page .school-public-hero:not(.school-preview-hero-content) h1,
.school-public-page .school-public-hero:not(.school-preview-hero-content) .lead,
.school-public-page .school-public-hero:not(.school-preview-hero-content) .eyebrow {
  color: #14532d;
}

.school-public-page .school-public-hero:not(.school-preview-hero-content) .eyebrow {
  background: rgba(31, 170, 89, .14);
  color: var(--brand-green-dark);
}

.school-public-page .school-public-lead {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  display: -webkit-box;
  overflow: hidden;
}

.school-public-page .school-public-contact {
  background: linear-gradient(135deg, var(--brand-green), var(--brand-green-dark));
  border: none;
  font-weight: 800;
}

.school-public-page .school-public-avatar-card .dashboard-avatar {
  background: linear-gradient(135deg, #ecfdf5, #bbf7d0);
  color: var(--brand-green-dark);
}

.school-public-side .directory-badge-green {
  background: rgba(31, 170, 89, .12);
  color: var(--brand-green-dark);
}

.directory-card-title {
  color: var(--secondary);
  font-size: 1.12rem;
  font-weight: 850;
  letter-spacing: -.02em;
  line-height: 1.25;
  margin-bottom: .25rem;
}

.directory-card-location {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.4;
}

.directory-card-location i {
  color: var(--brand-red);
  margin-right: .15rem;
}

.directory-card-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: .85rem;
}

.directory-rating {
  align-items: center;
  background: #fffbeb;
  border-radius: 999px;
  color: #b45309;
  display: inline-flex;
  font-size: .84rem;
  gap: .2rem;
  padding: .25rem .65rem;
}

.directory-rating i {
  color: var(--brand-amber);
}

.directory-distance {
  background: rgba(37, 99, 235, .08);
  border-radius: 999px;
  color: var(--brand-blue-dark);
  font-size: .82rem;
  font-weight: 700;
  padding: .25rem .65rem;
}

.directory-card-facts {
  display: grid;
  gap: .65rem;
  margin: 0 0 1rem;
}

.directory-card-facts > div {
  background: #f8fafc;
  border-radius: 14px;
  padding: .7rem .85rem;
}

.directory-card-facts dt {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  margin-bottom: .2rem;
  text-transform: uppercase;
}

.directory-card-facts dd {
  color: var(--secondary);
  font-size: .92rem;
  font-weight: 650;
  line-height: 1.4;
  margin: 0;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  overflow: hidden;
}

.directory-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: .85rem;
  max-height: 3.2rem;
  overflow: hidden;
}

.directory-badge {
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  padding: .3rem .7rem;
}

.directory-badge-success {
  background: rgba(31, 170, 89, .12);
  color: var(--brand-green-dark);
}

.directory-badge-amber {
  background: rgba(240, 165, 0, .16);
  color: #92400e;
}

.directory-badge-blue {
  background: rgba(37, 99, 235, .1);
  color: var(--brand-blue-dark);
}

.directory-card-bio-wrap {
  margin-bottom: 1rem;
}

.directory-card-bio {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: var(--muted);
  display: -webkit-box;
  font-size: .92rem;
  line-height: 1.55;
  margin-bottom: 0;
  max-height: calc(1.55em * 3);
  overflow: hidden;
}

.directory-read-more {
  background: none;
  border: 0;
  color: var(--brand-red);
  cursor: pointer;
  font-size: .86rem;
  font-weight: 800;
  margin-top: .35rem;
  padding: 0;
}

.directory-read-more:hover {
  color: var(--brand-red-dark);
  text-decoration: underline;
}

.directory-read-more[hidden] {
  display: none !important;
}

.bio-dialog[hidden] {
  display: none !important;
}

.bio-dialog {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 1.25rem;
  position: fixed;
  z-index: 2000;
}

.bio-dialog-backdrop {
  background: rgba(15, 23, 42, .55);
  inset: 0;
  position: absolute;
}

.bio-dialog-panel {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .35);
  display: flex;
  flex-direction: column;
  max-height: min(82vh, 640px);
  max-width: 560px;
  overflow: hidden;
  position: relative;
  width: 100%;
  z-index: 1;
}

.bio-dialog-header {
  align-items: flex-start;
  background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
  border-bottom: 1px solid rgba(148, 163, 184, .2);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.25rem 1.35rem;
}

.bio-dialog-kicker {
  color: var(--brand-red);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: .3rem;
  text-transform: uppercase;
}

.bio-dialog-title {
  color: var(--secondary);
  font-family: "Outfit", "Nunito", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}

.bio-dialog-close {
  align-items: center;
  background: #f1f5f9;
  border: 0;
  border-radius: 12px;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.35rem;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.bio-dialog-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.bio-dialog-body {
  overflow-y: auto;
  padding: 1.35rem 1.4rem;
}

.bio-dialog-text {
  color: #1e293b;
  font-family: "Nunito", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.75;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.bio-dialog-footer {
  background: #f8fafc;
  border-top: 1px solid rgba(148, 163, 184, .2);
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: flex-end;
  padding: 1rem 1.25rem;
}

.bio-dialog-footer .btn-primary {
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
  border: none;
}

body.bio-dialog-open {
  overflow: hidden;
}

.directory-card-footer {
  align-items: center;
  border-top: 1px solid rgba(148, 163, 184, .16);
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
}

.directory-video-link {
  align-items: center;
  color: var(--brand-red);
  display: inline-flex;
  font-size: .9rem;
  font-weight: 750;
  gap: .3rem;
}

.directory-video-link:hover {
  color: var(--brand-red-dark);
}

.directory-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.directory-card-actions .btn-primary {
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
  border: none;
  border-radius: 12px;
  font-weight: 750;
}

.directory-empty-state {
  background: rgba(255, 255, 255, .9);
  border: 1px dashed rgba(148, 163, 184, .4);
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .05);
  margin-top: .5rem;
  padding: clamp(2rem, 4vw, 3rem) 1.5rem;
  text-align: center;
}

.directory-empty-icon {
  align-items: center;
  background: linear-gradient(135deg, #fff1f2, #fecdd3);
  border-radius: 22px;
  color: var(--brand-red);
  display: inline-flex;
  font-size: 2rem;
  height: 64px;
  justify-content: center;
  margin-bottom: 1rem;
  width: 64px;
}

@media (max-width: 991px) {
  .directory-hero-grid {
    grid-template-columns: 1fr;
  }

  .directory-hero-aside {
    justify-content: flex-start;
  }

  .directory-hero-badge {
    min-height: 140px;
  }
}

@media (max-width: 575px) {
  .directory-search-submit,
  .directory-card-actions .btn {
    width: 100%;
  }

  .directory-card-footer {
    align-items: stretch;
    flex-direction: column;
  }
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
}

.footer-bottom a {
  margin-left: 1rem;
}


.form-message.success {
  color: #16a34a;
}

.form-message.error {
  color: #dc2626;
}

.dashboard-shell {
  background: #eef4ff;
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  min-height: calc(100vh - var(--site-header-height));
}

.dashboard-sidebar {
  align-self: start;
  background: #0f172a;
  color: #e2e8f0;
  max-height: calc(100vh - var(--site-header-height));
  overflow-y: auto;
  padding: 1.5rem;
  position: sticky;
  top: var(--site-header-height);
  z-index: 1020;
}

.dashboard-brand {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  gap: .9rem;
  padding-bottom: 1.25rem;
}

.dashboard-avatar {
  align-items: center;
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  border-radius: 18px;
  color: #fff;
  display: inline-flex;
  font-size: 1.7rem;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.dashboard-photo-avatar {
  overflow: hidden;
}

.dashboard-photo-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.dashboard-brand strong,
.dashboard-help-card strong {
  color: #fff;
  display: block;
}

.dashboard-brand small,
.dashboard-help-card small {
  color: #94a3b8;
  display: block;
}

.dashboard-nav {
  display: grid;
  gap: .5rem;
  margin-top: 1.5rem;
}

.dashboard-nav a {
  align-items: center;
  border-radius: 14px;
  color: #cbd5e1;
  display: flex;
  font-weight: 700;
  gap: .75rem;
  padding: .8rem .9rem;
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
  background: rgba(37, 99, 235, .22);
  color: #fff;
}

.dashboard-nav i {
  font-size: 1.25rem;
}

.dashboard-sidebar-toggle,
.dashboard-sidebar-backdrop {
  display: none;
}

.teacher-mobile-appbar {
  display: none;
}

.dashboard-help-card {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  margin-top: 1.5rem;
  padding: 1rem;
}

.dashboard-help-card span,
.dashboard-kicker,
.dashboard-stat-card span,
.dashboard-card-header span {
  color: var(--primary);
  display: block;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dashboard-main {
  padding: 2rem;
}

.dashboard-topbar,
.dashboard-card,
.dashboard-savebar,
.dashboard-stat-card {
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(226, 232, 240, .9);
  box-shadow: 0 16px 45px rgba(15, 23, 42, .08);
}

.dashboard-topbar {
  align-items: center;
  border-radius: 28px;
  display: flex;
  gap: 1.25rem;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding: 1.5rem;
}

.dashboard-topbar h1 {
  color: var(--secondary);
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  font-weight: 850;
  letter-spacing: -.035em;
  margin: .25rem 0;
}

.dashboard-topbar p,
.dashboard-savebar small {
  color: var(--muted);
  margin: 0;
}

.dashboard-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.dashboard-status {
  background: #e0f2fe;
  border-radius: 999px;
  color: #0369a1;
  font-weight: 800;
  padding: .6rem 1rem;
}

.dashboard-stat-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: 1.25rem;
}

.dashboard-stat-card {
  border-radius: 22px;
  padding: 1rem;
}

.dashboard-stat-card strong {
  color: var(--secondary);
  display: block;
  font-size: 1.8rem;
  line-height: 1.1;
  margin-top: .35rem;
}

.dashboard-stat-card small {
  color: var(--muted);
  display: block;
  margin-top: .25rem;
}

.dashboard-alert {
  border-radius: 18px;
}

.profile-wizard-stepper {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  margin-bottom: 1.25rem;
}

.profile-wizard-step {
  align-items: center;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 18px;
  color: var(--muted);
  display: flex;
  gap: .7rem;
  padding: .8rem;
  text-align: left;
}

.profile-wizard-step span {
  align-items: center;
  background: #e2e8f0;
  border-radius: 50%;
  color: #475569;
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 850;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.profile-wizard-step strong {
  color: var(--secondary);
  display: block;
  font-size: .92rem;
}

.profile-wizard-step.active {
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
  border-color: rgba(37, 99, 235, .42);
  box-shadow: 0 14px 36px rgba(37, 99, 235, .14);
}

.profile-wizard-step.active span {
  background: var(--primary);
  color: #fff;
}

.profile-wizard-panel {
  display: none;
}

.profile-wizard-panel.active {
  display: block;
}

.parent-step-footer {
  align-items: center;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
}

.parent-step-footer .parent-step-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.teacher-profile-wizard .parent-step-footer .btn {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.teacher-dashboard .dashboard-messages-btn {
  align-items: center;
  display: inline-flex;
  gap: .5rem;
}

.teacher-dashboard button.profile-wizard-step {
  min-width: 0;
  width: auto;
}

.teacher-dashboard .profile-wizard-step strong {
  font-size: .84rem;
  line-height: 1.15;
  min-width: 0;
  white-space: normal;
}

.profile-wizard-step {
  cursor: pointer;
}

button.profile-wizard-step {
  width: 100%;
}

.parent-profile-wizard .dashboard-card {
  margin-bottom: 0;
}

.parent-dashboard-view {
  display: none;
}

.parent-dashboard-view.active {
  display: block;
}

.dashboard-repeat-row {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1rem;
}

.dashboard-form {
  display: grid;
  gap: 1.25rem;
}

.dashboard-card {
  border-radius: 28px;
  padding: 1.5rem;
}

.dashboard-card-header {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
}

.dashboard-card-header h2 {
  color: var(--secondary);
  font-size: 1.25rem;
  font-weight: 850;
  margin: .2rem 0 0;
}

.dashboard-card-header i {
  align-items: center;
  background: #eff6ff;
  border-radius: 16px;
  color: var(--primary);
  display: inline-flex;
  font-size: 1.6rem;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.dashboard-shell .form-control,
.dashboard-shell .form-select {
  border-color: #dbe4f0;
  border-radius: 14px;
  min-height: 46px;
}

.dashboard-shell textarea.form-control {
  min-height: 150px;
}

.teacher-dashboard .form-label,
.teacher-dashboard .dashboard-checkbox-option .form-check-label {
  color: #475569;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 0.35rem;
}

.dashboard-fee-table thead th {
  background: #eff6ff;
  color: var(--secondary);
}

.dashboard-multi-select {
  min-height: 220px;
}

.dashboard-checkbox-grid {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 14px;
  display: grid;
  gap: .5rem;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  max-height: 320px;
  overflow-y: auto;
  padding: .65rem;
}

.dashboard-checkbox-option {
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  gap: .65rem;
  min-height: 44px;
  padding: .65rem .75rem;
  transition: border-color .15s ease, background-color .15s ease;
}

.dashboard-checkbox-option:has(.form-check-input:checked) {
  background: #eff6ff;
  border-color: var(--primary);
}

.dashboard-checkbox-option .form-check-input {
  flex-shrink: 0;
  margin: 0;
}

.dashboard-checkbox-option .form-check-label {
  cursor: pointer;
  font-size: .925rem;
  line-height: 1.35;
  margin: 0;
  user-select: none;
}

@media (max-width: 575.98px) {
  .dashboard-checkbox-grid {
    grid-template-columns: 1fr;
    max-height: none;
  }
}

.dashboard-switch {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 18px;
  display: flex;
  gap: .85rem;
  padding: 1rem;
  width: 100%;
}

.dashboard-switch input {
  height: 22px;
  width: 22px;
}

.dashboard-switch strong,
.dashboard-upload-box strong,
.dashboard-map-toolbar strong,
.dashboard-savebar strong {
  color: var(--secondary);
  display: block;
}

.dashboard-switch small,
.dashboard-upload-box small,
.dashboard-map-toolbar small {
  color: var(--muted);
  display: block;
}

.dashboard-upload-box {
  background: #f8fafc;
  border: 1px dashed #bfdbfe;
  border-radius: 20px;
  display: grid;
  gap: .5rem;
  height: 100%;
  padding: 1rem;
}

.school-gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.school-profile-banner-preview {
  aspect-ratio: 4 / 1;
  border: 1px solid var(--border);
  border-radius: 18px;
  display: block;
  max-height: 220px;
  object-fit: cover;
  width: 100%;
}

.school-profile-banner-placeholder {
  align-items: center;
  aspect-ratio: 4 / 1;
  background: #f8fafc;
  border: 1px dashed var(--border);
  border-radius: 18px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: .35rem;
  justify-content: center;
  max-height: 220px;
}

.school-profile-banner-placeholder i {
  font-size: 2rem;
}

.school-preview-page .school-preview-banner {
  background: #0f172a;
  line-height: 0;
  width: 100%;
}

.school-preview-page .school-preview-banner img {
  display: block;
  height: clamp(180px, 28vw, 320px);
  object-fit: cover;
  width: 100%;
}

.school-preview-page .school-preview-hero-content {
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
  color: #fff;
  padding: 48px 0 64px;
}

.school-preview-page .hero-section h1 .school-preview-name {
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.school-preview-page .hero-section.school-preview-hero-content h1 .school-preview-name {
  background: linear-gradient(135deg, #93c5fd, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.school-preview-page .hero-section.school-preview-hero-content h1,
.school-preview-page .hero-section.school-preview-hero-content .eyebrow,
.school-preview-page .hero-section.school-preview-hero-content .lead {
  color: #fff;
}

.school-preview-page .content-card .school-preview-name {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: var(--primary);
  font-weight: 700;
}

.school-preview-page .school-preview-hero-content .content-card {
  background: rgba(255, 255, 255, .96);
}

.school-gallery-grid figure {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 18px;
  margin: 0;
  overflow: hidden;
}

.school-gallery-grid img,
.school-gallery-placeholder {
  aspect-ratio: 4 / 3;
}

.school-gallery-grid img {
  display: block;
  object-fit: cover;
  width: 100%;
}

.school-gallery-grid figcaption {
  color: var(--muted);
  font-size: .8rem;
  overflow: hidden;
  padding: .65rem .75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.school-gallery-placeholder {
  align-items: center;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.school-gallery-placeholder i {
  font-size: 2rem;
}

.school-video-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.school-video-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .08);
  color: var(--secondary);
  display: block;
  font-weight: 800;
  overflow: hidden;
}

.school-video-card img,
.school-video-placeholder {
  aspect-ratio: 16 / 9;
  width: 100%;
}

.school-video-card img {
  display: block;
  object-fit: cover;
}

.school-video-card span:not(.school-video-placeholder) {
  align-items: center;
  display: flex;
  gap: .45rem;
  padding: .8rem 1rem;
}

.school-video-placeholder {
  align-items: center;
  background: #fee2e2;
  color: #dc2626;
  display: flex;
  font-size: 3rem;
  justify-content: center;
}

.dashboard-map-toolbar {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 18px 18px 0 0;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem;
}

.dashboard-map {
  border: 1px solid var(--border);
  border-radius: 0 0 18px 18px;
  height: 390px;
  overflow: hidden;
}

.dashboard-savebar {
  align-items: center;
  border-radius: 24px;
  bottom: 1rem;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem;
  position: sticky;
  z-index: 20;
}

.admin-users-table-head th,
.admin-table-head th {
  background: #0f172a;
  color: #fff;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 991px) {
  .dashboard-shell {
    display: block;
  }

  .dashboard-sidebar-toggle {
    align-items: center;
    background: #0f172a;
    border: 0;
    border-radius: 14px;
    color: #fff;
    display: inline-flex;
    font-weight: 700;
    gap: .5rem;
    margin-bottom: 1rem;
    padding: .65rem .9rem;
  }

  .dashboard-sidebar-toggle i {
    font-size: 1.25rem;
  }

  .dashboard-sidebar-toggle-title {
    display: none;
  }

  .dashboard-sidebar-backdrop {
    background: rgba(15, 23, 42, .45);
    display: block;
    inset: 0;
    position: fixed;
    top: var(--site-header-height);
    z-index: 1060;
  }

  .dashboard-sidebar-backdrop[hidden] {
    display: none !important;
  }

  .dashboard-sidebar {
    bottom: 0;
    height: auto;
    left: 0;
    max-height: none;
    max-width: min(288px, 88vw);
    overflow-y: auto;
    padding: 1rem;
    position: fixed;
    top: var(--site-header-height);
    transform: translateX(-110%);
    transition: transform .25s ease;
    width: min(288px, 88vw);
    z-index: 1070;
  }

  .dashboard-shell.is-sidebar-open .dashboard-sidebar {
    transform: translateX(0);
  }

  body.dashboard-sidebar-locked {
    overflow: hidden;
  }

  .dashboard-brand {
    padding-bottom: .9rem;
  }

  .dashboard-help-card {
    margin-top: 1rem;
  }

  .dashboard-nav {
    display: grid;
    gap: .5rem;
    margin-top: 1rem;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .dashboard-nav a {
    flex: initial;
    padding: .65rem .8rem;
    white-space: normal;
  }

  .dashboard-main {
    padding: 1rem;
  }

  .dashboard-topbar,
  .dashboard-savebar,
  .dashboard-map-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-wizard-stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-logo {
    height: 54px;
    max-width: 210px;
  }

  .hero-section {
    padding: 52px 0 68px;
  }

  .hero-home {
    padding-top: 44px;
  }

  .section {
    padding: 64px 0;
  }

  .pricing-card.popular {
    transform: none;
  }

  .blog-resource-grid {
    grid-template-columns: 1fr;
  }

  .blog-search,
  .faq-search {
    flex-direction: column;
  }

  .client-logo-marquee::before,
  .client-logo-marquee::after {
    width: 48px;
  }

  .client-logo-card {
    flex-basis: 180px;
    min-height: 132px;
  }
}

@media (max-width: 575px) {
  .dashboard-stat-grid {
    grid-template-columns: 1fr;
  }

  .profile-wizard-stepper {
    grid-template-columns: 1fr;
  }
}

/* Teacher profile mobile app experience */
@media (max-width: 991px) {
  body:has(.teacher-dashboard) {
    -webkit-tap-highlight-color: transparent;
    background: #f1f5f9;
    --site-header-height: 64px;
  }

  body:has(.teacher-dashboard) main {
    padding-top: var(--site-header-height);
  }

  body:has(.teacher-dashboard) .navbar {
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
    min-height: 56px;
  }

  body:has(.teacher-dashboard) .navbar > .container {
    margin-bottom: 0;
    margin-top: 0;
    padding-left: .85rem;
    padding-right: .85rem;
  }

  body:has(.teacher-dashboard) .brand-logo-badge {
    border-radius: 10px;
    height: 40px;
    padding: 4px 8px;
  }

  body:has(.teacher-dashboard) .brand-logo {
    height: 32px;
    max-width: 140px;
  }

  body:has(.teacher-dashboard) .footer-modern {
    display: none;
  }

  .teacher-dashboard {
    background: #f1f5f9;
    min-height: calc(100dvh - var(--site-header-height));
  }

  .teacher-dashboard-frame {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: calc(100dvh - var(--site-header-height));
    min-width: 0;
  }

  body.dashboard-sidebar-locked .teacher-dashboard .teacher-profile-wizard .parent-step-footer {
    z-index: 1025;
  }

  .teacher-dashboard .teacher-mobile-appbar {
    align-items: center;
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 1px 0 rgba(15, 23, 42, .06);
    color: #0f172a;
    display: flex;
    flex-shrink: 0;
    gap: .75rem;
    justify-content: flex-start;
    margin: 0;
    padding: .7rem 1rem;
    position: sticky;
    top: var(--site-header-height);
    width: 100%;
    z-index: 1040;
  }

  .teacher-dashboard .teacher-mobile-appbar .dashboard-sidebar-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: #0f172a;
    display: inline-flex;
    flex-shrink: 0;
    gap: .75rem;
    margin: 0;
    padding: 0;
    width: auto;
  }

  .teacher-dashboard .teacher-mobile-appbar .dashboard-sidebar-toggle i {
    align-items: center;
    background: #eff6ff;
    border-radius: 12px;
    color: var(--primary);
    display: inline-flex;
    font-size: 1.35rem;
    height: 40px;
    justify-content: center;
    width: 40px;
  }

  .teacher-dashboard .dashboard-sidebar-toggle-label {
    color: var(--primary);
    font-size: .92rem;
    font-weight: 800;
  }

  .teacher-dashboard .teacher-mobile-appbar .dashboard-sidebar-toggle-title {
    color: #64748b;
    display: block;
    flex: 1;
    font-size: .82rem;
    font-weight: 700;
    margin-left: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .teacher-dashboard .teacher-mobile-messages-link {
    align-items: center;
    background: #eff6ff;
    border-radius: 12px;
    color: var(--primary);
    display: inline-flex;
    flex-shrink: 0;
    font-size: 1.35rem;
    height: 40px;
    justify-content: center;
    position: relative;
    text-decoration: none;
    width: 40px;
  }

  .teacher-dashboard .teacher-mobile-messages-link.active {
    background: #dbeafe;
  }

  .teacher-dashboard .teacher-mobile-messages-badge {
    align-items: center;
    background: #ef4444;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: .62rem;
    font-weight: 800;
    height: 1.15rem;
    justify-content: center;
    line-height: 1;
    min-width: 1.15rem;
    padding: 0 .2rem;
    position: absolute;
    right: -4px;
    top: -4px;
  }

  .teacher-dashboard .dashboard-topbar .dashboard-messages-btn {
    display: none;
  }

  .teacher-dashboard .dashboard-sidebar-backdrop {
    top: 60px;
  }

  .teacher-dashboard .dashboard-sidebar {
    top: 60px;
  }

  .teacher-dashboard .dashboard-main {
    flex: 1;
    min-width: 0;
    padding: 0;
  }

  .teacher-profile-page {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 100%;
    padding-bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px));
  }

  .teacher-dashboard .dashboard-topbar,
  .teacher-dashboard .dashboard-stat-card,
  .teacher-dashboard .teacher-profile-wizard .dashboard-card {
    border: 0;
    box-shadow: none;
  }

  .teacher-dashboard .dashboard-topbar {
    align-items: flex-start;
    background: transparent;
    border-radius: 0;
    flex-direction: column;
    gap: .75rem;
    margin: 0;
    padding: 1rem 1rem .5rem;
  }

  .teacher-dashboard .dashboard-topbar h1 {
    font-size: 1.45rem;
    letter-spacing: -.03em;
    line-height: 1.15;
    margin: .15rem 0;
  }

  .teacher-dashboard .dashboard-topbar p {
    font-size: .92rem;
    line-height: 1.5;
  }

  .teacher-dashboard .dashboard-kicker {
    font-size: .7rem;
  }

  .teacher-dashboard .dashboard-actions {
    gap: .5rem;
    width: 100%;
  }

  .teacher-dashboard .dashboard-actions .btn {
    border-radius: 12px;
    flex: 1;
    font-weight: 700;
    min-height: 42px;
  }

  .teacher-dashboard .dashboard-status {
    font-size: .78rem;
    padding: .45rem .8rem;
    white-space: nowrap;
  }

  .teacher-dashboard .dashboard-alert {
    border-radius: 14px;
    margin: 0 1rem .75rem;
  }

  .teacher-dashboard .dashboard-stat-grid {
    display: flex;
    gap: .75rem;
    margin: 0 0 .25rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 0 1rem 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .teacher-dashboard .dashboard-stat-grid::-webkit-scrollbar {
    display: none;
  }

  .teacher-dashboard .dashboard-stat-card {
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
    flex: 0 0 44%;
    min-width: 148px;
    padding: .9rem;
    scroll-snap-align: start;
  }

  .teacher-dashboard .dashboard-stat-card strong {
    font-size: 1.45rem;
  }

  .teacher-dashboard .dashboard-stat-card small {
    font-size: .76rem;
  }

  .teacher-dashboard .profile-wizard-stepper {
    background: rgba(241, 245, 249, .96);
    backdrop-filter: blur(12px);
    display: flex;
    gap: .55rem;
    grid-template-columns: none;
    margin: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: .35rem 1rem .85rem;
    position: sticky;
    scroll-snap-type: x mandatory;
    top: 108px;
    z-index: 1030;
    -webkit-overflow-scrolling: touch;
  }

  .teacher-dashboard .profile-wizard-stepper::-webkit-scrollbar {
    display: none;
  }

  .teacher-dashboard .profile-wizard-step {
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
    flex: 0 0 auto;
    gap: .55rem;
    min-width: max-content;
    padding: .55rem .85rem .55rem .55rem;
    scroll-snap-align: center;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    width: auto;
  }

  .teacher-dashboard .profile-wizard-step:active {
    transform: scale(.98);
  }

  .teacher-dashboard .profile-wizard-step span {
    height: 30px;
    width: 30px;
  }

  .teacher-dashboard .profile-wizard-step strong {
    font-size: .82rem;
    white-space: nowrap;
  }

  .teacher-dashboard .teacher-profile-wizard {
    gap: 0;
  }

  .teacher-dashboard .teacher-profile-wizard .profile-wizard-panel {
    scroll-margin-top: 180px;
  }

  .teacher-dashboard .teacher-profile-wizard .dashboard-card-header {
    scroll-margin-top: 180px;
  }

  .teacher-dashboard .teacher-profile-wizard .dashboard-card {
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -10px 40px rgba(15, 23, 42, .08);
    margin-top: .15rem;
    min-height: calc(100dvh - 300px);
    padding: 1.15rem 1rem 1.5rem;
  }

  .teacher-dashboard .teacher-profile-wizard .profile-wizard-panel.active.is-entering .dashboard-card {
    animation: teacherPanelIn .28s ease-out;
  }

  .teacher-dashboard .dashboard-card-header {
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: 1rem;
    padding-bottom: .85rem;
  }

  .teacher-dashboard .dashboard-card-header h2 {
    font-size: 1.12rem;
  }

  .teacher-dashboard .dashboard-card-header i {
    border-radius: 14px;
    font-size: 1.35rem;
    height: 42px;
    width: 42px;
  }

  .teacher-dashboard .dashboard-shell .form-control,
  .teacher-dashboard .dashboard-shell .form-select {
    border-radius: 14px;
    font-size: 16px;
    min-height: 48px;
  }

  .teacher-dashboard .dashboard-shell textarea.form-control {
    min-height: 132px;
  }

  .teacher-dashboard .dashboard-checkbox-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
    padding: .65rem;
  }

  .teacher-dashboard .dashboard-checkbox-option {
    min-height: 48px;
    padding: .7rem .75rem;
  }

  .teacher-dashboard .dashboard-switch {
    min-height: 48px;
    padding: .85rem .9rem;
  }

  .teacher-dashboard .dashboard-repeat-row,
  .teacher-dashboard .dashboard-upload-box {
    border-radius: 16px;
    padding: .9rem;
  }

  .teacher-dashboard .dashboard-map {
    border-radius: 16px;
    min-height: 240px;
  }

  .teacher-dashboard .teacher-profile-wizard .parent-step-footer {
    align-items: stretch;
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, .96);
    border-top: 1px solid rgba(226, 232, 240, .95);
    bottom: 0;
    box-shadow: 0 -12px 30px rgba(15, 23, 42, .08);
    display: grid;
    gap: .55rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    left: 0;
    margin: 0;
    padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom, 0px));
    position: fixed;
    right: 0;
    z-index: 1050;
  }

  .teacher-dashboard .teacher-profile-wizard .parent-step-footer > .text-muted {
    display: none;
  }

  .teacher-dashboard .teacher-profile-wizard .parent-step-footer .js-teacher-step-prev,
  .teacher-dashboard .teacher-profile-wizard .parent-step-footer .js-teacher-step-next,
  .teacher-dashboard .teacher-profile-wizard .parent-step-footer .parent-step-footer-actions .btn {
    align-items: center;
    border-radius: 14px;
    display: flex;
    font-weight: 800;
    justify-content: center;
    min-height: 48px;
    width: 100%;
  }

  .teacher-dashboard .teacher-profile-wizard .parent-step-footer .parent-step-footer-actions {
    display: contents;
  }

  .teacher-dashboard .teacher-profile-wizard .parent-step-footer .parent-step-footer-actions .btn {
    grid-column: 2;
    grid-row: 1;
  }

  .teacher-dashboard .teacher-profile-wizard .parent-step-footer .js-teacher-step-prev {
    grid-column: 1;
    grid-row: 1;
  }

  .teacher-dashboard .teacher-profile-wizard .parent-step-footer .js-teacher-step-next {
    display: none;
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .teacher-dashboard .teacher-profile-wizard #emailVerification .parent-step-footer {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .teacher-dashboard .teacher-profile-wizard #emailVerification .parent-step-footer .js-teacher-step-next {
    align-items: center;
    display: flex;
    grid-column: 2;
    justify-content: center;
  }

  .teacher-dashboard .teacher-profile-wizard #emailVerification .parent-step-footer .parent-step-footer-actions {
    display: none;
  }

  .teacher-dashboard .input-group .btn {
    min-height: 48px;
  }
}

@keyframes teacherPanelIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dashboard-nav-badge {
  align-items: center;
  background: #ef4444;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: .72rem;
  font-weight: 700;
  height: 1.35rem;
  justify-content: center;
  margin-left: auto;
  min-width: 1.35rem;
  padding: 0 .35rem;
}

.parent-chat {
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .08);
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  height: calc(100vh - var(--site-header-height) - 2.5rem);
  max-height: 860px;
  min-height: 520px;
  overflow: hidden;
}

.parent-chat-threads {
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.parent-chat-threads-header {
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  gap: .75rem;
  justify-content: space-between;
  padding: 1rem 1.1rem;
}

.parent-chat-thread-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.parent-chat-empty-list {
  margin: 0;
  padding: 1.25rem 1.1rem;
}

.parent-chat-thread-item {
  align-items: flex-start;
  border-bottom: 1px solid #e2e8f0;
  color: inherit;
  display: flex;
  gap: .75rem;
  padding: .9rem 1rem;
  position: relative;
  text-decoration: none;
}

.parent-chat-thread-item:hover {
  background: #eff6ff;
}

.parent-chat-thread-item.active {
  background: #dbeafe;
}

.parent-chat-thread-item.unread .parent-chat-thread-name {
  font-weight: 800;
}

.parent-chat-avatar {
  align-items: center;
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  flex-shrink: 0;
  font-size: .82rem;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.parent-chat-avatar-lg {
  font-size: 1rem;
  height: 48px;
  width: 48px;
}

.parent-chat-thread-body {
  display: grid;
  gap: .15rem;
  min-width: 0;
}

.parent-chat-thread-top {
  align-items: baseline;
  display: flex;
  gap: .5rem;
  justify-content: space-between;
}

.parent-chat-thread-name {
  font-weight: 600;
}

.parent-chat-thread-time {
  color: #64748b;
  flex-shrink: 0;
  font-size: .72rem;
}

.parent-chat-thread-role {
  color: #64748b;
  font-size: .75rem;
}

.parent-chat-thread-preview {
  color: #475569;
  display: block;
  font-size: .82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.parent-chat-unread-dot {
  background: var(--primary);
  border-radius: 999px;
  flex-shrink: 0;
  height: 10px;
  margin-top: .35rem;
  width: 10px;
}

.parent-chat-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.parent-chat-header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 1.25rem;
}

.parent-chat-messages {
  background: linear-gradient(180deg, #eef4ff 0%, #f8fafc 100%);
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: .65rem;
  min-height: 0;
  overflow-y: auto;
  padding: 1.25rem;
}

.parent-chat-bubble {
  border-radius: 18px;
  max-width: min(75%, 560px);
  padding: .65rem .9rem;
}

.parent-chat-bubble.mine {
  align-self: flex-end;
  background: #2563eb;
  border-bottom-right-radius: 4px;
  color: #fff;
}

.parent-chat-bubble.theirs {
  align-self: flex-start;
  background: #fff;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
}

.parent-chat-bubble-text {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.parent-chat-bubble-time {
  display: block;
  font-size: .68rem;
  opacity: .78;
}

.parent-chat-composer {
  align-items: flex-end;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  padding: .85rem 1rem;
}

.parent-chat-composer textarea {
  border-radius: 999px;
  flex: 1;
  max-height: 120px;
  min-height: 44px;
  padding: .65rem 1rem;
  resize: none;
}

.parent-chat-send {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  flex-shrink: 0;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.parent-chat-placeholder,
.parent-chat-compose-panel {
  align-items: center;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  padding: 2rem;
  text-align: center;
}

.parent-chat-compose-panel {
  align-items: stretch;
  justify-content: flex-start;
  overflow-y: auto;
  text-align: left;
}

.parent-chat-compose-form {
  max-width: 520px;
  width: 100%;
}

.parent-chat-placeholder i {
  color: #94a3b8;
  font-size: 3rem;
  margin-bottom: .75rem;
}

.parent-chat-flash.is-hidden {
  display: none;
}

.directory-profile-header {
  align-items: center;
  display: flex;
  gap: .9rem;
  margin-bottom: .75rem;
}

.directory-profile-photo {
  border: 2px solid #dbeafe;
  border-radius: 18px;
  flex-shrink: 0;
  height: 72px;
  object-fit: cover;
  width: 72px;
}

.directory-profile-photo-placeholder {
  align-items: center;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #2563eb;
  display: inline-flex;
  font-size: 1.75rem;
  justify-content: center;
}

.directory-profile-heading {
  min-width: 0;
}

@media (max-width: 991px) {
  .parent-chat {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
    min-height: calc(100vh - var(--site-header-height) - 2rem);
  }

  .parent-chat-threads {
    border-bottom: 1px solid #e2e8f0;
    border-right: 0;
    max-height: 280px;
  }

  .parent-chat-main {
    min-height: 420px;
  }
}

/* Modern brand refresh */
:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --secondary: #0f172a;
  --muted: #64748b;
  --soft: #f8fafc;
  --border: rgba(148, 163, 184, .22);
  --surface: rgba(255, 255, 255, .8);
  --surface-strong: rgba(255, 255, 255, .92);
  --shadow-sm: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-md: 0 18px 50px rgba(15, 23, 42, .12);
  --shadow-lg: 0 30px 80px rgba(15, 23, 42, .18);
  --gradient: linear-gradient(135deg, #eef2ff 0%, #ffffff 42%, #ecfeff 100%);
  --gradient-strong: linear-gradient(135deg, #0f172a 0%, #312e81 48%, #0891b2 100%);
}

body {
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, .08), transparent 28%),
    radial-gradient(circle at top right, rgba(6, 182, 212, .08), transparent 22%),
    #f8fafc;
  color: #0f172a;
}

.navbar {
  background: rgba(255, 255, 255, .9) !important;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, .85) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06) !important;
  min-height: 64px;
  padding-bottom: .35rem;
  padding-top: .35rem;
  z-index: 1080;
}

.navbar > .container {
  background: transparent;
  border: 0;
  border-radius: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding: .35rem 1rem;
}

.navbar .nav-link {
  border-radius: 999px;
  color: #334155;
  font-weight: 700;
  padding: .45rem .85rem !important;
  transition: background-color .2s ease, color .2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  background: rgba(79, 70, 229, .08);
  color: var(--primary-dark);
  transform: none;
}

.navbar .btn {
  padding: .45rem .9rem;
}

.btn {
  border-radius: 16px;
  font-weight: 800;
  letter-spacing: -.01em;
  padding: .85rem 1.2rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(79, 70, 229, .24);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #6d28d9 100%);
  border-color: transparent;
  box-shadow: 0 18px 36px rgba(79, 70, 229, .28);
}

.btn-outline-primary {
  background: rgba(255, 255, 255, .78);
  border-color: rgba(79, 70, 229, .18);
  color: var(--primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: rgba(79, 70, 229, .08);
  border-color: rgba(79, 70, 229, .3);
  color: var(--primary-dark);
}

.hero-section {
  background:
    radial-gradient(circle at 10% 20%, rgba(99, 102, 241, .18), transparent 26%),
    radial-gradient(circle at 88% 14%, rgba(34, 211, 238, .18), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, .88) 0%, rgba(255, 255, 255, .96) 100%);
  padding: 84px 0 112px;
}

.hero-home {
  min-height: 700px;
  padding-top: 88px;
}

.hero-section::before {
  background:
    radial-gradient(circle, rgba(79, 70, 229, .12), transparent 64%);
  content: "";
  height: 340px;
  left: -120px;
  position: absolute;
  top: 10px;
  width: 340px;
}

.hero-section::after {
  background:
    radial-gradient(circle, rgba(6, 182, 212, .14), transparent 66%);
  content: "";
  height: 320px;
  position: absolute;
  right: -90px;
  top: 60px;
  width: 320px;
}

.hero-section > .container {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-size: clamp(3rem, 5vw, 5.4rem);
  font-weight: 900;
  letter-spacing: -.05em;
  margin-bottom: 1.2rem;
}

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.8;
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
}

.eyebrow {
  backdrop-filter: blur(10px);
  background: rgba(79, 70, 229, .1);
  border: 1px solid rgba(79, 70, 229, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.content-card,
.network-audience-card,
.network-cta-card,
.directory-search-card,
.dashboard-topbar,
.dashboard-card,
.dashboard-stat-card,
.parent-chat,
.card-form,
.faq-item,
.integration-box {
  background: var(--surface-strong);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.content-card,
.network-audience-card {
  border-radius: 28px;
}

.network-audience-card {
  overflow: hidden;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.network-audience-card::after {
  background: linear-gradient(135deg, rgba(79, 70, 229, .12), rgba(6, 182, 212, .06));
  border-radius: 999px;
  content: "";
  height: 170px;
  position: absolute;
  right: -72px;
  top: -72px;
  width: 170px;
}

.network-audience-card > * {
  position: relative;
  z-index: 1;
}

.network-audience-card:hover {
  border-color: rgba(79, 70, 229, .26);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.network-audience-card h2,
.network-audience-card h3,
.content-card h2,
.content-card h3 {
  font-weight: 850;
  letter-spacing: -.03em;
}

.network-audience-icon {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 10px 24px rgba(15, 23, 42, .08);
  height: 64px;
  width: 64px;
}

.check-list li {
  color: #334155;
  margin-bottom: .7rem;
  padding-left: 1.8rem;
}

.check-list li::before {
  color: #10b981;
  font-size: .95rem;
  top: .08rem;
}

.network-audience-actions,
.hero-actions {
  gap: .9rem;
}

.network-audience-link {
  display: inline-flex;
  gap: .45rem;
  text-decoration: none;
}

.network-audience-link::after {
  content: "->";
  transition: transform .2s ease;
}

.network-audience-link:hover::after {
  transform: translateX(3px);
}

.bg-soft {
  background:
    linear-gradient(180deg, rgba(238, 242, 255, .55) 0%, rgba(248, 250, 252, .2) 100%);
}

.network-cta-card {
  background:
    radial-gradient(circle at 10% 15%, rgba(255, 255, 255, .25), transparent 26%),
    var(--gradient-strong);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 30px 80px rgba(15, 23, 42, .2);
  color: #fff;
  overflow: hidden;
  padding: clamp(2.25rem, 4vw, 4rem);
  position: relative;
}

.network-cta-card::after {
  background: rgba(255, 255, 255, .1);
  border-radius: 999px;
  content: "";
  height: 240px;
  position: absolute;
  right: -70px;
  top: -100px;
  width: 240px;
}

.network-cta-card > * {
  position: relative;
  z-index: 1;
}

.network-cta-card .eyebrow {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .18);
  color: #dbeafe;
}

.network-cta-card h2,
.network-cta-card p {
  color: #fff;
}

.network-cta-card p {
  opacity: .88;
}

.footer-modern {
  background:
    radial-gradient(circle at top left, rgba(99, 102, 241, .18), transparent 28%),
    linear-gradient(180deg, #0f172a 0%, #020617 100%);
  padding: 84px 0 32px;
}

.footer-modern .container {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 32px;
  padding: 2rem;
}

.footer-links a {
  opacity: .9;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-bottom {
  margin-top: 2.5rem;
}

.directory-page:not(.directory-page-teachers):not(.directory-page-schools) {
  padding-top: calc(var(--site-header-height) + 1.5rem);
}

.directory-search-card,
.dashboard-topbar,
.dashboard-card,
.dashboard-stat-card,
.parent-chat {
  border-radius: 24px;
}

.dashboard-topbar h1,
.directory-page-header h1 {
  letter-spacing: -.04em;
}

.form-control,
.form-select {
  border: 1px solid rgba(148, 163, 184, .32);
  border-radius: 16px;
  box-shadow: none !important;
  min-height: 50px;
  padding: .85rem 1rem;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(79, 70, 229, .45);
  box-shadow: 0 0 0 .25rem rgba(79, 70, 229, .12) !important;
}

@media (max-width: 991px) {
  :root {
    --site-header-height: 64px;
  }

  .navbar {
    min-height: 56px;
  }

  .navbar > .container {
    border-radius: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding: .3rem .85rem;
  }

  .brand-logo-badge {
    height: 42px;
    padding: 4px 8px;
  }

  .brand-logo {
    height: 34px;
    max-width: 150px;
  }

  .hero-home {
    min-height: auto;
    padding-top: 40px;
  }

  .hero-section h1 {
    font-size: clamp(2.35rem, 10vw, 3.6rem);
  }

  .network-audience-card:hover {
    transform: none;
  }
}

@media (max-width: 575px) {
  .navbar > .container {
    padding: .65rem .8rem;
  }

  .hero-section {
    padding: 58px 0 72px;
  }

  .hero-actions .btn,
  .network-audience-actions .btn,
  .network-cta-card .btn {
    width: 100%;
  }

  .footer-modern .container {
    border-radius: 24px;
    padding: 1.35rem;
  }
}

/* Premium homepage overrides */
.premium-hero {
  padding-bottom: 72px;
}

.hero-lead-premium {
  margin-left: 0;
  max-width: 640px;
}

.premium-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}

.premium-hero-points span {
  align-items: center;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(79, 70, 229, .12);
  border-radius: 999px;
  color: #334155;
  display: inline-flex;
  font-size: .92rem;
  font-weight: 700;
  gap: .45rem;
  padding: .75rem 1rem;
}

.premium-hero-points i {
  color: var(--primary);
  font-size: 1.05rem;
}

.premium-hero-panel {
  position: relative;
}

.premium-hero-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.premium-metric-card {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .12);
  min-height: 180px;
  padding: 1.4rem;
}

.premium-metric-card strong {
  color: var(--secondary);
  display: block;
  font-size: 1.35rem;
  font-weight: 850;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: .65rem;
}

.premium-metric-card p {
  color: var(--muted);
  margin: 0;
}

.premium-metric-kicker {
  color: var(--primary);
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: .85rem;
  text-transform: uppercase;
}

.premium-metric-card-primary {
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .22), transparent 30%),
    linear-gradient(135deg, #7f1d1d 0%, var(--brand-red) 48%, var(--brand-amber) 100%);
  border-color: rgba(255, 255, 255, .14);
  grid-column: span 2;
}

.premium-metric-card-primary strong,
.premium-metric-card-primary p,
.premium-metric-card-primary .premium-metric-kicker {
  color: #fff;
}

.premium-metric-card-primary p {
  opacity: .88;
}

.premium-metric-parent .premium-metric-kicker {
  color: var(--brand-blue);
}

.premium-metric-school .premium-metric-kicker {
  color: var(--brand-green-dark);
}

.premium-metric-stat {
  align-items: center;
  display: flex;
}

.premium-stat-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}

.premium-stat-row strong {
  font-size: 2rem;
  margin-bottom: .2rem;
}

.premium-stat-row small {
  color: var(--muted);
  display: block;
  font-weight: 700;
}

.premium-trust-strip {
  margin-top: -24px;
  padding-bottom: 24px;
  position: relative;
  z-index: 2;
}

.premium-trust-grid {
  background: rgba(255, 255, 255, .84);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, .1);
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 1.1rem;
}

.premium-trust-item {
  align-items: center;
  background: rgba(248, 250, 252, .72);
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 22px;
  display: flex;
  gap: .85rem;
  min-width: 0;
  padding: 1rem;
}

.premium-trust-item i {
  align-items: center;
  background: rgba(79, 70, 229, .1);
  border-radius: 16px;
  color: var(--primary);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.4rem;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.premium-trust-item strong {
  color: var(--secondary);
  display: block;
  font-size: .98rem;
  font-weight: 850;
}

.premium-trust-item span {
  color: var(--muted);
  display: block;
  font-size: .88rem;
  line-height: 1.45;
}

.premium-process-section {
  background:
    radial-gradient(circle at 12% 18%, rgba(79, 70, 229, .08), transparent 30%),
    radial-gradient(circle at 88% 20%, rgba(6, 182, 212, .1), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.premium-content-panel {
  background:
    radial-gradient(circle at 85% 15%, rgba(79, 70, 229, .08), transparent 28%),
    rgba(255, 255, 255, .82);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 32px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .1);
  padding: clamp(1.5rem, 3vw, 2.4rem);
}

.premium-process-title {
  color: var(--secondary);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.08;
  margin-bottom: 1rem;
}

.premium-process-steps {
  display: grid;
  gap: 1rem;
}

.premium-process-card {
  align-items: flex-start;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .08);
  display: flex;
  gap: 1rem;
  padding: 1.2rem 1.25rem;
}

.premium-process-card span {
  align-items: center;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  border-radius: 18px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: .95rem;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.premium-process-card strong {
  color: var(--secondary);
  display: block;
  font-size: 1.02rem;
  font-weight: 850;
  margin-bottom: .35rem;
}

.premium-process-card p {
  color: var(--muted);
  margin: 0;
}

@media (max-width: 991px) {
  .premium-hero-grid,
  .premium-trust-grid {
    grid-template-columns: 1fr;
  }

  .premium-metric-card-primary {
    grid-column: auto;
  }

  .premium-trust-strip {
    margin-top: 0;
  }
}

@media (max-width: 575px) {
  .hero-lead-premium {
    margin-right: 0;
  }

  .premium-hero-points {
    flex-direction: column;
  }

  .premium-stat-row {
    grid-template-columns: 1fr;
  }

  .premium-process-card {
    border-radius: 20px;
    padding: 1rem;
  }
}

/* Auth pages — login, register, verify OTP */
.auth-shell {
  background:
    radial-gradient(circle at 12% 18%, rgba(37, 99, 235, .12), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(6, 182, 212, .14), transparent 28%),
    linear-gradient(180deg, #eff6ff 0%, #fff 45%, #f8fafc 100%);
  min-height: calc(100vh - 88px);
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
}

.auth-layout {
  align-items: stretch;
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 460px);
}

.auth-layout-compact {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  max-width: 980px;
  margin: 0 auto;
}

.auth-brand-panel {
  align-items: center;
  display: flex;
  padding: clamp(1rem, 3vw, 2rem) 0;
}

.auth-brand-content {
  max-width: 560px;
}

.auth-brand-content h1 {
  color: var(--secondary);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.08;
  margin-bottom: 1rem;
}

.auth-brand-content p {
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 520px;
}

.auth-feature-list {
  display: grid;
  gap: .85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.auth-feature-list li {
  align-items: center;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
  color: var(--secondary);
  display: flex;
  font-size: .96rem;
  font-weight: 600;
  gap: .85rem;
  padding: .95rem 1.1rem;
}

.auth-feature-list i {
  align-items: center;
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  border-radius: 14px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.15rem;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.auth-form-panel {
  align-items: center;
  display: flex;
  justify-content: center;
}

.auth-card {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .12);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  width: 100%;
}

.auth-card-header {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.auth-card-icon {
  align-items: center;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(37, 99, 235, .24);
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.35rem;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.auth-card-kicker {
  color: var(--primary);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: .35rem;
  text-transform: uppercase;
}

.auth-card-title {
  color: var(--secondary);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: .45rem;
}

.auth-card-subtitle {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.55;
}

.auth-alert {
  border: none;
  border-radius: 16px;
  margin-bottom: 1.25rem;
}

.auth-form .auth-label {
  color: var(--secondary);
  font-size: .88rem;
  font-weight: 700;
  margin-bottom: .55rem;
}

.auth-input-group {
  align-items: stretch;
  display: flex;
}

.auth-input-prefix {
  align-items: center;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 16px 0 0 16px;
  color: var(--muted);
  display: inline-flex;
  font-size: .95rem;
  font-weight: 700;
  padding: 0 1rem;
}

.auth-input {
  border: 1px solid var(--border);
  border-left: none;
  border-radius: 0 16px 16px 0;
  box-shadow: none;
  font-size: 1rem;
  min-height: 52px;
  padding: .85rem 1rem;
}

.auth-input:focus {
  border-color: rgba(37, 99, 235, .45);
  box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .12);
}

.auth-otp-input {
  border-left: 1px solid var(--border);
  border-radius: 16px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .35em;
  text-align: center;
}

.auth-help {
  color: var(--muted);
  display: block;
  font-size: .84rem;
  margin-top: .55rem;
}

.auth-submit {
  align-items: center;
  border: none;
  border-radius: 16px;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 800;
  gap: .55rem;
  justify-content: center;
  min-height: 52px;
  padding: .85rem 1.2rem;
}

.auth-submit i {
  font-size: 1.15rem;
}

.auth-switch {
  border-top: 1px solid rgba(148, 163, 184, .18);
  color: var(--muted);
  font-size: .94rem;
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  text-align: center;
}

.auth-switch a {
  font-weight: 800;
  margin-left: .35rem;
}

.auth-role-grid {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.auth-role-option {
  cursor: pointer;
  margin: 0;
}

.auth-role-option input {
  clip: rect(0, 0, 0, 0);
  position: absolute;
}

.auth-role-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--secondary);
  display: flex;
  flex-direction: column;
  gap: .35rem;
  min-height: 92px;
  justify-content: center;
  padding: .85rem .5rem;
  text-align: center;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.auth-role-card i {
  color: var(--primary);
  font-size: 1.35rem;
}

.auth-role-card strong {
  font-size: .88rem;
  font-weight: 800;
}

.auth-role-option input:checked + .auth-role-card,
.auth-role-option input:focus-visible + .auth-role-card {
  border-color: rgba(37, 99, 235, .55);
  box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .12);
}

.auth-role-option input:checked + .auth-role-card {
  background: linear-gradient(180deg, rgba(239, 246, 255, .95), #fff);
  transform: translateY(-1px);
}

@media (max-width: 991px) {
  .auth-layout,
  .auth-layout-compact {
    grid-template-columns: 1fr;
  }

  .auth-brand-panel {
    padding-bottom: 0;
  }

  .auth-brand-content h1 {
    font-size: clamp(1.85rem, 6vw, 2.5rem);
  }

  .auth-feature-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .auth-shell {
    padding-top: 1.25rem;
  }

  .auth-card {
    border-radius: 22px;
    padding: 1.25rem;
  }

  .auth-card-header {
    flex-direction: column;
  }

  .auth-role-grid {
    grid-template-columns: 1fr;
  }

  .auth-role-card {
    flex-direction: row;
    justify-content: flex-start;
    min-height: auto;
    padding: .85rem 1rem;
    text-align: left;
  }

  .auth-role-card i {
    margin-right: .35rem;
  }
}

/* App-wide loading UX (jQuery AppUi) */
.app-progress {
  height: 3px;
  left: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 3000;
}

.app-progress-bar {
  background: linear-gradient(90deg, var(--brand-red), var(--brand-amber), var(--brand-green), var(--brand-blue));
  background-size: 200% 100%;
  height: 100%;
  transform: translateX(-100%);
  transform-origin: left center;
  width: 100%;
}

.app-progress.is-active .app-progress-bar {
  animation: app-progress-slide 1.1s ease-in-out infinite;
}

@keyframes app-progress-slide {
  0% {
    background-position: 0% 50%;
    transform: translateX(-100%);
  }

  50% {
    background-position: 100% 50%;
    transform: translateX(-15%);
  }

  100% {
    background-position: 0% 50%;
    transform: translateX(100%);
  }
}

.app-loader[hidden] {
  display: none !important;
}

.app-loader {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 1.25rem;
  position: fixed;
  z-index: 2990;
}

.app-loader-backdrop {
  backdrop-filter: blur(4px);
  background: rgba(15, 23, 42, .42);
  inset: 0;
  position: absolute;
}

.app-loader-card {
  align-items: center;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
  display: flex;
  gap: 1rem;
  max-width: 360px;
  padding: 1.15rem 1.35rem;
  position: relative;
  width: 100%;
  z-index: 1;
}

.app-loader-spinner {
  animation: app-spin .75s linear infinite;
  border: 3px solid #e2e8f0;
  border-radius: 50%;
  border-top-color: var(--brand-blue);
  flex: 0 0 auto;
  height: 34px;
  width: 34px;
}

.app-loader-copy {
  display: grid;
  gap: .2rem;
  min-width: 0;
}

.app-loader-title {
  color: var(--secondary);
  font-family: "Outfit", "Nunito", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.app-loader-text {
  color: var(--muted);
  font-size: .92rem;
  font-weight: 600;
}

body.app-loading {
  cursor: progress;
  overflow: hidden;
}

.btn.is-loading {
  align-items: center;
  cursor: wait;
  display: inline-flex;
  gap: .55rem;
  justify-content: center;
  opacity: .92;
  pointer-events: none;
}

.btn-spinner {
  animation: app-spin .75s linear infinite;
  border: 2px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  border-top-color: #fff;
  display: inline-block;
  height: 1rem;
  width: 1rem;
}

.btn-outline-primary.is-loading .btn-spinner,
.btn-outline-secondary.is-loading .btn-spinner,
.btn-link.is-loading .btn-spinner {
  border-color: rgba(37, 99, 235, .25);
  border-top-color: var(--brand-blue);
}

@keyframes app-spin {
  to {
    transform: rotate(360deg);
  }
}

.app-toast-host {
  bottom: 1.25rem;
  display: grid;
  gap: .65rem;
  pointer-events: none;
  position: fixed;
  right: 1.25rem;
  width: min(360px, calc(100vw - 2rem));
  z-index: 3100;
}

.app-toast {
  background: #0f172a;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .28);
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  opacity: 0;
  padding: .9rem 1.05rem;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
}

.app-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.app-toast.is-error {
  background: #b91c1c;
}