@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@600;700;800&display=swap');

body.ms-theme {
  margin: 0;
  min-height: 100vh;
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  color: #0f172a;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 30%),
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.13), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #eef6ff 58%, #f6fbf8 100%);
  -webkit-tap-highlight-color: transparent;
  scrollbar-color: #93c5fd #e5eefb;
}

.ms-theme * {
  box-sizing: border-box;
}

.ms-theme ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.ms-theme ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
  border-radius: 999px;
}

.ms-theme ::-webkit-scrollbar-track {
  background: #e5eefb;
}

.ms-theme a {
  color: inherit;
  text-decoration: none;
}

.ms-theme .skip-link {
  position: absolute;
  left: 18px;
  top: -48px;
  z-index: 120;
  padding: 12px 16px;
  border-radius: 14px;
  background: #0f172a;
  color: #fff;
  font-weight: 800;
}

.ms-theme .skip-link:focus {
  top: 18px;
}

.ms-theme button,
.ms-theme input,
.ms-theme select,
.ms-theme textarea {
  font: inherit;
}

.ms-theme .app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ms-theme .navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 18px 18px 0;
  background: transparent;
}

.ms-theme .nav-container {
  width: min(1240px, calc(100vw - 24px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
}

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

.ms-theme .nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 8px;
  flex-wrap: wrap;
}

.ms-theme .nav-brand {
  display: inline-flex;
  align-items: center;
}

.ms-theme .nav-logo,
.ms-theme .footer-brand-logo {
  width: auto;
  height: 52px;
  display: block;
}

.ms-theme .footer-brand-logo {
  height: 62px;
}

.ms-theme .nav-link,
.ms-theme .nav-auth-link,
.ms-theme .btn {
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.ms-theme .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #334155;
  font-weight: 700;
}

.ms-theme .nav-link:hover,
.ms-theme .nav-link.active {
  transform: translateY(-1px);
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
}

.ms-theme .nav-link-icon {
  display: none;
}

.ms-theme .nav-auth-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.ms-theme .nav-auth-link,
.ms-theme .nav-auth-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.88);
  color: #0f172a;
  font-weight: 800;
}

.ms-theme .nav-auth-link.signup,
.ms-theme .btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 58%, #10b981 100%);
  color: #fff;
  box-shadow: 0 18px 30px rgba(37, 99, 235, 0.2);
}

.ms-theme .nav-auth-link.install,
.ms-theme .btn-accent {
  border-color: transparent;
  background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
  color: #fff;
  box-shadow: 0 16px 28px rgba(249, 115, 22, 0.22);
}

.ms-theme .nav-auth-link.login,
.ms-theme .btn-outline,
.ms-theme .btn-secondary {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.14);
  color: #1d4ed8;
}

.ms-theme .nav-auth-user {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  font-size: 0.92rem;
  font-weight: 800;
}

.ms-theme .nav-auth-logout {
  border: none;
  cursor: pointer;
}

.ms-theme .nav-auth-link:hover,
.ms-theme .nav-auth-logout:hover,
.ms-theme .btn:hover {
  transform: translateY(-1px);
}

.ms-theme .mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.ms-theme .mobile-menu-toggle span {
  width: 22px;
  height: 2.5px;
  border-radius: 999px;
  background: #1d4ed8;
}

.ms-theme .mobile-auth-slot {
  display: none;
}

.ms-shell {
  width: min(1240px, calc(100vw - 24px));
  margin: 0 auto;
}

.ms-home main {
  padding: 28px 0 68px;
}

.ms-home .nav-container {
  padding: 14px 18px;
}

.ms-home .nav-center {
  gap: 2px;
}

.ms-home .nav-link {
  padding: 11px 15px;
  font-size: 0.96rem;
}

.ms-home-proofbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 22px;
  padding: 6px;
  border-radius: 28px;
}

.ms-home-proofitem {
  padding: 16px 18px;
  border-right: 1px solid rgba(148, 163, 184, 0.16);
}

.ms-home-proofitem:last-child {
  border-right: none;
}

.ms-home-prooflabel {
  display: block;
  margin-bottom: 8px;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ms-home-proofitem strong {
  display: block;
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.ms-home-proofitem p {
  margin: 0;
  color: #475569;
  font-size: 0.94rem;
  line-height: 1.6;
}

.ms-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(320px, 0.86fr);
  gap: 24px;
  align-items: stretch;
}

.ms-hero-pro {
  align-items: start;
}

.ms-surface {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 26px 64px rgba(15, 23, 42, 0.1);
}

.ms-surface::before {
  content: '';
  position: absolute;
  inset: auto -60px -70px auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18), transparent 72%);
  pointer-events: none;
}

.ms-hero-copy,
.ms-hero-panel,
.ms-section,
.ms-price-card,
.ms-auth-panel,
.ms-auth-side {
  animation: ms-rise 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes ms-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ms-hero-copy {
  padding: 36px;
}

.ms-hero-copy-pro {
  padding: 38px;
}

.ms-eyebrow,
.ms-kicker,
.ms-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ms-eyebrow,
.ms-kicker {
  padding: 10px 14px;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
}

.ms-hero h1,
.ms-section h2,
.ms-auth-panel h1,
.ms-auth-side h2,
.site-footer h4 {
  font-family: 'Sora', 'Segoe UI', sans-serif;
  letter-spacing: -0.04em;
}

.ms-hero h1 {
  margin: 20px 0 14px;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.95;
  max-width: 10.5ch;
}

.ms-hero-pro h1 {
  font-size: clamp(2.15rem, 3.5vw, 3.45rem);
  max-width: 10.8ch;
  line-height: 0.98;
}

.ms-hero h1 span {
  display: block;
}

.ms-hero h1 .accent {
  color: #1d4ed8;
}

.ms-copy,
.ms-section-copy,
.ms-auth-lead,
.auth-subtitle {
  color: #475569;
  font-size: 1.04rem;
  line-height: 1.72;
}

.ms-action-row,
.ms-pill-row,
.ms-price-actions,
.ms-auth-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ms-theme .btn,
.ms-theme .auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
}

.ms-pill-row {
  margin: 22px 0 0;
}

.ms-home-trustline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.ms-home-trustline span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(248, 250, 252, 0.88);
  color: #334155;
  font-size: 0.9rem;
  font-weight: 700;
}

.ms-home-kpi-grid,
.ms-home-board-grid,
.ms-home-board-brief {
  display: grid;
  gap: 14px;
}

.ms-home-kpi-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.ms-home-kpi {
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.96) 100%);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.05);
}

.ms-home-kpi-label {
  display: block;
  margin-bottom: 10px;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ms-home-kpi strong {
  display: block;
  margin-bottom: 8px;
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: 1.08rem;
  line-height: 1.35;
}

.ms-home-kpi p {
  margin: 0;
  color: #475569;
  line-height: 1.65;
  font-size: 0.94rem;
}

.ms-chip {
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.04);
  color: #0f172a;
}

.ms-metric-grid,
.ms-grid-2,
.ms-grid-3,
.ms-grid-4,
.ms-pricing-grid,
.ms-roadmap {
  display: grid;
  gap: 18px;
}

.ms-metric-grid {
  margin-top: 28px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ms-metric,
.ms-card,
.ms-mini-card,
.ms-price-card,
.ms-roadmap-step,
.ms-auth-stat {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.ms-metric {
  padding: 20px;
}

.ms-metric strong {
  display: block;
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: #0f172a;
}

.ms-metric span {
  color: #475569;
  font-weight: 700;
}

.ms-hero-panel {
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.94) 0%, rgba(29, 78, 216, 0.96) 100%),
    linear-gradient(180deg, rgba(16, 185, 129, 0.14), transparent);
  color: #eff6ff;
}

.ms-home-board {
  padding: 30px;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 34%),
    linear-gradient(180deg, #0f172a 0%, #172554 48%, #1d4ed8 100%);
  border-color: rgba(191, 219, 254, 0.14);
}

.ms-home-board::before {
  inset: auto -80px -90px auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2), transparent 72%);
}

.ms-home-board .ms-copy {
  color: rgba(226, 232, 240, 0.86);
}

.ms-home-board-grid {
  margin-top: 20px;
}

.ms-home-board-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ms-home-board-label {
  display: block;
  margin-bottom: 8px;
  color: rgba(191, 219, 254, 0.88);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ms-home-board-card strong {
  display: block;
  margin-bottom: 8px;
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: 1.04rem;
}

.ms-home-board-card p {
  margin: 0;
  color: rgba(226, 232, 240, 0.82);
  line-height: 1.65;
}

.ms-home-board-brief {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.ms-home-board-metric {
  padding: 16px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(191, 219, 254, 0.12);
}

.ms-home-board-metric span {
  display: block;
  margin-bottom: 7px;
  color: rgba(191, 219, 254, 0.86);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ms-home-board-metric strong {
  display: block;
  color: #ffffff;
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.4;
}

.ms-home-board-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ms-home-board-note span {
  display: block;
  margin-bottom: 7px;
  color: rgba(191, 219, 254, 0.86);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ms-home-board-note strong {
  display: block;
  color: #ffffff;
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

.ms-home-board-note a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #eff6ff;
  font-weight: 800;
  white-space: nowrap;
}

.ms-home .ms-card-icon {
  width: auto;
  height: auto;
  padding: 8px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
}

.ms-panel-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.ms-mini-card {
  padding: 18px;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.14);
  color: #eff6ff;
}

.ms-mini-card strong,
.ms-card h3,
.ms-price-card h3,
.ms-roadmap-step h3,
.ms-auth-side h2 {
  display: block;
  margin-bottom: 8px;
  font-family: 'Sora', 'Segoe UI', sans-serif;
}

.ms-mini-card p,
.ms-card p,
.ms-price-card p,
.ms-roadmap-step p,
.ms-list,
.ms-price-features li,
.ms-auth-side li {
  color: inherit;
  line-height: 1.65;
}

.ms-mini-card p {
  color: rgba(239, 246, 255, 0.84);
}

.ms-section {
  margin-top: 26px;
  padding: 32px;
}

.ms-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.ms-section h2 {
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  margin: 10px 0 0;
}

.ms-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ms-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ms-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ms-card,
.ms-price-card,
.ms-roadmap-step {
  padding: 22px;
}

.ms-card-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin-bottom: 16px;
  font-size: 1.4rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14) 0%, rgba(16, 185, 129, 0.12) 100%);
}

.ms-list,
.ms-price-features,
.ms-auth-side ul {
  padding-left: 18px;
  margin: 14px 0 0;
}

.ms-list li,
.ms-price-features li,
.ms-auth-side li {
  margin-bottom: 10px;
}

.ms-band {
  margin-top: 26px;
  padding: 28px 32px;
  border-radius: 30px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 46%, #0f766e 100%);
  color: #e2f6ee;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.18);
}

.ms-band-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: start;
}

.ms-band h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.ms-band ul {
  margin: 16px 0 0;
  padding-left: 18px;
}

.ms-band li {
  margin-bottom: 10px;
}

.ms-pricing-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ms-price-card.featured {
  position: relative;
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.24);
  box-shadow: 0 20px 44px rgba(37, 99, 235, 0.16);
}

.ms-price-card.featured::before {
  content: 'Recommended';
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ms-price-tag {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 14px 0;
}

.ms-price-tag strong {
  font-size: 2rem;
  font-family: 'Sora', 'Segoe UI', sans-serif;
}

.ms-price-tag span {
  color: #475569;
  font-weight: 700;
}

.ms-roadmap {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ms-roadmap-step span {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  font-weight: 800;
  margin-bottom: 14px;
}

.ms-cta {
  margin-top: 26px;
  padding: 32px;
  border-radius: 32px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 54%, #10b981 100%);
  color: #eff6ff;
  box-shadow: 0 28px 64px rgba(37, 99, 235, 0.2);
}

.ms-cta h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 3vw, 3rem);
}

.ms-cta p {
  max-width: 62ch;
  margin: 0 0 18px;
  color: rgba(239, 246, 255, 0.9);
  line-height: 1.7;
}

.ms-page-main,
.ms-legal-main {
  flex: 1;
  padding: 28px 18px 68px;
}

.ms-page-shell,
.ms-legal-shell {
  width: min(1240px, calc(100vw - 24px));
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.ms-page-hero,
.ms-legal-hero {
  display: grid;
  gap: 24px;
  align-items: stretch;
  padding: 34px;
}

.ms-page-hero,
.ms-legal-hero,
.ms-page-summary,
.ms-auth-side {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.ms-page-hero > *,
.ms-legal-hero > *,
.ms-page-summary > *,
.ms-auth-side > * {
  position: relative;
  z-index: 1;
}

.ms-page-summary::before,
.ms-auth-side::before {
  content: '';
  position: absolute;
  top: 24px;
  right: 24px;
  width: 84px;
  height: 84px;
  border-radius: 24px;
  background-image: url('images/myschoolexam-mark.svg'), linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(219, 234, 254, 0.98));
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: 46px 46px, cover;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
  z-index: 0;
}

.ms-page-summary::after,
.ms-legal-hero::after,
.ms-auth-side::after {
  content: '';
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.22), transparent 70%);
  z-index: 0;
}

.ms-auth-side::before {
  background-image: url('images/myschoolexam-mark.svg'), linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.ms-auth-side::after {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 70%);
}

.ms-page-hero {
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
}

.ms-legal-hero {
  grid-template-columns: minmax(0, 1fr) auto;
}

.ms-page-hero-copy h1,
.ms-legal-hero-copy h1 {
  margin: 12px 0 14px;
  font-size: clamp(2.3rem, 3.8vw, 4rem);
  line-height: 1.08;
}

.ms-page-lead,
.ms-legal-hero-copy p {
  max-width: 64ch;
  margin: 0;
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.78;
}

.ms-page-pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.ms-page-pill,
.ms-legal-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ms-page-summary,
.ms-page-card,
.ms-page-section,
.ms-legal-sheet {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.08);
}

.ms-page-summary {
  padding: 28px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(29, 78, 216, 0.97) 100%);
  color: #eff6ff;
}

.ms-page-summary h2 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  padding-right: 92px;
}

.ms-page-summary p,
.ms-page-summary li {
  color: rgba(239, 246, 255, 0.84);
  line-height: 1.7;
}

.ms-page-summary ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.ms-page-card-grid,
.ms-page-dual,
.ms-page-form-grid {
  display: grid;
  gap: 20px;
}

.ms-page-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ms-page-dual,
.ms-page-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ms-page-card,
.ms-page-section,
.ms-legal-sheet {
  padding: 28px;
}

.ms-page-card h3,
.ms-page-section h2,
.ms-legal-sheet h2,
.ms-legal-sheet h3 {
  margin-top: 0;
  color: #0f172a;
}

.ms-page-card h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.ms-page-card p,
.ms-page-section p,
.ms-legal-sheet p,
.ms-legal-sheet li {
  margin: 0;
  color: #475569;
  line-height: 1.78;
}

.ms-page-card p + p,
.ms-page-section p + p,
.ms-legal-sheet p + p,
.ms-legal-sheet p + ul,
.ms-legal-sheet ul + p,
.ms-legal-sheet h2 + p,
.ms-legal-sheet h3 + p {
  margin-top: 14px;
}

.ms-page-list,
.ms-legal-sheet ul,
.ms-legal-sheet ol {
  margin: 16px 0 0;
  padding-left: 18px;
}

.ms-page-list li,
.ms-legal-sheet li {
  margin-bottom: 10px;
}

.ms-page-note,
.ms-legal-callout,
.ms-legal-warning {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 22px;
}

.ms-page-note,
.ms-legal-callout {
  border: 1px solid rgba(37, 99, 235, 0.16);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
}

.ms-legal-warning {
  border: 1px solid rgba(249, 115, 22, 0.2);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.08) 0%, rgba(251, 191, 36, 0.08) 100%);
}

.ms-page-backlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1d4ed8;
  font-weight: 800;
}

.ms-page-backlink:hover {
  color: #0f172a;
}

.ms-legal-sheet a,
.ms-page-section a,
.ms-page-card a,
.ms-page-summary a {
  color: #1d4ed8;
  font-weight: 700;
}

.ms-page-form .auth-form {
  margin-top: 0;
}

.ms-page-form .auth-form label {
  font-weight: 800;
  color: #0f172a;
}

.ms-page-form .btn {
  justify-content: center;
}

.ms-theme .site-footer {
  margin-top: auto;
  padding: 52px 18px 24px;
  background: linear-gradient(135deg, #0f172a 0%, #111827 44%, #1d4ed8 100%);
  color: #dbeafe;
}

.ms-theme .footer-container {
  width: min(1240px, calc(100vw - 24px));
  margin: 0 auto;
}

.ms-theme .footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr;
  gap: 24px;
  margin-bottom: 26px;
}

.ms-theme .footer-brand-desc,
.ms-theme .footer-disclaimer,
.ms-theme .footer-links-list a {
  color: rgba(219, 234, 254, 0.82);
}

.ms-theme .footer-col-title {
  margin-bottom: 14px;
  font-size: 1rem;
  color: #fff;
}

.ms-theme .footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.ms-theme .footer-links-list a:hover {
  color: #fff;
}

.ms-theme .footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.ms-theme .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.ms-theme .footer-bottom {
  padding-top: 18px;
  border-top: 1px solid rgba(219, 234, 254, 0.14);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ms-theme .footer-copyright,
.ms-theme .footer-disclaimer {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
}

.ms-auth-page {
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 32%),
    radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.1), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #eef4ff 48%, #f4f8f2 100%);
}

.ms-auth-page .auth-page-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 22px 18px 56px;
}

.ms-auth-shell {
  width: min(760px, calc(100vw - 24px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
}

.ms-auth-side,
.ms-auth-panel {
  position: relative;
  overflow: hidden;
}

.ms-auth-panel {
  order: 1;
  padding: clamp(26px, 3vw, 38px);
}

.ms-auth-side {
  order: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px 16px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.88);
  color: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.ms-auth-side p,
.ms-auth-side li {
  color: #475569;
}

.ms-auth-side h2,
.ms-auth-panel h1,
.ms-auth-lead,
.auth-subtitle {
  margin-top: 0;
}

.ms-auth-side h2 {
  margin: 4px 0 0;
  max-width: none;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.ms-auth-lead,
.auth-subtitle {
  max-width: 42ch;
  line-height: 1.54;
}

.ms-auth-side .ms-auth-lead {
  margin: 6px 0 0;
  max-width: none;
  font-size: 0.95rem;
}

.ms-auth-side-copy {
  min-width: 0;
}

.ms-auth-side ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.ms-auth-side li {
  position: relative;
  padding-left: 18px;
}

.ms-auth-side li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #fbbf24;
}

.ms-auth-pills,
.ms-auth-inline-pills,
.ms-auth-alt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ms-auth-inline-pills {
  margin: 16px 0 0;
}

.ms-auth-inline-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(219, 234, 254, 0.84);
  color: #1d4ed8;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.ms-auth-status-badges {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ms-auth-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  background: rgba(239, 246, 255, 0.92);
  color: #1d4ed8;
  font-size: 0.8rem;
  font-weight: 800;
}

.ms-google-auth-stack {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.ms-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 0;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ms-auth-divider::before,
.ms-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.08) 0%, rgba(148, 163, 184, 0.3) 100%);
}

.ms-google-auth-button,
.ms-google-auth-button > div {
  width: 100%;
}

.ms-google-auth-note {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.6;
}

.ms-google-auth-note.is-error {
  color: #b91c1c;
  font-weight: 700;
}

.ms-auth-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.ms-auth-brand {
  display: block;
  width: 56px;
  height: 56px;
  margin-bottom: 0;
  padding: 10px;
  border-radius: 18px;
  background: rgba(37, 99, 235, 0.08);
  box-shadow: none;
}

.ms-auth-side .ms-kicker,
.ms-auth-side .ms-chip {
  background: rgba(219, 234, 254, 0.9);
  color: #1d4ed8;
}

.ms-form-hint {
  margin: -6px 0 4px;
  color: #64748b;
  font-size: 0.85rem;
  line-height: 1.55;
}

.ms-auth-stat {
  padding: 14px 15px;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 14px 28px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(10px);
}

.ms-auth-stat strong {
  display: block;
  margin-bottom: 4px;
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: 1.08rem;
}

.ms-theme .auth-card,
.ms-auth-panel {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  box-shadow: 0 26px 58px rgba(15, 23, 42, 0.08);
}

.ms-auth-panel {
  display: flex;
  flex-direction: column;
  padding-block: clamp(26px, 3vw, 38px);
}

.ms-theme .auth-card {
  width: 100%;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.ms-auth-panel h1 {
  font-size: clamp(2.2rem, 3vw, 3.2rem);
  margin-bottom: 10px;
}

.ms-auth-panel .ms-kicker {
  background: rgba(219, 234, 254, 0.82);
  color: #1d4ed8;
}

.ms-theme .auth-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.ms-theme .auth-form label + .form-input,
.ms-theme .auth-form label + select.form-input,
.ms-theme .auth-form label + textarea.form-input {
  margin-top: 8px;
}

.is-hidden {
  display: none !important;
}

.ms-signup-mode-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.ms-signup-mode {
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 20px;
  background: #eff6ff;
  color: #0f172a;
  font-weight: 800;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ms-signup-mode:hover,
.ms-signup-mode:focus-visible {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.ms-signup-mode.is-active {
  border-color: rgba(37, 99, 235, 0.4);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(16, 185, 129, 0.08) 100%);
  color: #1d4ed8;
}

.ms-signup-mode-picker.is-locked .ms-signup-mode:not(.is-active) {
  opacity: 0.52;
}

.ms-signup-note {
  margin: 0 0 18px;
}

.ms-signup-step-track {
  display: flex;
  gap: 10px;
  margin: 18px 0 16px;
}

.ms-signup-step-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.86);
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 800;
}

.ms-signup-step-chip.is-active {
  background: rgba(219, 234, 254, 0.92);
  color: #1d4ed8;
}

.ms-signup-step {
  display: none;
  gap: 16px;
}

.ms-signup-step.is-active {
  display: grid;
}

.ms-signup-route-note {
  margin: 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #475569;
  line-height: 1.55;
}

.ms-signup-step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ms-signup-step-actions .ms-form-hint {
  margin: 0;
}

.ms-signup-step-actions .auth-submit {
  width: auto;
  min-width: 180px;
  margin-top: 0;
}

.ms-auth-step-back {
  min-width: 110px;
}

.ms-signup-pair,
.ms-signup-mode-panel {
  display: grid;
  gap: 14px;
}

.ms-signup-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ms-signup-invite-meta {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  background: rgba(239, 246, 255, 0.92);
}

.ms-signup-invite-meta p {
  margin: 0;
  color: #475569;
  line-height: 1.65;
}

.ms-admin-toolbar {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.ms-admin-output {
  min-height: 180px;
}

.ms-admin-output code {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 12px;
  background: #e2e8f0;
  color: #0f172a;
  font-family: 'IBM Plex Mono', 'Consolas', monospace;
  font-size: 0.9rem;
}

.ms-admin-card-stack {
  display: grid;
  gap: 14px;
}

.ms-admin-card-line {
  color: #475569;
  line-height: 1.7;
}

.ms-admin-student-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.6fr);
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(239, 246, 255, 0.88);
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.ms-admin-student-row p {
  margin: 6px 0 0;
}

.ms-theme .auth-form label {
  font-weight: 800;
  color: #334155;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.ms-theme .form-input {
  width: 100%;
  min-height: 60px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 0.96) 100%);
  color: #0f172a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 8px 22px rgba(148, 163, 184, 0.08);
  font-size: 1rem;
  font-weight: 600;
}

.ms-theme .form-input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.ms-theme textarea.form-input {
  min-height: 140px;
  padding: 14px 16px;
}

.ms-theme .form-input:focus {
  outline: 3px solid rgba(37, 99, 235, 0.18);
  border-color: rgba(37, 99, 235, 0.4);
}

.ms-theme .form-input:hover {
  border-color: rgba(59, 130, 246, 0.38);
}

.ms-theme .auth-error {
  min-height: 1.4em;
  margin: 12px 0 0;
  color: #b91c1c;
  font-weight: 700;
}

.ms-theme .auth-submit {
  width: 100%;
  min-height: 58px;
  margin-top: 2px;
  border-radius: 18px;
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.2);
}

.ms-auth-alt-actions {
  margin-top: 16px;
}

.ms-auth-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.86);
  color: #334155;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.ms-auth-secondary-link:hover,
.ms-auth-secondary-link:focus-visible {
  border-color: rgba(37, 99, 235, 0.3);
  background: rgba(239, 246, 255, 0.94);
  color: #1d4ed8;
  transform: translateY(-1px);
}

.ms-theme .login-footer {
  margin-top: 14px;
  color: #475569;
}

.ms-theme .login-link {
  color: #1d4ed8;
  font-weight: 800;
}

@media (max-width: 720px) {
  .ms-signup-mode-picker,
  .ms-signup-pair {
    grid-template-columns: minmax(0, 1fr);
  }

  .ms-auth-side {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .ms-signup-step-track,
  .ms-signup-step-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ms-signup-step-actions .auth-submit,
  .ms-auth-step-back {
    width: 100%;
  }

  .ms-auth-divider {
    letter-spacing: 0.1em;
  }

  .ms-auth-inline-pills,
  .ms-auth-alt-actions {
    gap: 8px;
  }

  .ms-auth-inline-pill,
  .ms-auth-secondary-link {
    width: 100%;
    justify-content: center;
  }

  .ms-admin-student-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1120px) {
  .ms-home-proofbar,
  .ms-home-kpi-grid,
  .ms-home-board-brief,
  .ms-metric-grid,
  .ms-grid-4,
  .ms-pricing-grid,
  .ms-roadmap,
  .ms-theme .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .ms-theme .nav-container {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .ms-theme .mobile-menu-toggle {
    display: inline-flex;
  }

  .ms-theme .nav-center {
    display: none;
    width: 100%;
    order: 3;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 8px;
  }

  .ms-theme .nav-center.active {
    display: flex;
  }

  .ms-theme .mobile-auth-slot {
    display: block;
    width: 100%;
  }

  .ms-theme .nav-right {
    margin-left: auto;
  }

  .ms-hero,
  .ms-band-grid,
  .ms-auth-shell,
  .ms-page-hero,
  .ms-legal-hero,
  .ms-page-dual,
  .ms-page-form-grid {
    grid-template-columns: 1fr;
  }

  .ms-home-board-note {
    flex-direction: column;
    align-items: flex-start;
  }

  .ms-theme .nav-auth-actions {
    justify-content: flex-start;
  }

  .ms-auth-panel {
    order: 1;
  }

  .ms-auth-side {
    order: 2;
    gap: 16px;
  }
}

@media (max-width: 720px) {
  .ms-home-proofbar,
  .ms-home-kpi-grid,
  .ms-home-board-brief,
  .ms-metric-grid,
  .ms-grid-3,
  .ms-grid-2,
  .ms-grid-4,
  .ms-pricing-grid,
  .ms-roadmap,
  .ms-page-card-grid,
  .ms-theme .footer-grid,
  .ms-auth-stats {
    grid-template-columns: 1fr;
  }

  .ms-hero-copy,
  .ms-hero-panel,
  .ms-section,
  .ms-band,
  .ms-auth-panel,
  .ms-auth-side,
  .ms-page-hero,
  .ms-legal-hero,
  .ms-page-summary,
  .ms-page-card,
  .ms-page-section,
  .ms-legal-sheet {
    padding: 24px;
  }

  .ms-theme .nav-logo,
  .ms-theme .footer-brand-logo {
    height: 46px;
  }

  .ms-theme .site-footer {
    padding-top: 40px;
  }

  .ms-page-hero-copy h1,
  .ms-legal-hero-copy h1,
  .ms-auth-panel h1,
  .ms-auth-side h2 {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }

  .ms-page-lead,
  .ms-legal-hero-copy p {
    font-size: 0.98rem;
    line-height: 1.72;
  }

  .ms-page-pill-row {
    flex-direction: column;
    align-items: stretch;
  }

  .ms-page-pill,
  .ms-legal-meta {
    width: 100%;
    min-height: 44px;
    justify-content: flex-start;
    padding: 12px 14px;
    border-radius: 18px;
  }

  .ms-page-summary::before,
  .ms-auth-side::before {
    top: 18px;
    right: 18px;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background-size: 34px 34px, cover;
  }

  .ms-page-summary::after,
  .ms-legal-hero::after,
  .ms-auth-side::after {
    right: -56px;
    bottom: -78px;
    width: 170px;
    height: 170px;
  }

  .ms-page-summary h2 {
    padding-right: 72px;
    font-size: clamp(1.35rem, 7vw, 1.7rem);
  }

  .ms-auth-brand {
    width: 72px;
    height: 72px;
    padding: 14px;
    border-radius: 20px;
  }

  .ms-auth-stats {
    gap: 12px;
  }
}

/* ===================================================
   HOMEPAGE REDESIGN
   =================================================== */

.ms-homepage {
  --home-blue: #2563eb;
  --home-blue-deep: #1d4ed8;
  --home-green: #10b981;
  --home-ink: #0f172a;
  --home-mist: #eaf2ff;
  --home-card-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 26px;
}

.ms-homepage > section {
  margin-top: 0;
}

.ms-home-hero,
.ms-home-duo,
.ms-home-band {
  display: grid;
  gap: 24px;
}

.ms-home-hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  align-items: stretch;
}

.ms-home-hero-copy,
.ms-home-hero-visual,
.ms-home-section,
.ms-home-route-panel,
.ms-home-coverage-panel {
  padding: 34px;
}

.ms-home-hero-copy {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 32%),
    radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.12), transparent 28%),
    rgba(255, 255, 255, 0.92);
}

.ms-home-hero-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ms-home-hero-tag,
.ms-home-feature-tag,
.ms-home-group-label,
.ms-home-visual-label,
.ms-home-band-kicker,
.ms-home-clarity-item span,
.ms-home-step-number,
.ms-home-hero-fact span,
.ms-home-hero-note span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ms-home-hero-tag {
  min-height: 40px;
  padding: 0 14px;
  background: rgba(15, 23, 42, 0.05);
  color: #334155;
}

.ms-home-hero-copy h1 {
  margin: 18px 0 14px;
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: clamp(2.6rem, 4.8vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  max-width: 11ch;
}

.ms-home-hero-actions {
  margin-top: 26px;
}

.ms-home-hero-facts,
.ms-home-feature-grid,
.ms-home-audience-grid,
.ms-home-start-grid {
  display: grid;
  gap: 16px;
}

.ms-home-hero-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
}

.ms-home-hero-fact,
.ms-home-feature-card,
.ms-home-audience-card,
.ms-home-start-card,
.ms-home-clarity-item,
.ms-home-compare-card,
.ms-home-faq-item {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  box-shadow: var(--home-card-shadow);
}

.ms-home-hero-fact {
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 246, 255, 0.92) 100%);
}

.ms-home-hero-fact span {
  margin-bottom: 10px;
  color: #64748b;
  background: rgba(248, 250, 252, 0.92);
}

.ms-home-hero-fact strong {
  display: block;
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.45;
}

.ms-home-hero-visual {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.28), transparent 28%),
    radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.22), transparent 30%),
    linear-gradient(160deg, #0f172a 0%, #172554 55%, #1d4ed8 100%);
  border-color: rgba(191, 219, 254, 0.18);
  color: #eff6ff;
}

.ms-home-hero-visual::before {
  content: '';
  position: absolute;
  inset: 24px 24px auto auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 68%);
  pointer-events: none;
}

.ms-home-visual-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.ms-home-visual-mark {
  width: 70px;
  height: 70px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  animation: ms-home-float 6s ease-in-out infinite;
}

@keyframes ms-home-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.ms-home-visual-label {
  margin-bottom: 8px;
  color: rgba(191, 219, 254, 0.9);
}

.ms-home-visual-header strong {
  display: block;
  max-width: 18ch;
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: 1.35rem;
  line-height: 1.35;
}

.ms-home-visual-board {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.ms-home-visual-panel,
.ms-home-progress-card,
.ms-home-hero-note,
.ms-home-visual-stat,
.ms-home-route-panel,
.ms-home-coverage-panel,
.ms-home-feature-card,
.ms-home-audience-card,
.ms-home-start-card {
  position: relative;
  overflow: hidden;
}

.ms-home-visual-panel,
.ms-home-progress-card,
.ms-home-hero-note,
.ms-home-visual-stat {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ms-home-visual-panel span,
.ms-home-visual-stat span {
  display: block;
  margin-bottom: 8px;
  color: rgba(191, 219, 254, 0.86);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ms-home-visual-panel strong,
.ms-home-visual-stat strong,
.ms-home-hero-note strong,
.ms-home-feature-card h3,
.ms-home-audience-card h3,
.ms-home-start-card h3,
.ms-home-compare-card h3,
.ms-home-route-panel h2,
.ms-home-coverage-panel h2,
.ms-home-section h2 {
  display: block;
  font-family: 'Sora', 'Segoe UI', sans-serif;
}

.ms-home-visual-panel strong {
  font-size: 1.12rem;
  line-height: 1.45;
}

.ms-home-visual-panel p,
.ms-home-hero-note strong,
.ms-home-band p,
.ms-home-feature-card p,
.ms-home-audience-card p,
.ms-home-start-card p,
.ms-home-compare-card li,
.ms-home-step p,
.ms-home-faq-item p,
.ms-home-clarity-item p {
  line-height: 1.7;
}

.ms-home-visual-panel p {
  margin: 10px 0 0;
  color: rgba(226, 232, 240, 0.84);
}

.ms-home-visual-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ms-home-visual-stat strong {
  font-size: 1rem;
  line-height: 1.4;
}

.ms-home-visual-subjects,
.ms-home-chip-row,
.ms-home-band-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ms-home-visual-subjects a,
.ms-home-link-pill,
.ms-home-band-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #eff6ff;
  font-weight: 700;
}

.ms-home-link-pill {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(248, 250, 252, 0.92);
  color: #0f172a;
}

.ms-home-progress-card {
  display: grid;
  gap: 14px;
}

.ms-home-progress-item {
  display: grid;
  gap: 8px;
}

.ms-home-progress-item strong {
  display: block;
  font-size: 1rem;
}

.ms-home-progress-item span {
  color: rgba(226, 232, 240, 0.84);
  font-size: 0.92rem;
}

.ms-home-progress-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.ms-home-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #34d399 0%, #60a5fa 100%);
}

.ms-home-progress-fill.is-high {
  width: 84%;
}

.ms-home-progress-fill.is-medium {
  width: 68%;
}

.ms-home-progress-fill.is-rising {
  width: 56%;
}

.ms-home-hero-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
}

.ms-home-hero-note span {
  margin-bottom: 8px;
  color: rgba(191, 219, 254, 0.9);
}

.ms-home-hero-note strong {
  color: #ffffff;
  font-size: 1rem;
}

.ms-home-hero-note a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-weight: 800;
  white-space: nowrap;
}

.ms-home-clarity-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 14px;
}

.ms-home-clarity-item {
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 249, 255, 0.92) 100%);
}

.ms-home-clarity-item span {
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--home-blue-deep);
}

.ms-home-clarity-item strong {
  display: block;
  margin-bottom: 8px;
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: 1.04rem;
}

.ms-home-clarity-item p,
.ms-home-feature-card p,
.ms-home-audience-card p,
.ms-home-start-card p,
.ms-home-faq-item p,
.ms-home-step p {
  margin: 0;
  color: #475569;
}

.ms-home-section {
  background: rgba(255, 255, 255, 0.92);
}

.ms-home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.ms-home-section h2,
.ms-home-route-panel h2,
.ms-home-coverage-panel h2 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  letter-spacing: -0.05em;
}

.ms-home-feature-grid,
.ms-home-audience-grid,
.ms-home-start-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ms-home-feature-card,
.ms-home-audience-card,
.ms-home-start-card {
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.94) 100%);
}

.ms-home-feature-tag,
.ms-home-group-label {
  min-height: 34px;
  padding: 0 12px;
  color: var(--home-blue-deep);
  background: rgba(37, 99, 235, 0.08);
}

.ms-home-feature-card h3,
.ms-home-audience-card h3,
.ms-home-start-card h3 {
  margin: 16px 0 10px;
  font-size: 1.2rem;
  line-height: 1.42;
}

.ms-home-feature-card a,
.ms-home-audience-card a,
.ms-home-start-card a,
.ms-home-link-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-weight: 800;
  color: var(--home-blue-deep);
}

.ms-home-feature-card a::after,
.ms-home-audience-card a::after,
.ms-home-start-card a::after,
.ms-home-link-chip::after {
  content: '→';
}

.ms-home-feature-card:hover,
.ms-home-audience-card:hover,
.ms-home-start-card:hover,
.ms-home-clarity-item:hover,
.ms-home-compare-card:hover {
  transform: translateY(-3px);
  transition: transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 28px 56px rgba(15, 23, 42, 0.12);
}

.ms-home-duo {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.ms-home-route-panel,
.ms-home-coverage-panel {
  background: rgba(255, 255, 255, 0.92);
}

.ms-home-step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.ms-home-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, rgba(239, 246, 255, 0.86) 100%);
}

.ms-home-step-number {
  width: 46px;
  height: 46px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--home-blue) 0%, var(--home-green) 100%);
}

.ms-home-step strong {
  display: block;
  margin-bottom: 8px;
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: 1.06rem;
}

.ms-home-coverage-group + .ms-home-coverage-group {
  margin-top: 22px;
}

.ms-home-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.94) 100%);
  color: #334155;
  font-weight: 700;
}

.ms-home-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  margin-top: 12px;
}

.ms-home-link-chip {
  min-height: 48px;
  padding: 0 16px;
  justify-content: space-between;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(248, 250, 252, 0.92);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.ms-home-band {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  padding: 34px;
  border-radius: 34px;
  background: linear-gradient(135deg, #0f172a 0%, #172554 52%, #0f766e 100%);
  color: #eff6ff;
  box-shadow: 0 28px 64px rgba(15, 23, 42, 0.22);
}

.ms-home-band-kicker {
  background: rgba(255, 255, 255, 0.12);
  color: #dbeafe;
}

.ms-home-band h2 {
  margin: 16px 0 10px;
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.ms-home-band p {
  margin: 0;
  color: rgba(226, 232, 240, 0.88);
}

.ms-home-band-link.secondary {
  background: rgba(255, 255, 255, 0.08);
}

.ms-home-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ms-home-compare-card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.ms-home-compare-card.accent {
  background: rgba(15, 23, 42, 0.28);
}

.ms-home-compare-card h3 {
  margin: 0 0 12px;
  font-size: 1.16rem;
}

.ms-home-bullet-list {
  margin: 0;
  padding-left: 18px;
}

.ms-home-bullet-list li + li {
  margin-top: 10px;
}

.ms-home-faq-list {
  display: grid;
  gap: 14px;
}

.ms-home-faq-item {
  padding: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.94) 100%);
}

.ms-home-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 22px;
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
}

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

.ms-home-faq-item p {
  padding: 0 22px 20px;
}

.ms-home-faq-item[open] {
  border-color: rgba(37, 99, 235, 0.22);
}

@media (max-width: 1120px) {
  .ms-home-hero,
  .ms-home-duo,
  .ms-home-band {
    grid-template-columns: 1fr;
  }

  .ms-home-clarity-strip,
  .ms-home-hero-facts,
  .ms-home-feature-grid,
  .ms-home-audience-grid,
  .ms-home-start-grid,
  .ms-home-compare {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .ms-home-hero-copy,
  .ms-home-hero-visual,
  .ms-home-section,
  .ms-home-route-panel,
  .ms-home-coverage-panel,
  .ms-home-band {
    padding: 24px;
  }

  .ms-home-visual-stats,
  .ms-home-link-grid {
    grid-template-columns: 1fr;
  }

  .ms-home-hero-note {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .ms-homepage {
    gap: 18px;
  }

  .ms-home-hero-copy h1 {
    max-width: none;
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

  .ms-home-hero-actions .btn,
  .ms-home-band-link {
    width: 100%;
  }

  .ms-home-clarity-strip,
  .ms-home-hero-facts,
  .ms-home-feature-grid,
  .ms-home-audience-grid,
  .ms-home-start-grid,
  .ms-home-compare {
    grid-template-columns: 1fr;
  }

  .ms-home-hero-topline,
  .ms-home-section-head {
    align-items: flex-start;
  }

  .ms-home-step {
    grid-template-columns: 1fr;
  }

  .ms-home-visual-mark {
    width: 60px;
    height: 60px;
  }

  .ms-home-visual-header strong {
    max-width: none;
  }

  .ms-home-visual-subjects a,
  .ms-home-link-pill,
  .ms-home-chip,
  .ms-home-link-chip {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 920px) {
  .ms-page-card-grid,
  .ms-page-form-grid,
  .ms-home-proofbar,
  .ms-home-kpi-grid,
  .ms-home-board-brief,
  .ms-theme .footer-grid {
    grid-template-columns: 1fr;
  }

  .ms-hero-copy,
  .ms-hero-panel,
  .ms-section,
  .ms-band,
  .ms-page-hero,
  .ms-page-summary,
  .ms-page-card,
  .ms-page-section,
  .ms-home-hero-copy,
  .ms-home-hero-visual,
  .ms-home-section,
  .ms-home-route-panel,
  .ms-home-coverage-panel,
  .ms-home-band {
    padding: clamp(22px, 4vw, 28px);
  }

  .ms-page-pill-row,
  .ms-home-hero-actions,
  .ms-home-section-head,
  .ms-home-hero-topline,
  .ms-home-board-note {
    align-items: flex-start;
  }

  .ms-home-hero-facts,
  .ms-home-feature-grid,
  .ms-home-audience-grid,
  .ms-home-start-grid,
  .ms-home-compare,
  .ms-home-link-grid,
  .ms-home-visual-stats {
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .ms-hero-copy,
  .ms-hero-panel,
  .ms-section,
  .ms-band,
  .ms-page-hero,
  .ms-page-summary,
  .ms-page-card,
  .ms-page-section,
  .ms-home-hero-copy,
  .ms-home-hero-visual,
  .ms-home-section,
  .ms-home-route-panel,
  .ms-home-coverage-panel,
  .ms-home-band {
    padding: 20px;
    border-radius: 20px;
  }

  .ms-page-hero-copy h1,
  .ms-legal-hero-copy h1,
  .ms-auth-panel h1,
  .ms-auth-side h2,
  .ms-home-hero-copy h1 {
    font-size: clamp(1.9rem, 9vw, 2.7rem);
  }

  .ms-page-lead,
  .ms-legal-hero-copy p,
  .ms-home-hero-copy p,
  .ms-home-section p,
  .ms-home-hero-note,
  .ms-home-feature-card p,
  .ms-home-audience-card p,
  .ms-home-start-card p {
    font-size: 0.95rem;
    line-height: 1.62;
  }

  .ms-page-pill-row,
  .ms-home-hero-actions,
  .ms-home-section-head,
  .ms-home-hero-topline {
    gap: 10px;
  }

  .ms-page-pill,
  .ms-legal-meta,
  .ms-home-band-link,
  .ms-home-link-pill,
  .ms-home-chip,
  .ms-home-link-chip,
  .ms-home-visual-subjects a,
  .ms-home-hero-actions .btn,
  .ms-home-step .btn {
    width: 100%;
    justify-content: center;
  }

  .ms-home-hero-fact,
  .ms-home-feature-card,
  .ms-home-audience-card,
  .ms-home-start-card,
  .ms-home-clarity-item,
  .ms-home-compare-card,
  .ms-home-faq-item,
  .ms-page-card {
    border-radius: 20px;
  }

  .ms-home-hero-facts {
    margin-top: 18px;
  }

  .ms-home-hero-fact,
  .ms-home-feature-card,
  .ms-home-audience-card,
  .ms-home-start-card,
  .ms-home-clarity-item,
  .ms-home-compare-card {
    padding: 16px;
  }

  .ms-home-hero-fact strong {
    font-size: clamp(1.35rem, 7vw, 1.75rem);
  }

  .ms-theme .site-footer {
    padding-top: 28px;
  }

  .ms-theme .footer-grid {
    gap: 18px;
  }
}

@media (max-width: 480px) {
  .ms-hero-copy,
  .ms-hero-panel,
  .ms-section,
  .ms-band,
  .ms-page-hero,
  .ms-page-summary,
  .ms-page-card,
  .ms-page-section,
  .ms-home-hero-copy,
  .ms-home-hero-visual,
  .ms-home-section,
  .ms-home-route-panel,
  .ms-home-coverage-panel,
  .ms-home-band {
    padding: 18px;
    border-radius: 18px;
  }

  .ms-homepage {
    gap: 16px;
  }

  .ms-home-hero-facts,
  .ms-home-feature-grid,
  .ms-home-audience-grid,
  .ms-home-start-grid,
  .ms-home-compare,
  .ms-home-link-grid,
  .ms-home-visual-stats {
    gap: 12px;
  }
}