/* Partner application (/partners/apply) — page-only styles, loaded by that page alone.
 * Built ONLY on site.css tokens (--surface, --border, --brand, --brand-text, --tri, --ok/--warn/--bad…),
 * so dark/light, every accent and every skin carry over with no per-theme rules here. Text colours use
 * the text-safe tokens (--text, --muted, --brand-text, --ok/--warn/--bad), never the raw --brand fill.
 * All motion is gated on prefers-reduced-motion: no-preference. Class prefix `pa-` (unused elsewhere). */

.pa-section .sr-only, .pa-hero .sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── Hero ── */
.pa-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.pa-crumbs a { color: var(--muted); text-decoration: none; }
.pa-crumbs a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.pa-crumbs [aria-current] { color: var(--text); font-weight: 600; }
/* The commission-tier panel (.pa-panel-t, .pa-tier-top, .pa-panel-foot) is shared with /partners, so its
   styles live in site-pages.css. */

/* ── Layout: form + sticky summary, then a full-width row for the estimator and status check ── */
.pa-section { padding-top: 36px; }
.pa-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 26px; align-items: start; }
.pa-main { min-width: 0; }
.pa-aside { align-self: stretch; min-width: 0; }
#pa-summary { position: sticky; top: 92px; }
.pa-extras { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 26px; align-items: start; }
@media (max-width: 980px) {
  .pa-layout { grid-template-columns: minmax(0, 1fr); }
  #pa-summary { position: static; }
  .pa-extras { grid-template-columns: minmax(0, 1fr); }
}

/* The site's phone conversion dock ("Book a demo / Free trial") retreats over the demo form because that
   form has its own CTAs; the application is the same case, and the dock would sit on its Continue button. */
body:has(#pa-form) #cta-dock { display: none !important; }

/* ── Form card ── */
.pa-card { padding: 30px; scroll-margin-top: 96px; }
@media (max-width: 560px) { .pa-card { padding: 22px 18px; } }

/* Stepper */
.pa-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.pa-steps li { position: relative; min-width: 0; }
.pa-steps li + li::before { content: ''; position: absolute; top: 16px; left: calc(-50% + 20px); right: calc(50% + 20px); height: 2px;
  border-radius: 2px; background: var(--border); transition: background .3s ease; }
.pa-steps li.done::before, .pa-steps li.cur::before { background: var(--brand); }
.pa-sb { all: unset; box-sizing: border-box; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 7px;
  text-align: center; cursor: default; border-radius: 10px; padding: 0 2px 2px; }
.pa-sb:not(:disabled) { cursor: pointer; }
.pa-sb:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.pa-sn { position: relative; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--border); background: var(--surface); color: var(--muted); font-size: 13.5px; font-weight: 800;
  font-variant-numeric: tabular-nums; transition: background .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease; }
.pa-sl { font-size: 12.5px; font-weight: 600; color: var(--muted); line-height: 1.25; }
.pa-steps li.cur .pa-sn { background: var(--brand); border-color: var(--brand); color: #fff;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 20%, transparent); }
.pa-steps li.cur .pa-sl { color: var(--text); font-weight: 700; }
.pa-steps li.done .pa-sn { background: color-mix(in srgb, var(--ok) 16%, var(--surface)); border-color: var(--ok); color: var(--ok); font-size: 0; }
.pa-steps li.done .pa-sn::after { content: ''; width: 12px; height: 7px; border: solid currentColor; border-width: 0 0 2.5px 2.5px;
  transform: translateY(-2px) rotate(-45deg); }
.pa-steps li.done .pa-sb:hover .pa-sl { color: var(--text); }
@media (max-width: 560px) { .pa-sl { display: none; } }

.pa-progress { height: 4px; margin: 14px 0 26px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.pa-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--tri); transition: width .45s var(--ease, ease); }

/* Draft banner */
.pa-draft { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin: 0 0 20px;
  padding: 11px 14px; border-radius: 12px; font-size: 13.5px; color: var(--text);
  background: color-mix(in srgb, var(--brand) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 32%, var(--border)); }
.pa-draft > span { display: inline-flex; align-items: center; gap: 8px; }
.pa-draft .i { width: 16px; height: 16px; flex: none; color: var(--brand-text); }

/* Step heading */
.pa-step { min-width: 0; margin: 0; padding: 0; border: 0; }
.pa-step[hidden] { display: none; }
.pa-h { display: flex; flex-direction: column; gap: 4px; margin: 0 0 6px; padding: 0; }
.pa-kicker { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-text); }
.pa-title { font-family: var(--display, inherit); font-size: clamp(22px, 3vw, 28px); font-weight: 800; letter-spacing: -.015em; line-height: 1.2; color: var(--text); outline: none; }
.pa-lead { margin: 0 0 22px; font-size: 15px; color: var(--muted); }
.pa-lead:empty { display: none; }
.pa-lead b { color: var(--text); }

/* Partner-type cards */
.pa-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 600px) { .pa-types { grid-template-columns: minmax(0, 1fr); } }
.pa-type { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 16px 46px 16px 16px; border-radius: 16px; cursor: pointer;
  border: 1.5px solid var(--border); background: color-mix(in srgb, var(--surface-2) 72%, transparent);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease; }
.pa-type:hover { border-color: color-mix(in srgb, var(--brand) 55%, var(--border)); }
.pa-type input { position: absolute; top: 18px; left: 18px; width: 1px; height: 1px; margin: 0; opacity: 0; }
.pa-type:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.pa-type.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 11%, var(--surface));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent), 0 18px 36px -22px var(--glow, transparent); }
.pa-type-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; color: #fff; background: var(--tri);
  box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--c2, var(--brand)) 70%, transparent); }
.pa-type-ic .i { width: 21px; height: 21px; }
.pa-type-b { min-width: 0; }
.pa-type-b b { display: block; font-size: 15.5px; color: var(--text); }
.pa-type-b small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.pa-type-ck { position: absolute; top: 15px; right: 15px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--border); color: transparent; transition: background .18s ease, border-color .18s ease, color .18s ease; }
.pa-type-ck .i { width: 13px; height: 13px; stroke-width: 2.6; }
.pa-type.on .pa-type-ck { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Fields */
.pa-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pa-step > .pa-grid + .pa-grid, .pa-step > .pa-typefields + .pa-grid, .pa-step > .pa-typefields + .pa-typefields,
.pa-step > .pa-grid + .pa-typefields { margin-top: 16px; }
.pa-grid[hidden], .pa-typefields[hidden] { display: none; }
.pa-full { grid-column: 1 / -1; }
@media (max-width: 600px) { .pa-grid { grid-template-columns: minmax(0, 1fr); } }
.pa-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pa-field > label { font-size: 13.5px; font-weight: 600; color: var(--text); }
.pa-req { color: var(--bad); }
.pa-opt { margin-left: 4px; font-size: 12px; font-weight: 500; color: var(--muted); }
.pa-field input, .pa-field select, .pa-field textarea, .pa-status-f input, .pa-est-f select {
  width: 100%; min-width: 0; padding: 12px 14px; border-radius: 12px; font: inherit; font-size: 15px; color: var(--text);
  background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1.5px solid var(--border);
  transition: border-color .16s ease, box-shadow .16s ease; }
.pa-field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.pa-field input::placeholder, .pa-field textarea::placeholder, .pa-status-f input::placeholder { color: var(--muted); opacity: 1; }
.pa-field input:focus, .pa-field select:focus, .pa-field textarea:focus, .pa-status-f input:focus, .pa-est-f select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.pa-field [aria-invalid="true"] { border-color: var(--bad); }
.pa-field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--bad) 18%, transparent); }
.pa-field .is-ok { border-color: color-mix(in srgb, var(--ok) 65%, var(--border)); }
@media (max-width: 760px) { .pa-field input, .pa-field select, .pa-field textarea, .pa-status-f input, .pa-est-f select { font-size: 16px; } }

.pa-phone { display: flex; min-width: 0; }
.pa-dial { flex: none; display: grid; place-items: center; padding: 0 12px; border: 1.5px solid var(--border); border-right: 0; border-radius: 12px 0 0 12px;
  background: var(--surface-2); color: var(--muted); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pa-dial[hidden] { display: none; }
.pa-dial:not([hidden]) + input { border-radius: 0 12px 12px 0; }
.pa-count { margin: 0; text-align: right; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Inline field messages: hint, error, warning, ok — each with a suggestion chip where one helps */
.pa-msg-f { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.pa-msg-f:empty { display: none; }
.pa-msg-f.err { color: var(--bad); }
.pa-msg-f.warn { color: var(--warn); }
.pa-msg-f.ok { color: var(--ok); }
.pa-msg-f .pa-ico { flex: none; width: 15px; height: 15px; }
.pa-chip { font: inherit; font-size: 12.5px; font-weight: 700; line-height: 1.3; cursor: pointer; padding: 3px 10px; border-radius: 999px;
  color: var(--brand-text); background: color-mix(in srgb, var(--brand) 10%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 45%, var(--border)); }
.pa-chip:hover { background: color-mix(in srgb, var(--brand) 18%, transparent); }
.pa-chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Review */
.pa-review { display: grid; gap: 12px; margin: 0 0 18px; }
.pa-rv { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: color-mix(in srgb, var(--surface-2) 62%, transparent); }
.pa-rv-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 8px; }
.pa-rv-h b { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pa-rv dl { display: grid; grid-template-columns: minmax(110px, 36%) minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 14.5px; }
.pa-rv dt { color: var(--muted); }
.pa-rv dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.pa-rv dd.pa-none { color: var(--muted); }
@media (max-width: 420px) { .pa-rv dl { grid-template-columns: minmax(0, 1fr); gap: 0; } .pa-rv dd { margin-bottom: 8px; } }
.pa-link { padding: 0; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; color: var(--brand-text);
  text-decoration: underline; text-underline-offset: 3px; }
.pa-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.pa-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text); cursor: pointer; }
.pa-consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); }
.pa-consent a { color: var(--brand-text); }
.pa-step > .pa-msg-f[data-for="consent"] { margin-top: 8px; }

/* Alert + navigation */
.pa-alert { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0 0; padding: 12px 14px; border-radius: 12px; font-size: 14px; color: var(--text);
  background: color-mix(in srgb, var(--bad) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--bad) 45%, var(--border)); }
.pa-alert[hidden] { display: none; }
.pa-alert .pa-ico { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--bad); }
.pa-nav { display: flex; align-items: center; gap: 12px; margin: 26px 0 0; padding: 20px 0 0; border-top: 1px solid var(--border); }
.pa-nav #pa-next { margin-left: auto; }
.pa-nav #pa-next .i { width: 17px; height: 17px; }
.pa-saved { font-size: 12.5px; color: var(--muted); }
@media (max-width: 560px) {
  .pa-nav { flex-wrap: wrap; }
  .pa-nav .btn { flex: 1 1 0; }
  .pa-saved { order: 3; width: 100%; text-align: center; }
}

/* ── Summary sidebar ── */
.pa-side { padding: 22px; }
.pa-side h3 { margin: 0 0 14px; font-size: 17px; letter-spacing: -.01em; }
.pa-meter-top { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.pa-meter-top b { color: var(--text); }
.pa-meter-bar { height: 8px; border-radius: 99px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); }
.pa-meter-bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--tri); transition: width .4s var(--ease, ease); }
.pa-meter small { display: block; margin-top: 8px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.pa-sum { display: grid; margin: 16px 0 0; }
.pa-sum-r { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px dashed var(--border); font-size: 14px; }
.pa-sum-r dt { flex: none; color: var(--muted); }
.pa-sum-r dd { min-width: 0; margin: 0; text-align: right; color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-sum-r dd.pa-none { color: var(--muted); font-weight: 400; }

/* ── Commission estimator ── */
.pa-est-f { margin: 0 0 14px; }
.pa-est-f label { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 6px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.pa-est-f output { font-weight: 800; color: var(--brand-text); font-variant-numeric: tabular-nums; }
.pa-est-f input[type="range"] { width: 100%; height: 28px; margin: 4px 0 0; accent-color: var(--brand); } /* W4: a thumb you can hit */
.pa-est-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.pa-est-grid > .pa-est-f:last-child { grid-column: 1 / -1; }
@media (max-width: 560px) { .pa-est-grid { grid-template-columns: minmax(0, 1fr); } }
.pa-est-out { display: grid; gap: 12px; padding: 16px; border-radius: 14px;
  background: color-mix(in srgb, var(--brand) 7%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--border)); }
.pa-est-out:empty { display: none; }
.pa-est-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; }
.pa-est-head span:not(.pa-est-big) { font-size: 13.5px; color: var(--muted); }
.pa-est-head b { color: var(--text); }
.pa-est-big { font-family: var(--display, inherit); font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.pa-est-big small { margin-left: 4px; font-family: var(--sans, inherit); font-size: 14px; font-weight: 600; color: var(--muted); }
.pa-ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pa-ladder li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 9px 12px; border-radius: 10px;
  font-size: 13.5px; background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--border); }
.pa-ladder li b { color: var(--text); }
.pa-ladder li .pa-l-amt { font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; text-align: right; }
.pa-ladder li small { grid-column: 1 / -1; color: var(--muted); font-size: 12.5px; }
.pa-ladder li.now { border-color: color-mix(in srgb, var(--ok) 55%, var(--border)); }
.pa-ladder li.now small { color: var(--ok); font-weight: 600; }
/* Not reachable yet: a dashed outline + muted amount (never opacity, which would drop the text below AA). */
.pa-ladder li.off { background: transparent; border-style: dashed; }
.pa-ladder li.off .pa-l-amt { color: var(--muted); font-weight: 700; }
.pa-fine { margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.pa-side > h3 + .pa-fine { margin-top: -6px; }

/* ── Status check ── */
.pa-status-f { display: grid; gap: 10px; margin: 14px 0 0; }
.pa-st-out { margin: 14px 0 0; }
.pa-st-out:empty { display: none; }
.pa-st-card { display: grid; gap: 8px; padding: 14px; border-radius: 12px; font-size: 14px; border: 1px solid var(--border); background: var(--surface-2); }
.pa-st-card p { margin: 0; color: var(--muted); }
.pa-st-card .pa-st-row { display: flex; justify-content: space-between; gap: 10px; }
.pa-st-card .pa-st-row span { color: var(--muted); }
.pa-st-err { margin: 0; font-size: 13.5px; color: var(--bad); }
.pa-pill { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pa-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
/* Tints kept light (8%) so the small bold label stays ≥4.5:1 in light mode too (14% measured ~4.2:1). */
.pa-pill.pending { color: var(--warn); background: color-mix(in srgb, var(--warn) 8%, transparent); }
.pa-pill.under_review { color: var(--brand-text); background: color-mix(in srgb, var(--brand) 8%, transparent); }
.pa-pill.approved { color: var(--ok); background: color-mix(in srgb, var(--ok) 8%, transparent); }
.pa-pill.rejected { color: var(--bad); background: color-mix(in srgb, var(--bad) 8%, transparent); }

/* ── Success ── */
.pa-done { padding: 44px 30px; text-align: center; outline: none; }
.pa-done[hidden] { display: none; }
.pa-done-ic { display: grid; place-items: center; width: 78px; height: 78px; margin: 0 auto 18px; border-radius: 50%; color: #fff; background: var(--tri);
  box-shadow: 0 20px 44px -18px var(--glow, transparent), 0 0 0 8px color-mix(in srgb, var(--brand) 12%, transparent); }
.pa-done-ic .i { width: 36px; height: 36px; stroke-width: 2.6; }
.pa-done h2 { margin: 0 0 8px; }
.pa-done-p { max-width: 520px; margin: 0 auto; color: var(--muted); }
.pa-refbox { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 20px 0 6px; }
.pa-ref { padding: 10px 18px; border-radius: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 22px; font-weight: 800;
  letter-spacing: .06em; color: var(--text); background: color-mix(in srgb, var(--brand) 8%, var(--surface));
  border: 1.5px dashed color-mix(in srgb, var(--brand) 50%, var(--border)); }
.pa-tl { list-style: none; max-width: 520px; margin: 26px auto 26px; padding: 0; text-align: left; }
.pa-tl li { position: relative; padding: 0 0 18px 36px; }
.pa-tl li::before { content: ''; position: absolute; top: 3px; left: 7px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border); background: var(--surface); }
.pa-tl li::after { content: ''; position: absolute; top: 21px; bottom: 1px; left: 14px; width: 2px; background: var(--border); }
.pa-tl li:last-child { padding-bottom: 0; }
.pa-tl li:last-child::after { display: none; }
.pa-tl li.on::before { background: var(--ok); border-color: var(--ok); }
.pa-tl b { display: block; font-size: 15px; color: var(--text); }
.pa-tl small { font-size: 13px; color: var(--muted); }
.pa-done .hero-cta { justify-content: center; }

/* ── FAQ ── */
.pa-faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 28px; align-items: start; }
@media (max-width: 760px) { .pa-faq-grid { grid-template-columns: minmax(0, 1fr); } }
.card.pa-faq-i { padding: 0; }
.pa-faq-i summary { position: relative; padding: 18px 50px 18px 20px; font-weight: 700; color: var(--text); cursor: pointer; list-style: none; border-radius: inherit; }
.pa-faq-i summary::-webkit-details-marker { display: none; }
.pa-faq-i summary::after { content: '+'; position: absolute; top: 50%; right: 20px; transform: translateY(-50%); font-size: 22px; font-weight: 500; line-height: 1;
  color: var(--brand-text); transition: transform .2s ease; }
.pa-faq-i[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.pa-faq-i summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.pa-faq-i p { margin: 0; padding: 0 20px 18px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.pa-faq-more { margin: 24px 0 0; text-align: center; color: var(--muted); }
.pa-faq-more a { color: var(--brand-text); }

/* ── Motion (only when the visitor allows it) ── */
@media (prefers-reduced-motion: no-preference) {
  .pa-type:hover { transform: translateY(-2px); }
  .pa-step.pa-in { animation: paIn .38s var(--ease, ease) both; }
  .pa-step.pa-in.pa-back { animation-name: paInBack; }
  @keyframes paIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
  @keyframes paInBack { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
  .pa-done:not([hidden]) .pa-done-ic { animation: paPop .55s cubic-bezier(.2, .9, .3, 1.35) both; }
  @keyframes paPop { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: none; } }
  .pa-shake { animation: paShake .4s ease; }
  @keyframes paShake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
}
/* W4 (phones): the step buttons are comfortable targets */
@media (max-width: 860px) { .pa-sb { min-height: 44px; } }
