/* ==========================================================================
   Components: platform cards, line steps, tickets & boarding passes,
   stamps, announcements, luggage tags, FAQ, forms, notices.
   ========================================================================== */

/* ---------- ticks list ---------- */
.ticks { list-style: none; display: grid; gap: 8px; margin: 0 0 4px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: '';
  position: absolute; left: 0; top: .42em;
  width: 16px; height: 10px;
  border-left: 2.5px solid var(--amber);
  border-bottom: 2.5px solid var(--amber);
  transform: rotate(-45deg) scale(.8);
  transform-origin: 30% 60%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  color: var(--amber);
}
.text-link svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }

/* ---------- platform cards ("Gleis") ---------- */
.gleis-grid {
  list-style: none;
  display: grid;
  gap: 18px;
}
@media (min-width: 720px) { .gleis-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .gleis-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }

.gleis {
  position: relative;
  padding: 26px 24px 24px;
  background: linear-gradient(180deg, var(--panel), #111318);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease);
}
.gleis::before {
  /* amber signal bar at the top edge */
  content: '';
  position: absolute; left: 24px; top: 0;
  width: 44px; height: 3px;
  background: var(--amber);
  border-radius: 0 0 3px 3px;
  transition: width .45s var(--ease);
}
.gleis:hover { transform: translateY(-4px); border-color: rgba(255,182,39,.35); box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); }
.gleis:hover::before { width: calc(100% - 48px); }
.gleis-no {
  position: absolute;
  right: 18px; top: 14px;
  font: 800 64px/1 var(--font-display);
  color: transparent;
  -webkit-text-stroke: 1px rgba(241,233,216,.14);
  letter-spacing: .02em;
}
.gleis-ico {
  width: 44px; height: 44px;
  padding: 10px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: var(--amber-soft);
  color: var(--amber);
}
.gleis h3 { color: var(--ink); margin-bottom: 10px; }
.gleis p { color: var(--ink-dim); margin: 0; font-size: 16px; }

/* ---------- line steps (a rail line with stations) ---------- */
.line-steps {
  list-style: none;
  position: relative;
  display: grid;
  gap: 30px;
  padding-left: 34px;
}
.line-steps::before {
  content: '';
  position: absolute;
  left: 9px; top: 8px; bottom: 8px;
  width: 4px;
  border-radius: 4px;
  background: repeating-linear-gradient(180deg, var(--line-2) 0 8px, transparent 8px 14px);
}
.line-steps::after {
  /* the moving "train" light */
  content: '';
  position: absolute;
  left: 5px; top: 0;
  width: 12px; height: 46px;
  border-radius: 8px;
  background: linear-gradient(180deg, transparent, var(--amber));
  box-shadow: 0 0 18px var(--amber-glow);
  animation: train-v 6s var(--ease) infinite;
}
/* transform instead of top/left: runs on the compositor, no layout per frame.
   --run-y / --run-x (track length minus light length, in px) come from board.js */
@keyframes train-v { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(var(--run-y, 0px)); opacity: 0; } }
.line-steps.is-off::after { animation-play-state: paused; }
.line-step { position: relative; }
.ls-dot {
  position: absolute;
  left: -34px; top: 2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bg);
  border: 4px solid var(--amber);
  box-shadow: 0 0 0 4px var(--bg-2);
}
.ls-time {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--panel-3);
  color: var(--amber);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.line-step h3 { color: var(--ink); }
.line-step p { color: var(--ink-dim); margin: 0; }

@media (min-width: 900px) {
  .line-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-left: 0; padding-top: 46px; gap: 28px; }
  .line-steps::before { left: 0; right: 0; top: 9px; bottom: auto; width: auto; height: 4px; background: repeating-linear-gradient(90deg, var(--line-2) 0 10px, transparent 10px 18px); }
  .line-steps::after { top: 5px; left: 0; width: 70px; height: 12px; background: linear-gradient(90deg, transparent, var(--amber)); animation: train-h 7s var(--ease) infinite; }
  @keyframes train-h { 0% { transform: translateX(0); opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(var(--run-x, 0px)); opacity: 0; } }
  .ls-dot { left: 0; top: -46px; }
}

/* ---------- ticket (paper, perforated) ----------
   Main part and stub each carry paper + half of the punched notches,
   so the tear line can sit anywhere (bottom on mobile, right on desktop). */
.ticket, .pass {
  --notch: 14px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  color: var(--paper-ink);
  filter: drop-shadow(0 26px 34px rgba(0,0,0,.55));
}
.ticket-main, .pass-main, .ticket-stub, .pass-stub {
  position: relative;
  background:
    repeating-linear-gradient(0deg, rgba(30,27,22,.022) 0 1px, transparent 1px 3px),
    radial-gradient(120% 90% at 0% 0%, rgba(255,255,255,.55), transparent 60%),
    var(--paper);
}
.ticket-main, .pass-main {
  padding: 26px 24px 28px;
  border-radius: 16px 16px 0 0;
  -webkit-mask: radial-gradient(circle var(--notch) at 0 100%, #0000 97%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle var(--notch) at 100% 100%, #0000 97%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle var(--notch) at 0 100%, #0000 97%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle var(--notch) at 100% 100%, #0000 97%, #000) right / 51% 100% no-repeat;
}
.ticket-stub, .pass-stub {
  padding: 26px 24px;
  border-radius: 0 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background-color: var(--paper-2);
  -webkit-mask: radial-gradient(circle var(--notch) at 0 0, #0000 97%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle var(--notch) at 100% 0, #0000 97%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle var(--notch) at 0 0, #0000 97%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle var(--notch) at 100% 0, #0000 97%, #000) right / 51% 100% no-repeat;
}
.ticket-stub::before, .pass-stub::before {
  /* perforation */
  content: '';
  position: absolute;
  left: calc(var(--notch) + 6px); right: calc(var(--notch) + 6px); top: -1px;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(30,27,22,.35) 0 6px, transparent 6px 12px);
}
.ticket-kicker, .pass-kicker {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--paper-muted);
}
.ticket h3, .pass h3 { color: var(--paper-ink); font-size: clamp(26px, 2.8vw, 34px); }
.ticket p, .pass p { color: #3d372d; }
.ticket .ticks li::before, .pass .ticks li::before { border-color: var(--paper-ink); }
.ticket .mono, .pass .mono { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-muted); margin: 0; }
.ticket .small { font-size: 11px; }
.ticket-price { margin: 4px 0 6px; font-size: clamp(28px, 3.4vw, 38px); color: var(--paper-ink); white-space: nowrap; }
.ticket-stub .btn, .pass-stub .btn { margin-top: auto; }
.ticket-stub .btn { margin-top: 14px; }

@media (min-width: 760px) {
  .ticket, .pass { grid-template-columns: minmax(0, 1fr) var(--stub-w, 240px); }
  .ticket-main, .pass-main {
    padding: 32px 34px;
    border-radius: 16px 0 0 16px;
    -webkit-mask: radial-gradient(circle var(--notch) at 100% 0, #0000 97%, #000) top / 100% 51% no-repeat,
                  radial-gradient(circle var(--notch) at 100% 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
            mask: radial-gradient(circle var(--notch) at 100% 0, #0000 97%, #000) top / 100% 51% no-repeat,
                  radial-gradient(circle var(--notch) at 100% 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
  }
  .ticket-stub, .pass-stub {
    padding: 30px 26px;
    border-radius: 0 16px 16px 0;
    -webkit-mask: radial-gradient(circle var(--notch) at 0 0, #0000 97%, #000) top / 100% 51% no-repeat,
                  radial-gradient(circle var(--notch) at 0 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
            mask: radial-gradient(circle var(--notch) at 0 0, #0000 97%, #000) top / 100% 51% no-repeat,
                  radial-gradient(circle var(--notch) at 0 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
  }
  .ticket-stub::before, .pass-stub::before {
    left: -1px; right: auto; top: calc(var(--notch) + 6px); bottom: calc(var(--notch) + 6px);
    width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, rgba(30,27,22,.35) 0 6px, transparent 6px 12px);
  }
}

.stamp {
  position: absolute;
  right: 22px; top: 18px;
  padding: 6px 14px;
  border: 3px solid var(--stamp);
  border-radius: 8px;
  color: var(--stamp);
  font: 800 20px/1 var(--font-display);
  letter-spacing: .14em;
  text-transform: uppercase;
  transform: rotate(-12deg);
  opacity: .82;
  mix-blend-mode: multiply;
  pointer-events: none;
  /* worn ink */
  -webkit-mask: radial-gradient(circle at 30% 40%, #000 60%, rgba(0,0,0,.65) 61%, #000 75%);
          mask: radial-gradient(circle at 30% 40%, #000 60%, rgba(0,0,0,.65) 61%, #000 75%);
}
@media (prefers-reduced-motion: no-preference) {
  .js .reveal .stamp { opacity: 0; transform: rotate(-12deg) scale(1.8); transition: opacity .3s .5s, transform .45s .5s cubic-bezier(.3, 1.6, .5, 1); }
  .js .reveal.is-in .stamp { opacity: .82; transform: rotate(-12deg) scale(1); }
}
@media (min-width: 760px) { .teaser .stamp { right: calc(var(--stub-w, 240px) + 26px); top: 22px; } }

/* boarding pass header cities */
.pass-cities {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 22px;
}
.pass-cities div { display: grid; gap: 2px; }
.pass-cities small { font: 700 11px var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--paper-muted); }
.pass-cities [data-flap] { font-size: clamp(30px, 4vw, 42px); }
.pass-cities em { font-style: normal; font-size: 14px; color: var(--paper-muted); }
.pass-arrow { width: 56px; height: 22px; color: var(--paper-ink); flex: none; }
.pass-gate { font: 800 54px/1 var(--font-display); color: var(--paper-ink); margin: 0 0 8px; }

.teasers { display: grid; gap: 26px; }
@media (min-width: 1100px) { .teasers { gap: 34px; } .teasers .ticket, .teasers .pass { --stub-w: 280px; } .teasers .ticket-main, .teasers .pass-main { padding: 40px 48px; } .teasers .ticks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
.teaser { transition: transform .5s var(--ease); }
.teaser:hover { transform: translateY(-4px) rotate(-.4deg); }

/* ---------- announcements ---------- */
.announce-grid { display: grid; gap: 18px; }
@media (min-width: 860px) { .announce-grid { grid-template-columns: 1fr 1fr; gap: 22px; } }
.announce {
  position: relative;
  padding: 26px 26px 24px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-2);
}
.announce--amber { border-left-color: var(--amber); background: linear-gradient(135deg, rgba(255,182,39,.1), var(--panel) 55%); }
.announce-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font: 700 12px var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
}
.announce-label svg { width: 20px; height: 20px; }
.announce h3 { color: var(--ink); }
.announce p { color: var(--ink-dim); }
.announce p:last-child { margin-bottom: 0; }

/* ---------- numbers ---------- */
.num-grid { list-style: none; display: grid; gap: 28px 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 960px) { .num-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.num { display: grid; gap: 12px; align-content: start; }
.num-val { font-size: clamp(54px, 8vw, 92px); line-height: 1; }
.num-txt { color: var(--ink-dim); font-size: 16px; line-height: 1.45; max-width: 240px; }

/* ---------- luggage tags (testimonials) ---------- */
.tags-grid { display: grid; gap: 22px; }
@media (min-width: 900px) { .tags-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tag {
  position: relative;
  margin: 0;
  padding: 44px 24px 24px;
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: 14px 14px 14px 14px;
  clip-path: polygon(18% 0, 82% 0, 100% 9%, 100% 100%, 0 100%, 0 9%);
  transform: rotate(-.6deg);
  transition: transform .5s var(--ease);
}
.tag:nth-child(2) { transform: rotate(.7deg); }
.tag:nth-child(3) { transform: rotate(-.3deg); }
.tag:hover { transform: rotate(0) translateY(-4px); }
.tag-hole {
  position: absolute;
  top: 14px; left: 50%;
  width: 18px; height: 18px;
  margin-left: -9px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 3px #c9bea6;
}
.tag blockquote { margin: 0 0 18px; }
.tag blockquote p { color: #2e2921; font-size: 17px; line-height: 1.55; margin: 0; }
.tag figcaption { display: grid; gap: 2px; padding-top: 14px; border-top: 2px dashed rgba(30,27,22,.2); }
.tag figcaption strong { color: var(--paper-ink); }
.tag figcaption span { font: 500 12px var(--font-mono); letter-spacing: .06em; color: var(--paper-muted); }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; gap: 10px; }
@media (min-width: 1000px) { .faq-wrap { grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; } .faq-wrap .sec-head { position: sticky; top: calc(var(--header-h) + 30px); } }
.faq-list { display: grid; gap: 12px; }
.faq {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  transition: border-color .25s, background-color .25s;
}
.faq[open] { border-color: rgba(255,182,39,.4); background: var(--panel-2); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq-ico {
  position: relative;
  flex: none;
  width: 30px; height: 30px;
  border-radius: 6px;
  background: var(--panel-3);
}
.faq-ico::before, .faq-ico::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 2px;
  margin: -1px 0 0 -6px;
  background: var(--amber);
  transition: transform .3s var(--ease);
}
.faq-ico::after { transform: rotate(90deg); }
.faq[open] .faq-ico::after { transform: rotate(0); }
.faq-a { padding: 0 20px 20px; color: var(--ink-dim); }
.faq-a p:last-child { margin-bottom: 0; }

/* ---------- forms ---------- */
.field { display: grid; gap: 8px; }
.field > span, .field-label {
  font: 700 12px var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.input, .select {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #0d0f13;
  color: var(--ink);
  font: 500 17px/1.2 var(--font-body);
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}
.input::placeholder { color: #7c766b; }
.input:focus, .select:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255,182,39,.25); }
.input[aria-invalid="true"] { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255,132,102,.2); }
.input[type="date"] { color-scheme: dark; }
.select {
  padding-right: 42px;
  background-image: linear-gradient(45deg, transparent 50%, var(--amber) 50%), linear-gradient(135deg, var(--amber) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.hint { font-size: 14px; color: var(--muted); margin: 0; }

.form-error {
  margin: 0;
  font-weight: 600;
  color: var(--coral);
}
.form-error:empty { display: none; }
.form-error:not(:empty) {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255,132,102,.1);
  border: 1px solid rgba(255,132,102,.4);
  animation: shake .4s;
}
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* segmented radio choices */
.choice-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice-group legend { padding: 0; margin-bottom: 12px; }
.choice-row { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #0d0f13;
  color: var(--ink-dim);
  font-weight: 600;
  transition: border-color .2s, background-color .2s, color .2s, transform .2s;
}
.choice-box svg { width: 26px; height: 26px; flex: none; }
.choice:hover .choice-box { border-color: rgba(255,182,39,.5); }
.choice input:checked + .choice-box { border-color: var(--amber); background: rgba(255,182,39,.1); color: var(--ink); box-shadow: inset 0 0 0 1px var(--amber); }
.choice input:focus-visible + .choice-box { outline: 3px solid var(--amber); outline-offset: 3px; }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; color: var(--ink-dim); font-size: 15px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--amber); flex: none; }

/* ---------- notice (pay) ---------- */
.notice {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(127, 224, 163, .08);
  border: 1px solid rgba(127, 224, 163, .4);
  color: var(--ink);
}
.notice[hidden] { display: none; }
.notice svg { width: 24px; height: 24px; color: var(--green); flex: none; margin-top: 1px; }
.notice p { margin: 0; font-size: 15px; }
.notice.is-pop { animation: pop .5s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 759px) { .teaser .stamp { top: auto; bottom: 150px; right: 22px; } }

/* notices and strong text on paper */
.ticket strong, .pass strong, .tag strong { color: var(--paper-ink); }
.ticket .notice { color: var(--paper-ink); background: rgba(22, 121, 74, .08); border-color: rgba(22, 121, 74, .45); }
.ticket .notice p { color: #2e2921; }
.ticket .notice svg { color: #16794a; }
