:root {
  --bg: #f6f7f4; --card: #ffffff; --ink: #1c2420; --muted: #66726b; --line: #dfe4de;
  --brand: #1f7a5a; --brand-ink: #ffffff; --brand-soft: #e3f2ec; --warn: #b4540a; --warn-soft: #fdf0e2; --bad: #b3261e; --bad-soft: #fbe9e7;
  --radius: 14px; --shadow: 0 1px 2px rgba(20, 30, 25, .06), 0 4px 14px rgba(20, 30, 25, .05);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #121715; --card: #1b221f; --ink: #eef2ef; --muted: #9aa8a0; --line: #2c3631; --brand: #3fb589; --brand-ink: #0d1f17; --brand-soft: #1a2f26; --warn: #f0a35e; --warn-soft: #33261a; --bad: #f2877f; --bad-soft: #3a1f1c; --shadow: none; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 1.7rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
a { color: var(--brand); }
.muted { color: var(--muted); } .small { font-size: .875rem; } .right { text-align: right; }
.wrap { max-width: 720px; margin: 0 auto; padding: 16px; }
.wide { max-width: 1000px; }

/* controls */
label { display: block; font-weight: 600; font-size: .9rem; margin: 14px 0 6px; }
input, select, textarea { width: 100%; font: inherit; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; min-height: 44px; }
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid var(--brand); outline-offset: 1px; }
button, .btn { font: inherit; font-weight: 600; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px; padding: 10px 16px; min-height: 44px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
button.primary, .btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
button.danger { color: var(--bad); }
button.link { border: 0; background: none; color: var(--brand); padding: 6px 2px; min-height: 0; }
button:disabled { opacity: .55; cursor: default; }
.row { display: flex; gap: 10px; flex-wrap: wrap; } .row > * { flex: 1 1 140px; }
.row.tight > * { flex: 0 0 auto; }
.stack > * + * { margin-top: 12px; }

/* layout bits */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.card + .card { margin-top: 14px; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; max-width: 720px; margin: 0 auto; }
.logo { font-weight: 800; letter-spacing: -.02em; color: var(--ink); text-decoration: none; font-size: 1.15rem; }
.logo span { color: var(--brand); }
.tabs { position: fixed; bottom: 0; left: 0; right: 0; display: flex; background: var(--card); border-top: 1px solid var(--line); z-index: 5; padding-bottom: env(safe-area-inset-bottom); }
.tabs a { flex: 1; text-align: center; padding: 10px 4px 9px; font-size: .78rem; font-weight: 600; text-decoration: none; color: var(--muted); }
.tabs a.on { color: var(--brand); }
.tabs a .ico { display: block; font-size: 1.25rem; line-height: 1.2; }
main.wrap { padding-bottom: 96px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.stat b { display: block; font-size: 1.15rem; margin-top: 2px; }
.stat.warn b { color: var(--warn); }
@media (max-width: 480px) { .stat b { font-size: 1rem; } .stat .small { font-size: .75rem; } }

.list { list-style: none; margin: 0; padding: 0; }
.list li a, .list li > div { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 13px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.list li:last-child a { border-bottom: 0; }
.list .sub { color: var(--muted); font-size: .875rem; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); text-transform: uppercase; letter-spacing: .03em; }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.gray { background: var(--line); color: var(--muted); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin: 10px 0; }
.chips button { min-height: 36px; padding: 6px 14px; border-radius: 99px; white-space: nowrap; }
.chips button.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }

.notice { padding: 12px 14px; border-radius: 10px; background: var(--brand-soft); color: var(--ink); margin: 12px 0; }
.notice.warn { background: var(--warn-soft); } .notice.bad { background: var(--bad-soft); }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 84px; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; z-index: 10; max-width: 90%; }

.items .it { display: grid; grid-template-columns: 1fr 64px 92px 34px; gap: 8px; margin-bottom: 8px; align-items: start; }
.items .it button { min-height: 44px; padding: 0; }
.totals { text-align: right; margin-top: 10px; } .totals div { display: flex; justify-content: space-between; padding: 3px 0; } .totals .grand { font-weight: 800; font-size: 1.15rem; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; }
.lock { opacity: .75; }

/* marketing pages */
.hero { text-align: center; padding: 44px 0 20px; }
.hero h1 { font-size: 2.2rem; letter-spacing: -.02em; } .hero p { font-size: 1.1rem; color: var(--muted); max-width: 34em; margin: 0 auto 22px; }
.grid3 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin: 22px 0; }
.price { font-size: 1.6rem; font-weight: 800; } .price small { font-size: .9rem; font-weight: 500; color: var(--muted); }
ul.ticks { list-style: none; padding: 0; margin: 12px 0 0; } ul.ticks li { padding: 4px 0 4px 26px; position: relative; } ul.ticks li::before { content: "✓"; position: absolute; left: 4px; color: var(--brand); font-weight: 800; }
footer.site { text-align: center; padding: 30px 16px 40px; color: var(--muted); font-size: .9rem; } footer.site a { margin: 0 8px; }
.legal h2 { margin-top: 1.6em; } .legal p, .legal li { color: var(--ink); }
.draft-banner { background: var(--warn-soft); border: 1px solid var(--warn); color: var(--ink); border-radius: 10px; padding: 12px 14px; margin-bottom: 18px; }
