@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/static/fonts/poppins-latin-300.woff2") format("woff2");
}
@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/poppins-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/poppins-latin-600.woff2") format("woff2");
}

:root {
  color-scheme: light;
  font-family: Poppins, "Segoe UI", sans-serif;
  font-synthesis: none;
  --msk-blue: #577382;
  --msk-red: #940f05;
  --msk-graphite: #3c3c3b;
  --msk-white: #fff;
  --msk-background: #f9f9fb;
  --msk-surface: #f2f3f5;
  --msk-line: #e0e4e7;
  --msk-muted: #626970;
  --msk-red-light: #fcf3f1;
  --msk-blue-light: #edf2f5;
  color: var(--msk-graphite);
  background: var(--msk-background);
}
* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; display: flex; flex-direction: column; }
a { color: var(--msk-red); text-underline-offset: 4px; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--msk-blue); outline-offset: 4px; }
.skip-link { position: absolute; z-index: 10; top: 10px; left: 16px; padding: 12px 18px; color: var(--msk-red); background: #fff; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { color: #fff; background: var(--msk-blue); }
.header-inner, .footer-inner { width: min(100%, 1152px); margin: 0 auto; padding: 24px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo-link { display: inline-flex; flex-shrink: 0; border-radius: 3px; }
.logo-link img { display: block; width: 215px; height: auto; }
.logo-link:focus-visible { outline-color: #fff; }
.header-caption { margin: 0; font-size: .82rem; font-weight: 300; letter-spacing: .015em; }
.page-shell { flex: 1; width: min(100%, 1088px); margin: 0 auto; padding: 56px 32px; display: grid; align-content: center; }
.site-footer { background: #fff; border-top: 1px solid var(--msk-line); }
.footer-inner { padding-top: 22px; padding-bottom: 22px; color: var(--msk-muted); font-size: .75rem; }
.footer-inner p { margin: 0; }
.footer-inner a { color: inherit; }
.footer-inner a:hover { color: var(--msk-red); }
.footer-inner nav { display: flex; gap: 24px; }

.card, .step-card, .trainer-card { background: #fff; border: 1px solid var(--msk-line); border-radius: 16px; box-shadow: 0 8px 32px rgb(60 60 59 / 4%); }
.card { padding: clamp(28px, 5vw, 56px); }
.eyebrow { margin: 0 0 16px; color: var(--msk-red); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
h1 { margin: 0; color: var(--msk-blue); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 300; line-height: 1.18; letter-spacing: -.035em; }
.lead { margin: 24px 0 16px; font-size: clamp(1.05rem, 2.4vw, 1.25rem); line-height: 1.65; }
.hint { margin: 0 0 28px; color: var(--msk-muted); font-size: .9rem; line-height: 1.8; }
.button, .text-link { display: inline-flex; align-items: center; justify-content: center; gap: 18px; font-weight: 600; text-decoration: none; }
.button { min-height: 52px; padding: 14px 24px; color: #fff; background: var(--msk-red); border: 1px solid transparent; border-radius: 7px; font-size: .9rem; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.button:hover { color: #fff; background: #760c04; }
.button > span[aria-hidden] { font-size: 1.3rem; line-height: 1; }
.text-link { color: var(--msk-red); }

.hero { overflow: hidden; padding-bottom: 0; }
.hero-main { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 38px; }
.hero h1 { font-size: clamp(2rem, 4.1vw, 3rem); font-weight: 600; }
.hero h1 span { color: var(--msk-red); font-weight: 300; }
.hero .lead { max-width: 30ch; }
.hero-note { margin: 14px 0 0; color: var(--msk-muted); font-size: .7rem; }
.hero-visual { align-self: center; padding-top: 22px; text-align: center; }
/* Keep the original artwork proportions. Only the width is scaled; the height
   follows the original file. Contain prevents stretching if a layout adds limits. */
.maxerl-image { display: block; max-width: 100%; height: auto; object-fit: contain; }
.maxerl-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: clamp(10px, 2vw, 22px); }
.hero-maxerl { width: 100%; }
.hero-visual p { margin: 26px 0 0; color: var(--msk-blue); font-size: .95rem; font-weight: 300; line-height: 1.8; }
.intro-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 40px 0 0; padding: 26px 0 28px; list-style: none; border-top: 1px solid var(--msk-line); }
.intro-steps li { display: flex; align-items: flex-start; gap: 12px; }
.intro-number { padding-top: 2px; color: var(--msk-red); font-size: .8rem; font-weight: 600; }
.intro-steps strong { display: block; color: var(--msk-blue); font-size: .77rem; font-weight: 600; }
.intro-steps div > span { display: block; margin-top: 4px; color: var(--msk-muted); font-size: .68rem; line-height: 1.6; }

.matcher { width: min(100%, 780px); margin: 0 auto; }
.matcher-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 0 24px; }
.brand-link { color: var(--msk-blue); font-size: .9rem; font-weight: 600; text-decoration: none; }
.matcher-navigation { display: flex; flex-wrap: wrap; gap: 10px; }
.matcher-navigation button { min-height: 42px; padding: 9px 13px; color: var(--msk-blue); background: #fff; border: 1px solid var(--msk-line); border-radius: 6px; font-size: .75rem; font-weight: 600; cursor: pointer; }
.matcher-navigation button:hover { background: var(--msk-blue-light); }
.matcher-navigation button:first-child { color: var(--msk-red); border-color: #e8c7c2; }
.progress { flex-shrink: 0; margin: 0; color: var(--msk-muted); font-size: .75rem; }
.step-indicator { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.step-indicator li { display: flex; align-items: center; gap: 8px; padding: 10px 0; color: var(--msk-muted); border-top: 2px solid var(--msk-line); font-size: .72rem; }
.step-number { display: inline-flex; justify-content: center; align-items: center; width: 22px; height: 22px; color: var(--msk-muted); background: var(--msk-surface); border-radius: 50%; font-size: .65rem; }
.step-indicator .is-current { color: var(--msk-red); border-top-color: var(--msk-red); font-weight: 600; }
.is-current .step-number { color: #fff; background: var(--msk-red); }
.step-indicator .is-complete { color: var(--msk-blue); border-top-color: var(--msk-blue); }
.is-complete .step-number { color: #fff; background: var(--msk-blue); }
.step-card { padding: clamp(24px, 4vw, 44px); }
.step-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.step-heading > div { max-width: 550px; }
.step-heading .eyebrow { margin-bottom: 12px; }
.step-card h1 { font-size: clamp(1.55rem, 3.4vw, 2.2rem); font-weight: 300; line-height: 1.35; letter-spacing: -.025em; }
.step-maxerl { flex: 0 0 auto; width: 88px; aspect-ratio: 559 / 474; }
/* The 10 mm original supplies the exact silhouette for every color. Only its
   fill color changes; the artwork is scaled uniformly at its native 130:142. */
.maxerl-walking {
  aspect-ratio: 130 / 142;
  -webkit-mask: url("/static/images/maxerl-walking-original.png") center / contain no-repeat;
  mask: url("/static/images/maxerl-walking-original.png") center / contain no-repeat;
}
.step-maxerl-walking { width: 72px; }
.maxerl-blue { background-color: var(--msk-blue); }
.maxerl-grey { background-color: var(--msk-graphite); }
.maxerl-red { background-color: var(--msk-red); }
.choice-list { display: grid; gap: 12px; margin: 30px 0; }
.choice-card { position: relative; width: 100%; min-height: 66px; padding: 18px 55px 18px 20px; text-align: left; color: var(--msk-graphite); background: #fff; border: 1.5px solid var(--msk-line); border-radius: 8px; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.choice-card::after { content: ""; position: absolute; top: 50%; right: 20px; width: 20px; height: 20px; margin-top: -10px; border: 1.5px solid #c4cbd0; border-radius: 50%; }
.choice-card span { display: block; font-size: .95rem; font-weight: 400; }
.choice-card small { display: block; margin-top: 5px; color: var(--msk-muted); font-size: .76rem; line-height: 1.6; }
.choice-card:hover { background: var(--msk-background); border-color: var(--msk-blue); }
.choice-card.is-selected { color: var(--msk-red); background: var(--msk-red-light); border-color: var(--msk-red); box-shadow: inset 0 0 0 .5px var(--msk-red); }
.choice-card.is-selected span { font-weight: 600; }
.choice-card.is-selected::after { content: "✓"; color: #fff; background: var(--msk-red); border-color: var(--msk-red); text-align: center; font-size: 12px; line-height: 18px; }
.step-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: center; padding-top: 8px; }
.step-actions .button { width: 100%; }
.button:disabled { cursor: not-allowed; color: #fff; background: #9c7773; }
.button-secondary { color: var(--msk-blue); background: var(--msk-blue-light); border-color: var(--msk-blue-light); }
.button-secondary:hover { color: var(--msk-blue); background: #e0e8ed; border-color: #e0e8ed; }

.selection-summary { display: grid; gap: 0; margin: 28px 0; border-top: 1px solid var(--msk-line); font-size: .85rem; }
.selection-summary div { display: grid; grid-template-columns: minmax(100px, .8fr) 1.2fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--msk-line); }
.selection-summary dt { color: var(--msk-muted); }
.selection-summary dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.result-placeholder { margin: 24px 0; padding: 18px; color: var(--msk-blue); background: var(--msk-blue-light); border-radius: 8px; font-size: .9rem; line-height: 1.8; }
.results-heading { margin: 32px 0 20px; color: var(--msk-blue); font-size: clamp(1.15rem, 3vw, 1.4rem); font-weight: 400; line-height: 1.5; }
.method-list { display: grid; gap: 20px; }
.method-card { padding: 24px; border: 1px solid var(--msk-line); border-radius: 10px; border-top: 3px solid var(--msk-blue); }
.method-card h2 { margin: 0 0 10px; color: var(--msk-blue); font-size: 1.2rem; font-weight: 600; line-height: 1.5; }
.method-card p { margin: 12px 0; font-size: .86rem; line-height: 1.85; }
.method-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.method-facts span { padding: 5px 10px; color: var(--msk-blue); background: var(--msk-blue-light); border-radius: 5px; font-size: .72rem; }
.method-card .method-setting { color: var(--msk-muted); font-size: .78rem; }
.method-card details { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--msk-line); }
.method-card summary { color: var(--msk-red); font-size: .85rem; font-weight: 600; cursor: pointer; }
.method-card details section { margin-top: 24px; }
.method-card details h3 { margin: 0 0 6px; color: var(--msk-blue); font-size: .9rem; font-weight: 600; }
.method-card details ol, .method-card details ul { margin: 8px 0; padding-left: 22px; font-size: .85rem; line-height: 1.9; }
.method-tools { color: var(--msk-blue); }

.trainer-card { width: 100%; padding: clamp(28px, 6vw, 56px); text-align: center; }
.trainer-card h1 { font-size: clamp(2rem, 5vw, 3rem); }
.trainer-steps { display: inline-grid; gap: 10px; margin: 24px auto 32px; text-align: left; font-size: clamp(1rem, 3vw, 1.3rem); line-height: 1.6; }
.qr-code { display: block; width: min(72vw, 480px); height: auto; margin: 0 auto 20px; }
.access-url { margin: 0; overflow-wrap: anywhere; font-size: clamp(1rem, 3vw, 1.3rem); font-weight: 600; }
.address-choice { max-width: 580px; margin: 0 auto; text-align: left; }
.address-list { display: grid; gap: 12px; margin-top: 20px; }

@media (max-width: 760px) {
  .header-inner { padding: 20px 24px; }
  .header-caption { max-width: 25ch; text-align: right; font-size: .7rem; }
  .logo-link img { width: 180px; }
  .page-shell { padding: 36px 20px; }
  .hero-main { grid-template-columns: 1fr; gap: 12px; }
  .hero h1 { font-size: clamp(2rem, 6vw, 3rem); }
  .hero-copy { max-width: 520px; }
  .hero .lead { max-width: 34ch; }
  .hero-visual { width: min(100%, 380px); margin: 10px auto 0; padding-top: 16px; }
  .hero-visual p { display: none; }
  .intro-steps { gap: 14px; margin-top: 28px; }
  .intro-steps li { display: block; }
  .intro-number { display: block; margin-bottom: 9px; }
  .footer-inner { padding: 22px 24px; }
}
@media (max-width: 460px) {
  .header-inner { min-height: 87px; padding: 19px 20px; }
  .logo-link img { width: 174px; }
  .header-caption { display: none; }
  .page-shell { padding: 28px 16px; }
  .card { padding: 26px 22px; }
  .hero { padding-bottom: 0; }
  .hero h1 { font-size: clamp(1.8rem, 7.7vw, 2.15rem); }
  .hero .lead { margin-top: 20px; font-size: 1.05rem; }
  .hero .hint { font-size: .82rem; }
  .hero .button { width: 100%; }
  .hero-visual { margin-top: 14px; }
  .intro-steps { padding-bottom: 24px; gap: 10px; }
  .intro-steps strong { font-size: .69rem; line-height: 1.6; }
  .intro-steps div > span { font-size: .62rem; }
  .footer-inner { align-items: flex-start; gap: 14px; padding: 20px; font-size: .68rem; }
  .footer-inner nav { flex-direction: column; gap: 10px; align-items: flex-end; }
  .matcher-header { margin-bottom: 18px; }
  .matcher-navigation { gap: 6px; }
  .matcher-navigation button { padding: 8px 9px; font-size: .67rem; }
  .step-indicator { gap: 6px; margin-bottom: 18px; }
  .step-indicator li { flex-direction: column; gap: 6px; align-items: flex-start; font-size: .68rem; }
  .step-card { padding: 24px 20px; border-radius: 12px; }
  .step-heading { gap: 12px; align-items: flex-start; }
  .step-heading .eyebrow { font-size: .64rem; letter-spacing: .07em; }
  .step-maxerl { width: 56px; margin-top: 5px; }
  .step-maxerl-walking { width: 46px; }
  .step-card h1 { font-size: 1.45rem; }
  .choice-list { margin: 26px 0; }
  .choice-card { padding: 15px 46px 15px 15px; }
  .choice-card span { font-size: .85rem; }
  .choice-card small { font-size: .7rem; }
  .choice-card::after { right: 15px; }
  .step-actions .button { min-height: 50px; padding: 12px; font-size: .85rem; }
  .selection-summary { font-size: .75rem; }
  .selection-summary div { grid-template-columns: minmax(95px, .8fr) 1.2fr; gap: 8px; }
  .method-card { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
