:root {
  color-scheme: light;
  --bg: #f4f8f2;
  --surface: #ffffff;
  --surface-2: #eef7ef;
  --text: #17231c;
  --muted: #637167;
  --border: #d8e4d8;
  --blue: #227454;
  --blue-soft: #e8f5ed;
  --green: #177245;
  --green-strong: #0e5d36;
  --green-soft: #e5f4ea;
  --mint: #f8fff9;
  --amber: #a96000;
  --amber-soft: #fff2d8;
  --red: #b42318;
  --red-soft: #ffe8e4;
  --shadow: 0 18px 42px rgba(24, 74, 46, 0.11);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fbfffb 0%, var(--bg) 34%, #ffffff 100%);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

h1 {
  max-width: 840px;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: 0;
  margin-bottom: 20px;
}

h2 {
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: 0;
  margin-bottom: 12px;
}

h3 {
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0;
  margin-bottom: 8px;
}

code {
  background: #eef1f4;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
}

input,
textarea,
select {
  width: 100%;
  max-width: 100%;
  min-height: 42px;
  border: 1px solid #cfd7d1;
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  font: inherit;
  padding: 10px 12px;
}

textarea {
  resize: vertical;
}

button {
  font: inherit;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

label {
  display: grid;
  gap: 6px;
  color: #2a3138;
  font-weight: 650;
}

label input,
label textarea,
label select {
  font-weight: 450;
}

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

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
}

tr.is-stale td:first-child {
  border-left: 4px solid var(--amber);
}

details summary {
  cursor: pointer;
  color: var(--green);
  font-weight: 700;
}

main,
section,
article,
aside,
form,
.section > *,
.admin-panel > *,
.content-block > *,
.summary-block > *,
.feature-card > *,
.about-card > *,
.achievement-card > *,
.home-hero-header > *,
.home-hero-main > *,
.hero-bullet-card > *,
.topic-card > *,
.report-card > *,
.checkpoint-card > *,
.diagnostic-card > *,
.diagnostic-admin-card > *,
.review-task-card > *,
.pricing-card > *,
.lead-card > *,
.forecast-main-card > *,
.geometry-card > *,
.forecast-chart-card > *,
.home-demo-chart-card > *,
.forecast-explanation > *,
.competency-card > *,
.homework-item > * {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 900;
  flex: 0 0 auto;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 20px rgba(14, 93, 54, 0.16);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  font-size: 18px;
  letter-spacing: 0;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 650;
  min-width: 0;
}

.topnav > a,
.topnav .nav-dropdown-trigger,
.topnav .link-button {
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--green);
  padding: 8px 10px;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.topnav > a:hover,
.topnav .nav-dropdown:hover .nav-dropdown-trigger,
.topnav .nav-dropdown:focus-within .nav-dropdown-trigger,
.topnav .nav-dropdown-trigger:hover,
.topnav .link-button:hover {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 18px rgba(23, 114, 69, 0.18);
  text-decoration: none;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  border: 0;
  background: transparent;
  color: var(--green);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  display: grid;
  gap: 4px;
  min-width: 230px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  border-radius: 7px;
  padding: 9px 10px;
  color: var(--text);
}

.nav-dropdown-menu a:hover {
  background: var(--green);
  color: #fff;
  text-decoration: none;
}

.inline-form {
  display: inline;
  margin: 0;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--green);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.section {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 44px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 42px;
  align-items: center;
  min-height: calc(100vh - 108px);
  padding-top: 34px;
  padding-bottom: 30px;
}

.hero-copy::before {
  content: "";
  display: block;
  width: 72px;
  height: 6px;
  border-radius: 999px;
  background: var(--green);
  margin-bottom: 18px;
}

.hero-text {
  max-width: 680px;
  color: #405146;
  font-size: 18px;
}

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

.hero-proof span {
  border: 1px solid #c8dfce;
  border-radius: 999px;
  background: #fff;
  color: var(--green-strong);
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 800;
}

.home-hero {
  position: relative;
  display: grid;
  gap: clamp(18px, 2.4vw, 30px);
  width: min(1880px, calc(100vw - 96px));
  min-height: calc(100vh - 64px);
  padding-top: 22px;
  padding-bottom: 44px;
}

.home-hero-header {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.home-hero-header p {
  max-width: 880px;
  margin-bottom: 0;
  color: #405146;
  font-size: clamp(17px, 1.25vw, 22px);
  line-height: 1.45;
}

.home-hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, 1fr);
  align-items: stretch;
  gap: clamp(28px, 4vw, 64px);
}

.home-demo-chart-card {
  display: grid;
  gap: 14px;
  align-content: center;
  border: 1px solid #c8dfce;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #f8fff9 100%);
  padding: clamp(18px, 2vw, 28px);
  box-shadow: var(--shadow);
}

.home-demo-chart {
  min-height: clamp(300px, 23vw, 410px);
}

.home-hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  max-width: none;
}

.home-hero-brand img {
  flex: 0 0 auto;
  width: clamp(66px, 5.2vw, 94px);
  aspect-ratio: 1;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(14, 93, 54, 0.16);
}

.home-hero-brand h1 {
  max-width: none;
  margin-bottom: 0;
  font-size: clamp(48px, 5vw, 86px);
  line-height: 0.95;
}

.home-hero-copy {
  display: grid;
  align-content: center;
  gap: 18px;
}

.hero-bullets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.5vw, 22px);
  width: 100%;
  text-align: left;
}

.hero-bullet-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: clamp(120px, 8.5vw, 155px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: clamp(14px, 1.25vw, 19px);
  color: #405146;
  box-shadow: 0 10px 26px rgba(24, 74, 46, 0.05);
}

.hero-bullet-card span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 19px;
  font-weight: 950;
}

.hero-bullet-card p {
  margin-bottom: 0;
  color: #405146;
  font-size: clamp(15px, 0.95vw, 18px);
  line-height: 1.36;
}

.hero-bullet-card strong {
  color: var(--text);
  font-weight: 900;
}

.home-hero-action {
  display: flex;
  justify-content: flex-start;
}

.hero-request-button {
  position: fixed;
  right: clamp(16px, 2vw, 34px);
  bottom: clamp(16px, 2vw, 34px);
  z-index: 35;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #b8d8c0;
  color: var(--green-strong);
  padding: 10px 16px;
  font-weight: 900;
  box-shadow: var(--shadow);
  transform: none;
}

.hero-request-button:hover {
  background: var(--green);
  color: #fff;
  text-decoration: none;
}

.eyebrow {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

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

.button.primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 22px rgba(23, 114, 69, 0.2);
}

.button.request-cta {
  background: #0b4d2f;
  color: #fff;
  border-color: #0b4d2f;
  box-shadow: 0 12px 26px rgba(11, 77, 47, 0.24);
}

.button.request-cta:hover {
  background: #073b24;
  border-color: #073b24;
}

.floating-request-cta {
  position: fixed;
  right: clamp(16px, 2.4vw, 36px);
  bottom: clamp(16px, 2.4vw, 32px);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-height: 52px;
  overflow: hidden;
  border: 1px solid #0b4d2f;
  border-radius: 999px;
  background: #0b4d2f;
  color: #fff;
  padding: 12px 20px;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(11, 77, 47, 0.3);
  transition: gap .24s ease, padding .24s ease, background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.floating-request-icon {
  display: grid;
  place-items: center;
  width: 0;
  max-width: 0;
  opacity: 0;
  transform: translateX(10px) rotate(5deg);
  transition: width .24s ease, max-width .24s ease, opacity .18s ease, transform .24s ease;
}

.floating-request-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.floating-request-cta:hover,
.floating-request-cta:focus-visible {
  gap: 9px;
  padding-left: 17px;
  padding-right: 23px;
  background: #073b24;
  color: #fff;
  text-decoration: none;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 42px rgba(11, 77, 47, 0.36);
}

.floating-request-cta:hover .floating-request-icon,
.floating-request-cta:focus-visible .floating-request-icon {
  width: 26px;
  max-width: 26px;
  opacity: 1;
  transform: translateX(0) rotate(0);
}

/* Public landing page */
.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: center;
  min-height: auto;
  padding-top: 42px;
  padding-bottom: 46px;
}

.landing-hero-copy h1 {
  max-width: 760px;
  font-size: clamp(42px, 4.25vw, 68px);
  line-height: 1.02;
}

.landing-hero-copy .hero-text {
  max-width: 620px;
  margin-bottom: 28px;
}

.landing-hero-visual {
  position: relative;
  margin: 0;
}

.landing-hero-visual::before,
.landing-hero-visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 999px;
}

.landing-hero-visual::before {
  inset: 8% -7% 0 9%;
  border-radius: 48% 52% 46% 54%;
  background: var(--green-soft);
}

.landing-hero-visual::after {
  width: 72px;
  height: 72px;
  right: 2%;
  top: 2%;
  border: 14px solid #cbe7d4;
}

.landing-hero-visual img {
  display: block;
  width: 100%;
  max-height: 570px;
  object-fit: contain;
}

.method-preview {
  padding-top: 52px;
  padding-bottom: 58px;
}

.method-preview .section-heading {
  max-width: 720px;
}

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

.method-step {
  position: relative;
  display: grid;
  align-content: start;
  grid-column: span 2;
  gap: 13px;
  min-height: 332px;
  overflow: hidden;
  border: 1px solid #cfe0d2;
  border-radius: 14px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 14px 34px rgba(24, 74, 46, 0.07);
}

.method-step:nth-child(even) {
  background: #f3fbf5;
}

.method-step:nth-child(4),
.method-step:nth-child(5) {
  grid-column: span 3;
}

.method-step h3,
.method-step p {
  margin-bottom: 0;
}

.method-step p {
  color: #405146;
  font-size: 17px;
  line-height: 1.5;
}

.method-step h3 {
  font-size: 22px;
}

.method-number {
  color: #7a8b80;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.method-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 106px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green-strong);
}

.method-step-diagnostic .method-icon span {
  width: 14px;
  border-radius: 6px 6px 2px 2px;
  background: var(--green);
}

.method-step-diagnostic .method-icon span:nth-child(1) { height: 24px; opacity: .45; }
.method-step-diagnostic .method-icon span:nth-child(2) { height: 42px; opacity: .7; }
.method-step-diagnostic .method-icon span:nth-child(3) { height: 58px; }

.method-step-plan .method-icon {
  flex-direction: column;
  align-items: stretch;
  padding: 18px;
}

.method-step-plan .method-icon i {
  height: 7px;
  border-radius: 999px;
  background: var(--green);
}

.method-step-plan .method-icon i:nth-child(2) { width: 78%; opacity: .72; }
.method-step-plan .method-icon i:nth-child(3) { width: 56%; opacity: .48; }

.method-step-lessons .method-icon b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #a8ceb3;
  border-radius: 50%;
  background: #fff;
  font-size: 18px;
}

.method-step-progress .method-icon svg {
  width: 82%;
  height: 58px;
}

.method-step-progress polyline {
  fill: none;
  stroke: var(--green);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.method-step-progress circle { fill: var(--green-strong); }

.method-step-checkpoint .method-icon span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 30px;
  font-weight: 900;
}

.method-heading {
  max-width: 850px !important;
}

.method-heading > p:last-child {
  max-width: 800px;
  font-size: 20px;
  line-height: 1.55;
}

.method-cycle {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(460px, 1.08fr);
  gap: 24px;
  align-items: start;
}

.method-cycle .method-steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.method-cycle .method-step,
.method-cycle .method-step:nth-child(4) {
  grid-column: span 1;
  min-height: 0;
  gap: 9px;
  padding: 19px;
}

.method-cycle .method-step p {
  font-size: 15px;
  line-height: 1.42;
}

.method-cycle .method-step h3 {
  font-size: 20px;
}

.method-cycle .method-icon {
  height: 78px;
}

.method-dashboard {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #bcd6c3;
  border-radius: 18px;
  background: #fff;
  padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 20px 48px rgba(17, 73, 43, .11);
}

.method-dashboard-head,
.method-score-row,
.method-topic-delta > div,
.method-next-focus {
  display: flex;
  align-items: center;
}

.method-dashboard-head {
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.method-dashboard-head h3 {
  margin: 3px 0 0;
  font-size: 27px;
}

.method-dashboard-kicker,
.method-dashboard-period,
.method-score-row span,
.method-next-focus span {
  color: #627369;
  font-size: 13px;
  font-weight: 800;
}

.method-dashboard-kicker {
  color: var(--green);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.method-dashboard-period {
  border-radius: 999px;
  background: var(--green-soft);
  padding: 8px 11px;
  white-space: nowrap;
}

.method-score-row {
  gap: 14px;
  padding: 22px 0 12px;
}

.method-score-row > div {
  display: grid;
  gap: 2px;
}

.method-score-row strong {
  font-size: 35px;
  line-height: 1;
}

.method-score-current strong {
  color: var(--green);
}

.method-score-arrow {
  font-size: 23px !important;
}

.method-score-delta {
  margin-left: auto;
  border-radius: 999px;
  background: #dff4e5;
  color: #0a713f !important;
  padding: 8px 11px;
}

.method-chart {
  position: relative;
  padding: 10px 0 24px 34px;
}

.method-chart svg {
  display: block;
  width: 100%;
  height: 190px;
  overflow: visible;
}

.chart-grid-line {
  stroke: #dfe9e2;
  stroke-width: 1;
  stroke-dasharray: 5 6;
}

.chart-progress-line {
  fill: none;
  stroke: var(--green);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-progress-point {
  fill: #fff;
  stroke: var(--green);
  stroke-width: 5;
}

.chart-progress-point-last {
  fill: var(--green);
  stroke: #dff4e5;
  stroke-width: 7;
}

.method-chart-y {
  position: absolute;
  inset: 22px auto 36px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #7a8b80;
  font-size: 11px;
  font-weight: 800;
}

.method-chart-x {
  display: flex;
  justify-content: space-between;
  color: #7a8b80;
  font-size: 11px;
  font-weight: 800;
}

.method-topic-delta {
  display: grid;
  gap: 9px;
}

.method-topic-delta > div {
  gap: 10px;
  border: 1px solid #d9e7dc;
  border-radius: 10px;
  padding: 11px 13px;
}

.method-topic-delta span {
  margin-right: auto;
  color: #405146;
  font-size: 14px;
}

.method-topic-delta strong {
  font-size: 14px;
}

.method-topic-delta em {
  color: var(--green);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.method-next-focus {
  gap: 10px;
  margin-top: 12px;
  border-radius: 10px;
  background: var(--green-soft);
  padding: 13px;
}

.method-next-focus span {
  margin-right: auto;
}

.method-next-focus strong {
  font-size: 14px;
  text-align: right;
}

.method-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 24px;
  font-weight: 900;
}

.home-teacher {
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
  padding-top: 58px;
  padding-bottom: 60px;
}

.home-teacher-photo {
  position: relative;
  padding: 14px 14px 0;
  border: 1px solid #c8dfce;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.home-teacher-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  object-fit: cover;
  object-position: center top;
}

.teacher-signature {
  display: grid;
  gap: 2px;
  padding: 14px 4px 16px;
}

.teacher-signature span {
  color: var(--muted);
  font-size: 14px;
}

.home-teacher-intro {
  max-width: 690px;
  color: #405146;
  font-size: 18px;
}

.teacher-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.teacher-facts article {
  display: grid;
  gap: 4px;
  min-height: 108px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  padding: 16px;
}

.teacher-facts article:last-child {
  grid-column: span 2;
}

.teacher-facts strong {
  color: var(--green-strong);
  font-size: 23px;
}

.teacher-facts span { color: #405146; }

.home-pricing-band {
  border-top: 1px solid #dce8dd;
  border-bottom: 1px solid #dce8dd;
  background: #edf7ef;
}

.home-pricing-band > .section {
  padding-top: 56px;
  padding-bottom: 60px;
}

.method-preview .eyebrow,
.home-teacher-copy > .eyebrow,
.home-pricing-band .section-heading > .eyebrow,
.contact-section .section-heading > .eyebrow,
.format-hero .eyebrow,
.teaching-approach .eyebrow {
  font-size: 17px;
  letter-spacing: .02em;
}

.home-pricing-grid .pricing-card {
  height: 100%;
}

.home-pricing-grid .button {
  align-self: end;
}

.button.secondary {
  background: #fff;
  color: var(--green-strong);
  border-color: #bfd8c4;
}

.button.danger {
  background: var(--red-soft);
  color: var(--red);
  border-color: #ffc2b8;
}

.button.small {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 14px;
}

.band {
  width: 100%;
  max-width: none;
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-left: max(16px, calc((100vw - 1180px) / 2));
  padding-right: max(16px, calc((100vw - 1180px) / 2));
}

.section-heading {
  max-width: 780px;
  margin-bottom: 26px;
}

.section-heading.compact {
  margin-bottom: 16px;
}

.format-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.format-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.format-demo-panel {
  display: grid;
  gap: 8px;
  border: 1px solid #c8dfce;
  border-radius: var(--radius);
  background: #f7fff8;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(24, 74, 46, 0.06);
}

.format-demo-panel strong {
  color: var(--green-strong);
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0;
}

.format-demo-panel p {
  margin-bottom: 0;
}

.format-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 380px);
  gap: 36px;
  align-items: center;
  padding-top: 38px;
  padding-bottom: 42px;
}

.format-hero-image {
  display: grid;
  place-items: center;
  margin: 0;
  border: 1px solid #c8dfce;
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
  box-shadow: var(--shadow);
}

.format-hero-image img {
  display: block;
  width: 100%;
  max-height: 520px;
  aspect-ratio: 4 / 5;
  border-radius: 7px;
  object-fit: cover;
  object-position: center;
}

.math-hero-visual {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid #bcd7c3;
  border-radius: 22px;
  background:
    radial-gradient(circle at 72% 18%, rgba(179, 224, 191, .62), transparent 30%),
    linear-gradient(145deg, #ffffff 0%, #eef9f1 58%, #dff1e4 100%);
  box-shadow: var(--shadow);
}

.math-hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .5;
  background-image:
    linear-gradient(rgba(23, 114, 69, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 114, 69, .08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom right, #000, transparent 72%);
}

.math-orbit {
  position: absolute;
  border: 1px solid rgba(23, 114, 69, .24);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.orbit-one {
  width: 330px;
  height: 190px;
  right: -40px;
  top: 34px;
}

.orbit-two {
  width: 270px;
  height: 360px;
  left: -54px;
  bottom: -155px;
  transform: rotate(54deg);
}

.math-symbol {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid #c1dac7;
  border-radius: 16px;
  background: rgba(255, 255, 255, .9);
  color: var(--green-strong);
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(24, 74, 46, .12);
}

.symbol-x { left: 22px; top: 30px; transform: rotate(-7deg); }
.symbol-pi { right: 28px; top: 92px; transform: rotate(8deg); }
.symbol-root { right: 56px; bottom: 46px; transform: rotate(-5deg); }

.math-core {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 48%;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #a9ceb3;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  padding: 12px 18px;
  color: var(--green-strong);
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(14, 93, 54, .16);
  transform: translate(-50%, -50%);
}

.math-core strong {
  color: #8fc49f;
  font-size: 25px;
}

.math-curve {
  position: absolute;
  z-index: 1;
  inset: auto 16px 46px 16px;
  width: calc(100% - 32px);
  height: 250px;
}

.math-curve line {
  stroke: rgba(23, 114, 69, .28);
  stroke-width: 2;
}

.math-curve path {
  fill: none;
  stroke: var(--green);
  stroke-width: 7;
  stroke-linecap: round;
  filter: drop-shadow(0 6px 6px rgba(23, 114, 69, .2));
}

.math-curve circle {
  fill: #fff;
  stroke: var(--green-strong);
  stroke-width: 4;
}

.math-caption {
  position: absolute;
  z-index: 3;
  left: 24px;
  bottom: 18px;
  color: var(--green-strong);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.teaching-approach {
  display: grid;
  grid-template-columns: minmax(390px, .95fr) minmax(0, 1.05fr);
  gap: clamp(24px, 3.5vw, 48px);
  align-items: start;
  padding-top: 44px;
  padding-bottom: 52px;
}

.approach-photo {
  margin: 0;
  border: 1px solid #c8dfce;
  border-radius: 14px;
  background: #fff;
  padding: 10px;
  box-shadow: var(--shadow);
}

.approach-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.teaching-approach-copy {
  border: 1px solid #c8dfce;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, #f4fff7 100%);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow);
}

.teaching-approach-copy h2 {
  max-width: 720px;
  font-size: clamp(29px, 3vw, 42px);
}

.teaching-approach-copy p {
  color: #405146;
  font-size: 17px;
}

.teaching-approach-copy p:last-child {
  margin-bottom: 0;
}

.teaching-approach-copy .approach-lead {
  color: var(--text);
  font-size: 19px;
  font-weight: 650;
}

.approach-note {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: 24px;
  align-items: start;
  border-left: 5px solid var(--green);
  border-radius: 10px;
  background: #eaf6ed;
  padding: 20px 24px;
}

.approach-note strong {
  color: var(--green-strong);
  font-size: 18px;
}

.approach-note p {
  margin-bottom: 0;
  color: #405146;
}

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

.format-screen-card {
  display: grid;
  align-content: start;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(24, 74, 46, 0.05);
}

.format-screen-card h3,
.format-screen-card p {
  margin-bottom: 0;
}

.format-screen-card p {
  color: #405146;
}

.mini-screen {
  display: grid;
  gap: 8px;
  border: 1px solid #cce1d1;
  border-radius: 7px;
  background: linear-gradient(180deg, #f8fff9 0%, #ffffff 100%);
  padding: 12px;
}

.mini-screen b {
  color: var(--green-strong);
}

.mini-screen span {
  color: var(--muted);
  font-size: 13px;
}

.mini-screen i {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green-strong), #44a36a);
}

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

.feature-card,
.about-card,
.topic-card,
.report-card,
.checkpoint-card,
.content-block,
.auth-box,
.empty-state,
.summary-block,
.admin-panel,
.stat-tile {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature-card {
  padding: 18px;
}

.feature-card,
.about-card,
.content-block,
.admin-panel,
.stat-tile,
.summary-block,
.topic-card,
.report-card,
.checkpoint-card {
  box-shadow: 0 10px 26px rgba(24, 74, 46, 0.05);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 900;
  margin-bottom: 14px;
}

.two-column,
.admin-header,
.student-admin-head,
.access-line {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: start;
}

.plain-list {
  display: grid;
  gap: 10px;
  color: #405146;
}

.about-section {
  padding-top: 24px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, minmax(0, 0.75fr));
  gap: 16px;
}

.about-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 230px;
  padding: 20px;
  background: #fff;
}

.about-main {
  background: var(--mint);
  border-color: #c5dfc9;
}

.about-card p {
  margin-bottom: 0;
  color: #405146;
}

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

.achievement-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 210px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 20px;
  box-shadow: 0 10px 26px rgba(24, 74, 46, 0.05);
}

.achievement-card h3,
.achievement-card p {
  margin-bottom: 0;
}

.achievement-card p {
  color: #405146;
}

.achievement-wide {
  grid-column: span 2;
  border-color: #c5dfc9;
  background: var(--mint);
}

.achievement-kicker {
  width: fit-content;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-strong);
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 900;
}

.big-number {
  color: var(--green-strong);
  font-size: 46px;
  line-height: 1;
  font-weight: 950;
}

.teacher-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.55fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.teacher-photo-card {
  border: 1px solid #c8dfce;
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
  box-shadow: var(--shadow);
}

.teacher-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 7px;
  object-fit: cover;
  background: var(--green-soft);
}

.teaching-philosophy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
  gap: 34px;
  align-items: center;
}

.philosophy-copy {
  border: 1px solid #c8dfce;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #f5fff7 100%);
  padding: 28px;
  box-shadow: var(--shadow);
}

.philosophy-copy p:last-child {
  margin-bottom: 0;
}

.board-photo-card {
  align-self: stretch;
}

.board-photo {
  height: 100%;
  min-height: 420px;
  aspect-ratio: auto;
}

.contact-section {
  max-width: 860px;
}

.request-form,
.stacked-form,
.report-form {
  display: grid;
  gap: 16px;
}

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

.notice {
  border-radius: var(--radius);
  padding: 14px 16px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
  font-weight: 700;
}

.notice.success {
  border-color: #b9dfc8;
  background: var(--green-soft);
  color: var(--green-strong);
}

.notice.danger {
  border-color: #ffc2b8;
  background: var(--red-soft);
  color: var(--red);
}

.narrow,
.narrow-form {
  max-width: 900px;
}

.auth-box,
.empty-state {
  padding: 24px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-top: 4px;
}

.leads-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.selected-count {
  border: 1px solid #c8dfce;
  border-radius: 999px;
  background: #fff;
  color: var(--green-strong);
  padding: 7px 12px;
}

.lead-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  max-width: 100%;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  padding: 7px 10px;
  font-weight: 800;
  cursor: pointer;
}

.filter-chip:hover,
.filter-chip.is-selected {
  border-color: #9fd8b3;
  background: var(--green-soft);
  text-decoration: none;
}

.filter-chip input {
  width: 16px;
  min-height: 16px;
}

.filter-chip strong {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-strong);
  font-size: 13px;
}

.lead-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.lead-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(24, 74, 46, 0.05);
}

.lead-card-top,
.homework-card-head,
.homework-actions,
.lead-actions {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.homework-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.homework-actions > form {
  margin: 0;
}

.homework-actions > .edit-panel {
  max-width: 100%;
}

.homework-actions > .edit-panel[open] {
  flex: 1 1 100%;
  width: 100%;
}

.homework-actions > .edit-panel[open] ~ form {
  flex: 1 1 100%;
  width: 100%;
}

.lead-info {
  display: grid;
  gap: 6px;
}

.lead-info p {
  margin-bottom: 0;
}

.lead-status-form label {
  font-size: 13px;
}

.lead-actions {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.lead-actions form {
  margin: 0;
}

.contact-dialog {
  width: min(560px, calc(100vw - 32px));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: 0 24px 70px rgba(23, 35, 28, 0.22);
}

.contact-dialog::backdrop {
  background: rgba(23, 35, 28, 0.34);
}

.contact-dialog form {
  margin: 0;
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding: 16px 18px;
}

.dialog-head h3 {
  margin-bottom: 0;
}

.dialog-body {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.dialog-body p {
  margin-bottom: 0;
}

.stat-tile {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.stat-tile span,
.muted {
  color: var(--muted);
}

.stat-tile strong {
  font-size: 34px;
  line-height: 1;
}

.block {
  display: block;
}

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

.empty-cell {
  color: var(--muted);
  text-align: center;
  padding: 32px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  background: #edf0f2;
  color: #3f4a54;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.badge.active,
.badge.approved,
.badge.assigned,
.badge.independent,
.badge.ready-for-test,
.badge.stable,
.badge.reviewed {
  background: var(--green-soft);
  color: var(--green);
}

.badge.paused,
.badge.new,
.badge.contacted,
.badge.submitted,
.badge.with-help,
.badge.explained {
  background: var(--amber-soft);
  color: var(--amber);
}

.badge.archived,
.badge.rejected,
.badge.in-progress,
.badge.not-started {
  background: #eef1f4;
  color: var(--muted);
}

.student-diagnostics-heading {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(360px, 1.2fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}

.student-diagnostics-heading .section-heading {
  margin-bottom: 0;
}

.diagnostic-assign-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.diagnostic-assignment-actions {
  display: grid;
  gap: 12px;
}

.diagnostic-assignment-actions > .button {
  justify-self: start;
}

.diagnostic-builder-form {
  display: grid;
  gap: 26px;
  padding-top: 12px;
}

.builder-work-card,
.builder-task-card {
  display: grid;
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(24, 74, 46, .06);
}

.builder-task-toolbar,
.builder-task-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.builder-task-toolbar h2,
.builder-task-toolbar p,
.builder-task-head h3,
.builder-task-head span {
  margin-bottom: 0;
}

.diagnostic-task-builder {
  display: grid;
  gap: 18px;
}

.builder-task-card {
  border-color: #c8dfce;
  background: linear-gradient(180deg, #fff 0%, #f8fff9 100%);
}

.builder-task-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr);
  gap: 18px;
  align-items: end;
}

.builder-solution-toggle {
  min-height: 48px;
  border: 1px solid #c8dfce;
  border-radius: 8px;
  background: var(--green-soft);
  padding: 12px;
}

.builder-submit {
  justify-self: start;
  min-height: 50px;
}

.student-admin-head {
  align-items: center;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.access-line {
  align-items: end;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-top: 0;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 0;
}

.summary-block,
.admin-panel,
.content-block {
  padding: 18px;
}

.summary-block p,
.content-block p,
.feature-card p {
  margin-bottom: 0;
}

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

.topic-homework-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
}

.topic-admin-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.topic-row-edit,
.mini-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
}

.topic-row-edit {
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fbfffc;
  padding: 10px;
}

@media (min-width: 1100px) {
  .topic-row-edit {
    grid-template-columns: minmax(160px, 1.1fr) minmax(170px, 0.8fr);
  }

  .topic-row-edit input[name="comment"] {
    grid-column: 1 / 2;
  }

  .topic-row-edit button {
    grid-column: 2 / 3;
  }
}

.small-gap {
  gap: 10px;
}

.list-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.list-item:last-of-type {
  border-bottom: 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.checkbox-label input {
  width: 18px;
  min-height: 18px;
}

.file-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 30px;
  border: 1px solid #bddbc6;
  border-radius: 999px;
  background: #f4fff7;
  color: var(--green-strong);
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 800;
  margin-top: 8px;
  overflow-wrap: anywhere;
  white-space: normal;
}

.file-pill:hover {
  text-decoration: none;
  border-color: var(--green);
}

.solution-pill {
  border-color: #9fd8b3;
  background: #eafbf0;
}

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

.homework-admin-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fbfffc;
  padding: 12px;
}

.homework-admin-card > *,
.homework-overview-card > *,
.homework-card-head > * {
  min-width: 0;
}

.homework-admin-card input,
.homework-admin-card textarea,
.homework-admin-card select,
.homework-overview-card input,
.homework-overview-card textarea,
.homework-overview-card select {
  max-width: 100%;
}

.homework-admin-card.is-completed {
  background: #f7f9f7;
}

.homework-admin-card p {
  margin-bottom: 0;
}

.edit-panel,
.compose-panel,
.solution-panel {
  display: grid;
  gap: 12px;
}

.edit-panel > summary,
.compose-panel > summary,
.solution-panel > summary {
  list-style: none;
  width: fit-content;
}

.edit-panel > summary::-webkit-details-marker,
.compose-panel > summary::-webkit-details-marker,
.solution-panel > summary::-webkit-details-marker {
  display: none;
}

.edit-panel[open],
.compose-panel[open],
.solution-panel[open] {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.compose-panel {
  margin-top: 14px;
}

.compose-panel form,
.edit-panel form,
.solution-panel form {
  margin-top: 12px;
}

.homework-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.homework-overview-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(24, 74, 46, 0.05);
}

.homework-overview-card.is-completed {
  background: #f8fbf9;
}

.homework-overview-card h3,
.homework-overview-card p {
  margin-bottom: 0;
}

.homework-meta,
.homework-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.homework-meta {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.report-list,
.checkpoint-list,
.topic-grid,
.timeline,
.material-list {
  display: grid;
  gap: 14px;
}

.report-card,
.checkpoint-card,
.topic-card {
  padding: 18px;
}

.report-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 12px;
}

.report-fields {
  display: grid;
  gap: 8px;
}

.report-fields p {
  margin-bottom: 0;
}

.cabinet-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 28px;
  align-items: end;
}

.cabinet-hero h1 {
  margin-bottom: 10px;
}

.cabinet-status {
  display: grid;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
}

.overview-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-top: 0;
}

.overview-band > div {
  border-left: 4px solid var(--green);
  border-radius: 6px;
  background: var(--green-soft);
  padding: 16px;
}

.field-block {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 14px;
}

.field-block:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.highlight-block {
  border-color: #c8ddce;
  background: #fbfffd;
}

.homework-item {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.homework-item:last-child {
  border-bottom: 0;
}

.homework-student-stack {
  display: grid;
  gap: 18px;
}

.homework-student-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.homework-student-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(24, 74, 46, 0.07);
}

.homework-student-card > * {
  min-width: 0;
}

.homework-student-card p {
  margin-bottom: 0;
}

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

.topic-card {
  display: grid;
  gap: 14px;
  min-height: 178px;
}

.latest-report {
  border: 1px solid #c8ddce;
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px;
}

.timeline-item {
  border-left: 3px solid var(--border);
  padding-left: 16px;
}

.timeline-date {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.material-link {
  display: grid;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 14px;
  color: var(--text);
  background: #fbfffc;
}

.material-link:hover {
  border-color: #9ac8a8;
  text-decoration: none;
}

.material-link span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.material-link small {
  color: var(--muted);
  font-weight: 650;
}

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

.completed-homework {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
}

.cabinet-workspace {
  display: grid;
  gap: 18px;
  padding-top: 18px;
}

.cabinet-tabs {
  display: flex;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  padding: 8px;
  box-shadow: 0 10px 24px rgba(24, 74, 46, 0.05);
  -webkit-overflow-scrolling: touch;
}

.cabinet-tab {
  flex: 0 0 auto;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--green);
  padding: 8px 12px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.cabinet-tab:hover,
.cabinet-tab.is-active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 18px rgba(23, 114, 69, 0.18);
}

.cabinet-tab-panel {
  display: none;
}

.cabinet-tab-panel.is-active {
  display: grid;
  gap: 18px;
}

.admin-cabinet-mode {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(135deg, #f3fbf6 0%, #ffffff 72%);
}

.admin-cabinet-mode strong,
.admin-cabinet-mode p {
  display: block;
  margin-top: 8px;
}

.admin-cabinet-workspace {
  padding-bottom: 0;
}

.admin-cabinet-split {
  display: contents;
}

[data-admin-panel][hidden] {
  display: none !important;
}

.diagnostic-conclusion-editor {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.diagnostic-conclusion-editor label {
  display: grid;
  gap: 8px;
  align-content: start;
}

@media (max-width: 760px) {
  .admin-cabinet-mode {
    align-items: stretch;
    flex-direction: column;
  }

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

.cabinet-logout-section {
  display: flex;
  justify-content: center;
  padding-top: 10px;
}

.forecast-topline {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 18px;
}

.forecast-main-card,
.geometry-card,
.forecast-chart-card,
.forecast-explanation,
.competency-card,
.forecast-impact-list article {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 30px rgba(24, 74, 46, 0.07);
}

.forecast-main-card {
  display: grid;
  gap: 10px;
  border-color: #b7ddc1;
  background: linear-gradient(180deg, #ffffff 0%, #f4fff7 100%);
  padding: 24px;
}

.forecast-main-card strong {
  color: var(--green-strong);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  letter-spacing: 0;
}

.forecast-main-card p {
  margin-bottom: 0;
  color: #405146;
  font-weight: 800;
}

.geometry-card {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px;
}

.geometry-card strong {
  color: var(--green-strong);
  font-size: 24px;
  line-height: 1.15;
}

.geometry-card p {
  margin-bottom: 0;
  color: #405146;
}

.geometry-card.is-risk {
  border-color: #ffc2b8;
  background: var(--red-soft);
}

.geometry-card.is-risk strong {
  color: var(--red);
}

.forecast-chart-card {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.forecast-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.forecast-chart-head h2 {
  margin-bottom: 0;
}

.forecast-chart {
  display: block;
  width: 100%;
  min-height: 260px;
  overflow: visible;
}

.forecast-chart .zone-5 {
  fill: #e1f3e8;
}

.forecast-chart .zone-4 {
  fill: #edf8df;
}

.forecast-chart .zone-3 {
  fill: #fff4dc;
}

.forecast-chart .zone-2 {
  fill: #ffece8;
}

.forecast-grid-line {
  stroke: rgba(23, 35, 28, 0.13);
  stroke-width: 1;
}

.forecast-axis {
  stroke: #789182;
  stroke-width: 1.4;
}

.forecast-line {
  fill: none;
  stroke: var(--green);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.forecast-point {
  fill: #fff;
  stroke: var(--green-strong);
  stroke-width: 4;
}

.forecast-point-label,
.forecast-zone-label,
.forecast-axis-label,
.forecast-date-label {
  fill: #405146;
  font-size: 12px;
  font-weight: 800;
}

.forecast-zone-label {
  font-size: 30px;
  font-weight: 950;
  letter-spacing: 0;
  opacity: 0.34;
}

.zone-5-label {
  fill: #1d7b4f;
}

.zone-4-label {
  fill: #6f9f36;
}

.zone-3-label {
  fill: #b17a16;
}

.zone-2-label {
  fill: #bf4b3d;
}

.forecast-point-label,
.forecast-date-label {
  text-anchor: middle;
}

.forecast-date-label {
  fill: var(--muted);
  font-size: 11px;
}

.forecast-explanation {
  display: grid;
  gap: 6px;
  border-color: #c8dfce;
  background: var(--mint);
  padding: 18px;
}

.forecast-explanation strong {
  color: var(--green-strong);
}

.forecast-explanation p {
  margin-bottom: 0;
  color: #405146;
}

.forecast-impact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.forecast-impact-list article {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.forecast-impact-list p {
  margin-bottom: 0;
}

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

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

.confidence-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
}

.confidence-sort-button {
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--green-strong);
  padding: 7px 11px;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.confidence-sort-button {
  border-color: #b7ddc1;
  background: var(--green-soft);
}

.confidence-sort-button:hover,
.confidence-sort-button.is-active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 18px rgba(23, 114, 69, 0.14);
}

.competency-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
}

.competency-card.needs-data {
  border-style: dashed;
  background: #fffdf7;
}

.competency-card-head {
  display: grid;
  gap: 8px;
}

.competency-card-head h3,
.competency-card p {
  margin-bottom: 0;
}

.competency-progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e3ebe5;
}

.competency-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-strong), #45a46c);
}

.competency-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.competency-card small {
  color: var(--amber);
  font-weight: 750;
}

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

.plan-dates > div {
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fbfffc;
  padding: 14px;
}

.plan-dates strong {
  display: block;
  margin-top: 4px;
  color: var(--green-strong);
  font-size: 20px;
}

.reports-stack {
  display: grid;
  gap: 18px;
}

.reports-grid {
  align-items: start;
}

.full-width {
  width: 100%;
}

.diagnostic-card-grid,
.diagnostic-admin-grid,
.review-task-list {
  display: grid;
  gap: 16px;
}

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

.diagnostic-card,
.diagnostic-admin-card,
.review-task-card,
.timer-card,
.diagnostic-side {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 26px rgba(24, 74, 46, 0.05);
}

.diagnostic-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.38fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.diagnostic-card h3,
.diagnostic-admin-card h3,
.review-task-card h3,
.diagnostic-card p,
.diagnostic-admin-card p,
.task-prompt {
  margin-bottom: 0;
}

.diagnostic-card-actions {
  display: grid;
  justify-items: end;
  gap: 10px;
  text-align: right;
}

.diagnostic-start-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: end;
}

.diagnostic-start-card {
  display: grid;
  gap: 8px;
  border: 1px solid #c8dfce;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #f5fff7 100%);
  padding: 20px;
  box-shadow: var(--shadow);
}

.diagnostic-start-card span,
.diagnostic-start-card small {
  color: var(--muted);
  font-weight: 700;
}

.diagnostic-start-card strong {
  color: var(--green-strong);
  font-size: 22px;
  line-height: 1.15;
}

.diagnostic-instructions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}

.instruction-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.diagnostic-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: end;
}

.timer-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f5fff7 100%);
}

.timer-card span,
.timer-card small {
  color: var(--muted);
  font-weight: 700;
}

.timer-card strong {
  color: var(--green-strong);
  font-size: 42px;
  line-height: 1;
}

.timer-card strong.is-low {
  color: var(--red);
}

.diagnostic-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.diagnostic-side {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 18px;
  padding: 16px;
}

.diagnostic-task-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.diag-nav-button {
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}

.diag-nav-button.is-saved {
  border-color: #9fd8b3;
  background: var(--green-soft);
  color: var(--green-strong);
}

.diag-nav-button.is-active {
  border-color: var(--green);
  box-shadow: inset 0 0 0 2px rgba(23, 114, 69, 0.18);
}

.diagnostic-legend {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.diagnostic-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d8dde0;
}

.legend-dot.saved {
  background: var(--green);
}

.legend-dot.current {
  border: 2px solid var(--green);
  background: #fff;
}

.diagnostic-task-area {
  min-width: 0;
}

.diagnostic-task-panel {
  display: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 22px;
}

.diagnostic-task-panel.is-active {
  display: grid;
  gap: 16px;
}

.diagnostic-task-head,
.diagnostic-admin-top,
.review-task-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.task-skill {
  border-left: 4px solid var(--green);
  border-radius: 6px;
  background: var(--green-soft);
  color: var(--green-strong);
  padding: 10px 12px;
  font-weight: 800;
}

.task-prompt {
  font-size: 18px;
  color: #293830;
}

.task-figure {
  margin: 0;
  max-width: 760px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px;
}

.task-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.diagnostic-answer-form {
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.diagnostic-complete {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: center;
}

.completion-score {
  display: grid;
  gap: 6px;
  border: 1px solid #c8dfce;
  border-radius: var(--radius);
  background: var(--mint);
  padding: 18px;
}

.completion-score span {
  color: var(--muted);
  font-weight: 700;
}

.completion-score strong {
  color: var(--green-strong);
  font-size: 24px;
}

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

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

.diagnostic-admin-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.diagnostic-admin-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.diagnostic-review-form {
  display: grid;
  gap: 16px;
}

.review-task-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

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

.review-answer-grid > div {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fbfffc;
  padding: 12px;
}

.review-answer-grid strong {
  overflow-wrap: anywhere;
}

.criteria-panel {
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fbfffc;
  padding: 10px 12px;
}

.criteria-panel p {
  margin: 8px 0 0;
}

.review-score-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px;
}

.student-review-list {
  display: grid;
  gap: 16px;
}

.student-review-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(24, 74, 46, 0.05);
}

.student-review-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.solution-explanation {
  display: grid;
  gap: 6px;
  border: 1px solid #c8dfce;
  border-radius: 7px;
  background: var(--mint);
  padding: 14px;
}

.solution-explanation p {
  margin-bottom: 0;
}

.parent-message {
  display: grid;
  gap: 12px;
  line-height: 1.65;
}

.parent-message p {
  margin: 0;
}

.parent-message h3 {
  margin: 8px 0 0;
  color: var(--green-strong);
  font-size: 16px;
}

.parent-message h3:first-child {
  margin-top: 0;
}

.parent-message ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.parent-message li {
  position: relative;
  padding-left: 20px;
}

.parent-message li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.parent-message strong {
  color: var(--green-strong);
  font-weight: 850;
}

.pricing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  align-items: end;
}

.pricing-note {
  display: grid;
  gap: 8px;
  border: 1px solid #c8dfce;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #f5fff7 100%);
  padding: 20px;
  box-shadow: var(--shadow);
}

.pricing-note span {
  color: var(--muted);
  font-weight: 800;
}

.pricing-note strong {
  color: var(--green-strong);
  font-size: 20px;
}

.pricing-note p {
  margin-bottom: 0;
  color: #405146;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-top: 12px;
}

.pricing-card {
  display: grid;
  gap: 20px;
  align-content: start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 24px;
  box-shadow: 0 16px 36px rgba(24, 74, 46, 0.08);
}

.featured-pricing {
  border-color: #9fd8b3;
  background: linear-gradient(180deg, #ffffff 0%, #f4fff7 100%);
  box-shadow: var(--shadow);
}

.pricing-card-head {
  display: grid;
  gap: 8px;
}

.pricing-card-head h2,
.pricing-card-head p {
  margin-bottom: 0;
}

.pricing-label {
  width: fit-content;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-strong);
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 900;
}

.price-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.price-stack {
  display: grid;
  gap: 4px;
}

.old-price {
  width: fit-content;
  color: #8a978d;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.price-line strong,
.new-price {
  color: var(--green-strong);
  font-size: 42px;
  line-height: 1;
}

.price-line span {
  color: var(--muted);
  font-weight: 800;
}

.price-line .sale-badge {
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-strong);
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 900;
}

.pricing-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: #405146;
}

.pricing-list li::marker {
  color: var(--green);
}

.pricing-compare {
  border: 1px solid #c8dfce;
  border-radius: var(--radius);
  background: var(--mint);
  padding: 24px;
}

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

.compare-row > div {
  border-left: 4px solid var(--green);
  border-radius: 6px;
  background: #fff;
  padding: 16px;
}

.compare-row p {
  margin-bottom: 0;
  color: #405146;
}

.footer {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

@media (max-width: 1080px) {
  .topbar {
    align-items: flex-start;
    gap: 14px;
  }

  .topnav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
    gap: 28px;
  }

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

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

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

  .about-main,
  .achievement-wide {
    grid-column: span 2;
  }

  .topic-homework-grid {
    grid-template-columns: 1fr;
  }

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

  .method-step,
  .method-step:nth-child(4),
  .method-step:nth-child(5) {
    grid-column: span 1;
  }
}

@media (max-width: 920px) {
  h1 {
    font-size: 38px;
  }

  .hero,
  .home-hero,
  .home-hero-main,
  .hero-bullets,
  .teacher-hero,
  .teaching-philosophy,
  .format-hero,
  .format-layout,
  .format-flow-grid,
  .feature-grid,
  .about-grid,
  .achievement-grid,
  .achievement-wide,
  .lead-card-grid,
  .homework-board,
  .diagnostic-card-grid,
  .diagnostic-card,
  .diagnostic-start-hero,
  .diagnostic-instructions,
  .diagnostic-hero,
  .diagnostic-shell,
  .diagnostic-complete,
  .diagnostic-admin-grid,
  .diagnostic-admin-grid.compact-grid,
  .review-answer-grid,
  .review-score-row,
  .pricing-hero,
  .pricing-grid,
  .compare-row,
  .two-column,
  .admin-header,
  .student-admin-head,
  .admin-columns,
  .cabinet-grid,
  .cabinet-hero,
  .forecast-topline,
  .forecast-impact-list,
  .material-list-wide,
  .competency-grid,
  .homework-student-grid,
  .plan-dates,
  .overview-band,
  .summary-grid,
  .stats-row,
  .topic-grid,
  .checkpoint-grid {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: auto;
    width: min(100vw - 32px, 1180px);
  }

  .home-hero-brand {
    justify-content: center;
    text-align: center;
  }

  .home-hero-action {
    justify-content: center;
    width: 100%;
  }

  .admin-actions {
    justify-content: flex-start;
  }

  .access-line {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .topic-row-edit,
  .mini-form,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .diagnostic-side {
    position: static;
  }

  .diagnostic-card-actions {
    justify-items: start;
    text-align: left;
  }

  .about-main,
  .achievement-wide {
    grid-column: auto;
  }

  .teacher-photo-card {
    max-width: 520px;
  }

  .board-photo {
    min-height: 320px;
  }

  .diagnostic-start-card,
  .format-demo-panel,
  .timer-card,
  .pricing-note,
  .cabinet-status {
    max-width: 420px;
  }

  .diagnostic-card-actions,
  .pricing-note,
  .timer-card {
    justify-items: stretch;
  }

  .landing-hero,
  .home-teacher,
  .teaching-approach {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .landing-hero-copy h1 {
    max-width: 820px;
  }

  .landing-hero-visual {
    width: min(680px, 100%);
    margin: 0 auto;
  }

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

  .home-teacher-photo {
    width: min(480px, 100%);
  }

  .math-hero-visual {
    width: min(620px, 100%);
    min-height: 390px;
    margin: 0 auto;
  }

  .student-diagnostics-heading {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .approach-note {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 31px;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 17px;
  }

  .topbar {
    position: static;
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    padding: 10px 12px 12px;
  }

  .topnav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-text {
    font-size: 16px;
  }

  .topnav > a,
  .topnav .nav-dropdown-trigger,
  .topnav .link-button {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    min-height: 38px;
    padding: 7px 8px;
    text-align: center;
    font-size: 14px;
    line-height: 1.15;
  }

  .inline-form {
    display: block;
    width: 100%;
  }

  .nav-dropdown {
    display: grid;
    grid-column: 1 / -1;
    gap: 8px;
  }

  .topnav .nav-dropdown-trigger {
    display: none;
  }

  .nav-dropdown-menu {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
  }

  .nav-dropdown-menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid var(--border);
    background: #fff;
    text-align: center;
    font-size: 14px;
    line-height: 1.15;
  }

  .section {
    width: min(100vw - 24px, 1180px);
    padding: 28px 0;
  }

  .hero {
    min-height: auto;
    gap: 22px;
    padding-top: 24px;
  }

  .hero-copy::before {
    width: 52px;
    height: 5px;
    margin-bottom: 14px;
  }

  .hero-text {
    font-size: 16px;
  }

  .home-hero-brand {
    flex-direction: column;
    align-items: center;
  }

  .home-hero-header p {
    font-size: 16px;
  }

  .home-demo-chart {
    min-height: 250px;
  }

  .hero-bullet-card {
    min-height: 0;
  }

  .hero-request-button {
    right: 12px;
    top: auto;
    bottom: 14px;
    min-height: 40px;
    padding: 9px 13px;
    font-size: 14px;
    transform: none;
  }

  .hero-proof {
    gap: 8px;
  }

  .hero-proof span {
    padding: 6px 9px;
    font-size: 12px;
  }

  .feature-card,
  .about-card,
  .achievement-card,
  .content-block,
  .auth-box,
  .empty-state,
  .summary-block,
  .admin-panel,
  .stat-tile,
  .report-card,
  .checkpoint-card,
  .topic-card,
  .diagnostic-card,
  .diagnostic-admin-card,
  .review-task-card,
  .student-review-card,
  .pricing-card,
  .pricing-compare,
  .latest-report,
  .forecast-main-card,
  .geometry-card,
  .forecast-chart-card,
  .home-demo-chart-card,
  .forecast-explanation,
  .competency-card,
  .completed-homework {
    padding: 16px;
  }

  .feature-grid,
  .about-grid,
  .achievement-grid,
  .stats-row,
  .summary-grid,
  .topic-grid,
  .checkpoint-grid,
  .diagnostic-task-nav {
    gap: 12px;
  }

  .lead-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .cabinet-tabs {
    padding: 6px;
  }

  .cabinet-tab {
    min-height: 38px;
    padding: 7px 10px;
    font-size: 14px;
  }

  .confidence-toolbar {
    display: flex;
  }

  .confidence-sort-button {
    width: 100%;
  }

  .forecast-chart-head {
    display: grid;
  }

  .forecast-chart {
    min-height: 230px;
  }

  .forecast-main-card strong {
    font-size: 31px;
  }

  .geometry-card strong,
  .plan-dates strong {
    font-size: 19px;
  }

  .competency-meta {
    gap: 6px;
  }

  .filter-chip {
    min-height: 38px;
  }

  .button,
  .format-actions,
  .button-row {
    width: 100%;
  }

  .format-actions,
  .button-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    min-width: 0;
    white-space: normal;
  }

  .leads-head,
  .lead-card-top,
  .homework-card-head,
  .diagnostic-task-head,
  .diagnostic-admin-top,
  .review-task-head,
  .student-review-head,
  .report-card-head,
  .dialog-head {
    align-items: stretch;
    flex-direction: column;
  }

  .lead-actions,
  .admin-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .lead-actions form,
  .admin-actions .button,
  .admin-actions form,
  .admin-actions button {
    width: 100%;
  }

  .homework-actions {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .homework-actions > * {
    width: 100%;
    max-width: 100%;
  }

  .access-line {
    gap: 12px;
  }

  .badge,
  .file-pill {
    max-width: 100%;
    white-space: normal;
  }

  .diagnostic-start-card,
  .timer-card,
  .pricing-note,
  .cabinet-status,
  .teacher-photo-card {
    max-width: none;
  }

  .diagnostic-side {
    gap: 14px;
    padding: 14px;
  }

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

  .diag-nav-button {
    min-height: 38px;
  }

  .diagnostic-task-panel {
    padding: 16px;
  }

  .task-prompt {
    font-size: 16px;
  }

  .task-skill {
    padding: 9px 10px;
  }

  .timer-card strong {
    font-size: 34px;
  }

  .review-score-row {
    gap: 10px;
  }

  .price-line strong {
    font-size: 34px;
  }

  .big-number {
    font-size: 38px;
  }

  .teacher-photo,
  .board-photo {
    max-height: 520px;
  }

  .board-photo {
    min-height: 260px;
  }

  .philosophy-copy {
    padding: 20px;
  }

  .contact-dialog {
    width: calc(100vw - 24px);
  }

  .landing-hero {
    gap: 20px;
    padding-top: 36px;
    padding-bottom: 38px;
  }

  .landing-hero-copy h1 {
    font-size: 34px;
  }

  .landing-hero-copy .button {
    width: 100%;
  }

  .floating-request-cta {
    right: 12px;
    bottom: 12px;
    gap: 8px;
    min-height: 48px;
    padding: 10px 16px 10px 13px;
    font-size: 14px;
  }

  .floating-request-icon {
    width: 24px;
    max-width: 24px;
    opacity: 1;
    transform: none;
  }

  .floating-request-icon svg {
    width: 24px;
    height: 24px;
  }

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

  .builder-task-toolbar,
  .builder-task-head {
    align-items: stretch;
    flex-direction: column;
  }

  .builder-task-options {
    grid-template-columns: 1fr;
  }

  .builder-work-card,
  .builder-task-card {
    padding: 16px;
  }

  .builder-submit,
  .builder-task-toolbar .button,
  .builder-task-head .button {
    width: 100%;
  }

  .method-preview,
  .home-teacher,
  .home-pricing-band > .section {
    padding-top: 48px;
    padding-bottom: 50px;
  }

  .method-steps,
  .teacher-facts {
    grid-template-columns: 1fr;
  }

  .method-step {
    min-height: 0;
  }

  .method-step h3 {
    font-size: 21px;
  }

  .method-step p {
    font-size: 16px;
  }

  .method-icon {
    height: 92px;
  }

  .teaching-approach {
    padding-top: 34px;
    padding-bottom: 40px;
  }

  .teaching-approach-copy .approach-lead {
    font-size: 17px;
  }

  .math-hero-visual {
    min-height: 340px;
  }

  .math-symbol {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    font-size: 20px;
  }

  .symbol-pi {
    right: 18px;
    top: 76px;
  }

  .symbol-root {
    right: 28px;
    bottom: 38px;
  }

  .math-core {
    gap: 8px;
    padding: 10px 13px;
    font-size: 14px;
  }

  .math-curve {
    bottom: 34px;
  }

  .teacher-facts article:last-child {
    grid-column: auto;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 28px;
  }

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

  .nav-dropdown-menu {
    grid-template-columns: 1fr;
  }

  .topnav > a,
  .topnav .link-button,
  .nav-dropdown-menu a {
    font-size: 13px;
  }

  .section {
    width: min(100vw - 20px, 1180px);
    padding: 24px 0;
  }

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

  .forecast-date-label {
    display: none;
  }

  .forecast-zone-label {
    font-size: 22px;
  }
}

@media (max-width: 1080px) {
  .method-cycle {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .method-heading > p:last-child {
    font-size: 17px;
  }

  .method-cycle .method-steps {
    grid-template-columns: 1fr;
  }

  .method-cycle .method-step {
    padding: 18px;
  }

  .method-dashboard {
    padding: 18px;
  }

  .method-dashboard-head,
  .method-score-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .method-dashboard-period {
    white-space: normal;
  }

  .method-score-delta {
    margin-left: 0;
  }

  .method-chart {
    padding-left: 27px;
  }

  .method-chart svg {
    height: 155px;
  }

  .method-topic-delta > div,
  .method-next-focus {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .method-topic-delta span,
  .method-next-focus span {
    flex-basis: 100%;
  }

  .method-next-focus strong {
    text-align: left;
  }
}
