:root {
  --bg: #ffffff;
  --bg-2: #fafafa;
  --panel: #ffffff;
  --panel-2: #f5f5f4;
  --line: #ececec;
  --line-2: #e2e2e2;
  --text: #18181b;
  --muted: #8a8a93;
  --accent: #0d9488;
  --accent-2: #0f766e;
  --accent-ink: #ffffff;
  --up: #16a34a;
  --down: #dc2626;
  --warn: #d97706;
  --info: #2563eb;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.05);
  --font: Inter, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: "Space Grotesk", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 300 14.5px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
strong, b { font-weight: 500; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  line-height: 1.25;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
}
code { background: var(--panel-2); padding: 1px 5px; border-radius: 4px; font-size: 0.88em; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-family: ui-monospace, 'JetBrains Mono', Menlo, monospace; font-size: 0.92em; }
.hidden { display: none !important; }

/* ---------- brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 600;
  font-size: 20px;
  color: var(--text);
  letter-spacing: -0.03em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 22px; height: 24px; margin-right: 9px; }
.brand span { color: var(--accent); font-weight: 500; }

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--text); border-radius: 6px; padding: 7px 14px;
  background: var(--text); color: #fff; font: inherit; font-weight: 400; font-size: 13.5px;
  cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s; white-space: nowrap;
}
.btn:hover { background: #3f3f46; border-color: #3f3f46; text-decoration: none; }
.btn:disabled { opacity: 0.5; cursor: progress; }
.btn.ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn.ghost:hover { border-color: var(--text); background: transparent; }
.btn.danger { background: transparent; border-color: rgba(220, 38, 38, 0.45); color: var(--down); }
.btn.danger:hover { background: var(--down); border-color: var(--down); color: #fff; }
.btn.small { padding: 4px 10px; font-size: 12.5px; border-radius: 5px; }
.btn.focus { box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.12); }
.btn.danger.focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15); }

label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 5px; }
input, select, textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line-2); color: var(--text);
  border-radius: 6px; padding: 8px 10px; font: inherit; outline: none; transition: border-color 0.15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--text); }
input[type='checkbox'] { width: auto; accent-color: var(--text); }
.field { margin-bottom: 14px; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: 14px; cursor: pointer; }
.check input { margin-top: 5px; }
.row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.error-box { border: 1px solid rgba(220, 38, 38, 0.3); color: var(--down); padding: 9px 12px; border-radius: 6px; margin-bottom: 14px; font-size: 13.5px; }

/* ---------- pills: dot + text, no fill ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 0; border: none; background: none;
  font-size: 12.5px; font-weight: 400; color: var(--muted); vertical-align: middle; white-space: nowrap;
}
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.pill.up, .pill.ok, .pill.verified { color: var(--up); }
.pill.down, .pill.defaced { color: var(--down); }
.pill.warn, .pill.suspicious { color: var(--warn); }
.pill.info { color: var(--info); }
.pill.down::before { animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }
.pill + .pill { margin-left: 10px; }

/* ---------- landing ---------- */
.nav { max-width: 1080px; margin: 0 auto; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; }
.nav .links { display: flex; gap: 26px; align-items: center; font-size: 13.5px; }
.nav .links a:not(.btn) { color: var(--muted); }
.nav .links a:not(.btn):hover { color: var(--text); text-decoration: none; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.hero { padding: 90px 0 80px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.hero h1 { font-size: 52px; font-weight: 300; letter-spacing: -0.04em; line-height: 1.08; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: 17px; color: #52525b; max-width: 520px; }
.hero .cta { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.eyebrow { display: inline-block; color: var(--muted); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; }
.mock { border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 20px; background: var(--bg); }
.mock .mail-head { display: flex; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 14px; }
.mock .mail-head img { width: 22px; }
.mock .subject { font-weight: 400; }
.mock .compare { margin: 14px 0; }
.mock .fake { height: 110px; border-radius: 6px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 12.5px; text-align: center; padding: 8px; }
.mock .fake.ok { background: #fbf7f0; color: #7c4a1e; }
.mock .fake.bad { background: #111; color: #4ade80; font-family: monospace; }
.features { padding: 70px 0 80px; border-top: 1px solid var(--line); }
.features h2 { font-size: 30px; font-weight: 300; letter-spacing: -0.03em; margin-bottom: 8px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.feature { padding: 34px 28px 34px 0; border-bottom: 1px solid var(--line); }
.feature:nth-child(3n + 2), .feature:nth-child(3n) { padding-left: 28px; border-left: 1px solid var(--line); }
.feature h3 { font-size: 16px; font-weight: 500; }
.feature p { color: var(--muted); margin: 0; font-size: 14px; }
.feature .icon { display: none; }
.section { padding: 70px 0; border-top: 1px solid var(--line); }
.section h2 { font-size: 30px; font-weight: 300; letter-spacing: -0.03em; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 32px; counter-reset: s; }
.steps-grid div { counter-increment: s; padding-top: 16px; border-top: 1px solid var(--text); }
.steps-grid div::before {
  content: '0' counter(s);
  display: block;
  color: var(--muted);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 38px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}
.steps-grid h3 { font-size: 15px; font-weight: 500; }
.steps-grid p { color: var(--muted); margin: 0; font-size: 13.5px; }
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.plan.featured { border-color: var(--text); }
.plan h3 { font-size: 15px; font-weight: 500; }
.plan .price { font-family: var(--font-heading); font-optical-sizing: auto; font-style: normal; font-size: 34px; font-weight: 300; margin: 6px 0 14px; letter-spacing: -0.03em; }
.plan .price small { font-size: 13px; color: var(--muted); }
.plan ul { list-style: none; padding: 0; color: #52525b; margin: 0 0 22px; font-size: 13.5px; }
.plan li { padding: 6px 0; border-bottom: 1px solid var(--line); }
footer.site { border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--muted); font-size: 13px; }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--bg-2); }
.auth .box { width: 100%; max-width: 360px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 32px; }
.auth .box .brand { margin-bottom: 26px; }
.auth .box h1 { font-size: 20px; }
.auth .box .btn { padding: 9px 14px; }
.oauth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.oauth-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 10px;
  border: 1px solid var(--line-2); border-radius: 6px; color: var(--text); font-size: 13.5px; transition: border-color 0.15s;
}
.oauth-btn:hover { border-color: var(--text); text-decoration: none; }
.oauth-btn.off { opacity: 0.4; cursor: not-allowed; }
.oauth-btn.off:hover { border-color: var(--line-2); }
.oauth-sep { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 18px 0 16px; }
.oauth-sep::before, .oauth-sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth .switch { margin-top: 18px; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- app shell ---------- */
.shell { display: grid; grid-template-columns: 200px 1fr; min-height: 100vh; }
.side { background: var(--bg-2); border-right: 1px solid var(--line); padding: 22px 12px; display: flex; flex-direction: column; gap: 1px; position: sticky; top: 0; height: 100vh; }
.side .brand { padding: 0 10px 24px; }
.side a.nav-item { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 5px; color: #52525b; font-size: 13.5px; }
.side a.nav-item:hover { color: var(--text); text-decoration: none; background: #f0f0f0; }
.side a.nav-item.active { color: var(--text); background: #ececec; font-weight: 400; }
.side a.nav-item .count { margin-left: auto; color: var(--down); font-size: 12px; }
.side .spacer { flex: 1; }
.side .me { font-size: 12px; color: var(--muted); padding: 12px 10px 0; border-top: 1px solid var(--line); line-height: 1.7; }
.main { padding: 32px 40px 64px; min-width: 0; max-width: 1240px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; font-weight: 300; margin: 0; letter-spacing: -0.03em; }
.page-head h1 .pill { margin-left: 10px; font-size: 13px; letter-spacing: 0; }
.page-head .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.crumb { color: var(--muted); font-size: 12.5px; margin-bottom: 6px; display: inline-block; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.card + .card { margin-top: 14px; }
.card h2 { font-size: 13px; font-weight: 500; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; color: var(--text); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-2 > .card + .card, .grid-3 > .card + .card { margin-top: 0; }
.stack > * + * { margin-top: 14px; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 26px; border: 1px solid var(--line); border-radius: var(--radius); }
.kpi { padding: 14px 20px; }
.kpi + .kpi { border-left: 1px solid var(--line); }
.kpi .label { color: var(--muted); font-size: 12px; }
.kpi .value { font-size: 24px; font-weight: 300; margin-top: 2px; letter-spacing: -0.03em; }
.kpi .value.up { color: var(--up); } .kpi .value.down { color: var(--down); } .kpi .value.warn { color: var(--warn); }

/* monitor list: rows, not cards */
.mon-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.mon {
  display: grid; grid-template-columns: 72px 1.6fr 0.9fr 0.9fr 0.9fr 140px; gap: 20px; align-items: center;
  border-bottom: 1px solid var(--line); padding: 12px 6px; color: var(--text); transition: background 0.12s;
}
.mon:hover { background: var(--bg-2); text-decoration: none; }
.mon .thumb { width: 72px; height: 45px; border-radius: 4px; background: var(--panel-2) center top/cover no-repeat; border: 1px solid var(--line); }
.mon .name { font-weight: 400; }
.mon .url { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mon .col-label { color: var(--muted); font-size: 11.5px; margin-bottom: 2px; }
.mon .col-val { font-size: 13.5px; }
.spark { display: flex; gap: 1.5px; align-items: flex-end; height: 20px; }
.spark i { flex: 1; min-width: 1.5px; max-width: 3px; background: #86d9a6; border-radius: 0.5px; }
.spark i.bad { background: var(--down); }

.empty { text-align: center; padding: 64px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); }
.empty h2 { color: var(--text); font-weight: 300; font-size: 20px; }

/* uptime bars */
.bars { display: flex; gap: 2px; height: 26px; align-items: stretch; }
.bars i { flex: 1; border-radius: 1px; background: #ededed; }
.bars i.up { background: #4ade80; }
.bars i.partial { background: #fbbf24; }
.bars i.down { background: #f87171; }
.bars-legend { display: flex; justify-content: space-between; color: var(--muted); font-size: 11.5px; margin-top: 6px; }

/* chart */
.chart { width: 100%; height: 150px; display: block; }
.chart .area { fill: rgba(13, 148, 136, 0.06); }
.chart .lineplot { fill: none; stroke: var(--accent); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .fail { fill: var(--down); }
.chart text { fill: var(--muted); font-size: 10px; }
.chart .grid { stroke: var(--line); stroke-dasharray: 2 4; vector-effect: non-scaling-stroke; }

/* tables */
table.list { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.list th { text-align: left; color: var(--muted); font-weight: 400; font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.list td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list tr:last-child td { border-bottom: none; }
table.list tr.clickable { cursor: pointer; }
table.list tr.clickable:hover td { background: var(--bg-2); }
table.list td.muted { width: 38%; }

/* integrity */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.compare figure { margin: 0; }
.compare figcaption { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.compare img { width: 100%; border-radius: 6px; border: 1px solid var(--line); display: block; background: var(--panel-2); }
.compare figure.noshot img { display: none; }
.compare figure.noshot::after { content: 'No screenshot available'; display: block; padding: 40px; text-align: center; border: 1px dashed var(--line-2); border-radius: 6px; color: var(--muted); font-size: 12.5px; }
.diff { font-family: ui-monospace, Menlo, monospace; font-size: 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 8px; max-height: 300px; overflow: auto; }
.diff div { white-space: pre-wrap; word-break: break-word; padding: 1px 4px; }
.diff .add { color: #15803d; background: #f0fdf4; }
.diff .del { color: #b91c1c; background: #fef2f2; }
.signals { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.signals li { font-size: 13px; padding: 6px 0 6px 12px; border-left: 2px solid var(--line-2); }
.signals li.critical { border-color: var(--down); }
.signals li.warn { border-color: var(--warn); }
.signals li.info { border-color: var(--info); }
.verdict-box { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 16px; }
.verdict-box .conf { font-size: 22px; font-weight: 300; }

.banner { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 20px; flex-wrap: wrap; border: 1px solid var(--line); border-left-width: 2px; }
.banner.danger { border-left-color: var(--down); background: #fffafa; }
.banner.warn { border-left-color: var(--warn); background: #fffdf7; }
.banner.info { border-left-color: var(--info); }

.tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tabs button { background: none; border: none; color: var(--muted); font: inherit; font-size: 13.5px; padding: 8px 0; cursor: pointer; border-bottom: 1px solid transparent; margin-bottom: -1px; }
.tabs button.active { color: var(--text); border-color: var(--text); }

.toast { position: fixed; bottom: 22px; right: 22px; background: var(--text); color: #fff; padding: 10px 14px; border-radius: 6px; box-shadow: var(--shadow); z-index: 50; max-width: 380px; font-size: 13px; animation: slide 0.2s ease-out; }
.toast.error { background: var(--down); }
@keyframes slide { from { transform: translateY(8px); opacity: 0; } }

.modal-back { position: fixed; inset: 0; background: rgba(250, 250, 250, 0.75); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 40; padding: 20px; }
.modal { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; width: 100%; max-width: 900px; max-height: 90vh; overflow: auto; padding: 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.modal-head h2 { font-size: 17px; font-weight: 400; }
.modal h3 { font-size: 13px !important; font-weight: 500; }
.x { background: none; border: none; color: var(--muted); font-size: 20px; font-weight: 200; cursor: pointer; }

.outbox { display: grid; grid-template-columns: 320px 1fr; gap: 16px; min-height: 560px; }
.outbox .items { display: flex; flex-direction: column; max-height: 75vh; overflow: auto; border-top: 1px solid var(--line); }
.outbox .item { text-align: left; background: none; border: none; border-bottom: 1px solid var(--line); color: var(--text); padding: 10px 8px; cursor: pointer; font: inherit; font-size: 13.5px; }
.outbox .item div:first-child { font-weight: 400 !important; }
.outbox .item:hover { background: var(--bg-2); }
.outbox .item.active { background: var(--panel-2); }
.outbox iframe { width: 100%; height: 75vh; border: 1px solid var(--line); border-radius: var(--radius); background: #f8fafc; }

.demo-modes { display: flex; flex-wrap: wrap; gap: 6px; }
.demo-modes .btn.active { background: var(--text); color: #fff; border-color: var(--text); }

/* ---------- status page ---------- */
.status-page { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.status-page h1 { font-weight: 300; letter-spacing: -0.03em; }
.status-hero { padding: 16px 0; margin: 18px 0 28px; display: flex; gap: 12px; align-items: center; font-size: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.status-hero .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12); }
.status-hero.bad .dot { background: var(--down); box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12); }
.svc { padding: 18px 0; border-bottom: 1px solid var(--line); }
.svc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 10px; flex-wrap: wrap; }
.svc-head .name { font-family: var(--font-heading); font-optical-sizing: auto; font-style: normal; font-size: 15px; }
.badges { display: flex; gap: 14px; flex-wrap: wrap; }
.badges .pill + .pill { margin-left: 0; }

/* ---------- respond page ---------- */
.respond { background: var(--bg-2); }
.respond-wrap { max-width: 860px; margin: 0 auto; padding: 40px 20px; }
.respond-wrap .brand { margin-bottom: 24px; }
.respond .card { padding: 28px 30px; }
.respond .card h1 { font-size: 28px; font-weight: 300; margin-top: 12px; letter-spacing: -0.03em; }
.respond .lead { font-size: 15.5px; }
.respond .evidence { color: #52525b; padding-left: 18px; }
.respond .compare { margin: 20px 0; }
.respond .answer { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.respond .notice { padding: 12px 14px; border-radius: 6px; background: var(--panel-2); margin-top: 18px; font-size: 13.5px; }
.respond .steps li { margin-bottom: 8px; }

@media (max-width: 1100px) {
  .mon { grid-template-columns: 64px 1.5fr 1fr 1fr; }
  .mon .hide-md { display: none; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpi:nth-child(3) { border-left: none; }
  .kpi:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .hero, .features-grid, .steps-grid, .pricing, .grid-2, .grid-3, .compare, .outbox { grid-template-columns: 1fr; }
  .feature, .feature:nth-child(3n + 2), .feature:nth-child(3n) { padding: 24px 0; border-left: none; }
  .hero { padding: 48px 0; }
  .hero h1 { font-size: 36px; }
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; border-right: none; border-bottom: 1px solid var(--line); }
  .side .spacer, .side .me { display: none; }
  .main { padding: 20px 16px; }
  .mon { grid-template-columns: 1fr 1fr; }
  .mon .thumb { display: none; }
  .nav .links a:not(.btn) { display: none; }
}
