/* Dunly brand layer: shared by the landing page and the app.
   Concept: a collections clerk's desk. Paper, ballpoint blue, rubber stamps in red and green. */
@font-face{font-family:"Dunly Sans";src:url(/fonts/inter-regular.woff) format("woff");font-weight:400;font-display:swap}
@font-face{font-family:"Dunly Sans";src:url(/fonts/inter-semibold.woff) format("woff");font-weight:600;font-display:swap}
@font-face{font-family:"Dunly Sans";src:url(/fonts/inter-bold.woff) format("woff");font-weight:700;font-display:swap}
@font-face{font-family:"Dunly Display";src:url(/fonts/inter-display-extrabold.woff) format("woff");font-weight:800;font-display:swap}
@font-face{font-family:"Dunly Display";src:url(/fonts/inter-display-black.woff) format("woff");font-weight:900;font-display:swap}
@font-face{font-family:"Dunly Mono";src:url(/fonts/lmmono-regular.woff) format("woff");font-weight:400;font-display:swap}
@font-face{font-family:"Dunly Mono";src:url(/fonts/lmmono-bold.woff) format("woff");font-weight:700;font-display:swap}

:root{
  --ink:#0e1a38;--ink2:#38425c;--mute:#66708a;
  --white:#fff;--paper:#f3f5fb;--line:#e3e7f1;
  --pen:#3b4cff;--pen-d:#2a39e0;--pen-soft:#e9ecff;
  --red:#e5483b;--red-soft:#fdeceb;
  --green:#12a06b;--green-soft:#dcf5ea;--amber:#9a5b00;--amber-soft:#fff1d6;
  --sans:"Dunly Sans",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --display:"Dunly Display","Dunly Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --mono:"Dunly Mono",ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  --shadow:0 1px 2px rgba(14,26,56,.06),0 12px 32px -12px rgba(30,45,120,.22);
}

.logo{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;font:900 22px/1 var(--display);letter-spacing:-.04em}
.logo svg{width:30px;height:30px;flex:none;filter:drop-shadow(0 4px 8px rgba(59,76,255,.35))}

.btn{display:inline-block;background:linear-gradient(180deg,#4a5aff,var(--pen-d));color:#fff;border:0;border-radius:12px;padding:13px 24px;font:700 16px/1.2 var(--sans);text-decoration:none;cursor:pointer;box-shadow:0 1px 0 rgba(255,255,255,.25) inset,0 8px 18px -8px rgba(59,76,255,.7);transition:transform .15s,box-shadow .15s,filter .15s}
.btn:hover{filter:brightness(1.07);box-shadow:0 1px 0 rgba(255,255,255,.25) inset,0 12px 24px -8px rgba(59,76,255,.75)}
.btn:active{transform:translateY(1px)}
.btn.ghost{background:#fff;color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--line),0 1px 2px rgba(14,26,56,.05)}
.btn.ghost:hover{box-shadow:inset 0 0 0 1.5px var(--ink2);filter:none;background:#fff;color:var(--ink)}
.btn.sm{padding:9px 16px;font-size:14.5px;border-radius:10px}

/* status badge (was a rubber stamp) */
.stamp{display:inline-flex;align-items:center;gap:7px;font:700 14px/1 var(--sans);border-radius:99px;padding:7px 13px 7px 11px;color:var(--red);background:var(--red-soft);white-space:nowrap}
.stamp::before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor}
.stamp.green{color:var(--green);background:var(--green-soft)}
.stamp.sm{font-size:12.5px;padding:5px 10px 5px 9px}
.stamp.sm::before{width:7px;height:7px}
.stamp.pen{color:var(--pen);background:var(--pen-soft)}
.stamp.mute{color:var(--mute);background:var(--paper)}

.mono{font-family:var(--mono)}

/* product-card: the animated payment shown on the landing page and in the empty dashboard */
.sheet{position:relative;background:#fff;border:1px solid var(--line);border-radius:18px;padding:22px 22px 20px;max-width:420px;width:100%;margin:0 auto;box-shadow:var(--shadow)}
.sheet .top{padding-right:96px;display:flex;justify-content:space-between;align-items:center;gap:12px;padding-bottom:14px;margin-bottom:14px;border-bottom:1px solid var(--line)}
.sheet .co{font:800 17px/1.1 var(--display);letter-spacing:-.03em}
.sheet .no{font:400 12.5px var(--mono);color:var(--mute);white-space:nowrap}
.sheet dl{display:grid;grid-template-columns:auto 1fr;gap:6px 20px;margin:0 0 14px;font-size:14px}
.sheet dt{color:var(--mute)}
.sheet dd{margin:0;font-weight:600;overflow-wrap:anywhere}
.sheet .due{display:flex;justify-content:space-between;align-items:center;background:var(--paper);border-radius:12px;padding:12px 14px;gap:12px}
.sheet .due span{font-size:14px;color:var(--mute)}
.sheet .due .amt{display:grid;justify-items:end}
.sheet .due b{grid-area:1/1;font:700 30px/1 var(--mono);letter-spacing:-.04em}
.sheet .log{list-style:none;margin:16px 0 0;padding:0;font:500 14px/1.4 var(--sans)}
.sheet .log li{display:grid;grid-template-columns:44px 1fr;gap:8px;padding:5px 0;position:relative}
.sheet .log .t{color:var(--mute);font:400 13px var(--mono)}
.sheet .log .bad{color:var(--red)}.sheet .log .pen{color:var(--pen)}.sheet .log .ok{color:var(--green)}
.sheet .s-late{position:absolute;right:20px;top:20px;opacity:1}
.sheet .s-paid{position:absolute;right:20px;top:20px;opacity:0}
.sheet .amt-new{opacity:0}
.sheet.play{animation:sheet-in .7s cubic-bezier(.2,.8,.2,1) both}
.sheet.play .l1{animation:fade-in .4s ease-out 1.1s both}
.sheet.play .l2{animation:fade-in .4s ease-out 2.4s both}
.sheet.play .l3{animation:fade-in .4s ease-out 3.6s both}
.sheet.play .s-late{animation:late-out .3s ease 3.8s forwards}
.sheet.play .s-paid{animation:paid-in .4s cubic-bezier(.2,1.4,.4,1) 3.9s forwards}
.sheet.play .amt-old{animation:fade-out .2s ease 3.9s forwards}
.sheet.play .amt-new{animation:fade-in .3s ease 3.9s forwards}
@keyframes sheet-in{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes fade-in{from{opacity:0}to{opacity:1}}
@keyframes fade-out{to{opacity:0}}
@keyframes late-out{to{opacity:0;transform:scale(.8)}}
@keyframes paid-in{from{opacity:0;transform:scale(.7)}to{opacity:1;transform:none}}
.sheet.compact{max-width:360px;padding:18px}
.sheet.compact .s-late,.sheet.compact .s-paid{right:16px;top:16px}
.sheet.compact .due b{font-size:26px}
@media (prefers-reduced-motion:reduce){
  .sheet.play,.sheet.play *{animation:none!important}
  .sheet .s-late{opacity:0}.sheet .s-paid{opacity:1}
  .sheet .amt-old{opacity:0}.sheet .amt-new{opacity:1}
}

/* language switcher: an icon button with a menu, works without script */
.langsw,details.langsw{position:relative;display:inline-block;border:0!important;padding:0!important;margin:0 4px}
.langsw summary{list-style:none;cursor:pointer;display:grid;place-items:center;width:40px;height:40px;padding:0;border-radius:10px;border:0;background:#f1f1ee;color:var(--ink);transition:background .15s}
.langsw summary::-webkit-details-marker{display:none}
.langsw summary::after{content:none!important}
.langsw summary:hover,.langsw[open] summary{background:#e6e6e1}
.langsw > div{position:absolute;right:0;top:calc(100% + 8px);z-index:40;min-width:190px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:8px;box-shadow:0 18px 40px -12px rgba(16,24,40,.28),0 2px 6px rgba(16,24,40,.06);display:grid;gap:2px}
footer .langsw > div,.foot .langsw > div{top:auto;bottom:calc(100% + 8px)}
.langsw a{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:10px;color:var(--ink);text-decoration:none;font:500 17px/1.2 var(--sans);white-space:nowrap}
.langsw a:hover{background:var(--paper)}
.langsw .ck{width:16px;height:16px;flex:none;color:var(--mute);display:inline-block}
.langsw a[aria-current]{font-weight:600}
@media (max-width:560px){.langsw summary{width:38px;height:38px}.langsw > div{min-width:180px}}
