:root {
  --ink: #172027;
  --muted: #5d6872;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --line: #dfe4e0;
  --forest: #16463f;
  --forest-2: #0e302c;
  --teal: #287f78;
  --gold: #b98a35;
  --clay: #a85f45;
  --blue: #28476a;
  --soft-green: #e8f2ee;
  --soft-gold: #f7edda;
  --soft-blue: #e8eef5;
  --shadow: 0 18px 45px rgba(23, 32, 39, 0.12);
  --radius: 8px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(40, 127, 120, 0.5);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  z-index: 999;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  left: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 246, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  width: min(var(--container), calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--forest);
  color: #fff;
  font-size: 0.85rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: #34404a;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 650;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--soft-green);
  color: var(--forest);
}

.nav-cta {
  border: 1px solid var(--forest);
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 76px 0;
}

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

.hero {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #111b20;
  color: #fff;
}

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

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 22, 27, 0.92) 0%, rgba(13, 22, 27, 0.74) 43%, rgba(13, 22, 27, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  transform: translateX(calc((min(var(--container), calc(100vw - 32px)) - min(720px, calc(100vw - 32px))) / -2));
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.55rem, 6vw, 5.2rem);
  max-width: 820px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0;
}

.lead {
  margin-top: 1.25rem;
  max-width: 670px;
  font-size: 1.15rem;
  color: #e6ece9;
}

.section-lead {
  margin-top: 1rem;
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--gold);
  color: #16120b;
  box-shadow: 0 12px 28px rgba(185, 138, 53, 0.28);
}

.button-secondary {
  background: var(--surface);
  color: var(--forest);
  border-color: var(--line);
}

.button-outline {
  color: var(--forest);
  border-color: rgba(22, 70, 63, 0.28);
  background: transparent;
}

.hero .button-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2.25rem;
  max-width: 650px;
}

.hero-stat {
  border-left: 2px solid var(--gold);
  padding-left: 0.85rem;
}

.hero-stat strong {
  display: block;
  font-size: 1.05rem;
}

.hero-stat span {
  display: block;
  color: #cdd8d4;
  font-size: 0.9rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: 0 1px 0 rgba(23, 32, 39, 0.03);
}

.card strong {
  color: var(--forest);
}

.card p,
.card li {
  color: var(--muted);
}

.card h2 {
  margin-bottom: 0.5rem;
  font-size: 1.16rem;
  line-height: 1.2;
}

.price-card h2 {
  font-size: 1.35rem;
}

.feature-card {
  min-height: 100%;
}

.icon-box {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: var(--soft-green);
  color: var(--forest);
  font-weight: 900;
}

.band {
  background: var(--forest);
  color: #fff;
}

.band .section-lead,
.band p,
.band li {
  color: #d9e6e1;
}

.band .card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3rem;
  align-items: start;
}

.list {
  display: grid;
  gap: 0.8rem;
  padding: 0;
  margin: 1.2rem 0 0;
  list-style: none;
}

.list li {
  position: relative;
  padding-left: 1.7rem;
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--gold);
}

.steps {
  counter-reset: steps;
}

.step-card {
  position: relative;
}

.step-card::before {
  counter-increment: steps;
  content: counter(steps);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: var(--forest);
  color: #fff;
  font-weight: 800;
}

.curriculum {
  display: grid;
  gap: 0.85rem;
}

.curriculum-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.week-tag {
  display: inline-flex;
  justify-content: center;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: var(--soft-blue);
  color: var(--blue);
  font-weight: 800;
}

.small-link {
  color: var(--forest);
  font-weight: 800;
  text-decoration: none;
}

.small-link:hover {
  text-decoration: underline;
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.plan-featured {
  border-color: rgba(185, 138, 53, 0.6);
  box-shadow: var(--shadow);
}

.price {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--forest);
}

.price-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.badge {
  display: inline-flex;
  width: fit-content;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: var(--soft-gold);
  color: #6f4e19;
  font-size: 0.78rem;
  font-weight: 850;
}

.faq-list {
  display: grid;
  gap: 0.85rem;
}

details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

summary {
  cursor: pointer;
  font-weight: 800;
}

details p {
  margin-top: 0.8rem;
  color: var(--muted);
}

.page-hero {
  padding: 86px 0 58px;
  background: linear-gradient(135deg, #f8f4ea 0%, #eef4f1 54%, #f7f8f6 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  color: var(--ink);
}

.page-hero .lead {
  color: var(--muted);
}

.notice {
  border-left: 4px solid var(--gold);
  background: var(--soft-gold);
  padding: 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: #493817;
}

.notice-success {
  border-left-color: var(--teal);
  background: var(--soft-green);
  color: var(--forest);
}

.empty-state,
.loading-state {
  padding: 1rem;
  border: 1px dashed #c7d2cd;
  border-radius: var(--radius);
  background: #f9fbf8;
  color: var(--muted);
}

.empty-state strong,
.loading-state strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ink);
}

.helper-text {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.status-message {
  margin-top: 1rem;
}

body[data-protected-portal="true"] .site-header,
body[data-protected-portal="true"] .portal-shell {
  visibility: hidden;
}

body[data-protected-portal="true"].auth-ready .site-header,
body[data-protected-portal="true"].auth-ready .portal-shell {
  visibility: visible;
}

.login-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(232, 242, 238, 0.92), rgba(247, 237, 218, 0.78)),
    var(--paper);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 40px 16px;
}

.login-panel {
  width: min(1040px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 1rem;
  align-items: stretch;
}

.login-panel-narrow {
  grid-template-columns: minmax(0, 680px);
  justify-content: center;
}

.login-card,
.login-trust-panel {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 4vw, 2.4rem);
}

.login-card h1 {
  margin-top: 1.4rem;
  font-size: clamp(2.15rem, 6vw, 4rem);
}

.login-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
}

.password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid #cfd7d2;
  border-radius: 8px;
  background: #fff;
}

.password-field input {
  border: 0;
  min-width: 0;
}

.password-toggle {
  min-width: 76px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0 8px 8px 0;
  background: var(--soft-green);
  color: var(--forest);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.login-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.95rem;
}

.login-options a {
  color: var(--forest);
  font-weight: 800;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--forest);
}

.form-error {
  min-height: 1.5rem;
  color: #8f2e20;
  font-weight: 800;
}

.form-error:not(:empty) {
  padding: 0.75rem;
  border: 1px solid rgba(168, 95, 69, 0.45);
  border-radius: 8px;
  background: #fff2ed;
}

.form-error[data-state="success"]:not(:empty) {
  color: var(--forest);
  border-color: rgba(44, 117, 100, 0.35);
  background: var(--soft-green);
}

.form-error[data-state="info"]:not(:empty) {
  color: #493817;
  border-color: rgba(201, 158, 74, 0.45);
  background: var(--soft-gold);
}

.login-footer-actions {
  margin-top: 1.2rem;
}

.login-note,
.login-disclaimer {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.login-disclaimer {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.login-trust-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #11191d;
  color: #eef5f1;
}

.login-trust-panel h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.login-trust-panel p,
.login-trust-panel li {
  color: #d7e3de;
}

.login-trust-panel .notice {
  margin-top: 1.5rem;
  background: rgba(247, 237, 218, 0.12);
  color: #f8ead2;
}

.form-panel {
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.form-row label {
  font-weight: 800;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  min-height: 46px;
  padding: 0.75rem;
  border: 1px solid #cfd7d2;
  border-radius: 8px;
  font: inherit;
  background: #fff;
}

.form-row textarea {
  min-height: 150px;
}

.intake-hero .lead {
  color: var(--muted);
}

.intake-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1rem;
  align-items: start;
}

.intake-form {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.1rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.intake-progress {
  position: sticky;
  top: 86px;
  z-index: 2;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
}

.intake-progress p {
  margin-bottom: 0.45rem;
  font-weight: 850;
  color: var(--forest);
}

.intake-progress progress {
  width: 100%;
  height: 12px;
  accent-color: var(--teal);
}

.form-step {
  display: grid;
  gap: 1rem;
}

.form-step[hidden] {
  display: none;
}

.form-step fieldset {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form-step legend {
  padding: 0 0.35rem;
  font-weight: 850;
}

.form-step fieldset label {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  color: var(--muted);
}

.field-error {
  border-color: var(--clay) !important;
  box-shadow: 0 0 0 3px rgba(168, 95, 69, 0.14);
}

.field-message {
  margin-top: 0.35rem;
  color: #8f2e20;
  font-size: 0.92rem;
  font-weight: 800;
}

.step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.intake-sidebar {
  display: grid;
  gap: 1rem;
}

.diagnostic-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.diagnostic-strip span {
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.75);
  color: var(--forest);
  font-weight: 850;
}

.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(18, 25, 29, 0.72);
}

.modal[hidden] {
  display: none;
}

.modal-dialog {
  width: min(640px, 100%);
  max-height: min(760px, calc(100vh - 32px));
  overflow: auto;
  padding: clamp(1.1rem, 4vw, 2rem);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.modal-close {
  float: right;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  font-weight: 900;
}

.site-footer {
  padding: 48px 0;
  background: #12191d;
  color: #e7ece9;
}

.site-footer h2 {
  margin: 0 0 0.7rem;
  color: #fff;
  font-size: 1rem;
  line-height: 1.2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 0.75fr 1fr;
  gap: 2rem;
}

.footer-links {
  display: grid;
  gap: 0.45rem;
}

.footer-links a {
  color: #d4ddd9;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.disclaimer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #b9c6c1;
  font-size: 0.88rem;
}

.portal-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: calc(100vh - 72px);
}

.portal-sidebar {
  background: #11191d;
  color: #eef5f1;
  padding: 1.25rem;
}

.portal-sidebar h2 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.portal-nav {
  display: grid;
  gap: 0.25rem;
}

.portal-nav a {
  padding: 0.62rem 0.75rem;
  border-radius: 8px;
  color: #d7e3de;
  text-decoration: none;
  font-size: 0.94rem;
}

.portal-nav a:hover,
.portal-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.portal-logout {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.62rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.portal-logout:hover {
  background: rgba(255, 255, 255, 0.1);
}

.portal-main {
  padding: 34px;
  background: #f5f6f2;
}

.portal-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.4rem;
}

.portal-header h1 {
  font-size: clamp(2rem, 4vw, 3.15rem);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: var(--soft-green);
  color: var(--forest);
  font-weight: 850;
  white-space: nowrap;
}

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

.dashboard-card {
  min-height: 160px;
}

.button[aria-pressed="true"],
.button.is-active {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}

.progress-track {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe6e1;
}

.progress-fill {
  height: 100%;
  width: var(--progress, 40%);
  background: linear-gradient(90deg, var(--teal), var(--gold));
}

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

.module-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.module-card h3 {
  font-size: 1.05rem;
}

.module-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.8rem 0;
}

.meta-chip {
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
  background: #eef2f0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.lesson-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 360px;
  gap: 1rem;
  align-items: start;
}

.video-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #10191d;
  border-radius: var(--radius);
  border: 1px solid #243238;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-caption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.portal-section {
  margin-top: 1rem;
}

.checklist {
  display: grid;
  gap: 0.7rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.checklist li {
  display: flex;
  position: relative;
  gap: 0.65rem;
  align-items: flex-start;
  color: var(--muted);
}

.checklist li::before {
  content: "";
  display: grid;
  flex: 0 0 22px;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--soft-green);
  border: 6px solid var(--soft-green);
  box-shadow: inset 0 0 0 4px var(--forest);
}

.resource-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

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

th,
td {
  padding: 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  background: #eef3ef;
  color: var(--forest);
}

tr:last-child td {
  border-bottom: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1080px) {
  .grid-4,
  .dashboard-grid,
  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid,
  .lesson-layout,
  .login-panel,
  .intake-layout {
    grid-template-columns: 1fr 1fr;
  }

  .diagnostic-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero {
    min-height: 620px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(13, 22, 27, 0.94) 0%, rgba(13, 22, 27, 0.78) 56%, rgba(13, 22, 27, 0.38) 100%);
  }

  .hero-content {
    transform: none;
  }

  .hero-stats,
  .grid-2,
  .grid-3,
  .split,
  .curriculum-item,
  .portal-shell,
  .lesson-layout,
  .resource-list,
  .login-panel,
  .intake-layout {
    grid-template-columns: 1fr;
  }

  .intake-progress {
    position: static;
  }

  .portal-sidebar {
    position: static;
  }

  .portal-main {
    padding: 24px 16px;
  }

  .portal-header {
    flex-direction: column;
  }
}

@media (max-width: 580px) {
  .section {
    padding: 54px 0;
  }

  .page-hero {
    padding: 58px 0 42px;
  }

  .hero {
    min-height: 690px;
  }

  .hero-actions,
  .actions,
  .step-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .grid-4,
  .dashboard-grid,
  .module-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .login-shell {
    padding: 18px 12px;
  }

  .login-options {
    align-items: flex-start;
    flex-direction: column;
  }

  .card {
    padding: 1rem;
  }
}
