:root {
  --ink: #16201d;
  --muted: #5c6863;
  --paper: #fffaf3;
  --panel: #ffffff;
  --sage: #5f8d78;
  --teal: #236d78;
  --coral: #d7654d;
  --gold: #d7a84e;
  --navy: #1b3142;
  --line: rgba(22, 32, 29, 0.14);
  --shadow: 0 24px 60px rgba(22, 32, 29, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(255, 250, 243, 0.88);
  border-bottom: 1px solid rgba(22, 32, 29, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 210px;
}

.brand-logo {
  display: block;
  width: auto;
  max-width: min(330px, 52vw);
  height: clamp(58px, 6vw, 78px);
  object-fit: contain;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 24px);
  color: var(--navy);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
}

.nav-cta {
  color: white;
  background: var(--coral);
}

.menu-button {
  display: none;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 27, 28, 0.78), rgba(18, 27, 28, 0.42) 42%, rgba(18, 27, 28, 0.05) 72%);
}

.hero-content {
  position: relative;
  max-width: 760px;
  padding: 150px clamp(22px, 6vw, 84px) 86px;
  color: white;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd7a0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  max-width: 680px;
  font-size: clamp(4rem, 11vw, 8.4rem);
  line-height: 0.9;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4.8vw, 4.4rem);
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.32rem;
}

.hero-copy {
  max-width: 590px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.1rem, 2vw, 1.42rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button.primary {
  color: white;
  background: var(--coral);
  box-shadow: 0 14px 30px rgba(215, 101, 77, 0.24);
}

.button.secondary {
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
}

.section,
.section-band {
  padding: clamp(58px, 8vw, 112px) clamp(20px, 5vw, 76px);
}

.section-band,
.mission-band,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: center;
}

.section-band {
  background: white;
}

.section-band p,
.mission-band p,
.contact p {
  color: var(--muted);
  font-size: 1.13rem;
  line-height: 1.7;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 32px;
}

.section-heading.compact {
  max-width: 980px;
}

.platform-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  background: #f4efe6;
}

.platform-map article {
  position: relative;
  min-height: 220px;
  padding: 28px;
  border: 1px solid rgba(22, 32, 29, 0.16);
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 42px rgba(22, 32, 29, 0.06);
}

.map-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 900;
}

.platform-map h3 {
  font-size: 1.8rem;
}

.platform-map p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.62;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.program-card,
.dashboard-panel,
.portal-panel,
.portal-sidebar,
.contact-form,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 42px rgba(22, 32, 29, 0.06);
}

.program-card {
  overflow: hidden;
  padding: 24px;
  min-height: 100%;
}

.program-card > img {
  width: calc(100% + 48px);
  height: 126px;
  margin: -24px -24px 22px;
  object-fit: cover;
}

.program-card:nth-child(1) > img {
  object-position: 76% 42%;
}

.program-card:nth-child(2) > img {
  object-position: 86% 62%;
}

.program-card:nth-child(3) > img {
  object-position: 26% 74%;
}

.program-card:nth-child(4) > img {
  object-position: 58% 54%;
}

.program-card.featured {
  border-color: rgba(35, 109, 120, 0.35);
  background: #f3faf7;
}

.program-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border-radius: 50%;
  color: white;
  background: var(--teal);
  font-weight: 900;
}

.program-card p,
.program-card li {
  color: var(--muted);
  line-height: 1.58;
}

.program-card ul,
.task-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.program-card li {
  padding-top: 10px;
  border-top: 1px solid rgba(22, 32, 29, 0.08);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  background: #f4efe6;
}

.split p {
  color: var(--muted);
  line-height: 1.7;
}

.pricing-list {
  display: grid;
  gap: 14px;
}

.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 18px;
  padding: 18px;
  border-left: 5px solid var(--sage);
  background: white;
  box-shadow: 0 14px 32px rgba(22, 32, 29, 0.07);
}

.price-row strong {
  color: var(--teal);
}

.price-row small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.mission-band {
  color: white;
  background: var(--navy);
}

.mission-band .eyebrow,
.mission-band p {
  color: #ffd7a0;
}

.school-fit {
  background: white;
}

.fit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.fit-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 18px 42px rgba(22, 32, 29, 0.05);
}

.fit-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.support-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(22, 32, 29, 0.1);
}

.support-links a {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid rgba(35, 109, 120, 0.18);
  border-radius: 8px;
  background: #f3faf7;
}

.support-links span {
  color: var(--teal);
  font-weight: 900;
}

.support-links small {
  color: var(--muted);
  line-height: 1.45;
}

.portal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
}

.portal-sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
}

.school-pill {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  text-align: left;
  font-weight: 800;
  cursor: pointer;
}

.school-pill.active {
  color: white;
  border-color: var(--teal);
  background: var(--teal);
}

.portal-panel {
  min-width: 0;
  padding: 24px;
}

.school-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  margin: -4px 0 26px;
  padding: 22px;
  border: 1px solid rgba(35, 109, 120, 0.18);
  border-radius: 8px;
  background: linear-gradient(90deg, #f4faf6, white);
}

.school-crest {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border: 4px solid var(--gold);
  border-radius: 18px;
  color: white;
  background: var(--navy);
  font-size: 3rem;
  font-weight: 900;
}

.school-hero h3 {
  margin-bottom: 6px;
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  line-height: 0.95;
}

.school-hero p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.portal-topline,
.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.status {
  padding: 7px 10px;
  border-radius: 999px;
  color: #184337;
  background: #dff1e7;
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.metrics div {
  padding: 16px;
  border-radius: 8px;
  background: #f4f7f3;
}

.metrics span {
  display: block;
  font-size: 2rem;
  font-weight: 900;
}

.metrics small,
td,
th {
  color: var(--muted);
}

.class-list {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.class-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, auto);
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(22, 32, 29, 0.11);
  border-radius: 8px;
  background: #fffdf8;
}

.class-card h4 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.class-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.class-actions {
  display: grid;
  gap: 8px;
}

.class-actions a {
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 900;
}

.class-actions a:first-child {
  color: white;
  border-color: var(--teal);
  background: var(--teal);
}

.seat-meter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.seat-meter span {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5ebe5;
}

.seat-meter span::before {
  content: "";
  display: block;
  width: var(--filled);
  height: 100%;
  border-radius: inherit;
  background: var(--sage);
}

.seat-meter small {
  color: var(--muted);
  font-weight: 900;
}

.download-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.download-strip a {
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid rgba(35, 109, 120, 0.18);
  border-radius: 8px;
  color: var(--teal);
  background: #f3faf7;
  font-weight: 900;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 10px;
  border-bottom: 1px solid rgba(22, 32, 29, 0.1);
  text-align: left;
  font-size: 0.95rem;
}

th {
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dashboard {
  background: #edf6f2;
}

.app-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(22, 32, 29, 0.15);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.app-nav {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 22px 16px;
  color: white;
  background: #0f4d35;
}

.app-nav strong {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.app-nav a {
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.app-nav a.active,
.app-nav a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.15);
}

.app-main {
  min-width: 0;
  padding: 22px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stat-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.dashboard-panel {
  padding: 22px;
}

.dashboard-panel.enrollment-panel {
  grid-column: span 2;
}

.calendar-panel {
  grid-column: span 2;
}

.ai-panel,
.automation-panel {
  grid-column: span 2;
}

.panel-header h3 {
  margin-bottom: 0;
}

.panel-header span {
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 900;
  white-space: nowrap;
}

.bar-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.bar-list div {
  display: grid;
  grid-template-columns: 1fr 40px;
  gap: 14px;
  align-items: center;
}

.bar-list span {
  position: relative;
  min-height: 34px;
  padding: 8px 10px;
  overflow: hidden;
  border-radius: 8px;
  background: #edf1ed;
  font-weight: 800;
}

.bar-list span::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--value);
  background: rgba(95, 141, 120, 0.28);
}

.bar-list strong {
  text-align: right;
}

.task-list {
  display: grid;
  gap: 14px;
}

.task-list li {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 10px;
  color: var(--muted);
  line-height: 1.45;
}

.task-list span {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.calendar-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.calendar-strip div {
  display: grid;
  place-items: center;
  min-height: 92px;
  border: 1px solid rgba(35, 109, 120, 0.18);
  border-radius: 8px;
  background: #f3faf7;
}

.calendar-strip strong {
  font-size: 2rem;
}

.calendar-strip small {
  color: var(--muted);
  font-weight: 900;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.tool-grid button {
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(22, 32, 29, 0.13);
  border-radius: 8px;
  color: var(--ink);
  background: #fffdf8;
  text-align: left;
  font-weight: 900;
  cursor: pointer;
}

.tool-grid small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.35;
}

.automation-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.automation-flow span {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 72px;
  padding: 10px;
  border: 1px solid rgba(215, 168, 78, 0.4);
  border-radius: 8px;
  background: #fff7e6;
  color: var(--navy);
  text-align: center;
  font-size: 0.88rem;
  font-weight: 900;
}

.automation-flow span:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -11px;
  z-index: 1;
  width: 11px;
  height: 2px;
  background: var(--gold);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 20px 22px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 900;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.contact {
  background: white;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-weight: 900;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  min-height: 46px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
}

.contact-form textarea {
  min-height: 118px;
  padding: 12px;
  resize: vertical;
}

.contact-form .button {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.form-wide {
  grid-column: 1 / -1;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(20px, 5vw, 76px);
  color: rgba(255, 255, 255, 0.78);
  background: #111c1b;
  font-size: 0.92rem;
}

@media (max-width: 1080px) {
  .program-grid,
  .dashboard-grid,
  .platform-map,
  .stat-grid,
  .fit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    padding: 18px;
    background: rgba(255, 250, 243, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .top-nav.open {
    display: grid;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: 860px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(18, 27, 28, 0.86), rgba(18, 27, 28, 0.46) 58%, rgba(18, 27, 28, 0.14));
  }

  .section-band,
  .mission-band,
  .contact,
  .split,
  .portal-layout,
  .app-shell,
  .platform-map,
  .fit-grid,
  .support-links {
    grid-template-columns: 1fr;
  }

  .portal-sidebar,
  .app-nav {
    grid-template-columns: 1fr;
  }

  .dashboard-panel.enrollment-panel,
  .calendar-panel,
  .ai-panel,
  .automation-panel {
    grid-column: span 1;
  }

  .class-card,
  .school-hero {
    grid-template-columns: 1fr;
  }

  .automation-flow {
    grid-template-columns: 1fr;
  }

  .automation-flow span:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 12px 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    height: 56px;
    max-width: 56vw;
  }

  h1 {
    font-size: 3.6rem;
  }

  .hero-content {
    padding: 130px 18px 60px;
  }

  .program-grid,
  .dashboard-grid,
  .stat-grid,
  .tool-grid,
  .contact-form,
  .metrics,
  .calendar-strip {
    grid-template-columns: 1fr;
  }

  .price-row {
    grid-template-columns: 1fr;
  }
}
