:root[data-layout="rail"] .introduction { margin-bottom: 72px; }
section { margin-bottom: 72px; }
.quiet { color: var(--muted); }
.introduction .quiet { margin-top: 8px; }
.home-link { display: inline-flex; align-items: center; min-height: 44px; }
.offer-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.workflow { margin-top: 28px; }
.workflow-tabs { display: grid; position: relative; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.workflow-tabs::before { content: ""; position: absolute; top: 21px; left: calc((100% - 96px) / 10); right: calc((100% - 96px) / 10); border-top: 1px solid var(--line); }
.workflow-tabs button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); cursor: pointer; padding: 0 0 14px; min-height: 76px; border: 0; background: none; font: inherit; transition: color 160ms; }
.workflow-tabs button:not(:last-child)::after { content: ""; position: absolute; top: 17px; right: -16px; width: 8px; height: 8px; border-right: 1px solid var(--muted); border-bottom: 1px solid var(--muted); transform: rotate(-45deg); }
.step-number { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); transition: background 160ms, border-color 160ms; }
.workflow-tabs button[aria-selected="true"] { color: var(--ink); font-weight: 700; }
.workflow-tabs button[aria-selected="true"] .step-number { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.workflow-tabs button:hover { color: var(--ink); }
.workflow-panel { padding: 22px 0 6px; min-height: 220px; }
.workflow-panel + .workflow-panel { border-top: 1px solid var(--line); }
.sample-message { border-left: 2px solid var(--accent); padding-left: 18px; }
.sample-data { margin: 0 0 16px; }
.sample-data div { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 18px; margin-bottom: 6px; }
.sample-data dt { color: var(--muted); }
.sample-data dd { margin: 0; }
.journey-flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; position: relative; list-style: none; margin: 28px 0 0; padding: 0; }
.journey-flow::before { content: ""; position: absolute; top: 52px; left: 8px; right: 8px; border-top: 1px solid var(--line); }
.journey-flow li { position: relative; }
.journey-month { display: block; min-height: 40px; color: var(--muted); font-size: .875rem; line-height: 1.4; }
.journey-marker { display: block; position: relative; width: 16px; height: 16px; margin: 4px 0 22px; border: 1px solid var(--accent); border-radius: 50%; background: var(--paper); }
.journey-flow li:first-child .journey-marker { background: var(--accent); }
.journey-flow li:not(:last-child)::after { content: ""; position: absolute; top: 48px; right: -12px; width: 8px; height: 8px; border-right: 1px solid var(--muted); border-bottom: 1px solid var(--muted); transform: rotate(-45deg); }
.journey-flow h3 { margin-bottom: 8px; }
.journey-flow p { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.js-enabled .workflow-panel + .workflow-panel { border: 0; }
.js-enabled .offer-panel, .js-enabled .workflow-panel { animation: panel-enter 200ms ease-out; }
.introduction { animation: intro-enter 450ms ease-out; }
@keyframes intro-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes panel-enter { from { opacity: .4; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 900px) {
  .workflow-tabs { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .workflow-tabs::before { top: 21px; bottom: 21px; left: 21px; right: auto; border-top: 0; border-left: 1px solid var(--line); }
  .workflow-tabs button { flex-direction: row; text-align: left; gap: 18px; padding: 0; min-height: 44px; }
  .workflow-tabs button:not(:last-child)::after { top: auto; bottom: -13px; left: 17px; right: auto; transform: rotate(45deg); }
  .journey-flow { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .journey-flow::before { top: 8px; bottom: 8px; left: 7px; right: auto; border-top: 0; border-left: 1px solid var(--line); }
  .journey-flow li { padding-left: 36px; }
  .journey-month { min-height: 0; margin-bottom: 4px; }
  .journey-marker { position: absolute; top: 0; left: 0; margin: 4px 0; }
  .journey-flow li:not(:last-child)::after { top: auto; bottom: -18px; left: 3px; right: auto; transform: rotate(45deg); }
}
@media (max-width: 700px) {
  :root[data-layout="rail"] .intro { margin-bottom: 56px; }
  :root[data-layout="rail"] .introduction { margin-bottom: 0; }
  section { margin-bottom: 56px; }
  .offer-tabs { gap: 12px; }
  .offer-tabs button { font-size: .875rem; }
  .workflow-panel { min-height: 250px; }
}
@media (prefers-reduced-motion: reduce) {
  .introduction, .js-enabled .offer-panel, .js-enabled .workflow-panel { animation: none; }
}
