/* Payments & Invoices for HVAC: "the check that never has to be mailed". The only pale-blue bank-check hero: guilloche
   check paper, ink navy and a deep teal accent. Copy left; on the right a big paper check lies tilted behind the
   homeowner's phone, with the job ticket below it and the owner's payment alert above it. No split panel. Differs from Leads (sunset), Ads (royal blue technician), SEO Audit (teal AI card), Rank Tracker
   (violet dusk leaderboard), Review Manager (charcoal phone left), Smart Inbox (wine, centered), Pipeline (evergreen
   board), Ignite (daylight street map) and Scheduling (midnight navy, three columns).
   Below the hero it is the same road-map system as hvac-scheduling.css: phones stack the stops along a vertical road;
   from 1280px each stop is a full-width row and hvac-payments.js draws the winding road from measured positions.
   Every demo is one card with a data-state; variants share one .py-stack cell so nothing shifts. */

.rb-payments-page {
  --rb-bg: #e9f0f6;
  background: var(--rb-bg);
  color: #10233f;
}
.py-main { min-width: 0; }
.py-main > footer { width: auto; margin: 0; padding-inline: 24px; }
.py :is(a, button, summary):focus-visible { outline: 3px solid #0d8a7f; outline-offset: 3px; }

/* ---------------------------------------------------------------- shared */
.py {
  --ink: #10233f;
  --ink2: #3a4a5e;
  --muted: #647389;
  --paper: #e9f0f6;
  --paper2: #f6f9fc;
  --green: #0d8a7f;
  --green-deep: #10233f;
  --mint: #7fe3d6;
  --go: #0f9d58;
  --asphalt: #464b55;
  --road-edge: #f6f9fc;
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  background:
    radial-gradient(ellipse 40% 30% at 0% 30%, rgba(13, 138, 127, .06), transparent 70%),
    radial-gradient(ellipse 40% 30% at 100% 66%, rgba(194, 65, 12, .05), transparent 70%),
    linear-gradient(180deg, #e9eff5 0%, #f3f6fa 40%, #edf2f7 72%, #e4ebf2 100%);
}
.py *, .py *::before, .py *::after { box-sizing: border-box; }
:where(.py) :where(h1, h2, h3, p, ul, ol, figure, blockquote) { margin: 0; padding: 0; }
:where(.py) :where(ul, ol) { list-style: none; }
.py img { display: block; max-width: none; }
.py svg { display: block; overflow: visible; }
.py h1, .py h2, .py h3, .py-pin b, .py-brand__logo, .py-bigcard b {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.py h1 em, .py h2 em { font-family: inherit; font-style: normal; letter-spacing: inherit; color: var(--green); }
.py-i { width: 22px; height: 22px; flex: 0 0 auto; }
.py-cap { color: var(--muted); font-size: 12px; }
.py [hidden] { display: none !important; }

.py-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: linear-gradient(180deg, #12a193 0%, #0b7a70 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2) inset, 0 10px 24px rgba(13, 138, 127, .3);
  color: #fff;
  font: 700 16px/1.1 "DM Sans", sans-serif;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.py-btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .3) inset, 0 14px 30px rgba(13, 138, 127, .42); }
.py-btn .py-i { width: 18px; height: 18px; }
.py-btn--ghost { border-color: rgba(16, 35, 63, .28); background: transparent; box-shadow: none; color: var(--ink); }
.py-btn--ghost:hover { color: var(--ink); border-color: var(--ink); background: rgba(16, 35, 63, .05); box-shadow: none; }
.py-plan .py-btn--ghost { border-color: rgba(255, 255, 255, .4); color: #fff; }
.py-plan .py-btn--ghost:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .08); }
.py-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.py-note { font-family: "Caveat", cursive; font-weight: 700; font-size: 30px; line-height: .95; color: #1a2b44; }
.py-note u { color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.py-checks { display: flex; flex-direction: column; gap: 9px; }
.py-checks li { display: flex; align-items: flex-start; gap: 10px; font-size: 15.5px; font-weight: 500; line-height: 1.3; }
.py-checks svg { width: 20px; height: 20px; flex: 0 0 auto; }
.py-ok { color: var(--go); }
.py-no { color: #b3bfcc; }

/* One-look demos: every variant of a card sits in the same grid cell, so switching never moves the page. */
.py-stack { display: grid; }
.py-stack > * { grid-area: 1 / 1; min-width: 0; }
.py [data-show] { transition: opacity .35s ease, visibility .35s; }
.py .is-off { opacity: 0; visibility: hidden; }

.py-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, var(--paper2) 100%);
  box-shadow: 0 18px 36px rgba(16, 35, 63, .1), 0 2px 5px rgba(16, 35, 63, .05), 0 0 0 1px rgba(16, 35, 63, .07);
  transition: transform .2s ease, box-shadow .2s ease;
}
.py-dark {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(127, 227, 214, .2);
  border-radius: 18px;
  background: linear-gradient(160deg, #1b3456 0%, #132a47 55%, #0d1f37 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 2px 4px rgba(16, 35, 63, .18), 0 16px 30px -8px rgba(16, 35, 63, .38), 0 36px 64px -20px rgba(16, 35, 63, .45);
  color: #eef3fa;
  transition: transform .2s ease, box-shadow .2s ease;
}
.py-card:hover, .py-dark:hover { transform: translateY(-2px); }
.py-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.py-card__head b, .py-dep__top b, .py-remind__head b, .py-sync__job b { display: block; font-size: 16px; }
.py-card__head small, .py-dep__top small, .py-remind__head small, .py-sync__job small { display: block; color: var(--muted); font-size: 13px; }
.py-dark small { color: #a9bdd6; }
.py-status { flex: 0 0 auto; justify-items: end; }
.py-status span { padding: 4px 10px; border-radius: 999px; background: #e3eaf2; color: #4a5a70; font-size: 12px; font-weight: 800; white-space: nowrap; }
.py-status .py-status--done { background: var(--green); color: #fff; }
.py-logo { display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 auto; border-radius: 8px; background: var(--green); color: #fff; font: 700 14px/1 "Space Grotesk", sans-serif; }
.py-bub { padding: 10px 12px; border-radius: 16px 16px 16px 5px; background: #e9eef4; color: #182536; font-size: 13.5px; line-height: 1.42; overflow-wrap: anywhere; }
.py-bub u { color: #0b6f66; }
.py-bub--receipt { border-radius: 14px; background: #def3ef; box-shadow: inset 3px 0 0 var(--go); }
.py-paybtn { display: block; padding: 11px 14px; border-radius: 12px; background: var(--green); color: #fff; font-size: 15px; font-weight: 800; text-align: center; }
.py-paybtn.is-busy { background: #cde6e2; color: #245a54; }
.py-pill { justify-self: start; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-style: normal; font-weight: 800; }
.py-pill--open { background: #fde9d4; color: #9a4a0e; }
.py-pill--paid { background: var(--go); color: #fff; }

/* ---------------------------------------------------------------- hero */
/* Pale-blue bank-check paper with a fine guilloche wave pattern across the whole hero. */
.py-hero {
  position: relative;
  padding: 26px 16px 44px;
  overflow: hidden;
  color: var(--ink);
  background:
    repeating-radial-gradient(circle at 78% 42%, rgba(16, 35, 63, .045) 0 1px, transparent 1px 11px),
    repeating-linear-gradient(115deg, rgba(13, 138, 127, .035) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, #e9f0f6 0%, #dde7f0 100%);
}
.py-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: repeating-linear-gradient(90deg, #10233f 0 14px, transparent 14px 22px); opacity: .18; }
.py-hero__in { position: relative; z-index: 1; display: grid; gap: 26px; max-width: 1360px; margin: 0 auto; }
.py-hero__copy { display: grid; gap: 16px; justify-items: start; }
.py-brand { display: grid; gap: 8px; }
.py-brand__logo { display: flex; align-items: center; gap: 10px; font-size: 26px; }
.py-brand__logo svg { width: 38px; height: 38px; }
.py-eyebrow { color: var(--green); font-size: 14px; font-weight: 700; line-height: 1.3; }
.py h1 { margin: 0; font-size: clamp(34px, 8.6vw, 44px); line-height: 1.02; }
.py h1 em { display: block; }
.py-hero__sub { max-width: 620px; color: var(--ink2); font-size: 17px; line-height: 1.5; text-wrap: pretty; }
.py-signals { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.py-signals li { display: flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 600; }
.py-signals svg { width: 18px; height: 18px; }
.py-note--hero { transform: rotate(-3deg); }

.py-hpay { position: relative; isolation: isolate; display: grid; gap: 12px; justify-items: center; width: min(100%, 330px); margin: 8px auto 0; }
/* The paper check nobody has to mail anymore: static decor tilted behind the phone. */
.py-bankcheck { position: absolute; z-index: -1; top: 40%; left: 50%; display: grid; gap: 10px; width: 470px; padding: 18px 250px 20px 22px; border: 1px solid rgba(16, 35, 63, .16); border-radius: 10px; background: repeating-linear-gradient(135deg, rgba(13, 138, 127, .07) 0 2px, transparent 2px 9px), #f6fafc; box-shadow: 0 22px 44px -16px rgba(16, 35, 63, .35); color: #4b5b72; font-size: 12px; transform: translate(-92%, -50%) rotate(-8deg); }
.py-bankcheck p { display: grid; gap: 3px; }
.py-bankcheck b { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 10px; }
.py-bankcheck i { border-bottom: 1px solid rgba(16, 35, 63, .3); font: 700 21px/1.1 "Caveat", cursive; font-style: normal; color: #2a3b55; white-space: nowrap; }
.py-bankcheck u { justify-self: start; padding: 3px 10px; border: 1px solid rgba(16, 35, 63, .3); text-decoration: none; font: 700 22px/1 "Caveat", cursive; color: #2a3b55; }
.py-bankcheck__num { font-family: ui-monospace, monospace; letter-spacing: .12em; opacity: .7; }
.py-alertslot { width: 100%; }
.py-alert { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .96); box-shadow: 0 14px 30px rgba(0, 0, 0, .3); color: var(--ink); }
.py-alert__icon { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; border-radius: 9px; background: var(--go); color: #fff; font: 700 17px/1 "Space Grotesk", sans-serif; }
.py-alert b { display: block; font-size: 14px; }
.py-alert small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.py-device {
  position: relative;
  width: 260px;
  padding: 9px;
  border-radius: 40px;
  background: linear-gradient(145deg, #3a404c 0%, #1c2029 45%, #2c313b 100%);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .12) inset, 0 30px 60px -18px rgba(0, 0, 0, .7), 0 12px 24px -10px rgba(0, 0, 0, .5);
}
.py-device__status { position: absolute; z-index: 3; top: 9px; left: 9px; right: 9px; display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 0 22px; color: #101522; font-size: 12.5px; }
.py-device__island { width: 76px; height: 22px; border-radius: 999px; background: #05070b; }
.py-device__status i { width: 22px; height: 11px; border: 1.5px solid #101522; border-radius: 3px; }
.py-device__screen { min-height: 360px; overflow: hidden; border-radius: 32px; background: #fff; color: var(--ink); }
.py-scr { display: grid; align-content: start; gap: 11px; padding: 50px 14px 16px; }
.py-scr__from { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.py-scr__label { color: var(--muted); font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.py-scr__time, .py-scr__lock { color: var(--muted); font-size: 11.5px; }
.py-scr--text .py-bub { margin-top: 8px; }
.py-inv { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 14px; border-radius: 14px; background: #eef3f8; }
.py-inv b { display: block; font-size: 15px; }
.py-inv small { display: block; color: var(--muted); font-size: 12px; }
.py-inv__bal { text-align: right; }
.py-inv__bal b { font: 700 22px/1.1 "Space Grotesk", sans-serif; }
.py-scr--paid { justify-items: center; align-content: center; min-height: 360px; padding-top: 44px; text-align: center; }
.py-scr--paid > b { font: 700 22px/1 "Space Grotesk", sans-serif; }
.py-scr--paid .py-bub { text-align: left; }
.py-check { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--go); color: #fff; box-shadow: 0 0 0 8px rgba(15, 157, 88, .14); }
.py-check .py-i { width: 34px; height: 34px; }
.py-ticket { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; width: 100%; padding: 12px 16px; border-radius: 12px; background: #f6f9fc; box-shadow: 0 14px 28px rgba(0, 0, 0, .28); color: var(--ink); transform: rotate(-1.5deg); }
.py-ticket b { display: block; font-size: 15px; }
.py-ticket small { display: block; color: var(--muted); font-size: 12.5px; }
.py-ticket__amt { font: 700 20px/1 "Space Grotesk", sans-serif; }
.py-ticket .py-stack { grid-column: 1 / -1; }
.py-hpay__cap { color: var(--ink); font-size: 14px; font-weight: 700; text-align: center; }

/* ---------------------------------------------------------------- road + steps (phones first) */
.py-course { position: relative; }
.py .py-road, .py .py-drive { display: none; }
.py-step { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 20px; max-width: 780px; margin: 0 auto; padding: 34px 16px 34px 76px; }
.py-step::before, .py-finish::before { content: ""; position: absolute; left: 20px; top: 0; bottom: 0; width: 22px; background: var(--asphalt); box-shadow: 0 0 0 2.5px var(--road-edge), 0 0 0 3.5px #cfd9e4; }
.py-step::after, .py-finish::after { content: ""; position: absolute; left: 30px; top: 0; bottom: 0; border-left: 2px dashed #fff; }
.py-step > * { min-width: 0; }
.py-pin { position: absolute; z-index: 1; left: 0; top: 20px; width: 62px; height: 78px; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .3)); }
.py-pin svg { width: 100%; height: 100%; color: var(--pin); }
.py-pin b { position: absolute; left: 0; right: 0; top: 8px; color: #fff; font-size: 36px; text-align: center; }
@keyframes py-pin-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.py-step.is-in .py-pin, .py:not(.py-motion) .py-pin { animation: py-pin-bob 2.6s ease-in-out infinite; }
.py-step:nth-of-type(even) .py-pin { animation-delay: -1.3s; }
.py h2 { font-size: clamp(26px, 6.4vw, 32px); line-height: 1.08; }
.py-intro { display: grid; gap: 12px; align-content: start; }
.py-aside { display: grid; gap: 14px; justify-items: start; }
.py-sub { color: var(--ink2); font-size: 16px; line-height: 1.45; text-wrap: pretty; }
.py-visual { display: grid; gap: 12px; min-width: 0; max-width: 560px; container-type: inline-size; }

/* Stop 1: estimate */
.py-opts { display: grid; gap: 8px; }
.py-opts li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1.5px solid #d8e2ec; border-radius: 13px; background: #fff; transition: border-color .35s ease, background .35s ease, box-shadow .35s ease; }
.py-opts b { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 15px; }
.py-opts small { display: block; color: var(--muted); font-size: 13px; }
.py-opts strong { font: 700 18px/1 "Space Grotesk", sans-serif; }
.py-opts li.is-pick.is-on { border-color: var(--green); background: #e7f6f3; box-shadow: 0 0 0 3px rgba(13, 138, 127, .14); }
.py-rec { padding: 2px 8px; border-radius: 999px; background: #fff1c7; color: #7a5a00; font-size: 11px; font-style: normal; font-weight: 800; }
.py-est__sign { min-height: 88px; }
.py-est__cta { display: block; padding: 11px 14px; border-radius: 12px; background: var(--green); color: #fff; font-weight: 800; text-align: center; align-self: center; }
.py-est__field { display: grid; gap: 8px; }
.py-est__field small { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.py-typed { padding: 8px 12px; border-bottom: 2px solid var(--ink); font: 700 26px/1.1 "Caveat", cursive; }
.py-est__done { display: flex; align-items: center; gap: 12px; align-self: center; padding: 12px 14px; border-radius: 13px; background: #def3ef; }
.py-est__done > .py-i { width: 36px; height: 36px; padding: 7px; border-radius: 50%; background: var(--go); color: #fff; }
.py-est__done b { display: block; font-size: 15px; }
.py-est__done small { display: block; color: var(--ink2); font-size: 13px; }

/* Stop 2: deposit */
.py-dep__top { display: flex; justify-content: space-between; gap: 12px; }
.py-dep__total { text-align: right; }
.py-dep__total b { font: 700 22px/1.1 "Space Grotesk", sans-serif; }
.py-dep__slot { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 13px; background: rgba(255, 255, 255, .07); }
.py-dep__slot .py-i { color: var(--mint); }
.py-dep__slot b { display: block; font-size: 15px; }
.py-dep__slot small { display: block; font-size: 13px; }
.py-dep__pay { min-height: 118px; }
.py-dep__due, .py-dep__done { display: grid; gap: 12px; align-content: center; padding: 14px; border-radius: 14px; background: #fff; color: var(--ink); }
.py-dep__due p, .py-dep__done p { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.py-dep__due small, .py-dep__done small { color: var(--muted); font-size: 13px; }
.py-dep__due b { font: 700 22px/1 "Space Grotesk", sans-serif; }
.py-dep__done p:first-child { justify-content: flex-start; align-items: center; color: #0b6f66; }
.py-dep__done p:first-child b { font-size: 17px; }
.py-dep__done p:last-child b { font: 700 20px/1 "Space Grotesk", sans-serif; }

/* Stop 3: partial payment */
.py-part__bal { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px; border-radius: 14px; background: #eef3f8; }
.py-part__bal small { color: var(--muted); font-size: 13px; font-weight: 700; }
.py-part__bal b { font: 700 28px/1 "Space Grotesk", sans-serif; }
.py-part__bal .py-part__new { color: #0b6f66; }
.py-part__body { min-height: 112px; }
.py-part__hint { align-self: center; color: var(--ink2); font-size: 15px; text-align: center; }
.py-part__amt { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; align-self: center; }
.py-part__amt small { grid-column: 1 / -1; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.py-part__amt b { padding: 10px 12px; border: 1.5px solid var(--green); border-radius: 11px; font: 700 20px/1 "Space Grotesk", sans-serif; }
.py-part .py-bub { align-self: center; font-size: 14.5px; }

/* Stop 4: reminders */
.py-remind__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.py-remind__day { flex: 0 0 auto; justify-items: end; }
.py-remind__day span { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 12px; font-weight: 800; white-space: nowrap; }
.py-remind__day span:last-child { background: var(--go); }
.py-remind__thread { display: grid; align-content: end; min-height: 150px; padding: 14px; border-radius: 16px; background: #fff; }
.py-remind__thread .py-bub { opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .4s ease; }
.py-remind__thread .py-bub.is-on { opacity: 1; transform: none; }
.py-remind__foot p { display: flex; align-items: center; gap: 8px; color: #cddcee; font-size: 14px; font-weight: 700; }
.py-remind__stop { color: #fff !important; }
.py-remind__stop .py-i { width: 20px; height: 20px; color: var(--mint); }

/* Stop 5: payment link in an email */
.py-mail__body { color: var(--ink2); font-size: 15px; line-height: 1.5; }
.py-mail__slot { min-height: 128px; }
.py-menu { display: grid; gap: 6px; align-self: start; width: min(100%, 300px); padding: 8px; border-radius: 14px; background: #fff; box-shadow: 0 12px 28px rgba(16, 35, 63, .14), 0 0 0 1px rgba(16, 35, 63, .08); }
.py-menu li { display: grid; padding: 8px 10px; border-radius: 9px; }
.py-menu li.is-pick { background: #e3f3f0; box-shadow: inset 3px 0 0 var(--green); }
.py-menu b { font-size: 14px; }
.py-menu small { color: var(--muted); font-size: 12px; }
.py-mail__btn { align-self: center; justify-self: start; padding: 13px 20px; border-radius: 8px; background: #16a34a; color: #fff; font-size: 15px; font-weight: 800; }

/* Stop 6: one payment updates everything */
.py-sync__job { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 13px; background: #fff; color: var(--ink); }
.py-sync__job small { color: var(--muted); }
.py-sync__job .py-stack { justify-items: end; }
.py-sync__list { display: grid; gap: 8px; }
.py-sync__list li { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; background: rgba(255, 255, 255, .05); opacity: .4; transition: opacity .4s ease, background .4s ease; }
.py-sync__list li.is-on { opacity: 1; background: rgba(127, 227, 214, .12); }
.py-sync__list i { width: 22px; height: 22px; flex: 0 0 auto; border: 2px solid rgba(255, 255, 255, .35); border-radius: 50%; transition: background .3s ease, border-color .3s ease; }
.py-sync__list li.is-on i { border-color: var(--go); background: var(--go) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.py-sync__list b { display: block; font-size: 15px; }
.py-sync__list small { display: block; font-size: 13px; }

/* Finish band */
.py-finish { position: relative; display: grid; gap: 16px; max-width: 780px; margin: 0 auto; padding: 30px 16px 44px 76px; }
.py-finish > * { position: relative; z-index: 2; }
.py-bigcard { position: relative; display: grid; gap: 4px; width: 200px; padding: 16px 16px 18px; border-radius: 14px; background: #f6f9fc; box-shadow: 0 16px 30px rgba(16, 35, 63, .16), 0 0 0 1px rgba(16, 35, 63, .06); text-align: center; transform: rotate(-3deg); }
.py-bigcard small { color: var(--muted); font-size: 13px; font-weight: 700; }
.py-bigcard b { font-size: 32px; }
.py-bigcard em { justify-self: center; margin-top: 4px; padding: 3px 14px; border: 3px solid var(--go); border-radius: 8px; color: var(--go); font: 700 22px/1 "Space Grotesk", sans-serif; letter-spacing: .12em; text-transform: uppercase; font-style: normal; transform: rotate(-8deg); }
.py-finish__copy { display: grid; gap: 10px; }
.py-finish__copy h2 { font-size: clamp(24px, 5.6vw, 30px); }
.py-finish__copy p { color: var(--ink2); font-size: 15.5px; line-height: 1.45; }
.py-note--out { justify-self: end; transform: rotate(-5deg); }

/* ---------------------------------------------------------------- sample reviews (same design as the other road pages) */
.py-reviews { position: relative; z-index: 3; display: grid; gap: 26px; padding: 48px 16px 56px; background: linear-gradient(180deg, #e4ebf2 0%, #f6f9fc 100%); scroll-margin-top: 186px; }
.py-reviews__head, .py-get__head { display: grid; justify-items: center; gap: 10px; max-width: 760px; margin: 0 auto; text-align: center; }
.py-reviews__label { padding: 4px 12px; border-radius: 999px; background: rgba(16, 35, 63, .06); color: var(--muted); font-size: 13px; font-weight: 600; }
.py-reviews__grid { display: grid; gap: 18px; width: 100%; max-width: 1280px; margin: 0 auto; }
.py-review { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 24px 22px 22px; border-radius: 18px; background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%); box-shadow: 0 16px 34px rgba(16, 35, 63, .1), 0 2px 6px rgba(16, 35, 63, .05), 0 0 0 1px rgba(16, 35, 63, .06); }
.py-review::before { content: ""; position: absolute; inset: 0 22px auto; height: 3px; border-radius: 0 0 3px 3px; background: var(--av); opacity: .85; }
.py-review::after { content: "\201C"; position: absolute; top: 6px; right: 18px; color: color-mix(in srgb, var(--av) 16%, transparent); font: 700 84px/1 Georgia, serif; pointer-events: none; }
.py-review blockquote { flex: 1 1 auto; }
.py-review blockquote p { color: var(--ink); font-size: 16px; line-height: 1.55; text-wrap: pretty; }
.py-review figcaption { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid rgba(16, 35, 63, .08); }
.py-review__av { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; background: var(--av); color: #fff; font: 700 15px/1 "Space Grotesk", sans-serif; }
.py-review figcaption b { display: block; color: var(--ink); font-size: 16px; }
.py-review figcaption small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.35; }

/* ---------------------------------------------------------------- FAQ */
.py-close { position: relative; z-index: 3; padding: 44px 16px 52px; background: linear-gradient(180deg, #152c4b 0%, #10233f 100%); color: #fff; }
.py-faq { display: grid; gap: 10px; max-width: 980px; margin: 0 auto; }
.py-faq h2 { margin-bottom: 6px; color: #fff; font-size: clamp(24px, 5.4vw, 30px); }
.py-faq details { border: 1px solid rgba(127, 227, 214, .18); border-radius: 10px; background: rgba(255, 255, 255, .04); }
.py-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 16px; color: #fff; font-size: 16px; font-weight: 700; list-style: none; cursor: pointer; }
.py-faq summary::-webkit-details-marker { display: none; }
.py-faq .py-plus { flex: 0 0 auto; width: 18px; height: 18px; color: var(--mint); transition: transform .25s ease; }
.py-faq details[open] .py-plus { transform: rotate(45deg); }
.py-faq details p { padding: 0 16px 15px; color: #d3deec; font-size: 16px; line-height: 1.55; }

/* ---------------------------------------------------------------- how you get it */
.py-get { position: relative; z-index: 3; display: grid; gap: 26px; padding: 52px 16px 56px; background: var(--paper2); scroll-margin-top: 186px; }
.py-vs { display: grid; width: 100%; max-width: 980px; margin: 0 auto; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 16px 34px rgba(16, 35, 63, .08), 0 0 0 1px rgba(16, 35, 63, .07); }
.py-vs__head, .py-vs__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.py-vs__head span { padding: 12px 16px; color: var(--muted); font-size: 12.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.py-vs__head span:last-child { background: var(--green-deep); color: var(--mint); }
.py-vs__row span { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-top: 1px solid rgba(16, 35, 63, .07); font-size: 16px; line-height: 1.4; }
.py-vs__row span:first-child { color: var(--muted); }
.py-vs__row span:last-child { background: #eaf6f4; color: var(--ink); font-weight: 600; }
.py-vs__row svg { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 1px; }
.py-plan { display: grid; gap: 20px; width: 100%; max-width: 980px; margin: 0 auto; padding: 24px; border-radius: 18px; background: linear-gradient(160deg, #1b3456 0%, #132a47 60%, #0d1f37 100%); box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .4); color: #eef3fa; }
.py-plan h3 { color: #fff; font-size: 24px; line-height: 1.15; }
.py-plan__copy { display: grid; gap: 14px; }
.py-plan__list { display: grid; gap: 10px; }
.py-plan__list li { display: flex; align-items: flex-start; gap: 10px; color: #d3deec; font-size: 15.5px; line-height: 1.45; }
.py-plan__list b { color: #fff; }
.py-plan__list .py-ok { width: 20px; height: 20px; margin-top: 2px; color: var(--mint); }

/* ---------------------------------------------------------------- motion */
.py-motion .py-reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s cubic-bezier(.22, .8, .24, 1), transform .6s cubic-bezier(.22, .8, .24, 1); }
.py-motion .py-reveal.is-in { opacity: 1; transform: none; }
.py-motion .py-pin { transition: transform .5s cubic-bezier(.3, 1.6, .5, 1), filter .4s ease; }
.py-motion .py-step:not(.is-in) .py-pin { transform: translateY(-28px) scale(.8); filter: grayscale(1) opacity(.55); }
.py-hpay .py-alert[data-show]:not(.is-off) { animation: py-drop .5s cubic-bezier(.3, 1.4, .5, 1); }
.py-pill--paid:not(.is-off), .py-est__done:not(.is-off), .py-dep__done:not(.is-off) { animation: py-stamp .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes py-drop { from { opacity: 0; transform: translateY(-14px); } }
@keyframes py-stamp { from { transform: scale(1.18); } }
.py-paybtn.is-busy { animation: py-pulse 1s ease-in-out infinite; }
@keyframes py-pulse { 50% { opacity: .6; } }
@media (prefers-reduced-motion: reduce) {
  .py *, .py *::before, .py *::after { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------- tablets */
@media (min-width: 700px) {
  .py-hero { padding: 40px 32px 48px; }
  .py-finish { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 28px; }
  .py-note--out { grid-column: 1 / -1; }
  .py-reviews__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .py-plan { grid-template-columns: minmax(0, 1fr) auto; align-items: end; padding: 30px; }
  .py-plan .py-actions { flex-direction: column; }
  .py-close { padding: 52px clamp(24px, 5vw, 64px) 60px; }
}
@media (min-width: 1100px) {
  .py-reviews__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .py-hero__in { grid-template-columns: minmax(0, 1fr) minmax(330px, 34%); align-items: center; column-gap: 40px; }
  .py-hpay { margin: 0; justify-self: end; }
}

/* ---------------------------------------------------------------- desktop rows */
@media (min-width: 1280px) {
  .py-hero { padding: 36px clamp(32px, 4vw, 80px) 44px; }
  .py h1 { max-width: 760px; font-size: clamp(40px, 3.3vw, 62px); }
  .py-hero__sub { font-size: clamp(16px, 1.1vw, 19px); }
  .py-brand__logo { font-size: 30px; }

  .py-course { --edge: 92px; max-width: 1680px; margin: 0 auto; padding: 36px var(--edge) 0; }
  .py .py-road { position: absolute; left: 0; top: 0; z-index: 1; display: block; pointer-events: none; }
  .py-road path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
  .py-road__edge { stroke: var(--road-edge); stroke-width: 36; filter: drop-shadow(0 2px 3px rgba(16, 35, 63, .25)); }
  .py-road__top { stroke: var(--asphalt); stroke-width: 30; }
  .py-road__line { stroke: #fff; stroke-width: 2; stroke-dasharray: 12 10; stroke-linecap: butt !important; }
  .py .py-drive { position: absolute; z-index: 4; left: 0; top: 0; display: block; width: 140px; visibility: hidden; filter: drop-shadow(0 7px 5px rgba(16, 35, 63, .28)); pointer-events: none; will-change: transform; }
  .py .py-drive.is-placed { visibility: visible; }
  .py-drive img { width: 100%; height: auto; }
  .py-drive__right, .py-drive.is-right .py-drive__left { display: none !important; }
  .py-drive.is-right .py-drive__right { display: block !important; }

  .py-step {
    z-index: 2;
    grid-template-columns: minmax(330px, .9fr) minmax(0, 1.1fr);
    grid-template-areas: "intro visual";
    align-items: center;
    column-gap: clamp(28px, 3vw, 56px);
    max-width: none;
    margin: 0;
    padding: 58px 36px 58px 104px;
  }
  .py-intro { grid-area: intro; }
  .py-visual { grid-area: visual; justify-self: center; width: 100%; }
  .py-step::before, .py-step::after, .py-finish::before, .py-finish::after { content: none; }
  .py-pin { left: 17px; top: 28px; width: 80px; height: 100px; }
  .py-pin b { top: 12px; font-size: 42px; }
  .py h2 { font-size: clamp(27px, 1.95vw, 34px); line-height: 1.06; }

  .py-finish {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "card copy note";
    align-items: center;
    column-gap: clamp(24px, 3vw, 48px);
    max-width: none;
    margin: 10px 0 0 104px;
    padding: 30px 32px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 16px 36px rgba(16, 35, 63, .1), 0 0 0 1px rgba(16, 35, 63, .05);
  }
  .py-bigcard { grid-area: card; }
  .py-finish__copy { grid-area: copy; }
  .py-finish__copy h2 { font-size: clamp(24px, 1.7vw, 30px); }
  .py-note--out { grid-column: auto; grid-area: note; font-size: 34px; }
  .py-course::after { content: ""; display: block; height: 96px; }

  .py-reviews, .py-get { gap: 30px; padding: 64px clamp(40px, 5vw, 96px) 72px; }
  .py-close { padding: 60px clamp(40px, 5vw, 96px) 68px; }
}

@media (min-width: 1280px) and (max-width: 1799px) {
  /* With the side panel open the course is ~1150px wide: the card sits beside a narrower intro. */
  .py-step { grid-template-columns: minmax(300px, 1fr) minmax(0, 1fr); }
  .py-finish { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "card copy" "card note"; row-gap: 8px; }
  .py-note--out { justify-self: end; }
  .py-hero { padding-top: 28px; padding-bottom: 34px; }
  .py h1 { font-size: clamp(36px, 3vw, 48px); }
  .py-hero__copy { gap: 14px; }
  .py-device__screen, .py-scr--paid { min-height: 330px; }
}

@media (max-width: 1180px) { .py-step, .py-reviews, .py-get { scroll-margin-top: 236px; } }
@media (min-width: 1181px) { .py-step { scroll-margin-top: 186px; } }
@media (max-width: 850px) { .py-step, .py-reviews, .py-get { scroll-margin-top: 218px; } }
@media (max-width: 1099px) { .py .py-bankcheck { display: none; } }
/* With the side panel open the hero is tighter: a smaller check that stays clear of the copy. */
@media (min-width: 1100px) and (max-width: 1799px) {
  .py-hero__copy { position: relative; z-index: 2; }
  .py-hero__sub { max-width: 520px; }
  .py h1 { max-width: 560px; }
  .py-bankcheck { width: 380px; padding-right: 190px; gap: 8px; transform: translate(-74%, -50%) rotate(-8deg); }
  .py-bankcheck i { font-size: 18px; }
}
