:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --ink: #1d2433;
  --muted: #667085;
  --line: #d8dee9;
  --panel: #ffffff;
  --panel-soft: #eef3f8;
  --accent: #1b7f79;
  --accent-strong: #0e5f59;
  --accent-soft: rgba(27, 127, 121, 0.1);
  --warning: #b54708;
  --error: #b42318;
  --shadow: 0 18px 60px rgba(32, 42, 68, 0.12);
  --shadow-soft: 0 10px 30px rgba(32, 42, 68, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(27, 127, 121, 0.11), transparent 34rem),
    linear-gradient(180deg, #ffffff 0, var(--bg) 28rem);
  color: var(--ink);
  line-height: 1.55;
}

a {
  color: var(--accent-strong);
}

.site-header,
.site-footer,
.hero-section,
.section,
.page-section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.site-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-nav a {
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent-strong);
}

.site-nav .nav-cta {
  border: 1px solid rgba(27, 127, 121, 0.22);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  padding: 7px 12px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  padding: 3px;
}

.language-switcher a {
  display: inline-flex;
  min-width: 34px;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1;
}

.language-switcher a[aria-current="true"] {
  background: var(--accent);
  color: #ffffff;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 460px;
  gap: 48px;
  align-items: center;
  padding: 72px 0 34px;
}

.coach-hero {
  align-items: stretch;
}

.hero-copy h1,
.page-section h1 {
  margin: 0 0 16px;
  font-size: clamp(2.55rem, 7vw, 5rem);
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.hero-text {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.25rem);
}

.kicker {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions,
.report-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.final-cta-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 12px;
}

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

.button.large {
  min-height: 50px;
  padding: 12px 18px;
}

.button.primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(27, 127, 121, 0.18);
}

.button.secondary {
  background: #ffffff;
  border-color: var(--line);
  color: var(--ink);
}

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

.button.primary:hover {
  background: var(--accent-strong);
}

.button.secondary:hover {
  border-color: rgba(27, 127, 121, 0.35);
}

.button:focus-visible,
.site-nav a:focus-visible {
  outline: 3px solid rgba(27, 127, 121, 0.22);
  outline-offset: 3px;
}

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

.analysis-mode-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.analysis-mode-strip span {
  border: 1px solid rgba(27, 127, 121, 0.18);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 850;
  padding: 6px 10px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-proof span,
.trust-strip span,
.status-pill {
  border: 1px solid rgba(27, 127, 121, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 800;
  padding: 7px 10px;
}

.hero-panel,
.status-box,
.analysis-form,
.alert {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 18px;
}

.hero-panel::before {
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(27, 127, 121, 0.28), rgba(32, 42, 68, 0.08));
  content: "";
}

.preview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.preview-header h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.18;
}

.status-pill {
  flex: 0 0 auto;
  background: var(--accent-soft);
  font-size: 0.78rem;
}

.mini-board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 8px solid #6f4425;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.mini-board span:nth-child(16n + 1),
.mini-board span:nth-child(16n + 3),
.mini-board span:nth-child(16n + 5),
.mini-board span:nth-child(16n + 7),
.mini-board span:nth-child(16n + 10),
.mini-board span:nth-child(16n + 12),
.mini-board span:nth-child(16n + 14),
.mini-board span:nth-child(16n + 16) {
  background: #355070;
}

.mini-board span {
  background: #dbe6d0;
}

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

.preview-metrics p {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.preview-metrics strong {
  font-size: 1.35rem;
  line-height: 1;
}

.preview-metrics span {
  color: var(--muted);
  font-size: 0.78rem;
}

.coach-preview {
  align-self: center;
}

.coach-note {
  border: 1px solid rgba(27, 127, 121, 0.18);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(27, 127, 121, 0.1), rgba(255, 255, 255, 0.94)),
    var(--panel);
  padding: 16px;
}

.coach-note h3 {
  margin: 4px 0 8px;
  font-size: 1.45rem;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.coach-note p {
  margin: 0;
}

.coach-label {
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.coach-finding-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.coach-finding-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 10px;
}

.coach-finding-list dd {
  font-weight: 750;
}

.insight-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.insight-list p,
.summary-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  color: var(--muted);
}

.insight-list strong {
  color: var(--ink);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 22px;
}

.trust-strip span {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.section,
.page-section {
  padding: 48px 0;
}

.page-section.narrow {
  max-width: 880px;
}

.section-heading {
  margin-bottom: 24px;
  text-align: center;
}

.section-heading p:not(.kicker) {
  max-width: 680px;
  margin: 10px auto 0;
  color: var(--muted);
}

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

.section-heading h2,
.report-section h2 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
}

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

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

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

.steps-grid article,
.metric-grid article,
.exercise-grid article,
.mistake-list article,
.training-card,
.benefits p,
.benefits article,
.coach-grid article,
.output-card,
.plan-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.steps-grid article,
.benefits article,
.coach-grid article,
.output-card,
.plan-card {
  box-shadow: var(--shadow-soft);
}

.steps-grid article h3,
.benefits article h3,
.coach-grid article h3,
.output-card h3 {
  margin: 12px 0 8px;
}

.steps-grid article p,
.benefits article p,
.coach-grid article p,
.output-card p,
.plan-card li {
  color: var(--muted);
}

.coach-grid article {
  position: relative;
}

.coach-grid ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 20px;
}

.coach-grid li::marker {
  color: var(--accent);
}

.coach-tag {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 850;
}

.output-example {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 16px;
  align-items: stretch;
}

.output-card,
.plan-card {
  display: grid;
  gap: 12px;
}

.output-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.output-card dl div {
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 10px 12px;
}

.plan-card {
  background:
    linear-gradient(180deg, rgba(27, 127, 121, 0.08), rgba(255, 255, 255, 0.96)),
    var(--panel);
}

.plan-card ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.plan-card .button {
  width: fit-content;
  margin-top: 4px;
}

.coach-steps article h3 {
  margin-top: 12px;
}

.step-benefit {
  width: fit-content;
  margin: 14px 0 0;
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--accent-strong) !important;
  font-size: 0.78rem;
  font-weight: 850;
  padding: 4px 8px;
  text-transform: uppercase;
}

.step-number {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--panel-soft);
  color: var(--accent-strong);
  font-weight: 800;
}

.muted-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
  border: 1px solid rgba(27, 127, 121, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(27, 127, 121, 0.12), rgba(255, 255, 255, 0.95)),
    #ffffff;
  box-shadow: var(--shadow);
  padding: 34px;
}

.final-cta h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.final-cta p:not(.kicker) {
  max-width: 640px;
  margin: 10px 0 0;
  color: var(--muted);
}

.analysis-form {
  display: grid;
  gap: 22px;
  padding: 24px;
}

.privacy-assurance {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(27, 127, 121, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(27, 127, 121, 0.09), rgba(255, 255, 255, 0.95)),
    var(--panel);
  padding: 14px;
}

.privacy-assurance p {
  margin: 0;
  color: var(--muted);
}

.privacy-assurance a {
  width: fit-content;
  font-weight: 750;
}

.locked-feature-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  border: 1px dashed rgba(27, 127, 121, 0.35);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(27, 127, 121, 0.07), rgba(255, 255, 255, 0.94)),
    var(--panel);
  color: var(--ink);
  padding: 16px;
}

.locked-feature-panel.compact {
  align-self: end;
}

.locked-feature-panel p {
  margin: 0;
  color: var(--muted);
}

.locked-feature-panel > a:not(.button) {
  width: fit-content;
  font-weight: 800;
}

.locked-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.locked-feature-list span {
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 5px 8px;
}

fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  border: 0;
  margin: 0;
  padding: 0;
}

legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  font-size: 1.1rem;
  font-weight: 800;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 650;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
}

input:focus,
select:focus {
  outline: 3px solid rgba(27, 127, 121, 0.16);
  border-color: var(--accent);
}

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

.checkbox-grid label {
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 8px;
  color: var(--ink);
}

.checkbox-grid input {
  min-height: auto;
}

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

.alert {
  margin-bottom: 16px;
  padding: 16px;
}

.alert.error,
.error-text {
  color: var(--error);
}

.alert.success {
  color: var(--accent-strong);
}

.auth-form {
  max-width: 560px;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.auth-links a {
  font-weight: 750;
  text-decoration: none;
}

.dev-reset-link {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  border: 1px solid rgba(181, 71, 8, 0.25);
  border-radius: 10px;
  background: rgba(181, 71, 8, 0.08);
  padding: 16px;
}

.dev-reset-link p {
  margin: 0;
  color: var(--muted);
}

.dev-reset-link a {
  overflow-wrap: anywhere;
  font-weight: 800;
}

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

.dashboard-card,
.dashboard-empty {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  padding: 20px;
}

.dashboard-card h2,
.dashboard-empty h3 {
  margin: 0 0 8px;
}

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

.plan-limits {
  display: grid;
  gap: 10px;
  margin: 0;
}

.plan-limits div {
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 10px;
}

.status-box {
  padding: 24px;
}

.progress-track {
  width: 100%;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--panel-soft);
}

.progress-track span {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width 240ms ease;
}

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

.status-grid div {
  padding: 14px;
  background: var(--panel-soft);
  border-radius: 8px;
}

dt {
  color: var(--muted);
  font-size: 0.9rem;
}

dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.report-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.metric-grid article span {
  display: block;
  font-size: 2rem;
  font-weight: 850;
}

.metric-grid article p {
  margin: 4px 0 0;
  color: var(--muted);
}

.report-section {
  margin-top: 32px;
}

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

table {
  width: 100%;
  border-collapse: collapse;
}

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

th {
  color: var(--muted);
  font-size: 0.88rem;
}

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

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

.theory-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

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

.book-badge {
  width: fit-content;
  border: 1px solid rgba(27, 127, 121, 0.22);
  border-radius: 999px;
  background: rgba(27, 127, 121, 0.08);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  padding: 4px 9px;
  text-transform: uppercase;
}

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

.training-card {
  padding: 0;
  overflow: hidden;
}

.training-card-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 0;
  background: #ffffff;
  color: var(--ink);
  padding: 16px 18px;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.training-card-toggle small {
  color: var(--muted);
  font-weight: 650;
}

.training-card-body {
  border-top: 1px solid var(--line);
  padding: 18px;
}

.training-layout {
  display: grid;
  grid-template-columns: minmax(320px, 560px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.board-column {
  display: grid;
  gap: 10px;
}

.vanilla-board {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-template-rows: repeat(8, minmax(0, 1fr));
  inline-size: min(100%, 560px);
  max-inline-size: 560px;
  aspect-ratio: 1;
  border: 10px solid #6f4425;
  border-radius: 10px;
  background: #6f4425;
  box-shadow: 0 18px 42px rgba(64, 39, 20, 0.22);
  overflow: hidden;
}

.board-square {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  place-items: center;
  border: 0;
  padding: 0;
  font-size: clamp(2rem, 8.5vw, 4rem);
  line-height: 0;
  cursor: pointer;
  aspect-ratio: 1;
  color: transparent;
}

.board-square.has-white-piece {
  color: #fff3dc;
  -webkit-text-stroke: 1px rgba(70, 42, 20, 0.65);
  text-shadow: 0 2px 1px rgba(255, 255, 255, 0.45), 0 4px 7px rgba(42, 24, 12, 0.45);
}

.board-square.has-black-piece {
  color: #17110b;
  -webkit-text-stroke: 1px rgba(255, 229, 180, 0.18);
  text-shadow: 0 2px 1px rgba(255, 255, 255, 0.12), 0 4px 7px rgba(0, 0, 0, 0.45);
}

.board-square.is-light {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(90deg, rgba(132, 84, 40, 0.08) 0 8px, rgba(255, 255, 255, 0.05) 8px 16px),
    #e1b77c;
}

.board-square.is-dark {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.08)),
    repeating-linear-gradient(90deg, rgba(56, 29, 12, 0.12) 0 8px, rgba(255, 255, 255, 0.03) 8px 16px),
    #9b6132;
}

.board-square:focus-visible {
  z-index: 2;
  outline: 3px solid #f59e0b;
  outline-offset: -3px;
}

.board-square.is-selected {
  box-shadow: inset 0 0 0 4px #2563eb;
}

.board-square.is-highlighted {
  box-shadow: inset 0 0 0 4px #f59e0b;
}

.board-square.is-highlighted::after {
  position: absolute;
  right: 2px;
  bottom: 2px;
  max-width: calc(100% - 4px);
  overflow: hidden;
  color: #111827;
  content: attr(data-highlight-label);
  font-size: 0.58rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-description,
.move-list,
.exercise-feedback,
.hint-text {
  color: var(--muted);
  font-size: 0.95rem;
}

.move-list {
  padding: 10px;
  border-radius: 8px;
  background: var(--panel-soft);
}

.training-details {
  display: grid;
  gap: 16px;
}

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

.mistake-meta div {
  padding: 10px;
  border-radius: 8px;
  background: var(--panel-soft);
}

.training-actions,
.hint-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.training-actions button,
.hint-row button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  padding: 8px 12px;
  cursor: pointer;
}

.exercise-feedback {
  min-height: 28px;
  padding: 10px;
  border-left: 4px solid var(--accent);
  background: var(--panel-soft);
}

.explanation-block,
.variation-block,
.source-games {
  display: grid;
  gap: 8px;
}

.explanation-block h3,
.explanation-block h4,
.variation-block h3,
.source-games h3 {
  margin: 0;
}

.explanation-block h4 {
  color: var(--muted);
  font-size: 0.95rem;
}

.explanation-block p {
  margin: 0;
}

.explanation-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.technical-details {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.technical-details summary {
  cursor: pointer;
  font-weight: 800;
}

.source-games a {
  display: inline-flex;
  margin-right: 10px;
}

code {
  display: block;
  overflow-x: auto;
  max-width: 100%;
  padding: 10px;
  border-radius: 8px;
  background: #202a44;
  color: #f8fafc;
  font-size: 0.88rem;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.footer-note {
  max-width: 700px;
  margin-top: 8px !important;
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 14px;
}

.footer-links a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-strong);
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 20;
  display: flex;
  max-width: 980px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  border: 1px solid rgba(27, 127, 121, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow);
  padding: 18px;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner h2 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.cookie-banner p {
  margin: 0 0 8px;
  color: var(--muted);
}

.cookie-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}

.legal-page h1 {
  margin-bottom: 8px;
}

.legal-updated {
  margin-top: 0;
  color: var(--muted);
}

.legal-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  padding: 22px;
}

.legal-card h2 {
  margin: 8px 0 0;
  font-size: 1.15rem;
}

.legal-card p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 860px) {
  .hero-section,
  fieldset,
  .checkbox-grid,
  .advanced-grid,
  .steps-grid,
  .metric-grid,
  .exercise-grid,
  .benefits,
  .coach-grid,
  .dashboard-grid,
  .output-example,
  .trust-strip,
  .status-grid,
  .training-layout,
  .mistake-meta {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding-top: 32px;
  }

  .site-header,
  .report-header,
  .site-footer,
  .cookie-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .cookie-banner {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .final-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
  }

  .preview-header,
  .training-card-toggle {
    align-items: flex-start;
    flex-direction: column;
  }
}
