*{box-sizing:border-box}
:root{font-family:"Inter",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#171a22;background:#f7f8fb;font-synthesis:none}
html{scroll-behavior:smooth}
body{margin:0;min-height:100vh;background:linear-gradient(180deg,#ffffff 0,#f7f8fb 42%,#f3f5f9 100%);overflow-x:hidden}
button,input,select{font:inherit}button{cursor:pointer}
.site-header{position:sticky;top:0;z-index:20;height:64px;background:rgba(255,255,255,.88);border-bottom:1px solid #e7e9ef;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.header-inner{width:min(940px,calc(100% - 32px));height:100%;margin:auto;display:flex;align-items:center;justify-content:space-between}
.brand{display:flex;align-items:center;gap:10px;color:#11141b;text-decoration:none;font-weight:800;letter-spacing:-.02em}
.brand-mark{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:#171a22;color:#fff;font-size:10px;font-weight:800;letter-spacing:.03em}
.header-link{border:0;background:transparent;color:#667085;font-size:14px;font-weight:600;padding:8px}.header-link:hover{color:#171a22}
.container{width:min(940px,calc(100% - 32px));margin:auto;padding:52px 0 70px}
.hero{max-width:720px;margin:0 auto 34px;text-align:center}
.eyebrow,.section-kicker{margin:0;color:#7a8191;font-size:11px;font-weight:800;letter-spacing:.12em}
.hero h1{margin:9px 0 12px;font-size:clamp(34px,6vw,54px);line-height:1.04;letter-spacing:-.055em;color:#11141b}
.hero-copy{margin:0 auto;color:#697184;font-size:16px;line-height:1.65;max-width:620px}
.steps{display:flex;align-items:center;max-width:540px;margin:0 auto 28px}.step{display:flex;align-items:center;gap:8px;color:#7a8191;text-decoration:none;font-size:13px;white-space:nowrap}.step span{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;border:1px solid #dfe2e9;background:#fff;font-size:11px;font-weight:700}.step b{font-weight:700}.step.active{color:#171a22}.step.active span{background:#171a22;border-color:#171a22;color:#fff}.steps i{height:1px;background:#dfe2e9;flex:1;margin:0 12px}
.card{background:#fff;border:1px solid #e3e6ed;border-radius:18px;padding:24px;margin-bottom:16px;box-shadow:0 8px 28px rgba(20,26,40,.045)}
.section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:18px}.section-head.compact{margin-bottom:14px}.section-head h2{margin:5px 0 4px;font-size:21px;letter-spacing:-.025em;color:#171a22}.section-head p:not(.section-kicker){margin:0;color:#737b8c;font-size:14px;line-height:1.5}.count-badge{min-width:30px;height:30px;padding:0 9px;border-radius:999px;background:#f1f3f7;color:#525b6c;display:grid;place-items:center;font-size:12px;font-weight:700}
.add-row{display:flex;gap:9px}input,select{width:100%;height:48px;border:1px solid #dfe3ea;border-radius:11px;background:#fff;color:#171a22;padding:0 13px;outline:none;transition:border-color .18s,box-shadow .18s,background .18s}input::placeholder{color:#a3a9b5}input:focus,select:focus{border-color:#8a92a3;box-shadow:0 0 0 3px rgba(23,26,34,.07)}
.button{min-height:44px;border-radius:10px;padding:0 16px;border:1px solid transparent;font-weight:700;font-size:14px;transition:transform .16s,box-shadow .16s,background .16s}.button:active{transform:scale(.98)}.button.primary{background:#171a22;color:#fff}.button.primary:hover{background:#2a2e38}.button.secondary{background:#fff;border-color:#dfe3ea;color:#303643}.button.secondary:hover{background:#f6f7f9}.calculate{width:100%;height:56px;border-radius:14px;background:#171a22;color:#fff;font-size:15px;display:flex;align-items:center;justify-content:center;gap:12px;box-shadow:0 12px 28px rgba(23,26,34,.14)}.calculate span{font-size:19px}.action-bar{margin:4px 0 16px}
.people-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.person-chip{display:inline-flex;align-items:center;gap:8px;background:#f3f4f7;border:1px solid #e0e3e9;border-radius:999px;padding:8px 9px 8px 13px;font-size:13px;font-weight:650;color:#343a47}.person-chip button{width:24px;height:24px;border:0;border-radius:50%;background:#fff;color:#7c8492;display:grid;place-items:center;font-size:15px}.empty-state{text-align:center;color:#9aa1af;font-size:13px;margin:17px 0 2px}
.items-list{display:grid;gap:12px}.item-card{border:1px solid #e3e6ed;border-radius:14px;padding:17px;background:#fcfcfd}.item-card:focus-within{border-color:#cbd0da;box-shadow:0 6px 22px rgba(20,26,40,.04)}.item-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.item-title{display:flex;gap:5px;color:#2e3440;font-size:13px;font-weight:750}.item-number{color:#8b93a1}.remove-button{border:0;background:transparent;color:#9b5c5c;padding:5px 0;font-size:12px;font-weight:650}.remove-button:hover{color:#b23f3f}.form-grid{display:grid;grid-template-columns:1.5fr .8fr .65fr;gap:10px}.form-grid label{display:grid;gap:7px;color:#596171;font-size:12px;font-weight:650}.switch-row{display:flex;align-items:center;gap:10px;margin-top:13px;padding:11px 12px;border:1px solid #eceef2;border-radius:11px;background:#f8f9fb;cursor:pointer}.switch-row input{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}.switch{position:relative;flex:0 0 36px;width:36px;height:21px;border-radius:99px;background:#c9ced7;transition:.18s}.switch:after{content:"";position:absolute;width:17px;height:17px;top:2px;left:2px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.18);transition:.18s}.switch-row input:checked+.switch{background:#171a22}.switch-row input:checked+.switch:after{transform:translateX(15px)}.switch-row strong{display:block;color:#3a404c;font-size:12px}.switch-row small{display:block;margin-top:2px;color:#8b93a1;font-size:11px;font-weight:500}
.consumer-section{margin-top:14px}.consumer-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;color:#3b414d;font-size:12px}.text-button{border:0;background:transparent;color:#545d6e;padding:4px 0;font-size:12px;font-weight:700}.text-button:hover{text-decoration:underline}.consumer-list{display:flex;gap:7px;overflow-x:auto;padding:2px 1px 4px;scrollbar-width:none}.consumer-list::-webkit-scrollbar{display:none}.consumer{position:relative;display:flex;align-items:center;flex:0 0 auto}.consumer input{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}.consumer span{display:block;border:1px solid #dfe3ea;background:#fff;border-radius:999px;padding:8px 11px;color:#667085;font-size:12px;font-weight:600;white-space:nowrap}.consumer input:checked+span{background:#171a22;border-color:#171a22;color:#fff}.add-item-button{width:100%;height:46px;margin-top:12px;border:1px dashed #cfd4dd;border-radius:11px;background:#fafbfc;color:#4f5868;font-size:13px;font-weight:700}.add-item-button:hover{background:#f4f5f7;border-color:#b9c0cb}.desktop-only{display:block}
.share-card{background:#fafbfc}.share-actions{display:flex;gap:9px}.share-actions .button{flex:1}.status{min-height:18px;margin:10px 0 0;color:#6c7483;font-size:12px}.status.success{color:#2f7750}.status.error{color:#b24b4b}
.result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.person-result{border:1px solid #e3e6ed;border-radius:14px;padding:16px}.person-result h3{margin:0 0 13px;font-size:16px}.money-row{display:flex;justify-content:space-between;gap:20px;padding:7px 0;color:#727a89;font-size:13px}.money-row strong{color:#363c48;font-weight:650}.money-row.total{margin-top:5px;padding-top:12px;border-top:1px solid #eceef2;color:#171a22;font-size:14px}.money-row.total strong{color:#171a22;font-size:16px}.item-breakdown{margin-top:12px;border-top:1px solid #eceef2;padding-top:10px}.item-breakdown summary{cursor:pointer;color:#667085;font-size:12px;font-weight:650}.breakdown-line{display:flex;justify-content:space-between;gap:12px;padding:6px 0;color:#7a8190;font-size:11px}.breakdown-line strong{color:#4b5361}.grand-total{display:flex;justify-content:space-between;align-items:center;margin-top:14px;padding:18px 2px 2px;border-top:1px solid #dfe3ea;font-weight:800;font-size:17px}.grand-total span:last-child{font-size:21px}
footer{text-align:center;color:#9aa1ae;font-size:11px;margin-top:30px}
.hidden{display:none!important}
.modal{position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:18px}.modal-backdrop{position:absolute;inset:0;background:rgba(12,15,22,.55);backdrop-filter:blur(7px)}.modal-panel{position:relative;width:min(560px,100%);max-height:calc(100vh - 36px);overflow:auto;background:#fff;border-radius:18px;padding:18px;box-shadow:0 30px 80px rgba(0,0,0,.22)}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:14px}.modal-head h2{margin:4px 0 0;font-size:19px}.close-button{width:34px;height:34px;border:1px solid #e1e4ea;border-radius:9px;background:#fff;color:#687181;font-size:20px}.modal-panel img{display:block;width:100%;border:1px solid #e4e6eb;border-radius:12px;background:#10131c}.modal-actions{display:flex;gap:9px;margin-top:12px}.modal-actions .button{flex:1}
@media (max-width:700px){
  .site-header{height:58px}.header-inner{width:min(100% - 24px,940px)}.container{width:min(100% - 24px,940px);padding:34px 0 48px}.hero{text-align:left;margin-bottom:27px}.hero h1{font-size:36px}.hero-copy{font-size:14px;line-height:1.55;margin:0}.steps{margin-bottom:18px}.step{font-size:11px;gap:6px}.step span{width:25px;height:25px}.steps i{margin:0 7px}.card{padding:18px;border-radius:15px;margin-bottom:12px}.section-head{margin-bottom:15px}.section-head h2{font-size:19px}.section-head p:not(.section-kicker){font-size:13px}.add-row{gap:7px}.add-row .button{padding:0 13px}.desktop-only{display:none}.form-grid{grid-template-columns:1fr 1fr}.form-grid label:first-child{grid-column:1/-1}.item-card{padding:14px}.consumer-list{margin-right:-2px}.share-actions{flex-direction:column}.result-grid{grid-template-columns:1fr}.action-bar{position:sticky;bottom:0;z-index:15;padding:9px 0 calc(9px + env(safe-area-inset-bottom));background:linear-gradient(to top,rgba(247,248,251,.98),rgba(247,248,251,.85),transparent);margin:0 -2px 12px}.calculate{height:52px}.modal{padding:10px}.modal-panel{max-height:calc(100vh - 20px);padding:14px}.modal-actions{flex-direction:column}.brand{font-size:14px}
}
@media (max-width:390px){.container{width:calc(100% - 20px)}.form-grid{grid-template-columns:1fr}.form-grid label:first-child{grid-column:auto}.section-head{gap:10px}.count-badge{min-width:28px}.hero h1{font-size:33px}}
.toast{position:fixed;left:50%;bottom:24px;z-index:80;transform:translateX(-50%);max-width:calc(100% - 32px);padding:12px 15px;border-radius:10px;background:#171a22;color:#fff;font-size:13px;font-weight:650;box-shadow:0 12px 30px rgba(0,0,0,.18);animation:toastIn .2s ease}.toast.success{background:#2f6f4e}.toast.error{background:#6f3131}@keyframes toastIn{from{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%,0)}}
.bill-methods{display:grid;grid-template-columns:1fr 1fr;gap:12px}.method-card{appearance:none;text-align:left;border:1px solid #e1e5ec;background:#fff;border-radius:14px;padding:16px;cursor:pointer;transition:.18s}.method-card:hover{border-color:#b8bec9;transform:translateY(-1px)}.method-card.selected{border-color:#171a22;box-shadow:0 0 0 1px #171a22}.method-title{display:block;font-size:14px;font-weight:800;color:#252a34;margin-bottom:6px}.method-copy{display:block;font-size:12px;line-height:1.5;color:#737b89}.ocr-panel{margin-top:14px;border:1px solid #e1e5ec;border-radius:14px;background:#fafbfc;padding:15px}.ocr-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.ocr-head strong{font-size:13px}.ocr-head span{font-size:11px;color:#737b89;white-space:nowrap}.ocr-subtitle{margin:3px 0 0;color:#7a8290;font-size:11px}.ocr-help{font-size:12px;color:#737b89;margin:9px 0 12px;line-height:1.5}.ocr-text{max-height:360px;overflow:auto;background:#fff;border:1px solid #e5e8ee;border-radius:10px;padding:8px;margin-bottom:12px}.ocr-text .ocr-row{display:grid;grid-template-columns:minmax(0,1fr) 120px 38px;gap:8px;padding:7px 0;border-bottom:1px solid #eef0f3;align-items:center}.ocr-text .ocr-row:last-child{border-bottom:0}.ocr-row input{min-width:0}.ocr-delete{width:36px;height:36px;border:1px solid #e2e5eb;border-radius:9px;background:#fff;color:#8a919e;display:grid;place-items:center;cursor:pointer;transition:.16s}.ocr-delete svg{width:17px;height:17px;fill:currentColor}.ocr-delete:hover,.ocr-delete:focus-visible{color:#b33d3d;border-color:#e1bcbc;background:#fff7f7}.ocr-panel .button{width:100%}
@media(max-width:640px){.bill-methods{grid-template-columns:1fr}.method-card{padding:14px}.ocr-head{align-items:flex-start;flex-direction:column;gap:3px}.ocr-head span{white-space:normal}.ocr-text{max-height:48vh}.ocr-text .ocr-row{grid-template-columns:minmax(0,1fr) 92px 36px;gap:6px}.ocr-delete{width:34px;height:34px}}

.scan-loader{display:flex;align-items:center;gap:13px;margin:12px 0;padding:13px 14px;border:1px solid #e5e8ee;border-radius:12px;background:#fff;overflow:hidden}.scan-loader.hidden{display:none!important}.scan-loader-text{display:block;font-size:12px;color:#303643}.scan-loader small{display:block;margin-top:3px;color:#8a919e;font-size:11px}.scan-loader-visual{position:relative;width:42px;height:42px;flex:0 0 42px;border:1px solid #dfe3ea;border-radius:11px;background:#f7f8fa;overflow:hidden}.scan-loader-visual span{position:absolute;left:5px;right:5px;top:5px;height:2px;background:#171a22;border-radius:99px;box-shadow:0 30px 0 #171a22;animation:scanSweep 1.4s ease-in-out infinite}.scan-loader-visual i{position:absolute;width:4px;height:4px;border-radius:50%;background:#858d9b;animation:scanDots 1s ease-in-out infinite}.scan-loader-visual i:nth-child(2){left:9px;top:18px}.scan-loader-visual i:nth-child(3){left:19px;top:18px;animation-delay:.15s}.scan-loader-visual i:nth-child(4){left:29px;top:18px;animation-delay:.3s}@keyframes scanSweep{0%,100%{transform:translateY(0);opacity:.45}50%{transform:translateY(15px);opacity:1}}@keyframes scanDots{0%,100%{transform:scale(.65);opacity:.4}50%{transform:scale(1.25);opacity:1}}.ocr-panel.is-scanning .ocr-head{opacity:.75}.ocr-panel.is-scanning .ocr-text{opacity:.5;pointer-events:none}.scan-busy .scan-loader{box-shadow:0 8px 25px rgba(23,26,34,.05)}
