/* ============================================================
   Walkthrough screens. Drawn from the real app and pay-link
   (apps/leader/app/splice/[id].tsx, share/[id].tsx, charge.tsx,
   apps/paylink/app/j/[token]/*), scaled by ~0.72 so a 300px
   phone holds the same proportions as a 393pt screen.
   ============================================================ */
.wk-stage { flex: 1; position: relative; min-height: 0; overflow: hidden; }
.wk-screens, .wk-fx { position: absolute; inset: 0; }
.wk-fx { pointer-events: none; z-index: 20; }

.wk-s {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 0 14px;
  background: var(--app-canvas);
  color: var(--app-ink);
  font-family: var(--ios);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.wk-s.on { opacity: 1; }
.wk-s.wk-pre { transform: translateX(26px); }
.wk-body { flex: 1; min-height: 0; overflow: hidden; }
.wk-inner { transform: translateY(var(--sy, 0px)); transition: transform 0.7s cubic-bezier(0.3, 0.8, 0.2, 1); padding-bottom: 14px; }
.wk-foot { padding: 6px 0 24px; display: flex; flex-direction: column; gap: 6px; }
.wk-hide { display: none !important; }

/* type, scaled from the app's pt sizes */
.wk-disp { font-size: 20px; line-height: 1.12; letter-spacing: -0.2px; margin-top: 4px; }
.wk-wdisp, .wk-wtitle { font-family: Georgia, "Times New Roman", serif; letter-spacing: -0.3px; }
.wk-wdisp { font-size: 22px; margin-top: 4px; }
.wk-wtitle { font-size: 18px; line-height: 1.15; margin-top: 4px; }
.wk-wtitle--sm { font-size: 16px; }
.wk-title { font-size: 14.5px; margin-top: 3px; }
.wk-small { font-size: 9.5px; margin-top: 6px; line-height: 1.4; }
.wk-dim { color: var(--app-stone); }
.wk-cap { font-size: 8.5px; color: var(--app-muted); margin-top: 6px; line-height: 1.4; }
.wk-cap2 { font-size: 8.5px; color: var(--app-muted); margin-top: 6px; line-height: 1.4; }
.wk-center { text-align: center; }
.wk-gap { margin-top: 12px; }
.wk-gap2 { margin-top: 10px; }
.wk-bodytxt { font-size: 10px; line-height: 1.5; color: var(--app-stone); margin-top: 8px; }
.wk-med { font-weight: 600; }
.wk-num { font-size: 40px; font-variant-numeric: tabular-nums; font-weight: 500; letter-spacing: -1px; margin-top: 6px; }
.wk-eyebrow { font-size: 7.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--app-stone); margin-top: 6px; }
.wk-sec { font-size: 9px; color: var(--app-muted); margin: 12px 0 5px; }
.wk-sec--row { display: flex; align-items: center; justify-content: space-between; }
.wk-ph { color: var(--app-muted); }

.wk-nav { display: flex; justify-content: space-between; align-items: center; height: 22px; margin-top: 2px; color: var(--app-stone); }
.wk-ic { width: 15px; height: 15px; display: inline-flex; }
.wk-ic svg { width: 100%; height: 100%; }
.wk-gear { color: var(--app-ink); }

/* cards and rows: Card padding 16pt, ListRow 12pt, Hairline margin 12pt */
.wk-card { background: var(--app-surface); border-radius: 10px; padding: 3px 11px; }
.wk-row { display: flex; align-items: center; gap: 9px; padding: 9px 0; }
.wk-hair { height: 1px; background: var(--app-line); margin: 0; }
.wk-av { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--app-track); color: var(--app-stone); font-size: 10px; }
.wk-t { flex: 1; min-width: 0; }
.wk-t b { display: block; font-size: 11.5px; font-weight: 400; }
.wk-t small { display: block; font-size: 8.5px; color: var(--app-muted); margin-top: 1px; }
.wk-amt { font-size: 11px; font-variant-numeric: tabular-nums; flex: none; }
.wk-pen, .wk-dots i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--app-line); display: grid; place-items: center; flex: none; color: var(--app-stone); font-style: normal; }
.wk-pen svg, .wk-dots i svg { width: 10px; height: 10px; }
.wk-dots { display: flex; gap: 5px; flex: none; }
.wk-invite { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px 3px 8px; border: 1px solid var(--app-ember); border-radius: 999px; color: var(--app-ember); font-size: 9.5px; font-weight: 500; }
.wk-invite svg { width: 9px; height: 9px; }

/* buttons */
.wk-btn { background: var(--app-ember); color: var(--app-on-ember); border-radius: 999px; padding: 12px; text-align: center; font-size: 11.5px; font-weight: 600; }
.wk-btn--off { opacity: 0.45; }
.wk-btn--dim { opacity: 0.4; transition: opacity 0.3s; }
.wk-btn--danger { background: #b3402f; }
.wk-btn2 { margin-top: 10px; border: 1px solid var(--app-line); background: var(--app-surface); border-radius: 999px; padding: 11px; text-align: center; font-size: 11px; font-weight: 600; }
.wk-btn2--icon { display: flex; align-items: center; justify-content: center; gap: 6px; }
.wk-btn2--icon i { width: 12px; height: 12px; display: inline-flex; }
.wk-ghost { text-align: center; font-size: 10.5px; font-weight: 500; color: var(--app-stone); padding: 5px; }

/* charge lines */
.wk-rline { padding: 9px 0; }
.wk-line { display: flex; align-items: center; gap: 8px; }
.wk-ln { flex: 1; font-size: 11.5px; }
.wk-lamt { font-size: 11.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.wk-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 8.5px; color: var(--app-success); min-width: 46px; justify-content: flex-start; }
.wk-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--app-success); transition: background 0.3s; }
.wk-tag--wait { color: var(--app-muted); }
.wk-tag--wait i { background: var(--app-muted); }
.wk-bdwrap { max-height: 0; overflow: hidden; transition: max-height 0.5s ease; }
.wk-bdwrap.open { max-height: 160px; }
.wk-bd { margin-top: 6px; background: var(--app-track); border-radius: 10px; padding: 8px 9px; }
.wk-bdr { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--app-stone); padding: 2px 0; font-variant-numeric: tabular-nums; }
.wk-bdr--s { color: var(--app-ink); font-weight: 600; }
.wk-bdh { height: 1px; background: var(--app-line); margin: 4px 0; }
.wk-foot2 { font-size: 7.5px; color: var(--app-muted); margin: 5px 0 2px; }

/* share page */
.wk-center .wk-inner { padding-top: 4px; }
.wk-qrwrap { display: flex; justify-content: center; margin: 12px 0; }
.wk-qr { width: 112px; height: 112px; padding: 9px; background: #fff; border-radius: 14px; }
.wk-qr svg { width: 100%; height: 100%; display: block; }
.wk-pad { padding: 8px 11px; margin-top: 6px; }
.wk-linkrow { display: flex; justify-content: space-between; align-items: center; }
.wk-linkrow small, .wk-mid small { display: block; font-size: 8px; color: var(--app-muted); }
.wk-linkrow span { font-size: 9.5px; }
.wk-linkrow b { font-size: 9.5px; font-weight: 500; color: var(--app-ember); }
.wk-mid { text-align: center; }
.wk-mid strong { display: block; font-size: 13px; font-weight: 500; letter-spacing: 2px; margin-top: 1px; }

/* web pages */
.wk-web .wk-nav { color: var(--app-stone); }
.wk-banner { margin-top: 12px; background: var(--app-surface); border-radius: 10px; padding: 9px 11px; font-size: 9.5px; line-height: 1.4; }
.wk-banner--row { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.wk-banner--row b { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wk-amt2 { text-align: center; margin-top: 14px; }
.wk-amt2 small { display: block; font-size: 9px; color: var(--app-stone); }
.wk-amt2 strong { display: block; font-size: 26px; font-weight: 600; letter-spacing: -0.4px; margin-top: 3px; font-variant-numeric: tabular-nums; }
.wk-amt2 em { color: var(--app-ember); font-style: normal; }
.wk-seebd { display: inline-block; font-size: 9px; color: var(--app-muted); text-underline-offset: 3px; margin-top: 6px; }
.wk-bd--web { background: var(--app-surface); text-align: left; max-height: 0; padding-block: 0; margin-top: 0; overflow: hidden; transition: max-height 0.5s ease, margin 0.4s, padding 0.4s; }
.wk-amt2.open .wk-bd--web { max-height: 120px; padding-block: 8px; margin-top: 10px; }
.wk-bdnote { text-align: left; max-height: 0; overflow: hidden; margin: 0; transition: max-height 0.4s; }
.wk-amt2.open .wk-bdnote { max-height: 20px; margin-top: 5px; }
.wk-cap2.wk-chg, .wk-cap2.wk-rest { text-align: center; }
.wk-wbtn, .wk-wbtn2 { margin-top: 12px; border-radius: 999px; padding: 11px; text-align: center; font-size: 11px; font-weight: 600; }
.wk-wbtn { background: var(--app-ember); color: var(--app-on-ember); }
.wk-wbtn2 { background: var(--app-surface); border: 1px solid var(--app-line); color: var(--app-ink); }
.wk-leave { text-align: center; font-size: 9.5px; color: #b3402f; margin-top: 12px; }
/* resting vs charging variants */
.wk-s[data-s="S"] .wk-chg { display: none; }
.wk-s[data-s="S"].charging .wk-chg { display: block; }
.wk-s[data-s="S"].charging .wk-chg.wk-banner--row { display: flex; }
.wk-s[data-s="S"].charging .wk-rest { display: none; }
/* sheet + modal */
.wk-sheetwrap, .wk-modalwrap { position: absolute; inset: 0; background: rgba(20, 20, 20, 0); pointer-events: none; transition: background 0.35s; z-index: 10; }
.wk-sheetwrap.open, .wk-modalwrap.open { background: rgba(20, 20, 20, 0.38); }
.wk-sheet { position: absolute; left: 0; right: 0; bottom: 0; background: var(--app-surface); border-radius: 16px 16px 0 0; padding: 8px 17px 22px; transform: translateY(104%); transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.wk-sheetwrap.open .wk-sheet { transform: none; }
.wk-grab { width: 26px; height: 4px; border-radius: 4px; background: var(--app-line); margin: 0 auto 8px; }
.wk-sheet-t { font-size: 14.5px; }
.wk-sheet-s { font-size: 9.5px; color: var(--app-stone); margin-bottom: 4px; }
.wk-srow { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--app-line); }
.wk-srow div { flex: 1; }
.wk-srow b { display: block; font-size: 11px; font-weight: 500; }
.wk-srow small { display: block; font-size: 8.5px; color: var(--app-muted); }
.wk-srow span { font-size: 14px; color: var(--app-muted); }
.wk-sheet-close { text-align: center; font-size: 10px; margin-top: 10px; }
.wk-modalwrap { display: flex; align-items: center; justify-content: center; padding: 0 18px; }
.wk-modal { background: var(--app-surface); border-radius: 14px; padding: 15px; width: 100%; transform: scale(0.94); opacity: 0; transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s; }
.wk-modalwrap.open .wk-modal { transform: none; opacity: 1; }
.wk-modal-t { font-size: 14px; margin-bottom: 6px; }
.wk-modal-b { font-size: 9.5px; line-height: 1.45; color: var(--app-stone); margin-bottom: 12px; }
.wk-modal .wk-wbtn2 { margin-top: 6px; }

/* pay page */
.wk-paygrp { margin-top: 16px; display: flex; flex-direction: column; gap: 7px; }
.wk-pay { height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; font-weight: 500; }
.wk-pay i { display: inline-flex; width: 14px; height: 16px; }
.wk-pay i svg { width: 100%; height: 100%; }
.wk-pay--apple { background: #000; color: #fff; }
.wk-pay--google { background: #fff; color: #3c4043; border: 1px solid #dadce0; border-radius: 999px; }
.wk-pay--google i { width: 15px; height: 15px; }
.wk-pay--card { background: #fff; border: 1px solid rgba(26, 26, 26, 0.2); font-size: 11.5px; }
.wk-pay--card i { width: 15px; height: 11px; color: var(--app-ink); }
.wk-cash { text-align: center; font-size: 9px; color: var(--app-muted); text-decoration: underline; text-underline-offset: 3px; margin-top: 16px; }

/* join form */
.wk-fields { margin-top: 12px; display: flex; flex-direction: column; gap: 7px; }
.wk-input { background: #fff; border: 1px solid var(--app-line); border-radius: 10px; padding: 10px 11px; font-size: 11px; min-height: 34px; }
.wk-consent { margin-top: 12px; display: flex; gap: 8px; align-items: flex-start; border: 1px solid var(--app-line); background: #fff; border-radius: 10px; padding: 9px; font-size: 7.5px; line-height: 1.45; color: var(--app-stone); }
.wk-cb { width: 13px; height: 13px; border-radius: 3px; border: 1.5px solid #9a9a96; flex: none; margin-top: 1px; display: grid; place-items: center; transition: background 0.2s, border-color 0.2s; }
.wk-consent.on .wk-cb { background: var(--app-ember); border-color: var(--app-ember); }
.wk-consent.on .wk-cb::after { content: ""; width: 4px; height: 7px; border: solid #fff; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg) translate(-1px, -1px); }

/* limit / waive / cover / signups */
.wk-togrow { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; background: var(--app-surface); border-radius: 10px; padding: 10px 11px; font-size: 10.5px; }
.wk-togrow--s { margin-top: 8px; padding: 0; background: transparent; }
.wk-tog { width: 30px; height: 18px; border-radius: 999px; background: var(--app-line); position: relative; transition: background 0.25s; flex: none; }
.wk-tog i { position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform 0.25s; }
.wk-tog.on { background: var(--app-ember); }
.wk-tog.on i { transform: translateX(12px); }
.wk-money { margin-top: 12px; display: flex; align-items: center; gap: 8px; background: var(--app-surface); border-radius: 10px; padding: 10px 11px; font-size: 14px; }
.wk-money b { color: var(--app-stone); font-weight: 400; }
.wk-money--sm { margin-top: 8px; padding: 8px 10px; font-size: 12px; }
.wk-pills { display: flex; gap: 6px; margin-top: 8px; }
.wk-pills span { border: 1px solid var(--app-line); background: var(--app-surface); border-radius: 999px; padding: 5px 11px; font-size: 9.5px; }
.wk-sumcard { margin-top: 12px; background: var(--app-surface); border-radius: 10px; padding: 8px 11px; font-size: 9.5px; display: flex; flex-direction: column; gap: 4px; }
.wk-sumcard div { display: flex; justify-content: space-between; }
.wk-sumcard div span:first-child { color: var(--app-stone); }
.wk-note { margin-top: 12px; background: var(--app-surface); border-radius: 10px; padding: 9px 11px; font-size: 10px; min-height: 40px; }
.wk-radios { margin-top: 10px; background: var(--app-surface); border-radius: 10px; padding: 3px 11px; }
.wk-radio { display: flex; align-items: center; gap: 9px; padding: 7px 0; font-size: 10.5px; }
.wk-radio b { font-weight: 500; }
.wk-radio i { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid #9a9a96; flex: none; display: grid; place-items: center; transition: border-color 0.2s; }
.wk-radio.on i { border-color: var(--app-ember); }
.wk-radio.on i::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--app-ember); }
.wk-sign { margin-top: 10px; background: var(--app-surface); border-radius: 10px; padding: 10px 11px; }
.wk-signtop { display: flex; justify-content: space-between; font-size: 11.5px; }
.wk-signtop b { font-weight: 500; }
.wk-maxrow { margin-top: 8px; font-size: 9.5px; color: var(--app-stone); }

/* spotlight + tap */
.wk-spot {
  position: absolute;
  left: 0; top: 0; width: 0; height: 0;
  border-radius: 12px;
  border: 2px solid var(--ember);
  box-shadow: 0 0 0 800px rgba(250, 249, 246, 0.7);
  opacity: 0;
  transition: left 0.55s cubic-bezier(0.3, 0.8, 0.2, 1), top 0.55s cubic-bezier(0.3, 0.8, 0.2, 1),
    width 0.55s cubic-bezier(0.3, 0.8, 0.2, 1), height 0.55s cubic-bezier(0.3, 0.8, 0.2, 1), opacity 0.25s, box-shadow 0.3s;
}
.wk-spot.on { opacity: 1; }
.wk-spot.soft { box-shadow: 0 0 0 800px rgba(250, 249, 246, 0); border-color: transparent; }
.wk-spot::after { content: ""; position: absolute; inset: -6px; border-radius: 17px; border: 1px solid rgba(23, 77, 56, 0.3); }
.wk-spot.soft::after { display: none; }
.wk-tap {
  position: absolute;
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  background: rgba(23, 77, 56, 0.28);
  border: 2px solid var(--ember);
  opacity: 0;
  transform: scale(0.4);
}
.wk-tap.go { animation: wkTap 0.7s ease-out; }
@keyframes wkTap {
  0% { opacity: 0; transform: scale(0.4); }
  25% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.5); }
}
.wk-press { transform: scale(0.96); transition: transform 0.12s; }

/* ---- round 4: centered content, add-expense, group chat, speed-run, celebration ---- */
.wk-body { display: flex; flex-direction: column; }
.wk-inner { margin: auto 0; width: 100%; }
.wk-nav { padding: 0; flex: none; }
.wk-bd--web { transition-duration: 0.55s; }
.wk-bdnote { transition-duration: 0.55s; }
.wk-seg { display: flex; background: var(--app-track); border-radius: 999px; padding: 3px; margin-top: 5px; }
.wk-seg span { flex: 1; text-align: center; font-size: 10px; padding: 6px; border-radius: 999px; color: var(--app-stone); }
.wk-seg span.on { background: var(--app-surface); color: var(--app-ink); font-weight: 600; }
.wk-formcol .wk-input { margin-top: 5px; }

/* group chat (iMessage-style) */
.wk-chat { background: #fff; padding: 0; }
.wk-chathead { text-align: center; padding: 6px 0 8px; border-bottom: 1px solid #ececf0; background: rgba(249, 249, 249, 0.96); flex: none; }
.wk-chathead b { display: block; font-size: 11px; font-weight: 600; }
.wk-chathead small { font-size: 8.5px; color: #8e8e93; }
.wk-chatcol { padding: 10px 12px; display: flex; flex-direction: column; gap: 5px; }
.wk-bub { max-width: 78%; padding: 7px 10px; border-radius: 14px; font-size: 10.5px; line-height: 1.3; position: relative; }
.wk-bub i { display: block; font-style: normal; font-size: 8px; color: #8e8e93; margin: -1px 0 2px; }
.wk-bub--in { align-self: flex-start; background: #e9e9eb; color: #000; margin-top: 8px; }
.wk-link { align-self: flex-start; display: flex; align-items: center; gap: 10px; background: var(--app-ember); color: #fff; border-radius: 14px; padding: 9px 12px; margin-top: 3px; }
.wk-link span b { display: block; font-size: 11.5px; }
.wk-link span small { font-size: 9px; opacity: 0.85; }
.wk-link i { width: 13px; height: 17px; display: inline-flex; }
.wk-link i svg { width: 100%; height: 100%; }

/* speed-run overlay on the countdown */
.wk-fast {
  position: absolute; inset: 0; z-index: 6;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: rgba(205, 205, 200, 0.6);
  color: #3b3b38;
  pointer-events: none;
}
.wk-s.fast .wk-fast { display: flex; animation: wkFastIn 0.2s ease-out; }
.wk-fast svg { width: 46px; height: 46px; }
.wk-fast b { font-size: 20px; font-weight: 700; letter-spacing: 0.5px; }
@keyframes wkFastIn { from { opacity: 0; } to { opacity: 1; } }

/* charged + celebration */
.wk-paidline { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; }
.wk-paidline strong { font-size: 15px; font-weight: 600; color: var(--app-ember); letter-spacing: -0.2px; font-variant-numeric: tabular-nums; }
.wk-paidline span { font-size: 9.5px; color: var(--app-stone); }
.wk-modal--c { text-align: center; }
.wk-modal--c .wk-btn { margin-top: 4px; padding: 10px; font-size: 10.5px; }
.wk-confetti { position: absolute; left: 50%; top: 42%; width: 0; height: 0; z-index: 11; pointer-events: none; }
.wk-confetti span { position: absolute; left: 0; top: 0; width: 6px; height: 9px; border-radius: 2px; background: var(--c); opacity: 0; }
.wk-modalwrap.open .wk-confetti span { animation: wkBurst 1s cubic-bezier(0.1, 0.8, 0.3, 1) var(--dl) forwards; }
@keyframes wkBurst {
  0% { opacity: 1; transform: translate(0, 0) rotate(0) scale(0.6); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) + 30px)) rotate(var(--rot)) scale(1); }
}

/* ---- round 5: inviting tabs, real iMessage look, paused state, mobile ---- */
.wt-tabs { border-top: 0; gap: 10px; }
.wt-tab {
  display: flex; align-items: center; gap: 14px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s, background 0.2s;
}
.wt-tab::before { display: none; }
.wt-tab:hover { border-color: #cfcbbf; box-shadow: 0 8px 22px -14px rgba(0, 0, 0, 0.25); transform: translateY(-1px); }
.wt-tab:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.wt-tab-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--leaf, #f6f6f3); color: var(--ember); display: grid; place-items: center; flex: none; transition: background 0.2s, color 0.2s; }
.wt-tab-ic svg { width: 20px; height: 20px; }
.wt-tab-body { flex: 1; min-width: 0; }
.wt-tab-t { color: var(--ink); font-size: 17px; }
.wt-tab-go { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--rule); flex: none; position: relative; transition: background 0.2s, border-color 0.2s, transform 0.2s; }
.wt-tab-go::after { content: ""; position: absolute; left: 10px; top: 10px; width: 8px; height: 8px; border-right: 2px solid var(--ink-2); border-top: 2px solid var(--ink-2); transform: rotate(45deg) translate(-1px, 1px); }
.wt-tab:hover .wt-tab-go { transform: translateX(2px); }
.wt-tab[aria-selected="true"] { border-color: var(--ember); background: #fff; box-shadow: 0 10px 26px -16px rgba(23, 77, 56, 0.55); }
.wt-tab[aria-selected="true"] .wt-tab-ic { background: var(--ember); color: #fff; }
.wt-tab[aria-selected="true"] .wt-tab-go { background: var(--ember); border-color: var(--ember); }
.wt-tab[aria-selected="true"] .wt-tab-go::after { border-color: #fff; }
.wt-tab[aria-selected="true"] .wt-tab-d { max-height: 120px; }
.wt-desc { display: none; }

/* iMessage */
.wk-chat { background: #fff; padding: 0; }
.wk-chathead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 4px 10px 6px; background: rgba(247, 247, 247, 0.96); border-bottom: 1px solid #dcdce0; flex: none; }
.wk-chback { display: inline-flex; align-items: center; color: #0b84ff; font-size: 11px; }
.wk-chback svg { width: 14px; height: 14px; }
.wk-chback em { font-style: normal; background: #0b84ff; color: #fff; border-radius: 999px; font-size: 8px; padding: 1px 5px; margin-left: 2px; }
.wk-chmid { text-align: center; }
.wk-chav { display: flex; justify-content: center; }
.wk-chav i { width: 22px; height: 22px; border-radius: 50%; background: #aeb2bb; color: #fff; font-style: normal; font-size: 9px; display: grid; place-items: center; margin-left: -5px; border: 1.5px solid #f7f7f7; }
.wk-chav i:nth-child(2) { background: #9aa0aa; }
.wk-chav i:nth-child(3) { background: #8a909b; }
.wk-chmid b { display: block; font-size: 9px; font-weight: 500; margin-top: 2px; color: #000; }
.wk-chmid u { text-decoration: none; color: #8e8e93; }
.wk-chatcol { padding: 8px 10px; display: flex; flex-direction: column; gap: 3px; }
.wk-stamp { text-align: center; font-size: 8px; color: #8e8e93; margin: 2px 0 6px; }
.wk-stamp b { font-weight: 600; }
.wk-gc { display: flex; align-items: flex-end; gap: 5px; margin-top: 4px; }
.wk-gcav { width: 20px; height: 20px; border-radius: 50%; background: #c5c8cf; color: #fff; font-style: normal; font-size: 8px; display: grid; place-items: center; flex: none; }
.wk-gcn { display: block; font-size: 7.5px; color: #8e8e93; margin: 0 0 1px 8px; }
.wk-bub { max-width: 82%; padding: 6px 10px; border-radius: 15px; font-size: 10.5px; line-height: 1.3; margin: 0; }
.wk-bub--in { background: #e9e9eb; color: #000; border-bottom-left-radius: 5px; }
.wk-bub--out { align-self: flex-end; background: #0b84ff; color: #fff; border-bottom-right-radius: 5px; margin-top: 6px; }
.wk-deliv { align-self: flex-end; font-size: 7.5px; color: #8e8e93; margin-right: 4px; }
.wk-rich { width: 150px; background: #e9e9eb; border-radius: 15px; overflow: hidden; border-bottom-left-radius: 5px; }
.wk-rich-top { height: 76px; background: var(--ember); display: grid; place-items: center; }
.wk-rich-top svg { width: 32px; height: 40px; }
.wk-rich-bot { padding: 7px 10px 8px; }
.wk-rich-bot b { display: block; font-size: 10.5px; font-weight: 600; }
.wk-rich-bot small { font-size: 8.5px; color: #6b6b70; }
.wk-inputbar { display: flex; align-items: center; gap: 7px; padding: 6px 10px 22px; background: #fff; flex: none; }
.wk-plus { width: 24px; height: 24px; border-radius: 50%; background: #e9e9eb; color: #6b6b70; display: grid; place-items: center; font-size: 17px; line-height: 1; flex: none; }
.wk-field { flex: 1; display: flex; align-items: center; justify-content: space-between; border: 1px solid #d0d0d5; border-radius: 999px; padding: 5px 10px; font-size: 10.5px; color: #aaa; }
.wk-field i { width: 12px; height: 12px; color: #8e8e93; display: inline-flex; }

/* paused state */
.wk-pz { display: none; }
.wk-s[data-s="S"].paused .wk-pz { display: block; }
.wk-s[data-s="S"].paused .wk-chg { display: none !important; }

/* phones and tablets */
@media (max-width: 900px) {
  .wt { gap: 18px; }
  .wt-side { display: flex; flex-direction: column; }
  .wt-toggle { align-self: center; margin-bottom: 14px; }
  .wt-tabs { flex-direction: row; overflow-x: auto; gap: 8px; padding: 2px 2px 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-inline: -4px; }
  .wt-tabs::-webkit-scrollbar { display: none; }
  .wt-tabs[hidden] { display: none; }
  .wt-tab { flex: none; scroll-snap-align: center; padding: 10px 14px 10px 10px; gap: 10px; border-radius: 999px; }
  .wt-tab-ic { width: 34px; height: 34px; border-radius: 50%; }
  .wt-tab-ic svg { width: 17px; height: 17px; }
  .wt-tab-t { font-size: 15px; white-space: nowrap; }
  .wt-tab-d, .wt-tab-go { display: none; }
  .wt-desc { display: block; text-align: center; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); max-width: 36em; margin: 6px auto 0; min-height: 3.2em; }
}
@media (max-width: 360px) { .wt-phone { zoom: 0.92; } }
/* mobile: controls first, phone right under them, so a tap is always seen */
@media (max-width: 900px) {
  .wt-side { order: -1; }
  .wt-stage { padding-top: 0; }
}
@media (max-width: 600px) {
  .wt-phone { zoom: 0.8; }
  .wt-desc { min-height: 4.4em; }
}

/* ---- round 6: duotone icons, share group ---- */
.wt-tab-ic { width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(160deg, #f4f9f6, #DDF0E6); box-shadow: inset 0 0 0 1px rgba(23, 77, 56, 0.1); }
.wt-tab-ic svg { width: 28px; height: 28px; }
.wt-tab[aria-selected="true"] .wt-tab-ic { background: linear-gradient(160deg, #ffffff, #d6e8de); color: inherit; box-shadow: inset 0 0 0 1.5px var(--ember); }
.wt-group { display: flex; flex-direction: column; gap: 10px; }
.wt-tab--group .wt-tab-go::after { transform: rotate(135deg) translate(-1px, 1px); left: 9px; top: 8px; }
.wt-tab--group[aria-expanded="true"] .wt-tab-go::after { transform: rotate(-45deg) translate(1px, -1px); top: 12px; }
.wt-sub { display: flex; flex-direction: column; gap: 8px; margin-left: 22px; padding-left: 14px; border-left: 2px solid var(--rule); }
.wt-sub[hidden] { display: none; }
.wt-tab--sub { padding: 10px 14px; border-radius: 14px; }
.wt-tab--sub .wt-tab-ic { width: 36px; height: 36px; border-radius: 11px; }
.wt-tab--sub .wt-tab-ic svg { width: 22px; height: 22px; }
.wt-tab--sub .wt-tab-t { font-size: 15.5px; }
@media (max-width: 900px) {
  .wt-group, .wt-sub { display: contents; }
  .wt-sub[hidden] { display: none; }
  .wt-tab--group .wt-tab-go { display: none; }
  .wt-tab--sub { padding: 10px 14px 10px 10px; border-radius: 999px; }
  .wt-tab--sub .wt-tab-ic { width: 34px; height: 34px; border-radius: 50%; }
}

/* payout celebration */
.wk-modal--win { background: var(--app-ember); color: #fff; text-align: center; padding: 20px 16px 16px; border-radius: 18px; overflow: hidden; position: relative; }
.wk-win-badge { width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); display: grid; place-items: center; position: relative; }
.wk-win-badge svg { width: 24px; height: 24px; }
.wk-win-badge i { position: absolute; inset: -7px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.35); }
.wk-modalwrap.open .wk-win-badge i { animation: wkRing 1.4s ease-out infinite; }
@keyframes wkRing { 0% { transform: scale(0.8); opacity: 0.9; } 100% { transform: scale(1.5); opacity: 0; } }
.wk-win-k { font-size: 11px; letter-spacing: 0.04em; opacity: 0.85; }
.wk-win-amt { font-size: 34px; font-weight: 700; letter-spacing: -0.8px; margin: 3px 0 6px; font-variant-numeric: tabular-nums; }
.wk-win-b { font-size: 9.5px; line-height: 1.45; opacity: 0.85; margin-bottom: 12px; }
.wk-win-btn { background: #fff; color: var(--app-ember); border-radius: 999px; padding: 10px; font-size: 11px; font-weight: 700; }
.wk-fast svg { width: 64px; height: 64px; }
.wk-web > .wb-url { margin: 0 0 4px; }

/* ---- round 9: flat icon tiles, no arrows ---- */
.wt-tab-ic { background: #f1efe9; box-shadow: none; color: var(--ember); }
.wt-tab[aria-selected="true"] .wt-tab-ic { background: var(--ember); color: #fff; box-shadow: none; }
.wt-tab:not(.wt-tab--group) .wt-tab-go { display: none; }
.wt-tab-ic svg { width: 24px; height: 24px; }
.wt-tab--sub .wt-tab-ic svg { width: 20px; height: 20px; }

/* ---- background motion: floating dollars, green glow, receipt strips ---- */
#walkthrough { position: relative; }
#walkthrough > .sec-head, #walkthrough > .wt { position: relative; z-index: 1; }
.wt-bg { position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); overflow: hidden; pointer-events: none; z-index: 0; }
.wt-dollars span {
  position: absolute; bottom: -80px; left: var(--l);
  font-size: var(--s); font-weight: 800; color: var(--ember); opacity: 0;
  font-family: var(--display);
  animation: wtFloat var(--d) linear var(--dl) infinite;
}
@keyframes wtFloat {
  0% { transform: translate(0, 0) rotate(-6deg); opacity: 0; }
  12% { opacity: 0.11; }
  85% { opacity: 0.11; }
  100% { transform: translate(var(--x), -980px) rotate(8deg); opacity: 0; }
}
.wt-receipt {
  position: absolute; top: 0; bottom: 0; width: 170px; overflow: hidden;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
}
.wt-receipt--l { left: max(4px, calc(50% - 640px)); transform: rotate(-3deg); }
.wt-receipt--r { right: max(4px, calc(50% - 640px)); transform: rotate(3deg); }
.rc-in { background: #fff; border: 1px solid var(--rule); padding: 18px 16px; font-family: var(--mono); font-size: 11px; color: #8d8a80; line-height: 1.9; animation: rcUp 60s linear infinite; }
.wt-receipt--r .rc-in { animation-direction: reverse; animation-duration: 75s; }
.rc-in p { display: flex; justify-content: space-between; gap: 10px; }
.rc-in i { display: block; border-top: 1px dashed #d7d3c8; margin: 6px 0; }
@keyframes rcUp { to { transform: translateY(-50%); } }
.wt-stage { position: relative; }
.wt-stage::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 560px; height: 560px; margin: -280px 0 0 -280px;
  background: radial-gradient(closest-side, rgba(23, 77, 56, 0.34), rgba(23, 77, 56, 0.13) 55%, transparent 75%);
  filter: blur(8px); z-index: -1; animation: wtGlow 6s ease-in-out infinite;
}
.wt-stage.pulse::before { animation: wtPulse 0.9s ease-out; }
@keyframes wtGlow { 0%, 100% { opacity: 0.8; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes wtPulse { 0% { opacity: 0.8; transform: scale(0.9); } 40% { opacity: 1; transform: scale(1.28); } 100% { opacity: 0.8; transform: scale(1); } }
@media (max-width: 1200px) { .wt-receipt { display: none; } }
@media (max-width: 720px) { .wt-dollars span:nth-child(n+9) { display: none; } }
@media (prefers-reduced-motion: reduce) { .wt-dollars, .rc-in, .wt-stage::before { animation: none; } .wt-dollars { display: none; } }

/* round 10: toggle centered, no glow, receipts live in Why Splice */
.wt-stage::before, .wt-stage.pulse::before { content: none; animation: none; }
.wt-side { display: flex; flex-direction: column; }
.wt-toggle { align-self: center; margin-bottom: 18px; }
#why { position: relative; }
#why > .sec-head, #why > .mx, #why > .why-note { position: relative; z-index: 1; }
@media (max-width: 1200px) { .why-bg .wt-receipt { display: none; } }

/* =========================================================
   round 11: receipts with torn edges, plain feature list
   ========================================================= */
.wt-receipt {
  position: absolute; width: 168px; height: auto; top: auto; bottom: auto;
  overflow: visible; opacity: 1;
  -webkit-mask-image: none; mask-image: none;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.1)) drop-shadow(0 18px 22px rgba(60, 50, 30, 0.12));
  animation: rcFloat 9s ease-in-out infinite;
}
.wt-receipt--l { left: max(6px, calc(50% - 650px)); top: 90px; transform: rotate(-4deg); }
.wt-receipt--r { right: max(6px, calc(50% - 650px)); top: 360px; transform: rotate(3.5deg); animation-delay: -4s; }
.why-bg .wt-receipt--l { top: 60px; }
.why-bg .wt-receipt--r { top: 250px; }
@keyframes rcFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
.rc-slip {
  background: #fff; padding: 26px 15px 24px; color: #6f6c62;
  font-family: var(--mono); font-size: 10.5px; line-height: 1.85; animation: none;
  -webkit-mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 51% repeat-x,
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 14px 51% repeat-x;
  mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 51% repeat-x,
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 14px 51% repeat-x;
}
.rc-brand { display: flex; align-items: center; justify-content: center; gap: 6px; color: #008751; font-size: 12px; letter-spacing: 0.12em; }
.rc-brand svg { width: 16px; height: 16px; }
.rc-sub { text-align: center; font-size: 9.5px; letter-spacing: 0.1em; color: #9a978c; }
.rc-slip p { display: flex; justify-content: space-between; gap: 8px; }
.rc-slip i { display: block; border-top: 1px dashed #cfcbbe; margin: 7px 0; }
.rc-tot { color: #1a1a1a; font-weight: 600; }
.rc-bar { height: 26px; margin-top: 12px; background: repeating-linear-gradient(90deg, #2a2a28 0 2px, transparent 2px 4px, #2a2a28 4px 5px, transparent 5px 8px, #2a2a28 8px 11px, transparent 11px 13px); opacity: 0.7; }
@media (max-width: 1200px) { .wt-receipt, .why-bg .wt-receipt { display: none; } }
@media (prefers-reduced-motion: reduce) { .wt-receipt { animation: none; } }

/* the action list: plain rows, a progress line, no cards or tiles */
@media (min-width: 901px) {
  .wt-tabs { gap: 0; border-top: 1px solid var(--rule); }
  .wt-tab {
    background: transparent; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0;
    box-shadow: none; padding: 20px 4px; gap: 16px; position: relative; transform: none;
  }
  .wt-tab:hover { transform: none; box-shadow: none; border-color: var(--rule); background: transparent; }
  .wt-tab::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--ember); }
  .wt-tab.prog::after { animation: wtProg 9s linear forwards; }
  .wt-tab[aria-selected="true"] { background: transparent; box-shadow: none; border-color: var(--rule); }
  .wt-tab-ic, .wt-tab--sub .wt-tab-ic { width: 26px; height: 26px; background: transparent; border-radius: 0; box-shadow: none; color: #9a978c; }
  .wt-tab[aria-selected="true"] .wt-tab-ic { background: transparent; color: var(--ember); box-shadow: none; }
  .wt-tab-ic svg, .wt-tab--sub .wt-tab-ic svg { width: 24px; height: 24px; }
  .wt-tab-t { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; color: #8a877d; }
  .wt-tab:hover .wt-tab-t, .wt-tab[aria-selected="true"] .wt-tab-t { color: var(--ink); }
  .wt-tab[aria-selected="true"] .wt-tab-t { font-weight: 600; }
  .wt-tab-d { font-size: 15.5px; max-width: 34em; }
  .wt-tab-go { display: none; }
  .wt-tab--group .wt-tab-go { display: block; border: 0; width: 18px; height: 18px; }
  .wt-tab--group .wt-tab-go::after { left: 4px; top: 3px; border-color: #9a978c; }
  .wt-group { gap: 0; }
  .wt-sub { margin: 0 0 6px 42px; padding: 0; border-left: 0; gap: 0; }
  .wt-tab--sub { padding: 13px 4px; }
  .wt-tab--sub .wt-tab-t { font-size: 17px; }
}
@keyframes wtProg { from { width: 0; } to { width: 100%; } }

/* receipts live in the side gutters only, and scale to the room there */
.wt-receipt {
  width: clamp(92px, calc((100vw - 1180px) / 2 - 18px), 168px);
  container-type: inline-size;
  left: auto; right: auto;
}
.wt-receipt--l { left: 16px; }
.wt-receipt--r { right: 16px; }
.rc-slip { font-size: 6.3cqw; padding: 15cqw 9cqw 14cqw; line-height: 1.85; }
.rc-brand { font-size: 7.2cqw; gap: 3.5cqw; }
.rc-brand svg { width: 9.5cqw; height: 9.5cqw; }
.rc-sub { font-size: 5.6cqw; }
.rc-bar { height: 14cqw; margin-top: 7cqw; }
.rc-slip i { margin: 4cqw 0; }
@media (max-width: 1399px) { .wt-receipt, .why-bg .wt-receipt { display: none; } }
.wt-receipt { --rw: clamp(92px, calc((100vw - 1180px) / 2 - 18px), 168px); width: var(--rw); }
.wt-receipt--l { left: max(16px, calc(50% - 600px - var(--rw))); }
.wt-receipt--r { right: max(16px, calc(50% - 600px - var(--rw))); }

/* round 12: longer receipts with the app icon, green toggle, no hairline above the list */
.rc-brand { gap: 3.5cqw; color: #1a1a1a; }
.rc-icon { width: 12cqw; height: 12cqw; flex: none; }
.rc-brand svg { width: auto; height: auto; }
.rc-brand .rc-icon { width: 12cqw; height: 12cqw; }
.rc-note { text-align: center; font-size: 5.4cqw; letter-spacing: 0.14em; color: #9a978c; line-height: 2; }
.wt-mode[aria-selected="true"] { background: var(--ember); color: #fff; }
@media (min-width: 901px) { .wt-tabs { border-top: 0; } }
.wt-phone .iphone { transform-style: preserve-3d; transition: transform 0.25s ease-out; will-change: transform; }

/* sliding toggle pill: one green pill glides between the two options */
.wt-toggle { position: relative; }
.wt-pill {
  position: absolute; top: 4px; bottom: 4px; left: 0; width: 0;
  border-radius: 999px; background: var(--ember);
  transition: transform 0.38s cubic-bezier(0.3, 0.9, 0.25, 1), width 0.38s cubic-bezier(0.3, 0.9, 0.25, 1);
}
.wt-mode { position: relative; z-index: 1; transition: color 0.25s; }
.wt-mode[aria-selected="true"] { background: transparent; color: #fff; }
@media (prefers-reduced-motion: reduce) { .wt-pill { transition: none; } }

/* both lists share one cell, so switching never changes the height of the
   column. The off list fades and drops back instead of vanishing. */
.wt-side { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; }
.wt-toggle { grid-row: 1; justify-self: center; }
.wt-tabs { grid-row: 2; grid-column: 1; transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1); }
.wt-tabs.off { opacity: 0; transform: translateY(10px); visibility: hidden; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0.2s; }
.wt-desc { grid-row: 3; }
@media (prefers-reduced-motion: reduce) { .wt-tabs, .wt-tabs.off { transition: none; } }
