/* Lily Money interactive theme demo (v6.5.2) */
.tdemo{padding:clamp(72px,9vw,130px) 6vw;background:linear-gradient(180deg,#f5f5f7,#fff)}
.tdemo-inner{max-width:1180px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,420px);gap:clamp(36px,6vw,96px);align-items:center}
.tdemo-copy h2{font-size:clamp(2.4rem,5vw,4.6rem);line-height:.98;letter-spacing:-.05em;margin:.2em 0 .4em}
.tdemo-copy>p{font-size:clamp(1.05rem,1.4vw,1.25rem);line-height:1.6;color:#56606b;max-width:520px}
.tdemo-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:30px 0 22px;max-width:520px}
.tdemo-picker button{display:flex;align-items:center;gap:12px;padding:10px 14px 10px 10px;border-radius:16px;border:1.5px solid rgba(17,24,39,.1);background:#fff;font:inherit;font-weight:600;font-size:.98rem;color:#1f2630;cursor:pointer;text-align:left;transition:border-color .2s,box-shadow .2s,transform .15s}
.tdemo-picker button:hover{transform:translateY(-1px)}
.tdemo-picker button i{flex:none;width:30px;height:30px;border-radius:9px;background:linear-gradient(90deg,var(--p) 0 50%,var(--s) 50%);box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
.tdemo-picker button[aria-pressed="true"]{border-color:var(--p);box-shadow:0 0 0 3px color-mix(in srgb,var(--p) 22%,transparent)}
.tdemo-mode{display:inline-flex;padding:4px;border-radius:999px;background:#e9e9ee;gap:2px}
.tdemo-mode button{border:0;background:transparent;font:inherit;font-weight:600;font-size:.92rem;padding:8px 18px;border-radius:999px;color:#4b5561;cursor:pointer}
.tdemo-mode button[aria-pressed="true"]{background:#fff;color:#111;box-shadow:0 1px 4px rgba(0,0,0,.12)}
.tdemo-note{font-size:.82rem;color:#8a929c;margin-top:18px}

/* phone: built from the approved OpenPencil Home (2026-10-12) and its colour roles */
.tphone{--fill:#00693E;--onfill:#fff;--outline:#C4DD88;--tint:#00693E;--link:#00693E;--icon:#00693E;--hl:rgba(0,105,62,.12);
  --bg:#fff;--card:#F4F4F5;--ink:#000;--sub:rgba(60,60,67,.6);--seg:rgba(118,118,128,.12);--tabbg:#fff;--tabline:rgba(60,60,67,.29);
  position:relative;width:100%;max-width:380px;margin:0 auto;aspect-ratio:1206/2622;border-radius:56px;padding:11px;background:#1b1c1f;box-shadow:0 40px 80px rgba(17,24,39,.22),inset 0 0 0 2px #3a3b40}
.tphone.dark{--bg:#000;--card:#1C1C1E;--ink:#fff;--sub:rgba(235,235,245,.6);--seg:rgba(118,118,128,.24);--tabbg:#1C1C1E;--tabline:rgba(84,84,88,.6)}
.tscreen{position:relative;height:100%;border-radius:46px;overflow:hidden;background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;display:flex;flex-direction:column;container-type:inline-size}
.tscreen,.tscreen *{transition:background-color .35s,color .35s,border-color .35s,box-shadow .35s}
.tstatus{padding:5.2cqw 9cqw 0;font-weight:600;font-size:4.3cqw}
.tbody{flex:1;padding:2.5cqw 4cqw 0;display:flex;flex-direction:column;gap:3.3cqw;overflow:hidden}
.tpill{align-self:flex-end;display:flex;align-items:center;gap:2.4cqw;padding:2cqw 3.6cqw;border-radius:6cqw;background:var(--card);font-size:3.3cqw;font-weight:600;line-height:1.2;text-align:right;margin-bottom:-1cqw}
.tpill small{display:block;font-weight:400;font-size:3cqw;color:var(--sub)}
.tpill svg{width:2.6cqw;height:4cqw;stroke:var(--sub)}
.tcard{background:var(--card);border-radius:4.4cqw;padding:3.8cqw 4.4cqw 3.8cqw;position:relative}
.thead{display:flex;align-items:center;gap:2.2cqw;font-weight:600;font-size:4.8cqw}
.thead svg{width:5cqw;height:5cqw;flex:none;stroke:var(--icon);fill:none;stroke-width:2}
.tchev{position:absolute;right:4.4cqw;top:4.6cqw;width:2.4cqw;height:4cqw;stroke:var(--sub);fill:none;stroke-width:2.2}
.tamt{font-size:6.6cqw;font-weight:700;letter-spacing:-.01em;color:var(--tint);margin-top:2cqw;font-variant-numeric:tabular-nums}
.tsub{font-size:3.4cqw;color:var(--sub);margin-top:1.4cqw}
.tsub2{font-size:4cqw;color:var(--sub);margin-top:1.8cqw}
/* hero card: Available to Spend */
.thero .thead{color:var(--link);font-size:4.5cqw}
.thero .tamt{font-size:9.6cqw;margin-top:1.4cqw}
.tphone.dark .thero{background:var(--fill);box-shadow:inset 0 0 0 1px var(--outline)}
.tphone.dark .thero .thead,.tphone.dark .thero .tamt{color:var(--onfill)}
.tphone.dark .thero .thead svg,.tphone.dark .thero .tchev{stroke:var(--onfill)}
/* spending */
.tspendrow{display:flex;justify-content:space-between;align-items:baseline}
.tspendrow small{font-size:3.6cqw;color:var(--sub)}
.tbars{display:flex;align-items:flex-end;gap:1.6cqw;height:11cqw;margin-top:2.4cqw}
.tbars i{flex:1;background:var(--fill);border-radius:.5cqw}
.tphone.dark .tbars i{box-shadow:inset 0 0 0 .75px var(--outline)}
.tseg{display:flex;margin-top:2.8cqw;background:var(--seg);border-radius:2.4cqw;padding:.8cqw;font-size:3.6cqw}
.tseg span{flex:1;text-align:center;padding:1.6cqw 0;border-radius:1.8cqw}
.tseg span.on{background:var(--fill);color:var(--onfill);box-shadow:inset 0 0 0 1px var(--outline)}
/* add + tabs */
.tadd{margin:3.4cqw 4cqw 3cqw;padding:3.4cqw;border-radius:8cqw;background:var(--fill);color:var(--onfill);box-shadow:inset 0 0 0 1px var(--outline);text-align:center;font-weight:600;font-size:4.8cqw}
.ttabs{display:flex;justify-content:space-between;margin:0 6cqw 6cqw;padding:1.6cqw;border-radius:9cqw;background:var(--tabbg);box-shadow:inset 0 0 0 1px var(--tabline);font-size:3.2cqw;font-weight:600}
.ttabs span{flex:1;display:flex;flex-direction:column;align-items:center;gap:.8cqw;padding:2cqw 0;border-radius:7cqw;color:var(--ink)}
.ttabs svg{width:5.6cqw;height:5.6cqw;fill:none;stroke:currentColor;stroke-width:1.9}
.ttabs span.on{background:var(--seg);color:var(--link)}
.tphone.dark .ttabs span.on{background:var(--fill);color:var(--onfill);box-shadow:inset 0 0 0 1px var(--outline)}
@media(max-width:900px){
  .tdemo-inner{grid-template-columns:1fr}
  .tphone{max-width:240px;border-radius:38px;padding:8px}
  .tscreen{border-radius:31px}
  .tdemo-picker{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:22px 0 16px}
  .tdemo-picker button{flex-direction:column;gap:6px;padding:8px 2px;border-radius:14px;font-size:10.5px;line-height:1.1;text-align:center}
  .tdemo-picker button i{width:28px;height:28px;border-radius:50%}
  .tdemo-copy{display:contents}
  .tdemo-head{order:0}.tdemo-stage{order:1}.tdemo-controls{order:2}
}
@media (prefers-reduced-motion:reduce){.tscreen,.tscreen *{transition:none}}
