/* Suma Designs client app */
:root{
  --ink:#1A1414;--body:#4E4745;--muted:#5E5654;--soft:#6B6361;--bg:#F8F5F2;--card:#FFFFFF;--line:#F1ECE9;--seg:#EDE7E4;
  --red:#DD001B;--red-ink:#B0001A;--red-soft:#F7E8EA;--green:#2C7A57;--green-soft:#E2F1E9;
  --serif:'Cormorant Garamond',Georgia,serif;--sans:Manrope,system-ui,-apple-system,sans-serif;
  --safe-b:env(safe-area-inset-bottom,0px);--safe-t:env(safe-area-inset-top,0px);
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--sans);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}
body{min-height:100vh;min-height:100dvh}
a{color:var(--ink)}
button{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
img{max-width:100%;display:block}
[hidden]{display:none!important}

#app{max-width:480px;margin:0 auto;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;background:var(--bg);position:relative}
.splash{flex:1;display:grid;place-items:center}.splash img{width:180px;opacity:.9}

/* screens */
.screen{flex:1;padding:calc(18px + var(--safe-t)) 20px 110px;display:flex;flex-direction:column;gap:12px}
.top{display:flex;justify-content:space-between;align-items:center;min-height:44px}
.top .logo{height:26px;width:auto}
h1.title{margin:0;font-family:var(--serif);font-weight:500;font-size:34px;line-height:1.05}
.eyebrow{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--soft);margin:6px 0 0}
.card{background:var(--card);border-radius:24px;padding:16px 18px;display:flex;flex-direction:column;gap:10px}
.card.pad-lg{padding:18px}
.card.list{padding:0;gap:0}
.row{display:flex;align-items:center;gap:12px}
.spacer{flex:1}
.muted{color:var(--muted)}.soft{color:var(--soft)}
.small{font-size:13px;line-height:1.5}
.tiny{font-size:12px}
.b{font-weight:700}

/* hub segmented control */
.hub{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:var(--seg);border-radius:14px;padding:4px}
.hub a{display:flex;align-items:center;justify-content:center;min-height:40px;border-radius:11px;text-decoration:none;font-size:14px;font-weight:700;color:var(--muted)}
.hub a[aria-current="page"]{background:#fff;color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.12)}

/* order chooser */
.chips{display:flex;gap:6px;overflow-x:auto;padding-bottom:2px}
.chip{border:1px solid #DCD4D1;background:#fff;border-radius:999px;padding:8px 14px;font-size:13px;font-weight:700;white-space:nowrap;cursor:pointer}
.chip[aria-pressed="true"]{background:var(--ink);color:#fff;border-color:var(--ink)}

/* countdown */
.count{background:var(--red);color:#fff;border-radius:24px;padding:16px 20px;display:flex;justify-content:space-between;align-items:flex-end;gap:10px}
.count .k{font-size:11px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:#FFE4E8}
.count .v{font-family:var(--serif);font-size:40px;line-height:1}
.count .d{font-size:14px;font-weight:600;color:#FFE4E8;text-align:right}

/* stage */
.stage-name{font-size:20px;font-weight:700}
.segs{display:grid;gap:4px}
.segs i{height:6px;border-radius:3px;background:#E3DCD9}
.segs i.on{background:var(--green)}
.steps-txt{display:flex;justify-content:space-between;font-size:11px;color:var(--soft);font-weight:600;gap:4px}
.steps-txt span{flex:1;text-align:center}.steps-txt span:first-child{text-align:left}.steps-txt span:last-child{text-align:right}
.steps-txt span.on{color:var(--green)}
.note{display:flex;gap:12px;align-items:flex-start;background:var(--bg);border-radius:16px;padding:12px}
.note b{display:block;font-size:14px}.note p{margin:2px 0 0;font-size:13px;color:var(--muted);white-space:pre-wrap;line-height:1.5}

/* date tiles */
.dt{width:52px;text-align:center;background:var(--red-soft);border-radius:14px;padding:7px 0;flex-shrink:0}
.dt .n{font-family:var(--serif);font-size:24px;font-weight:600;line-height:1}
.dt .m{font-size:11px;font-weight:700;color:var(--red-ink)}
.dt.big{width:60px;background:var(--red);color:#fff;border-radius:16px;padding:9px 0}
.dt.big .n{font-size:30px}.dt.big .m{color:#fff}
.dt.none{background:var(--line)}.dt.none .n{font-size:18px;padding:3px 0}
a.link-card{text-decoration:none;color:inherit}
.chev{flex-shrink:0;color:var(--soft)}

/* pills */
.pill{font-size:12px;font-weight:700;padding:5px 10px;border-radius:999px;background:var(--line);color:var(--body);white-space:nowrap}
.pill.ok{background:var(--green-soft);color:var(--green)}
.pill.warn{background:var(--red-soft);color:var(--red-ink)}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:0 18px;border-radius:999px;border:0;background:var(--ink);color:#fff;font-size:14px;font-weight:700;text-decoration:none;cursor:pointer}
.btn.line{background:#fff;color:var(--ink);border:1.5px solid var(--ink)}
.btn.soft{background:var(--red-soft);color:var(--red-ink)}
.btn.red{background:var(--red)}
.btn.block{width:100%;min-height:52px;font-size:15px}
.btn[disabled]{opacity:.55;cursor:default}
.btns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}

/* lists */
.li{display:flex;gap:14px;align-items:center;padding:14px 18px;border-bottom:1px solid var(--line)}
.li:last-child{border-bottom:0}
.dot{width:30px;height:30px;border-radius:999px;display:grid;place-items:center;background:var(--line);color:var(--muted);font-size:13px;font-weight:700;flex-shrink:0}
.dot.done{background:var(--green-soft);color:var(--green)}
.dot.next{background:var(--red);color:#fff}
.li .t{font-size:15px;font-weight:700}.li .s{font-size:13px;color:var(--muted)}
.li .col{display:flex;flex-direction:column;gap:1px;flex:1;min-width:0}
.li .r{display:flex;flex-direction:column;gap:4px;align-items:flex-end}

/* money */
.big-money{font-family:var(--serif);font-size:40px;font-weight:600;line-height:1}
.bar{height:8px;border-radius:4px;background:var(--line);overflow:hidden}.bar i{display:block;height:100%;background:var(--green);border-radius:4px}
.pay-how{white-space:pre-wrap;font-size:13px;color:var(--body);line-height:1.55;font-variant-numeric:tabular-nums}

/* empty */
.empty{background:#fff;border-radius:24px;padding:28px 22px;text-align:center;display:flex;flex-direction:column;gap:10px;align-items:center}
.empty h2{margin:0;font-family:var(--serif);font-weight:500;font-size:28px}
.empty p{margin:0;font-size:14px;color:var(--muted);line-height:1.6}

/* board + discover grids */
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tile{position:relative;background:#fff;border-radius:18px;overflow:hidden;display:flex;flex-direction:column}
.tile .ph{aspect-ratio:3/4;background:#E6DEDA;display:flex;align-items:flex-end;justify-content:center;padding:8px;font-size:11px;color:var(--muted);text-align:center}
.tile .ph img{width:100%;height:100%;object-fit:cover}
.tile .ph.has{padding:0}
.tile .cap{padding:8px 10px 10px;font-size:12px;line-height:1.4}
.tile .cap b{display:block;font-size:13px}
.tile .x{position:absolute;top:8px;right:8px;width:34px;height:34px;border-radius:999px;border:0;background:rgba(255,255,255,.92);display:grid;place-items:center;cursor:pointer}
.tile .save{position:absolute;top:8px;right:8px;min-height:34px;padding:0 12px;border-radius:999px;border:0;background:rgba(255,255,255,.94);font-size:12px;font-weight:700;cursor:pointer}
.tile .save.on{background:var(--ink);color:#fff}
.add-tile{border:1.5px dashed #CFC5C1;border-radius:18px;aspect-ratio:3/4;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;font-size:13px;font-weight:700;cursor:pointer;background:transparent;color:var(--ink)}
.coll-h{display:flex;justify-content:space-between;align-items:baseline;margin-top:8px}
.coll-h h2{margin:0;font-family:var(--serif);font-weight:500;font-size:26px}
.hscroll{display:grid;grid-auto-flow:column;grid-auto-columns:46%;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:4px}
.hscroll>*{scroll-snap-align:start}
.social{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}

/* forms */
label.f{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:700}
.inp,label.f input,label.f textarea,label.f select{font:inherit;font-weight:500;font-size:16px;min-height:50px;padding:12px 16px;border:1px solid #DCD4D1;border-radius:14px;background:#fff;color:var(--ink);width:100%}
label.f textarea{min-height:100px;resize:vertical;line-height:1.5}
.seg2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.seg2 button{min-height:44px;border-radius:12px;border:1.5px solid #DCD4D1;background:#fff;font-weight:700;cursor:pointer}
.seg2 button[aria-pressed="true"]{border-color:var(--ink);background:var(--ink);color:#fff}
.stars{display:flex;gap:6px}
.stars button{width:44px;height:44px;border:0;background:none;cursor:pointer;padding:0;font-size:30px;line-height:1;color:#D9CFCB}
.stars button.on{color:var(--red)}
.check{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.5}
.check input{width:22px;height:22px;margin-top:1px;accent-color:var(--ink);flex-shrink:0}

/* sign in */
.login{flex:1;display:flex;flex-direction:column;background:#fff}
.login-hero{background:var(--red);min-height:min(380px,44vh);border-radius:0 0 36px 36px;display:flex;flex-direction:column;justify-content:flex-end;padding:calc(30px + var(--safe-t)) 28px 34px;gap:18px}
.login-hero img{width:190px}
.login-hero p{margin:0;color:#FFE4E8;font-size:15px;line-height:1.55;max-width:290px}
.login-body{flex:1;padding:30px 28px calc(24px + var(--safe-b));display:flex;flex-direction:column;gap:16px}
.or{display:flex;align-items:center;gap:12px;color:var(--soft);font-size:13px}.or::before,.or::after{content:"";flex:1;height:1px;background:#E3DCD9}
.g-btn{display:flex;align-items:center;justify-content:center;gap:10px;min-height:52px;border:1.5px solid var(--ink);border-radius:999px;background:#fff;font-weight:700;font-size:15px;cursor:pointer;width:100%}
.center{text-align:center}
.msg{background:var(--green-soft);color:var(--green);border-radius:14px;padding:12px 14px;font-size:14px;line-height:1.5}
.msg.err{background:var(--red-soft);color:var(--red-ink)}

/* tab bar */
.tabs{position:fixed;left:0;right:0;bottom:0;z-index:20;background:#fff;border-top:1px solid #ECE6E3;padding:8px 6px calc(10px + var(--safe-b))}
.tabs .in{max-width:480px;margin:0 auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.tabs a{display:flex;flex-direction:column;align-items:center;gap:3px;text-decoration:none;font-size:11px;font-weight:700;color:var(--soft);min-height:48px;justify-content:center}
.tabs a[aria-current="page"]{color:var(--red)}

/* sheet */
.sheet-ov{position:fixed;inset:0;z-index:40;background:rgba(26,20,20,.45);display:none;align-items:flex-end;justify-content:center}
.sheet-ov.open{display:flex}
.sheet{background:#fff;width:100%;max-width:480px;max-height:92vh;overflow:auto;border-radius:24px 24px 0 0;padding:20px 20px calc(22px + var(--safe-b));display:flex;flex-direction:column;gap:14px}
.sheet h3{margin:0;font-family:var(--serif);font-weight:500;font-size:28px}
.toast{position:fixed;left:50%;bottom:calc(92px + var(--safe-b));transform:translateX(-50%) translateY(20px);background:var(--ink);color:#fff;padding:12px 18px;border-radius:14px;font-size:14px;font-weight:600;opacity:0;pointer-events:none;transition:.25s;z-index:60;max-width:90vw;text-align:center}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}

@media (min-width:600px){
  body{background:#EFEAE7}
  #app{box-shadow:0 0 0 1px #E6DEDA}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
