/* Guide pages (pdf-ticket-to-wallet.html and friends): one question answered per
   page. Builds on site.css tokens; the one picture is the thing you start with
   (a PDF page, a plastic card, a printout) with the finished pass laid over it. */

.g-hero { padding: 132px 0 72px; }
.g-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.g-hero h1 { margin: 22px 0 0; font-size: clamp(42px, 5.6vw, 84px); line-height: .95; letter-spacing: -0.05em; font-weight: 600; max-width: 12ch; }
.g-lede { margin: 26px 0 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--sub); max-width: 46ch; }
.g-hero .store-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.g-note { margin: 14px 0 0; font-size: 13.5px; color: var(--ter); }

/* the picture: source object behind, pass in front */
.g-fig { position: relative; margin: 0; aspect-ratio: 1 / 1; max-width: 560px; width: 100%; justify-self: end; }
.g-src, .g-pass { position: absolute; }
.g-fig img, .g-more img { height: auto; }
.g-pass { right: 2%; bottom: 0; width: 56%; border-radius: 14px; box-shadow: 0 30px 60px -28px rgba(10, 14, 24, .55), 0 2px 6px rgba(10, 14, 24, .12); transform: rotate(4deg); }
.g-src { left: 2%; top: 4%; color: #1C2024; background: #FFFFFF; box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 18px 40px -24px rgba(10, 14, 24, .4), 0 0 0 1px rgba(28, 32, 36, .08); transform: rotate(-5deg); }
.g-src .ln { display: block; height: 7px; border-radius: 4px; background: #E3E4E8; margin-top: 9px; }
.g-src .ln.k { background: #C9CBD2; height: 9px; }
.g-src .tag { position: absolute; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: #60646C; }

/* a landscape pass sits lower and wider over the plastic card */
.g-fig.is-card .g-pass { width: 70%; right: 0; bottom: 14%; }
.g-fig.is-card .g-src { top: 14%; }
.g-fig.is-card { aspect-ratio: 5 / 4; }

/* PDF page */
.g-src.pdf { width: 60%; aspect-ratio: 1 / 1.414; border-radius: 4px; padding: 9% 9% 0; }
.g-src.pdf .qr { width: 46%; margin: 12% 0 10%; image-rendering: pixelated; }
.g-src.pdf .tag { left: 9%; bottom: 5%; }
/* plastic loyalty card */
.g-src.card { width: 70%; aspect-ratio: 1.586; top: 10%; border-radius: 14px; padding: 7%; background: linear-gradient(135deg, #F4F5F7, #DADCE2); }
.g-src.card .bars { height: 26%; margin-top: 16%; background: repeating-linear-gradient(90deg, #1C2024 0 2px, transparent 2px 4px, #1C2024 4px 7px, transparent 7px 8px, #1C2024 8px 9px, transparent 9px 12px); }
.g-src.card .num { margin-top: 5%; font-family: var(--mono); font-size: clamp(11px, 1.3vw, 14px); letter-spacing: .08em; }
/* printed boarding pass / rail ticket */
.g-src.print { width: 74%; aspect-ratio: 1.7; border-radius: 3px; padding: 6% 7%; display: grid; grid-template-columns: 1fr auto; gap: 0 8%; align-content: start; }
.g-src.print .route { grid-column: 1 / -1; font-weight: 650; font-size: clamp(20px, 2.6vw, 30px); letter-spacing: -0.03em; margin-bottom: 4%; }
.g-src.print .pdf417 { width: clamp(70px, 11vw, 120px); aspect-ratio: 2.6; align-self: end; background:
  repeating-linear-gradient(90deg, #1C2024 0 3px, transparent 3px 5px, #1C2024 5px 6px, transparent 6px 9px),
  repeating-linear-gradient(0deg, transparent 0 4px, #fff 4px 5px); background-blend-mode: normal; }
.g-src.print .aztec { width: clamp(64px, 9vw, 104px); aspect-ratio: 1; align-self: end; border-radius: 2px;
  background: radial-gradient(circle at center, transparent 0 0) ;
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 8px #1C2024, inset 0 0 0 12px #fff, inset 0 0 0 16px #1C2024, inset 0 0 0 20px #fff, inset 0 0 0 24px #1C2024;
  background-image: repeating-conic-gradient(#1C2024 0 25%, #fff 0 50%); background-size: 8px 8px; }
.g-src.print .tag { right: 7%; top: 6%; }

/* one moment on load: the pass settles onto its source */
@media (prefers-reduced-motion: no-preference) {
  .g-pass { animation: g-settle 1.1s var(--ease) .15s both; }
  @keyframes g-settle { from { opacity: 0; transform: translate(-18%, -10%) rotate(-5deg) scale(.92); } }
}

/* body */
.g-body { padding: 24px 0 40px; }
.g-sec { border-top: 1px solid var(--line); padding: 56px 0; }
.g-sec .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.g-sec h2 { grid-column: 1 / span 4; margin: 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; letter-spacing: -0.04em; font-weight: 600; }
.g-sec .g-main { grid-column: 6 / span 7; }
.g-sec p, .g-sec li { color: var(--sub); max-width: 62ch; }
.g-sec p { margin: 0 0 14px; }
.g-sec strong { color: var(--text); font-weight: 600; }
.g-sec a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.g-sec a:not(.btn):hover { text-decoration-color: currentColor; }

/* the steps are a real sequence, so they are numbered */
.g-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.g-steps li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; padding: 0 0 26px; max-width: none; }
.g-steps li::before { content: counter(s); font-size: 34px; line-height: 1; font-weight: 300; letter-spacing: -0.04em; color: var(--mint-ink); }
.g-steps h3 { margin: 4px 0 6px; font-size: 19px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; color: var(--text); }
.g-steps p { margin: 0; }

.g-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.g-facts h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 600; }
.g-facts p { margin: 0; font-size: 15px; }

.g-faq details { border-bottom: 1px solid var(--line); }
.g-faq details:first-child { border-top: 1px solid var(--line); }
.g-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 550; font-size: 17px; letter-spacing: -0.01em; }
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary::after { content: "+"; font-weight: 300; font-size: 22px; line-height: 1; color: var(--ter); transition: transform .3s var(--ease); }
.g-faq details[open] summary::after { transform: rotate(45deg); }
.g-faq details p { margin: 0 0 20px; }
.g-faq summary:focus-visible, .g-more a:focus-visible { outline: 2px solid var(--mint-ink); outline-offset: 3px; border-radius: 6px; }

.g-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.g-more a { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 12px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--panel); transition: border-color .3s; }
.g-more a:hover { border-color: var(--line-2); }
.g-more img { width: 64px; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: 9px; }
.g-more b { display: block; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; line-height: 1.3; }
.g-more span { font-size: 13.5px; color: var(--sub); }

.g-get { padding: 72px 0 24px; }
.g-get .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.g-get h2 { margin: 0; font-size: clamp(30px, 3.4vw, 48px); line-height: 1; letter-spacing: -0.045em; font-weight: 600; max-width: 16ch; }
.g-get .store-row { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 900px) {
  .g-hero { padding: 108px 0 40px; }
  .g-hero .wrap { grid-template-columns: 1fr; }
  .g-fig { justify-self: center; max-width: 440px; }
  .g-sec { padding: 40px 0; }
  .g-sec h2, .g-sec .g-main { grid-column: 1 / -1; }
  .g-facts, .g-more { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .g-steps li { grid-template-columns: 40px 1fr; }
  .g-steps li::before { font-size: 26px; }
}
