/* ===========================================
   THE POCKET MAP: /team-event (DESIGN.md v3 pilot, <body class="ds-v3">)
   The page is one unfolded pocket transit map. Every section is a full-bleed panel (.pm-fold) in
   one of two alternating dark tones, never a card. Facts are a map legend, sequences a route line with a train on the current
   stop, money lives on one day-pass ticket, and the order form is the only solid panel.
   Mobile first: base rules are the phone, min-width queries add space.
   =========================================== */

/* ---- Ground: the city map printed as light hairlines on Night Harbour, strongest on the cover ---- */
.ds-v3 .page-background {
  background: var(--color-scaffold-background);
}

.ds-v3 .page-background__image {
  filter: invert(1) grayscale(1);
  opacity: 0.19;
  mix-blend-mode: screen;
}

.ds-v3 .page-background__overlay {
  background: none;
}

.ds-v3 [data-animate] {
  opacity: 1;
  transform: none;
  transition: none;
}

.ds-v3 ::selection {
  background: var(--color-teal-accent);
  color: var(--color-nearly-black);
}

.pm-map {
  overflow-x: clip;
}

/* ---- Sections: no lines between them. After the cover, sections alternate between two dark
   tones with a crisp edge, like the panels of a printed map. The city map behind stays faint. ---- */
.pm-fold {
  --pm-band: rgba(2, 22, 27, 0.76);
  position: relative;
  padding: var(--space-12) 0 var(--space-16);
  background: var(--pm-band);
  scroll-margin-top: 64px;
}

.pm-fold:nth-of-type(1) { --pm-band: rgba(2, 22, 27, 0.45); }
.pm-fold:nth-of-type(odd):not(:first-of-type) { --pm-band: rgba(5, 33, 40, 0.8); }

/* Footer: the darkest panel at the end */
.ds-v3 .footer {
  position: relative;
  background: rgba(1, 14, 17, 0.97);
}

.pm-fold__inner {
  position: relative;
}

@media (min-width: 768px) {
  .pm-fold {
    padding: var(--space-20) 0 var(--space-24);
  }
}

/* ---- Type ---- */
.pm-title,
.pm-h2,
.pm-h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-wrap: balance;
  color: var(--text-heading);
}

.pm-title {
  font-size: 2.125rem;
  line-height: 1.06;
}

.pm-h2 {
  font-size: 1.625rem;
  line-height: 1.12;
}

.pm-h3 {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  line-height: 1.2;
}

.pm-title em,
.pm-h2 em {
  font-style: normal;
  color: var(--color-teal-accent);
}

.pm-lead,
.pm-intro {
  max-width: 38rem;
  margin: var(--space-4) 0 0;
  font-size: var(--text-base);
  line-height: 1.6;
}

.pm-intro {
  margin-top: var(--space-3);
}

.pm-lead strong {
  font-weight: var(--font-semibold);
}

.pm-intro a,
.pm-aside a,
.pm-note a {
  color: var(--color-teal-accent);
  font-weight: var(--font-semibold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pm-aside {
  margin: var(--space-3) 0 0;
  font-size: 0.9375rem;
}

.pm-note,
.pm-small {
  max-width: 40rem;
  margin: var(--space-5) 0 0;
  font-size: var(--text-sm);
  line-height: 1.55;
}

.pm-small {
  margin-top: var(--space-3);
}

@media (min-width: 640px) {
  .pm-title { font-size: 2.75rem; }
  .pm-h2 { font-size: 2rem; }
  .pm-lead { font-size: var(--text-lg); }
}

@media (min-width: 1024px) {
  .pm-title { font-size: 3.5rem; }
  .pm-h2 { font-size: 2.5rem; }
}

/* ---- Actions ---- */
.pm-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-2);
  margin-top: var(--space-8);
}

.pm-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  margin-top: var(--space-2);
  color: var(--color-teal-accent);
  font-size: 0.9375rem;
  font-weight: var(--font-semibold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pm-actions .pm-link {
  align-self: flex-start;
  margin-top: 0;
}

.pm-link:hover {
  color: var(--color-teal-100);
}

.pm-link i {
  font-size: 0.8em;
}

.ds-v3 .btn {
  justify-content: center;
}

.ds-v3 .btn-lg {
  padding: 14px 20px;
  font-size: var(--text-base);
}

.pm-btn-wide {
  width: 100%;
}

@media (min-width: 640px) {
  .ds-v3 .btn-lg {
    padding: 16px 32px;
    font-size: var(--text-lg);
  }

  .pm-btn-wide {
    width: auto;
  }

  .pm-actions {
    flex-direction: row;
    align-items: center;
    gap: var(--space-6);
  }
}

/* ---- The legend: facts as map keys, a symbol, a caps label and one plain line ---- */
.pm-legend {
  margin: var(--space-6) 0 0;
  max-width: 40rem;
  border-top: 1px solid rgba(207, 225, 229, 0.18);
}

.pm-legend__row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  column-gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(207, 225, 229, 0.1);
}

.pm-legend__row::before {
  content: "";
  grid-row: 1 / span 2;
  width: 14px;
  height: 14px;
  margin-top: 4px;
  border: 3px solid var(--color-teal-accent);
  border-radius: var(--radius-full);
}

.pm-legend dt {
  grid-column: 2;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: var(--font-semibold);
  line-height: 1.35;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.pm-legend dd {
  grid-column: 2;
  margin: 2px 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

@media (min-width: 640px) {
  .pm-legend__row {
    grid-template-columns: 20px minmax(10rem, auto) minmax(0, 1fr);
    align-items: baseline;
  }

  .pm-legend__row::before {
    grid-row: 1;
    align-self: start;
  }

  .pm-legend dd {
    grid-column: 3;
    margin: 0;
  }
}

/* Keys with a drawn symbol (the game) */
.pm-sym {
  display: inline-block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: var(--sym) center / contain no-repeat;
  mask: var(--sym) center / contain no-repeat;
}

/* ---- Cover fold ---- */
.pm-fold--cover {
  padding-top: calc(72px + var(--space-8));
  padding-bottom: var(--space-10);
}

.pm-cover__replay {
  display: none;
}

@media (min-width: 1024px) {
  .pm-fold--cover {
    padding-top: calc(80px + var(--space-16));
  }

  .pm-cover {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: var(--space-16);
    align-items: center;
  }

  .pm-cover__replay {
    display: block;
  }
}

/* ---- The game ---- */
.pm-split {
  display: grid;
  gap: var(--space-10);
}

.pm-split .pm-legend {
  margin-bottom: var(--space-4);
}

.pm-replays .phone-frame {
  max-width: 240px;
  margin: 0;
}

.pm-replays .hero-replay-caption {
  text-align: left;
}

@media (min-width: 1024px) {
  .pm-split {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: var(--space-16);
    align-items: center;
  }

  .pm-replays .phone-frame {
    max-width: 300px;
  }
}

/* A playing replay is "live": a thin teal ring around the phone, no glow */
.ds-v3 .feature-video,
.ds-v3 .video-carousel {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  outline: 2px solid transparent;
  outline-offset: 4px;
  transition: outline-color 0.2s ease;
}

.ds-v3 .feature-video.is-playing,
.ds-v3 .video-carousel.is-playing {
  outline-color: var(--color-teal-accent);
}

/* ---- Proof ---- */
.pm-quote {
  max-width: 46rem;
  margin: 0;
}

.pm-quote blockquote {
  margin: 0;
}

.pm-quote blockquote p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.pm-quote figcaption {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  line-height: 1.45;
}

.pm-quote figcaption img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: #fff;
  object-fit: contain;
}

.pm-quote figcaption strong {
  display: block;
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
}

.pm-occasions {
  max-width: 46rem;
  margin: var(--space-8) 0 0;
  padding-top: var(--space-5);
  border-top: 1px solid rgba(207, 225, 229, 0.14);
  font-size: 0.9375rem;
}

@media (min-width: 640px) {
  .pm-quote blockquote p {
    font-size: var(--text-xl);
  }
}

/* ---- The route: Order → Invite → Play → Invoice, with a train on the live stop ----
   Overrides the shared .te-route (pages.css). Dot centre: 12px padding + 1px + 8px = 21px down,
   8px in. The line between two stops is drawn by the upper stop. */
.pm-demo {
  margin-top: var(--space-8);
  gap: var(--space-10);
}

.ds-v3 .pm-route {
  position: relative;
}

.ds-v3 .pm-route .te-route__station {
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: transparent;
}

.ds-v3 .pm-route button.te-route__station:hover,
.ds-v3 .pm-route .te-route__stop.is-live button.te-route__station {
  background: transparent;
}

.ds-v3 .pm-route .te-route__station:focus-visible {
  outline: 2px solid var(--color-teal-accent);
  outline-offset: 4px;
}

.ds-v3 .pm-route .te-route__stop:not(:last-child)::before {
  top: 21px;
  bottom: -21px;
  left: 6px;
}

.ds-v3 .pm-route .te-route__stop:nth-last-child(2)::before {
  content: none;
}

.ds-v3 .pm-route .te-route__stop.is-live .te-route__dot {
  box-shadow: none;
  animation: none;
}

.ds-v3 .pm-route .te-route__label {
  font-size: var(--text-base);
  letter-spacing: 0.06em;
  color: var(--text-primary);
  transition: color 0.15s ease;
}

.ds-v3 .pm-route .te-route__stop.is-live .te-route__label,
.ds-v3 .pm-route button.te-route__station:hover .te-route__label {
  color: var(--color-teal-accent);
}

.ds-v3 .pm-route .te-route__text {
  font-size: 0.9375rem;
  line-height: 1.55;
}

.ds-v3 .pm-route .te-route__cue {
  margin-top: var(--space-1);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ds-v3 .pm-route .te-route__stop.is-live .te-route__cue {
  text-decoration: none;
  color: var(--color-teal-100);
}

/* The train: placed on the live stop by js/team-event.js, slides when another stop is tapped */
.pm-train {
  position: absolute;
  top: var(--pm-train-y, 0);
  left: -7px;
  z-index: 2;
  display: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-md);
  background: var(--color-teal-accent);
  color: var(--color-nearly-black);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  transition: top 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.pm-train .pm-sym {
  width: 18px;
  height: 18px;
}

.pm-route.has-train .pm-train {
  display: grid;
}

@media (prefers-reduced-motion: reduce) {
  .pm-train {
    transition: none;
  }
}

.ds-v3 .pm-demo .te-demo__phone,
.ds-v3 .pm-demo .te-demo__screen {
  max-width: min(100%, 340px);
}

.ds-v3 .pm-demo .te-demo__phone {
  margin: 0 auto;
}

@media (min-width: 900px) {
  .ds-v3 .pm-demo {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: var(--space-16);
    max-width: 960px;
  }

  .ds-v3 .pm-demo .te-demo__phone,
  .ds-v3 .pm-demo .te-demo__screen {
    max-width: 320px;
  }
}

/* ---- Why the Team Event ---- */
.pm-narrow > * {
  max-width: 48rem;
}

/* ---- Price: the day-pass ticket ---- */
.pm-price {
  display: grid;
  gap: var(--space-12);
  margin-top: var(--space-8);
}

.pm-ticket {
  max-width: 34rem;
  color: var(--color-nearly-black);
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.45));
}

.pm-ticket__main,
.pm-ticket__stub {
  background: #F5F5F5;
}

/* Shared CSS paints every <p> Platform White; on the ticket, text is Ink */
.pm-ticket p,
.pm-ticket dd {
  color: var(--color-nearly-black);
}

/* Notches where the ticket tears: cut from the bottom corners of the main part and the top
   corners of the stub, so the perforation sits between two half-circles */
.pm-ticket__main {
  padding: var(--space-5) var(--space-5) var(--space-6);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  -webkit-mask: radial-gradient(circle 12px at 0 100%, #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 12px at 100% 100%, #0000 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 12px at 0 100%, #0000 98%, #000) left / 51% 100% no-repeat,
        radial-gradient(circle 12px at 100% 100%, #0000 98%, #000) right / 51% 100% no-repeat;
}

.pm-ticket__stub {
  position: relative;
  padding: var(--space-6) var(--space-5) var(--space-5);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  -webkit-mask: radial-gradient(circle 12px at 0 0, #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 12px at 100% 0, #0000 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 12px at 0 0, #0000 98%, #000) left / 51% 100% no-repeat,
        radial-gradient(circle 12px at 100% 0, #0000 98%, #000) right / 51% 100% no-repeat;
}

.pm-ticket__stub::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  border-top: 2px dashed rgba(18, 18, 18, 0.25);
}

.pm-ticket__stub p {
  margin: var(--space-3) 0 0;
  font-size: var(--text-sm);
  line-height: 1.45;
  text-align: center;
}

.pm-ticket__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-teal-500);
}

.pm-ticket__zone {
  padding: 1px 10px;
  border: 2px solid var(--color-teal-500);
  border-radius: var(--radius-full);
}

.pm-ticket__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2);
  margin: var(--space-3) 0 0;
}

.pm-ticket__amount {
  font-family: var(--font-heading);
  font-size: 3.25rem;
  font-weight: var(--font-bold);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.pm-ticket__unit {
  font-size: var(--text-base);
  font-weight: var(--font-medium);
}

.pm-ticket__fine {
  margin: var(--space-2) 0 0;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.pm-ticket__terms {
  margin: var(--space-5) 0 0;
}

.pm-ticket__terms > div {
  padding: var(--space-3) 0;
  border-top: 1px solid rgba(18, 18, 18, 0.12);
}

.pm-ticket__terms dt {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-teal-500);
}

.pm-ticket__terms dd {
  margin: 2px 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  hyphens: auto;
}

.pm-ticket .btn-primary:focus-visible {
  outline: 3px solid var(--color-teal-500);
  outline-offset: 3px;
}

@media (min-width: 400px) {
  .pm-ticket__terms > div {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    column-gap: var(--space-3);
  }

  .pm-ticket__terms dt {
    padding-top: 2px;
  }

  .pm-ticket__terms dd {
    margin: 0;
  }
}

@media (min-width: 640px) {
  .pm-ticket__main {
    padding: var(--space-8) var(--space-8) var(--space-6);
  }

  .pm-ticket__stub {
    padding: var(--space-6) var(--space-8) var(--space-6);
  }

  .pm-ticket__amount {
    font-size: 4rem;
  }

  .pm-ticket__stub .btn {
    width: 100%;
  }
}

/* Approval documents: legend rows, no tiles */
.pm-approval > p {
  margin: var(--space-2) 0 0;
  font-size: 0.9375rem;
}

.pm-docs {
  margin: var(--space-5) 0 var(--space-6);
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(207, 225, 229, 0.18);
}

.pm-docs a {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  column-gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(207, 225, 229, 0.1);
  color: inherit;
  text-decoration: none;
}

.pm-docs a > i {
  grid-row: 1 / span 2;
  width: 20px;
  margin-top: 3px;
  font-size: 1.125rem;
  text-align: center;
  color: var(--color-teal-100);
}

.pm-docs a:hover > i {
  color: var(--color-teal-accent);
}

.pm-docs strong {
  font-weight: var(--font-semibold);
  text-decoration: underline;
  text-decoration-color: rgba(20, 184, 166, 0.6);
  text-underline-offset: 4px;
  overflow-wrap: break-word;
  hyphens: auto;
}

.pm-docs span {
  font-size: var(--text-sm);
  line-height: 1.45;
}

.pm-docs a:hover strong {
  color: var(--color-teal-accent);
}

.pm-docs a:focus-visible {
  outline: 2px solid var(--color-teal-accent);
  outline-offset: 2px;
  border-radius: var(--radius-lg);
}

@media (min-width: 1024px) {
  .pm-price {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--space-16);
    align-items: start;
  }
}

/* ---- Order: the one solid panel ---- */
.pm-order {
  display: grid;
  gap: var(--space-8);
}

.ds-v3 .pm-panel {
  max-width: none;
  margin: 0;
  padding: var(--space-5) var(--space-4) var(--space-6);
  background: var(--color-deck-teal);
  border: 1px solid rgba(20, 184, 166, 0.25);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-panel);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.ds-v3 .pm-panel .te-fieldset legend {
  font-size: var(--text-base);
  letter-spacing: 0.06em;
}

.ds-v3 .pm-panel .form-input {
  font-size: var(--text-base);
}

.ds-v3 .pm-panel .te-submit {
  width: 100%;
}

@media (min-width: 640px) {
  .ds-v3 .pm-panel {
    padding: var(--space-8);
  }
}

@media (min-width: 1024px) {
  .pm-order {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--space-16);
    align-items: start;
  }

  .pm-order__intro,
  .pm-faq__intro {
    position: sticky;
    top: 112px;
  }
}

/* ---- FAQ: a plain list with hairlines, no panels ---- */
.pm-faq {
  display: grid;
  gap: var(--space-8);
}

.ds-v3 .pm-faq__list {
  max-width: none;
  margin: 0;
  gap: 0;
}

.ds-v3 .pm-faq__list .te-faq-group {
  margin: var(--space-8) 0 var(--space-1);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-teal-100);
}

.ds-v3 .pm-faq__list .te-faq-group:first-child {
  margin-top: 0;
}

.ds-v3 .pm-faq__list .biz-faq__item {
  border-bottom: 1px solid rgba(207, 225, 229, 0.12);
  border-radius: 0;
  background: transparent;
}

.ds-v3 .pm-faq__list .biz-faq__item summary {
  min-height: 44px;
  padding: var(--space-4) 0;
}

.ds-v3 .pm-faq__list .biz-faq__question span {
  overflow-wrap: break-word;
  hyphens: auto;
}

.ds-v3 .pm-faq__list .biz-faq__item summary:focus-visible {
  outline: 2px solid var(--color-teal-accent);
  outline-offset: 2px;
}

.ds-v3 .pm-faq__list .biz-faq__answer {
  padding: 0 0 var(--space-5);
}

.ds-v3 .pm-faq__list .biz-faq__answer p {
  font-size: 0.9375rem;
}

.ds-v3 .pm-faq__list .biz-faq__answer p + p {
  margin-top: var(--space-2);
}

@media (min-width: 1024px) {
  .pm-faq {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: var(--space-16);
    align-items: start;
  }
}

/* ---- Back cover ---- */
.pm-back {
  text-align: center;
}

.pm-back .pm-lead {
  margin-left: auto;
  margin-right: auto;
}

.pm-back .btn {
  margin-top: var(--space-6);
}

.pm-title--back {
  font-size: 2rem;
}

@media (min-width: 640px) {
  .pm-title--back {
    font-size: 2.75rem;
  }
}

/* Helper text stays readable on phones (14px, not 12px) */
.ds-v3 .te-field-hint,
.ds-v3 .te-submit-note,
.ds-v3 .te-demo__caption {
  font-size: var(--text-sm);
}

/* The floating order button rests without a glow or pulse: only the train and a playing replay are "live" */
.ds-v3 .floating-book-btn {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  animation: none;
}

.ds-v3 .floating-book-btn.expanded {
  animation: none;
}

/* The price summary in the form is a ruled line, not a box inside the panel */
.ds-v3 .pm-panel .te-price-line {
  margin: var(--space-2) 0 var(--space-4);
  padding: var(--space-3) 0;
  background: none;
  border-top: 1px solid rgba(207, 225, 229, 0.18);
  border-bottom: 1px solid rgba(207, 225, 229, 0.18);
  border-radius: 0;
}

/* Replays carry their own logo in the bottom-right corner: the caption stays clear of it */
.ds-v3 .pm-replays .video-carousel__caption {
  padding-right: 30%;
}

/* No Glow Rule: the shared primary button lifts on hover with a plain shadow, no teal halo */
.ds-v3 .btn-primary:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Keyboard focus keeps the shared 3px teal ring, with the lift shadow under it */
.ds-v3 .btn-primary:focus-visible {
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.4), 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* ---- The app or the Team Event: a real table, framed, with a header row and grid lines.
   The Team Event column is tinted teal. Under 560px each topic becomes a full-width row above its
   two answers, still inside the same grid. ---- */
.pm-vs-wrap {
  margin: var(--space-6) 0 0;
  border: 1px solid rgba(207, 225, 229, 0.22);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: rgba(2, 22, 27, 0.6);
}

.pm-vs {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.pm-vs th,
.pm-vs td {
  padding: var(--space-3);
  text-align: left;
  vertical-align: top;
  border-top: 1px solid rgba(207, 225, 229, 0.14);
}

.pm-vs td + td,
.pm-vs thead th + th {
  border-left: 1px solid rgba(207, 225, 229, 0.14);
}

.pm-vs thead th {
  border-top: 0;
  vertical-align: bottom;
  background: rgba(207, 225, 229, 0.07);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  letter-spacing: 0.05em;
  line-height: 1.3;
  text-transform: uppercase;
}

.pm-vs thead th small {
  display: block;
  margin-top: 2px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-normal);
  letter-spacing: 0;
  text-transform: none;
}

.pm-vs thead th.pm-vs__us {
  color: var(--color-teal-accent);
  background: rgba(20, 184, 166, 0.16);
}

.pm-vs td.pm-vs__us {
  background: rgba(20, 184, 166, 0.07);
  font-weight: var(--font-medium);
}

.pm-vs tbody .pm-vs__topic {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-teal-100);
  background: rgba(207, 225, 229, 0.04);
}

@media (max-width: 559px) {
  .pm-vs,
  .pm-vs thead,
  .pm-vs tbody {
    display: block;
  }

  .pm-vs tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .pm-vs thead .pm-vs__topic {
    display: none;
  }

  .pm-vs thead th:nth-child(2) {
    border-left: 0;
  }

  .pm-vs tbody .pm-vs__topic {
    grid-column: 1 / -1;
    padding-top: var(--space-2);
    padding-bottom: var(--space-2);
  }

  .pm-vs tbody td:first-of-type {
    border-left: 0;
  }
}

@media (min-width: 560px) {
  /* Equal answer columns: the topic takes 24%, each answer 38% */
  .pm-vs {
    table-layout: fixed;
  }

  .pm-vs thead th:not(.pm-vs__topic) {
    width: 38%;
  }

  .pm-vs .pm-vs__topic {
    width: 24%;
  }

  .pm-vs th,
  .pm-vs td {
    padding: var(--space-4);
  }
}

@media (min-width: 768px) {
  .pm-vs {
    font-size: 0.9375rem;
  }
}

/* ---- Order form: short until someone starts ---- */
.pm-order__next {
  width: 100%;
  margin-top: var(--space-2);
}

.te-order form.is-collapsed .pm-order__more {
  display: none;
}

.ds-v3 .pm-panel .te-fieldset {
  margin-bottom: var(--space-5);
}

.ds-v3 .pm-panel .te-form-note {
  margin-bottom: var(--space-4);
}

.ds-v3 .pm-fold--back {
  padding-bottom: var(--space-20);
}

/* ---- Final critique fixes ---- */

/* Phones: the game shows itself first. The replay leads "The game in 60 seconds", centred. */
@media (max-width: 1023px) {
  .pm-split .pm-replays {
    order: -1;
    justify-self: center;
  }

  .pm-replays .phone-frame {
    margin: 0 auto;
  }

  .pm-replays .hero-replay-caption {
    text-align: center;
  }
}


/* Desktop: the route starts at the top, next to the phone, not centred against it */
.ds-v3 .pm-demo {
  align-items: start;
}

/* Keyboard focus: a solid ring every button and the preview can show (3:1 on the dark ground) */
.ds-v3 .btn:focus-visible,
.ds-v3 .te-demo__frame:focus-visible {
  outline: 2px solid var(--color-teal-100);
  outline-offset: 3px;
}

/* On the light ticket the focus ring is Lagoon Teal, not Mist (which vanishes on white) */
.ds-v3 .pm-ticket .btn:focus-visible {
  outline: 3px solid var(--color-teal-500);
  outline-offset: 3px;
}

/* Stand-alone text actions get a 44px tap height without changing the line rhythm */
.pm-aside a {
  display: inline-block;
  padding-block: 11px;
  margin-block: -11px;
}

/* The live cost estimate under the head count */
.ds-v3 .te-estimate {
  margin: var(--space-2) 0 0;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  line-height: 1.45;
}

/* ---- How it works: the route beside a phone showing the real app screen (js/route.js) ---- */
.pm-routebox {
  display: grid;
  gap: var(--space-10);
  margin-top: var(--space-8);
  align-items: start;
}

.pm-routebox__phone {
  justify-self: center;
  width: min(100%, 280px);
}

@media (min-width: 900px) {
  .pm-routebox {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: var(--space-16);
    max-width: 960px;
  }

  .pm-routebox__phone {
    width: 300px;
  }
}

.pm-screen {
  margin: 0;
}

.pm-screen img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
}

.pm-screen figcaption {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  text-align: center;
}

@media (min-width: 900px) {
  .pm-screen figcaption {
    text-align: left;
  }
}
