.test-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 88% 12%, rgba(199, 223, 209, .72), transparent 30%),
    var(--paper);
}

.test-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .38;
  background-image: linear-gradient(rgba(23, 59, 53, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 59, 53, .08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, transparent 0, #000 44%, #000 100%);
  pointer-events: none;
}

.test-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, .72fr);
  gap: clamp(48px, 8vw, 125px);
  align-items: center;
  min-height: 650px;
  padding-block: 82px;
}

.test-hero h1 {
  max-width: 820px;
  margin: 28px 0 24px;
  font-size: clamp(62px, 7.2vw, 110px);
}

.test-hero-copy { min-width: 0; }

.test-hero-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin: 0;
  color: #3a514a;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.75;
}

.test-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 31px;
}

.test-ticket {
  position: relative;
  min-width: 0;
  min-height: 402px;
  padding: 29px;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--white);
  box-shadow: 10px 10px 0 rgba(23, 59, 53, .13);
  transform: rotate(1.2deg);
}

.test-ticket::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -78px;
  width: 245px;
  height: 245px;
  border: 38px solid rgba(199, 223, 209, .72);
  border-radius: 50%;
}

.ticket-top,
.ticket-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.ticket-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9b442f;
}

.ticket-live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 5px rgba(245, 120, 79, .15);
}

.ticket-route {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  margin: 69px 0 59px;
}

.ticket-node {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  font-size: 11px;
  font-weight: 800;
}

.ticket-node:last-child {
  border-color: var(--coral);
  background: var(--coral);
}

.ticket-line {
  position: relative;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 9px, transparent 9px 16px);
}

.ticket-line::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 47%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
}

.ticket-stat {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ticket-stat div { padding: 19px 0 16px; }
.ticket-stat div + div { padding-left: 25px; border-left: 1px solid var(--line); }
.ticket-stat strong { display: block; font: 600 44px/1 var(--font-display); letter-spacing: -.07em; }
.ticket-stat span { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.test-status-strip { background: var(--ink); color: var(--white); }
.test-status-inner { min-height: 98px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 34px; }
.test-status-index { color: var(--coral); font: 700 11px/1 var(--font-body); letter-spacing: .15em; }
.test-status-inner p { margin: 0; color: #d8e4dc; font-size: 14px; line-height: 1.6; }
.test-status-inner strong { color: var(--white); }
.test-status-badge { padding: 10px 13px; border: 1px solid #66857a; color: #c7dfd1; font-size: 10px; font-weight: 800; letter-spacing: .13em; white-space: nowrap; }

.test-steps { padding: clamp(88px, 9vw, 138px) 0; }
.test-section-heading { display: grid; grid-template-columns: 1fr .72fr; gap: 70px; align-items: end; margin-bottom: 48px; }
.test-section-heading h2,
.test-detail h2,
.test-final h2 { margin: 20px 0 0; font-size: clamp(48px, 5.2vw, 78px); line-height: 1.02; font-weight: 600; }
.test-section-heading > p { max-width: 460px; margin: 0 0 6px; color: var(--muted); font-size: 15px; line-height: 1.7; }

.join-steps { counter-reset: join-step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.join-step { counter-increment: join-step; display: flex; min-height: 460px; flex-direction: column; padding: 29px 30px 32px; border-right: 1px solid var(--line); }
.join-step:last-child { border-right: 0; }
.join-step-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.join-step-top::after { content: "0" counter(join-step); display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--ink); border-radius: 50%; color: var(--ink); letter-spacing: 0; }
.join-step-icon { position: relative; display: grid; place-items: center; width: 112px; height: 112px; margin: 45px auto 38px; border: 1px solid var(--ink); border-radius: 50%; color: var(--ink); font: 400 47px/1 var(--font-display); }
.join-step:nth-child(2) .join-step-icon { border-color: var(--coral); background: var(--coral); }
.join-step:nth-child(3) .join-step-icon { border-style: dashed; background: #dfebe2; }
.join-step h3 { margin: 0 0 11px; font-size: 29px; line-height: 1.08; }
.join-step p { margin: 0 0 25px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.join-step .button,
.join-step .text-link { margin-top: auto; align-self: flex-start; }

.join-step-actions {
  display: grid;
  align-self: stretch;
  gap: 18px;
  margin-top: auto;
}

.join-step-actions .button,
.join-step-actions .text-link { margin-top: 0; }

.button-coral { background: var(--coral); color: var(--ink-deep); }
.button-coral:hover { background: #ff8a64; }

.test-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  margin-top: 31px;
  padding: 20px 22px;
  border-left: 3px solid var(--coral);
  background: #eee8dc;
}
.test-note span { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--coral); border-radius: 50%; color: #9b442f; font-weight: 800; }
.test-note p { margin: 1px 0 0; color: #4d5d57; font-size: 13px; line-height: 1.65; }

.test-detail { background: #e6ebe3; }
.test-detail-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(55px, 9vw, 130px); padding-block: clamp(82px, 9vw, 130px); }
.test-detail-copy > p:not(.section-index) { max-width: 460px; margin: 24px 0 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.test-facts { display: grid; border-top: 1px solid var(--ink); }
.test-fact { display: grid; grid-template-columns: 50px 1fr; gap: 20px; padding: 23px 0; border-bottom: 1px solid #b7c6ba; }
.test-fact > span { color: #9b442f; font-size: 11px; font-weight: 800; }
.test-fact h3 { margin: 0 0 7px; font-size: 24px; }
.test-fact p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.test-final { position: relative; overflow: hidden; background: var(--coral); }
.test-final::before { content: ""; position: absolute; inset: 0; opacity: .12; background: repeating-linear-gradient(132deg, transparent 0 42px, var(--ink) 43px 44px); }
.test-final-inner { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: center; min-height: 360px; padding-block: 60px; }
.test-final h2 { max-width: 760px; }
.test-final h2 em { color: #fff3df; }
.test-final p { max-width: 600px; margin: 22px 0 0; font-size: 15px; font-weight: 600; line-height: 1.7; }
.test-final .button { min-width: 230px; }

@media (max-width: 960px) {
  .test-hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .test-ticket { width: min(100%, 570px); }
  .join-steps { grid-template-columns: 1fr; }
  .join-step { display: grid; grid-template-columns: 130px 1fr; column-gap: 27px; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .join-step:last-child { border-bottom: 0; }
  .join-step-top { grid-column: 1 / -1; }
  .join-step-icon { grid-column: 1; grid-row: 2 / span 3; margin: 29px auto 0; }
  .join-step h3 { grid-column: 2; margin-top: 32px; }
  .join-step p { grid-column: 2; }
  .join-step .button, .join-step .text-link { grid-column: 2; }
  .join-step-actions { grid-column: 2; }
}

@media (max-width: 760px) {
  .test-hero-grid { padding-block: 64px; }
  .test-status-inner { grid-template-columns: auto 1fr; padding-block: 23px; }
  .test-status-badge { grid-column: 2; justify-self: start; }
  .test-section-heading, .test-detail-grid { grid-template-columns: 1fr; gap: 27px; }
  .test-detail-grid { gap: 50px; }
  .test-final-inner { grid-template-columns: 1fr; gap: 35px; padding-block: 74px; }
  .test-final .button { justify-self: start; }
}

@media (max-width: 560px) {
  .test-hero h1 { font-size: clamp(52px, 15vw, 72px); }
  .test-ticket { min-height: 365px; padding: 23px 20px; transform: none; }
  .ticket-route { margin-block: 55px 48px; }
  .ticket-node { width: 47px; height: 47px; }
  .ticket-stat strong { font-size: 38px; }
  .ticket-bottom { display: grid; }
  .ticket-top span, .ticket-bottom span { min-width: 0; overflow-wrap: anywhere; }
  .test-section-heading h2, .test-detail h2, .test-final h2 { font-size: clamp(43px, 12vw, 58px); }
  .join-step { display: block; padding: 25px 22px 30px; }
  .join-step-icon { width: 94px; height: 94px; margin: 28px 0; }
  .join-step h3 { margin-top: 0; }
  .join-step .button { width: 100%; }
  .test-status-inner { gap: 18px; }
  .test-status-index { align-self: start; padding-top: 4px; }
  .test-fact { grid-template-columns: 38px 1fr; gap: 12px; }
}
