/* Bill Check. Paper and ink: a warm page, one blue for actions, rust only for things that look wrong. */
:root {
  --paper: #f7f5f0; --card: #ffffff; --ink: #1c2430; --soft: #5b6470; --line: #e2ddd2;
  --blue: #2b4c6f; --blue-dark: #1f3a56; --blue-tint: #eaf0f6;
  --rust: #a4441e; --rust-tint: #fbefe9; --green: #2d6a3e; --green-tint: #ebf4ed; --amber: #7a5200; --amber-tint: #fbf3df;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: var(--blue); }
img { max-width: 100%; }
.top { display: flex; align-items: center; justify-content: space-between; max-width: 640px; margin: 0 auto; padding: 14px 16px; }
.mark { font-weight: 700; font-size: 19px; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.mark i { width: 16px; height: 20px; background: #fff; border: 2px solid var(--blue); border-radius: 2px; position: relative; display: inline-block; }
.mark i::after { content: ""; position: absolute; left: 2px; right: 2px; top: 4px; height: 8px; border-top: 2px solid var(--blue); border-bottom: 2px solid var(--blue); }
.top a.link { font-size: 16px; text-decoration: none; padding: 8px 4px; }
main { max-width: 640px; margin: 0 auto; padding: 0 16px 48px; }
h1 { font-size: 30px; line-height: 1.15; margin: 12px 0 8px; letter-spacing: -0.015em; }
h2 { font-size: 22px; line-height: 1.25; margin: 36px 0 10px; }
h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--soft); margin: 0 0 8px; }
.lead { font-size: 18px; color: var(--soft); margin: 0 0 8px; }
.handy { font-size: 16px; margin: 0 0 16px; }
.textlink { font: inherit; color: var(--blue); background: none; border: 0; padding: 1px 0; text-decoration: underline; cursor: pointer; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 16px; }
.q { display: block; font-weight: 600; margin: 0 0 8px; }
input[type=text], input[type=email] { display: block; width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: #fff; border: 1px solid #cfc8ba; border-radius: 9px; padding: 12px; }
input:focus, button:focus-visible, a:focus-visible { outline: 3px solid #9db6d0; outline-offset: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.chip { font: inherit; font-size: 15px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; min-height: 40px; cursor: pointer; }
.chip[aria-pressed=true] { background: var(--blue-tint); border-color: var(--blue); color: var(--blue-dark); }
.step + .step { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.add { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 64px; font: inherit; font-weight: 600; color: var(--blue); background: var(--blue-tint); border: 2px dashed #9db6d0; border-radius: 12px; cursor: pointer; }
.add svg { width: 26px; height: 26px; }
.hint { font-size: 15px; color: var(--soft); margin: 8px 0 0; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; margin: 12px 0 0; }
.thumb { position: relative; aspect-ratio: 3 / 4; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--soft); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(28, 36, 48, .8); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.go { display: block; width: 100%; min-height: 56px; margin-top: 20px; font: inherit; font-size: 19px; font-weight: 700; color: #fff; background: var(--blue); border: 0; border-radius: 12px; cursor: pointer; text-align: center; text-decoration: none; line-height: 56px; padding: 0 16px; }
.go:hover { background: var(--blue-dark); }
.go[disabled] { opacity: .45; cursor: default; }
.second { display: inline-block; font: inherit; font-weight: 600; color: var(--blue); background: #fff; border: 1px solid var(--blue); border-radius: 10px; padding: 10px 16px; min-height: 46px; cursor: pointer; text-decoration: none; }
.fine { font-size: 14px; color: var(--soft); margin: 10px 0 0; }
.err { color: var(--rust); font-weight: 600; margin: 12px 0 0; }
.wait { text-align: center; padding: 34px 10px; }
.wait p { font-size: 18px; margin: 14px 0 0; }
.bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 3px; transition: width .8s ease; }

/* The result card */
.result { margin-top: 8px; }
.answer { border-radius: 12px; padding: 18px 16px; margin: 0 0 14px; border: 1px solid; }
.answer .for { font-size: 14px; font-weight: 600; margin: 0 0 4px; opacity: .85; }
.answer h2 { font-size: 26px; margin: 0 0 6px; }
.answer p.detail { margin: 0; font-size: 17px; }
.tone-good { background: var(--green-tint); border-color: #b9d6c0; color: #18361f; }
.tone-warn { background: var(--rust-tint); border-color: #ecc7b6; color: #4f200d; }
.tone-wait { background: var(--amber-tint); border-color: #e9d29a; color: #3f2b00; }
.tone-info { background: var(--blue-tint); border-color: #c9d7e6; color: #17293d; }
.block { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 0 0 12px; }
.flags, .steps, .papers { margin: 0; padding: 0; list-style: none; }
.flags li { padding: 10px 0 10px 14px; border-left: 3px solid var(--rust); margin: 0 0 10px; }
.flags li:last-child { margin-bottom: 0; }
.flags b { display: block; }
.steps { counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 12px 38px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.by { display: inline-block; font-size: 14px; font-weight: 700; color: var(--blue-dark); background: var(--blue-tint); border-radius: 6px; padding: 1px 7px; margin-left: 4px; }
.script { white-space: pre-wrap; margin: 0 0 12px; padding: 12px 14px; background: var(--paper); border-radius: 8px; font-size: 16px; }
.papers li > div { min-width: 0; }
.papers li { padding: 10px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.papers li:first-child { border-top: 0; padding-top: 0; }
.papers .amt { text-align: right; font-size: 14px; line-height: 1.3; color: var(--soft); flex: 0 0 auto; max-width: 38%; }
.papers .amt b { display: block; font-size: 18px; color: var(--ink); }
.papers small { display: block; color: var(--soft); font-size: 15px; }
.notes { font-size: 15px; color: var(--soft); margin: 0 0 12px; padding-left: 18px; }
.pro-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 12px; }
.pro-row button { width: 100%; }
.example-tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--rust); border: 2px solid var(--rust); border-radius: 4px; padding: 1px 6px; margin: 0 0 8px; }
.share { text-align: center; margin: 18px 0 0; }

/* Pro panel and letter */
.sheet { background: var(--card); border: 2px solid var(--blue); border-radius: 12px; padding: 18px 16px; margin: 14px 0; }
.sheet h2 { margin-top: 0; }
.sheet ul { padding-left: 20px; margin: 0 0 14px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.plan { font: inherit; text-align: left; background: #fff; border: 2px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; color: var(--ink); min-height: 64px; }
.plan[aria-pressed=true] { border-color: var(--blue); background: var(--blue-tint); }
.plan b { display: block; font-size: 20px; }
.plan span { font-size: 14px; color: var(--soft); }
textarea.letter { width: 100%; min-height: 360px; font: 15px/1.45 ui-monospace, Menlo, Consolas, monospace; border: 1px solid #cfc8ba; border-radius: 9px; padding: 12px; background: #fff; color: var(--ink); }
.row { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 0; }

/* Home page parts */
.demo { margin: 28px 0 0; }
.demo-papers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 12px; }
.demo-papers img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: top left; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.how { padding-left: 20px; }
.how li { margin: 0 0 8px; }
.price { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.help { columns: 1; padding-left: 20px; }
.help li { margin: 0 0 8px; }
footer { max-width: 640px; margin: 0 auto; padding: 22px 16px 40px; font-size: 14px; color: var(--soft); border-top: 1px solid var(--line); }
footer a { color: var(--soft); margin-right: 14px; }
.page h1 { margin-top: 18px; }
.page p, .page li { font-size: 17px; }
.cta { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 28px 0 0; }
.folder-person { margin: 26px 0 8px; font-size: 20px; }
.item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0 0 10px; }
.item.done { opacity: .6; }
.item h3 { text-transform: none; letter-spacing: 0; color: var(--ink); font-size: 17px; margin: 0 0 4px; }
.item .meta { font-size: 15px; color: var(--soft); margin: 0 0 8px; }
.item .row button { font-size: 15px; padding: 8px 12px; min-height: 40px; }
.hidden { display: none !important; }
@media (min-width: 560px) { h1 { font-size: 36px; } .answer h2 { font-size: 28px; } }
@media print {
  body.printing > *:not(.print-me) { display: none !important; }
  body.printing .print-me { display: block !important; white-space: pre-wrap; font: 12pt/1.5 Georgia, serif; color: #000; padding: 0; }
}
