/* The homepage boarding pass (css/home.css), copied as-is for the audit page.
   Its colour tokens are set on .pp-pass-scope so they don't clash with the
   audit page's own dark theme. If the homepage pass changes, copy it again. */
.pp-pass-scope {
    --navy: #0e1f4d;
    --blue: #1d4ed8;
    --blue-2: #2f6bff;
    --sky: #5aa9ff;
    --sky-2: #8dbdff;
    --ice: #eaf2ff;
    --ice-2: #f5f9ff;
    --yellow: #ffc233;
    --yellow-2: #f2a900;
    --red: #ef4444;
    --green: #16a34a;
    --text: #0e1f4d;
    --muted: #5a6b8f;
    --line: #e2eaf7;
    --font: "Plus Jakarta Sans", system-ui, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
    --pad: clamp(20px, 5vw, 80px);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--text); font-family: var(--font); line-height: 1.6;
}
.pp-pass-scope a { color: inherit; text-decoration: none; }
.pp-pass-scope img { display: block; }
.pp-pass-scope .c2-prop { transform-box: fill-box; transform-origin: center; animation: c2-prop 0.18s linear infinite; }
@keyframes c2-prop { 50% { transform: scaleY(0.2); } }
.c2-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 0;
  background: var(--blue); color: #fff; font: 700 16px var(--font); letter-spacing: -0.01em;
  box-shadow: 0 10px 0 -4px #1236a3, 0 18px 30px -18px rgba(29, 78, 216, 0.8);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s ease;
  cursor: pointer;
}
.c2-btn:hover { background: var(--blue-2); }
.c2-btn:active { transform: translateY(4px); box-shadow: 0 6px 0 -4px #1236a3, 0 10px 20px -14px rgba(29, 78, 216, 0.8); }
.c2-btn-ghost { background: #fff; color: var(--blue); box-shadow: inset 0 0 0 2px var(--line), 0 10px 0 -4px var(--line); }
.c2-btn-ghost:hover { background: var(--ice-2); }
.c2-btn-sm { padding: 11px 18px; font-size: 14px; box-shadow: 0 7px 0 -3px #1236a3; }
.c2-btn-lg { padding: 19px 34px; font-size: 18px; }
.c2-btn-block { width: 100%; }
.pp-pass-scope .c2-btn { color: #fff; }
.pp-pass-scope .c2-btn-ghost { color: var(--blue); }

.c2-pass-wrap { max-width: 1040px; margin: 56px auto 0; perspective: 1400px; }
.c2-pass {
  --notch: 26px;
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  border-radius: 30px; background: #fff;
  box-shadow: 0 50px 90px -50px rgba(14, 31, 77, 0.55), inset 0 0 0 1px var(--line);
  transform-style: preserve-3d;
}
.c2-pass::before { content: ""; position: absolute; left: 0; right: 300px; top: 0; height: 10px; border-radius: 30px 0 0 0; background: repeating-linear-gradient(90deg, var(--blue) 0 40px, var(--sky) 40px 80px, var(--yellow) 80px 120px); }
.c2-pass-main { padding: 36px 38px 30px; }
.c2-pass-top { display: flex; justify-content: space-between; align-items: center; }
.c2-pass-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.c2-pass-brand img { width: 26px; height: 26px; }
.c2-pass-type { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.c2-pass-route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin: 26px 0 24px; }
.c2-pass-route small, .c2-field small, .c2-pass-seat small, .c2-stepper small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.c2-pass-route b { display: block; font-size: clamp(46px, 6vw, 76px); font-weight: 800; letter-spacing: -0.06em; line-height: 1; }
.c2-pass-route .c2-to b { color: var(--blue); }
.c2-pass-route span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.c2-pass-arcwrap { position: relative; height: 70px; }
.c2-pass-arc { display: block; width: 100%; height: 70px; overflow: visible; }
.c2-pass-plane { position: absolute; left: 0; top: 0; width: 56px; height: 28px; transform: translate(-50%, -50%) translate(var(--px, 0px), var(--py, 60px)) rotate(var(--pr, -20deg)); will-change: transform; }
.c2-pass-arc path { fill: none; stroke: var(--sky-2); stroke-width: 3; stroke-dasharray: 0.014 0.018; }
.c2-pass-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 16px; padding: 18px 0; border-block: 2px dashed var(--line); }
.c2-field b { display: block; font-size: 15.5px; font-weight: 700; margin-top: 2px; }
.c2-field input {
  width: 100%; margin-top: 2px; padding: 6px 10px; border-radius: 10px; border: 2px solid var(--line); background: var(--ice-2);
  font: 700 15.5px var(--font); color: var(--navy); outline: none; transition: border-color 0.2s ease, background 0.2s ease;
}
.c2-field input:focus { border-color: var(--blue); background: #fff; }
.c2-pass-fares { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; margin-top: 18px; }
.c2-step { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 4px; border-radius: 999px; background: var(--ice); }
.c2-step button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #fff; color: var(--blue); font: 800 18px var(--font); cursor: pointer; box-shadow: 0 3px 0 #d3def2; transition: transform 0.15s ease; }
.c2-step button:active { transform: translateY(2px); box-shadow: 0 1px 0 #d3def2; }
.c2-step output { min-width: 34px; text-align: center; font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.c2-pass-fares ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.c2-pass-fares li { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.c2-pass-fares li em { font-style: normal; color: var(--muted); font-size: 13px; margin-left: 4px; }
.c2-pass-fares li b { font-weight: 800; }
.c2-pass-fares s { color: var(--muted); font-weight: 500; margin-right: 6px; }
.c2-pass-stub { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 36px 28px 28px; border-left: 2px dashed var(--line); background: linear-gradient(180deg, #f7faff, #eef4ff); border-radius: 0 30px 30px 0; transform-origin: 0 50%; transition: transform 0.5s var(--bounce); }
.c2-pass:hover .c2-pass-stub { transform: rotate(1.4deg) translateX(4px); }
.c2-pass-stub::before, .c2-pass-stub::after { content: ""; position: absolute; left: calc(var(--notch) / -2 - 1px); width: var(--notch); height: var(--notch); border-radius: 50%; background: var(--ice-2); box-shadow: inset 0 0 0 1px var(--line); }
.c2-pass-stub::before { top: calc(var(--notch) / -2); }
.c2-pass-stub::after { bottom: calc(var(--notch) / -2); }
.c2-pass-price { display: flex; align-items: flex-start; font-weight: 800; letter-spacing: -0.06em; line-height: 1; color: var(--blue); }
.c2-pass-price small { font-size: 28px; margin-top: 10px; }
.c2-pass-price b { font-size: 88px; font-variant-numeric: tabular-nums; }
.c2-pass-price span { align-self: flex-end; margin: 0 0 12px 6px; font-size: 17px; font-weight: 700; letter-spacing: 0; color: var(--muted); }
.c2-pass-seat { display: flex; gap: 28px; }
.c2-pass-seat b { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.c2-pass-who { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c2-pass-barcode { width: 100%; height: 46px; fill: var(--navy); margin-top: auto; }
.c2-pass-stamp {
  position: absolute; right: 42px; top: 250px; padding: 6px 16px; border: 3px solid var(--blue); border-radius: 10px;
  font-family: var(--mono); font-weight: 700; font-size: 20px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--blue);
  transform: rotate(-12deg); opacity: 0.9; pointer-events: none; mix-blend-mode: multiply;
}
.js.motion .c2-pass-stamp { opacity: 0; transform: rotate(-12deg) scale(2.4); }
.js.motion .c2-pass.is-in .c2-pass-stamp { animation: c2-stamp 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) 1.2s forwards; }
@keyframes c2-stamp { to { opacity: 0.9; transform: rotate(-12deg) scale(1); } }
.c2-pulse { animation: c2-pulse 0.4s var(--bounce); }
@keyframes c2-pulse { 40% { transform: scale(1.12); } }
@media (max-width: 1000px) {
  .c2-pass { grid-template-columns: 1fr; }
  .c2-pass::before { right: 0; border-radius: 30px 30px 0 0; }
  .c2-pass-stub { border-left: 0; border-top: 2px dashed var(--line); border-radius: 0 0 30px 30px; }
  .c2-pass-stub::before, .c2-pass-stub::after { top: calc(var(--notch) / -2 - 1px); bottom: auto; }
  .c2-pass-stub::before { left: calc(var(--notch) / -2); }
  .c2-pass-stub::after { left: auto; right: calc(var(--notch) / -2); }
  .c2-pass:hover .c2-pass-stub { transform: none; }
  .c2-pass-stamp { top: auto; bottom: 170px; right: 26px; font-size: 16px; }
}
@media (max-width: 900px) {
  .c2-pass-wrap { margin-top: 36px; }
  .c2-pass-main { padding: 28px 20px 22px; }
  .c2-pass-grid { grid-template-columns: 1fr 1fr; }
  .c2-field-wide { grid-column: 1 / -1; }
  .c2-pass-fares { grid-template-columns: 1fr; gap: 14px; }
  .c2-pass-route { gap: 10px; }
  .c2-pass-price b { font-size: 76px; }
}
@media (prefers-reduced-motion: reduce) { .pp-pass-scope .c2-prop { animation: none; } }
.pp-pass-scope .c2-wm-a { color: #0558b5; }
.pp-pass-scope .c2-wm-b { color: #f25a1f; }
.pp-pass-scope { --notch-bg: #071230; }
.pp-pass-scope .c2-pass-stub::before, .pp-pass-scope .c2-pass-stub::after { background: var(--notch-bg); box-shadow: none; }
.pp-pass-scope .c2-pass-wrap { margin-top: 40px; }
.pp-pass-scope .c2-pass-stub .c2-btn-ghost { box-shadow: inset 0 0 0 2px var(--line), 0 8px 0 -4px var(--line); }
