:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #f5f8fb;
  --paper: #fff;
  --ink: #253746;
  --muted: #465b71;
  --border: #d6e2ed;
  --action: #242a75;
  --navy: #1a2856;
  --cyan: #00bbdd;
  --soft: #e6eff4;
  --focus: #1f6ea9;
  --radius: 18px;
  background: var(--bg);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; font-size: 16px; line-height: 1.55; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; }
a, button { touch-action: manipulation; }
a[href], button:not(:disabled) { cursor: pointer; }
svg { flex: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
#main:focus, #step-title:focus { outline: none; }
.shell { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; z-index: 2; inset: 8px auto auto 8px; padding: 12px; background: var(--paper); transform: translateY(-150%); }
.skip:focus { transform: none; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; min-height: 76px; gap: 36px; }
.brand { display: inline-flex; gap: 11px; align-items: center; min-height: 44px; text-decoration: none; font-size: 17px; line-height: 1.1; font-weight: 750; letter-spacing: -.025em; }
.brand img { display: block; flex: none; }
.brand > span { padding-left: 12px; border-left: 1px solid var(--border); }
.brand small { display: block; margin-top: 4px; font-size: 12px; font-weight: 550; color: var(--muted); letter-spacing: 0; }
nav { display: flex; gap: 24px; margin-left: auto; }
nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 630; font-size: 14px; text-decoration: none; }
nav a:hover, .back-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.mode, .count, .status { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 99px; white-space: nowrap; font-size: 13px; font-weight: 680; }
.mode { background: var(--soft); color: var(--action); }
.mode span, .eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.hero { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); gap: clamp(32px, 6vw, 92px); align-items: center; padding: clamp(32px, 5vw, 68px); margin-block: 30px 47px; border-radius: 26px; background: var(--navy); color: #ffffff; }
.hero::before { position: absolute; z-index: -1; inset: 0; content: ""; background: repeating-radial-gradient(ellipse at 100% 118%, transparent 0 36px, #82bed229 37px 38px, transparent 39px 61px); mask-image: linear-gradient(90deg, transparent 18%, black 83%); pointer-events: none; }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: 12px; letter-spacing: .115em; text-transform: uppercase; font-weight: 760; color: var(--action); }
.hero .eyebrow { color: var(--cyan); }
.hero h1 { font-size: clamp(2.6rem, 5.05vw, 4.4rem); font-weight: 690; letter-spacing: -.052em; line-height: 1.01; margin-block: 17px 19px; }
.hero-copy > p:not(.eyebrow) { max-width: 45ch; color: #e0ecfa; font-size: clamp(1rem, 1.5vw, 1.13rem); }
.button { border: 1px solid transparent; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 10px 15px; text-decoration: none; line-height: 1.3; text-align: center; font-size: .95rem; font-weight: 680; transition: background-color .16s, border-color .16s; }
.button svg, .card-link svg, .feature a svg, .back-link svg { width: 18px; height: 18px; }
.button.primary { background: var(--action); color: #fff; }
.button.primary:hover { background: var(--navy); }
.button.secondary { background: var(--paper); color: var(--action); border-color: #7794b1; }
.button.secondary:hover { background: var(--soft); }
.hero .button.primary { margin-top: 25px; background: var(--cyan); color: var(--navy); }
.hero .button.primary:hover { background: #82dcee; }
.hero :focus-visible { outline-color: var(--cyan); }
.feature { min-width: 0; background: #242a75; border: 1px solid #677bb3; border-radius: var(--radius); padding: clamp(19px, 2.4vw, 30px); }
.feature-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--cyan); font-size: 11px; letter-spacing: .1em; font-weight: 720; }
.feature-index { font-variant-numeric: tabular-nums; color: #d6e5f8; white-space: nowrap; }
.feature h2 { margin-block: 11px 16px; font-size: clamp(1.22rem, 2.05vw, 1.55rem); line-height: 1.25; letter-spacing: -.025em; }
.feature ol { position: relative; margin: 0; padding: 0; list-style: none; display: grid; gap: 13px; }
.feature ol::before { content: ""; position: absolute; inset: 12px auto 12px 12px; width: 1px; background: #778bc0; }
.feature li { display: flex; align-items: center; position: relative; gap: 12px; color: #eaf2fc; font-size: 14px; }
.track-number { display: inline-grid; place-items: center; width: 25px; height: 25px; flex: none; border-radius: 50%; background: #3e508d; border: 1px solid #859acf; font-size: 10px; font-weight: 750; color: #fff; }
.feature a { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; margin-top: 14px; text-decoration: none; color: var(--cyan); font-weight: 680; font-size: 14px; }
.feature a:hover { text-decoration: underline; text-underline-offset: 4px; }
.journeys { scroll-margin-top: 22px; }
.section-head { display: flex; gap: 16px; align-items: end; justify-content: space-between; margin-bottom: 20px; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.35rem); font-weight: 710; letter-spacing: -.05em; line-height: 1.15; }
.section-head p { margin-top: 6px; color: var(--muted); }
.count { color: var(--action); border: 1px solid var(--border); background: var(--paper); }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.card-grid > li { display: flex; min-width: 0; }
.journey-card { display: flex; flex: 1; flex-direction: column; gap: 15px; padding: 19px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--paper); text-decoration: none; transition: background-color .16s, border-color .16s; }
.journey-card:hover { border-color: #6e9dbc; background: #f4faff; }
.journey-card.featured-card { border-color: #9ac5db; background: #eaf5fb; }
.journey-card.featured-card:hover { border-color: #1f6ea9; background: #dff0fa; }
.card-top { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.card-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--soft); color: var(--action); }
.featured-card .card-icon { background: #d3edf7; }
.card-number, .category { color: var(--muted); font-size: 12px; font-weight: 660; }
.card-number { font-variant-numeric: tabular-nums; }
.category { margin-bottom: 3px; }
.card-copy h3 { font-size: 1.14rem; letter-spacing: -.026em; line-height: 1.3; margin-bottom: 5px; }
.card-copy > p:last-child { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.card-link { display: flex; align-items: center; gap: 8px; margin-top: auto; color: var(--action); font-weight: 700; font-size: 14px; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 9px 20px; border-top: 1px solid var(--border); color: var(--muted); padding-block: 18px 24px; margin-top: 42px; font-size: 13px; }
.notice { margin-bottom: 14px; border-left: 3px solid var(--action); padding: 8px 12px; background: var(--soft); }
.run { max-width: 1040px; min-height: 64vh; margin: 24px auto 0; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--action); font-weight: 680; font-size: 14px; text-decoration: none; }
.run-heading { margin-block: 14px 24px; }
.run-heading h1 { font-size: clamp(2.2rem, 4.5vw, 3.65rem); line-height: 1.08; letter-spacing: -.06em; margin-block: 7px; }
.run-heading > p:last-child { color: var(--muted); }
.run-grid { display: grid; align-items: start; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); gap: 16px; }
.stage, .run-aside { border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(19px, 3vw, 32px); background: var(--paper); }
.stage { min-height: 268px; }
.run-aside { background: #edf4fa; }
.run-aside h2 { font-size: 1.05rem; margin-block: 12px 5px; }
.run-aside p { color: var(--muted); font-size: .93rem; }
.run-aside .back-link { margin-top: 9px; }
.stage-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.stage-label { color: var(--action); font-size: 13px; font-weight: 720; }
.stage h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); letter-spacing: -.045em; line-height: 1.15; }
.stage-copy { color: var(--muted); margin-top: 9px; max-width: 58ch; }
.status svg { width: 16px; height: 16px; }
.status.success { color: #242a75; background: #e2f4fa; }
.status.blocked { color: #7a3227; background: #f9eae5; }
.details { display: grid; margin: 20px 0 0; border: 1px solid var(--border); border-radius: 11px; background: var(--bg); }
.details > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 9px 12px; }
.details > div + div { border-top: 1px solid var(--border); }
.details dt { color: var(--muted); }
.details dd { margin: 0; font-weight: 660; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.step-back { padding: 0; border: 0; background: none; margin-top: 8px; }

@media (max-width: 1040px) {
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { gap: 32px; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 40px); }
  .header-inner { gap: 14px; min-height: 70px; }
  nav { gap: 14px; }
  .mode { margin-left: auto; }
  nav a:first-child { display: none; }
  .hero { grid-template-columns: 1fr; gap: 24px; margin-block: 20px 35px; }
  .desktop-break { display: none; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .run-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .header-inner { flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; padding-block: 8px; }
  .brand { width: 100%; }
  .brand img { width: 132px; height: auto; }
  nav { margin-left: 0; gap: 12px; }
  nav a:first-child { display: inline-flex; }
}
@media (max-width: 470px) {
  .shell { width: calc(100% - 32px); }
  nav a { font-size: 13px; }
  .mode { font-size: 12px; }
  .hero { padding: 23px; border-radius: 20px; }
  .section-head { align-items: start; flex-direction: column; gap: 8px; }
  .card-grid { grid-template-columns: 1fr; gap: 11px; }
  .journey-card { gap: 11px; }
  .actions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

@keyframes launcher-enter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes journey-slide {
  from { opacity: .35; transform: translateX(var(--journey-offset)); }
  to { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .motion-enter { animation: launcher-enter 380ms ease-out both; }
  .journey-step { --journey-offset: 0px; animation: journey-slide 245ms ease-out both; }
  .journey-step[data-direction="forward"] { --journey-offset: 14px; }
  .journey-step[data-direction="back"] { --journey-offset: -14px; }
}

.header-inner nav .login-nav {
  display: inline-flex;
  gap: 6px;
  min-height: 44px;
  padding-inline: 11px;
  border: 1px solid #d6e2ed;
  border-radius: 10px;
  background: #f5f8fb;
  color: var(--action);
  white-space: nowrap;
}
.login-nav svg { width: 16px; height: 16px; }
.header-inner nav .login-nav:hover { border-color: #91a8c2; background: #eaf0fb; text-decoration: none; }
