:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.72);
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --subtle: #86868b;
  --line: #d2d2d7;
  --line-soft: rgba(0, 0, 0, 0.08);
  --blue: #1d1d1f;
  --blue-dark: #000000;
  --green: #34c759;
  --orange: #ff9f0a;
  --red: #ff3b30;
  --purple: #af52de;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 72px;
  padding: 14px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(245, 245, 247, 0.82);
  backdrop-filter: blur(22px) saturate(180%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.brand img {
  width: 128px;
  height: 40px;
  object-fit: contain;
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
}

.nav-user-group {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.nav-links a,
.nav-action,
.nav-logout {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.nav-links a.is-active {
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.nav-action {
  color: var(--ink);
  border: 1px solid var(--line-soft);
  background: #fff;
}

.nav-logout {
  border: 1px solid var(--line-soft);
  color: var(--ink);
  background: #fff;
}

.nav-action.is-user {
  max-width: 148px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-shell,
main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(440px, 1.06fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  padding: 56px 0 72px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(48px, 6.4vw, 86px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.028em;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  letter-spacing: -0.012em;
}

.lead {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.55;
}

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

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

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: none;
  font-weight: 700;
}

.button.primary {
  color: var(--ink);
  background: #f1f1f3;
  border-color: rgba(0, 0, 0, 0.1);
}

.button.primary:hover {
  background: #e8e8ed;
}

.button.secondary {
  color: var(--ink);
  background: #f5f5f7;
  box-shadow: none;
}

.button.dark {
  color: #fff;
  background: var(--ink);
}

.button.full {
  width: 100%;
}

.showcase-card,
.feature-card,
.pricing-card,
.panel,
.course-player,
.admin-card,
.metric-card {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  background: var(--surface-soft);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.spring-demo {
  overflow: hidden;
  padding: 22px;
  background:
    radial-gradient(circle at 18% 14%, rgba(0, 113, 227, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 250, 252, 0.8));
}

.demo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.demo-top strong {
  font-size: 18px;
}

.demo-badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(0, 113, 227, 0.1);
  font-size: 13px;
  font-weight: 700;
}

.physics-stage {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    #fbfbfd;
  background-size: 32px 32px;
}

.wall {
  position: absolute;
  left: 42px;
  top: 70px;
  bottom: 70px;
  width: 12px;
  border-radius: 10px;
  background: #1d1d1f;
}

.spring-svg {
  position: absolute;
  left: 54px;
  top: 117px;
  width: calc(100% - 170px);
  height: 82px;
}

.spring-path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.block {
  position: absolute;
  top: 108px;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(145deg, #1d1d1f, #5a5a60);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.force-arrow {
  position: absolute;
  top: 210px;
  height: 4px;
  border-radius: 999px;
  background: var(--orange);
  transform-origin: left center;
}

.force-arrow::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -6px;
  width: 0;
  height: 0;
  border-left: 12px solid var(--orange);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.demo-controls {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.control-row {
  display: grid;
  grid-template-columns: 104px 1fr 54px;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--blue);
}

.section {
  padding: 82px 0;
}

.section-head {
  max-width: 780px;
  margin-bottom: 30px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

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

.feature-card {
  min-height: 230px;
  padding: 28px;
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.05);
}

.feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #5ac8fa);
  font-weight: 900;
}

.course-player {
  overflow: hidden;
  background: #111114;
  color: #fff;
}

.player-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.player-head p,
.player-body p {
  color: rgba(255, 255, 255, 0.66);
}

.player-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  min-height: 510px;
}

.lesson-canvas-wrap {
  display: grid;
  place-items: center;
  padding: 24px;
}

#homeCourseCanvas,
#demoCourseCanvas {
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 10;
  border-radius: 24px;
  background: #fbfbfd;
}

.player-side {
  padding: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.player-controls,
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.player-controls button,
.pager button,
.quiz-option {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  color: var(--ink);
  background: #fff;
}

.quiz-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.quiz-option.is-right {
  color: #fff;
  background: var(--green);
}

.quiz-option.is-wrong {
  color: #fff;
  background: var(--red);
}

.pricing-hero,
.dashboard-hero,
.admin-login-shell {
  padding: 72px 0 36px;
  text-align: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 30px 0 82px;
}

.pricing-card {
  position: relative;
  display: grid;
  gap: 20px;
  padding: 30px;
}

.trial-badge {
  position: absolute;
  top: 22px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  color: #fff;
  background: var(--orange);
  font-size: 13px;
  font-weight: 800;
}

.pricing-card.recommended {
  border-color: rgba(0, 113, 227, 0.36);
  transform: translateY(-10px);
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price strong {
  font-size: 52px;
  letter-spacing: -0.04em;
}

.card-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.4fr;
  gap: 20px;
  padding-bottom: 80px;
}

.panel {
  padding: 26px;
}

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

.metric-card {
  padding: 18px;
  box-shadow: none;
}

.metric-card strong {
  display: block;
  font-size: 34px;
  letter-spacing: -0.03em;
}

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

.task-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: #fff;
}

.task-card h3 {
  margin-bottom: 0;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

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

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

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

input,
select {
  min-height: 48px;
  padding: 0 14px;
}

textarea {
  min-height: 120px;
  padding: 14px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

body.modal-open {
  overflow: hidden;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 16, 0.28);
  backdrop-filter: blur(18px);
}

.modal-panel {
  position: relative;
  width: min(100%, 620px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.18);
  padding: 32px;
}

.course-outline-dialog {
  width: min(100%, 960px);
  max-height: min(88vh, 900px);
  overflow: auto;
}

.course-outline-loading,
.course-outline-empty {
  margin-top: 18px;
  padding: 20px;
  border-radius: 18px;
  background: #f5f5f7;
  color: var(--muted);
  line-height: 1.7;
}

.course-outline-form {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

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

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

.outline-select-grid .wide {
  grid-column: span 3;
}

.outline-select-grid label,
.outline-signature label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.outline-select-grid select,
.outline-signature input {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.outline-preview {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: #fbfbfd;
}

.semester-slot-list {
  display: grid;
  gap: 18px;
}

.semester-slot {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: #fff;
}

.semester-slot-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.semester-slot-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
}

.semester-outline-list {
  display: grid;
  gap: 8px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.semester-outline-list li {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
}

.semester-outline-list strong {
  font-weight: 650;
}

.semester-outline-list span {
  color: var(--muted);
  line-height: 1.55;
}

.outline-preview > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.outline-preview h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 650;
}

.outline-preview p,
.outline-preview dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.outline-preview dl {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 9px 12px;
  margin: 8px 0 0;
}

.outline-preview dt {
  color: var(--ink);
  font-weight: 800;
}

.outline-match {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
}

.outline-match legend {
  padding: 0 6px;
  color: var(--ink);
  font-weight: 800;
}

.outline-match label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f1f1f3;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.modal-panel h2 {
  margin: 8px 0 10px;
  font-size: 28px;
  font-weight: 560;
}

.modal-subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.modal-course {
  display: grid;
  gap: 4px;
  margin: 20px 0;
  padding: 16px;
  border-radius: 18px;
  background: #f5f5f7;
}

.modal-course span,
.modal-field span {
  color: var(--muted);
  font-size: 14px;
}

.modal-field {
  margin-top: 16px;
}

.modal-field textarea {
  min-height: 168px;
  border-radius: 18px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.script-box {
  min-height: 180px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfbfd;
  color: var(--ink);
  line-height: 1.7;
  white-space: pre-wrap;
}

.admin-layout {
  width: min(1360px, calc(100% - 36px));
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 20px;
  margin: 24px auto 70px;
}

.admin-sidebar {
  position: sticky;
  top: 92px;
  height: fit-content;
  padding: 18px;
  border-radius: 26px;
  background: #fff;
}

.admin-sidebar a,
.admin-sidebar button {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 14px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
}

.admin-sidebar a.is-active {
  color: var(--ink);
  background: var(--bg);
  font-weight: 700;
}

.admin-main {
  display: grid;
  gap: 18px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.admin-card {
  padding: 22px;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 700;
}

.admin-login-shell {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
}

.login-card {
  width: min(420px, 100%);
  padding: 34px;
}

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

.hidden {
  display: none !important;
}

/* Page-specific structure from the rebuild workers */
.hero-shell {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(440px, 1.06fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  padding: 56px 0 72px;
}

.hero-lead {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.55;
}

.button.ghost {
  color: var(--ink);
  background: #fff;
}

.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.signal-row span {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line-soft);
}

.hero-console {
  border-radius: 32px;
}

.console-top,
.spring-demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.console-top em {
  color: var(--blue);
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 18px 0 var(--orange), 36px 0 var(--red);
}

.spring-stage {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #fbfbfd;
}

.spring-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
}

.spring-readout {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spring-readout span {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
}

.spring-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.control-group {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.control-actions {
  display: flex;
  gap: 8px;
  grid-column: 1 / -1;
}

.band {
  padding: 82px 0;
}

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

.advantage-card {
  min-height: 230px;
  padding: 28px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  background: var(--surface-soft);
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.05);
}

.advantage-card span {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--blue);
  font-weight: 800;
}

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

.courseware-player {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 34px;
  background: #111114;
  color: #fff;
  box-shadow: var(--shadow);
}

.player-sidebar {
  padding: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.player-slide-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.player-slide-list li {
  padding: 12px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.64);
  cursor: pointer;
}

.player-slide-list li.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.player-main {
  min-height: 560px;
  display: grid;
  grid-template-rows: auto 1fr;
}

.player-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.player-progress {
  color: rgba(255, 255, 255, 0.68);
}

.courseware-slide {
  display: none;
  padding: clamp(28px, 5vw, 56px);
}

.courseware-slide.is-active {
  display: block;
}

.courseware-slide h3 {
  font-size: clamp(32px, 4vw, 54px);
  letter-spacing: -0.03em;
}

.courseware-slide p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 18px;
  line-height: 1.7;
}

.slide-interaction-placeholder {
  min-height: 220px;
  margin-top: 28px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 28% 24%, rgba(0, 113, 227, 0.24), transparent 30%),
    rgba(255, 255, 255, 0.08);
}

.plan-head p,
.pricing-note p,
.dashboard-head p,
.overview-card p,
.delivery-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.plan-price,
.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.plan-price strong {
  font-size: 52px;
  letter-spacing: -0.04em;
}

.unit-price {
  margin: -4px 0 0;
  color: var(--blue);
  font-weight: 700;
  line-height: 1.6;
}

.trial-price-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: -10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.trial-price-note del {
  color: var(--subtle);
}

.plan-features {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.pricing-card.is-featured {
  border-color: rgba(0, 113, 227, 0.36);
  transform: translateY(-10px);
}

body[data-page="pricing"] main {
  width: min(1440px, calc(100% - 40px));
}

body[data-page="pricing"] .pricing-hero {
  padding: 48px 0 22px;
}

.store-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
  padding: 22px 0 48px;
}

body[data-page="pricing"] .pricing-card {
  gap: 16px;
  padding: 24px;
}

body[data-page="pricing"] .plan-features {
  gap: 8px;
}

.standard-pack-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 247, 249, 0.96)),
    radial-gradient(circle at 20% 0%, rgba(0, 113, 227, 0.1), transparent 32%);
}

.standard-price-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.standard-price-line span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 650;
}

.discount-line {
  color: var(--ink);
  font-weight: 650;
}

.pricing-referral {
  margin-top: -26px;
  margin-bottom: 56px;
}

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

.standard-plan-sheet {
  width: min(620px, 100%);
}

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

.standard-choice {
  display: grid;
  gap: 7px;
  min-height: 128px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  text-align: left;
}

.standard-choice:hover {
  background: #f5f5f7;
}

.standard-choice span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.standard-choice strong {
  font-size: 34px;
  font-weight: 650;
  letter-spacing: 0;
  white-space: nowrap;
}

.standard-choice em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
}

.custom-plan-card {
  border-color: rgba(29, 29, 31, 0.14);
  background: linear-gradient(180deg, #fff, #f7f7f9);
}

.purchase-button {
  align-self: end;
}

.pricing-note,
.delivery-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 70px;
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.referral-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 70px;
  padding: 30px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.lesson-balance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 24px 0;
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.lesson-balance-card h2 {
  font-size: 32px;
}

.balance-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.balance-action strong {
  font-size: 42px;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

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

.referral-rules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.referral-rules article {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border-radius: 22px;
  background: var(--bg);
}

.referral-rules strong {
  font-size: 34px;
  letter-spacing: -0.03em;
}

.referral-rules span {
  color: var(--muted);
}

.referral-link-box {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 20px;
  background: var(--bg);
}

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

.referral-link-box strong {
  word-break: break-all;
  font-size: 15px;
}

.pay-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(245, 245, 247, 0.72);
  backdrop-filter: blur(22px);
}

.pay-card {
  position: relative;
  width: min(420px, 100%);
  padding: 30px;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.16);
  text-align: center;
}

.pay-close,
.sheet-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: var(--bg);
  font-size: 22px;
}

.wechat-bind-qr {
  width: 220px;
  height: 220px;
  margin: 14px auto 16px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: #fff;
}

.flow-card {
  width: min(520px, 100%);
  text-align: left;
}

.flow-card h2,
.flow-card > .eyebrow {
  text-align: center;
}

.flow-card > .button {
  width: 100%;
  justify-content: center;
  margin-top: 14px;
}

.flow-copy {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  color: var(--muted);
  line-height: 1.65;
}

.flow-copy strong {
  color: var(--ink);
}

.notice-bind-block {
  margin: 18px 0 8px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: #f8fafc;
  text-align: center;
}

.notice-bind-block h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.notice-bind-block p {
  color: var(--muted);
  line-height: 1.6;
}

.qr-frame {
  width: 248px;
  height: 248px;
  display: grid;
  place-items: center;
  margin: 20px auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
}

.qr-frame img {
  width: 220px;
  height: 220px;
}

.dashboard-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 62px 0 28px;
}

.create-page {
  padding-bottom: 70px;
}

.create-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  padding: 62px 0 28px;
}

.create-head h1 {
  margin-bottom: 12px;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.06;
}

.create-head p {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.7;
}

.create-account-card {
  min-width: 260px;
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fff;
}

.create-account-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.create-account-card strong {
  font-size: 34px;
  letter-spacing: -0.03em;
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

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

.create-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}

.exam-page {
  padding-bottom: 70px;
}

.exam-form-panel {
  margin-top: 20px;
  padding: 26px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

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

.exam-courseware-item {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: #fbfbfd;
  color: var(--ink);
}

.exam-courseware-item input {
  width: 18px;
  min-height: 18px;
  accent-color: #1d1d1f;
}

.exam-courseware-item span {
  display: grid;
  gap: 4px;
}

.exam-courseware-item small {
  color: var(--muted);
}

.exam-start-row {
  margin-top: 18px;
}

.account-overview {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr;
  gap: 16px;
  margin-bottom: 20px;
}

.overview-card,
.courseware-form-panel,
.task-panel,
.script-review-panel,
.delivery-panel {
  padding: 26px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.field-hint {
  color: var(--subtle);
  font-size: 13px;
  line-height: 1.5;
}

input[type="file"] {
  min-height: auto;
  padding: 13px;
  border-style: dashed;
  background: #fbfbfd;
}

.overview-card strong {
  display: block;
  font-size: 48px;
  letter-spacing: -0.04em;
}

.text-link {
  color: var(--blue);
  font-weight: 700;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 20px;
  margin-bottom: 20px;
}

.my-workspace {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}

.section-head.compact h2 {
  font-size: 32px;
}

.courseware-form {
  display: grid;
  gap: 18px;
}

.form-credit-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 18px 0 20px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--bg);
}

.form-credit-line span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.form-credit-line strong {
  font-size: 18px;
}

select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: #fbfbfd;
  cursor: pointer;
}

.task-item.is-empty {
  cursor: default;
}

.delivered-task {
  cursor: default;
}

.task-copy {
  min-width: 0;
}

.task-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.task-item + .task-item {
  margin-top: 10px;
}

.task-item h3 {
  margin-bottom: 4px;
}

.task-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.task-item .refund-note {
  color: #6e6e73;
  font-size: 13px;
  line-height: 1.6;
  margin-top: 8px;
}

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

.course-semester-group {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: #fff;
}

.course-semester-head {
  display: grid;
  gap: 6px;
  padding-bottom: 4px;
}

.course-semester-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.course-semester-head h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 650;
}

.course-semester-head p {
  margin: 0;
  color: var(--muted);
}

.course-library-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: #fbfbfd;
}

.course-library-card span {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.course-library-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.course-library-card p,
.course-library-card dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.course-library-card dl {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px 10px;
  margin: 0;
}

.course-library-card dt {
  color: var(--ink);
  font-weight: 800;
}

.status-badge {
  align-self: flex-start;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(0, 113, 227, 0.1);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

body[data-page="customize"] .create-head h1,
body[data-page="exam"] .create-head h1,
body[data-page="my"] .dashboard-head h1 {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 600;
  letter-spacing: 0;
}

body[data-page="customize"] .section-head.compact h2,
body[data-page="exam"] .section-head.compact h2,
body[data-page="my"] .section-head.compact h2,
body[data-page="my"] .delivery-panel h2 {
  font-size: clamp(22px, 2.2vw, 26px);
  font-weight: 600;
  letter-spacing: 0;
}

body[data-page="customize"] .create-head p,
body[data-page="exam"] .create-head p,
body[data-page="my"] .dashboard-head p,
body[data-page="customize"] .section-head.compact p,
body[data-page="exam"] .section-head.compact p,
body[data-page="my"] .section-head.compact p,
body[data-page="my"] .delivery-panel p {
  font-size: 14px;
}

body[data-page="customize"] .create-account-card strong,
body[data-page="customize"] .task-item h3,
body[data-page="exam"] .exam-courseware-item span,
body[data-page="my"] .task-item h3,
body[data-page="my"] .delivery-panel strong {
  font-weight: 600;
}

body[data-page="customize"] .create-account-card strong {
  font-size: 28px;
}

body[data-page="customize"] .eyebrow,
body[data-page="exam"] .eyebrow,
body[data-page="my"] .eyebrow,
body[data-page="pricing"] .eyebrow,
body[data-page="customize"] label,
body[data-page="exam"] label,
body[data-page="customize"] .status-badge,
body[data-page="my"] .status-badge {
  font-weight: 600;
}

body[data-page="pricing"] .pricing-hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: 0;
}

body[data-page="pricing"] .pricing-hero .hero-lead,
body[data-page="pricing"] .plan-head p,
body[data-page="pricing"] .lesson-balance-card p,
body[data-page="pricing"] .referral-panel p,
body[data-page="pricing"] .trial-price-note,
body[data-page="pricing"] .unit-price,
body[data-page="pricing"] .plan-features {
  font-size: 14px;
}

body[data-page="pricing"] .plan-head h2,
body[data-page="pricing"] .lesson-balance-card h2,
body[data-page="pricing"] .referral-panel h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: 0;
}

body[data-page="pricing"] .plan-price strong {
  font-size: clamp(34px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: 0;
}

body[data-page="pricing"] .balance-action strong,
body[data-page="pricing"] .referral-rules strong {
  font-size: clamp(28px, 3.4vw, 34px);
  font-weight: 600;
  letter-spacing: 0;
}

body[data-page="pricing"] .unit-price,
body[data-page="pricing"] .trial-badge,
body[data-page="pricing"] .referral-link-box span,
body[data-page="pricing"] .referral-rules span {
  font-weight: 600;
}

.script-review-panel,
.delivery-panel {
  margin-bottom: 20px;
}

.delivery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.courseware-deck {
  width: min(1360px, calc(100% - 32px));
  margin: 24px auto 56px;
}

.courseware-cover,
.lesson-slide {
  border-radius: 34px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: clamp(26px, 4vw, 48px);
  margin-bottom: 18px;
}

.lesson-slide {
  display: none;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 28px;
}

.lesson-slide.is-active {
  display: grid;
}

.slide-stage {
  overflow: hidden;
  border-radius: 28px;
  background: #fbfbfd;
}

.lesson-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.control-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px;
}

.control-panel button,
.deck-controls button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  color: #fff;
  background: var(--blue);
}

.parameter-controls label {
  min-width: 180px;
}

.teaching-points {
  color: var(--muted);
  line-height: 1.8;
}

.deck-progress {
  display: flex;
  gap: 8px;
}

.deck-progress span {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--bg);
  cursor: pointer;
}

.deck-progress span.is-active {
  color: #fff;
  background: var(--blue);
}

.deck-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
}

@media (max-width: 980px) {
  .site-header {
    position: static;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .hero-shell,
  .player-body,
  .dashboard-grid,
  .create-grid,
  .courseware-player,
  .workspace-grid,
  .lesson-slide,
  .referral-panel,
  .lesson-balance-card,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .lesson-balance-card {
    display: grid;
  }

  .create-head {
    display: grid;
  }

  .create-account-card {
    min-width: 0;
  }

  .feature-grid,
  .advantage-grid,
  .pricing-grid,
  .store-grid,
  .course-library-card,
  .account-overview,
  .admin-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-card.recommended {
    transform: none;
  }

  .pricing-card.is-featured {
    transform: none;
  }

  .player-side {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
}

@media (max-width: 640px) {
  .page-shell,
  main,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    padding: 12px;
  }

  .nav-links a,
  .nav-action {
    padding: 0 10px;
    font-size: 13px;
  }

  h1 {
    font-size: 42px;
  }

  .feature-grid,
  .advantage-grid,
  .pricing-grid,
  .store-grid,
  .course-library-card,
  .metric-row,
  .form-grid,
  .standard-choice-grid,
  .outline-select-grid,
  .outline-signature,
  .account-overview,
  .spring-controls,
  .referral-rules,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 36px;
  }

  .site-footer {
    display: grid;
  }
}
