/* How we work: your path by company size and the method one stage at a time (js/how.js). Headings come from
   product.css, the chip colours from mocks.css. Without script every path and every stage simply shows. */

/* ---------- Your path, by company size ---------- */
.hw-paths { padding-block: clamp(48px, 7vw, 88px) 0; }
.hw-paths .eyebrow { margin-bottom: 10px; }
.hw-paths .pr-h2 { text-align: center; }
.hw-sizes { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; width: max-content; max-width: 100%; margin: 24px auto 0; padding: 4px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); }
.hw-sizes button { height: 38px; padding: 0 18px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease; }
.hw-sizes button:hover { color: var(--ink); }
.hw-sizes button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); }
.hw-sizes button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.hw-route { max-width: 920px; margin: 28px auto 0; }
.hw-route + .hw-route { margin-top: 64px; }
.is-live .hw-route + .hw-route { margin-top: 28px; }
.is-live .hw-route:not([hidden]) { animation: hw-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes hw-in { from { opacity: 0; transform: translateY(8px); } }
.hw-route-name { margin: 0 0 6px; font-family: var(--font-display); font-size: 22px; text-align: center; }
.is-live .hw-route-name { display: none; }
.hw-route-lead { max-width: 640px; margin: 0 auto; font-size: 17px; text-align: center; color: var(--ink-2); }
.hw-stops { margin: 26px 0 0; padding: 0; list-style: none; }
.hw-stops li { display: grid; grid-template-columns: 150px 44px minmax(0, 1fr) auto; align-items: start; gap: 4px 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.hw-stops li:last-child { border-bottom: 1px solid var(--line); }
.hw-when { padding-top: 13px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.hw-dot { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: var(--chip-ink); }
.hw-dot .i { width: 18px; height: 18px; }
.hw-stop-body b { font-family: var(--font-display); font-size: 18px; letter-spacing: -0.02em; }
.hw-stop-body p { max-width: 34em; margin: 4px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.hw-price { padding-top: 11px; font-size: 15px; font-weight: 700; text-align: end; white-space: nowrap; }
.hw-route-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; color: var(--ink); text-decoration: none; }
.hw-route-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.hw-route-link .i { width: 14px; height: 14px; }
[dir="rtl"] .hw-route-link .i { transform: scaleX(-1); }
.hw-paths .pricing-vat { max-width: 920px; margin: 18px auto 0; text-align: center; }

/* ---------- The method: one stage at a time ---------- */
.hw-stage-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.hw-stage-tabs button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.hw-stage-tabs button span { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); }
.hw-stage-tabs button:hover { border-color: var(--ink); color: var(--ink); }
.hw-stage-tabs button[aria-selected="true"] { border-color: var(--btn-bg); background: var(--btn-bg); color: var(--btn-fg); }
.hw-stage-tabs button[aria-selected="true"] span { color: inherit; opacity: 0.7; }
.hw-stage-tabs button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.method .section-head { margin-bottom: 28px; }
.hw-stages.is-tabs .step { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr); min-height: 0; padding-block: 36px 0; border-top: 0; }
.hw-stages.is-tabs .step-when { display: none; }
.hw-stages.is-tabs .step-when, .hw-stages.is-tabs .step-copy, .hw-stages.is-tabs .step-visual { position: static; }
.hw-stages.is-tabs .step .step-title { color: var(--ink); }
.hw-stages.is-tabs .step:not([hidden]) { animation: hw-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both; }

@media (max-width: 960px) {
  .hw-stages.is-tabs .step { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .hw-stops li { grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "dot when" "dot body" "dot price"; gap: 2px 14px; }
  .hw-dot { grid-area: dot; }
  .hw-when { grid-area: when; padding-top: 2px; }
  .hw-stop-body { grid-area: body; }
  .hw-price { grid-area: price; padding-top: 6px; text-align: start; }
  .hw-sizes button { padding: 0 12px; font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .is-live .hw-route:not([hidden]), .hw-stages.is-tabs .step:not([hidden]) { animation: none; }
  .hw-sizes button, .hw-stage-tabs button { transition: none; }
}
