/* How it works — a dedicated explanation page.
   Built from the shared Meridian tokens, so it follows whichever appearance
   the traveller has chosen. The hero uses the same shared page-hero contract as
   every other public page; only this page's own blocks live here. */

.hiw { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.hiw-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 40px); border-bottom: var(--rule) solid var(--rule-color); }
.hiw-hero > p:not(.m-eyebrow) { max-width: 64ch; margin: 14px 0 0; color: var(--color-neutral-800); font-size: 18px; line-height: 1.55; }
.hiw-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* The stage rail doubles as an in-page contents list. */
.hiw-rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 34px 0 0; padding: 0; list-style: none; counter-reset: none; }
.hiw-rail a {
  min-height: 68px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 12px 14px;
  border: var(--rule) solid var(--rule-color);
  border-radius: var(--radius-ctl);
  background: var(--sheet);
  color: var(--color-text);
  text-decoration: none;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.hiw-rail a:hover { transform: translateY(-2px); border-color: var(--color-accent); background: var(--tint); }
.hiw-rail b { color: var(--color-accent); font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.hiw-rail span { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: var(--heading-track); text-transform: var(--heading-case); }

.hiw-stage {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  padding: clamp(30px, 4vw, 46px) 0;
  border-bottom: var(--rule) solid var(--rule-soft);
}
.hiw-stage__index { color: var(--color-accent); font-family: var(--font-display); font-size: clamp(46px, 5vw, 76px); font-weight: 700; line-height: .8; letter-spacing: var(--heading-track); }
.hiw-stage__body { min-width: 0; }
.hiw-stage h2 { margin: 8px 0 12px; font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; line-height: 1; letter-spacing: var(--heading-track); text-transform: var(--heading-case); }
.hiw-stage__lead { max-width: 68ch; margin: 0; color: var(--color-neutral-800); font-size: 17px; line-height: 1.6; }
.hiw-stage__points { max-width: 70ch; margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.hiw-stage__points li { position: relative; padding-left: 26px; color: var(--color-neutral-700); font-size: 15px; line-height: 1.5; }
.hiw-stage__points li::before { content: ""; position: absolute; top: .55em; left: 6px; width: 7px; height: 7px; border: 2px solid var(--color-accent); border-radius: 50%; }

.hiw-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(min(340px, 100%), .9fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: start;
  margin: clamp(30px, 4vw, 44px) 0;
  padding: clamp(24px, 3.4vw, 38px);
  border: var(--rule) solid var(--rule-color);
  border-radius: var(--radius-card);
  background: var(--tint);
}
.hiw-panel h2 { margin: 8px 0 12px; font-family: var(--font-display); font-size: clamp(28px, 3vw, 38px); font-weight: 700; line-height: 1.02; letter-spacing: var(--heading-track); text-transform: var(--heading-case); }
.hiw-panel p { max-width: 60ch; margin: 0; color: var(--color-neutral-800); font-size: 16px; line-height: 1.6; }
.hiw-facts { display: grid; gap: 0; margin: 0; border-top: var(--rule) solid var(--rule-color); }
.hiw-facts div { padding: 14px 0; border-bottom: var(--rule) solid var(--rule-soft); }
.hiw-facts dt { color: var(--color-neutral-700); font-size: 10px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.hiw-facts dd { margin: 5px 0 0; font-size: 16px; }

.hiw-faq { padding: clamp(26px, 4vw, 40px) 0; border-top: var(--rule) solid var(--rule-color); }
.hiw-faq__head h2 { margin: 8px 0 20px; font-family: var(--font-display); font-size: clamp(28px, 3vw, 38px); font-weight: 700; letter-spacing: var(--heading-track); text-transform: var(--heading-case); }
.hiw-faq__list { display: grid; gap: 10px; }
.hiw-faq details { border: var(--rule) solid var(--rule-color); border-radius: var(--radius-ctl); background: var(--sheet); }
.hiw-faq summary { min-height: 56px; display: flex; align-items: center; gap: 12px; padding: 14px 18px; color: var(--color-text); font-size: 16px; font-weight: 700; cursor: pointer; }
.hiw-faq summary::marker { color: var(--color-accent); }
.hiw-faq details[open] summary { border-bottom: var(--rule) solid var(--rule-soft); }
.hiw-faq details > div { padding: 14px 18px 18px; }
.hiw-faq details p { margin: 0; max-width: 72ch; color: var(--color-neutral-800); font-size: 15px; line-height: 1.6; }
.hiw-faq details a { color: var(--color-accent-700); }

.hiw-cta { padding: clamp(30px, 4vw, 48px) 0 clamp(44px, 6vw, 72px); border-top: var(--rule) solid var(--rule-color); text-align: center; }
.hiw-cta h2 { margin: 0 0 10px; font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; letter-spacing: var(--heading-track); text-transform: var(--heading-case); }
.hiw-cta p { max-width: 52ch; margin: 0 auto; color: var(--color-neutral-800); font-size: 17px; }
.hiw-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }

@media (max-width: 900px) {
  .hiw-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hiw-panel { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .hiw { width: calc(100% - 32px); }
  .hiw-stage { grid-template-columns: 1fr; gap: 6px; }
  .hiw-stage__index { font-size: 40px; }
  .hiw-hero__actions .m-btn,
  .hiw-cta__actions .m-btn { width: 100%; justify-content: center; }
}

@media (max-width: 420px) {
  .hiw-rail { grid-template-columns: 1fr; }
}
