:root {
  --ink: #16181d;
  --muted: #5d6470;
  --line: #e3e1dc;
  --paper: #fbfaf7;
  --card: #ffffff;
  --accent: #1f5f4a;
  --accent-ink: #ffffff;
  --closing: #b3261e;
  --open: #1f5f4a;
  --early: #8a5a00;
  --passed: #6b6f76;
  --radius: 10px;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); margin: 0.2em 0 0.4em; max-width: 18ch; }
h2 { font-size: 1.6rem; margin: 0 0 1rem; }
h3 { font-size: 1.05rem; margin: 0 0 0.35rem; }
main, .top, footer { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

.top { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; padding-bottom: 18px; }
.mark { font-weight: 700; text-decoration: none; color: var(--ink); letter-spacing: -0.01em; }
.mark::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 2px; background: var(--accent); }
nav { display: flex; gap: 18px; align-items: center; }
nav a { color: var(--muted); text-decoration: none; }
.link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
nav .link { color: var(--muted); text-decoration: none; }

.hero { padding: 48px 0 24px; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 0.9rem; margin: 0; }
.lede { font-size: 1.15rem; color: #2d3139; max-width: 62ch; }
.drop { margin-top: 28px; border: 1.5px dashed #b9b5ab; background: var(--card); border-radius: var(--radius); padding: 34px 24px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop:focus-visible, .drop.over { border-color: var(--accent); background: #f3f7f5; outline: none; }
.drop-main { font-size: 1.1rem; margin: 0 0 6px; }
.drop-sub { color: var(--muted); margin: 0; font-size: 0.93rem; }
.u { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.or { text-align: center; margin: 14px 0 0; }
.status { min-height: 1.5em; margin: 12px 0 0; text-align: center; color: var(--muted); }
.status.bad { color: var(--closing); }

.btn { background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 8px; padding: 11px 18px; font: inherit; font-weight: 600; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); font-weight: 500; padding: 8px 14px; }

.results { padding: 24px 0 8px; border-top: 1px solid var(--line); margin-top: 24px; }
.results-head { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; }
.results-head h2 { margin: 0; }
.note { color: var(--muted); margin: 6px 0; font-size: 0.93rem; }
.note.warn { color: var(--early); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tile-v { font-size: 1.7rem; font-weight: 700; margin: 0; font-variant-numeric: tabular-nums; }
.tile-l { margin: 2px 0 0; font-weight: 600; font-size: 0.92rem; }
.tile-n { margin: 0; color: var(--muted); font-size: 0.85rem; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 8px 0 14px; }
.toolbar input { width: 110px; }
input, select { font: inherit; padding: 7px 9px; border: 1px solid #cfccc4; border-radius: 7px; background: #fff; }
input.unit-price { width: 92px; text-align: right; padding: 4px 6px; font-size: 0.9rem; }

.po { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--passed); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 14px; }
.po.closing { border-left-color: var(--closing); }
.po.open { border-left-color: var(--open); }
.po.too_early { border-left-color: var(--early); }
.po header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.po header p { margin: 0; }
.muted { color: var(--muted); font-size: 0.88rem; }
.chip { white-space: nowrap; font-size: 0.85rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #efeee9; color: var(--passed); }
.chip.closing { background: #fbe9e7; color: var(--closing); }
.chip.open { background: #e6f1ec; color: var(--open); }
.chip.too_early { background: #f8efdc; color: var(--early); }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; margin: 12px 0 6px; font-size: 0.93rem; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: 0.82rem; border-bottom: 1px solid var(--line); padding: 6px 8px; }
td { border-bottom: 1px solid #f0eee9; padding: 8px; vertical-align: top; }
.po td:first-child { min-width: 170px; }
.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.strong { font-weight: 700; }
.po-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 8px; }
.proof { margin: 10px 0 0; padding-left: 20px; color: #2d3139; }
.empty { padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.locked { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; }

.how, .pricing, .faq { padding: 48px 0 8px; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; counter-reset: s; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; counter-increment: s; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: 0.85rem; margin-bottom: 10px; }
.steps p { margin: 0; color: #2d3139; }
.limits { margin-top: 20px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #f5f4ef; }
.limits ul { margin: 6px 0 0; padding-left: 20px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; max-width: 720px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.plan.main { border-color: var(--accent); }
.price { font-size: 2rem; font-weight: 700; margin: 4px 0 8px; }
.price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan ul { padding-left: 18px; margin: 0 0 16px; }
.fine { color: var(--muted); font-size: 0.85rem; margin: 10px 0 0; }
details { border-bottom: 1px solid var(--line); padding: 12px 0; max-width: 760px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 8px 0 0; color: #2d3139; }
dialog { border: 1px solid var(--line); border-radius: var(--radius); padding: 0; max-width: 420px; width: calc(100% - 32px); }
dialog::backdrop { background: rgb(22 24 29 / 0.35); }
.signin { padding: 22px; }
.signin h2 { margin: 0 0 6px; font-size: 1.3rem; }
.signin input { width: 100%; }
.row { display: flex; gap: 14px; align-items: center; margin-top: 10px; }
footer { padding-top: 40px; padding-bottom: 40px; color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--line); margin-top: 48px; }
footer p { margin: 4px 0; }
.page { max-width: 720px; margin: 0 auto; padding: 32px 20px 60px; }
.key { font-family: ui-monospace, "SF Mono", Consolas, monospace; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px; word-break: break-all; font-size: 1rem; }
@media (max-width: 640px) { nav a { display: none; } .po header { flex-direction: column; } }
