@font-face {
  font-family: 'Arimo';
  src: url('assets/fonts/arimo-latin.woff2?v=20260914') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Oswald';
  src: url('assets/fonts/oswald-latin.woff2?v=20260914') format('woff2');
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
}

:root {
  --forest: #212e21;
  --forest-deep: #172119;
  --cream: #e6dcc8;
  --paper: #f4f3e8;
  --lime: #ebfc72;
  --ink: #172119;
  --muted: #667064;
  --line: rgba(33, 46, 33, 0.18);
  --display: 'Oswald', 'Arial Narrow', sans-serif;
  --body: 'Arimo', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(235, 252, 114, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(235, 252, 114, 0.022) 1px, transparent 1px),
    var(--forest-deep);
  background-size: 54px 54px;
  color: var(--paper);
  font: 16px/1.55 var(--body);
}

button, input, textarea, select { font: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
h1, h2, h3, p, fieldset, legend { margin: 0; }
::selection { background: var(--lime); color: var(--forest); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--lime);
  color: var(--forest);
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

.site-header,
.site-footer {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  min-height: 86px;
  border-bottom: 1px solid rgba(244, 243, 232, 0.14);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: var(--cream);
  font: 600 19px/1 var(--display);
  letter-spacing: 0.04em;
  text-decoration: none;
}
.wordmark span {
  position: relative;
  color: var(--paper);
  font-size: 25px;
}
.wordmark span::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -4px;
  bottom: -5px;
  height: 4px;
  border-radius: 99px;
  background: var(--lime);
  transform: rotate(-2deg);
}

.preview-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.preview-label span {
  width: 8px;
  height: 8px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(235, 252, 114, 0.09);
}

.page-shell {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  min-height: calc(100vh - 86px);
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(560px, 1.22fr);
  gap: clamp(38px, 6vw, 94px);
  align-items: start;
  padding: clamp(52px, 7vw, 100px) 0 70px;
}

.intro-panel {
  position: sticky;
  top: 48px;
  min-height: 690px;
  display: flex;
  flex-direction: column;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--lime);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  width: 27px;
  height: 2px;
  background: currentColor;
}
.eyebrow.dark { color: var(--forest); }

.intro-panel h1 {
  margin: 28px 0;
  color: var(--paper);
  font: 700 clamp(76px, 7.5vw, 126px)/0.87 var(--display);
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.intro-panel h1 span {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--lime);
}
.intro-text {
  max-width: 520px;
  color: var(--cream);
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.55;
}

.intro-notes {
  display: flex;
  gap: clamp(34px, 5vw, 72px);
  margin-top: auto;
  padding: 44px 0 34px;
  border-top: 1px solid rgba(244, 243, 232, 0.14);
}
.intro-notes div { display: flex; align-items: center; gap: 12px; }
.intro-notes strong { color: var(--lime); font: 600 38px/1 var(--display); }
.intro-notes span {
  color: var(--cream);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.45;
  text-transform: uppercase;
}
.trust-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 460px;
  color: rgba(230, 220, 200, 0.72);
  font-size: 12px;
}
.trust-note span {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(235, 252, 114, 0.45);
  border-radius: 50%;
  color: var(--lime);
  font-size: 11px;
}

.form-card {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  border-top: 8px solid var(--lime);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.25);
}
.form-card::after {
  content: 'MJW';
  position: absolute;
  right: -30px;
  bottom: -64px;
  color: rgba(33, 46, 33, 0.025);
  font: 700 220px/1 var(--display);
  pointer-events: none;
}

.form-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 38px 42px 30px;
}
.form-heading h2 {
  margin-top: 13px;
  font: 600 clamp(35px, 4.2vw, 58px)/1 var(--display);
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
.step-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.step-count strong { color: var(--forest); }

.stepper {
  display: flex;
  padding: 0 32px 31px;
  border-bottom: 1px solid var(--line);
}
.step {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 0;
  border: 0;
  background: transparent;
  color: #879084;
  cursor: pointer;
}
.step::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 11px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: #c8ccbf;
}
.step:first-child::before { display: none; }
.step-dot {
  width: 16px;
  height: 16px;
  background: var(--paper);
  border: 2px solid #adb3a8;
  border-radius: 50%;
}
.step-name {
  max-width: 98px;
  overflow: hidden;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.step.is-done,
.step.is-current { color: var(--forest); }
.step.is-done::before,
.step.is-current::before { background: var(--lime); }
.step.is-done .step-dot,
.step.is-current .step-dot { background: var(--lime); border-color: var(--forest); }
.step.is-done .step-dot::after {
  content: '';
  display: block;
  width: 6px;
  height: 3px;
  margin: 3px 0 0 3px;
  border: solid var(--forest);
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}
.step.is-current .step-dot { box-shadow: 0 0 0 5px rgba(235, 252, 114, 0.55); }

#coaching-form { position: relative; z-index: 1; }
.form-step { padding: 38px 42px 4px; animation: step-in 0.36s ease both; }
.form-step[hidden] { display: none; }
@keyframes step-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.section-heading {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 30px;
}
.section-heading > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--forest);
  color: var(--lime);
  border-radius: 50%;
  font: 600 17px/1 var(--display);
}
.section-heading h3 {
  font: 600 27px/1.15 var(--display);
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.section-heading p { margin-top: 5px; color: var(--muted); font-size: 13px; }

.field { display: block; margin: 0 0 26px; padding: 0; border: 0; }
.field > span,
.field legend {
  display: block;
  color: var(--forest);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}
.field b { color: #697a12; }
.field small { display: block; margin: 4px 0 11px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.field input[type='text'],
.field input[type='number'],
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fffef9;
  color: var(--forest);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field input[type='text'],
.field input[type='number'],
.field select { min-height: 54px; padding: 0 15px; }
.field textarea { min-height: 105px; padding: 14px 15px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #9da397; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 4px rgba(235, 252, 114, 0.5);
  background: #fff;
}
.field input:invalid.is-touched,
.field textarea:invalid.is-touched { border-color: #a64232; }

.measurement-grid,
.habit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.input-with-unit,
.input-with-select { display: flex; margin-top: 11px; }
.input-with-unit input,
.input-with-select input { border-radius: 2px 0 0 2px !important; }
.input-with-unit > span,
.input-with-select select {
  flex: 0 0 auto;
  min-width: 62px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 2px 2px 0;
  background: var(--cream);
  color: var(--forest);
  font-size: 13px;
  font-weight: 700;
}
.input-with-select select { width: 72px; padding: 0 8px; cursor: pointer; }

.choice-field small { margin-bottom: 12px; }
.choice-grid { display: grid; gap: 9px; margin-top: 12px; }
.choice-grid.two { grid-template-columns: repeat(2, 1fr); }
.choice-grid.four { grid-template-columns: repeat(4, 1fr); }
.choice-grid.five { grid-template-columns: repeat(5, 1fr); }
.goal-grid,
.support-grid { grid-template-columns: repeat(2, 1fr); }
.choice-grid label { position: relative; cursor: pointer; }
.choice-grid input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice-grid label span {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fffef9;
  color: var(--forest);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.choice-grid label:hover span { transform: translateY(-2px); border-color: rgba(33, 46, 33, 0.55); }
.choice-grid input:focus-visible + span { outline: 3px solid var(--lime); outline-offset: 2px; }
.choice-grid input:checked + span { border-color: var(--forest); background: var(--forest); color: var(--lime); }
.choice-grid.five label span { min-height: 68px; }
.compact-choice { margin-top: 0; }
.conditional { padding: 16px; background: rgba(230, 220, 200, 0.42); border-left: 3px solid var(--lime); }
.conditional[hidden] { display: none; }
.conditional input { margin-top: 10px; }
.field-error,
.form-error { min-height: 0; color: #913928; font-size: 12px; font-weight: 700; }
.form-error { padding: 0 42px; }

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 28px 42px 32px;
  border-top: 1px solid var(--line);
}
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 22px;
  border: 1px solid var(--forest);
  border-radius: 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}
.button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 9px 20px rgba(33, 46, 33, 0.14); }
.button:disabled { opacity: 0.35; cursor: not-allowed; }
.button.secondary { background: transparent; color: var(--forest); }
.button.primary { min-width: 150px; background: var(--lime); color: var(--forest); }
.button.primary span { font-size: 18px; }
.concept-note { padding: 0 42px 34px; color: var(--muted); font-size: 10px; text-align: center; }

.site-footer {
  padding: 32px 0 42px;
  border-top: 1px solid rgba(244, 243, 232, 0.14);
  color: var(--cream);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.site-footer div { display: flex; gap: 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--lime); }

dialog {
  width: min(620px, calc(100% - 28px));
  max-height: min(820px, calc(100dvh - 28px));
  overflow: auto;
  padding: 0;
  border: 0;
  border-top: 7px solid var(--lime);
  border-radius: 3px;
  background: var(--paper);
  color: var(--forest);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.52);
}
dialog::backdrop { background: rgba(10, 16, 11, 0.8); backdrop-filter: blur(6px); }
.dialog-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 32px 24px;
  border-bottom: 1px solid var(--line);
}
.dialog-top h2 { margin-top: 8px; font: 600 38px/1 var(--display); text-transform: uppercase; }
.dialog-top > button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--forest);
  cursor: pointer;
}
.review-summary { display: grid; gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.review-row { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 14px 32px; background: var(--paper); }
.review-row dt { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.review-row dd { margin: 0; font-size: 13px; white-space: pre-wrap; }
.preview-message { margin: 24px 32px; padding: 18px; background: var(--cream); border-left: 4px solid var(--lime); }
.preview-message strong { font: 600 18px/1 var(--display); text-transform: uppercase; }
.preview-message p { margin-top: 6px; color: var(--muted); font-size: 12px; }
.dialog-button { margin: 0 32px 30px; width: calc(100% - 64px); }

@media (max-width: 1000px) {
  .page-shell { grid-template-columns: minmax(260px, 0.66fr) minmax(500px, 1.34fr); gap: 34px; }
  .intro-panel h1 { font-size: 75px; }
  .intro-notes { gap: 26px; }
  .choice-grid.five { grid-template-columns: repeat(3, 1fr); }
  .choice-grid.four { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
  .site-header,
  .site-footer,
  .page-shell { width: min(100% - 30px, 660px); }
  .site-header { min-height: 72px; }
  .page-shell { min-height: auto; grid-template-columns: 1fr; gap: 34px; padding: 42px 0 54px; }
  .intro-panel { position: static; min-height: 0; }
  .intro-panel h1 { margin: 23px 0 20px; font-size: clamp(64px, 17vw, 94px); }
  .intro-text { max-width: 590px; font-size: 17px; }
  .intro-notes { margin-top: 32px; padding: 28px 0 22px; }
  .trust-note { max-width: 570px; }
  .form-card { margin: 0 -2px; }
  .form-heading { padding: 30px 24px 24px; }
  .form-heading h2 { font-size: clamp(32px, 8vw, 44px); }
  .step-count { font-size: 10px; }
  .stepper { padding: 0 15px 26px; }
  .step-name { font-size: 8px; max-width: 78px; }
  .form-step { padding: 30px 24px 3px; }
  .section-heading { grid-template-columns: 40px 1fr; gap: 13px; margin-bottom: 26px; }
  .section-heading > span { width: 40px; height: 40px; font-size: 15px; }
  .section-heading h3 { font-size: 24px; }
  .form-actions { padding: 24px 24px 28px; }
  .concept-note { padding: 0 24px 28px; }
  .form-error { padding: 0 24px; }
}

@media (max-width: 520px) {
  body { background-size: 38px 38px; }
  .preview-label { font-size: 9px; letter-spacing: 0.08em; }
  .wordmark { font-size: 15px; }
  .wordmark span { font-size: 20px; }
  .intro-panel h1 { letter-spacing: -0.035em; }
  .intro-notes { justify-content: space-between; gap: 12px; }
  .intro-notes strong { font-size: 32px; }
  .intro-notes span { font-size: 8px; }
  .form-heading { align-items: flex-start; }
  .form-heading h2 { max-width: 280px; }
  .step-count { padding-top: 4px; }
  .stepper { padding-left: 9px; padding-right: 9px; }
  .step-name { max-width: 66px; white-space: normal; line-height: 1.2; }
  .measurement-grid,
  .habit-grid,
  .goal-grid,
  .support-grid { grid-template-columns: 1fr; gap: 0; }
  .habit-grid .field { margin-bottom: 22px; }
  .choice-grid.five { grid-template-columns: repeat(2, 1fr); }
  .choice-grid.four { grid-template-columns: repeat(2, 1fr); }
  .choice-grid.five label span { min-height: 58px; }
  .form-actions .button { flex: 1; min-width: 0; padding: 0 14px; }
  .review-row { grid-template-columns: 1fr; gap: 3px; padding: 13px 22px; }
  .dialog-top { padding: 26px 22px 22px; }
  .preview-message { margin: 20px 22px; }
  .dialog-button { margin: 0 22px 24px; width: calc(100% - 44px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
