/* Senderward design proposal (milestone 1). Static, no backend. */

/* Self-hosted fonts (SIL OFL 1.1, see fonts/). No third-party font requests. */
@font-face {
  font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/static/fonts/schibsted-grotesk-latin-400-700.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/static/fonts/ibm-plex-mono-latin-600.woff2") format("woff2");
}

:root {
  --paper: #f5f6f8;
  --surface: #ffffff;
  --ink: #18202b;
  --ink-2: #4a5566;
  --line: #dce0e6;
  --ward: #2f3fb8;
  --ward-ink: #ffffff;
  --ward-tint: #e8eaf8;
  --ok: #1d7444;
  --ok-bg: #e2f3e8;
  --warn: #855600;
  --warn-bg: #fbefd2;
  --bad: #b3261e;
  --bad-bg: #fbe3e0;
  --idle: #8b95a5;
  --idle-bg: #eceff3;
  --focus: #2f3fb8;
  --font: "Schibsted Grotesk", "Liberation Sans", Arial, sans-serif;
  --mono: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  --r-s: 4px;
  --r-m: 8px;
  --measure: 66ch;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121722;
    --surface: #1a2030;
    --ink: #e6e9ef;
    --ink-2: #a6afbe;
    --line: #2d3547;
    --ward: #9ca7ff;
    --ward-ink: #121722;
    --ward-tint: #242b4c;
    --ok: #74d39e;
    --ok-bg: #16301f;
    --warn: #f0c25a;
    --warn-bg: #33290f;
    --bad: #ff8d84;
    --bad-bg: #3b1a18;
    --idle: #6f7a8c;
    --idle-bg: #232a38;
    --focus: #9ca7ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121722;
  --surface: #1a2030;
  --ink: #e6e9ef;
  --ink-2: #a6afbe;
  --line: #2d3547;
  --ward: #9ca7ff;
  --ward-ink: #121722;
  --ward-tint: #242b4c;
  --ok: #74d39e;
  --ok-bg: #16301f;
  --warn: #f0c25a;
  --warn-bg: #33290f;
  --bad: #ff8d84;
  --bad-bg: #3b1a18;
  --idle: #6f7a8c;
  --idle-bg: #232a38;
  --focus: #9ca7ff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 var(--font);
}
a { color: var(--ward); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: var(--r-s); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.015em; margin: 0; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: 0.9em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: 1.2rem; letter-spacing: -0.03em;
}
.wordmark svg { width: 28px; height: 28px; flex: none; }
.nav { display: flex; gap: 20px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.theme-btn {
  border: 1px solid var(--line); background: transparent; color: var(--ink-2);
  border-radius: var(--r-s); width: 36px; height: 36px; cursor: pointer;
  display: inline-grid; place-items: center;
}
.theme-btn svg { width: 18px; height: 18px; }
@media (max-width: 560px) {
  .hide-s { display: none; }
  .nav { gap: 14px; }
}

/* Buttons and fields */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px; border-radius: var(--r-s);
  font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid var(--ward); background: var(--ward); color: var(--ward-ink);
}
.btn:hover { filter: brightness(1.08); }
.btn.quiet { background: transparent; color: var(--ward); }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 0.9rem; }
.field {
  min-height: 48px; padding: 0 14px; border: 1px solid var(--ink-2);
  border-radius: var(--r-s); background: var(--surface); color: var(--ink);
  font: 400 1.05rem var(--mono); width: 100%;
}
.field::placeholder { color: var(--idle); }

/* Category pills: colour plus shape plus text, never colour alone */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px 3px 8px; border-radius: 999px;
  font-weight: 600; font-size: 0.85rem; line-height: 1.3; white-space: nowrap;
}
.pill::before {
  content: ""; width: 10px; height: 10px; flex: none; background: currentColor;
}
.pill.protected { color: var(--ok); background: var(--ok-bg); }
.pill.protected::before { border-radius: 50%; }
.pill.partial, .pill.monitoring { color: var(--warn); background: var(--warn-bg); }
.pill.partial::before, .pill.monitoring::before { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.pill.unprotected, .pill.broken { color: var(--bad); background: var(--bad-bg); }
.pill.unprotected::before, .pill.broken::before { border-radius: 1px; transform: rotate(45deg) scale(0.85); }
.pill.idle { color: var(--ink-2); background: var(--idle-bg); }
.pill.idle::before { background: transparent; border: 2px solid currentColor; border-radius: 50%; width: 9px; height: 9px; }

/* The watch line: one mark per daily check, coloured by the domain's state that day
   (green Protected, yellow Partial/Monitoring, red Broken/Unprotected, grey no data).
   Events sit above the mark as icons: bell = alert sent, check = fixed. */
.watch { display: flex; gap: 3px; align-items: flex-end; padding: 24px 4px 4px 0; }
.watch i { position: relative; flex: 1 1 0; min-width: 3px; height: 28px; border-radius: 2px; }
.watch i.p { background: var(--ok); }
.watch i.m { background: var(--warn); }
.watch i.b { background: var(--bad); }
.watch i.none { background: var(--idle); opacity: 0.35; }
.watch i.today { outline: 2px solid var(--ink); outline-offset: 2px; }
.watch.small { padding-top: 22px; }
.watch.small i { height: 16px; }
.ev { width: 14px; height: 14px; }
.watch .ev { position: absolute; left: 50%; bottom: calc(100% + 7px); transform: translateX(-50%); }
.watch.small .ev { width: 12px; height: 12px; bottom: calc(100% + 6px); }
.ev.alert { color: var(--bad); }
.ev.fixed { color: var(--ok); }
.watch-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 14px 0 0; color: var(--ink-2); font-size: 0.85rem; }
.watch-legend li { display: inline-flex; align-items: center; gap: 6px; }
.watch-legend i { width: 10px; height: 14px; border-radius: 2px; display: inline-block; }
.watch-legend i.p { background: var(--ok); } .watch-legend i.m { background: var(--warn); } .watch-legend i.b { background: var(--bad); }
.watch-scale {
  display: flex; justify-content: space-between; color: var(--ink-2);
  font-size: 0.8rem; margin-top: 6px;
}

/* Page footer */
.site-foot { border-top: 1px solid var(--line); margin-top: 96px; padding: 32px 0 48px; color: var(--ink-2); font-size: 0.9rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.lp-badge { display: inline-block; line-height: 0; }
.lp-badge img { max-width: 100%; height: auto; }
.site-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-foot a { color: var(--ink-2); }

/* ---------- Home ---------- */
.hero { padding: 72px 0 40px; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.1rem); font-weight: 700; max-width: 15ch; letter-spacing: -0.035em; }
.hero .lede { font-size: 1.2rem; color: var(--ink-2); max-width: 46ch; margin-top: 20px; }
.check-form { display: flex; gap: 8px; margin-top: 32px; max-width: 560px; }
.check-form .btn { flex: none; }
.form-note { color: var(--ink-2); font-size: 0.9rem; margin-top: 10px; }
@media (max-width: 480px) { .check-form { flex-direction: column; } }

.watch-band { margin-top: 64px; padding: 28px 0 0; border-top: 1px solid var(--line); }
.watch-band .head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-bottom: 18px; }
.watch-band .head p { color: var(--ink-2); max-width: 52ch; }
.watch-band .head strong { color: var(--ink); }
.watch-callout {
  display: flex; gap: 10px; align-items: baseline; margin-top: 14px;
  font-size: 0.95rem; justify-content: flex-end; text-align: right;
}
.watch-callout b { color: var(--bad); }
.watch-callout b.ok { color: var(--ok); }
@media (max-width: 560px) { .watch-callout { justify-content: flex-start; text-align: left; } }

.why .section-title { margin-top: 88px; }
.reasons { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 28px; }
@media (min-width: 900px) { .reasons { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.reasons li { border-top: 2px solid var(--ink); padding-top: 14px; }
.reasons h3 { font-size: 1.05rem; }
.reasons p { color: var(--ink-2); margin-top: 6px; font-size: 0.95rem; max-width: 46ch; }

.split { display: grid; gap: 40px; margin-top: 88px; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } }
.split h2 { font-size: 1.9rem; }
.split .intro p { color: var(--ink-2); margin-top: 14px; max-width: 42ch; }

.snapshot { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); }
.snapshot header {
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.snapshot header .domain { font: 600 1.1rem var(--mono); }
.snapshot header small { display: block; color: var(--ink-2); font-size: 0.85rem; font-family: var(--font); font-weight: 400; }
.findings { list-style: none; margin: 0; padding: 0; }
.findings li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 4px 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.findings .rec { font-weight: 600; }
.findings .what { grid-column: 2; }
.findings .fix { grid-column: 2; color: var(--ink-2); font-size: 0.92rem; }
.findings .state { grid-column: 1; grid-row: 2; font-size: 0.85rem; font-weight: 600; }
.state.ok { color: var(--ok); } .state.warn { color: var(--warn); } .state.bad { color: var(--bad); }
@media (max-width: 480px) {
  .findings li { grid-template-columns: 1fr; }
  .findings .what, .findings .fix, .findings .state { grid-column: 1; grid-row: auto; }
}
.snapshot footer {
  display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between;
  padding: 18px 20px; background: var(--ward-tint); border-radius: 0 0 var(--r-m) var(--r-m);
}
.snapshot footer p { max-width: 38ch; }

.watched { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 0; }
.watched li { padding: 12px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 7rem 1fr; gap: 12px; }
.watched li b { font-weight: 600; }
.watched li span { color: var(--ink-2); }
@media (max-width: 480px) { .watched li { grid-template-columns: 1fr; gap: 2px; } }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 28px 0 0; display: grid; gap: 28px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 14px; }
.steps li::before { content: counter(s); font-weight: 700; font-size: 1.6rem; display: block; color: var(--ward); }
.steps h3 { font-size: 1.05rem; margin-top: 6px; }
.steps p { color: var(--ink-2); margin-top: 6px; font-size: 0.95rem; }
.section-title { font-size: 1.9rem; margin-top: 96px; }

/* ---------- Pricing ---------- */
.price-hero { padding: 64px 0 24px; }
.price-hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); max-width: 18ch; }
.price-hero p { color: var(--ink-2); margin-top: 14px; font-size: 1.1rem; max-width: 50ch; }
.plan {
  margin-top: 36px; display: grid; gap: 32px; background: var(--surface);
  border: 1px solid var(--line); border-left: 6px solid var(--ward); border-radius: var(--r-m); padding: 28px;
}
@media (min-width: 900px) { .plan { grid-template-columns: 1fr 1.2fr; padding: 40px; gap: 56px; } }
.plan .name { font-weight: 600; color: var(--ward); }
.plan .amount { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; }
.plan .amount b { font-size: 4.2rem; line-height: 1; letter-spacing: -0.05em; }
.plan .amount span { color: var(--ink-2); }
.plan .lock { margin-top: 16px; padding: 12px 14px; background: var(--ward-tint); border-radius: var(--r-s); font-size: 0.95rem; }
.plan .cta { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.plan .cta small { color: var(--ink-2); }
.includes { list-style: none; padding: 0; margin: 0; }
.includes li { padding: 11px 0 11px 30px; border-bottom: 1px solid var(--line); position: relative; }
.includes li::before {
  content: ""; position: absolute; left: 4px; top: 18px; width: 12px; height: 7px;
  border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg);
}
.includes li.soon::before { border-color: var(--ward); }
.includes .tag { font-size: 0.8rem; font-weight: 600; color: var(--ward); margin-left: 6px; }
.faq { margin-top: 72px; max-width: 760px; }
.faq h2 { font-size: 1.7rem; margin-bottom: 12px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ward); font-weight: 700; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 18px; color: var(--ink-2); max-width: var(--measure); }

/* ---------- Dashboard ---------- */
.app-head .wrap { gap: 16px; }
.account { margin-left: auto; display: flex; align-items: center; gap: 14px; color: var(--ink-2); font-size: 0.9rem; }
.dash { padding-top: 36px; }
.dash-top { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: end; justify-content: space-between; }
.dash-top h1 { font-size: 1.9rem; }
.dash-top p { color: var(--ink-2); margin-top: 6px; }
.domains { margin-top: 24px; display: grid; gap: 12px; }
.domain-row {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
  display: grid; gap: 14px 24px; padding: 18px 20px;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.6fr) auto; align-items: center;
}
.domain-row.selected { border-color: var(--ward); box-shadow: inset 4px 0 0 var(--ward); }
.domain-row .name { font: 600 1.05rem var(--mono); overflow-wrap: anywhere; }
.domain-row .meta { color: var(--ink-2); font-size: 0.88rem; margin-top: 4px; }
.domain-row .status { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.domain-row .act { display: flex; gap: 8px; justify-content: flex-end; }
@media (max-width: 760px) {
  .domain-row { grid-template-columns: 1fr; }
  .domain-row .act { justify-content: flex-start; }
}
.verify-box {
  grid-column: 1 / -1; background: var(--warn-bg); border-radius: var(--r-s); padding: 14px 16px;
  display: grid; gap: 8px;
}
.verify-box p { font-size: 0.95rem; }
.record { font: 0.88rem/1.5 var(--mono); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); padding: 10px 12px; overflow-x: auto; white-space: nowrap; }
.record span { color: var(--ink-2); }
.record b { font-weight: 400; margin-right: 16px; }
@media (max-width: 560px) {
  .record { white-space: normal; overflow-wrap: anywhere; }
  .record b { display: block; margin: 0 0 4px; }
}

.detail { display: grid; gap: 32px; margin-top: 40px; }
@media (min-width: 900px) { .detail { grid-template-columns: 1.5fr 1fr; gap: 48px; } }
.detail h2 { font-size: 1.35rem; }
.detail h2 .mono { font-weight: 600; }
.timeline { list-style: none; margin: 18px 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 26px 34px; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--idle);
}
.timeline li.bad::before { border-color: var(--bad); background: var(--bad); }
.timeline li.ok::before { border-color: var(--ok); }
.timeline li.info::before { border-color: var(--ward); }
.timeline time { color: var(--ink-2); font-size: 0.85rem; }
.timeline h3 { font-size: 1.02rem; font-weight: 600; margin-top: 2px; line-height: 1.35; }
.timeline p { color: var(--ink-2); font-size: 0.93rem; margin-top: 4px; max-width: 60ch; }
.timeline .diff { font: 0.85rem/1.5 var(--mono); margin-top: 8px; display: grid; gap: 2px; }
.timeline .diff .was { color: var(--ink-2); text-decoration: line-through; }
.next-step { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--bad); border-radius: var(--r-m); padding: 20px; }
.next-step h2 { font-size: 1.15rem; }
.next-step p { margin-top: 10px; color: var(--ink-2); font-size: 0.95rem; }
.next-step ol { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: 0.95rem; }
.next-step .btn { margin-top: 16px; }
.next-step + .next-step { margin-top: 16px; border-top-color: var(--line); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- App: auth and empty states ---------- */
.auth { max-width: 440px; padding: 64px 0 0; }
.auth h1 { font-size: 2rem; }
.auth-lede { color: var(--ink-2); margin-top: 10px; }
.auth-form { display: grid; gap: 8px; margin-top: 28px; }
.auth-form label { font-weight: 600; margin-top: 10px; }
.auth-form .btn { margin-top: 18px; justify-self: start; }
.auth-form .field { font-family: var(--font); }
.field-note { color: var(--ink-2); font-size: 0.9rem; }
.form-error { margin-top: 18px; padding: 12px 14px; border-radius: var(--r-s); background: var(--bad-bg); color: var(--bad); font-weight: 600; }
.auth-alt { margin-top: 24px; color: var(--ink-2); }
.auth .btn { margin-top: 24px; }
.auth-split { display: grid; gap: 32px; }
.error-code { margin: 0; color: var(--ink-2); font-weight: 600; letter-spacing: 0.04em; }
.error-page h1 { margin-top: 6px; }
.error-links { display: flex; flex-wrap: wrap; gap: 12px; }
.auth-side { align-self: start; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); }
.auth-side h2 { font-size: 1.1rem; margin: 0; }
.get-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.get-list li { position: relative; padding-left: 26px; color: var(--ink-2); }
.get-list li::before { content: ""; position: absolute; left: 2px; top: 0.35em; width: 12px; height: 7px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
.get-list strong { color: var(--ink); }
.get-note { margin: 16px 0 0; color: var(--ink-2); font-size: 0.9rem; }
.get-note strong { color: var(--ink); }
.auth-domain { margin-top: 10px; padding: 8px 12px; border-radius: var(--r-s); background: var(--surface); border: 1px solid var(--line); }
@media (min-width: 860px) {
  .auth-split { grid-template-columns: minmax(0, 440px) minmax(0, 340px); column-gap: 64px; }
  .auth-side { margin-top: 64px; }
}
.domain-row .confirming { margin: 8px 0 0; padding: 8px 12px; border-radius: var(--r-s); background: var(--warn-bg); color: var(--ink); font-size: 0.92rem; }
.inline-form { display: inline; margin: 0; }
.link-btn { background: none; border: 0; padding: 0; font: 500 1rem var(--font); color: var(--ink-2); cursor: pointer; }
.link-btn:hover { color: var(--ink); text-decoration: underline; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.empty { margin-top: 28px; padding: 32px; border: 1px dashed var(--line); border-radius: var(--r-m); background: var(--surface); }
.empty h2 { font-size: 1.25rem; }
.empty p { color: var(--ink-2); margin-top: 8px; max-width: 52ch; }

/* ---------- Simple content pages (/about) ---------- */
.prose-page { max-width: 640px; padding: 64px 0 0; }
.prose-page h1 { font-size: 2.2rem; }
.prose-page h2 { font-size: 1.25rem; margin-top: 40px; }
.prose-page p { margin-top: 10px; max-width: var(--measure); }
.facts { display: grid; grid-template-columns: 7rem 1fr; gap: 10px 16px; margin: 14px 0 0; }
.facts dt { color: var(--ink-2); font-weight: 600; }
.facts dd { margin: 0; }

/* ---------- App: domains ---------- */
.add-domain { margin-top: 24px; display: grid; gap: 8px; max-width: 640px; }
.add-domain label { font-weight: 600; }
.add-row { display: flex; gap: 8px; }
.add-row .btn { flex: none; }
@media (max-width: 480px) { .add-row { flex-direction: column; } }
.notice { margin-top: 12px; padding: 10px 14px; border-radius: var(--r-s); background: var(--idle-bg); color: var(--ink); grid-column: 1 / -1; }
.notice.ok { background: var(--ok-bg); color: var(--ok); font-weight: 600; }
.domain-row .act { flex-wrap: wrap; }

/* ---------- App: monitoring ---------- */
.watch i.c { background: var(--idle); opacity: 0.75; }
.domain-events { grid-column: 1 / -1; list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.domain-events li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 2px 12px; font-size: 0.92rem; }
.domain-events time { color: var(--ink-2); }
.domain-events .k { font-weight: 600; }
.domain-events .k.worsened { color: var(--bad); }
.domain-events .k.improved, .domain-events .k.resolved { color: var(--ok); }
.domain-events .t { grid-column: 2; color: var(--ink-2); }
.domain-events .t.change { color: var(--ink); }
@media (max-width: 560px) { .domain-events li { grid-template-columns: 1fr; } .domain-events .t { grid-column: 1; } }
.settings { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); max-width: 640px; }
.settings h2 { font-size: 1.15rem; }
.settings p { color: var(--ink-2); margin-top: 6px; }
.settings form { margin-top: 12px; }

/* ---------- Privacy: cookie table ---------- */
.prose-page.wide { max-width: 860px; }
.cookie-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 0.92rem; }
.cookie-table th, .cookie-table td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.cookie-table th { color: var(--ink-2); font-weight: 600; }
@media (max-width: 640px) {
  .cookie-table thead { display: none; }
  .cookie-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .cookie-table td { display: block; border: 0; padding: 2px 0; }
}

/* Lookproof categories where the domain itself is gone or not answering: as bad as Broken */
.pill.nxdomain, .pill.lame_delegation { color: var(--bad); background: var(--bad-bg); }
.pill.nxdomain::before, .pill.lame_delegation::before { border-radius: 1px; transform: rotate(45deg) scale(0.85); }

/* TXT record as three fields, each with its own Copy button */
.record-fields { margin: 12px 0 0; display: grid; gap: 8px; }
.record-fields .rf { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 4px 12px; align-items: baseline;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); padding: 8px 10px 8px 12px; }
.record-fields dt { color: var(--ink-2); font-size: 0.88rem; }
.record-fields dd { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; min-width: 0; }
.rf-val { font: 0.95rem/1.5 var(--mono); overflow-wrap: anywhere; word-break: break-all; flex: 1 1 6rem; min-width: 0; background: none; padding: 0; }
.record-fields .copy { flex: none; margin-left: auto; }
.record-fields .copy.copied { color: var(--ok); }
.rf-note { flex-basis: 100%; color: var(--ink-2); font-size: 0.82rem; overflow-wrap: anywhere; }
.rf-note code { font-family: var(--mono); }
.record-check { margin-top: 12px; }
@media (max-width: 560px) {
  .record-fields .rf { grid-template-columns: 1fr; }
}

/* Verified: blue with a tick, apart from the grey "Not verified" and the green category pills */
.pill.verified { color: var(--ward); background: var(--ward-tint); }
.pill.verified::before { display: none; }
.pill.verified svg { width: 12px; height: 12px; flex: none; }

/* Dashboard timeline: each day is a button with its label (hover, focus, tap, screen reader) */
.watch .d { all: unset; box-sizing: border-box; position: relative; flex: 1 1 0; min-width: 3px; height: 28px; border-radius: 2px; cursor: default; }
.watch.small .d { height: 16px; }
.watch .d.p { background: var(--ok); }
.watch .d.m { background: var(--warn); }
.watch .d.b { background: var(--bad); }
.watch .d.c { background: var(--idle); }
.watch .d.none { background: color-mix(in srgb, var(--idle) 35%, transparent); }
.watch .d.today { outline: 2px solid var(--ink); outline-offset: 2px; }
.watch .d:focus-visible { outline: 3px solid var(--ward); outline-offset: 3px; z-index: 1; }
.watch .d.active:not(.today) { box-shadow: 0 0 0 2px var(--ink-2); }
.ev.changed { color: var(--ink-2); }
.watch .ev.changed { width: 8px; height: 8px; }
.watch-tip { margin: 6px 0 0; min-height: 1.4em; color: var(--ink-2); font-size: 0.85rem; overflow-wrap: anywhere; }
.watch-legend i.none { background: color-mix(in srgb, var(--idle) 35%, transparent); }
.watch-legend i.c { background: var(--idle); }
.watch-legend .ev { width: 12px; height: 12px; }
.dash-legend { margin-top: 12px; }

/* Dashboard row: the timeline has its own column (180-340 px) and never runs into the buttons;
   below 760 px it sits under the domain. "Not checked" days are light grey, filled. */
:root { --day-none: #d3d8df; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --day-none: #3a4253; } }
:root[data-theme="dark"] { --day-none: #3a4253; }
.domain-row { grid-template-columns: minmax(0, 1fr) minmax(180px, 340px) auto; }
@media (max-width: 760px) { .domain-row { grid-template-columns: minmax(0, 1fr); } }
.watch-cell { position: relative; min-width: 0; }
.watch-cell .watch { padding-right: 4px; }
.watch .d.none, .watch-legend i.none { background: var(--day-none); opacity: 1; }
.watch-tip {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 3; margin: 6px 0 0; min-height: 0;
  padding: 8px 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--r-s); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12); font-size: 0.88rem; line-height: 1.45;
}
.watch-tip[hidden] { display: none; }
.dash-legend { margin-top: 18px; gap: 10px 22px; }
.dash-legend li { gap: 8px; }
.dash-legend i { width: 12px; height: 14px; flex: none; }
.dash-legend svg { flex: none; }
/* Narrow screens: the label pushes the content down instead of covering the buttons below. */
@media (max-width: 760px) { .watch-tip { position: static; box-shadow: none; } }

/* Lookproof's findings under each domain: errors and warnings shown, info folded as suggestions */
.domain-findings { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 10px; }
.finding-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
/* Severity as a small badge on its own line above the title (same shape as .pill), so a long
   label never runs into the title at any width. */
.finding { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; font-size: 0.92rem; }
.finding > * { grid-column: 1; }
.finding .sev {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 9px 2px 7px; border-radius: 999px; font-weight: 600; font-size: 0.8rem; line-height: 1.3; white-space: nowrap;
}
.finding .sev::before { content: ""; width: 9px; height: 9px; flex: none; background: currentColor; }
.finding.error .sev { color: var(--bad); background: var(--bad-bg); }
.finding.error .sev::before { border-radius: 1px; transform: rotate(45deg) scale(0.85); }
.finding.warning .sev { color: var(--warn); background: var(--warn-bg); }
.finding.warning .sev::before { clip-path: polygon(50% 0, 100% 100%, 0 100%); width: 10px; }
.finding.recommended .sev { color: var(--ward); background: var(--ward-tint); }
.finding.recommended .sev::before { border-radius: 50%; }
.finding.info .sev { color: var(--ink-2); background: var(--idle-bg); }
.finding.info .sev::before { background: transparent; border: 2px solid currentColor; border-radius: 50%; width: 8px; height: 8px; }
.finding .ft { font-weight: 600; overflow-wrap: anywhere; }
.finding .fx { color: var(--ink-2); overflow-wrap: anywhere; }
.finding .fixlink { grid-column: 2; grid-row: 1; white-space: nowrap; font-weight: 600; }
.suggestions summary { cursor: pointer; color: var(--ward); font-weight: 600; font-size: 0.92rem; width: fit-content; }
.suggestions[open] summary { margin-bottom: 10px; }
@media (max-width: 560px) {
  .finding { grid-template-columns: minmax(0, 1fr); }
  .finding .fixlink { grid-column: 1; grid-row: auto; }
}

/* Plan panel (Stripe): trial, plan size, domains outside the plan */
.plan { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--ward); border-radius: var(--r-m); padding: 16px 20px; }
.plan.warn { border-left-color: var(--bad); }
.plan > div:first-child { flex: 1 1 22rem; min-width: 0; }
.plan h2 { font-size: 1.05rem; }
.plan p { color: var(--ink-2); margin-top: 4px; font-size: 0.92rem; max-width: 62ch; }
.plan .plan-more { color: var(--ink); }
.plan-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Inherited DMARC policy under the badges; lock-down records in a finding */
.domain-row .protection { margin-top: 6px; color: var(--ink-2); font-size: 0.9rem; }
.lock-records { margin: 8px 0 0; display: grid; gap: 14px; }
.lock-record .lock-label { font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.lock-record .lock-note { font-size: 0.85rem; margin-top: 4px; }
.pill.warn { color: var(--warn); background: var(--warn-bg); }
.pill.warn::before { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.domain-row .not-monitored { color: var(--warn); }
.finding.recommended .sev { color: var(--ward); }
.finding.recommended .sev::before { border-radius: 50%; width: 8px; height: 8px; }

/* Remove asks first */
.confirm-remove { grid-column: 1 / -1; margin-top: 12px; padding: 12px 16px; border: 1px solid var(--bad); border-left-width: 4px; border-radius: var(--r-m); background: var(--bad-bg); }
.confirm-remove p { max-width: 70ch; }
.confirm-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: var(--ward-ink); }

/* Check again (app/recheck.py) */
.recheck-cell { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
@media (max-width: 760px) { .recheck-cell { align-items: flex-start; } }
.recheck-when { color: var(--ink-2); font-size: 0.85rem; max-width: 16rem; text-align: right; }
@media (max-width: 760px) { .recheck-when { text-align: left; } }
.recheck { grid-column: 1 / -1; border-top: 1px solid var(--line); padding: 12px 0 0; }
.recheck-head { margin: 0 0 8px; color: var(--ink-2); font-size: 0.92rem; }
.recheck-head strong { color: var(--ink); margin-right: 4px; }
.recheck-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.recheck-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 0.92rem; }
.recheck-list .rn { flex-basis: 100%; color: var(--ink-2); }
.recheck-none { margin: 0; color: var(--ink-2); font-size: 0.92rem; }
.btn[disabled], .btn[disabled]:hover { opacity: 0.5; cursor: not-allowed; }

/* ---------- Legal pages (drafts) ---------- */
.legal h3 { font-size: 1.05rem; margin-top: 24px; }
.legal ul, .legal ol { margin-top: 10px; padding-left: 1.3em; max-width: var(--measure); }
.legal li + li { margin-top: 6px; }
.legal .draft-note { margin-top: 16px; padding: 10px 14px; border-left: 4px solid var(--warn); background: var(--warn-bg); border-radius: var(--r-m); }
.legal .tbd, .legal .tue { font-weight: 600; color: var(--warn); background: var(--warn-bg); padding: 0 4px; border-radius: 4px; }
.legal .slot { margin-top: 10px; padding: 10px 14px; border: 1px dashed var(--line); border-radius: var(--r-m); color: var(--ink-2); font-style: italic; }
.legal td, .legal code { overflow-wrap: anywhere; }
.agree-note { font-size: 0.85rem; color: var(--ink-2); margin-top: 8px; }

/* Legal pages while they still have [TUE]/[TBD] markers */
.draft-banner { margin: 16px 0 0; padding: 10px 14px; border-left: 4px solid var(--warn); background: var(--warn-bg); border-radius: var(--r-m); font-weight: 600; }

/* Open points on public pages (about) */
.prose-page .tue { font-weight: 600; color: var(--warn); background: var(--warn-bg); padding: 0 4px; border-radius: 4px; }

/* Signup: required business + Terms confirmation */
.auth-form .accept { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-weight: 400; }
.auth-form .accept input { margin-top: 0.3em; flex: none; }
.auth-form .accept input { margin-top: 4px; flex: none; width: 18px; height: 18px; }

/* DPA: standard clauses */
.legal .clause { margin-top: 12px; }
.legal .clause .cn { font-weight: 600; margin-right: 4px; }
.legal .clause-cont { margin-top: 8px; }
.legal ol.letters { list-style: lower-alpha; }
.legal .source { margin-top: 40px; font-size: 0.85rem; color: var(--ink-2); overflow-wrap: anywhere; }

/* Legal pages: publication date */
.legal .updated { margin-top: 12px; color: var(--ink-2); font-size: 0.92rem; }

/* ---------- DMARC reports (behind SW_DMARC_REPORTS) ---------- */
.dmarc .back { margin: 0 0 8px; }
.dmarc h2 { margin-top: 32px; }
.dmarc-summary { margin: 20px 0 0; }
.dmarc-table td small { color: var(--ink-2); }
.dmarc-ips { color: var(--ink-2); font-size: 0.9rem; }
.dmarc-line a { font-weight: 600; }
/* Stats on one line on desktop (each part never breaks inside); the status chip follows it or wraps below. */
.dmarc-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.dmarc-line .nw { white-space: nowrap; }
.dmarc-line .pill { font-size: 0.78rem; padding: 1px 9px 1px 7px; }
.dmarc-line .pill::before { width: 8px; height: 8px; }
/* /pricing: agency note under the plan */
.plan-note { margin-top: 16px; color: var(--ink-2); }

/* ---------- Monitoring pages (/dmarc-monitoring, /spf-monitoring, /dkim-monitoring) ---------- */
.crumbs { display: flex; gap: 8px; padding-top: 28px; font-size: 0.88rem; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); }
.mon-hero { padding-top: 40px; }
.mon-hero h1 { max-width: 20ch; font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
.mon-hero .lede { max-width: 54ch; }
.mon-section { margin-top: 88px; }
.mon-section h2 { font-size: 1.9rem; }
.mon-intro { color: var(--ink-2); margin-top: 14px; max-width: 60ch; }
.cases { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 760px) { .cases { grid-template-columns: 1fr 1fr; } }
.case { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.case h3 { font-size: 1.1rem; }
.case p { color: var(--ink-2); }
.case p.caught { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink); font-size: 0.92rem; font-weight: 600; }
.mail-mock { margin: 0; }
.mail-card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--bad); border-radius: var(--r-m); padding: 24px 26px; display: grid; gap: 10px; }
.mail-card p { font-size: 0.95rem; }
.mail-meta { color: var(--ink-2); font-size: 0.85rem; }
.mail-card .mail-title { font-size: 1.35rem; font-weight: 700; line-height: 1.25; }
.mail-domain { font-family: var(--mono); color: var(--ink-2); margin-top: -6px; }
.mail-link { color: var(--ward); text-decoration: underline; text-underline-offset: 0.18em; }
.mail-btn { justify-self: start; margin-top: 8px; background: var(--ward); color: var(--ward-ink); font-weight: 700; padding: 10px 16px; border-radius: var(--r-s); }
.mail-mock figcaption { color: var(--ink-2); font-size: 0.85rem; margin-top: 10px; }
.reqs { display: grid; gap: 14px; margin-top: 20px; max-width: var(--measure); }
.reqs p { color: var(--ink-2); }
.reqs strong { color: var(--ink); }
.price-strip { margin-top: 88px; padding: 28px; background: var(--ward-tint); border-radius: var(--r-m); display: grid; gap: 8px 32px; align-items: center; }
@media (min-width: 900px) { .price-strip { grid-template-columns: 1fr auto; } }
.price-strip h2 { font-size: 1.6rem; }
.price-strip p { margin-top: 8px; max-width: 58ch; }
.price-strip .hero-cta { margin-top: 12px; }
.related { margin-top: 64px; }
.related h2 { font-size: 1.2rem; }
.related ul { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.related a { font-weight: 600; }

/* Free snapshot form on the home page (app/routes/snapshot.py) */
.snapshot-form { margin-top: 24px; }
.snapshot-form .check-form { margin-top: 0; }
.snapshot-form .field { flex: 1; min-width: 0; }
.snapshot-turnstile { margin-top: 10px; }
.hero-check { margin-top: 32px; max-width: 560px; }
.hero-check + .hero-cta { margin-top: 16px; }
.hero-trust { margin-top: 14px; }
.notice.warn { background: var(--warn-bg); color: var(--ink); }

/* Focus ring only for keyboard focus (:focus-visible), never after a mouse click. */
:focus:not(:focus-visible) { outline: none; }

/* ---------- Guides (/guides, app/guides.py) ---------- */
.guide { max-width: 720px; padding-top: 32px; }
.guide h1 { font-size: clamp(1.9rem, 4.4vw, 2.6rem); }
.guide .lede { margin-top: 16px; max-width: var(--measure); }
.guide h2 { font-size: 1.4rem; margin-top: 44px; }
.guide h3 { font-size: 1.08rem; margin-top: 28px; }
.guide p, .guide ul, .guide ol { margin-top: 12px; max-width: var(--measure); }
.guide ul, .guide ol { padding-left: 1.3em; }
.guide li + li { margin-top: 6px; }
.guide code { overflow-wrap: anywhere; }
.guide pre { margin-top: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow-x: auto; font-size: 0.86rem; line-height: 1.5; }
.guide pre code { font-size: inherit; overflow-wrap: normal; }
.guide .table-wrap { margin-top: 14px; overflow-x: auto; }
.guide table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 0.92rem; }
.guide td:first-child code { white-space: nowrap; overflow-wrap: normal; }
.guide th, .guide td { text-align: left; vertical-align: top; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); }
.guide th { color: var(--ink-2); font-weight: 600; }
.guide-date { color: var(--ink-2); font-size: 0.9rem; margin-top: 10px; }
.guide-check { margin-top: 48px; padding: 22px 24px; background: var(--ward-tint); border-radius: var(--r-m); }
.guide-check .check-form { margin-top: 10px; }
.guide-check .field { flex: 1; min-width: 0; }
.guide-check p.guide-check-title { margin-top: 0; }
.guide-close { margin-top: 24px; }
.guide-sources { margin-top: 40px; font-size: 0.9rem; }
.guide-sources h2 { font-size: 1.1rem; margin-top: 0; }
.guide-sources a { overflow-wrap: anywhere; }
.guide-list { list-style: none; padding: 0 !important; margin-top: 28px; }
.guide-list li { padding: 18px 0; border-bottom: 1px solid var(--line); margin: 0; }
.guide-list a { font-weight: 700; font-size: 1.12rem; }
.guide-list p { margin-top: 6px; color: var(--ink-2); }

/* ---------- Home: alert example, pricing, FAQ, closing CTA ---------- */
@media (min-width: 900px) { .steps.three { grid-template-columns: repeat(3, 1fr); } }
.how-more { margin-top: 20px; }
.mail-tag { justify-self: start; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ward); background: var(--ward-tint); padding: 3px 8px; border-radius: var(--r-s); }
.home-plan { margin-top: 96px; }
.home-plan h2.name { font-size: 1rem; }
.home-plan .plan-terms { margin-top: 10px; color: var(--ink-2); }
.closing { margin-top: 96px; }
.closing .hero-cta { margin-top: 0; }

/* Home page: four reasons (2 x 2, then one row), the positioning line under the lede, and the
   "Coming soon" tag in "What we check every day" (same look as .includes .tag). */
@media (min-width: 640px) { .reasons { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
@media (min-width: 1100px) { .reasons { grid-template-columns: repeat(4, 1fr); } }
.hero .hero-for { color: var(--ink-2); max-width: 56ch; margin-top: 12px; }
.watched .tag { font-size: 0.8rem; font-weight: 600; color: var(--ward); margin-left: 4px; white-space: nowrap; }
/* The hero headline names three providers: 20ch keeps it to two lines from 768px up (checked at
   768-1920px with Playwright, 2026-11-18). */
.hero h1 { max-width: 20ch; }
