/* ============================================================================
   px-onboarding-flow.css: onboarding v2 (Lix-led flow). Loaded only on /onboarding,
   on top of px-onboarding.css. Every rule is scoped under .pxf.
   Approved prototype: internal/trading-lab/reports/v3-assets/onboarding-prototype/
   ============================================================================ */
.pxf { --pxf-spring: cubic-bezier(.34, 1.56, .64, 1); --pxf-soft: cubic-bezier(.22, 1, .36, 1); --pxf-ok: #28B84E; --pxf-bad: #E5484D; }
.pxf .pxo__slot { width: 100%; }
.pxf .pxo__slot > * { animation: pxf-in .42s var(--pxf-soft) both; }
.pxf .pxo__slot.is-back > * { animation-name: pxf-in-back; }
@keyframes pxf-in { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes pxf-in-back { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
.pxf .pxo__progressfill { transition: width .7s var(--pxf-spring); }
.pxf .ps-exit[hidden] { display: grid; visibility: hidden; }
.pxf .ps-footer[hidden], .pxf .ps-flashback[hidden], .pxf .pxo-error[hidden] { display: none; }

/* Lix: one <video> per clip, white matte blended into the page */
.pxf .lixv { position: relative; }
.pxf .lixv video, .pxf .lixv img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pxf .lixv.halo { background: radial-gradient(circle at 50% 56%, var(--px-brand-subtle) 0 44%, transparent 45%); }
.pxf .lixv.breathe > :first-child { animation: pxf-breathe 2.6s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes pxf-breathe { 0%, 100% { transform: none; } 50% { transform: scale(1.02, .985); } }
.pxf .lixv.nod > :first-child { animation: pxf-nod .6s var(--pxf-spring); }
@keyframes pxf-nod { 0% { transform: none; } 30% { transform: scale(1.06, .9) translateY(4px); } 65% { transform: scale(.96, 1.06) translateY(-6px); } 100% { transform: none; } }
.pxf .lixv.pop { animation: pxf-pop .8s var(--pxf-spring) both; }
@keyframes pxf-pop { 0% { transform: scale(.3) translateY(50px); opacity: 0; } 60% { transform: scale(1.06, .95); opacity: 1; } 100% { transform: none; } }
.pxf .lix-xl { width: min(280px, 64vw); aspect-ratio: 1; }
.pxf .lix-lg { width: min(210px, 52vw); aspect-ratio: 1; }
.pxf .lix-md { width: 150px; aspect-ratio: 1; }

/* typed words */
.pxf .w { opacity: 0; display: inline-block; transform: translateY(.12em); transition: opacity .16s, transform .25s var(--pxf-spring); }
.pxf .w.on { opacity: 1; transform: none; }
.pxf .pxo-q b, .pxf .ps-bubble b { font-weight: 600; color: var(--px-brand-active); }
.pxf .swap { animation: pxf-swap .35s var(--pxf-spring); }
@keyframes pxf-swap { 0% { transform: scale(.95); } 100% { transform: none; } }

/* big screens: Lix centre stage under a speech bubble */
.pxf-hero { display: flex; flex-direction: column; align-items: center; gap: var(--px-space-4); text-align: center; padding-top: 2vh; }
.pxf-hero .ps-bubble { max-width: 520px; text-align: center; }
.pxf-hero .ps-bubble::before { display: none; }
.pxf-hero .ps-bubble::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 16px; height: 16px; background: var(--px-surface-0); border-right: 2px solid var(--px-surface-200); border-bottom: 2px solid var(--px-surface-200); transform: translateX(-50%) rotate(45deg); }
.pxf-hero .say { font-size: 21px; line-height: 1.4; color: var(--px-ink-900); margin: 0; }
.pxf-hero h1 { font-size: 29px; font-weight: 600; color: var(--px-ink-900); margin: 0; }
.pxf .fact { font-size: 16px; color: var(--px-ink-500); min-height: 48px; max-width: 380px; margin: 0; transition: opacity .3s; }

/* questions: one column, Lix left with a compact bubble, live pxo-opt cards */
.pxf .pxo-step { max-width: 640px; margin: 0 auto; }
.pxf .pxo-intro { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; text-align: left; }
.pxf .pxo-host.lixv { width: 118px; height: 118px; grid-column: auto; grid-row: auto; flex: none; }
.pxf .pxo-question-bubble { min-height: 0; padding: 14px 18px; border: 2px solid var(--px-surface-200); background: var(--px-surface-0); max-width: none; flex: 1; grid-column: auto; grid-row: auto; }
.pxf .pxo-question-bubble::before { display: block; top: 50%; left: -9px; width: 16px; height: 16px; transform: translateY(-50%) rotate(-45deg); }
.pxf .pxo-question-bubble .pxo-q { font-size: 18px; line-height: 1.45; font-weight: 500; color: var(--px-ink-900); min-height: 1.35em; }
.pxf .pxo-muted.asked { text-align: left; margin: -6px 0 0; opacity: 0; transition: opacity .3s; }
.pxf .pxo-muted.asked.on { opacity: 1; }
.pxf .pxo-step .pxo-opts { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.pxf .pxo-step .pxo-opt { min-height: 76px; padding: 14px 16px; }
.pxf .pxo-opt.is-on { animation: pxf-jelly .5s var(--pxf-spring); }
@keyframes pxf-jelly { 0% { transform: scale(1); } 30% { transform: scale(1.025, .965); } 60% { transform: scale(.995, 1.015); } 100% { transform: scale(1); } }
.pxf .pxo-opt__copy em { font-style: normal; color: var(--px-brand-active); font-weight: 600; }
.pxf .pxo-opt__icon { width: 44px; height: 44px; background: transparent; }
.pxf .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--px-surface-100); color: var(--px-ink-500); transition: background-color .2s, color .2s, transform .3s var(--pxf-spring); }
.pxf .ico svg { width: 22px; height: 22px; }
.pxf .pxo-opt.is-on .ico { background: var(--px-brand); color: #fff; transform: scale(1.06); }

/* first-win lesson */
.pxf .lesson { display: grid; gap: 16px; }
.pxf .lesson-q { font-size: 21px; font-weight: 600; line-height: 1.3; color: var(--px-ink-900); margin: 0; }
.pxf .chart { width: 100%; max-width: 480px; display: block; margin: 0 auto; background: var(--px-surface-0); border: 2px solid var(--px-surface-200); border-radius: var(--px-card-radius, 20px); }
.pxf .tap { cursor: pointer; }
.pxf .tap:focus-visible { outline: 2px solid var(--px-brand); outline-offset: 2px; }
.pxf .hl { fill: var(--px-brand); opacity: 0; transition: opacity .15s; }
.pxf .tap:hover .hl { opacity: .1; }
.pxf .tap.good .hl { fill: var(--pxf-ok); opacity: .18; }
.pxf .tap.bad .hl { fill: var(--pxf-bad); opacity: .16; }
.pxf .tap.bad { animation: pxf-shake .5s; }
@keyframes pxf-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-7px); } 50% { transform: translateX(6px); } 80% { transform: translateX(-3px); } }
.pxf .pxo-chips { justify-content: center; }
.pxf .pxo-chip { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.pxf .pxo-chip svg { width: 18px; height: 18px; }
.pxf .pxo-chip.good { border-color: var(--pxf-ok); background: #E9F8EE; color: #1E8E3C; }
.pxf .pxo-chip.bad { border-color: var(--pxf-bad); background: #FDECEC; color: #C0353A; }

/* right / wrong footer: same look as the lesson player banner (px-steps.css) */
.pxf .ps-banner { border-top: 1px solid var(--px-surface-200); }
.pxf .ps-banner.is-correct { background: var(--px-success-subtle); }
.pxf .ps-banner.is-wrong { background: var(--px-error-subtle); }
.pxf .ps-banner__title { font-size: 20px; font-weight: 600; position: relative; }
.pxf .ps-banner__title::before { content: ""; display: inline-block; height: 1.5rem; width: 1.5rem; vertical-align: text-bottom; margin-right: 8px; background-size: cover; }
.pxf .ps-banner.is-correct .ps-banner__title::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath fill='%234ec363' fill-rule='evenodd' d='M12 1.508c5.798 0 10.5 4.702 10.5 10.5s-4.702 10.5-10.5 10.5-10.5-4.702-10.5-10.5 4.702-10.5 10.5-10.5m-2.18 13.91-2.571-2.572a1.127 1.127 0 0 1 0-1.591 1.13 1.13 0 0 1 1.59 0l1.813 1.813 4.509-4.508a1.127 1.127 0 0 1 1.59 0 1.13 1.13 0 0 1 0 1.59l-5.305 5.306a1.13 1.13 0 0 1-1.626-.038' clip-rule='evenodd'/%3E%3C/svg%3E"); }
.pxf .ps-banner.is-wrong .ps-banner__title::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath fill='%23e3473f' d='M12 0C5.383 0 0 5.383 0 12s5.383 12 12 12 12-5.383 12-12S18.617 0 12 0'/%3E%3Cpath fill='%23fafafa' d='M16.42 15.006a1 1 0 1 1-1.414 1.414l-3.005-3.005-3.005 3.005a.997.997 0 0 1-1.414 0 1 1 0 0 1 0-1.414l3.005-3.005-3.005-3.005a1 1 0 1 1 1.414-1.414l3.005 3.005 3.005-3.005a1 1 0 1 1 1.414 1.414l-3.005 3.005z'/%3E%3C/svg%3E"); }
.pxf .ps-banner__answer { color: var(--px-ink-700); }
.pxf .ps-flashback { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; max-width: min(680px, 100%); padding: 2px 0; }
.pxf .ps-flashback .ps-banner__title, .pxf .ps-flashback .ps-banner__answer { margin: 0; line-height: 1.45; }
.pxf .ps-footer.ps-banner .__wrap { align-items: center; gap: var(--px-space-5); }

/* celebration: Bamboo icon, streak flame and day dots as in the lesson streak scene */
.pxf .reward { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pxf .pill { display: flex; align-items: center; gap: 10px; border: 2px solid var(--px-surface-200); border-radius: var(--px-tile-radius, 14px); padding: 10px 16px; min-width: 150px; background: var(--px-surface-0); text-align: left; }
.pxf .pill small { display: block; font-size: 14px; color: var(--px-ink-500); }
.pxf .pill strong { font-size: 21px; font-weight: 600; color: var(--px-ink-900); }
.pxf .pill-ic { width: 40px; height: 40px; display: grid; place-items: center; flex: none; transform-origin: 50% 90%; }
.pxf .pill-ic img, .pxf .pill-ic svg { width: 34px; height: 34px; display: block; }
.pxf .week { display: flex; gap: 10px; margin-top: 4px; }
.pxf .day { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: #64748b; }
.pxf .day.is-future { opacity: .55; }
.pxf .dot { position: relative; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid #E5E7EB; box-shadow: 0 3px 0 #E5E7EB; background: #fff; color: #fff; }
.pxf .dot svg { position: relative; z-index: 1; width: 16px; height: 16px; }
.pxf .dfill { position: absolute; inset: -2px; border-radius: 50%; background: #FF7400; box-shadow: 0 3px 0 #B84F00; }
.pxf-cf { position: fixed; width: 9px; height: 14px; border-radius: 2px; pointer-events: none; z-index: 999; }

/* plan */
.pxf .plan { width: 100%; max-width: 560px; display: grid; gap: 10px; text-align: left; }
.pxf .plan .pxo-opt { min-height: 76px; cursor: default; opacity: 0; animation: pxf-slide .5s var(--pxf-spring) forwards; grid-template-columns: 44px minmax(0, 1fr) auto; }
.pxf .plan .pxo-opt:hover { transform: none; box-shadow: none; border-color: var(--px-surface-200); }
.pxf .plan .ico { background: var(--px-brand-subtle); color: var(--px-brand); }
@keyframes pxf-slide { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.pxf .plan .pxo-opt__copy small { font-size: 14px; }
.pxf .plan .chg { border: 0; background: none; color: var(--px-brand-active); font-weight: 600; font-size: 14px; cursor: pointer; padding: 6px; }
.pxf .plan-note { font-size: 14px; color: var(--px-ink-500); max-width: 560px; line-height: 1.5; margin: 0; }
.pxf .plan-note b { color: var(--px-ink-900); font-weight: 600; }

@media (max-width: 480px) {
  .pxf .pxo-host.lixv { width: 92px; height: 92px; }
  .pxf .pxo-question-bubble .pxo-q { font-size: 17px; }
  .pxf-hero .say { font-size: 19px; }
  .pxf-hero h1 { font-size: 25px; }
  .pxf .reward { flex-wrap: nowrap; width: 100%; }
  .pxf .pill { min-width: 0; flex: 1 1 0; padding: 10px 12px; }
  .pxf .week { gap: 6px; }
  .pxf .dot { width: 26px; height: 26px; }
  .pxf .ps-footer.ps-banner .__wrap { flex-wrap: wrap; gap: 12px; }
  .pxf .ps-flashback { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .pxf *, .pxf-cf { animation: none !important; transition: none !important; }
}

/* ============================================================================
   Sign-up, log in and email code (Nov 2026): same frame as onboarding, no Lix.
   ============================================================================ */
.pxa .pxo__stage { display: block; padding: 28px 16px 40px; }
.pxa .pxo__top { grid-template-columns: 44px minmax(0, 1fr) auto; }
.pxa .pxo__top .px-brand { justify-self: center; }
.pxa-switch { font-size: 14px; font-weight: 600; color: var(--px-brand-active); text-decoration: none; white-space: nowrap; padding: 8px 4px; }
.pxa-card { width: 100%; max-width: 400px; margin: 0 auto; display: grid; gap: 16px; }
.pxa-head { display: grid; gap: 6px; text-align: center; margin-bottom: 4px; }
.pxa-head h1 { font-size: 29px; line-height: 1.2; font-weight: 600; color: var(--px-ink-900); margin: 0; }
.pxa-head p { margin: 0; font-size: 16px; color: var(--px-ink-500); line-height: 1.5; }
.pxa-head strong { color: var(--px-ink-900); font-weight: 600; }
.pxa-head .pxa-mail { width: 64px; height: 64px; margin: 0 auto 6px; }
.pxa-form { display: grid; gap: 16px; }
.pxa-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pxa-fld label { display: block; font-size: 14px; font-weight: 500; color: var(--px-ink-700); margin-bottom: 7px; }
.pxa-fld .px-input { width: 100%; min-height: 52px; font-size: 17px; box-sizing: border-box; }
.pxa-fld.has-error .px-input { border-color: var(--px-error, #E3473F); }
.pxa-fld .pxa-msg { font-size: 13px; color: var(--px-error, #E3473F); margin: 6px 0 0; }
.pxa-lbl { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pxa-lbl a { font-size: 14px; font-weight: 600; color: var(--px-brand-active); text-decoration: none; }
.pxa-pw { position: relative; }
.pxa-pw .px-input { padding-right: 52px; }
.pxa-pw button { position: absolute; right: 4px; top: 4px; width: 44px; height: 44px; border: 0; background: none; border-radius: 10px; color: var(--px-ink-500); cursor: pointer; display: grid; place-items: center; }
.pxa-pw button[aria-pressed="true"] { color: var(--px-brand-active); background: var(--px-brand-subtle); }
.pxa-hint { font-size: 13px; color: var(--px-ink-500); margin: -8px 0 0; }
.pxa-chk { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--px-ink-700); line-height: 1.5; cursor: pointer; }
.pxa-chk input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--px-brand); flex: none; }
.pxa-opt { border-block: 1px solid var(--px-surface-200); padding: 12px 0; }
.pxa-opt summary { font-size: 14px; color: var(--px-ink-700); cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.pxa-opt summary::-webkit-details-marker { display: none; }
.pxa-opt summary span { color: var(--px-ink-500); }
.pxa-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; border: 0; padding: 0; }
.pxa-chip input { position: absolute; opacity: 0; pointer-events: none; }
.pxa-chip span { display: inline-block; border: 2px solid var(--px-surface-200); background: #fff; border-radius: 99px; padding: 8px 14px; font-size: 14px; font-weight: 500; cursor: pointer; color: var(--px-ink-700); }
.pxa-chip input:checked + span { border-color: var(--px-brand); background: var(--px-brand-subtle); color: var(--px-brand-active); }
.pxa-chip input:focus-visible + span { outline: 2px solid var(--px-brand); outline-offset: 2px; }
.pxa-card .px-btn--primary { width: 100%; }
.pxa-legal { font-size: 13px; color: var(--px-ink-500); text-align: center; line-height: 1.5; margin: 0; }
.pxa-legal a { color: var(--px-ink-700); text-decoration: underline; text-underline-offset: 2px; }
.pxa-alt { text-align: center; font-size: 14px; color: var(--px-ink-500); margin: 0; }
.pxa-alt a, .pxa-link { color: var(--px-brand-active); font-weight: 600; text-decoration: none; background: none; border: 0; padding: 0; font-size: 14px; cursor: pointer; font-family: inherit; }
.pxa-alert { border-radius: 12px; padding: 10px 14px; font-size: 14px; line-height: 1.45; margin: 0; }
.pxa-alert.is-error { background: #FDECEC; color: #B3363A; }
.pxa-alert.is-info { background: var(--px-surface-100); color: var(--px-ink-700); }
.pxa-alert.is-success { background: #E9F8EE; color: #1E7A37; }
.pxa-or { display: flex; align-items: center; gap: 12px; color: var(--px-ink-500); font-size: 13px; font-weight: 500; }
.pxa-or::before, .pxa-or::after { content: ""; flex: 1; height: 1px; background: var(--px-surface-200); }
.pxa .pxo__top { border-bottom: 0; }
/* Our 3D pill, with Google's real button laid invisibly on top to take the click. */
.pxa-google { position: relative; }
.pxa-gbtn { display: flex !important; align-items: center; justify-content: center; gap: 10px; width: 100%; }
.pxa-gbtn svg { width: 20px; height: 20px; flex: none; }
.pxa-gsi { position: absolute; inset: 0; opacity: .01; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.pxa-gsi > div, .pxa-gsi iframe { transform: scale(1.02, 1.4); transform-origin: center; }
.pxa-google:focus-within .pxa-gbtn { outline: 2px solid var(--px-brand); outline-offset: 3px; }
.pxa-google[data-busy="1"] .pxa-gbtn { opacity: .7; }
/* Email-code art: a letter with the code pops out of the envelope. */
.pxa-mailart { width: 96px; height: 96px; margin: 0 auto 8px; display: block; }
.pxa-mailart .m-paper { animation: pxa-paper .6s cubic-bezier(.2,.9,.3,1.3) .15s both; }
.pxa-mailart .m-dot { transform-box: fill-box; transform-origin: center; animation: pxa-dot .35s cubic-bezier(.2,.9,.3,1.5) both; }
.pxa-mailart .m-dot:nth-of-type(1) { animation-delay: .6s; }
.pxa-mailart .m-dot:nth-of-type(2) { animation-delay: .72s; }
.pxa-mailart .m-dot:nth-of-type(3) { animation-delay: .84s; }
@keyframes pxa-paper { from { transform: translateY(14px); } to { transform: none; } }
@keyframes pxa-dot { from { transform: scale(0); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .pxa-mailart * { animation: none !important; } }
.pxa-google[hidden], .pxa-or[hidden] { display: none; }
.pxa-code .px-input { text-align: center; font-size: 28px; font-weight: 600; letter-spacing: .5em; padding-left: .5em; font-variant-numeric: tabular-nums; }
.pxa-resend { display: flex; justify-content: center; gap: 6px; font-size: 14px; color: var(--px-ink-500); align-items: center; }
.pxa-card [data-busy="1"] { opacity: .7; pointer-events: none; }
@media (max-width: 480px) {
  .pxa .pxo__stage { padding: 20px 16px 32px; }
  .pxa-head h1 { font-size: 25px; }
  .pxa-row2 { grid-template-columns: 1fr; }
}
.pxa .ps-sr, .pxf .ps-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.pxa-keep { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }
.pxa-keep span { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--px-ink-700); background: var(--px-surface-100); border-radius: 99px; padding: 6px 12px; }
.pxa-keep img, .pxa-keep svg { width: 18px; height: 18px; }

/* ---------- Pick your pace (Free / Plus), between Level 1 unlocked and the plan ---------- */
.pxf-pace { --pc-o: #FF7400; --pc-od: #B84F00; --pc-os: #FFF1E6; --pc-g: #22C55E; --pc-gd: #15803D; --pc-line: #E5E7EB; --pc-sp: cubic-bezier(.34,1.56,.64,1); width: 100%; }
.pxf-pace > * { width: 100%; max-width: 420px; }
.pxf-pace > .ps-bubble, .pxf-pace > .lixv { width: auto; }
.pxf-pace .lixv { transition: filter .3s; }
.pace-switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin-top: 16px; padding: 5px; border: 2px solid var(--pc-line); border-radius: 18px; background: #F8FAFC; box-shadow: 0 4px 0 var(--pc-line); }
.pace-switch .knob { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 13px; background: #fff; border: 2px solid var(--pc-line); box-shadow: 0 3px 0 var(--pc-line);
  transition: transform .5s var(--pc-sp), background .3s, border-color .3s, box-shadow .3s; }
.pxf-pace.is-plus .pace-switch .knob { transform: translateX(100%); background: var(--pc-o); border-color: var(--pc-o); box-shadow: 0 3px 0 var(--pc-od); }
.pace-switch button { position: relative; z-index: 1; border: 0; background: none; padding: 11px 8px 10px; cursor: pointer; border-radius: 13px; display: flex; flex-direction: column; align-items: center; line-height: 1.2; color: var(--px-ink-900, #0f172a); }
.pace-switch button:focus-visible { outline: 2px solid var(--px-action-focus, #324D74); outline-offset: 2px; }
.pace-switch b { display: flex; align-items: center; gap: 5px; font-size: 17px; font-weight: 600; transition: color .3s; }
.pace-switch button span { font-size: 12.5px; color: #64748b; transition: color .3s; }
.pace-switch svg { width: 16px; height: 16px; }
.pxf-pace.is-plus .pace-switch [data-pace=plus] b, .pxf-pace.is-plus .pace-switch [data-pace=plus] span { color: #fff; }
.pace-tag { position: absolute; z-index: 2; top: -11px; right: 12px; padding: 2px 9px; border-radius: 999px; background: #0f172a; color: #fff; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.pace-bill { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; padding: 0 2px; overflow: hidden; max-height: 0; opacity: 0;
  transition: max-height .45s cubic-bezier(.2,.8,.2,1), opacity .3s, padding .45s cubic-bezier(.2,.8,.2,1); }
.pxf-pace.is-plus .pace-bill { max-height: 130px; opacity: 1; padding-top: 14px; padding-bottom: 4px; }
.pace-bill .bill { position: relative; border: 2px solid var(--pc-line); border-radius: 14px; box-shadow: 0 3px 0 var(--pc-line); background: #fff; padding: 9px 12px; text-align: left; cursor: pointer; color: inherit; transition: transform .1s; }
.pace-bill .bill:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--pc-line); }
.pace-bill .bill b { display: block; font-size: 17px; font-weight: 600; }
.pace-bill .bill span { font-size: 12.5px; color: #64748b; }
.pace-bill .bill.is-on { border-color: var(--pc-o); box-shadow: 0 3px 0 var(--pc-od); background: #FFFAF5; }
.pace-bill .bill em { position: absolute; top: -10px; right: 10px; padding: 1px 8px; border-radius: 999px; background: var(--pc-g); box-shadow: 0 2px 0 var(--pc-gd); color: #fff; font-size: 11.5px; font-style: normal; font-weight: 600; }
.pace-road { margin-top: 14px; padding: 14px 16px; border: 2px solid var(--pc-line); border-radius: 18px; box-shadow: 0 4px 0 var(--pc-line); text-align: left; transition: border-color .3s, box-shadow .3s; }
.pxf-pace.is-plus .pace-road { border-color: #FFC58F; box-shadow: 0 4px 0 #FFD9B3; }
.pace-road .road-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pace-road .road-h small { display: block; font-size: 13px; color: #64748b; }
.pace-road .road-h strong { font-size: 16px; font-weight: 600; }
.pace-road .days { font-size: 28px; font-weight: 600; line-height: 1; color: var(--pc-od); text-align: right; white-space: nowrap; }
.pace-road .days small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 500; color: #64748b; }
.pace-road .track { display: grid; gap: 4px; margin: 14px 0 6px; }
.pace-road .track i { aspect-ratio: 1; border-radius: 50%; background: #EEF0F3; box-shadow: inset 0 -2px 0 rgba(15,23,42,.06); transform: scale(.72); transition: background .25s, transform .35s var(--pc-sp); }
.pace-road .track i.is-f { background: var(--pc-o); box-shadow: inset 0 -2px 0 var(--pc-od); transform: scale(1); }
.pace-road .track i.is-today { outline: 2px solid var(--pc-o); outline-offset: 2px; }
.pace-road .legend { display: flex; justify-content: space-between; font-size: 12.5px; color: #64748b; }
.pace-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.pace-tiles .tile { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 2px solid var(--pc-line); border-radius: 14px; font-size: 13.5px; line-height: 1.25; text-align: left; color: #94A3B8; transition: border-color .3s, background .3s, color .3s; }
.pace-tiles .tile.is-on { border-color: #BBF7D0; background: #F0FDF4; color: var(--px-ink-900, #0f172a); }
.pace-tiles .v { position: relative; flex: none; width: 22px; height: 22px; }
.pace-tiles .dash, .pace-tiles .chk { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; }
.pace-tiles .dash { background: #F1F5F9; color: #94A3B8; font-weight: 600; transition: opacity .2s; }
.pace-tiles .chk { background: var(--pc-g); box-shadow: 0 2px 0 var(--pc-gd); color: #fff; transform: scale(0); transition: transform .45s var(--pc-sp); }
.pace-tiles .chk svg { width: 12px; height: 12px; }
.pace-tiles .tile.is-on .chk { transform: scale(1); }
.pace-tiles .tile.is-on .dash { opacity: 0; }
.pace-tiles .tile:nth-child(2) .chk { transition-delay: .08s; } .pace-tiles .tile:nth-child(3) .chk { transition-delay: .16s; }
.pxf .pxf-alt { border: 0; background: none; padding: 8px 10px; font: inherit; font-size: 15px; font-weight: 600; color: #64748b; cursor: pointer; }
.pxf .pxf-alt:hover { color: var(--px-ink-900, #0f172a); }
.pxf .pxo-opt.is-plus { border-color: #FF7400; box-shadow: 0 3px 0 #B84F00; background: #FFFAF5; }
.pxf .pxf-active { display: inline-block; margin-left: 4px; padding: 0 7px; border-radius: 999px; background: #FF7400; color: #fff; font-size: 11px; font-weight: 600; vertical-align: 1px; }
@media (max-width: 600px) {
  .pxf-pace .pace-switch { margin-top: 12px; }
  .pace-road { padding: 12px 14px; }
  .pace-road .days { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .pace-switch .knob, .pace-bill, .pace-road .track i, .pace-tiles .chk { transition: none; }
}
.pxf-pace { display: flex; flex-direction: column; align-items: center; }
.pxf-pace > .pxo-intro { max-width: 420px; }
.pxf .pxf-pace .pxo-host.lixv { width: 96px; height: 96px; }
@media (max-width: 600px) { .pxf .pxf-pace .pxo-host.lixv { width: 76px; height: 76px; } .pxf .pxf-pace .pxo-q { font-size: 16px; } }
/* "Continue with Free" sits centred under the Plus button on every width */
.pxf .ps-footer .__wrap:has(.pxf-alt) { flex-wrap: wrap; justify-content: center; row-gap: 2px; }
.pxf .ps-footer .__wrap:has(.pxf-alt) .pxf-alt { flex: 1 0 100%; text-align: center; }
