/*
Theme Name: ClassesSpot Theme v2.7
Theme URI: https://classesspot.com
Author: ClassesSpot
Description: Official ClassesSpot block theme preview. Version 2.7 removes soft section backgrounds directly from homepage markup.
Version: 2.7.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: classesspot
*/

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

:root {
  --cs-blue: #005EE9;
  --cs-blue-2: #2B78FF;
  --cs-orange: #E88F27;
  --cs-bg: #031122;
  --cs-bg-2: #06182E;
  --cs-bg-3: #0A213E;
  --cs-panel: rgba(8, 21, 41, 0.82);
  --cs-panel-2: rgba(255,255,255,0.045);
  --cs-text: #F3F7FF;
  --cs-muted: #9EB0C7;
  --cs-border: rgba(255,255,255,0.10);
  --cs-border-strong: rgba(255,255,255,0.16);
  --cs-header: rgba(2, 12, 25, 0.78);
  --cs-shadow: 0 28px 85px rgba(0,0,0,.40);
  --cs-shadow-soft: 0 14px 40px rgba(0,0,0,.24);
  --cs-radius-sm: 14px;
  --cs-radius-md: 22px;
  --cs-radius-lg: 30px;
}

html[data-cs-theme="light"] {
  --cs-bg: #F4F8FE;
  --cs-bg-2: #FFFFFF;
  --cs-bg-3: #EBF2FD;
  --cs-panel: rgba(255,255,255,0.90);
  --cs-panel-2: rgba(6, 24, 52, 0.04);
  --cs-text: #0C1729;
  --cs-muted: #617289;
  --cs-border: rgba(8, 29, 58, 0.10);
  --cs-border-strong: rgba(8, 29, 58, 0.15);
  --cs-header: rgba(244, 248, 254, 0.86);
  --cs-shadow: 0 24px 70px rgba(19, 46, 80, .11);
  --cs-shadow-soft: 0 12px 32px rgba(19, 46, 80, .08);
}

html {
  background: var(--cs-bg);
  color-scheme: dark;
  scroll-behavior: smooth;
}
html[data-cs-theme="light"] { color-scheme: light; }

body {
  margin: 0;
  background:
    radial-gradient(980px 580px at 70% 2%, rgba(0,94,233,.20), transparent 64%),
    radial-gradient(1280px 740px at 16% 14%, rgba(0,94,233,.15), transparent 64%),
    radial-gradient(720px 520px at 88% 14%, rgba(232,143,39,.07), transparent 58%),
    linear-gradient(180deg, var(--cs-bg), #02101E 68%, #03111F 100%);
  color: var(--cs-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  transition: background-color .2s ease, color .2s ease;
}
html[data-cs-theme="light"] body {
  background:
    radial-gradient(980px 580px at 70% 2%, rgba(0,94,233,.10), transparent 64%),
    radial-gradient(1200px 680px at 14% 12%, rgba(0,94,233,.08), transparent 62%),
    radial-gradient(760px 540px at 88% 14%, rgba(232,143,39,.05), transparent 58%),
    linear-gradient(180deg, var(--cs-bg), #EEF5FD 100%);
}

* { box-sizing: border-box; }
a { transition: color .18s ease, border-color .18s ease, background-color .18s ease, opacity .18s ease, transform .18s ease; }
::selection { background: rgba(0,94,233,.35); color: #fff; }

h1, h2, h3, h4, h5, h6 { font-family: Manrope, Inter, ui-sans-serif, system-ui, sans-serif; }

.cs-shell {
  width: min(1680px, calc(100% - 52px));
  margin-inline: auto;
}
@media (max-width: 700px) {
  .cs-shell { width: min(100% - 24px, 1680px); }
}

.cs-site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--cs-header);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.admin-bar .cs-site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .cs-site-header { top: 46px; } }

.cs-header-inner {
  display: grid !important;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center !important;
  column-gap: 34px;
  min-height: 88px;
}

.cs-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  flex: 0 0 auto;
}
.cs-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(160deg, #0C6CFF 0%, #005EE9 72%);
  border: 1px solid rgba(255,255,255,0.13);
  box-shadow: 0 10px 30px rgba(0,94,233,.28);
  color: #fff;
  font-family: Manrope, Inter, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -.05em;
}
.cs-brand-word {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-family: Manrope, Inter, sans-serif;
  font-size: 27px;
  line-height: 1;
  letter-spacing: -.055em;
  font-weight: 800;
}
.cs-brand-classes { color: var(--cs-blue); }
.cs-brand-spot { color: var(--cs-orange); }

.cs-nav {
  min-width: 0;
  width: 100%;
  justify-self: center;
}
.cs-nav .wp-block-navigation__container {
  gap: clamp(16px, 1.45vw, 26px);
  flex-wrap: nowrap !important;
  justify-content: center;
}
.cs-nav .wp-block-navigation-item__content {
  color: var(--cs-muted) !important;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -.015em;
  text-decoration: none;
  white-space: nowrap;
}
.cs-nav .wp-block-navigation-item__content:hover,
.cs-nav .current-menu-item > .wp-block-navigation-item__content,
.cs-nav .current_page_item > .wp-block-navigation-item__content {
  color: var(--cs-text) !important;
}

.cs-header-actions {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 14px !important;
  flex-wrap: nowrap !important;
  justify-self: end;
}
.cs-header-actions .wp-block-buttons {
  flex-wrap: nowrap !important;
  margin: 0 !important;
}
.cs-login-link {
  color: var(--cs-text) !important;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none !important;
  white-space: nowrap;
}
.cs-login-link:hover { color: var(--cs-blue) !important; }

.cs-theme-toggle {
  appearance: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--cs-border);
  background: var(--cs-panel-2);
  color: var(--cs-text);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  font-size: 14px;
  flex: 0 0 auto;
}
.cs-theme-toggle:hover { border-color: var(--cs-border-strong); transform: translateY(-1px); }
.cs-theme-toggle .cs-sun { display: none; }
html[data-cs-theme="light"] .cs-theme-toggle .cs-sun { display: inline; }
html[data-cs-theme="light"] .cs-theme-toggle .cs-moon { display: none; }

.wp-block-button.cs-primary-button .wp-block-button__link,
.cs-primary-button .wp-block-button__link {
  background: linear-gradient(180deg, #1F7AFF 0%, #005EE9 100%) !important;
  color: #fff !important;
  border: 1px solid transparent !important;
  border-radius: 14px !important;
  padding: 14px 24px !important;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
  min-width: 132px;
  text-align: center !important;
  box-shadow: 0 14px 35px rgba(0,94,233,.24);
}
.cs-primary-button .wp-block-button__link:hover { transform: translateY(-1px); }

.wp-block-button.cs-secondary-button .wp-block-button__link,
.cs-secondary-button .wp-block-button__link {
  background: transparent !important;
  color: var(--cs-text) !important;
  border: 1px solid var(--cs-border-strong) !important;
  border-radius: 14px !important;
  padding: 14px 22px !important;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 15px !important;
  font-weight: 650 !important;
  white-space: nowrap !important;
}
.cs-secondary-button .wp-block-button__link:hover { background: var(--cs-panel-2) !important; }

.cs-main { overflow: clip; }
.cs-hero {
  padding: clamp(56px, 7vw, 96px) 0 44px;
  position: relative;
}
.cs-hero::before {
  content: "";
  position: absolute;
  inset: -80px auto auto 50%;
  transform: translateX(-50%);
  width: min(1640px, 100%);
  height: 560px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0,94,233,.18), transparent 66%);
  filter: blur(12px);
  pointer-events: none;
}

.cs-hero-grid {
  display: grid;
  grid-template-columns: minmax(520px, 0.92fr) minmax(640px, 1.08fr);
  align-items: center;
  gap: clamp(52px, 5.2vw, 96px);
}

.cs-hero-copy-col {
  padding-top: 8px;
  max-width: 740px;
}
.cs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--cs-border);
  background: var(--cs-panel-2);
  color: var(--cs-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.cs-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--cs-orange);
  box-shadow: 0 0 16px rgba(232,143,39,.46);
}

.cs-hero-title {
  margin: 22px 0 18px !important;
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(58px, 5.4vw, 102px) !important;
  font-weight: 800 !important;
  line-height: .93 !important;
  letter-spacing: -.066em !important;
  color: var(--cs-text) !important;
  max-width: 1000px;
}
.cs-hero-title .cs-accent {
  background: linear-gradient(90deg, #84B3FF 0%, #2B78FF 44%, #005EE9 70%, #E88F27 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cs-hero-copy {
  max-width: 640px;
  color: var(--cs-muted) !important;
  font-size: 23px !important;
  line-height: 1.58 !important;
  margin: 0 !important;
}
.cs-hero-actions { gap: 14px !important; margin-top: 34px !important; }

.cs-hero-visual-col {
  display: flex;
  justify-content: flex-end;
  align-self: stretch;
}
.cs-product-frame {
  width: min(100%, 960px);
  margin-top: 0 !important;
  border-radius: var(--cs-radius-lg);
  padding: 12px;
  border: 1px solid var(--cs-border-strong);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)), var(--cs-panel);
  box-shadow: var(--cs-shadow);
}
.cs-product-window {
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015)), #071425;
  border: 1px solid rgba(255,255,255,.07);
}
html[data-cs-theme="light"] .cs-product-window {
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(245,249,255,.92));
  border-color: rgba(8,29,58,.08);
}
.cs-product-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
html[data-cs-theme="light"] .cs-product-toolbar { border-bottom-color: rgba(8,29,58,.08); }
.cs-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.18); }
html[data-cs-theme="light"] .cs-dot { background: rgba(8,29,58,.16); }
.cs-product-body {
  min-height: 620px;
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 26px;
  padding: 24px;
}
.cs-product-sidebar {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.03);
  padding: 20px 16px;
}
html[data-cs-theme="light"] .cs-product-sidebar {
  border-color: rgba(8,29,58,.06);
  background: rgba(8,29,58,.03);
}
.cs-sidebar-logo {
  height: 22px;
  width: 118px;
  border-radius: 7px;
  background: linear-gradient(90deg, rgba(0,94,233,.76), rgba(232,143,39,.65));
  margin-bottom: 28px;
}
.cs-sidebar-line, .cs-card-line, .cs-dashboard-heading { background: rgba(255,255,255,.09); }
html[data-cs-theme="light"] .cs-sidebar-line,
html[data-cs-theme="light"] .cs-card-line,
html[data-cs-theme="light"] .cs-dashboard-heading { background: rgba(8,29,58,.10); }
.cs-sidebar-line { height: 10px; width: 82%; border-radius: 999px; margin: 13px 0; }
.cs-product-content { min-width: 0; }
.cs-dashboard-heading { height: 24px; width: 66%; border-radius: 999px; margin: 4px 0 28px; }
.cs-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.cs-dashboard-card {
  min-height: 188px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.03);
  padding: 18px;
}
html[data-cs-theme="light"] .cs-dashboard-card {
  border-color: rgba(8,29,58,.07);
  background: rgba(8,29,58,.03);
}
.cs-dashboard-card:first-child { box-shadow: inset 0 2px 0 rgba(0,94,233,.8); }
.cs-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  margin-bottom: 20px;
  background: rgba(0,94,233,.18);
  border: 1px solid rgba(0,94,233,.35);
}
.cs-card-line { height: 11px; border-radius: 999px; margin-top: 10px; }
.cs-card-line.short { width: 56%; }

.cs-section {
  padding: clamp(76px, 8vw, 108px) 0;
}
.cs-section-kicker {
  color: var(--cs-blue) !important;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px !important;
  font-weight: 800 !important;
  margin-bottom: 13px !important;
}
.cs-section-title {
  max-width: 980px;
  margin: 0 !important;
  font-family: Manrope, Inter, sans-serif;
  color: var(--cs-text) !important;
  font-size: clamp(42px, 4.2vw, 64px) !important;
  line-height: 1.03 !important;
  letter-spacing: -.052em !important;
}
.cs-section-copy {
  max-width: 860px;
  color: var(--cs-muted) !important;
  font-size: 20px !important;
  line-height: 1.65 !important;
}
.cs-pillar-grid {
  gap: 24px !important;
  margin-top: 42px !important;
}
.cs-pillar-card {
  position: relative;
  height: 100%;
  padding: 30px;
  border-radius: var(--cs-radius-md);
  border: 1px solid var(--cs-border);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.025));
  box-shadow: var(--cs-shadow-soft);
  overflow: hidden;
}
.cs-pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(0,94,233,.96) 0%, rgba(43,120,255,.9) 48%, rgba(232,143,39,.95) 100%);
  opacity: .92;
}
.cs-pillar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,94,233,.38);
  box-shadow: 0 18px 48px rgba(0,94,233,.12), 0 0 0 1px rgba(0,94,233,.08) inset;
}
.cs-pillar-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.cs-pillar-number {
  color: var(--cs-orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cs-pillar-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(0,94,233,.14);
  border: 1px solid rgba(0,94,233,.34);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
  position: relative;
}
.cs-pillar-icon::before,
.cs-pillar-icon::after {
  content: "";
  position: absolute;
  background: rgba(43,120,255,.88);
  border-radius: 999px;
}
.cs-pillar-icon::before { width: 15px; height: 2px; left: 10px; top: 12px; }
.cs-pillar-icon::after { width: 10px; height: 2px; left: 10px; top: 19px; }
.cs-pillar-card h3 {
  margin: 0 0 10px !important;
  color: var(--cs-text) !important;
  font-family: Manrope, Inter, sans-serif;
  font-size: 30px !important;
  line-height: 1.05 !important;
  letter-spacing: -.035em !important;
}
.cs-pillar-card p {
  color: var(--cs-muted) !important;
  line-height: 1.68;
  margin: 0;
}

.cs-site-footer {
  border-top: 1px solid var(--cs-border);
  background: rgba(0,0,0,.10);
  margin-top: 44px;
}
.cs-footer-inner { padding: 68px 0 28px; }
.cs-footer-top {
  gap: 54px !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
}
.cs-footer-brand { max-width: 500px; }
.cs-footer-brand p { color: var(--cs-muted) !important; line-height: 1.65; }
.cs-footer-columns {
  gap: clamp(48px, 5vw, 96px) !important;
  justify-content: flex-end !important;
}
.cs-footer-heading {
  margin-bottom: 14px !important;
  color: var(--cs-text) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.cs-footer-link {
  color: var(--cs-muted) !important;
  text-decoration: none !important;
  font-size: 15px;
}
.cs-footer-link:hover { color: var(--cs-text) !important; }
.cs-footer-bottom {
  margin-top: 44px !important;
  padding-top: 22px !important;
  border-top: 1px solid var(--cs-border);
}
.cs-footer-bottom p, .cs-footer-bottom a { color: var(--cs-muted) !important; font-size: 13px !important; }

.cs-content-area { padding: 72px 0 92px; }
.cs-content-card {
  border: 1px solid var(--cs-border);
  background: var(--cs-panel-2);
  border-radius: var(--cs-radius-md);
  padding: clamp(24px, 4vw, 48px);
}
.cs-content-area h1, .cs-content-area h2, .cs-content-area h3 { color: var(--cs-text); }
.cs-content-area p, .cs-content-area li { color: var(--cs-muted); }

@media (max-width: 1450px) {
  .cs-brand-word { font-size: 25px; }
  .cs-nav .wp-block-navigation__container { gap: 15px; }
  .cs-nav .wp-block-navigation-item__content { font-size: 13.5px; }
}
@media (max-width: 1360px) {
  .cs-shell { width: min(100% - 40px, 1680px); }
}
@media (max-width: 1260px) {
  .cs-hero-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .cs-hero-copy-col { max-width: 840px; }
  .cs-hero-visual-col { justify-content: flex-start; }
  .cs-product-frame { width: min(100%, 1100px); }
}
@media (max-width: 1160px) {
  .cs-nav { display: none !important; }
  .cs-header-inner {
    grid-template-columns: auto auto;
    column-gap: 18px;
    min-height: 76px;
  }
}
@media (max-width: 760px) {
  .cs-hero { padding-top: 38px; }
  .cs-hero-title { font-size: clamp(42px, 14vw, 72px) !important; }
  .cs-hero-copy { font-size: 18px !important; }
  .cs-product-body { min-height: 440px; grid-template-columns: 1fr; }
  .cs-product-sidebar { display: none; }
  .cs-dashboard-grid { grid-template-columns: 1fr 1fr; }
  .cs-section-title { font-size: clamp(34px, 8vw, 48px) !important; }
}
@media (max-width: 560px) {
  .cs-shell { width: min(100% - 20px, 1680px); }
  .cs-brand-word { display: none; }
  .cs-header-actions { gap: 10px !important; }
  .cs-login-link { display: none; }
  .cs-theme-toggle { width: 38px; height: 38px; }
  .cs-primary-button .wp-block-button__link,
  .cs-secondary-button .wp-block-button__link { padding: 12px 16px !important; font-size: 14px !important; min-width: 0; }
  .cs-dashboard-grid { grid-template-columns: 1fr; }
}


/* --------------------------------------------------------------------------
   v0.6 refinements: official brand assets + exact right-edge login
   -------------------------------------------------------------------------- */

.cs-header-inner {
  grid-template-columns: minmax(230px, 310px) minmax(0, 1fr) minmax(300px, 360px) !important;
  column-gap: clamp(24px, 2vw, 42px) !important;
}

.cs-brand-link {
  min-width: 0;
}

.cs-brand-official {
  display: block;
  width: clamp(190px, 13vw, 238px);
  height: auto;
  object-fit: contain;
}

.cs-brand-mark,
.cs-brand-word {
  display: none !important;
}

.cs-header-actions {
  width: 100%;
  justify-content: flex-end !important;
  justify-self: stretch !important;
}

.cs-header-actions .cs-login-link {
  order: 3;
  margin-left: 2px;
}

.cs-header-actions .wp-block-buttons {
  order: 2;
}

.cs-header-actions .cs-theme-toggle {
  order: 1;
}

.cs-login-link {
  padding: 12px 0 12px 12px;
}

.cs-site-footer .cs-brand-official {
  width: clamp(200px, 15vw, 260px);
}

@media (max-width: 1380px) {
  .cs-header-inner {
    grid-template-columns: minmax(205px, 260px) minmax(0, 1fr) minmax(270px, 320px) !important;
    column-gap: 20px !important;
  }
  .cs-brand-official {
    width: clamp(178px, 14vw, 210px);
  }
}

@media (max-width: 1160px) {
  .cs-header-inner {
    grid-template-columns: auto auto !important;
  }
  .cs-header-actions {
    width: auto;
  }
}

@media (max-width: 560px) {
  .cs-brand-official {
    width: 170px;
  }
  .cs-header-actions .cs-login-link {
    display: none !important;
  }
}


/* v0.7 logo asset fix */
.cs-brand-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.cs-brand-official {
  display: block;
  width: auto !important;
  height: 38px !important;
  max-width: min(270px, 100%);
  object-fit: contain;
}
.cs-site-footer .cs-brand-official {
  height: 42px !important;
  max-width: 280px;
}
.cs-header-inner {
  align-items: center !important;
}
@media (max-width: 1380px) {
  .cs-brand-official { height: 34px !important; }
}
@media (max-width: 640px) {
  .cs-brand-official { height: 28px !important; max-width: 190px; }
}


/* --------------------------------------------------------------------------
   v0.8 — deterministic desktop header
   -------------------------------------------------------------------------- */
.cs-header-inner {
  display: grid !important;
  grid-template-columns: 260px minmax(520px, 1fr) 330px !important;
  align-items: center !important;
  gap: 28px !important;
  min-height: 84px !important;
}

.cs-header-brand-zone {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.cs-brand-official {
  height: 36px !important;
  width: auto !important;
  max-width: 235px !important;
}

.cs-desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-width: 0;
  white-space: nowrap;
}

.cs-desktop-nav a {
  color: var(--cs-muted) !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.012em;
}

.cs-desktop-nav a:hover {
  color: var(--cs-text) !important;
}

.cs-header-actions {
  display: grid !important;
  grid-template-columns: 38px auto auto;
  align-items: center !important;
  justify-content: end !important;
  gap: 14px !important;
  width: 100% !important;
}

.cs-header-actions .wp-block-buttons,
.cs-header-actions .wp-block-button {
  margin: 0 !important;
}

.cs-header-actions .wp-block-buttons {
  display: block !important;
}

.cs-header-actions .cs-login-link {
  order: initial !important;
  margin: 0 !important;
  padding: 12px 0 !important;
  min-width: 46px;
  text-align: right;
}

.cs-header-actions .cs-theme-toggle {
  order: initial !important;
}

.cs-header-actions .wp-block-buttons {
  order: initial !important;
}

.cs-theme-toggle {
  margin: 0 !important;
}

.cs-mobile-nav-trigger {
  display: none;
}

@media (max-width: 1380px) {
  .cs-header-inner {
    grid-template-columns: 220px minmax(450px, 1fr) 310px !important;
    gap: 20px !important;
  }
  .cs-brand-official {
    height: 32px !important;
    max-width: 205px !important;
  }
  .cs-desktop-nav {
    gap: 20px;
  }
  .cs-desktop-nav a {
    font-size: 13.5px;
  }
}

@media (max-width: 1120px) {
  .cs-header-inner {
    grid-template-columns: 1fr auto !important;
  }
  .cs-desktop-nav {
    display: none !important;
  }
  .cs-mobile-nav-trigger {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid var(--cs-border);
    background: var(--cs-panel-2);
    color: var(--cs-text);
    font-size: 18px;
  }
  .cs-header-actions {
    grid-template-columns: 38px auto auto 38px;
  }
}

@media (max-width: 640px) {
  .cs-brand-official {
    height: 28px !important;
    max-width: 180px !important;
  }
  .cs-header-actions {
    grid-template-columns: 38px auto 38px;
    gap: 8px !important;
  }
  .cs-header-actions .cs-login-link {
    display: none !important;
  }
  .cs-header-actions .cs-primary-button .wp-block-button__link {
    min-width: 0 !important;
    padding: 11px 14px !important;
  }
}


/* --------------------------------------------------------------------------
   v0.9 – stronger vertical centering in the header
   -------------------------------------------------------------------------- */
.cs-site-header {
  min-height: 86px;
}

.cs-header-inner {
  min-height: 86px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  align-items: center !important;
}

.cs-header-brand-zone,
.cs-desktop-nav,
.cs-header-actions {
  min-height: 86px;
  display: flex;
  align-items: center;
}

.cs-header-brand-zone {
  justify-content: flex-start;
}

.cs-desktop-nav {
  justify-content: center;
}

.cs-header-actions {
  justify-content: flex-end !important;
}

.cs-desktop-nav a,
.cs-login-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.cs-theme-toggle {
  align-self: center;
}

.cs-primary-button .wp-block-button__link,
.wp-block-button.cs-primary-button .wp-block-button__link {
  min-height: 44px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.cs-login-link {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

@media (max-width: 1160px) {
  .cs-site-header,
  .cs-header-inner,
  .cs-header-brand-zone,
  .cs-desktop-nav,
  .cs-header-actions {
    min-height: 76px;
  }
}


/* --------------------------------------------------------------------------
   v1.0 – refined header + improved hero
   -------------------------------------------------------------------------- */
img.cs-brand-official {
  display: block;
  width: auto;
  height: 34px;
  max-width: none;
}

.cs-site-header {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cs-header-inner {
  display: grid !important;
  grid-template-columns: minmax(220px, auto) minmax(0, 1fr) auto;
  align-items: center !important;
  min-height: 92px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  column-gap: 32px;
}

.cs-header-inner > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.cs-header-brand-zone,
.cs-desktop-nav,
.cs-header-actions,
.cs-header-actions .wp-block-buttons {
  display: flex !important;
  align-items: center !important;
}

.cs-header-brand-zone {
  min-height: 92px;
  justify-content: flex-start;
}

.cs-desktop-nav {
  min-height: 92px;
  justify-content: center;
  gap: clamp(18px, 1.8vw, 30px);
}

.cs-desktop-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  line-height: 1;
  color: var(--cs-muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -.015em;
  text-decoration: none;
  white-space: nowrap;
}

.cs-desktop-nav a:hover {
  color: var(--cs-text);
}

.cs-header-actions {
  min-height: 92px;
  gap: 12px !important;
  justify-content: flex-end !important;
}

.cs-header-actions .wp-block-buttons {
  align-items: center !important;
}

.cs-theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
}

.cs-primary-button .wp-block-button__link,
.wp-block-button.cs-primary-button .wp-block-button__link {
  min-height: 46px;
  padding: 0 28px !important;
  border-radius: 16px;
  line-height: 1;
}

.cs-login-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  line-height: 1;
  padding-left: 2px;
}

.cs-hero {
  padding: clamp(64px, 8vw, 112px) 0 58px;
}

.cs-hero::before {
  inset: -72px auto auto 50%;
  width: min(1720px, calc(100% - 20px));
  height: 640px;
  background: radial-gradient(circle, rgba(0,94,233,.23), transparent 64%);
}

.cs-hero-grid {
  grid-template-columns: minmax(520px, 0.96fr) minmax(660px, 1.04fr);
  gap: clamp(56px, 6vw, 108px);
}

.cs-hero-copy-col {
  max-width: 720px;
}

.cs-eyebrow {
  padding: 9px 13px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.025));
}

.cs-hero-title {
  margin: 24px 0 18px !important;
  max-width: 860px;
  font-size: clamp(60px, 5.7vw, 108px) !important;
}

.cs-hero-copy {
  max-width: 680px;
  font-size: 24px !important;
  line-height: 1.56 !important;
}

.cs-hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.cs-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--cs-border);
  background: rgba(255,255,255,.035);
  color: var(--cs-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.cs-hero-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cs-blue), var(--cs-orange));
  box-shadow: 0 0 12px rgba(0,94,233,.30);
}

.cs-hero-actions {
  margin-top: 28px !important;
}

.cs-hero-note {
  margin-top: 18px;
  color: var(--cs-muted);
  font-size: 14px;
  line-height: 1.6;
}

.cs-hero-visual-col {
  position: relative;
}

.cs-product-frame {
  position: relative;
  width: min(100%, 980px);
  padding: 14px;
  border-radius: 34px;
}

.cs-product-frame::before {
  content: "";
  position: absolute;
  inset: -22px -32px auto auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,143,39,.18), transparent 68%);
  pointer-events: none;
}

.cs-product-window {
  position: relative;
}

.cs-product-body {
  min-height: 560px;
}

.cs-product-badge {
  position: absolute;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(5, 18, 34, 0.85);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 38px rgba(0,0,0,.34);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
html[data-cs-theme="light"] .cs-product-badge {
  background: rgba(255,255,255,.92);
  border-color: rgba(8,29,58,.10);
  box-shadow: 0 16px 34px rgba(19,46,80,.12);
}
.cs-product-badge--top {
  top: 26px;
  right: -24px;
}
.cs-product-badge--bottom {
  left: -28px;
  bottom: 34px;
}
.cs-product-badge-label {
  color: var(--cs-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.cs-product-badge-value {
  color: var(--cs-text);
  font-family: Manrope, Inter, sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.03em;
}
.cs-product-badge--top .cs-product-badge-value::before {
  content: "✓ ";
  color: var(--cs-blue-2);
}
.cs-product-badge--bottom .cs-product-badge-value::before {
  content: "+ ";
  color: var(--cs-orange);
}

@media (max-width: 1160px) {
  .cs-header-inner {
    grid-template-columns: auto 1fr auto;
    min-height: 82px !important;
    column-gap: 24px;
  }
  .cs-header-brand-zone,
  .cs-desktop-nav,
  .cs-header-actions {
    min-height: 82px;
  }
  .cs-desktop-nav {
    gap: 18px;
  }
  .cs-hero-grid {
    grid-template-columns: 1fr;
  }
  .cs-hero-visual-col {
    justify-content: center;
  }
  .cs-product-badge--top {
    right: 10px;
  }
  .cs-product-badge--bottom {
    left: 10px;
  }
}

@media (max-width: 860px) {
  .cs-desktop-nav {
    display: none !important;
  }
  .cs-header-inner {
    grid-template-columns: auto 1fr auto;
  }
}

@media (max-width: 700px) {
  img.cs-brand-official {
    height: 28px;
  }
  .cs-header-inner,
  .cs-header-brand-zone,
  .cs-header-actions {
    min-height: 74px !important;
  }
  .cs-header-actions {
    gap: 10px !important;
  }
  .cs-primary-button .wp-block-button__link,
  .wp-block-button.cs-primary-button .wp-block-button__link {
    min-height: 42px;
    padding: 0 20px !important;
  }
  .cs-hero {
    padding-top: 44px;
  }
  .cs-hero-title {
    font-size: clamp(44px, 12vw, 66px) !important;
  }
  .cs-hero-copy {
    font-size: 18px !important;
  }
  .cs-hero-highlights {
    gap: 8px;
  }
  .cs-hero-chip {
    font-size: 12px;
    padding: 9px 12px;
  }
  .cs-product-badge {
    display: none;
  }
}


/* v1.1 – optical alignment refinement */
.cs-site-header img.cs-brand-official {
  transform: translateY(1px);
}


/* --------------------------------------------------------------------------
   v1.2 – optical horizontal balance: header + hero
   -------------------------------------------------------------------------- */

/* A little more usable width on large desktop screens. */
.cs-shell {
  width: min(1740px, calc(100% - 44px));
}

/*
 * The right-hand actions are visually heavier than the logo.
 * Giving that column more reserved width moves the navigation's optical
 * centre slightly left while keeping Login as the far-right element.
 */
.cs-header-inner {
  grid-template-columns: 250px minmax(0, 1fr) 340px !important;
  column-gap: 30px !important;
}

.cs-header-brand-zone {
  width: 250px;
}

.cs-header-actions {
  width: 340px;
  justify-content: flex-end !important;
}

.cs-desktop-nav {
  justify-self: stretch;
  justify-content: center;
  transform: translateX(-10px);
}

/* Preserve the 1px optical vertical correction from v1.1. */
.cs-header-brand-zone .cs-brand-official {
  transform: translateY(1px);
}

/*
 * Hero: shift the composition slightly left and give the copy a little more
 * room, reducing the visual pull created by the large product mock-up.
 */
.cs-hero-grid {
  width: min(1700px, calc(100% - 56px));
  margin-inline: auto;
  grid-template-columns: minmax(560px, 1.02fr) minmax(620px, .98fr) !important;
  gap: clamp(46px, 4.5vw, 82px) !important;
  position: relative;
  left: -34px;
}

.cs-hero-copy-col {
  max-width: 760px;
}

.cs-hero-title {
  max-width: 900px;
}

.cs-hero-visual-col {
  justify-content: flex-start !important;
}

.cs-product-frame {
  width: min(100%, 930px) !important;
}

/* Pull the floating badges inward so they do not add extra visual weight
   to the outside edge of the composition. */
.cs-product-badge--top {
  right: 10px !important;
}

.cs-product-badge--bottom {
  left: 10px !important;
}

/* Workflow section and footer should follow the same wider visual axis. */
.cs-section > .cs-shell,
.cs-site-footer .cs-shell {
  width: min(1700px, calc(100% - 56px));
}

@media (max-width: 1480px) {
  .cs-header-inner {
    grid-template-columns: 225px minmax(0, 1fr) 310px !important;
    column-gap: 22px !important;
  }
  .cs-header-brand-zone { width: 225px; }
  .cs-header-actions { width: 310px; }
  .cs-desktop-nav { transform: translateX(-6px); }
  .cs-hero-grid {
    left: -20px;
    width: min(100% - 40px, 1660px);
  }
}

@media (max-width: 1260px) {
  .cs-header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto !important;
  }
  .cs-header-brand-zone,
  .cs-header-actions {
    width: auto;
  }
  .cs-desktop-nav {
    transform: none;
  }
  .cs-hero-grid {
    left: 0;
    width: min(100% - 40px, 1660px);
    grid-template-columns: 1fr !important;
  }
  .cs-hero-visual-col {
    justify-content: center !important;
  }
}

@media (max-width: 700px) {
  .cs-shell,
  .cs-section > .cs-shell,
  .cs-site-footer .cs-shell,
  .cs-hero-grid {
    width: min(100% - 24px, 1740px);
  }
}


/* --------------------------------------------------------------------------
   v1.3 – header logo wordmark alignment refinement
   -------------------------------------------------------------------------- */

/*
 * Optical tweak: the combined logo image contains the icon plus wordmark,
 * which makes the text appear a touch high versus the first nav item.
 * A tiny downward nudge aligns the word “ClassesSpot” more cleanly with
 * “Features” while preserving the responsive header structure.
 */
.cs-header-brand-zone .cs-brand-official {
  transform: translateY(2px);
}

/* Keep the navigation perfectly centred in the same row. */
.cs-desktop-nav,
.cs-desktop-nav a,
.cs-header-actions,
.cs-header-brand-zone {
  align-items: center !important;
}

@media (max-width: 1260px) {
  .cs-header-brand-zone .cs-brand-official {
    transform: translateY(1px);
  }
}

@media (max-width: 782px) {
  .cs-header-brand-zone .cs-brand-official {
    transform: none;
  }
}


/* --------------------------------------------------------------------------
   v1.4 – final header optical alignment + hero polish
   -------------------------------------------------------------------------- */

/* Final optical alignment: wordmark baseline with first navigation item. */
.cs-header-brand-zone .cs-brand-official {
  transform: translateY(3px);
}

/* Slightly tighter, cleaner desktop header rhythm. */
.cs-header-inner {
  min-height: 88px !important;
}

.cs-header-brand-zone,
.cs-desktop-nav,
.cs-header-actions {
  min-height: 88px !important;
}

.cs-desktop-nav {
  gap: clamp(20px, 1.65vw, 28px);
}

.cs-desktop-nav a {
  font-size: 14px;
  min-height: 38px;
}

.cs-theme-toggle {
  width: 38px;
  height: 38px;
}

.cs-primary-button .wp-block-button__link,
.wp-block-button.cs-primary-button .wp-block-button__link {
  min-height: 44px;
  padding-inline: 26px !important;
}

.cs-login-link {
  min-height: 38px;
}

/* Hero: stronger hierarchy without adding visual clutter. */
.cs-hero {
  padding-top: clamp(62px, 7.2vw, 102px);
  padding-bottom: 66px;
}

.cs-hero-grid {
  align-items: center;
}

.cs-hero-copy-col {
  max-width: 780px;
}

.cs-hero-title {
  margin-top: 22px !important;
  margin-bottom: 20px !important;
  font-size: clamp(62px, 5.55vw, 106px) !important;
  line-height: .94 !important;
}

.cs-hero-copy {
  max-width: 690px;
  font-size: 22px !important;
  line-height: 1.62 !important;
}

.cs-hero-highlights {
  margin-top: 20px;
}

.cs-hero-chip {
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
  border-color: rgba(255,255,255,.11);
}

html[data-cs-theme="light"] .cs-hero-chip {
  background: rgba(255,255,255,.78);
  border-color: rgba(8,29,58,.10);
}

.cs-hero-actions {
  margin-top: 30px !important;
}

.cs-hero-note {
  max-width: 620px;
  margin-top: 16px;
  font-size: 13px;
  opacity: .9;
}

/* Make the product preview feel more like the focal product, not a placeholder. */
.cs-product-frame {
  width: min(100%, 945px) !important;
  padding: 13px;
  border-color: rgba(255,255,255,.14);
  box-shadow:
    0 30px 88px rgba(0,0,0,.42),
    0 0 0 1px rgba(0,94,233,.04) inset;
}

.cs-product-window {
  border-radius: 22px;
}

.cs-product-toolbar {
  height: 48px;
}

.cs-product-body {
  min-height: 545px;
}

.cs-dashboard-card {
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.cs-dashboard-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0,94,233,.20);
}

/* Floating labels: more integrated with the mockup. */
.cs-product-badge {
  border-radius: 16px;
  padding: 12px 14px;
}

.cs-product-badge--top {
  top: 32px;
  right: 14px !important;
}

.cs-product-badge--bottom {
  left: 14px !important;
  bottom: 28px;
}

@media (max-width: 1480px) {
  .cs-header-brand-zone .cs-brand-official {
    transform: translateY(2px);
  }
}

@media (max-width: 1260px) {
  .cs-header-brand-zone .cs-brand-official {
    transform: translateY(1px);
  }
  .cs-hero {
    padding-top: 56px;
  }
  .cs-hero-title {
    font-size: clamp(58px, 7vw, 92px) !important;
  }
}

@media (max-width: 860px) {
  .cs-header-brand-zone .cs-brand-official {
    transform: none;
  }
  .cs-hero {
    padding-top: 44px;
    padding-bottom: 54px;
  }
  .cs-hero-copy {
    font-size: 19px !important;
  }
  .cs-product-frame {
    width: 100% !important;
  }
}

@media (max-width: 560px) {
  .cs-hero-title {
    font-size: clamp(44px, 13vw, 64px) !important;
  }
  .cs-hero-copy {
    font-size: 18px !important;
  }
  .cs-hero-highlights {
    gap: 7px;
  }
  .cs-hero-chip {
    padding: 8px 11px;
  }
}


/* --------------------------------------------------------------------------
   v1.5 – stronger optical logo alignment
   -------------------------------------------------------------------------- */

/* Desktop: move the official logo a little further down so the wordmark
   aligns visually with the navigation baseline. */
.cs-header-brand-zone .cs-brand-official {
  transform: translateY(5px);
}

@media (max-width: 1480px) {
  .cs-header-brand-zone .cs-brand-official {
    transform: translateY(4px);
  }
}

@media (max-width: 1260px) {
  .cs-header-brand-zone .cs-brand-official {
    transform: translateY(2px);
  }
}

@media (max-width: 860px) {
  .cs-header-brand-zone .cs-brand-official {
    transform: none;
  }
}


/* --------------------------------------------------------------------------
   v1.6 – further optical logo alignment
   -------------------------------------------------------------------------- */

/* Additional 2px downward adjustment versus v1.5 on desktop widths. */
.cs-header-brand-zone .cs-brand-official {
  transform: translateY(7px);
}

@media (max-width: 1480px) {
  .cs-header-brand-zone .cs-brand-official {
    transform: translateY(6px);
  }
}

@media (max-width: 1260px) {
  .cs-header-brand-zone .cs-brand-official {
    transform: translateY(4px);
  }
}

@media (max-width: 860px) {
  .cs-header-brand-zone .cs-brand-official {
    transform: none;
  }
}


/* --------------------------------------------------------------------------
   v1.7 – robust logo position + mobile header control alignment
   -------------------------------------------------------------------------- */

/* Stop relying on transform for the logo. Positioning the brand link itself
   makes the optical adjustment deterministic and prevents responsive rules
   from silently cancelling it. */
.cs-header-brand-zone .cs-brand-official {
  transform: none !important;
}

.cs-header-brand-zone .cs-brand-link {
  position: relative;
  top: 9px;
}

/* Mobile menu icon is built from three geometric bars rather than a font
   glyph, so its visual centre matches the theme toggle and CTA. */
.cs-mobile-nav-trigger {
  padding: 0 !important;
  line-height: 1 !important;
  align-items: center !important;
  justify-content: center !important;
}

.cs-mobile-nav-trigger .cs-menu-bars {
  width: 19px;
  height: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
}

.cs-mobile-nav-trigger .cs-menu-bars span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 999px;
  background: currentColor;
}

@media (max-width: 1480px) {
  .cs-header-brand-zone .cs-brand-link {
    top: 8px;
  }
}

@media (max-width: 1260px) {
  .cs-header-brand-zone .cs-brand-link {
    top: 5px;
  }
}

@media (max-width: 1120px) {
  .cs-header-inner {
    min-height: 82px !important;
  }

  .cs-header-brand-zone,
  .cs-header-actions {
    min-height: 82px !important;
  }

  .cs-header-brand-zone .cs-brand-link {
    top: 3px;
  }

  .cs-theme-toggle,
  .cs-mobile-nav-trigger {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    min-height: 44px;
    border-radius: 13px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .cs-header-actions .cs-primary-button .wp-block-button__link {
    min-height: 44px !important;
    height: 44px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .cs-header-actions,
  .cs-header-actions .wp-block-buttons,
  .cs-header-actions .wp-block-button {
    align-items: center !important;
  }
}

@media (max-width: 640px) {
  .cs-header-inner {
    min-height: 78px !important;
  }

  .cs-header-brand-zone,
  .cs-header-actions {
    min-height: 78px !important;
  }

  .cs-header-brand-zone .cs-brand-link {
    top: 2px;
  }

  .cs-header-actions {
    gap: 10px !important;
  }

  .cs-header-actions .cs-primary-button .wp-block-button__link {
    padding-left: 18px !important;
    padding-right: 18px !important;
    font-size: 14px !important;
  }
}


/* --------------------------------------------------------------------------
   v1.8 – corrected logo position + functional mobile navigation
   -------------------------------------------------------------------------- */

/*
 * v1.7 moved the brand too far down by accumulating previous optical tweaks.
 * These values are authoritative and deliberately smaller.
 */
.cs-header-brand-zone .cs-brand-official {
  transform: none !important;
}

.cs-header-brand-zone .cs-brand-link {
  position: relative !important;
  top: 4px !important;
}

@media (max-width: 1480px) {
  .cs-header-brand-zone .cs-brand-link {
    top: 3px !important;
  }
}

@media (max-width: 1260px) {
  .cs-header-brand-zone .cs-brand-link {
    top: 2px !important;
  }
}

/* On mobile, keep the logo geometrically centred: no accumulated offset. */
@media (max-width: 1120px) {
  .cs-header-brand-zone .cs-brand-link {
    top: 0 !important;
  }
}

/*
 * Force every header action onto exactly the same vertical axis.
 * This overrides older grid/flex rules accumulated during prototyping.
 */
@media (max-width: 1120px) {
  .cs-header-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    min-height: 82px !important;
  }

  .cs-header-actions > *,
  .cs-header-actions .wp-block-buttons,
  .cs-header-actions .wp-block-button,
  .cs-theme-toggle,
  .cs-mobile-nav-trigger {
    align-self: center !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .cs-theme-toggle,
  .cs-mobile-nav-trigger {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    position: static !important;
    top: auto !important;
    transform: none !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
  }

  .cs-mobile-nav-trigger .cs-menu-bars {
    width: 20px !important;
    height: 15px !important;
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    margin: 0 !important;
    transform: translateY(-1px);
  }

  .cs-mobile-nav-trigger .cs-menu-bars span {
    width: 20px !important;
    height: 2px !important;
    flex: 0 0 2px;
  }

  .cs-header-actions .cs-primary-button .wp-block-button__link {
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
  }
}

/* Real collapsible mobile menu. */
.cs-mobile-menu {
  display: none;
}

@media (max-width: 1120px) {
  .cs-site-header {
    position: sticky;
  }

  .cs-mobile-menu {
    position: absolute;
    z-index: 80;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: rgba(2, 12, 25, 0.97);
    border-top: 1px solid rgba(255,255,255,.06);
    border-bottom: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 24px 50px rgba(0,0,0,.30);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition:
      max-height .28s ease,
      opacity .20s ease,
      visibility .20s ease;
  }

  html[data-cs-theme="light"] .cs-mobile-menu {
    background: rgba(244,248,254,.98);
  }

  .cs-mobile-menu.is-open {
    max-height: 620px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .cs-mobile-menu-nav {
    width: min(100% - 32px, 720px);
    margin-inline: auto;
    padding: 16px 0 22px;
    display: grid;
    gap: 4px;
  }

  .cs-mobile-menu-nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 12px;
    color: var(--cs-text) !important;
    text-decoration: none !important;
    font-size: 16px;
    font-weight: 650;
  }

  .cs-mobile-menu-nav a:hover,
  .cs-mobile-menu-nav a:focus-visible {
    background: var(--cs-panel-2);
  }

  .cs-mobile-menu-nav .cs-mobile-login {
    margin-top: 8px;
    border-top: 1px solid var(--cs-border);
    border-radius: 0;
    color: var(--cs-blue-2) !important;
  }

  .cs-mobile-nav-trigger[aria-expanded="true"] .cs-menu-bars span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }

  .cs-mobile-nav-trigger[aria-expanded="true"] .cs-menu-bars span:nth-child(2) {
    opacity: 0;
  }

  .cs-mobile-nav-trigger[aria-expanded="true"] .cs-menu-bars span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  .cs-mobile-nav-trigger .cs-menu-bars span {
    transition: transform .2s ease, opacity .18s ease;
  }
}

@media (max-width: 640px) {
  .cs-header-actions {
    min-height: 78px !important;
    gap: 8px !important;
  }

  .cs-theme-toggle,
  .cs-mobile-nav-trigger {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
  }

  .cs-header-actions .cs-primary-button .wp-block-button__link {
    height: 42px !important;
    min-height: 42px !important;
    padding-left: 17px !important;
    padding-right: 17px !important;
  }
}


/* v1.9 – tablet breakpoint refinement */
@media (max-width: 1280px) {
  .cs-desktop-nav { display: none !important; }
  .cs-mobile-nav-trigger { display: inline-flex !important; }

  .cs-header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    min-height: 82px !important;
    column-gap: 22px !important;
  }

  .cs-header-brand-zone {
    width: auto !important;
    min-height: 82px !important;
  }

  .cs-header-actions {
    width: auto !important;
    min-height: 82px !important;
    gap: 10px !important;
  }

  .cs-login-link { display: none !important; }
  .cs-header-brand-zone .cs-brand-link { top: 0 !important; }

  .cs-hero-grid {
    width: min(100% - 48px, 1120px) !important;
    grid-template-columns: 1fr !important;
    gap: 44px !important;
    left: 0 !important;
    margin-inline: auto !important;
  }

  .cs-hero-copy-col { max-width: 760px !important; }
  .cs-hero-visual-col { justify-content: center !important; }
  .cs-product-frame { width: min(100%, 980px) !important; }
  .cs-product-badge--top { right: 16px !important; }
  .cs-product-badge--bottom { left: 16px !important; }
}

@media (min-width: 1121px) and (max-width: 1280px) {
  .cs-mobile-menu {
    position: absolute;
    z-index: 80;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: rgba(2, 12, 25, 0.97);
    border-top: 1px solid rgba(255,255,255,.06);
    border-bottom: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 24px 50px rgba(0,0,0,.30);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: max-height .28s ease, opacity .20s ease, visibility .20s ease;
  }

  html[data-cs-theme="light"] .cs-mobile-menu {
    background: rgba(244,248,254,.98);
  }

  .cs-mobile-menu.is-open {
    max-height: 620px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .cs-mobile-menu-nav {
    width: min(100% - 40px, 760px);
    margin-inline: auto;
    padding: 16px 0 22px;
    display: grid;
    gap: 4px;
  }

  .cs-mobile-menu-nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 12px;
    color: var(--cs-text) !important;
    text-decoration: none !important;
    font-size: 16px;
    font-weight: 650;
  }

  .cs-mobile-menu-nav .cs-mobile-login {
    margin-top: 8px;
    border-top: 1px solid var(--cs-border);
    border-radius: 0;
    color: var(--cs-blue-2) !important;
  }
}


/* --------------------------------------------------------------------------
   v2.0 – large-tablet targeting without affecting desktop PCs
   -------------------------------------------------------------------------- */

/*
 * Existing v1.9 rule:
 *   <= 1280px => compact header for everyone.
 *
 * Additional v2.0 rule:
 *   1281–1440px + coarse pointer (touch/tablet) => compact header.
 *
 * Desktop PCs/laptops with a fine pointer retain the desktop navigation,
 * even when their viewport is between 1281 and 1440px.
 */
@media (min-width: 1281px) and (max-width: 1440px) and (pointer: coarse) {
  .cs-desktop-nav {
    display: none !important;
  }

  .cs-mobile-nav-trigger {
    display: inline-flex !important;
  }

  .cs-header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    min-height: 82px !important;
    column-gap: 22px !important;
  }

  .cs-header-brand-zone {
    width: auto !important;
    min-height: 82px !important;
  }

  .cs-header-actions {
    width: auto !important;
    min-height: 82px !important;
    gap: 10px !important;
  }

  .cs-login-link {
    display: none !important;
  }

  .cs-header-brand-zone .cs-brand-link {
    top: 0 !important;
  }

  .cs-mobile-menu {
    position: absolute;
    z-index: 80;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: rgba(2, 12, 25, 0.97);
    border-top: 1px solid rgba(255,255,255,.06);
    border-bottom: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 24px 50px rgba(0,0,0,.30);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: max-height .28s ease, opacity .20s ease, visibility .20s ease;
  }

  html[data-cs-theme="light"] .cs-mobile-menu {
    background: rgba(244,248,254,.98);
  }

  .cs-mobile-menu.is-open {
    max-height: 620px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .cs-mobile-menu-nav {
    width: min(100% - 40px, 760px);
    margin-inline: auto;
    padding: 16px 0 22px;
    display: grid;
    gap: 4px;
  }

  .cs-mobile-menu-nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 12px;
    color: var(--cs-text) !important;
    text-decoration: none !important;
    font-size: 16px;
    font-weight: 650;
  }

  .cs-mobile-menu-nav .cs-mobile-login {
    margin-top: 8px;
    border-top: 1px solid var(--cs-border);
    border-radius: 0;
    color: var(--cs-blue-2) !important;
  }

  /* Use the tablet/single-column hero only for large touch devices. */
  .cs-hero-grid {
    width: min(100% - 48px, 1120px) !important;
    grid-template-columns: 1fr !important;
    gap: 44px !important;
    left: 0 !important;
    margin-inline: auto !important;
  }

  .cs-hero-copy-col {
    max-width: 760px !important;
  }

  .cs-hero-visual-col {
    justify-content: center !important;
  }

  .cs-product-frame {
    width: min(100%, 980px) !important;
  }

  .cs-product-badge--top {
    right: 16px !important;
  }

  .cs-product-badge--bottom {
    left: 16px !important;
  }
}


/* --------------------------------------------------------------------------
   v2.1 – homepage expansion
   -------------------------------------------------------------------------- */

.cs-home-section {
  padding: clamp(84px, 9vw, 126px) 0;
  position: relative;
}

.cs-home-section--soft {
  background:
    linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,.006));
  border-top: 1px solid rgba(255,255,255,.045);
  border-bottom: 1px solid rgba(255,255,255,.045);
}

html[data-cs-theme="light"] .cs-home-section--soft {
  background: linear-gradient(180deg, rgba(8,29,58,.022), rgba(8,29,58,.008));
  border-color: rgba(8,29,58,.06);
}

.cs-home-intro {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, .55fr);
  gap: clamp(38px, 6vw, 100px);
  align-items: end;
  margin-bottom: 46px;
}

.cs-home-intro .cs-section-title,
.cs-home-intro .cs-section-copy {
  margin: 0 !important;
}

.cs-home-intro .cs-section-copy {
  justify-self: end;
}

.cs-workflow-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.cs-workflow-card {
  position: relative;
  min-height: 330px;
  padding: 30px;
  border-radius: 24px;
  border: 1px solid var(--cs-border);
  background:
    linear-gradient(180deg, rgba(255,255,255,.042), rgba(255,255,255,.018));
  box-shadow: 0 18px 46px rgba(0,0,0,.18);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.cs-workflow-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cs-blue), var(--cs-blue-2) 52%, var(--cs-orange));
}

.cs-workflow-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0,94,233,.35);
  box-shadow: 0 24px 54px rgba(0,94,233,.10), 0 18px 44px rgba(0,0,0,.22);
}

.cs-workflow-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.cs-workflow-number {
  color: var(--cs-orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.cs-workflow-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, rgba(43,120,255,.98), rgba(0,94,233,.74));
  box-shadow: 0 10px 26px rgba(0,94,233,.20);
}

.cs-workflow-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cs-workflow-card h3 {
  margin: 0 0 12px !important;
  color: var(--cs-text) !important;
  font-family: Manrope, Inter, sans-serif;
  font-size: 31px !important;
  letter-spacing: -.04em !important;
}

.cs-workflow-card p {
  margin: 0 0 24px !important;
  color: var(--cs-muted) !important;
  line-height: 1.68;
}

.cs-workflow-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs-workflow-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--cs-text);
  font-size: 14px;
  line-height: 1.45;
}

.cs-workflow-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 7px;
  flex: 0 0 auto;
  background: var(--cs-blue-2);
  box-shadow: 0 0 10px rgba(0,94,233,.35);
}

/* Connected workflow */
.cs-connected-grid {
  display: grid;
  grid-template-columns: minmax(420px, .82fr) minmax(580px, 1.18fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: center;
}

.cs-connected-copy {
  max-width: 670px;
}

.cs-connected-copy .cs-section-title {
  margin-bottom: 22px !important;
}

.cs-connected-copy .cs-section-copy {
  margin-bottom: 30px !important;
}

.cs-connected-points {
  display: grid;
  gap: 16px;
}

.cs-connected-point {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
}

.cs-connected-point-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(0,94,233,.12);
  border: 1px solid rgba(0,94,233,.26);
  color: var(--cs-blue-2);
  font-weight: 800;
}

.cs-connected-point strong {
  display: block;
  color: var(--cs-text);
  margin-bottom: 3px;
  font-size: 15px;
}

.cs-connected-point span {
  display: block;
  color: var(--cs-muted);
  font-size: 14px;
  line-height: 1.55;
}

.cs-connected-visual {
  position: relative;
  min-height: 540px;
  border-radius: 30px;
  border: 1px solid var(--cs-border);
  background:
    radial-gradient(circle at 50% 50%, rgba(0,94,233,.16), transparent 52%),
    rgba(255,255,255,.018);
  overflow: hidden;
  box-shadow: var(--cs-shadow-soft);
}

.cs-connected-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 170px;
  height: 170px;
  border-radius: 36px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 22px;
  background: linear-gradient(145deg, #0A213E, #071527);
  border: 1px solid rgba(0,94,233,.38);
  box-shadow: 0 24px 60px rgba(0,94,233,.22);
  color: #fff;
  font-family: Manrope, Inter, sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.04em;
}

.cs-connected-core span {
  display: block;
}

.cs-connected-node {
  position: absolute;
  width: 150px;
  min-height: 96px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--cs-border);
  background: rgba(6,18,35,.88);
  box-shadow: 0 16px 38px rgba(0,0,0,.24);
  color: var(--cs-text);
}

html[data-cs-theme="light"] .cs-connected-node {
  background: rgba(255,255,255,.92);
}

.cs-connected-node strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.cs-connected-node span {
  color: var(--cs-muted);
  font-size: 12px;
  line-height: 1.4;
}

.cs-connected-node--plan { left: 8%; top: 13%; }
.cs-connected-node--teach { right: 8%; top: 13%; }
.cs-connected-node--assess { left: 8%; bottom: 13%; }
.cs-connected-node--manage { right: 8%; bottom: 13%; }

.cs-connected-line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30%;
  height: 1px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(0,94,233,.6), rgba(232,143,39,.35));
  opacity: .68;
}

.cs-connected-line--1 { transform: rotate(-145deg); }
.cs-connected-line--2 { transform: rotate(-35deg); }
.cs-connected-line--3 { transform: rotate(145deg); }
.cs-connected-line--4 { transform: rotate(35deg); }

/* Benefits */
.cs-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 44px;
}

.cs-benefit-card {
  padding: 28px;
  border-radius: 22px;
  border: 1px solid var(--cs-border);
  background: rgba(255,255,255,.025);
}

.cs-benefit-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cs-blue-2);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 18px;
}

.cs-benefit-label::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cs-blue), var(--cs-orange));
}

.cs-benefit-card h3 {
  margin: 0 0 10px !important;
  color: var(--cs-text) !important;
  font-size: 25px !important;
  letter-spacing: -.035em !important;
}

.cs-benefit-card p {
  margin: 0 !important;
  color: var(--cs-muted) !important;
  line-height: 1.65;
}

/* Schools block */
.cs-schools-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
  gap: clamp(40px, 6vw, 92px);
  align-items: center;
  padding: clamp(38px, 5vw, 70px);
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(0,94,233,.20);
  background:
    radial-gradient(620px 300px at 84% 12%, rgba(0,94,233,.17), transparent 70%),
    radial-gradient(520px 280px at 8% 100%, rgba(232,143,39,.07), transparent 72%),
    rgba(255,255,255,.025);
}

.cs-schools-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.cs-schools-copy {
  position: relative;
  z-index: 1;
}

.cs-schools-copy .cs-section-title {
  margin-bottom: 20px !important;
}

.cs-schools-copy .cs-section-copy {
  margin-bottom: 28px !important;
}

.cs-schools-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px 18px;
  margin-top: 26px;
}

.cs-schools-list span {
  position: relative;
  padding-left: 18px;
  color: var(--cs-text);
  font-size: 14px;
  line-height: 1.5;
}

.cs-schools-list span::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cs-orange);
}

.cs-schools-dashboard {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cs-school-stat,
.cs-school-chart {
  border: 1px solid var(--cs-border);
  border-radius: 20px;
  background: rgba(5,17,33,.70);
  padding: 22px;
}

html[data-cs-theme="light"] .cs-school-stat,
html[data-cs-theme="light"] .cs-school-chart {
  background: rgba(255,255,255,.78);
}

.cs-school-stat small,
.cs-school-chart small {
  display: block;
  color: var(--cs-muted);
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.cs-school-stat strong {
  display: block;
  color: var(--cs-text);
  font-family: Manrope, Inter, sans-serif;
  font-size: 30px;
  letter-spacing: -.04em;
}

.cs-school-chart {
  grid-column: 1 / -1;
  min-height: 220px;
}

.cs-chart-bars {
  height: 150px;
  display: flex;
  align-items: end;
  gap: 12px;
  margin-top: 20px;
}

.cs-chart-bar {
  flex: 1;
  min-width: 20px;
  border-radius: 9px 9px 4px 4px;
  background: linear-gradient(180deg, var(--cs-blue-2), rgba(0,94,233,.30));
}

.cs-chart-bar:nth-child(2),
.cs-chart-bar:nth-child(5) {
  background: linear-gradient(180deg, var(--cs-orange), rgba(232,143,39,.26));
}

/* Final CTA */
.cs-final-cta-wrap {
  padding: clamp(86px, 9vw, 130px) 0;
}

.cs-final-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(50px, 6vw, 82px);
  border-radius: 34px;
  text-align: center;
  border: 1px solid rgba(0,94,233,.24);
  background:
    radial-gradient(720px 360px at 50% -30%, rgba(0,94,233,.26), transparent 70%),
    radial-gradient(520px 260px at 100% 100%, rgba(232,143,39,.09), transparent 70%),
    rgba(255,255,255,.025);
}

.cs-final-cta-kicker {
  color: var(--cs-orange);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.cs-final-cta h2 {
  max-width: 900px;
  margin: 16px auto 18px !important;
  color: var(--cs-text) !important;
  font-size: clamp(40px, 5vw, 68px) !important;
  line-height: 1.02 !important;
  letter-spacing: -.055em !important;
}

.cs-final-cta p {
  max-width: 700px;
  margin: 0 auto 30px !important;
  color: var(--cs-muted) !important;
  font-size: 19px;
  line-height: 1.65;
}

.cs-final-cta .wp-block-buttons {
  justify-content: center;
}

@media (max-width: 1280px) {
  .cs-workflow-cards {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .cs-connected-grid,
  .cs-schools-panel {
    grid-template-columns: 1fr;
  }

  .cs-connected-copy,
  .cs-schools-copy {
    max-width: 820px;
  }
}

@media (max-width: 820px) {
  .cs-home-intro {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 34px;
  }

  .cs-home-intro .cs-section-copy {
    justify-self: start;
  }

  .cs-benefit-grid {
    grid-template-columns: 1fr;
  }

  .cs-connected-visual {
    min-height: 500px;
  }

  .cs-schools-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .cs-home-section {
    padding: 68px 0;
  }

  .cs-workflow-cards {
    grid-template-columns: 1fr;
  }

  .cs-workflow-card {
    min-height: auto;
  }

  .cs-connected-visual {
    min-height: 560px;
  }

  .cs-connected-core {
    width: 140px;
    height: 140px;
    border-radius: 28px;
    font-size: 20px;
  }

  .cs-connected-node {
    width: 132px;
    padding: 13px;
  }

  .cs-connected-node--plan { left: 4%; top: 8%; }
  .cs-connected-node--teach { right: 4%; top: 8%; }
  .cs-connected-node--assess { left: 4%; bottom: 8%; }
  .cs-connected-node--manage { right: 4%; bottom: 8%; }

  .cs-schools-dashboard {
    grid-template-columns: 1fr;
  }

  .cs-school-chart {
    grid-column: auto;
  }

  .cs-final-cta {
    text-align: left;
    padding: 38px 24px;
  }

  .cs-final-cta h2,
  .cs-final-cta p {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .cs-final-cta .wp-block-buttons {
    justify-content: flex-start;
  }
}


/* --------------------------------------------------------------------------
   v2.2 – fluid viewport widths + homepage proportion refinements
   Header behaviour from v2.0/v2.1 is intentionally left unchanged.
   -------------------------------------------------------------------------- */

/* Fluid content shells for homepage sections */
.cs-home-section > .cs-shell,
.cs-final-cta-wrap > .cs-shell {
  width: min(92vw, 1720px) !important;
  max-width: none !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
}

/* Slightly wider shell for dense 4-card workflow section */
#workflow > .cs-shell {
  width: min(94vw, 1780px) !important;
}

/* Keep desktop compositions spacious without stretching text too far */
.cs-home-intro {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .72fr) !important;
  gap: clamp(42px, 5vw, 92px) !important;
}

.cs-home-intro .cs-section-title {
  max-width: 880px;
}

.cs-home-intro .cs-section-copy {
  max-width: 610px;
}

/* Workflow cards: wider, better text measure */
.cs-workflow-cards {
  gap: clamp(18px, 1.5vw, 26px) !important;
}

.cs-workflow-card {
  min-width: 0;
  min-height: 320px;
  padding: clamp(26px, 2vw, 34px) !important;
}

.cs-workflow-card h3 {
  font-size: clamp(27px, 1.75vw, 33px) !important;
}

.cs-workflow-card p {
  max-width: 34ch;
}

/* Connected workflow: rebalance columns to reduce title fragmentation */
.cs-connected-grid {
  width: min(92vw, 1720px) !important;
  max-width: none !important;
  margin-inline: auto !important;
  grid-template-columns: minmax(520px, .98fr) minmax(560px, 1.02fr) !important;
  gap: clamp(54px, 6vw, 104px) !important;
}

.cs-connected-copy {
  max-width: 760px !important;
}

.cs-connected-copy .cs-section-title {
  max-width: 720px;
  font-size: clamp(46px, 4.4vw, 72px) !important;
  line-height: 1.02 !important;
}

.cs-connected-copy .cs-section-copy {
  max-width: 650px;
}

.cs-connected-visual {
  min-height: clamp(520px, 37vw, 620px) !important;
}

/* Make diagram clearer */
.cs-connected-line {
  height: 2px !important;
  opacity: .82 !important;
}

.cs-connected-core {
  width: clamp(170px, 12vw, 205px) !important;
  height: clamp(170px, 12vw, 205px) !important;
  box-shadow:
    0 24px 60px rgba(0,94,233,.24),
    0 0 54px rgba(0,94,233,.14) !important;
}

.cs-connected-node {
  width: clamp(150px, 12vw, 190px) !important;
}

/* Benefits */
.cs-benefit-grid {
  gap: clamp(18px, 1.8vw, 28px) !important;
}

.cs-benefit-card {
  padding: clamp(26px, 2.1vw, 34px) !important;
}

/* Schools: prevent narrow text column on medium/large screens */
.cs-schools-panel {
  grid-template-columns: minmax(560px, 1.02fr) minmax(520px, .98fr) !important;
  gap: clamp(48px, 5.5vw, 96px) !important;
  padding: clamp(44px, 5vw, 76px) !important;
}

.cs-schools-copy {
  max-width: 760px !important;
}

.cs-schools-copy .cs-section-title {
  max-width: 720px;
  font-size: clamp(46px, 4.4vw, 70px) !important;
  line-height: 1.02 !important;
}

.cs-schools-copy .cs-section-copy {
  max-width: 650px;
}

.cs-schools-list {
  max-width: 680px;
}

.cs-schools-dashboard {
  width: 100%;
  min-width: 0;
}

/* CTA uses same viewport logic */
.cs-final-cta {
  width: 100%;
}

/* Large desktop: preserve full four-card layout and comfortable proportions */
@media (min-width: 1441px) {
  .cs-workflow-cards {
    grid-template-columns: repeat(4, minmax(240px, 1fr)) !important;
  }
}

/* Laptop / large-tablet range:
   switch complex 2-column sections before text gets squeezed */
@media (max-width: 1320px) {
  .cs-connected-grid,
  .cs-schools-panel {
    grid-template-columns: 1fr !important;
  }

  .cs-connected-copy,
  .cs-schools-copy {
    max-width: 860px !important;
  }

  .cs-connected-copy .cs-section-title,
  .cs-schools-copy .cs-section-title {
    max-width: 820px;
  }

  .cs-connected-visual,
  .cs-schools-dashboard {
    width: min(100%, 980px);
  }

  .cs-schools-dashboard {
    justify-self: start;
  }
}

/* Two cards per row on normal laptop/tablet widths */
@media (max-width: 1280px) {
  #workflow > .cs-shell,
  .cs-home-section > .cs-shell,
  .cs-final-cta-wrap > .cs-shell {
    width: min(92vw, 1180px) !important;
  }

  .cs-workflow-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .cs-home-intro {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .cs-home-intro .cs-section-copy {
    justify-self: start !important;
    max-width: 760px;
  }

  .cs-connected-grid {
    width: min(92vw, 1180px) !important;
  }
}

/* Tablet portrait / narrow layouts */
@media (max-width: 900px) {
  .cs-home-section > .cs-shell,
  #workflow > .cs-shell,
  .cs-final-cta-wrap > .cs-shell,
  .cs-connected-grid {
    width: min(90vw, 860px) !important;
  }

  .cs-connected-copy .cs-section-title,
  .cs-schools-copy .cs-section-title {
    font-size: clamp(40px, 7vw, 58px) !important;
    line-height: 1.04 !important;
  }

  .cs-schools-panel {
    padding: clamp(34px, 5vw, 54px) !important;
  }

  .cs-connected-visual {
    min-height: 500px !important;
  }
}

/* Mobile: keep margins comfortable and avoid over-wide cards */
@media (max-width: 620px) {
  .cs-home-section > .cs-shell,
  #workflow > .cs-shell,
  .cs-final-cta-wrap > .cs-shell,
  .cs-connected-grid {
    width: calc(100% - 32px) !important;
  }

  .cs-workflow-cards {
    grid-template-columns: 1fr !important;
  }

  .cs-workflow-card {
    padding: 26px !important;
  }

  .cs-connected-copy .cs-section-title,
  .cs-schools-copy .cs-section-title {
    font-size: clamp(36px, 10.5vw, 50px) !important;
  }

  .cs-schools-panel {
    padding: 30px 22px !important;
  }

  .cs-schools-dashboard {
    grid-template-columns: 1fr !important;
  }

  .cs-school-chart {
    grid-column: auto !important;
  }
}


/* --------------------------------------------------------------------------
   v2.3 – FIX: true viewport-centred breakout
   -------------------------------------------------------------------------- */

/* Never allow homepage experiments to create page-level horizontal scrolling. */
html,
body {
  overflow-x: clip;
}

/*
 * v2.2 used vw widths inside WordPress constrained containers.
 * Auto margins centred those widths relative to the constrained parent,
 * not the viewport. The result was asymmetric overflow to the right.
 *
 * v2.3 explicitly recentres every expanded homepage shell on the viewport.
 */
.cs-home-section > .cs-shell,
.cs-final-cta-wrap > .cs-shell,
.cs-connected-grid {
  position: relative !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

/* Main homepage width: fluid but controlled */
.cs-home-section > .cs-shell,
.cs-final-cta-wrap > .cs-shell {
  width: min(90vw, 1680px) !important;
  max-width: none !important;
}

/* Dense workflow may use a touch more horizontal space */
#workflow > .cs-shell {
  width: min(92vw, 1740px) !important;
}

/* Connected workflow uses the same centered breakout logic */
.cs-connected-grid {
  width: min(90vw, 1680px) !important;
  max-width: none !important;
}

/* Ensure all grid children are actually allowed to shrink. */
.cs-home-intro > *,
.cs-workflow-cards > *,
.cs-connected-grid > *,
.cs-benefit-grid > *,
.cs-schools-panel > *,
.cs-schools-dashboard > * {
  min-width: 0 !important;
}

/* Keep four desktop cards completely inside their shell. */
.cs-workflow-cards {
  width: 100% !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.cs-workflow-card {
  width: auto !important;
  max-width: 100% !important;
}

/* The intro copy should not run into the viewport edge. */
.cs-home-intro {
  width: 100% !important;
}

.cs-home-intro .cs-section-copy {
  justify-self: end !important;
  width: 100%;
  max-width: 580px !important;
}

/* Connected section balanced inside the actual available width. */
.cs-connected-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) !important;
}

.cs-connected-copy {
  width: 100%;
  max-width: 720px !important;
}

.cs-connected-visual {
  width: 100% !important;
  max-width: 100% !important;
}

/* Schools: keep both halves contained and comfortably proportioned. */
.cs-schools-panel {
  width: 100% !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr) !important;
}

.cs-schools-copy {
  width: 100%;
  max-width: 720px !important;
}

.cs-schools-dashboard {
  width: 100% !important;
  max-width: 100% !important;
}

/* Earlier structural switch before complex layouts become cramped. */
@media (max-width: 1380px) {
  .cs-connected-grid,
  .cs-schools-panel {
    grid-template-columns: 1fr !important;
  }

  .cs-connected-copy,
  .cs-schools-copy {
    max-width: 820px !important;
  }

  .cs-connected-visual,
  .cs-schools-dashboard {
    width: min(100%, 1000px) !important;
    max-width: 1000px !important;
    justify-self: start;
  }
}

/* Normal laptop/tablet */
@media (max-width: 1280px) {
  .cs-home-section > .cs-shell,
  .cs-final-cta-wrap > .cs-shell,
  .cs-connected-grid,
  #workflow > .cs-shell {
    width: 90vw !important;
  }

  .cs-workflow-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .cs-home-intro {
    grid-template-columns: 1fr !important;
  }

  .cs-home-intro .cs-section-copy {
    justify-self: start !important;
    max-width: 760px !important;
  }
}

/* Tablet portrait */
@media (max-width: 900px) {
  .cs-home-section > .cs-shell,
  .cs-final-cta-wrap > .cs-shell,
  .cs-connected-grid,
  #workflow > .cs-shell {
    width: 88vw !important;
  }
}

/* Mobile */
@media (max-width: 620px) {
  .cs-home-section > .cs-shell,
  .cs-final-cta-wrap > .cs-shell,
  .cs-connected-grid,
  #workflow > .cs-shell {
    width: calc(100vw - 32px) !important;
  }

  .cs-workflow-cards {
    grid-template-columns: 1fr !important;
  }
}


/* --------------------------------------------------------------------------
   v2.4 – remove residual "ghost" background rectangles
   -------------------------------------------------------------------------- */
main.cs-main,
main.cs-main > .wp-block-group,
main.cs-main .wp-block-group.cs-section,
main.cs-main .wp-block-group.cs-shell,
.wp-site-blocks > main > .wp-block-group {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

.cs-home-section {
  isolation: isolate;
}

.cs-home-section > .cs-shell,
.cs-connected-grid,
.cs-final-cta-wrap > .cs-shell {
  background: transparent !important;
  box-shadow: none !important;
}

main.cs-main > .wp-block-group::before,
main.cs-main > .wp-block-group::after,
main.cs-main .wp-block-group.cs-section::before,
main.cs-main .wp-block-group.cs-section::after {
  content: none !important;
  display: none !important;
}


/* --------------------------------------------------------------------------
   v2.5 – definitive fix for central background rectangles
   -------------------------------------------------------------------------- */

/*
 * WordPress' constrained layout was limiting raw HTML <section> elements
 * to the global content width. Their background therefore appeared as a
 * narrow central rectangle, while the inner content was breaking out wider.
 *
 * Sections themselves now span the full viewport. Only their inner shells
 * remain width-limited and centred.
 */
main.cs-main > .cs-home-section,
main.cs-main > .cs-final-cta-wrap {
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  box-sizing: border-box !important;
}

/* Restore intentional full-width section treatments only at section level. */
main.cs-main > .cs-home-section--soft {
  background:
    linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,.006)) !important;
  border-top: 1px solid rgba(255,255,255,.045) !important;
  border-bottom: 1px solid rgba(255,255,255,.045) !important;
}

html[data-cs-theme="light"] main.cs-main > .cs-home-section--soft {
  background:
    linear-gradient(180deg, rgba(8,29,58,.022), rgba(8,29,58,.008)) !important;
  border-color: rgba(8,29,58,.06) !important;
}

/* Non-soft homepage sections stay fully transparent. */
main.cs-main > .cs-home-section:not(.cs-home-section--soft),
main.cs-main > .cs-final-cta-wrap {
  background: transparent !important;
}

/*
 * Inner shells no longer need to break out from a constrained parent:
 * centre them normally inside the now-full-width section.
 */
main.cs-main > .cs-home-section > .cs-shell,
main.cs-main > .cs-final-cta-wrap > .cs-shell {
  position: relative !important;
  left: auto !important;
  transform: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Connected grid is itself the shell inside a full-width section. */
main.cs-main > .cs-home-section > .cs-connected-grid {
  position: relative !important;
  left: auto !important;
  transform: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Avoid any WP global constrained-layout max-width leaking back in. */
main.cs-main > .cs-home-section,
main.cs-main > .cs-final-cta-wrap,
main.cs-main > .cs-home-section > .cs-shell,
main.cs-main > .cs-final-cta-wrap > .cs-shell,
main.cs-main > .cs-home-section > .cs-connected-grid {
  max-width: none;
}

/* Retain the v2.3/v2.4 fluid content widths. */
main.cs-main > .cs-home-section > .cs-shell,
main.cs-main > .cs-final-cta-wrap > .cs-shell {
  width: min(90vw, 1680px) !important;
}

main.cs-main > #workflow > .cs-shell {
  width: min(92vw, 1740px) !important;
}

main.cs-main > .cs-home-section > .cs-connected-grid {
  width: min(90vw, 1680px) !important;
}

@media (max-width: 1280px) {
  main.cs-main > .cs-home-section > .cs-shell,
  main.cs-main > .cs-final-cta-wrap > .cs-shell,
  main.cs-main > #workflow > .cs-shell,
  main.cs-main > .cs-home-section > .cs-connected-grid {
    width: 90vw !important;
  }
}

@media (max-width: 900px) {
  main.cs-main > .cs-home-section > .cs-shell,
  main.cs-main > .cs-final-cta-wrap > .cs-shell,
  main.cs-main > #workflow > .cs-shell,
  main.cs-main > .cs-home-section > .cs-connected-grid {
    width: 88vw !important;
  }
}

@media (max-width: 620px) {
  main.cs-main > .cs-home-section > .cs-shell,
  main.cs-main > .cs-final-cta-wrap > .cs-shell,
  main.cs-main > #workflow > .cs-shell,
  main.cs-main > .cs-home-section > .cs-connected-grid {
    width: calc(100vw - 32px) !important;
  }
}


/* --------------------------------------------------------------------------
   v2.6 – remove section background bands completely
   -------------------------------------------------------------------------- */

/*
 * The previous "soft" section treatment was the source of the visible
 * rectangles/bands. Homepage sections should sit on one continuous page
 * background. Visual separation comes from spacing and component surfaces.
 */
main.cs-main > .cs-home-section,
main.cs-main > .cs-home-section--soft,
main.cs-main > .cs-final-cta-wrap {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

/* Same rule in light mode: no alternate full-width bands. */
html[data-cs-theme="light"] main.cs-main > .cs-home-section,
html[data-cs-theme="light"] main.cs-main > .cs-home-section--soft,
html[data-cs-theme="light"] main.cs-main > .cs-final-cta-wrap {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
}

/*
 * Preserve only deliberate surfaces/components.
 * These selectors explicitly retain their own existing backgrounds/borders.
 */
.cs-workflow-card,
.cs-connected-visual,
.cs-benefit-card,
.cs-schools-panel,
.cs-school-stat,
.cs-school-chart,
.cs-final-cta {
  position: relative;
}

/* Remove any remaining section-level pseudo decoration. */
main.cs-main > .cs-home-section::before,
main.cs-main > .cs-home-section::after,
main.cs-main > .cs-final-cta-wrap::before,
main.cs-main > .cs-final-cta-wrap::after {
  content: none !important;
  display: none !important;
  background: none !important;
  border: 0 !important;
}


/* --------------------------------------------------------------------------
   v2.7 – definitive removal of soft-section background treatment
   -------------------------------------------------------------------------- */

/*
 * The class is removed from front-page.html. This global neutralizer is kept
 * as a safety net in case cached block markup still contains the old class.
 */
.cs-home-section--soft,
.wp-block-html .cs-home-section--soft,
main .cs-home-section--soft {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

html[data-cs-theme="light"] .cs-home-section--soft,
html[data-cs-theme="light"] .wp-block-html .cs-home-section--soft,
html[data-cs-theme="light"] main .cs-home-section--soft {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
}
