/* Client portal page. Design plan: _work/design-plan.md; site plan: _work/site-plan.md (Portal).
   Opener: split, the big login button and what you can do, beside the laptop photo with a mock portal window.
   Set piece: a pinned portal tour scrubbed through upload, deadlines, tax to pay and an e-signature that writes itself.
   The mock is a neutral Oval-styled window, not the portal supplier's own design. */

@keyframes po-drift-32 { to { background-position: 0 32px; } }
@keyframes po-drift-36 { to { background-position: 0 36px; } }
@keyframes po-pulse { 0% { box-shadow: 0 0 0 0 rgba(163,24,62,.5); } 75%, 100% { box-shadow: 0 0 0 10px rgba(163,24,62,0); } }
@keyframes po-pulse-g { 0% { box-shadow: 0 0 0 0 rgba(46,160,90,.5); } 75%, 100% { box-shadow: 0 0 0 8px rgba(46,160,90,0); } }
@keyframes po-float { from { transform: translateY(0) rotate(-1.5deg); } to { transform: translateY(-10px) rotate(-.5deg); } }

.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 1. Opener ---------- */
.po-open { position: relative; overflow: clip; background: var(--paper); padding: calc(var(--head-h) + clamp(26px, 5vh, 60px)) 0 clamp(50px, 8vh, 96px); }
.po-open__ruling { position: absolute; inset: 0; pointer-events: none; background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, rgba(19,32,47,.065) 31px, rgba(19,32,47,.065) 32px); animation: po-drift-32 18s linear infinite; -webkit-mask-image: linear-gradient(90deg, #000 40%, rgba(0,0,0,.3)); mask-image: linear-gradient(90deg, #000 40%, rgba(0,0,0,.3)); }
.po-open__ruling::before { content: ''; position: absolute; top: 0; bottom: 0; left: clamp(18px, 3vw, 46px); width: 1.5px; background: rgba(163,24,62,.5); }
.po-open__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(36px, 5vw, 96px); align-items: center; }
.po-open h1 { font-size: clamp(2.6rem, min(4.6vw, 8.4vh), 4.7rem); margin-bottom: clamp(14px, 2.2vh, 24px); }
.po-open__lede { color: var(--ink); margin-bottom: clamp(20px, 3vh, 30px); }
.po-login { min-height: 66px; padding: 1em 1.8em; font-size: 1.15rem; }
.po-login svg { width: 20px; height: 20px; }
.po-open__help { margin: 14px 0 clamp(20px, 3vh, 30px); font-size: 1rem; color: var(--ink-soft); }
.po-open__help a { color: var(--claret); font-weight: 700; }
.po-can { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; border-top: 2px solid var(--ink); }
.po-can li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-weight: 600; line-height: 1.3; }
.po-can .ico { width: 34px; height: 34px; padding: 6px; background: var(--blush); color: var(--crimson); }

.po-open__media { position: relative; padding: 0 0 60px 40px; perspective: 1200px; }
.po-open__ph { position: relative; margin: 0; }
.po-open__ph::before { content: ''; position: absolute; inset: -18px -18px 18px 18px; border: 1.5px solid var(--crimson); pointer-events: none; }
.po-open__frame { position: relative; aspect-ratio: 1264 / 848; max-height: min(58vh, 540px); width: 100%; box-shadow: 0 30px 60px rgba(34,9,15,.18); }
.po-open__frame img { position: absolute; inset: 0; object-position: 60% 50%; }
.motion .po-open__frame img { animation: po-zoom 14s ease-in-out infinite alternate; }
@keyframes po-zoom { from { transform: scale(1); } to { transform: scale(1.06); } }

.mini { position: absolute; left: 0; bottom: 0; z-index: 3; width: clamp(270px, 22vw, 330px); background: #fff; color: var(--ink); box-shadow: 0 30px 60px rgba(19,32,47,.32); border: 1px solid #E3D7DA; }
.mini__bar { display: flex; align-items: center; gap: 5px; padding: 9px 12px; background: var(--ink-blue); color: #fff; }
.mini__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); }
.mini__bar span { margin-left: 8px; font-weight: 700; font-size: .88rem; }
.mini__body { padding: 12px 14px 10px; }
.mini__body p { margin: 0; }
.mini__hi { font-family: var(--serif); font-size: 1.2rem; margin-bottom: 6px !important; }
.mini__row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #EFE5E7; font-size: .92rem; font-weight: 600; }
.mini__row .ico { width: 18px; height: 18px; color: var(--crimson); }
.mini__row span { flex: 1 1 auto; min-width: 0; }
.mini__row b { flex: none; font-size: .85rem; padding: 2px 8px; background: var(--blush); color: var(--claret); }
.mini__row b.ok { background: #E3F3E8; color: #1E6B3C; }
.mini__row b.go { background: var(--crimson); color: #fff; }
.mini__ping { position: absolute; right: -12px; top: -12px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--crimson); color: #fff; font-weight: 700; font-size: .9rem; animation: po-pulse 2.2s infinite; }
.motion:not(.motion-fail) [data-po-in], .motion:not(.motion-fail) [data-po-mini] { opacity: 0; }
.motion:not(.motion-fail) [data-po-wipe] { clip-path: inset(0 100% 0 0); }

@media (min-width: 901px) and (max-height: 860px) {
  .po-open { padding-top: calc(var(--head-h) + 20px); padding-bottom: 40px; }
  .po-open__frame { max-height: 50vh; }
  .po-can li { padding: 9px 0; }
}
@media (max-width: 900px) {
  .po-open__grid { grid-template-columns: minmax(0, 1fr); }
  .po-open__media { padding: 18px 18px 0 0; width: min(100%, 620px); }
  .mini { position: relative; left: auto; bottom: auto; margin: -70px 0 0 auto; width: min(290px, 78%); }
}
@media (max-width: 560px) {
  .po-open h1 { font-size: clamp(2.2rem, 10vw, 2.8rem); }
  .po-login { width: 100%; }
  .po-can { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 2. The portal tour (pinned) ---------- */
.tour { position: relative; background: var(--ink-blue); color: var(--on-dark); overflow: clip; }
.tour__pin { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--head-h) + 24px) 0 36px; }
.tour__ruling { position: absolute; inset: 0; pointer-events: none; background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 35px, rgba(255,255,255,.04) 35px, rgba(255,255,255,.04) 36px); animation: po-drift-36 22s linear infinite; }
.tour__ruling::after { content: ''; position: absolute; top: 0; bottom: 0; left: clamp(20px, 4.4vw, 70px); width: 1px; background: rgba(163,24,62,.6); }
.tour__grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vh, 34px) clamp(36px, 5vw, 90px); align-items: center; }
.tour__head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 40px; }
.tour h2 { color: #fff; }
.tour__head .lede { margin: 0; flex: 1 1 320px; }
.tsteps { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.25); }
.tstep { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.14); transition: opacity .4s; }
.tstep__n { display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid rgba(255,255,255,.35); color: var(--on-dark-soft); transition: background .4s, border-color .4s, color .4s; }
.tstep h3 { font-size: clamp(1.15rem, 1.4vw, 1.35rem); color: #fff; line-height: 1.3; padding-top: 8px; }
.tstep__more p { margin: 8px 0 10px; color: var(--on-dark-soft); }
.tstep__ticks { font-weight: 600; font-size: .98rem; color: var(--on-dark); }
.tstep__ticks li { margin-bottom: 6px; }
.tstep__bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.tstep__bar i { display: block; height: 100%; background: var(--highlight); transform-origin: left; transform: scaleX(0); }
.tstep.is-on .tstep__n { background: var(--crimson); border-color: var(--crimson); color: #fff; }

.pw { position: relative; background: #fff; color: var(--ink); box-shadow: 0 40px 80px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.2); }
.pw__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #EFE7E9; border-bottom: 1px solid #E0D3D6; }
.pw__bar > i { width: 10px; height: 10px; border-radius: 50%; background: #CDBDC2; }
.pw__url { display: flex; align-items: center; gap: 8px; margin-left: 12px; flex: 1 1 auto; padding: 4px 12px; background: #fff; font-weight: 600; font-size: .9rem; color: var(--ink-soft); }
.pw__live { width: 8px; height: 8px; border-radius: 50%; background: #2EA05A; animation: po-pulse-g 2.4s infinite; }
.pw__app { display: grid; grid-template-columns: 170px minmax(0, 1fr); }
.pw__side { padding: 16px 0; background: var(--wine); color: var(--on-dark-soft); }
.pw__side p { margin: 0; }
.pw__brand { display: flex; align-items: center; gap: 8px; padding: 0 16px 14px; font-family: var(--serif); font-size: 1.3rem; color: #fff; }
.pw__o { width: 26px; height: 18px; border: 2.5px solid var(--crimson); border-radius: 50%; }
.pw__nav { position: relative; display: flex; align-items: center; gap: 10px; padding: 11px 16px; font-weight: 600; font-size: .95rem; transition: background .35s, color .35s; }
.pw__nav .ico { width: 19px; height: 19px; }
.pw__nav.is-on { background: rgba(255,255,255,.1); color: #fff; }
.pw__nav.is-on::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--highlight); }
.pw__nav--soft { opacity: .55; }
.pw__screens { position: relative; padding: 20px 22px; }
.pw__screen { min-width: 0; }
.pw__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; }
.pw__eg { font-family: var(--sans); font-size: .82rem; font-weight: 700; padding: 3px 8px; background: var(--highlight); color: var(--ink); }

/* Documents */
.pdrop { position: relative; height: 150px; display: grid; place-items: center; border: 2px dashed #D6C2C8; background: #FCF8F9; overflow: hidden; }
.pdrop__hint { margin: 0; font-weight: 600; color: var(--ink-soft); }
.file { position: absolute; left: 50%; top: 26px; display: flex; align-items: center; gap: 10px; width: 270px; margin-left: -135px; padding: 10px 12px; background: #fff; border-left: 3px solid var(--crimson); box-shadow: 0 14px 30px rgba(34,9,15,.18); }
.file .ico { color: var(--crimson); }
.file span { display: grid; line-height: 1.25; font-size: .95rem; }
.file small { color: var(--ink-soft); font-size: .85rem; }
.pdrop__prog { position: absolute; left: 20%; right: 20%; bottom: 40px; height: 6px; background: #EDE3E5; }
.pdrop__prog i { display: block; height: 100%; background: var(--crimson); transform-origin: left; }
.pdrop__done { position: absolute; left: 0; right: 0; bottom: 10px; margin: 0; text-align: center; font-weight: 700; font-size: .95rem; color: #1E6B3C; }
.pdrop__done span { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 4px; border-radius: 50%; background: #2EA05A; color: #fff; font-size: .75rem; }
.pw__list { margin-top: 14px; }
.pw__list li { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid #EFE5E7; font-weight: 600; font-size: .95rem; }
.pw__list .ico { width: 19px; height: 19px; color: var(--claret); }
.pw__list span { flex: 1 1 auto; }
.pw__list small { color: var(--ink-soft); font-weight: 600; font-size: .85rem; }

/* Deadlines */
.dues li { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 10px; border-bottom: 1px solid #EFE5E7; }
.dues__d { display: grid; justify-items: center; line-height: 1; font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.dues__d b { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; color: var(--claret); letter-spacing: 0; }
.dues li > span:nth-child(2) { display: grid; line-height: 1.3; }
.dues small { color: var(--ink-soft); font-size: .88rem; }
.dues em { font-style: normal; font-weight: 700; font-size: .82rem; padding: 3px 8px; background: #F2ECEE; color: var(--ink-soft); white-space: nowrap; }
.dues li.is-next { background: linear-gradient(90deg, rgba(242,214,75,.35), rgba(242,214,75,0)); box-shadow: inset 3px 0 0 var(--highlight); }
.dues li.is-next em { background: var(--crimson); color: #fff; }

/* Tax to pay */
.owe { padding: 18px 20px; background: #FCF8F9; border: 1px solid #EFE2E6; }
.owe p { margin: 0; }
.owe__k { font-weight: 700; color: var(--ink-soft); }
.owe__v { font-weight: 600; font-size: clamp(2.6rem, 4vw, 3.6rem); line-height: 1.1; letter-spacing: -.035em; color: var(--claret); }
.owe__bar { display: flex; height: 14px; margin: 12px 0 10px; background: #EDE3E5; }
.owe__bar i { display: block; height: 100%; width: 50%; transform-origin: left; }
.owe__bar i:first-child { background: var(--crimson); }
.owe__bar i:last-child { background: #D9798F; }
.owe__key { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.owe__key i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; background: var(--crimson); }
.owe__key span + span i { background: #D9798F; }
.pw__note { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font-weight: 600; font-size: .95rem; color: var(--ink-soft); }
.pw__note .ico { color: var(--crimson); }

/* Signature */
.paper { position: relative; padding: 18px 22px 16px; background: #fff; border: 1px solid #E8DCDF; box-shadow: 0 16px 32px rgba(34,9,15,.1); }
.paper__t { margin: 0 0 12px; font-family: var(--serif); font-size: 1.15rem; }
.paper > i { display: block; height: 8px; margin-bottom: 9px; background: #EEE5E7; }
.paper > i.s { width: 70%; }
.paper__sig { position: relative; margin-top: 18px; width: min(100%, 320px); }
.paper__sig svg { width: 100%; height: auto; overflow: visible; }
.paper__sig path { fill: none; stroke: var(--ink-blue); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.paper__line { display: block; height: 1.5px; margin-top: -8px; background: var(--ink); }
.paper__sig small { display: block; margin-top: 4px; font-size: .85rem; color: var(--ink-soft); }
.paper__stamp { position: absolute; right: 24px; bottom: 24px; width: 140px; height: 86px; display: grid; place-content: center; text-align: center; border: 3px solid var(--crimson); outline: 1.5px solid var(--crimson); outline-offset: -8px; border-radius: 50%; color: var(--crimson); background: rgba(255,255,255,.9); transform: rotate(-11deg); }
.paper__stamp span { font-family: var(--serif); font-size: 1.4rem; line-height: 1; text-transform: uppercase; letter-spacing: .06em; }
.paper__stamp small { font-weight: 700; font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; margin-top: 3px; }

/* Static (no JS, reduced motion): the four screens sit side by side as a dashboard */
.pw__screens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.pdrop__hint { display: none; }
/* Motion: one screen at a time, scrubbed by the scroll */
.motion:not(.motion-fail) .pw__screens { display: block; height: 400px; overflow: hidden; }
.motion:not(.motion-fail) .pw__screen { position: absolute; inset: 20px 22px; }
.motion:not(.motion-fail) .pw__screen + .pw__screen { visibility: hidden; }
.motion:not(.motion-fail) .pdrop__hint { display: block; }
.motion:not(.motion-fail) .tstep__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.motion:not(.motion-fail) .tstep__more > div { min-height: 0; overflow: hidden; }
.motion:not(.motion-fail) .tstep.is-on .tstep__more { grid-template-rows: 1fr; }
.motion:not(.motion-fail) .tstep:not(.is-on) { opacity: .62; }

@media (max-height: 820px) and (min-width: 901px) {
  .motion:not(.motion-fail) .pw__screens { height: 360px; }
  .tour__head .lede { display: none; }
  .tstep { padding: 12px 0; }
}
@media (max-width: 1100px) and (min-width: 901px) { .pw__app { grid-template-columns: 140px minmax(0, 1fr); } }
@media (max-width: 900px) {
  .tour__grid { grid-template-columns: minmax(0, 1fr); }
  .pw { order: -1; grid-row: 2; }
  .tsteps { grid-row: 3; }
  .pw__app { grid-template-columns: minmax(0, 1fr); }
  .pw__side { display: flex; overflow: hidden; padding: 0; }
  .pw__brand, .pw__nav--soft { display: none; }
  .pw__nav { flex: 1 1 0; justify-content: center; padding: 10px 4px; }
  .pw__nav span { display: none; }
  .pw__screens { grid-template-columns: minmax(0, 1fr); }
  .motion:not(.motion-fail) .tour__pin { padding-top: calc(var(--head-h) + 14px); padding-bottom: 14px; }
  .motion:not(.motion-fail) .tour__head .lede { display: none; }
  .motion:not(.motion-fail) .pw__screens { height: 330px; }
  .motion:not(.motion-fail) .pw__screen { inset: 14px 14px; }
  /* one step at a time on a phone: the steps share one cell and crossfade */
  .motion:not(.motion-fail) .tsteps { display: grid; }
  .motion:not(.motion-fail) .tstep { grid-area: 1 / 1; transition: opacity .4s, visibility .4s; }
  .motion:not(.motion-fail) .tstep:not(.is-on) { opacity: 0; visibility: hidden; }
  .tour h2 { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .tstep__ticks { display: none; }
  .file { width: 230px; margin-left: -115px; }
  .paper__stamp { width: 110px; height: 70px; right: 12px; bottom: 12px; }
  .paper__stamp span { font-size: 1.1rem; }
  .dues li { grid-template-columns: 44px minmax(0, 1fr); padding: 9px 6px; }
  .dues em { display: none; }
  .owe__key { font-size: .85rem; }
}

/* ---------- 3. Your details, kept safe ---------- */
.po-also { overflow: clip; }
.po-also__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(36px, 5.5vw, 96px); align-items: center; }
.po-also__copy h2 { margin-bottom: 16px; }
.po-also__copy .lede { margin-bottom: clamp(24px, 3vw, 36px); }
.po-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.po-card { position: relative; padding: 26px 24px 18px; background: #fff; border-top: 4px solid var(--crimson); box-shadow: 0 20px 40px rgba(34,9,15,.08); }
.po-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(360px circle at var(--lx, 50%) var(--ly, 0%), rgba(242,214,75,.16), transparent 60%); opacity: 0; transition: opacity .4s; }
.po-card:hover::after { opacity: 1; }
.po-card > .ico { width: 46px; height: 46px; padding: 9px; margin-bottom: 14px; background: var(--blush); color: var(--crimson); }
.po-card h3 { margin-bottom: 12px; }
.po-card .ticks { font-size: 1rem; }
.po-also__ph { position: relative; margin: 0; padding: 26px 26px 26px 0; }
.po-also__ring { position: absolute; left: -6%; top: -4%; width: 112%; height: 108%; overflow: visible; pointer-events: none; }
.po-also__ring ellipse { fill: none; stroke: var(--crimson); stroke-width: 1.5; stroke-dasharray: 6 10; opacity: .55; animation: dash-turn 30s linear infinite; }
.po-also__frame { position: relative; aspect-ratio: 4 / 4.4; max-height: var(--media-cap); }
.po-also__frame img { position: absolute; inset: -6% 0 auto; height: 112%; }
.po-also__lock { position: absolute; left: -26px; bottom: 50px; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--ink-blue); color: #fff; font-weight: 700; box-shadow: 0 16px 34px rgba(19,32,47,.3); }
.po-also__lock .ico { color: var(--highlight); }
.motion .po-also__lock { animation: po-float 3.4s ease-in-out infinite alternate; }
@media (max-width: 900px) { .po-also__grid { grid-template-columns: minmax(0, 1fr); } .po-also__ph { width: min(100%, 460px); } .po-also__lock { left: 0; } }
@media (max-width: 600px) { .po-cards { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 4. Help ---------- */
.po-help { overflow: clip; background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 35px, rgba(255,255,255,.06) 35px, rgba(255,255,255,.06) 36px); animation: po-drift-36 14s linear infinite; }
.po-help__oval { position: absolute; right: -14vw; top: -40%; width: 70vw; height: 150%; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); box-shadow: inset 0 0 0 40px rgba(255,255,255,.035), inset 0 0 0 80px rgba(255,255,255,.02); animation: wobble 12s ease-in-out infinite alternate; pointer-events: none; }
.po-help__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(30px, 4vw, 70px) clamp(36px, 5.5vw, 96px); align-items: center; }
.po-help h2 { color: #fff; margin-bottom: 18px; }
.po-help__copy > p { font-size: clamp(1.08rem, 1.25vw, 1.2rem); color: #FBE3E8; margin-bottom: 26px; }
.po-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; background: #fff; color: var(--ink); box-shadow: 0 30px 60px rgba(34,9,15,.3); }
.po-ways > div { padding: 22px 24px; border-bottom: 1px solid var(--rule); }
.po-ways > div:nth-child(odd) { border-right: 1px solid var(--rule); }
.po-ways > div:nth-child(n+3) { border-bottom: 0; }
.po-ways dt { font-size: .88rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--crimson); margin-bottom: 6px; }
.po-ways dd { margin: 0; font-weight: 600; line-height: 1.55; }
.po-ways a { color: var(--claret); text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1.5px; transition: background-size .35s var(--ease); }
.po-ways a:hover { background-size: 100% 1.5px; }
.po-next { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; border-top: 1px solid rgba(255,255,255,.4); }
.po-next a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.25); color: #fff; font-weight: 700; font-size: 1.08rem; text-decoration: none; background: linear-gradient(90deg, rgba(255,255,255,.12), rgba(255,255,255,.12)) no-repeat 0 0 / 0 100%; transition: background-size .45s var(--ease), padding .45s var(--ease); }
.po-next a:hover, .po-next a:focus-visible { background-size: 100% 100%; padding-inline: 12px; }
.po-next svg { width: 20px; flex: none; color: var(--highlight); }
@media (max-width: 900px) { .po-help__grid { grid-template-columns: minmax(0, 1fr); } .po-next { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .po-ways { grid-template-columns: minmax(0, 1fr); } .po-ways > div:nth-child(odd) { border-right: 0; } .po-ways > div:nth-child(3) { border-bottom: 1px solid var(--rule); } }

/* Ambient: a soft light passes over the portal window glass; the help card's top edge runs a highlight */
.pw::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.28) 48%, transparent 60%); transform: translateX(-100%); }
.motion .pw::after { animation: po-glass 3.6s ease-in-out .8s infinite; }
@keyframes po-glass { 0% { transform: translateX(-100%); } 55%, 100% { transform: translateX(100%); } }
.pw { overflow: clip; }
.po-ways { position: relative; }
.po-ways::before { content: ''; position: absolute; left: 0; top: 0; height: 4px; width: 40%; background: linear-gradient(90deg, rgba(242,214,75,0), var(--highlight), rgba(242,214,75,0)); }
.motion .po-ways::before { animation: po-run 5s cubic-bezier(.5,0,.4,1) infinite; }
@keyframes po-run { 0% { transform: translateX(-100%); opacity: 1; } 45% { transform: translateX(250%); opacity: 1; } 46%, 100% { opacity: 0; } }
.po-ways { overflow: clip; }
.po-ways dd a { display: flex; align-items: center; width: fit-content; min-height: 44px; }
@media (min-width: 1700px) { .po-open__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); } }
.po-help__l2 { display: block; }
@media (max-width: 900px) {
  .motion:not(.motion-fail) .pw__screens { height: 290px; }
  .motion:not(.motion-fail) .tour__grid { row-gap: 14px; }
  .motion:not(.motion-fail) .tstep { padding: 10px 0; }
  .motion:not(.motion-fail) .tstep__more p { margin: 4px 0 0; font-size: .98rem; }
  .pw__screen--doc .pw__list li:nth-child(2) { display: none; }
  .pdrop { height: 130px; }
}
/* Static tour (no JS, reduced motion): steps in two columns, then the window full width with its four panels */
.no-js .tour__grid, .rm .tour__grid, .motion-fail .tour__grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 901px) {
  .no-js .tsteps, .rm .tsteps, .motion-fail .tsteps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
}
@media (max-width: 900px) { .motion:not(.motion-fail) .pw__note { display: none; } .owe { padding: 14px 16px; } }
