/* Loyalty cards page (21 Oct 2026): the three example cards are the hero.
   Hover lifts a card, click opens it full screen with its Google twin. */

.ly-stage { padding: 56px var(--side) 96px; overflow-x: clip; overflow-y: visible; }
.ly-fan { position: relative; max-width: 1180px; margin: 0 auto; display: flex; justify-content: center; align-items: center; gap: 0; perspective: 1600px; }
.ly-card { position: relative; flex: 0 1 360px; margin: 0 -18px; padding: 0; border: 0; background: none; cursor: zoom-in;
  transform: rotate(var(--r)) translateY(var(--y)); transition: transform .55s cubic-bezier(.16,1,.3,1), filter .4s ease, opacity .4s ease; z-index: 1; }
.ly-card:nth-child(1) { --r: -6deg; --y: 22px; }
.ly-card:nth-child(2) { --r: 0deg; --y: -6px; z-index: 2; }
.ly-card:nth-child(3) { --r: 6deg; --y: 22px; }
.ly-card img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 2px 4px rgba(10,31,68,.08), 0 40px 70px -24px rgba(10,31,68,.45); transition: box-shadow .5s ease; }
.ly-card:nth-child(2) img { border-radius: 26px; }
.ly-fan:hover .ly-card { opacity: .55; filter: saturate(.7); }
.ly-fan .ly-card:hover, .ly-fan .ly-card:focus-visible { opacity: 1; filter: none; z-index: 5; transform: rotate(0deg) translateY(-28px) scale(1.09); }
.ly-fan .ly-card:hover img { box-shadow: 0 2px 4px rgba(10,31,68,.1), 0 60px 90px -26px rgba(10,31,68,.55); }
.ly-card:focus-visible { outline: 3px solid var(--brand); outline-offset: 8px; border-radius: 18px; }
.ly-cap { display: block; margin-top: 26px; text-align: center; font: 500 13px/1.3 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); transition: color .3s, transform .55s cubic-bezier(.16,1,.3,1); transform: rotate(calc(-1 * var(--r))); }
.ly-cap b { display: block; margin-bottom: 4px; font: 400 20px/1.2 var(--font-sans); letter-spacing: -.02em; text-transform: none; color: var(--ink); }
.ly-card:hover .ly-cap { color: var(--brand); }
.ly-hint { margin: 34px 0 0; text-align: center; font: 400 15px/1.5 var(--font-sans); color: var(--muted); }

/* Real screens: clean, rounded, no drawn phone around them */
.ly-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.ly-pair .ly-shot:nth-child(2) { margin-top: 56px; }
.ly-shot { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.ly-shot img { display: block; width: 100%; height: auto; border-radius: 26px; box-shadow: 0 0 0 1px rgba(10,31,68,.08), 0 34px 60px -22px rgba(10,31,68,.4); }
.ly-shot:hover { transform: translateY(-8px); }
.ly-shot--desk img { border-radius: 12px; }
.ly-desk { position: relative; padding: 0 12% 14% 0; }
.ly-desk .ly-shot--phone { position: absolute; right: 0; bottom: 0; width: 27%; }
.ly-desk .ly-shot--phone img { border-radius: 18px; }

/* Full screen view */
.ly-lb { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 40px 24px; background: rgba(8,12,24,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ly-lb.is-open { display: flex; animation: lyfade .3s ease; }
@keyframes lyfade { from { opacity: 0; } }
.ly-lb-in { display: flex; flex-direction: column; align-items: center; gap: 26px; max-width: 1100px; width: 100%; max-height: 100%; }
.ly-lb-imgs { display: flex; justify-content: center; align-items: center; gap: 36px; min-height: 0; max-height: calc(100vh - 220px); }
.ly-lb-imgs img { display: block; max-height: calc(100vh - 220px); max-width: min(440px, 44vw); width: auto; height: auto; border-radius: 16px; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 40px 90px -20px rgba(0,0,0,.7); animation: lypop .45s cubic-bezier(.16,1,.3,1); }
.ly-lb-imgs img.is-wide { max-width: min(1100px, 92vw); }
@keyframes lypop { from { transform: translateY(18px) scale(.96); opacity: 0; } }
.ly-lb-text { max-width: 60ch; text-align: center; color: #EEF1F8; }
.ly-lb-text b { display: block; font: 400 26px/1.2 var(--font-sans); letter-spacing: -.02em; }
.ly-lb-text span { display: block; margin-top: 8px; font: 400 15px/1.55 var(--font-sans); color: #AAB3C6; }
.ly-lb button { position: absolute; display: grid; place-content: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font: 400 24px/1 var(--font-sans); cursor: pointer; transition: background .2s; }
.ly-lb button:hover { background: rgba(255,255,255,.22); }
.ly-lb-x { top: 22px; right: 22px; }
.ly-lb-prev { left: 22px; top: 50%; margin-top: -24px; }
.ly-lb-next { right: 22px; top: 50%; margin-top: -24px; }
.ly-lb.is-single .ly-lb-prev, .ly-lb.is-single .ly-lb-next { display: none; }
html.ly-locked { overflow: hidden; }

@media (max-width: 900px) {
  .ly-stage { padding: 0 0 72px; }
  .ly-fan { justify-content: flex-start; gap: 18px; padding: 30px var(--side) 10px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .ly-fan::-webkit-scrollbar { display: none; }
  .ly-card { flex: 0 0 74%; margin: 0; scroll-snap-align: center; --r: 0deg !important; --y: 0px !important; }
  .ly-fan:hover .ly-card { opacity: 1; filter: none; }
  .ly-fan .ly-card:hover { transform: none; }
  .ly-lb-imgs { flex-direction: column; gap: 18px; max-height: none; overflow-y: auto; }
  .ly-lb-imgs img { max-width: 86vw; max-height: none; }
  .ly-lb-prev, .ly-lb-next { top: auto; bottom: 18px; margin: 0; }
}
@media (max-width: 600px) {
  .ly-pair { gap: 12px; }
  .ly-pair .ly-shot:nth-child(2) { margin-top: 32px; }
  .ly-shot img { border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .ly-card, .ly-shot, .ly-card img { transition: none; }
  .ly-lb.is-open, .ly-lb-imgs img { animation: none; }
}
.ly-fan .ly-card:hover .ly-cap { transform: none; }

/* The hint reads differently on touch screens */
.ly-hint-touch { display: none; }
@media (max-width: 900px) {
  .ly-hint { margin: 22px var(--side) 0; font-size: 14px; }
  .ly-hint-desk { display: none; }
  .ly-hint-touch { display: inline; }
  .ly-cap { margin-top: 18px; font-size: 11px; letter-spacing: .08em; }
  .ly-cap b { font-size: 18px; }
  .ly-card { flex-basis: 78%; }
}

/* A smaller fan for the Digital products row: each card links to the page */
.ly-mini { position: relative; display: flex; justify-content: center; align-items: center; padding: 34px 0 40px; }
.ly-mini a { position: relative; flex: 0 1 34%; margin: 0 -3%; transform: rotate(var(--r)) translateY(var(--y)); transition: transform .55s cubic-bezier(.16,1,.3,1), opacity .4s ease; z-index: 1; }
.ly-mini a:nth-child(1) { --r: -7deg; --y: 16px; }
.ly-mini a:nth-child(2) { --r: 0deg; --y: -6px; z-index: 2; }
.ly-mini a:nth-child(3) { --r: 7deg; --y: 16px; }
.ly-mini img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 2px 4px rgba(10,31,68,.08), 0 30px 54px -20px rgba(10,31,68,.45); }
.ly-mini a:nth-child(2) img { border-radius: 18px; }
.ly-mini:hover a { opacity: .6; }
.ly-mini a:hover, .ly-mini a:focus-visible { opacity: 1; z-index: 5; transform: rotate(0deg) translateY(-18px) scale(1.08); }
@media (prefers-reduced-motion: reduce) { .ly-mini a { transition: none; } }

/* Lock screen: what a message from the card looks like on a phone */
.ly-lock { position: relative; border-radius: 28px; padding: 46px 26px 34px; overflow: hidden; color: #fff;
  background: radial-gradient(120% 80% at 50% 0%, #2b4a8f 0%, #13254d 45%, #0b1b3a 100%); box-shadow: 0 40px 70px -28px rgba(10,31,68,.55); }
.ly-lock-date { margin: 0; text-align: center; font: 500 17px/1.2 -apple-system, "SF Pro Text", var(--font-sans); opacity: .85; }
.ly-lock-time { margin: 2px 0 30px; text-align: center; font: 600 clamp(64px, 7vw, 92px)/1 -apple-system, "SF Pro Display", var(--font-sans); letter-spacing: -.03em; }
.ly-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 10px; padding: 13px 14px; border-radius: 20px;
  background: rgba(245,245,250,.62); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); color: #111;
  font-family: -apple-system, "SF Pro Text", var(--font-sans); }
.ly-note img { flex: none; width: 38px; height: 38px; border-radius: 9px; object-fit: cover; }
.ly-note div { flex: 1; min-width: 0; }
.ly-note b { display: flex; justify-content: space-between; font-size: 15px; font-weight: 600; }
.ly-note b small { font-size: 13px; font-weight: 400; color: rgba(0,0,0,.5); }
.ly-note p { margin: 2px 0 0; font-size: 15px; line-height: 1.3; }
.ly-note--back { transform: scale(.94); opacity: .75; margin-top: -54px; position: relative; z-index: -1; }

/* Email, text or Wallet: a plain comparison */
.ly-compare { padding-top: 72px; padding-bottom: 80px; border-top: 1px solid var(--line); }
.ly-table { width: 100%; border-collapse: collapse; font: 400 16px/1.45 var(--font-sans); }
.ly-table th, .ly-table td { text-align: left; vertical-align: top; padding: 18px 20px 18px 0; border-bottom: 1px solid var(--line); }
.ly-table thead th { font: 500 12px/1.3 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ly-table tbody th { width: 22%; font-weight: 500; color: var(--ink); }
.ly-table td { color: var(--muted); }
.ly-table td:last-child { color: var(--ink); font-weight: 500; }
.ly-table thead th:last-child { color: var(--brand); }
@media (max-width: 700px) {
  .ly-table thead { display: none; }
  .ly-table tr { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .ly-table th, .ly-table td { display: block; width: auto !important; padding: 3px 0; border: 0; }
  .ly-table td::before { content: attr(data-l) ": "; color: var(--muted); font-weight: 400; }
}

/* Add to Wallet badges */
.ly-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.ly-badges img { display: block; height: 46px; width: auto; }
.ly-badges a { display: block; border-radius: 8px; transition: opacity .2s ease; }
.ly-badges a:hover { opacity: .85; }
.ly-badges span { font: 400 14px/1.4 var(--font-sans); color: var(--muted); }
.ly-badges--center { justify-content: center; margin-top: 40px; }

/* ===== Page layout (21 Oct 2026, v4): big visuals, few words ===== */
.lp .lp-hero { background: radial-gradient(90% 120% at 75% 10%, #1f3d7a 0%, #0b1b3a 55%, #070f22 100%); color: #fff; overflow: hidden; }
.lp-hero-in { max-width: var(--max); margin: 0 auto; padding: 72px var(--side) 0; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; }
.lp-hero-text { padding-bottom: 120px; }
.lp-kicker { margin: 0 0 22px; font: 500 12px/1.3 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: #9db6ff; }
.lp-kicker a { color: inherit; }
.lp-h1 { margin: 0; font: 400 clamp(46px, 6vw, 96px)/.98 var(--font-sans); letter-spacing: -.05em; }
.lp-h1 span { color: #7fa2ff; }
.lp-lede { margin: 26px 0 0; max-width: 30ch; font: 400 20px/1.45 var(--font-sans); color: #c7d2ea; }
.lp-hero-phone { display: block; width: 100%; max-width: 440px; height: auto; justify-self: center; margin-bottom: -140px; filter: drop-shadow(0 50px 60px rgba(0,0,0,.5)); }
.lp-band { max-width: var(--max); margin: 0 auto; padding: 120px var(--side) 40px; }
.lp-band--dark { max-width: none; background: #0b1b3a; color: #fff; padding-bottom: 110px; }
.lp-band--dark > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.lp-band--tint { max-width: none; background: #EFE8DC; padding-bottom: 100px; }
.lp-band--tint > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.lp-h2 { margin: 0 0 14px; text-align: center; font: 400 clamp(36px, 4.4vw, 68px)/1.02 var(--font-sans); letter-spacing: -.04em; color: inherit; }
.lp-h2 span { color: var(--brand); }
.lp-band--dark .lp-h2 span { color: #7fa2ff; }
.lp-sub { margin: 0 auto 10px; max-width: 46ch; text-align: center; font: 400 18px/1.5 var(--font-sans); color: var(--muted); }
.lp-band .ly-stage { padding-top: 70px; }
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 56px; }
.lp-step { margin: 0; }
.lp-step .ly-shot img { border-radius: 30px; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 70px -30px rgba(0,0,0,.8); }
.lp-step figcaption { margin-top: 22px; text-align: center; font: 400 16px/1.4 var(--font-sans); color: #aab7d3; }
.lp-step figcaption b { display: block; margin-bottom: 4px; font: 400 26px/1.15 var(--font-sans); letter-spacing: -.02em; color: #fff; }
.lp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding-bottom: 120px; }
.lp-split .lp-h2, .lp-split .lp-sub { text-align: left; margin-left: 0; }
.lp-vs-row { display: grid; gap: 10px; margin-top: 30px; }
.lp-vs { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 22px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.lp-vs span { font: 500 13px/1.3 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lp-vs b { font: 400 20px/1.2 var(--font-sans); letter-spacing: -.01em; color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(92,107,135,.4); }
.lp-vs--win { background: #0b1b3a; border-color: #0b1b3a; }
.lp-vs--win span { color: #9db6ff; }
.lp-vs--win b { color: #fff; text-decoration: none; }
.lp-owner { margin-top: 50px; }
.lp-owner .ly-shot img { border-radius: 16px; }
.lp .ly-note img[src$="halfmoon-icon.png"] { background: #141B2D; }
@media (max-width: 900px) {
  .lp-hero-in { grid-template-columns: 1fr; padding-top: 48px; }
  .lp-hero-text { padding-bottom: 10px; }
  .lp-hero-phone { max-width: 300px; margin-bottom: -90px; }
  .lp-band { padding-top: 90px; }
  .lp-band .ly-stage { padding-top: 30px; }
  .lp-steps { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 70%; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin-left: calc(-1 * var(--side)); margin-right: calc(-1 * var(--side)); padding: 0 var(--side); scrollbar-width: none; }
  .lp-steps::-webkit-scrollbar { display: none; }
  .lp-step { scroll-snap-align: center; }
  .lp-split { grid-template-columns: 1fr; gap: 40px; }
}
.lp-step .ly-shot img { aspect-ratio: 390 / 700; object-fit: cover; object-position: top; }
@media (max-width: 900px) { .lp-band .ly-stage { margin-left: calc(-1 * var(--side)); margin-right: calc(-1 * var(--side)); } }

/* v6: real iPhone phones for the steps and lock screen */
.lp-steps { align-items: start; }
.lp-step .lp-phone { display: block; width: 100%; padding: 0; background: none; border: 0; cursor: zoom-in; }
.lp-step .lp-phone img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; border-radius: 0; box-shadow: none; filter: drop-shadow(0 34px 40px rgba(0,0,0,.55)); }
.lp-step figcaption { margin-top: 26px; }
.lp-lock { display: block; width: 100%; max-width: 380px; height: auto; justify-self: center; filter: drop-shadow(0 40px 50px rgba(10,31,68,.35)); }
.lp-owner-notes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; margin-top: 48px; }
.lp-owner-notes div { border-top: 2px solid var(--ink); padding-top: 16px; }
.lp-owner-notes b { display: block; margin-bottom: 8px; font: 400 22px/1.15 var(--font-sans); letter-spacing: -.02em; color: var(--ink); }
.lp-owner-notes p { margin: 0; font: 400 15px/1.5 var(--font-sans); color: var(--muted); }
@media (max-width: 900px) { .lp-owner-notes { grid-template-columns: 1fr 1fr; gap: 26px; } .lp-lock { max-width: 300px; } }
@media (max-width: 520px) { .lp-owner-notes { grid-template-columns: 1fr; } }
/* the full screen view fades in once its images have loaded */
.ly-lb-imgs { transition: opacity .3s ease; }
.ly-lb-imgs.is-loading { opacity: 0; }
.ly-lb-imgs img { animation: none; }
.ly-lb-imgs.is-ready img { animation: lypop .45s cubic-bezier(.16,1,.3,1); }
.ly-lb-imgs img.is-phone { box-shadow: none; border-radius: 0; filter: drop-shadow(0 40px 60px rgba(0,0,0,.6)); }
/* v7: cards and steps are not clickable; hover still lifts a card */
.ly-card { cursor: default; }
.lp-step .lp-phone { cursor: default; }

/* Tap plates */
.lp-plates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 56px; }
.lp-plate { margin: 0; text-align: center; }
/* box-shadow, not filter: a filtered layer shows as a faint square on the page background. */
.lp-plate img { display: block; width: 100%; height: auto; border-radius: 5.8%; box-shadow: 0 26px 44px -14px rgba(10,31,68,.3), 0 4px 8px rgba(10,31,68,.08); }
.lp-plate figcaption { margin-top: 20px; font: 400 15px/1.4 var(--font-sans); color: var(--muted); }
/* Phones: a swipeable stack. The plate in the middle sits on top and the
   others tuck in behind it, shrunk (loyalty.js sets --d per plate). */
@media (max-width: 760px) {
  .lp-plates { display: flex; gap: 0; margin: 36px calc(-1 * var(--side)) 0; padding: 30px 15vw 80px; margin-bottom: -50px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .lp-plates::-webkit-scrollbar { display: none; }
  .lp-plate { --d: 0; flex: 0 0 70vw; margin-right: -14vw; scroll-snap-align: center; position: relative;
    transform: scale(calc(1 - .16 * min(var(--d), 1.5))); opacity: calc(1 - .35 * min(var(--d), 1)); }
  .lp-plate:last-child { margin-right: 0; }
  .lp-plate figcaption { opacity: calc(1 - min(var(--d), 1)); }
}

/* Phones: the example cards swipe as a stack too, like the tap plates. */
@media (max-width: 760px) {
  .lp .ly-fan { gap: 0; padding: 30px 15vw 70px; margin-bottom: -40px; }
  .lp .ly-card, .lp .ly-card:nth-child(n) { flex: 0 0 70vw; margin: 0 -14vw 0 0; transition: none;
    transform: scale(calc(1 - .16 * min(var(--d, 0), 1.5))); opacity: calc(1 - .35 * min(var(--d, 0), 1)); }
  .lp .ly-card:last-child { margin-right: 0; }
  .lp .ly-card .ly-cap { opacity: calc(1 - min(var(--d, 0), 1)); }
}

/* Computers: the navy hero runs up under the clear top bar, so the name
   turns white over it (on phones the bar stays solid cream). */
@media (min-width: 561px) {
  .lp .lp-hero { margin-top: -76px; padding-top: 76px; }
  /* a solid base under the gradient: script.js reads background-color to decide the name goes white */
  .lp .lp-hero { background-color: #0b1b3a; }
}

/* The loop's copies only exist for the phone stack. */
.is-clone { display: none; }
@media (max-width: 760px) { .lp-plates .is-clone, .lp .ly-fan .is-clone { display: block; } }
