:root {
  --forest-950: #0b241b;
  --forest-900: #12372a;
  --forest-800: #1d4f3e;
  --forest-700: #286451;
  --mint-100: #e6f1eb;
  --mint-50: #f2f7f4;
  --cream: #fbf7ef;
  --paper: #fffdf8;
  --walnut-800: #704526;
  --walnut-600: #9a6840;
  --gold-500: #d2a857;
  --ink: #18221d;
  --muted: #5d6962;
  --line: #d9e1dc;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(18, 55, 42, 0.14);
  --radius-lg: 28px;
  --radius-md: 18px;
  --shell: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  border-radius: 5px;
  outline: 3px solid var(--gold-500);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 15px;
  border-radius: 8px;
  background: var(--white);
  color: var(--forest-950);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(18, 55, 42, 0.1);
  background: rgba(255, 253, 248, 0.94);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand,
.footer-brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  color: var(--forest-950);
  font-weight: 850;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.header-inner nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #33483e;
  font-size: 0.92rem;
  font-weight: 700;
}

.header-inner nav a {
  text-decoration: none;
}

.header-inner nav a:hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--forest-700);
}

.language-menu {
  position: relative;
}

.language-menu summary {
  min-width: 88px;
  padding: 8px 13px;
  border: 1px solid rgba(18, 55, 42, 0.17);
  border-radius: 999px;
  background: var(--mint-50);
  color: var(--forest-900);
  cursor: pointer;
  list-style: none;
  text-align: center;
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-menu summary::after {
  content: " ▾";
  color: var(--forest-700);
}

.language-menu[open] summary::after {
  content: " ▴";
}

.language-options {
  position: absolute;
  z-index: 30;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(118px, 1fr));
  width: min(340px, calc(100vw - 30px));
  max-height: min(65vh, 460px);
  padding: 10px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
  direction: ltr;
}

.language-menu:not([open]) .language-options {
  display: none;
}

.header-inner nav .language-options a {
  display: block;
  padding: 8px 10px;
  border-radius: 9px;
  white-space: nowrap;
}

.language-options a:hover,
.language-options a[aria-current="page"] {
  background: var(--mint-100);
  color: var(--forest-900);
}

[dir="rtl"] .language-options {
  right: auto;
  left: 0;
}

[dir="rtl"] .analysis-source,
[dir="rtl"] .legal-intro {
  border-left: 0;
  border-right: 4px solid var(--gold-500);
}

.nav-status {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid rgba(18, 55, 42, 0.17);
  border-radius: 999px;
  background: var(--mint-50);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(480px, 1.08fr);
  align-items: center;
  gap: clamp(52px, 7vw, 94px);
  min-height: 695px;
  padding-block: 76px 88px;
}

.hero-copy h1,
.section-heading h2,
.values-copy h2,
.legal-page h1,
.legal-page h2,
.error-card h1 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--forest-950);
  letter-spacing: -0.035em;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.hero-copy h1 {
  max-width: 690px;
  margin: 18px 0 24px;
  font-size: clamp(3.1rem, 5.8vw, 5.45rem);
  font-weight: 500;
}

.hero-copy h1 em {
  color: var(--forest-700);
  font-style: italic;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--forest-700);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 24px;
  height: 2px;
  background: var(--gold-500);
}

.hero-lede {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
}

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

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

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

.button-primary {
  background: var(--forest-900);
  color: var(--white);
  box-shadow: 0 12px 26px rgba(18, 55, 42, 0.19);
}

.button-primary:hover {
  background: var(--forest-800);
}

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

.button-secondary:hover {
  border-color: #b8c6be;
  background: var(--mint-50);
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 30px 0 0;
  padding: 0;
  color: #516159;
  font-size: 0.86rem;
  font-weight: 700;
  list-style: none;
}

.trust-list li::before {
  content: "✓";
  margin-right: 7px;
  color: var(--forest-700);
  font-weight: 900;
}

.hero-visual {
  min-width: 0;
}

.preview-window {
  position: relative;
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(18, 55, 42, 0.11);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  transform: rotate(1.1deg);
}

.preview-window::after {
  position: absolute;
  z-index: -1;
  right: -32px;
  bottom: -34px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(210, 168, 87, 0.18);
  content: "";
}

.preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 5px 13px;
  color: var(--forest-900);
  font-size: 0.82rem;
  font-weight: 800;
}

.preview-step {
  color: var(--muted);
  font-weight: 650;
}

.board-preview {
  width: 100%;
  height: auto;
  border-radius: 14px;
  filter: drop-shadow(0 14px 18px rgba(7, 17, 13, 0.34));
}

.board-stage {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-radius: 17px;
  background: transparent;
}

.coach-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  width: calc(100% - 34px);
  margin: -48px auto 4px;
  padding: 18px 20px;
  border: 1px solid rgba(18, 55, 42, 0.1);
  border-radius: 17px;
  background: rgba(255, 253, 248, 0.97);
  box-shadow: 0 15px 35px rgba(11, 36, 27, 0.2);
}

.coach-card p {
  margin: 2px 0 8px;
  color: #35443d;
  font-size: 0.9rem;
  line-height: 1.45;
}

.coach-mark {
  display: grid;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--forest-900);
  color: var(--white);
  font-family: Georgia, serif;
  font-weight: 700;
  place-items: center;
}

.coach-mark.opening-roll {
  width: 46px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.74rem;
  letter-spacing: -0.03em;
}

.coach-card .coach-label {
  margin: 0;
  color: var(--forest-700);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.concept-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.concept-row span {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--mint-100);
  color: var(--forest-800);
  font-size: 0.68rem;
  font-weight: 800;
}

.notation {
  color: var(--forest-900);
  font-weight: 850;
  white-space: nowrap;
}

.preview-disclosure {
  max-width: 510px;
  margin: 15px auto 0;
  color: #6a746f;
  font-size: 0.73rem;
  line-height: 1.45;
  text-align: center;
}

.proof-strip {
  border-block: 1px solid var(--line);
  background: var(--mint-50);
}

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

.proof-grid div {
  padding: 30px clamp(22px, 4vw, 54px);
}

.proof-grid div + div {
  border-left: 1px solid var(--line);
}

.proof-grid strong,
.proof-grid span {
  display: block;
}

.proof-grid strong {
  color: var(--forest-900);
  font-family: Georgia, serif;
  font-size: 1.05rem;
}

.proof-grid span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.section {
  padding-block: 112px;
}

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

.section-heading .eyebrow {
  justify-content: center;
}

.section-heading h2,
.values-copy h2 {
  margin: 16px 0;
  font-size: clamp(2.35rem, 4vw, 3.65rem);
  font-weight: 500;
}

.section-heading > p:last-child,
.values-copy > p {
  color: var(--muted);
}

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

.steps,
.learner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li,
.learner-grid article {
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.steps h3,
.learner-grid h3 {
  margin: 17px 0 8px;
  color: var(--forest-900);
  font-size: 1.12rem;
  line-height: 1.3;
}

.steps p,
.learner-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.step-number,
.learner-icon {
  display: grid;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--mint-100);
  color: var(--forest-800);
  font-size: 0.75rem;
  font-weight: 900;
  place-items: center;
}

.section-tint {
  background: var(--cream);
}

.opening-example {
  padding-top: 24px;
}

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

.analysis-card {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 12px 32px rgba(18, 55, 42, 0.07);
}

.analysis-card-lead {
  border-color: rgba(210, 168, 87, 0.72);
  background: linear-gradient(145deg, #fffdf8, #f7f0df);
}

.analysis-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  color: var(--forest-700);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.analysis-meta strong {
  color: var(--walnut-800);
  font-variant-numeric: tabular-nums;
}

.analysis-card h3 {
  margin: 16px 0 9px;
  color: var(--forest-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.48rem;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.analysis-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.analysis-source {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 24px;
  margin-top: 22px;
  padding: 22px 24px;
  border-left: 4px solid var(--gold-500);
  border-radius: 0 14px 14px 0;
  background: var(--mint-50);
}

.analysis-source > strong {
  color: var(--forest-900);
  white-space: nowrap;
}

.analysis-source p,
.analysis-source .text-link {
  margin: 0;
  font-size: 0.79rem;
}

.analysis-source p {
  color: var(--muted);
}

.analysis-source .text-link {
  white-space: nowrap;
}

.learner-grid article {
  border-color: rgba(112, 69, 38, 0.13);
  box-shadow: 0 10px 30px rgba(112, 69, 38, 0.05);
}

.learner-icon {
  border-radius: 50%;
  background: #eee3d5;
  color: var(--walnut-800);
}

.values {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(50px, 8vw, 100px);
}

.text-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--forest-900);
  font-weight: 850;
  text-underline-offset: 4px;
}

.value-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.value-list li {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.value-list li:first-child {
  border-top: 1px solid var(--line);
}

.value-list strong {
  color: var(--forest-900);
}

.value-list span {
  color: var(--muted);
  font-size: 0.91rem;
}

footer {
  border-top: 1px solid var(--line);
  background: var(--cream);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding-block: 35px;
}

.footer-inner > * {
  min-width: 0;
}

.footer-brand div,
.footer-brand strong,
.footer-brand span {
  display: block;
}

.footer-brand span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  color: var(--forest-900);
  font-size: 0.86rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.legal-line {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: #737d77;
  font-size: 0.72rem;
}

.legal-page {
  max-width: 800px;
  padding-block: 76px 100px;
}

.legal-page h1 {
  margin: 16px 0 10px;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  font-weight: 500;
}

.legal-updated {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.84rem;
}

.legal-intro {
  margin: 0 0 48px;
  padding: 22px 24px;
  border-left: 4px solid var(--gold-500);
  border-radius: 0 12px 12px 0;
  background: var(--mint-50);
  color: #37473f;
  font-size: 1.05rem;
}

.legal-page section {
  margin-top: 40px;
}

.legal-page h2 {
  margin: 0 0 10px;
  font-size: 1.62rem;
  font-weight: 500;
}

.legal-page section p,
.legal-page section ul {
  color: var(--muted);
}

.legal-home {
  margin-top: 38px;
}

.error-body {
  display: grid;
  min-height: 100vh;
  padding: 24px;
  background: var(--cream);
  place-items: center;
}

.error-card {
  width: min(100%, 600px);
  padding: clamp(40px, 8vw, 72px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}

.error-card > img {
  margin-inline: auto;
}

.error-code {
  margin: 24px 0 2px;
  color: var(--walnut-600);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.error-card h1 {
  margin: 0 0 12px;
  font-size: clamp(2.1rem, 6vw, 3.5rem);
  font-weight: 500;
}

.error-card > p:not(.error-code) {
  margin: 0 auto 28px;
  color: var(--muted);
}

@media (max-width: 960px) {
  .header-inner nav > a:not(.nav-status) {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 66px 78px;
  }

  .hero-copy {
    max-width: 730px;
  }

  .hero-visual {
    max-width: 700px;
    margin-inline: auto;
  }

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

  .proof-grid div {
    padding-inline: 22px;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(calc(100% - 30px), var(--shell));
  }

  .header-inner {
    min-height: 68px;
  }

  .brand span {
    font-size: 0.9rem;
  }

  .header-inner nav > a:not(.nav-status) {
    display: none;
  }

  .hero {
    gap: 48px;
    padding-block: 54px 64px;
  }

  .hero-copy h1 {
    font-size: clamp(2.75rem, 14vw, 4.3rem);
  }

  .preview-window {
    padding: 9px;
    border-radius: 20px;
    transform: none;
  }

  .coach-card {
    width: calc(100% - 18px);
    margin-top: -28px;
    padding: 14px;
  }

  .proof-grid,
  .steps,
  .learner-grid,
  .analysis-grid {
    grid-template-columns: 1fr;
  }

  .analysis-source {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .analysis-source .text-link {
    white-space: normal;
  }

  .proof-grid div {
    padding: 22px 0;
  }

  .proof-grid div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section {
    padding-block: 78px;
  }

  .section-heading {
    margin-bottom: 34px;
    text-align: left;
  }

  .section-heading .eyebrow {
    justify-content: flex-start;
  }

  .steps li,
  .learner-grid article {
    padding: 24px;
  }

  .value-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .legal-page {
    padding-block: 54px 76px;
  }
}

@media (max-width: 430px) {
  .header-inner nav {
    gap: 0;
  }

  .language-menu summary {
    min-width: 68px;
    padding-inline: 10px;
    font-size: 0.78rem;
  }

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

  .trust-list {
    display: grid;
  }

  .preview-topbar {
    font-size: 0.72rem;
  }

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

  .language-options {
    grid-template-columns: 1fr 1fr;
    width: min(300px, calc(100vw - 24px));
  }

  .coach-mark {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --muted: #3d4742;
    --line: #aebbb4;
  }

  .button,
  .steps li,
  .learner-grid article,
  .preview-window {
    border-width: 2px;
  }
}
