:root {
  --ink: #16191d;
  --ink-2: #3d434b;
  --muted: #6b7280;
  --line: #e4e2dd;
  --paper: #faf9f6;
  --card: #ffffff;
  --brand: #d9480f;
  --brand-ink: #ffffff;
  --brand-soft: #fff1e8;
  --warn: #f2b705;
  --ok: #1f7a4d;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 16px rgba(16, 24, 40, .06);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--paper); }
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
header.top { position: sticky; top: 0; z-index: 10; background: rgba(250, 249, 246, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: -.02em; text-decoration: none; font-size: 18px; }
.logo-mark { width: 26px; height: 26px; border-radius: 6px; background: repeating-linear-gradient(-45deg, var(--brand) 0 6px, var(--ink) 6px 12px); }
nav.links { margin-left: auto; display: flex; gap: 18px; align-items: center; font-size: 15px; }
nav.links a { text-decoration: none; color: var(--ink-2); }
nav.links a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 8px; padding: 11px 18px; font: inherit; font-weight: 650; cursor: pointer; text-decoration: none; background: var(--brand); color: var(--brand-ink); transition: filter .15s; white-space: nowrap; }
.btn:hover { filter: brightness(1.07); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.dark { background: var(--ink); }
.btn.small { padding: 7px 12px; font-size: 14px; }

.hero { padding: 64px 0 28px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); padding: 4px 10px; border-radius: 99px; }
h1 { font-size: clamp(34px, 5.2vw, 58px); line-height: 1.04; letter-spacing: -.035em; margin: 16px 0 16px; max-width: 900px; }
h1 em { font-style: normal; color: var(--brand); }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 720px; margin: 0 0 28px; }
.search { display: flex; gap: 10px; max-width: 720px; background: var(--card); padding: 8px; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 17px; padding: 8px 10px; background: transparent; }
.hint { color: var(--muted); font-size: 14px; margin: 10px 2px 0; }
.hint button { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-2); text-decoration: underline; cursor: pointer; }

.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 36px 0 0; max-width: 860px; }
.proof div { border-left: 3px solid var(--brand); padding: 2px 0 2px 12px; }
.proof b { display: block; font-size: 24px; letter-spacing: -.02em; }
.proof span { color: var(--muted); font-size: 14px; }

section { padding: 44px 0; }
h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.025em; line-height: 1.12; margin: 0 0 12px; }
.sub { color: var(--ink-2); max-width: 680px; margin: 0 0 24px; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 20px; }
#tool[hidden] { display: none; }
.tool-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.tool-head h3 { margin: 0; font-size: 20px; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--paper); border-radius: 99px; padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer; color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip .why { opacity: .65; font-size: 12px; margin-left: 4px; }
details.more { margin-top: 10px; }
details.more summary { cursor: pointer; color: var(--ink-2); font-size: 14px; }
details.more .chips { margin-top: 10px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: var(--card); padding: 8px 14px; font: inherit; font-size: 14px; cursor: pointer; color: var(--ink-2); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--brand); color: #fff; }
select, input[type=text], input[type=email], input[type=number] { font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 6px 0 18px; }
.tile { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--paper); cursor: pointer; text-align: left; font: inherit; color: inherit; }
.tile[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); background: var(--card); }
.tile .k { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.tile .v { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.tile .s { font-size: 13px; color: var(--ink-2); }

table.leads { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.leads th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-bottom: 1px solid var(--line); padding: 8px; }
table.leads td { border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; }
table.leads td.num { text-align: right; white-space: nowrap; }
table.leads .name { font-weight: 700; }
table.leads .meta { color: var(--muted); font-size: 13px; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: #f1efe9; color: var(--ink-2); margin: 2px 4px 0 0; }
.tag.serious { background: #fff4d6; color: #7a5b00; }
.tag.willful, .tag.repeat, .tag.fatal { background: #ffe3e0; color: #a2261a; }
tr.blur td { filter: blur(4.5px); user-select: none; pointer-events: none; }
.lock { text-align: center; padding: 22px; border: 2px dashed var(--line); border-radius: 12px; margin-top: 12px; background: var(--paper); }
.lock b { font-size: 18px; }
.table-scroll { overflow-x: auto; }
.empty { padding: 30px; text-align: center; color: var(--muted); }
.err { color: #a2261a; background: #ffe3e0; padding: 10px 12px; border-radius: 8px; margin: 10px 0; font-size: 15px; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.spinner.dark { border-color: rgba(0,0,0,.15); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.step .n { font-weight: 800; color: var(--brand); font-size: 14px; }
.step h3 { margin: 4px 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; }

.who { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.who div { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px; font-size: 15px; }
.who b { display: block; margin-bottom: 2px; }

.pricing { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; max-width: 860px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.plan.pro { border: 2px solid var(--brand); position: relative; }
.plan h3 { margin: 0 0 4px; }
.price { font-size: 40px; font-weight: 800; letter-spacing: -.03em; }
.price small { font-size: 16px; color: var(--muted); font-weight: 500; }
.strike { text-decoration: line-through; color: var(--muted); font-weight: 500; font-size: 18px; margin-left: 6px; }
.plan ul { padding-left: 18px; margin: 12px 0 18px; }
.plan li { margin: 5px 0; }
.ribbon { position: absolute; top: -12px; right: 16px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }

.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 0 0 10px; max-width: 860px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 10px 0 0; color: var(--ink-2); }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; margin-top: 30px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
footer a { color: var(--ink-2); }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 15px; z-index: 50; box-shadow: var(--shadow); }

@media (max-width: 820px) {
  nav.links a.hide-sm { display: none; }
  .steps, .who, .pricing { grid-template-columns: 1fr; }
  .who { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 40px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .search { flex-direction: column; }
  .proof { grid-template-columns: 1fr; gap: 10px; }
  .tiles { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .tile { padding: 8px; }
  .tile .v { font-size: 18px; }
  .tile .s { display: none; }
  .who { grid-template-columns: 1fr; }
  table.leads .hide-sm { display: none; }
  nav.links { gap: 12px; }
}
[hidden] { display: none !important; }

.act { white-space: nowrap; text-align: right; }
.act-btn { border: 1px solid var(--line); background: var(--card); border-radius: 7px; padding: 4px 8px; font: inherit; font-size: 13px; cursor: pointer; color: var(--ink-2); margin: 2px 0 2px 4px; }
.act-btn.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); font-weight: 650; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 18px; overflow-x: auto; }
.tabs button { border: 0; background: none; font: inherit; font-weight: 650; padding: 10px 14px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brand); }
.tabs .count { font-size: 12px; background: #f1efe9; border-radius: 99px; padding: 1px 7px; margin-left: 4px; color: var(--ink-2); }
.bell { position: relative; border: 1px solid var(--line); background: var(--card); border-radius: 8px; width: 38px; height: 34px; cursor: pointer; font-size: 17px; }
.bell .dot { position: absolute; top: -6px; right: -6px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 1px 6px; }
.drawer { position: fixed; top: 64px; right: 16px; width: min(420px, calc(100vw - 32px)); max-height: calc(100vh - 84px); overflow: auto; z-index: 40; }
.note-item { border-bottom: 1px solid var(--line); padding: 10px 0; font-size: 14.5px; }
.note-item:last-child { border-bottom: 0; }
.note-item .new { color: var(--brand); font-weight: 700; font-size: 12px; margin-right: 6px; }
.board { display: grid; grid-template-columns: repeat(5, minmax(200px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.col { background: #f3f1ec; border-radius: 12px; padding: 10px; min-height: 120px; }
.col h4 { margin: 2px 4px 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); display: flex; justify-content: space-between; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 8px; cursor: pointer; font-size: 14px; }
.card:hover { border-color: var(--ink-2); }
.card .t { font-weight: 700; line-height: 1.25; }
.card .m { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.card .n { color: var(--ink-2); font-size: 12.5px; margin-top: 6px; border-left: 2px solid var(--line); padding-left: 6px; }
.modal-bg { position: fixed; inset: 0; background: rgba(16, 24, 40, .45); z-index: 60; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow: auto; }
.modal { background: var(--card); border-radius: 14px; width: min(720px, 100%); padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal h3 { margin: 0 0 2px; font-size: 20px; }
.modal textarea, .modal input[type=text], .modal select { width: 100%; }
.modal textarea { font: inherit; font-size: 14.5px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.log { font-size: 13.5px; margin: 6px 0 0; padding-left: 18px; }
.watch-list { display: grid; gap: 8px; }
.watch-item { display: flex; justify-content: space-between; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.upgrade-bar { background: var(--ink); color: #fff; border-radius: 12px; padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
@media (max-width: 560px) { .act-btn { padding: 4px 6px; font-size: 12px; } .board { grid-template-columns: repeat(5, 78vw); } }

pre.snip { background: #16191d; color: #f3f1ec; padding: 14px 16px; padding-right: 70px; border-radius: 10px; font-size: 13px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
#plat button { margin: 0; }

.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); z-index: 30; overflow: hidden; text-align: left; }
.suggest button { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 9px 12px; font: inherit; cursor: pointer; color: var(--ink); }
.suggest button:hover { background: var(--paper); }

.sender-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 10px; }
.sender-grid input { width: 100%; margin-top: 3px; }
.sender-box { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.sender-box summary { cursor: pointer; }

@media (max-width: 560px) {
  table.leads td.act, table.leads th:last-child { position: sticky; right: 0; background: var(--card); box-shadow: -8px 0 8px -8px rgba(0,0,0,.15); }
  table.leads td.act .act-btn { display: block; margin: 2px 0; }
  .tabs { scrollbar-width: thin; }
  .tabs::after { content: ""; flex: 0 0 8px; }
}
.latest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.latest-card { display: flex; flex-direction: column; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: border-color .15s; }
.latest-card:hover { border-color: var(--brand); }
.latest-top { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.latest-date { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); }
.latest-name { font-weight: 800; font-size: 17px; line-height: 1.25; letter-spacing: -.01em; }
.latest-meta { color: var(--muted); font-size: 13.5px; }
.latest-hazard { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.latest-foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); font-size: 14px; }
.latest-foot b { font-size: 18px; }
@media (max-width: 820px) { .latest-grid { grid-template-columns: 1fr; } }
