:root {
  --paper: #f7f8f3;
  --paper-deep: #eef1e8;
  --ink: #13243a;
  --ink-soft: #435268;
  --verified: #0f766e;
  --verified-dark: #095a55;
  --signal: #c8f54a;
  --alert: #ff6b57;
  --quiet-blue: #ddecf8;
  --line: #c8d0ca;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(19, 36, 58, 0.09);
  --display: ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --utility: "Arial Narrow", "Roboto Condensed", var(--body);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
.button,
.route-card,
.task-card,
.device-card,
.link-list a {
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease,
    border-color 160ms ease;
}

:focus-visible {
  outline: 3px solid var(--alert);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
main,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.brand small {
  display: block;
  margin-top: 5px;
  color: var(--ink-soft);
  font-family: var(--utility);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--verified);
  color: var(--white);
  font-size: 1.25rem;
  clip-path: polygon(0 0, 76% 0, 100% 24%, 100% 100%, 0 100%);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  text-decoration: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 3px;
  background: var(--verified);
  transition: right 160ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  right: 0;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 700 0.9rem var(--body);
}

.hero {
  min-height: 580px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.7fr);
  align-items: center;
  gap: clamp(42px, 8vw, 110px);
  padding: clamp(70px, 10vw, 130px) 0;
}

.hero-copy {
  max-width: 760px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.breadcrumbs a {
  text-decoration: none;
}

.breadcrumbs b {
  color: var(--line);
}

.eyebrow,
.kicker,
.route-code,
.device-label,
.ticket-status {
  font-family: var(--utility);
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 24px;
  color: var(--verified-dark);
  font-size: 0.78rem;
}

.eyebrow span {
  width: 12px;
  height: 12px;
  display: inline-block;
  background: var(--signal);
  border: 3px solid var(--ink);
  border-radius: 50%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.06;
  text-wrap: balance;
}

h1 {
  max-width: 880px;
  margin-bottom: 28px;
  font-size: clamp(2.8rem, 7vw, 6.1rem);
  letter-spacing: -0.065em;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.65rem);
  letter-spacing: -0.05em;
}

h3 {
  font-size: 1.35rem;
}

.hero-lead {
  max-width: 710px;
  margin-bottom: 36px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 2px solid var(--ink);
  text-decoration: none;
  font-weight: 800;
  line-height: 1.2;
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 0 100%);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 7px 7px 0 rgba(19, 36, 58, 0.14);
}

.button--primary {
  background: var(--verified);
  color: var(--white);
  border-color: var(--verified);
}

.button--quiet {
  background: transparent;
}

.button--signal {
  background: var(--signal);
}

.button--store {
  background: var(--ink);
  border-color: var(--ink);
}

.hero-ticket {
  position: relative;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px;
  background: var(--quiet-blue);
  border: 2px solid var(--ink);
  box-shadow: 12px 12px 0 var(--signal);
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%);
}

.hero-ticket::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 32px;
  height: 32px;
  background: var(--paper);
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.ticket-status {
  color: var(--verified-dark);
  font-size: 0.72rem;
}

.hero-ticket strong {
  max-width: 240px;
  font-family: var(--display);
  font-size: 1.7rem;
  line-height: 1.12;
}

.hero-ticket small {
  color: var(--ink-soft);
}

.ticket-track {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin: 30px 0;
}

.ticket-track::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 4px;
  right: 4px;
  border-top: 3px dashed var(--ink);
}

.ticket-track i {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  display: block;
  background: var(--signal);
  border: 3px solid var(--ink);
  border-radius: 50%;
}

.ticket-track i:nth-child(2) {
  animation: route-pulse 2.8s ease-in-out infinite;
}

@keyframes route-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.45);
  }
}

.section {
  margin: clamp(48px, 10vw, 130px) 0;
}

.section-heading {
  max-width: 660px;
  margin-bottom: 38px;
}

.section-heading h2 {
  margin-bottom: 18px;
}

.section-heading p:last-child {
  color: var(--ink-soft);
}

.kicker {
  margin-bottom: 12px;
  color: var(--verified-dark);
  font-size: 0.72rem;
}

.route-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.route-map::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 34px;
  left: 10%;
  right: 10%;
  border-top: 3px dashed var(--line);
}

.route-card {
  position: relative;
  z-index: 1;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px;
  background: var(--white);
  border: 2px solid var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
}

.route-card::before {
  content: "";
  width: 17px;
  height: 17px;
  margin-bottom: 36px;
  background: var(--signal);
  border: 3px solid var(--ink);
  border-radius: 50%;
}

.route-card--alert::before {
  background: var(--alert);
}

.route-card:hover,
.task-card:hover,
.device-card:hover,
.link-list a:hover {
  transform: translateY(-5px);
  box-shadow: 10px 12px 0 rgba(19, 36, 58, 0.11);
}

.route-code {
  margin-bottom: 14px;
  color: var(--ink-soft);
  font-size: 0.68rem;
}

.route-card strong {
  margin-bottom: 13px;
  font-family: var(--display);
  font-size: 2rem;
}

.route-card > span:last-child {
  color: var(--ink-soft);
}

.two-column,
.article-layout,
.checklist {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(42px, 8vw, 110px);
  align-items: start;
}

.sticky-heading,
.article-index {
  position: sticky;
  top: 28px;
}

.link-list {
  display: grid;
  border-top: 2px solid var(--ink);
}

.link-list a,
.link-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 10px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.link-list a::after {
  content: "→";
  flex: 0 0 auto;
  font-size: 1.4rem;
}

.link-list span {
  font-weight: 800;
}

.link-list small {
  margin-left: auto;
  color: var(--ink-soft);
  text-align: right;
}

.link-list--plain > div {
  display: grid;
  gap: 4px;
}

.link-list--plain small {
  margin-left: 0;
  text-align: left;
}

.assurance,
.checklist {
  padding: clamp(32px, 6vw, 68px);
  background: var(--ink);
  color: var(--white);
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%);
}

.assurance {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
  align-items: end;
}

.assurance h2,
.checklist h2 {
  margin-bottom: 0;
}

.assurance .kicker,
.checklist .kicker {
  color: var(--signal);
}

.assurance > p {
  margin-bottom: 0;
  color: #dce3e7;
  font-size: 1.1rem;
}

.task-grid,
.device-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.task-card,
.device-card {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.task-card--alert {
  border: 2px solid var(--alert);
}

.task-card strong,
.device-card strong {
  margin-bottom: 10px;
  font-family: var(--display);
  font-size: 1.45rem;
}

.task-card span,
.device-card small {
  color: var(--ink-soft);
}

.device-card {
  min-height: 250px;
  justify-content: space-between;
  border: 2px solid var(--ink);
}

.device-card strong {
  margin-top: auto;
  font-size: 2.25rem;
}

.device-label {
  color: var(--verified-dark);
  font-size: 0.7rem;
}

.note-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
  padding: 30px;
  background: #fff1ee;
  border: 2px solid var(--alert);
}

.note-panel--calm {
  background: var(--quiet-blue);
  border-color: var(--verified);
}

.note-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--alert);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 900;
}

.note-panel--calm .note-mark {
  background: var(--verified);
  color: var(--white);
}

.note-panel h2 {
  margin-bottom: 8px;
  font-size: 1.5rem;
  letter-spacing: -0.025em;
}

.note-panel p {
  margin-bottom: 0;
}

.article-index {
  padding: 28px;
  background: var(--paper-deep);
  border-left: 4px solid var(--verified);
}

.article-index ol {
  margin: 18px 0 0;
  padding-left: 22px;
  color: var(--ink-soft);
}

.steps {
  display: grid;
  gap: 0;
}

.steps--wide {
  max-width: 860px;
  margin-inline: auto;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 22px;
  padding: 0 0 48px;
}

.step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 48px;
  bottom: 0;
  left: 23px;
  border-left: 2px dashed var(--line);
}

.step > span {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--signal);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-family: var(--utility);
  font-size: 0.75rem;
  font-weight: 900;
}

.step h2 {
  margin: 4px 0 12px;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  letter-spacing: -0.035em;
}

.step p {
  color: var(--ink-soft);
}

.text-link {
  color: var(--verified-dark);
  font-weight: 800;
}

.checklist ul {
  margin: 0;
  padding-left: 22px;
}

.checklist li + li {
  margin-top: 10px;
}

.centered-cta {
  max-width: 760px;
  margin-inline: auto;
  padding: 54px;
  background: var(--quiet-blue);
  text-align: center;
  border: 2px solid var(--ink);
}

.centered-cta h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.footer-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  margin: clamp(80px, 13vw, 160px) 0 80px;
  padding: clamp(34px, 6vw, 70px);
  background: var(--verified);
  color: var(--white);
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%);
}

.footer-cta .kicker {
  color: var(--signal);
}

.footer-cta h2 {
  margin-bottom: 12px;
}

.footer-cta p:last-child {
  margin-bottom: 0;
  color: #d7eeeb;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  padding: 60px 0 35px;
  border-top: 2px solid var(--ink);
}

.site-footer > div > p {
  margin: 18px 0 0;
  color: var(--ink-soft);
}

.site-footer nav {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: end;
  gap: 12px 28px;
}

.site-footer nav a {
  font-weight: 700;
}

.footer-meta {
  grid-column: 1 / -1;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.error-page {
  min-height: 100vh;
  display: grid;
  place-content: center;
  max-width: 720px;
  text-align: center;
}

.error-page h1 {
  font-size: clamp(3.2rem, 8vw, 6.4rem);
}

.error-page .hero-actions {
  justify-content: center;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-ticket {
    max-width: 520px;
  }

  .route-map,
  .task-grid,
  .device-grid {
    grid-template-columns: 1fr;
  }

  .route-map::before {
    top: 10%;
    bottom: 10%;
    left: 39px;
    right: auto;
    border-top: 0;
    border-left: 3px dashed var(--line);
  }

  .two-column,
  .article-layout,
  .checklist,
  .assurance {
    grid-template-columns: 1fr;
  }

  .sticky-heading,
  .article-index {
    position: static;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .site-header,
  main,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    min-height: 74px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
  }

  .nav-toggle b,
  .nav-toggle b::before,
  .nav-toggle b::after {
    width: 19px;
    height: 2px;
    display: block;
    background: currentColor;
  }

  .nav-toggle b {
    position: relative;
  }

  .nav-toggle b::before,
  .nav-toggle b::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .nav-toggle b::before {
    top: -6px;
  }

  .nav-toggle b::after {
    top: 6px;
  }

  .site-nav {
    position: absolute;
    z-index: 20;
    top: 73px;
    left: 12px;
    right: 12px;
    display: none;
    padding: 18px;
    background: var(--paper);
    border: 2px solid var(--ink);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 10px;
  }

  .hero {
    padding: 58px 0 38px;
    gap: 45px;
  }

  h1 {
    font-size: clamp(2.65rem, 14vw, 4.4rem);
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-ticket {
    min-height: 260px;
    padding: 26px;
    box-shadow: 7px 7px 0 var(--signal);
  }

  .route-card {
    min-height: 250px;
  }

  .link-list a {
    align-items: flex-start;
  }

  .link-list small {
    display: none;
  }

  .note-panel {
    grid-template-columns: 1fr;
  }

  .article-index {
    display: none;
  }

  .article-layout {
    gap: 0;
  }

  .step {
    grid-template-columns: 48px 1fr;
    gap: 14px;
  }

  .step > span {
    width: 40px;
    height: 40px;
  }

  .step:not(:last-child)::before {
    top: 40px;
    left: 19px;
  }

  .centered-cta {
    padding: 34px 22px;
  }

  .footer-cta {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
