/* Staff Tracker website — Ledger with Warm colours (docs/design-system.md, D-019).
   Every font is self-hosted: the site loads nothing from other servers. */

@font-face { font-family: "Newsreader"; font-weight: 500; font-display: swap; src: url("fonts/Newsreader_500Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/Inter_400Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("fonts/Inter_500Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/Inter_600SemiBold.woff2") format("woff2"); }

:root {
  --paper: #F6F4F1;
  --surface: #FFFFFF;
  --surface-muted: #F1EEEA;
  --ink: #2A1F17;
  --ink-soft: #6F6258;
  --ink-faint: #958779;
  --rule: #E6E1DA;
  --primary: #C2410C;
  --primary-tint: #FFEEE3;
  --on-primary: #FFFFFF;
  --green: #1E7346; --green-tint: #DDF3E6;
  --red: #C0392B;   --red-tint: #FDE7E3;
  --amber: #8A4E00; --amber-tint: #FFF0D6;
  --blue: #2F64B5;  --blue-tint: #E3ECFB;
  --p0-bg: #EFE6FF; --p0: #5B3DB5;
  --p1-bg: #DDEBFF; --p1: #1E56A6;
  --p2-bg: #DDF3E6; --p2: #1E7346;
  --p3-bg: #FFE6D2; --p3: #9A3A0A;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 16px;
  --col: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1A1512;
    --surface: #251F1A;
    --surface-muted: #2E2620;
    --ink: #F6EEE6;
    --ink-soft: #BBAFA5;
    --ink-faint: #8C7F74;
    --rule: #352C25;
    --primary: #FF9A62;
    --primary-tint: #3C2418;
    --on-primary: #2A1206;
    --green: #8FD9AE; --green-tint: #1B3527;
    --red: #FF9D92;   --red-tint: #3D1F1B;
    --amber: #F2C063; --amber-tint: #3A2C12;
    --blue: #9CC2FF;  --blue-tint: #1C2B42;
    --p0-bg: #2E2545; --p0: #C9B6FF;
    --p1-bg: #1C2B42; --p1: #9CC2FF;
    --p2-bg: #1B3527; --p2: #8FD9AE;
    --p3-bg: #3C2418; --p3: #FFB48A;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; margin: 0; color: var(--ink); }
h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.08; }
h2 { font-size: clamp(28px, 3.6vw, 38px); line-height: 1.2; }
h3 { font-size: 22px; line-height: 1.35; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums lining-nums; }

.wrap { max-width: var(--col); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 600 16px/1 var(--sans); }
.brand img { width: 32px; height: 32px; }
.nav { margin-inline-start: auto; display: flex; gap: 4px; align-items: center; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 15px; padding: 10px 10px; border-radius: 10px; }
.nav a:hover { color: var(--ink); background: var(--surface-muted); }
.nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 12px; font: 600 16px/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { filter: brightness(1.06); text-decoration: none; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--rule); }
.btn-secondary:hover { border-color: var(--ink-faint); }
.btn svg { width: 20px; height: 20px; flex: none; }
.nav .btn { min-height: 40px; padding: 0 16px; font-size: 15px; margin-inline-start: 6px; color: var(--on-primary); }
.nav .btn:hover { background: var(--primary); color: var(--on-primary); }

/* Hero */
.hero { padding: 64px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.eyebrow { font: 600 13px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); margin-bottom: 18px; }
.lede { font-size: 19px; color: var(--ink-soft); margin-top: 20px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fine { font-size: 14px; color: var(--ink-soft); margin-top: 14px; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; gap: 48px; } .hero { padding-top: 40px; } }

/* Phone mock-up of Today */
.phone { width: 320px; max-width: 100%; margin: 0 auto; background: var(--paper); border: 1px solid var(--rule); border-radius: 38px; padding: 14px; box-shadow: 0 30px 60px -30px rgba(42,31,23,.35); position: relative; }
.phone-inner { background: var(--paper); border-radius: 28px; padding: 22px 14px 18px; }
.phone .date { font-size: 12px; color: var(--ink-soft); }
.phone .greet { font: 500 28px/1.25 var(--serif); margin: 2px 0 14px; }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.phone .summary { padding: 12px 14px; margin-bottom: 10px; font-size: 13px; }
.phone .summary strong { font-weight: 600; }
.phone .summary .due { color: var(--primary); font-weight: 600; }
.person { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.person + .person { border-top: 1px solid var(--rule); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 600 17px/1 var(--serif); flex: none; }
.a0 { background: var(--p0-bg); color: var(--p0); } .a1 { background: var(--p1-bg); color: var(--p1); }
.a2 { background: var(--p2-bg); color: var(--p2); } .a3 { background: var(--p3-bg); color: var(--p3); }
.person .who { flex: 1; min-width: 0; }
.person .name { font-weight: 500; font-size: 14px; line-height: 1.3; }
.person .role { font-size: 12px; color: var(--ink-soft); line-height: 1.3; }
.tally { display: flex; gap: 3px; align-items: flex-end; margin-top: 5px; }
.tally i { width: 6px; height: 13px; border-radius: 2px; background: var(--rule); display: block; }
.tally i.off { background: transparent; box-shadow: inset 0 0 0 1px var(--ink-faint); }
.tally i.ab { background: var(--red); } .tally i.half { background: var(--amber); } .tally i.lv { background: var(--blue); } .tally i.ex { background: var(--green); }
.tally i.today { height: 17px; background: var(--ink); }
.status { font-size: 12px; font-weight: 600; white-space: nowrap; }
.status.here { color: var(--green); } .status.away { color: var(--red); } .status.off { color: var(--ink-soft); font-weight: 500; }
.toast { margin-top: 12px; background: var(--ink); color: var(--paper); border-radius: 12px; padding: 10px 12px; font-size: 12.5px; display: flex; justify-content: space-between; }
.toast u { font-weight: 600; }

/* Sections */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--ink-soft); font-size: 18px; margin-top: 14px; }
.band { background: var(--surface); border-block: 1px solid var(--rule); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 880px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } section { padding: 56px 0; } }

.feature { padding: 24px; }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-muted); display: grid; place-items: center; margin-bottom: 16px; color: var(--ink); }
.band .feature .ic { background: var(--paper); }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { font-size: 20px; margin-bottom: 6px; }
.feature p { color: var(--ink-soft); font-size: 15.5px; }
.band .card { background: var(--paper); }

/* Payslip */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.payslip { padding: 24px; max-width: 440px; margin: 0 auto; width: 100%; }
.payslip .ph { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--rule); padding-bottom: 14px; margin-bottom: 6px; }
.payslip .ph h3 { font-size: 22px; }
.payslip .ph span { font-size: 13px; color: var(--ink-soft); }
.line { padding: 11px 0; }
.line .top { display: flex; align-items: baseline; gap: 8px; }
.line .lbl { font-weight: 500; font-size: 15px; }
.line .dots { flex: 1; border-bottom: 2px dotted var(--rule); transform: translateY(-4px); }
.line .amt { font-variant-numeric: tabular-nums; font-size: 15px; }
.line .amt.neg { color: var(--red); }
.line .why { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.payslip .total { border-top: 1px solid var(--rule); margin-top: 6px; padding-top: 14px; display: flex; justify-content: space-between; align-items: baseline; }
.payslip .total .lbl { font-weight: 600; }
.payslip .total .amt { font: 500 30px/1 var(--serif); font-variant-numeric: tabular-nums; }
.stamp { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--green); background: var(--green-tint); padding: 6px 12px; border-radius: 999px; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; color: var(--ink-soft); }
.checks li strong { color: var(--ink); font-weight: 600; }
.checks svg { width: 20px; height: 20px; flex: none; color: var(--green); margin-top: 3px; }

/* Marks */
.marks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.mark { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--rule); font-size: 14px; }
.mark b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 13px; }
.m-red b { background: var(--red-tint); color: var(--red); } .m-amber b { background: var(--amber-tint); color: var(--amber); }
.m-green b { background: var(--green-tint); color: var(--green); } .m-blue b { background: var(--blue-tint); color: var(--blue); }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 24px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary-tint); color: var(--primary); font: 500 20px/1 var(--serif); margin-bottom: 16px; }
.step h3 { font-size: 20px; margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: 15.5px; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 820px; }
@media (max-width: 700px) { .plans { grid-template-columns: 1fr; } }
.plan { padding: 28px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--ink); }
.plan h3 { font-size: 26px; }
.plan .price { color: var(--ink-soft); margin-top: 6px; font-size: 15px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; font-size: 15.5px; }
.plan li svg { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 4px; }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font: 500 19px/1.4 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; inset-inline-end: 6px; top: 50%; width: 10px; height: 10px; border-inline-end: 2px solid var(--ink-faint); border-bottom: 2px solid var(--ink-faint); transform: translateY(-70%) rotate(45deg); transition: transform .24s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 0 22px; color: var(--ink-soft); }
.faq .answer p + p { margin-top: 10px; }

/* CTA */
.cta { text-align: center; }
.cta .card { padding: 56px 24px; background: var(--primary-tint); border-color: transparent; }
.cta p { color: var(--ink-soft); font-size: 18px; margin: 14px auto 28px; max-width: 32em; }

/* Legal / document pages */
.doc { padding: 48px 0 80px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(36px, 5vw, 48px); }
.doc .meta { color: var(--ink-soft); margin-top: 12px; font-size: 15px; }
.doc .summary-box { margin: 32px 0 8px; padding: 22px 24px; }
.doc .summary-box h2 { font-size: 22px; margin: 0 0 10px; }
.doc .summary-box ul { margin: 0; padding-inline-start: 20px; }
.doc .summary-box li { margin: 6px 0; }
.doc h2 { font-size: 28px; margin: 48px 0 12px; }
.doc h3 { font-size: 20px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--ink); }
.doc p { margin: 12px 0; }
.doc ul, .doc ol { padding-inline-start: 22px; }
.doc li { margin: 8px 0; }
.doc .toc { margin: 28px 0 0; padding: 18px 24px; }
.doc .toc ol { margin: 6px 0 0; columns: 2; column-gap: 32px; }
@media (max-width: 600px) { .doc .toc ol { columns: 1; } }
.doc .toc li { margin: 0 0 8px; break-inside: avoid; }
.doc .toc a { color: var(--ink); text-decoration: none; }
.doc .toc a:hover { color: var(--primary); text-decoration: underline; }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: start; padding: 12px 14px; vertical-align: top; border-bottom: 1px solid var(--rule); }
tr:last-child td { border-bottom: 0; }
th { font-weight: 600; background: var(--surface-muted); }
.note { padding: 16px 20px; border-radius: 12px; background: var(--primary-tint); margin: 20px 0; }
.note p { margin: 0; }
.steps-list { counter-reset: s; list-style: none; padding: 0 !important; }
.steps-list li { counter-increment: s; position: relative; padding-inline-start: 44px; margin: 16px 0; min-height: 30px; }
.steps-list li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: -1px; width: 30px; height: 30px; border-radius: 50%; background: var(--surface); border: 1px solid var(--rule); display: grid; place-items: center; font: 500 16px/1 var(--serif); }
kbd, .ui { font: 600 14px/1 var(--sans); background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 3px 7px; white-space: nowrap; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 40px 0 48px; font-size: 15px; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 40px; justify-content: space-between; align-items: flex-start; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .brand { margin-bottom: 8px; }

/* 404 */
.center { text-align: center; padding: 96px 0; }
.center p { color: var(--ink-soft); margin: 14px 0 28px; font-size: 18px; }

/* ---------- Figures and motion ----------
   The app's motion rules (docs/design-system.md): calm eases, nothing bounces, plays once.
   The welcome drawing's chips keep their small overshoot, as in the app (D-042).
   With "reduce motion" on, the global rule above turns animations and transitions off and
   everything shows in its final state. Scroll reveals need the `js` class, so without
   JavaScript nothing is hidden. */
:root { --ease: cubic-bezier(.2, .7, .2, 1); --art-bg: #FBE6D6; --art-floor: #F3D2B9; --art-window: #FFF8F2; }
@media (prefers-color-scheme: dark) { :root { --art-bg: #33241B; --art-floor: #2A1E17; --art-window: #251F1A; } }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: none; } }
@keyframes to-red { from { background: var(--ink); } to { background: var(--red); } }
@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes tap { 0%, 100% { background-color: transparent; } 35% { background-color: var(--surface-muted); } }
@keyframes toast { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes wave { 0%, 100% { transform: rotate(0); } 20%, 60% { transform: rotate(-22deg); } 40% { transform: rotate(6deg); } }

/* Hero: the Today screen comes in, Siti is tapped and marked absent, Undo appears */
.rise { animation: rise .6s var(--ease) var(--d, 0s) both; }
.tally i { transform-origin: bottom; animation: grow .36s var(--ease) calc(var(--d, 0s) + .25s + var(--i, 0) * 45ms) both; }
.tally i.today.flip { background: var(--red); animation: grow .36s var(--ease) calc(var(--d, 0s) + .25s + var(--i, 0) * 45ms) both, to-red .24s ease 1.75s both; }
.person.tap { animation: rise .6s var(--ease) var(--d, 0s) both, tap .6s ease 1.4s; }
.swap { display: inline-grid; }
.swap > * { grid-area: 1 / 1; }
.status.swap { justify-items: end; }
.swap .before { opacity: 0; animation: fade-out .24s ease 1.75s backwards; }
.swap .after { animation: fade-in .24s ease 1.75s backwards; }
.toast { animation: toast .3s var(--ease) 2.05s both; }

/* Scroll reveals */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* Month calendar */
@media (max-width: 880px) { .split.flip > :last-child { order: -1; } }
.calendar { padding: 20px; max-width: 420px; width: 100%; margin: 0 auto; }
.cal-head { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.cal-head .name { font: 500 20px/1.3 var(--serif); }
.cal-head .role { font-size: 13px; color: var(--ink-soft); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-week { margin-bottom: 6px; }
.cal-week span { text-align: center; font-size: 12px; font-weight: 500; color: var(--ink-soft); }
.day { aspect-ratio: 1; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; font-size: 14px; font-variant-numeric: tabular-nums; line-height: 1.15; }
.day b { font-weight: 500; }
.day em { font-style: normal; font-weight: 600; font-size: 13px; }
.day.off { box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink-soft); }
.day.m-ab { background: var(--red-tint); color: var(--red); }
.day.m-half { background: var(--amber-tint); color: var(--amber); }
.day.m-ab b, .day.m-half b { font-size: 11px; }
.day .dot { position: absolute; top: 5px; inset-inline-end: 5px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.cal-foot { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--ink-soft); }
.mk { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.mk b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.js .calendar .day:not(.blank) { opacity: 0; transition: opacity .3s ease calc(.2s + var(--r, 0) * 70ms), background-color .24s ease, color .24s ease; }
.js .calendar.in .day { opacity: 1; }
.js .calendar .day.m-ab, .js .calendar .day.m-half { background-color: transparent; color: var(--ink); }
.js .calendar .day em { opacity: 0; transform: scale(.6); transition: opacity .2s ease, transform .24s var(--ease); }
.js .calendar.in .day.m-ab { background-color: var(--red-tint); color: var(--red); transition-delay: calc(.2s + var(--r) * 70ms), .95s, .95s; }
.js .calendar.in .day.m-half { background-color: var(--amber-tint); color: var(--amber); transition-delay: calc(.2s + var(--r) * 70ms), 1.25s, 1.25s; }
.js .calendar.in .day.m-ab em { opacity: 1; transform: none; transition-delay: .95s; }
.js .calendar.in .day.m-half em { opacity: 1; transform: none; transition-delay: 1.25s; }

/* Payslip: lines arrive one by one, the total counts up (site.js), Paid settles like a stamp */
.repay { display: flex; gap: 4px; margin-top: 8px; max-width: 160px; }
.repay i { flex: 1; height: 6px; border-radius: 3px; background: var(--rule); }
.repay i.done { background: var(--ink-soft); }
.js .payslip .line, .js .payslip .total { opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s var(--ease); transition-delay: calc(.25s + var(--i, 5) * 120ms); }
.js .payslip.in .line, .js .payslip.in .total { opacity: 1; transform: none; }
.js .payslip .repay i.done { transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease) .85s; }
.js .payslip .repay i.done + i.done { transition-delay: 1s; }
.js .payslip.in .repay i.done { transform: none; }
.js .payslip .stamp { opacity: 0; transform: scale(1.3) rotate(-8deg); transition: opacity .18s ease 1.6s, transform .26s cubic-bezier(.3, .6, .3, 1) 1.6s; }
.js .payslip.in .stamp { opacity: 1; transform: none; }

/* Closing card with the app's welcome drawing */
.cta .cta-card { display: grid; grid-template-columns: minmax(0, 350px) 1fr; gap: 40px; align-items: center; text-align: start; padding: 40px 48px; background: var(--surface); border-color: var(--rule); }
.cta .cta-card p { margin: 14px 0 28px; }
@media (max-width: 760px) { .cta .cta-card { grid-template-columns: 1fr; text-align: center; padding: 36px 20px; } .cta .cta-card .art { margin: 0 auto; } .cta .cta-card p { margin-inline: auto; } }
.art { position: relative; width: 100%; max-width: 350px; }
.art svg { width: 100%; height: auto; display: block; }
.art .chip, .art .slip { position: absolute; background: var(--surface); border: 1px solid var(--rule); box-shadow: 0 8px 20px rgba(42, 31, 23, .12); font: 600 13px/18px var(--sans); }
.art .chip { left: 4%; top: 34%; padding: 6px 12px; border-radius: 16px; color: var(--green); }
.art .slip { right: 1.7%; top: 20.7%; padding: 9px 11px; border-radius: 14px; display: grid; gap: 3px; min-width: 112px; font-size: 12px; line-height: 16px; color: var(--ink); }
.art .slip-row { display: flex; align-items: center; gap: 6px; }
.art .slip-row svg { width: 14px; height: 14px; color: var(--primary); }
.art .slip-row.sent, .art .slip-row.sent svg { color: var(--green); }
.art .arm { transform-origin: 272px 206px; }
.js .art.reveal { transform: none; }
.js .art .room { opacity: 0; transform: scale(.92); transform-origin: 175px 155px; transition: opacity .5s ease, transform .5s var(--ease); }
.js .art .fig { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease) var(--d), transform .6s var(--ease) var(--d); }
.js .art.in .room, .js .art.in .fig { opacity: 1; transform: none; }
.js .art.in .arm { animation: wave 1.1s ease-in-out .9s; }
.js .art .chip, .js .art .slip, .js .art .sent { opacity: 0; transform: scale(.7); transition: opacity .2s ease, transform .42s cubic-bezier(.34, 1.56, .64, 1); }
.js .art.in .chip { opacity: 1; transform: none; transition-delay: 1.1s; }
.js .art.in .slip { opacity: 1; transform: none; transition-delay: 1.4s; }
.js .art.in .sent { opacity: 1; transform: none; transition-delay: 1.7s; }
.swap .here { color: var(--green); }
.swap .away { color: var(--red); }
