/* HUGO-2467 — /jak-zacit/tap-to-pay/: the Tap to Pay on Android guide. Page layout only;
   tokens, nav, buttons, .checks, .sec/.sec-head and .cta-band come from sub.css. The
   fact tiles and numbered cards follow /eet (eet.css) so the two guides read alike. */
.ttp-facts, .ttp-steps, .ttp-pay-steps { list-style: none; margin: 0; padding: 0; }

/* ---------- hero ---------- */
.ttp-hero { padding-bottom: 24px; }
.ttp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: center; }
.ttp-hero h1 { max-width: 15ch; }
.ttp-hero-img { display: block; width: 100%; height: auto; }
.ttp-updated { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.ttp-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font-size: 14px; color: var(--muted); }
.ttp-crumbs a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.ttp-facts { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ttp-facts li { display: grid; align-content: start; gap: 6px; padding: 22px 24px; font-size: 15.5px; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); }
.ttp-facts b { font: 800 clamp(26px, 3vw, 38px)/1.05 var(--display); letter-spacing: -.03em; color: var(--ink); }
.ttp-facts a { text-decoration: underline; text-underline-offset: 3px; }
.ttp-fact-k { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ttp-facts .is-hugo { background: var(--yellow); border-color: var(--yellow-deep); }
.ttp-facts .is-hugo .ttp-fact-k { color: var(--ink-2); }

/* ---------- what you need ---------- */
.checks .t a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ttp-off { max-width: 760px; margin-top: 28px; padding: 22px 24px; border: 1px dashed #14110d4d; border-radius: var(--radius-md); }
.ttp-off h3 { margin-bottom: 8px; font-size: 19px; font-weight: 700; }
.ttp-off p { font-size: 16px; color: var(--ink-2); }

/* ---------- seven steps ---------- */
.ttp-steps { position: relative; display: grid; gap: 16px; max-width: 880px; counter-reset: none; }
.ttp-steps::before { content: ""; position: absolute; left: 21px; top: 30px; bottom: 30px; width: 2px; background: var(--cream-3); }
.ttp-step { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start; }
.ttp-n { position: relative; width: 44px; height: 44px; display: grid; place-items: center; font: 800 23px var(--display); background: var(--yellow); border-radius: 50%; box-shadow: 0 0 0 6px var(--cream); }
.ttp-body { display: grid; gap: 8px; padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: 26px; }
.ttp-where { justify-self: start; padding: 4px 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--cream); border-radius: var(--radius-pill); }
.ttp-body h3 { font: 700 22px/1.15 var(--display); letter-spacing: -.02em; }
.ttp-body p { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.ttp-body .ttp-path { justify-self: start; padding: 6px 12px; font-size: 14px; font-weight: 600; color: var(--ink); background: var(--hl); border-radius: 10px; }
.ttp-body .ttp-tip { padding-left: 14px; font-size: 14.5px; color: var(--muted); border-left: 3px solid var(--yellow-deep); }
.ttp-store { justify-self: start; margin-top: 2px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.ttp-store::after { content: " ↗"; }
.ttp-step.is-key .ttp-body { color: #fff; background: var(--ink); border-color: var(--ink); }
.ttp-step.is-key .ttp-body p { color: #cfc8bb; }
.ttp-step.is-key .ttp-where { color: var(--ink); background: var(--yellow); }
.ttp-step.is-key .ttp-store { color: var(--yellow); }
.ttp-step.is-key .ttp-store:focus-visible { outline-color: var(--yellow); }
.ttp-key { position: absolute; left: 80px; top: -11px; z-index: 1; padding: 5px 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: var(--yellow); border-radius: var(--radius-pill); }
.ttp-step.is-key { margin-top: 8px; }

/* ---------- what paying looks like ---------- */
.ttp-pay { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: center; }
.ttp-pay-steps { display: grid; gap: 14px; counter-reset: pay; }
.ttp-pay-steps li { counter-increment: pay; display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); }
.ttp-pay-steps li::before { content: counter(pay); grid-row: span 2; width: 34px; height: 34px; display: grid; place-items: center; font: 800 17px var(--display); background: var(--yellow); border-radius: 50%; }
.ttp-pay-steps b { font: 700 19px/1.2 var(--display); letter-spacing: -.02em; }
.ttp-pay-steps span { font-size: 15px; color: var(--muted); }
.ttp-phone { margin: 0; display: grid; justify-items: center; gap: 10px; }
.ttp-phone-screen { width: 230px; aspect-ratio: 9 / 18; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; background: #fff; border: 10px solid var(--ink); border-radius: 38px; box-shadow: 0 30px 50px -30px rgba(20,17,13,.55); }
.ttp-phone-k { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ttp-phone-amt { font: 800 40px/1 var(--display); letter-spacing: -.03em; }
.ttp-phone-nfc { width: 86px; height: 86px; margin-top: 18px; display: grid; place-items: center; background: var(--yellow); border-radius: 50%; animation: ttp-pulse 2.4s ease-out infinite; }
.ttp-phone-nfc svg { width: 40px; height: 40px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.ttp-phone-hint { font-weight: 600; font-size: 15px; }
.ttp-phone figcaption { font-size: 12px; color: var(--muted); }
@keyframes ttp-pulse { 0% { box-shadow: 0 0 0 0 rgba(242,200,0,.55); } 70%, 100% { box-shadow: 0 0 0 22px rgba(242,200,0,0); } }
@media (prefers-reduced-motion: reduce) { .ttp-phone-nfc { animation: none; } }

/* ---------- FAQ ---------- */
.ttp-faq { display: grid; gap: 12px; max-width: 880px; }
.ttp-faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); }
.ttp-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 22px; font: 700 18px/1.3 var(--display); letter-spacing: -.01em; }
.ttp-faq summary::-webkit-details-marker { display: none; }
.ttp-faq summary::after { content: "+"; flex: 0 0 auto; font-size: 24px; line-height: 1; color: var(--muted); }
.ttp-faq details[open] summary::after { content: "−"; }
.ttp-faq p { padding: 0 22px 20px; font-size: 16px; color: var(--ink-2); }
.ttp-faq a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- closing CTA ---------- */
.ttp-end { padding-top: 24px; }
.ttp-cta-actions { display: grid; justify-items: start; gap: 12px; }
.ttp-cta-login { font-size: 14.5px; color: #cfc8bb; text-decoration: underline; text-underline-offset: 3px; }
.cta-band a:focus-visible { outline-color: var(--yellow); }

@media (max-width: 900px) {
  .ttp-hero-grid { grid-template-columns: 1fr; }
  .ttp-hero-img { max-width: 440px; margin: 0 auto; }
  .ttp-pay { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .ttp-facts { grid-template-columns: 1fr; margin-top: 28px; }
}
@media (max-width: 560px) {
  .ttp-steps::before { left: 17px; }
  .ttp-step { grid-template-columns: 36px 1fr; gap: 12px; }
  .ttp-n { width: 36px; height: 36px; font-size: 19px; }
  .ttp-body { padding: 18px; }
  .ttp-key { left: 62px; }
  .ttp-cta-actions, .ttp-cta-actions .btn { width: 100%; }
  .ttp-cta-actions .btn { white-space: normal; }
}
