:root {
  color-scheme: light;
  --ink: #11182d;
  --muted: #5f6e7a;
  --line: #d9e5ea;
  --paper: #f5f9fb;
  --white: #ffffff;
  --green: #5fa800;
  --green-dark: #244b05;
  --lime: #93d12c;
  --blue: #159bd3;
  --blue-dark: #111a38;
  --sky: #8bb8cf;
  --shadow: 0 18px 55px rgba(17, 24, 45, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body:not(.admin-mode) .admin-only,
body:not(.admin-mode) .admin-link {
  display: none;
}

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

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

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 64px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(10, 16, 35, 0.88), rgba(10, 16, 35, 0));
}

.brand,
.nav-links,
.hero-actions,
.lesson-metrics,
.card-topline {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
  font-size: 1.05rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

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

.nav-links {
  gap: clamp(14px, 3vw, 34px);
  font-size: 0.94rem;
  font-weight: 600;
}

.nav-action {
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 15, 33, 0.94) 0%, rgba(9, 15, 33, 0.76) 38%, rgba(9, 15, 33, 0.2) 70%),
    linear-gradient(0deg, rgba(15, 54, 78, 0.32), rgba(15, 54, 78, 0.08));
}

.hero-content {
  width: min(720px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 92px);
  padding-top: 72px;
  color: var(--white);
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(4.6rem, 13vw, 9.5rem);
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.05;
}

.hero-copy {
  width: min(590px, 100%);
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions {
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

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

.hero-proof span {
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--green), #78bf12);
  box-shadow: 0 12px 28px rgba(95, 168, 0, 0.28);
}

.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.17);
  border: 1px solid rgba(255, 255, 255, 0.38);
}

.secondary.on-light {
  color: var(--blue-dark);
  background: #eef7fb;
  border: 1px solid var(--line);
}

.dark {
  color: var(--white);
  background: var(--blue-dark);
}

.light {
  color: var(--green-dark);
  background: var(--lime);
}

.full {
  width: 100%;
}

.intro-band {
  margin-top: -56px;
  padding: 0 clamp(18px, 5vw, 64px) 34px;
  position: relative;
  z-index: 5;
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1220px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}

.service-strip a {
  min-height: 116px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.service-strip a:last-child {
  border-right: 0;
}

.service-strip span {
  color: var(--blue);
  display: block;
  margin-bottom: 12px;
  font-weight: 800;
}

.service-strip strong {
  display: block;
  line-height: 1.22;
}

.service-strip small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.planner-section,
.crm-section,
.analysis-section,
.lesson-section,
.method-section,
.service-guide-section {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 64px);
}

.method-section {
  background: var(--paper);
}

.method-grid,
.service-guide-grid {
  display: grid;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
}

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

.method-grid article,
.service-guide-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 35px rgba(23, 33, 29, 0.08);
}

.method-grid article {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: clamp(20px, 3vw, 28px);
}

.method-grid span,
.guide-icon {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  width: fit-content;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--white);
  background: var(--blue-dark);
  font-weight: 900;
}

.method-grid h3,
.service-guide-grid h3 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 1.18rem;
  line-height: 1.18;
}

.method-grid p,
.service-guide-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.section-anchor {
  position: relative;
  top: -96px;
  display: block;
  width: 1px;
  height: 1px;
}

.service-guide-section {
  background: #eef7fb;
}

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

.service-guide-grid article {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px;
}

.guide-icon {
  min-width: 46px;
  min-height: 34px;
  color: var(--green-dark);
  background: var(--lime);
  font-size: 0.84rem;
}

.guide-icon.ai {
  color: var(--white);
  background: var(--blue);
}

.guide-icon.coach {
  color: var(--white);
  background: var(--green);
}

.guide-icon.live {
  color: var(--white);
  background: var(--blue-dark);
}

.section-heading {
  max-width: 850px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.planner-grid {
  display: grid;
  grid-template-columns: minmax(300px, 460px) minmax(320px, 1fr);
  gap: 26px;
  max-width: 1120px;
  margin: 0 auto;
}

.planner-wizard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 22px;
  max-width: 1120px;
  margin: 0 auto;
}

.wizard-main,
.wizard-summary,
.plan-result,
.planner-panel,
.plan-card,
.detail-card,
.analysis-card,
.booking-panel,
.modal-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 35px rgba(23, 33, 29, 0.08);
}

.planner-panel,
.booking-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.wizard-main,
.wizard-summary,
.plan-result {
  padding: clamp(20px, 4vw, 30px);
}

.wizard-progress {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--muted);
  font-weight: 800;
}

.progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8f0f4;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  transition: width 0.25s ease;
}

.step-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.step-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.45rem, 4vw, 2.2rem);
  line-height: 1.08;
}

.step-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.option-grid {
  display: grid;
  gap: 12px;
}

.compact-select-wrap,
.compact-multi {
  display: grid;
  gap: 12px;
}

.compact-select {
  min-height: 58px;
  padding: 0 46px 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fbfcfb;
  cursor: pointer;
  font-weight: 900;
}

.selected-option-info {
  display: grid;
  gap: 7px;
  padding: 16px;
  border: 1px solid rgba(85, 183, 0, 0.22);
  border-radius: 8px;
  background: #f5fbef;
}

.selected-option-info strong {
  color: var(--blue-dark);
}

.selected-option-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.selected-option-info span {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--green-dark);
  background: rgba(85, 183, 0, 0.14);
  font-size: 0.76rem;
  font-weight: 900;
}

.compact-multi {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.compact-multi summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 16px;
  gap: 14px;
  align-items: center;
  min-height: 58px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.compact-multi summary::-webkit-details-marker {
  display: none;
}

.compact-multi summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--blue-dark);
  border-bottom: 2px solid var(--blue-dark);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.compact-multi[open] summary::after {
  transform: rotate(225deg);
}

.compact-multi summary span {
  min-width: 0;
  color: var(--ink);
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-multi summary small {
  color: var(--muted);
  font-weight: 800;
}

.compact-options {
  padding: 0 12px 12px;
}

.option-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px 10px;
  width: 100%;
  min-height: 62px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.option-card input {
  margin-top: 2px;
}

.option-card:hover,
.option-card.is-selected {
  border-color: var(--green);
  box-shadow: 0 12px 24px rgba(85, 183, 0, 0.14);
  transform: translateY(-1px);
}

.option-card.is-selected {
  background: #f5fbef;
}

.option-card > span {
  padding-right: 92px;
  font-weight: 900;
  line-height: 1.28;
}

.option-card p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.option-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(85, 183, 0, 0.12);
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 900;
}

.wizard-actions,
.plan-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.wizard-actions .button,
.plan-result-actions .button {
  flex: 1 1 160px;
}

.wizard-actions .button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.wizard-summary {
  align-self: start;
  position: sticky;
  top: 96px;
}

.wizard-summary h3 {
  margin: 6px 0 18px;
  font-size: 1.25rem;
}

.wizard-summary dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.wizard-summary dl div {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.wizard-summary dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.wizard-summary dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.35;
}

.plan-result {
  max-width: 1120px;
  margin: 26px auto 0;
}

.plan-result[hidden] {
  display: none;
}

.plan-result-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 22px;
  align-items: start;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.plan-result-head h3 {
  margin: 4px 0 10px;
  font-size: clamp(1.55rem, 4vw, 2.4rem);
  line-height: 1.08;
}

.plan-result-head p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.plan-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.plan-meta span {
  padding: 14px;
  border-radius: 8px;
  background: #f7fbfd;
  color: var(--muted);
  font-weight: 800;
}

.plan-meta strong {
  display: block;
  color: var(--blue-dark);
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.weekly-focus {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid rgba(21, 130, 179, 0.18);
  border-radius: 8px;
  background: #f7fbfd;
}

.weekly-focus p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.weekly-focus strong {
  color: var(--ink);
}

.time-distribution {
  display: grid;
  gap: 10px;
  margin: 6px 0;
}

.distribution-row {
  display: grid;
  gap: 6px;
}

.distribution-row span {
  color: var(--ink);
  font-weight: 800;
}

.distribution-row div {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfeaf0;
}

.distribution-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--cyan));
}

.technical-help-card {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.6fr);
  gap: 16px;
  align-items: center;
  margin: 8px 0 18px;
  padding: 16px;
  border: 1px solid rgba(85, 183, 0, 0.24);
  border-radius: 8px;
  background: linear-gradient(145deg, #f7fbfd, #f4faef);
}

.technical-help-card.compact {
  margin: 14px 0 0;
}

.technical-help-copy h4 {
  margin: 4px 0 8px;
  color: var(--ink);
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  line-height: 1.16;
}

.technical-help-copy p:not(.eyebrow),
.technical-help-options p {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
  font-size: 0.94rem;
}

.technical-help-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.technical-help-options article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.technical-help-options article .button {
  grid-column: 1 / -1;
  min-height: 40px;
  padding: 9px 12px;
  font-size: 0.9rem;
}

.technical-help-options h5 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 0.98rem;
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--cyan);
  color: var(--white);
  font-weight: 900;
}

.service-icon.coach {
  background: var(--green);
}

.session-tech-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: #f4faef;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 700;
}

.public-plan-grid {
  margin-bottom: 24px;
}

.roadmap-heading {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  margin-top: 6px;
  padding: 18px 0 8px;
  border-top: 1px solid var(--line);
}

.roadmap-heading h4 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.2rem, 3vw, 1.55rem);
}

.roadmap-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.progress-dashboard {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(21, 130, 179, 0.2);
  border-radius: 8px;
  background: #f7fbfd;
}

.progress-dashboard h4 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.progress-dashboard p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

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

.progress-stats span {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--muted);
  font-weight: 800;
}

.progress-stats strong {
  display: block;
  color: var(--blue-dark);
  font-size: 1.45rem;
  line-height: 1;
}

.exercise-list {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.exercise-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.exercise-thumb-wrap {
  display: grid;
  gap: 7px;
  margin: 0;
}

.exercise-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef7fb;
}

.exercise-thumb-wrap figcaption,
.media-handedness-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.exercise-summary {
  min-width: 0;
}

.exercise-card h5 {
  margin: 8px 0 10px;
  color: var(--blue-dark);
  font-size: 1rem;
}

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

.exercise-card ol {
  margin: 8px 0 10px;
  padding-left: 20px;
  color: var(--muted);
}

.exercise-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
}

.exercise-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.exercise-result-inputs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.exercise-result-inputs input,
.exercise-summary textarea {
  padding: 10px 11px;
  font-size: 0.9rem;
}

.exercise-summary textarea {
  margin-top: 8px;
  min-height: 72px;
}

.exercise-save-status,
.local-progress-note {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.exercise-save-status {
  min-height: 20px;
  margin-bottom: 0 !important;
  color: var(--green);
  font-weight: 800;
}

.register-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 8px;
  background: #eef7fb;
}

.register-box ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.6;
}

.session-resource,
.final-recommendation {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(21, 130, 179, 0.2);
  border-radius: 8px;
  background: #f7fbfd;
}

.session-resource p,
.final-recommendation p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.55;
}

.final-recommendation {
  grid-column: 1 / -1;
  background: linear-gradient(145deg, #f7fbfd, #f4faef);
}

.final-recommendation h4 {
  margin: 4px 0 10px;
  color: var(--ink);
  font-size: clamp(1.25rem, 3vw, 1.8rem);
}

.save-progress-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 14px;
  padding: 20px;
  border: 1px solid rgba(17, 26, 56, 0.14);
  border-radius: 8px;
  background: #fbfcfb;
}

.save-progress-card h4 {
  margin: 4px 0 8px;
  color: var(--ink);
  font-size: 1.35rem;
}

.save-progress-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.save-progress-card [aria-disabled="true"] {
  cursor: pointer;
  opacity: 0.72;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

label {
  display: grid;
  gap: 9px;
  color: var(--ink);
  font-weight: 800;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
}

input[type="range"] {
  accent-color: var(--green);
  padding: 0;
}

input[type="checkbox"] {
  width: auto;
  accent-color: var(--green);
}

.range-value {
  color: var(--muted);
  font-weight: 600;
}

.resource-field {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.resource-field legend {
  grid-column: 1 / -1;
  padding: 0 6px;
  color: var(--ink);
  font-weight: 900;
}

.resource-field label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.35;
}

.plan-card {
  padding: 28px;
  background: linear-gradient(145deg, var(--blue-dark), #173c5b);
  color: var(--white);
}

.plan-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.plan-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.plan-header strong {
  text-align: right;
}

.plan-summary {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.55;
}

.plan-list {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding-left: 20px;
}

.plan-list li {
  padding-left: 8px;
  line-height: 1.5;
}

.lead-box {
  display: grid;
  gap: 14px;
  margin-top: 4px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfd;
}

.lead-box p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.45;
}

.detail-card {
  max-width: 1120px;
  margin: 26px auto 0;
  padding: clamp(22px, 4vw, 34px);
}

.detail-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.detail-heading h3 {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

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

.session-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
}

.session-card h4 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 1.05rem;
}

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

.session-steps {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
}

.session-card small {
  color: var(--blue);
  font-weight: 800;
}

.crm-section {
  background: #eef7fb;
}

.crm-shell {
  max-width: 1120px;
  margin: 0 auto;
}

.crm-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.crm-stats article,
.crm-table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 35px rgba(17, 24, 45, 0.08);
}

.crm-stats article {
  padding: 20px;
}

.crm-stats span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.crm-stats strong {
  display: block;
  margin-top: 8px;
  color: var(--blue-dark);
  font-size: 2.3rem;
  line-height: 1;
}

.crm-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

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

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

.crm-table th,
.crm-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.crm-table th {
  color: var(--blue-dark);
  font-size: 0.86rem;
  text-transform: uppercase;
}

.crm-table td {
  color: var(--muted);
  line-height: 1.45;
}

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

.crm-name {
  color: var(--ink);
  font-weight: 900;
}

.crm-status {
  min-width: 150px;
}

.crm-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mini-button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue-dark);
  background: #f7fbfd;
  cursor: pointer;
  font-weight: 800;
}

.analysis-section {
  background: var(--white);
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.analysis-card {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 460px;
  padding: clamp(24px, 4vw, 40px);
}

.analysis-card.featured {
  color: var(--white);
  background: linear-gradient(140deg, var(--blue-dark), var(--blue));
  border-color: transparent;
}

.card-topline {
  justify-content: space-between;
  gap: 16px;
}

.card-topline span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: var(--lime);
  font-weight: 900;
}

.card-topline small {
  color: var(--muted);
  font-weight: 800;
}

.featured .card-topline small,
.featured p,
.featured li {
  color: rgba(255, 255, 255, 0.78);
}

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

.analysis-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.analysis-card .button {
  align-self: end;
  justify-self: start;
  margin-top: auto;
}

.analysis-result {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 24px;
  align-items: center;
  max-width: 1120px;
  margin: 24px auto 0;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfd;
  box-shadow: 0 10px 35px rgba(17, 24, 45, 0.08);
}

.analysis-result h3 {
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.analysis-result p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.result-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(96px, 1fr));
  gap: 10px;
}

.result-metrics span {
  min-width: 104px;
  padding: 14px;
  border-radius: 8px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
}

.result-metrics strong {
  display: block;
  color: var(--blue-dark);
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  overflow-wrap: anywhere;
}

.lesson-section {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(280px, 430px);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  background: #eef7fb;
}

.lesson-content {
  max-width: 690px;
}

.lesson-content p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.65;
}

.lesson-metrics {
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.lesson-metrics span {
  min-width: 120px;
  padding: 16px 18px;
  border-radius: 8px;
  background: var(--white);
  color: var(--muted);
}

.lesson-metrics strong {
  display: block;
  color: var(--blue-dark);
  font-size: 1.8rem;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.form-note a {
  color: var(--blue-dark);
  font-weight: 900;
}

.upload-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(8, 18, 13, 0.72);
}

.upload-modal.is-open {
  display: flex;
}

.exercise-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(8, 18, 13, 0.72);
}

.exercise-modal.is-open {
  display: flex;
}

.modal-panel {
  position: relative;
  width: min(560px, 100%);
  padding: 28px;
}

.exercise-modal-panel {
  position: relative;
  width: min(820px, 100%);
  max-height: min(92vh, 920px);
  overflow: auto;
  padding: clamp(20px, 4vw, 30px);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.exercise-detail {
  display: grid;
  gap: 14px;
}

.exercise-detail h3 {
  margin: 0;
  padding-right: 42px;
  color: var(--ink);
  font-size: clamp(1.4rem, 4vw, 2rem);
}

.exercise-detail h4 {
  margin: 4px 0 0;
  color: var(--blue-dark);
}

.exercise-detail p,
.exercise-detail li {
  color: var(--muted);
  line-height: 1.55;
}

.exercise-detail p {
  margin: 0;
}

.exercise-detail ol {
  margin: 0;
  padding-left: 22px;
}

.media-handedness-note {
  padding: 10px 12px;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: #f4faef;
}

.exercise-media-button {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  cursor: zoom-in;
  background: transparent;
}

.exercise-detail-media,
.exercise-detail video {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef7fb;
}

.exercise-sequence {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.exercise-sequence img,
.media-placeholder {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef7fb;
}

.media-placeholder {
  display: grid;
  place-items: center;
  min-height: 180px;
  color: var(--muted);
  font-weight: 800;
}

.media-generation-details {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfd;
}

.media-generation-details summary {
  cursor: pointer;
  color: var(--blue-dark);
  font-weight: 900;
}

.media-generation-details p {
  margin-top: 10px;
  font-size: 0.9rem;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: #eaf4f8;
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
}

.upload-mode {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 18px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f2f8fb;
}

.mode-button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}

.mode-button.is-active {
  color: var(--white);
  background: var(--blue-dark);
  box-shadow: 0 8px 18px rgba(17, 26, 56, 0.18);
}

.upload-drop {
  margin: 20px 0 16px;
  place-items: center;
  min-height: 150px;
  border: 1px dashed var(--sky);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  background: #f2f8fb;
}

.upload-drop input {
  display: none;
}

.upload-drop span {
  color: var(--green);
  font-size: 1.1rem;
}

.upload-drop small {
  color: var(--muted);
  font-weight: 500;
}

textarea {
  min-height: 108px;
  resize: vertical;
}

@media (max-width: 880px) {
  .topbar {
    position: absolute;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 86vh;
  }

  .hero-content {
    margin-right: 18px;
  }

  .service-strip,
  .planner-wizard,
  .planner-grid,
  .method-grid,
  .service-guide-grid,
  .form-row,
  .crm-stats,
  .analysis-grid,
  .analysis-result,
  .lesson-section {
    grid-template-columns: 1fr;
  }

  .detail-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .session-grid {
    grid-template-columns: 1fr;
  }

  .result-metrics {
    grid-template-columns: 1fr;
  }

  .resource-field {
    grid-template-columns: 1fr;
  }

  .wizard-summary {
    position: static;
  }

  .plan-result-head,
  .plan-meta,
  .technical-help-card,
  .technical-help-options,
  .progress-dashboard,
  .save-progress-card {
    grid-template-columns: 1fr;
  }

  .exercise-card {
    grid-template-columns: 1fr;
  }

  .exercise-thumb {
    max-height: 220px;
  }

  .exercise-result-inputs {
    grid-template-columns: 1fr;
  }

  .service-strip a {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-strip a:last-child {
    border-bottom: 0;
  }

  .analysis-card {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .topbar {
    padding: 14px 16px;
  }

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

  .nav-action {
    display: none;
  }

  .hero {
    min-height: 84vh;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(7, 22, 15, 0.94), rgba(7, 22, 15, 0.46));
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-proof span {
    flex: 1 1 100%;
  }

  .intro-band {
    margin-top: 0;
    padding-top: 18px;
  }

  .plan-header {
    display: grid;
  }

  .plan-header strong {
    text-align: left;
  }

  .option-card > span {
    padding-right: 0;
  }

  .option-badge {
    position: static;
    width: fit-content;
  }
}

@media print {
  .topbar,
  .hero,
  .intro-band,
  .method-section,
  .service-guide-section,
  .planner-wizard,
  .lead-box,
  .plan-result-actions,
  .technical-help-card,
  .progress-dashboard,
  .exercise-actions,
  .exercise-result-inputs,
  .exercise-summary textarea,
  .exercise-save-status,
  .save-progress-card,
  .exercise-modal,
  .detail-card,
  .crm-section,
  .analysis-section,
  .lesson-section,
  .footer {
    display: none !important;
  }

  .planner-section {
    padding: 0;
  }

  .plan-result {
    display: block !important;
    margin: 0;
    border: 0;
    box-shadow: none;
  }

  .session-card,
  .exercise-card,
  .weekly-focus {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .exercise-check input {
    display: none;
  }

  .exercise-card {
    grid-template-columns: 110px 1fr;
  }
}
