/* Splitwin free tools — shared Bauhaus styling */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #F6F1E7; --ink: #121212; --yellow: #FFD400; --purple: #7B5CF0;
  --panel: #ffffff; --muted: #6b6b6b; --line: #eee; --neg: #d02020;
  --blue: #DDEBFF; --green: #C7F2D4; --lilac: #E9DFFF;
}
body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.5;
  min-height: 100vh; padding: 20px 16px 60px;
}
.wrap { max-width: 760px; margin: 0 auto; }

/* Header */
.hdr { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-bottom: 4px solid var(--ink); padding-bottom: 14px; margin-bottom: 8px; }
.hdr .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.hdr .brand img { width: 36px; height: 36px; }
.hdr .brand b { font-size: 21px; font-weight: 900; letter-spacing: -0.5px; }
.hdr .tag { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
  color: var(--ink); background: var(--yellow); border: 2px solid var(--ink); padding: 4px 9px; }

/* Breadcrumb */
.crumb { font-size: 12.5px; font-weight: 600; color: var(--muted); margin: 14px 0 4px; }
.crumb a { color: var(--purple); text-decoration: none; }

/* Title block */
h1 { font-size: clamp(26px, 5vw, 38px); font-weight: 900; letter-spacing: -1.2px; line-height: 1.05; margin-bottom: 10px; }
.intro { font-size: 15.5px; color: #444; font-weight: 500; margin-bottom: 22px; max-width: 640px; }

/* Panels */
.card { background: var(--panel); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  padding: 20px; margin-bottom: 18px; }
.card h2 { font-size: 15px; font-weight: 900; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 14px; }
.sub { font-size: 13px; color: var(--muted); font-weight: 600; }

/* Form fields */
label { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
  color: var(--ink); margin-bottom: 5px; }
input[type=text], input[type=number], select {
  width: 100%; font-family: inherit; font-size: 15px; font-weight: 600; color: var(--ink);
  padding: 11px 12px; border: 2.5px solid var(--ink); background: #fff; border-radius: 0; }
input:focus, select:focus { outline: none; box-shadow: 3px 3px 0 var(--ink); }
input::placeholder { color: #aaa; font-weight: 500; }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%23121212' stroke-width='2' fill='none'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.field { margin-bottom: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.row > .field { flex: 1; min-width: 120px; margin-bottom: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  font-family: inherit; font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .5px;
  padding: 12px 20px; border: 3px solid var(--ink); background: var(--yellow); color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink); text-decoration: none; transition: transform .08s, box-shadow .08s; }
.btn:active { transform: translate(3px,3px); box-shadow: 1px 1px 0 var(--ink); }
.btn.secondary { background: #fff; box-shadow: 3px 3px 0 var(--ink); }
.btn.small { padding: 8px 13px; font-size: 12.5px; box-shadow: 3px 3px 0 var(--ink); }
.btn.purple { background: var(--purple); color: #fff; }
.btn.full { width: 100%; }
.iconbtn { cursor: pointer; border: 2px solid var(--ink); background: #fff; width: 34px; height: 34px;
  font-size: 18px; font-weight: 900; line-height: 1; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.iconbtn:hover { background: #FFE2E2; }

/* Dynamic person/expense rows */
.entry { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.entry > * { min-width: 0; }
.entry input { flex: 1; }

/* Results */
.result { background: var(--lilac); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 20px; margin-bottom: 18px; }
.result h2 { font-size: 15px; font-weight: 900; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 14px; }
.result.hidden { display: none; }
.big { font-size: clamp(30px, 7vw, 46px); font-weight: 900; letter-spacing: -1.5px; line-height: 1; }
.resrow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 10px 0; border-bottom: 2px solid rgba(18,18,18,.12); font-weight: 700; }
.resrow:last-child { border-bottom: none; }
.resrow .amt { font-weight: 900; font-size: 16px; }
.resrow .amt.neg { color: var(--neg); }
.transfer { display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: #fff;
  border: 2.5px solid var(--ink); margin-bottom: 8px; font-weight: 700; font-size: 15px; }
.transfer .arrow { color: var(--purple); font-weight: 900; }
.transfer .amt { margin-left: auto; font-weight: 900; }
.pill { display:inline-block; font-size: 11px; font-weight: 800; padding: 2px 8px; border: 2px solid var(--ink); background: var(--green); margin-left: 6px; }
.err { background: #FFE2E2; border: 2.5px solid var(--neg); color: var(--neg); font-weight: 700;
  font-size: 14px; padding: 10px 14px; margin-bottom: 14px; }
.err.hidden { display: none; }
.note { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 8px; }

/* Checkbox chips (assign people to items) */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { cursor: pointer; font-size: 13px; font-weight: 700; padding: 5px 11px; border: 2px solid var(--ink);
  background: #fff; user-select: none; }
.chip.on { background: var(--yellow); }

/* CTA / funnel */
.cta { background: var(--ink); color: #fff; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--purple);
  padding: 26px 22px; margin: 30px 0 18px; text-align: center; }
.cta h2 { font-size: clamp(20px, 4vw, 26px); font-weight: 900; letter-spacing: -0.6px; margin-bottom: 8px; text-transform: none; color: #fff; }
.cta p { color: #d9d9d9; font-size: 15px; font-weight: 500; max-width: 460px; margin: 0 auto 18px; }
.cta .badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta .badges img { height: 46px; }

/* FAQ */
.faq details { background: #fff; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 15px 18px; font-weight: 800; font-size: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; font-weight: 900; color: var(--yellow); line-height: 1; }
.faq details[open] summary::after { content: '\2013'; }
.faq .ans { padding: 0 18px 18px; font-size: 15px; line-height: 1.6; color: #3a3a3a; font-weight: 500; }

/* More tools */
.more { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .more { grid-template-columns: 1fr; } }
.more a { display: block; text-decoration: none; color: var(--ink); background: #fff; border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink); padding: 14px 16px; font-weight: 800; font-size: 15px; transition: transform .1s, box-shadow .1s; }
.more a:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.more a span { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-top: 3px; }

/* Footer */
.foot { text-align: center; font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 34px; padding-top: 18px; border-top: 2px solid var(--ink); }
.foot a { color: var(--purple); text-decoration: none; }
.sectlbl { font-size: 12px; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase; margin: 30px 0 12px; }
