:root {
  color-scheme: light;
  --ink: #173b35;
  --muted: #60766c;
  --line: #d7e1d7;
  --paper: #fffefa;
  --green: #176452;
  --green-soft: #e6f1e9;
  --coral: #d56a49;
  --warm: #fbf0e4;
}

* { box-sizing: border-box; }
body { margin: 0; background: #f2f5ee; color: var(--ink); font: 16px/1.6 "Instrument Sans", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-underline-offset: 3px; }
button, input { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid #d56a49; outline-offset: 3px; }

.journey-shell { max-width: 1040px; margin: 0 auto; padding: 0 32px 38px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 76px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 750; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--green); color: white; font-size: 20px; }
.brand small { display: block; color: var(--muted); font-size: 12px; font-weight: 550; }
.quiet-link { color: var(--muted); font-size: 14px; text-decoration: none; }

.step-track { display: flex; align-items: center; gap: 12px; padding: 22px 0 8px; color: #87968c; font-size: 13px; }
.step { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.step b { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #bac9be; border-radius: 50%; font-size: 11px; font-weight: 650; }
.step.is-active { color: var(--green); font-weight: 700; }
.step.is-active b, .step.is-complete b { border-color: var(--green); background: var(--green); color: white; }
.step-line { width: 42px; height: 1px; background: var(--line); }
.intro-block { max-width: 720px; padding: 28px 0 22px; }
.eyebrow, .section-kicker { margin: 0 0 8px; color: var(--coral); font-size: 13px; font-weight: 700; }
.eyebrow { display: flex; align-items: center; gap: 8px; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: 36px; line-height: 1.18; font-weight: 760; }
.intro-copy { max-width: 650px; margin: 0; color: var(--muted); font-size: 16px; }

.profile-form { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); column-gap: 50px; align-items: start; }
.profile-section { min-width: 0; padding: 22px 0 28px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; font-size: 21px; line-height: 1.35; }
.section-kicker { margin-bottom: 3px; font-size: 12px; letter-spacing: .04em; }
.section-mark { color: #a8b8ac; font-size: 12px; font-weight: 700; }
.field-label { margin: 0 0 9px; color: var(--ink); font-size: 14px; font-weight: 670; }
.field-label span { margin-left: 6px; color: var(--muted); font-size: 12px; font-weight: 450; }
.age-entry { display: grid; grid-template-columns: auto minmax(112px, 154px) 1fr; gap: 14px; align-items: center; }
.age-entry .field-label { margin: 0; }
.month-input-wrap { display: flex; align-items: center; gap: 8px; }
.month-input-wrap input, .other-ability-label + input { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #bdcbbf; border-radius: 7px; background: var(--paper); color: var(--ink); padding: 9px 11px; }
.month-input-wrap span { color: var(--muted); font-size: 14px; white-space: nowrap; }
.field-hint { margin: 0; color: var(--muted); font-size: 13px; }
.quick-picks { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 24px; }
.quick-pick, .choice { min-height: 38px; border: 1px solid #d0dbd1; border-radius: 7px; background: transparent; padding: 7px 11px; color: #536b60; font-size: 13px; cursor: pointer; }
.quick-pick.is-selected, .choice.is-selected { border-color: var(--green); background: var(--green-soft); color: var(--green); font-weight: 680; }
.ability-block { padding-top: 16px; border-top: 1px solid #e3e9e2; }
.choice-list { display: flex; flex-wrap: wrap; gap: 7px; }
.other-ability-label { margin-top: 18px; }
.other-ability-label + input { display: block; }
.phone-hint { margin-top: 6px; }
.home-field + .home-field { margin-top: 24px; }
.room-list { max-width: 440px; }
.stairs-field { padding-top: 18px; border-top: 1px solid #e3e9e2; }
.contact-section { grid-column: 1 / -1; }
.contact-section #phone { display: block; width: min(100%, 380px); min-height: 46px; border: 1px solid #bdcbbf; border-radius: 7px; background: var(--paper); color: var(--ink); padding: 9px 11px; font: inherit; }
.contact-section .phone-hint { margin-top: 7px; }
.form-feedback { grid-column: 1 / -1; min-height: 0; color: #a54632; font-size: 14px; }
.primary-action { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 56px; border: 0; border-radius: 7px; background: var(--green); padding: 0 20px; color: white; font-weight: 720; cursor: pointer; }
.primary-action:hover { background: #105243; }
.primary-action span:last-child { color: #f3c37c; font-size: 22px; }
.form-footnote { grid-column: 1 / -1; margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.site-footer { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); margin-top: 34px; padding-top: 14px; color: #798a7f; font-size: 12px; }

@media (max-width: 760px) {
  .journey-shell { padding: 0 18px 28px; }
  .site-header { min-height: 64px; }
  .step-track { gap: 8px; padding-top: 18px; font-size: 12px; }
  .step-line { width: min(6vw, 34px); }
  .intro-block { padding: 22px 0 16px; }
  h1 { font-size: 31px; }
  .profile-form { grid-template-columns: 1fr; column-gap: 0; }
  .profile-section { padding: 19px 0 23px; }
  .age-entry { grid-template-columns: auto 130px; justify-content: start; }
  .field-hint { grid-column: 1 / -1; }
  .primary-action, .form-feedback, .form-footnote { grid-column: 1; }
}

@media (max-width: 400px) {
  .step-track { gap: 6px; font-size: 11px; }
  .step { gap: 4px; }
  .step b { width: 21px; height: 21px; }
  .step-line { width: 12px; }
  .age-entry { grid-template-columns: 1fr; gap: 7px; }
  .month-input-wrap { max-width: 190px; }
}
