/* Colors from the Brightlink logo: blue #5a70f5, red #ea4940, gray #737373.
   The -strong shades are the same hues, darkened so text on them stays readable. */
:root {
  --ink: #1f2433; --muted: #666a73; --line: #e3e6f0; --bg: #f6f7fc; --card: #fff;
  --brand: #5a70f5; --brand-strong: #3a50d9; --brand-ink: #fff; --brand-tint: #eef1fe;
  --red: #ea4940;
  --good: #3a50d9; --good-bg: #eef1fe;
  --warn: #8a5a00; --warn-bg: #fff4d6;
  --flat: #5c5c5c; --flat-bg: #efefef;
  --info: #c0362e; --info-bg: #fdecea;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand-strong); }
header.site { background: var(--card); border-top: 4px solid var(--brand); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.brand { display: block; width: 170px; height: 53px; background: url(/logo.svg) no-repeat left center / contain;
  overflow: hidden; white-space: nowrap; text-indent: 100%; color: transparent; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 24px 16px; }
.narrow { max-width: 620px; }
h1 { font-size: 26px; margin: 0 0 6px; line-height: 1.25; }
h2 { font-size: 18px; margin: 28px 0 10px; }
p.lead { color: var(--muted); margin: 0 0 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
label { display: block; font-weight: 600; margin: 14px 0 4px; }
label .opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=password] { width: 100%; padding: 10px 12px; border: 1px solid #c9d0d8; border-radius: 7px; font: inherit; }
.drop { border: 2px dashed #b8c2cc; border-radius: 10px; padding: 26px 16px; text-align: center; margin-top: 6px; background: #fbfcfd; }
.drop.over { border-color: var(--brand); background: var(--brand-tint); }
.drop input { display: block; margin: 10px auto 0; max-width: 100%; }
.drop .files { margin-top: 8px; color: var(--muted); font-size: 14px; }
button, .btn { display: inline-block; background: var(--brand-strong); color: var(--brand-ink); border: 0; border-radius: 7px; padding: 11px 20px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
button:disabled { opacity: .6; cursor: default; }
button.secondary, .btn.secondary { background: var(--flat-bg); color: var(--ink); }
.error { background: #fde8e8; color: #9b1c1c; border-radius: 7px; padding: 10px 12px; margin-bottom: 14px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 18px 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.stat .k { color: var(--muted); font-size: 13px; }
.stat .v { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat.hero { border-color: var(--brand); background: var(--good-bg); box-shadow: inset 4px 0 0 var(--brand); }
.stat.hero .v { color: var(--good); }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--brand-tint); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); white-space: nowrap; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.chip { display: inline-block; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.chip.save { background: var(--good-bg); color: var(--good); }
.chip.suggested { background: var(--warn-bg); color: var(--warn); }
.chip.competitive { background: var(--flat-bg); color: var(--flat); }
.chip.not_carried { background: var(--info-bg); color: var(--info); }
.savings { color: var(--good); font-weight: 700; }
.item-name { font-weight: 600; }
.sub { color: var(--muted); font-size: 13px; }
.internal { background: #fff8e6; }
.steps { list-style: none; padding: 0; margin: 18px 0 0; }
.steps li { padding: 6px 0 6px 28px; position: relative; color: var(--muted); }
.steps li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); }
.steps li.active { color: var(--ink); font-weight: 600; }
.steps li.active::before { border-color: var(--brand); border-top-color: transparent; animation: spin 1s linear infinite; }
.steps li.done { color: var(--good); }
.steps li.done::before { background: var(--good); border-color: var(--good); }
.spinner { width: 38px; height: 38px; border: 4px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
footer { color: var(--muted); font-size: 13px; padding: 24px 16px 40px; text-align: center; }
.sample-note { background: var(--warn-bg); color: var(--warn); border-radius: 7px; padding: 10px 12px; margin-bottom: 18px; }
@media print {
  header.site .muted, .no-print { display: none; }
  header.site { border-bottom: 0; }
  body { background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .table-wrap, .stat, .card { border-color: #ccc; }
}
