:root {
  --ink: #07131c;
  --ink-mid: #0e2433;
  --mist: #d7e4ef;
  --mist-dim: rgba(215, 228, 239, 0.72);
  --mist-soft: rgba(215, 228, 239, 0.14);
  --dawn: #e3a14a;
  --dawn-soft: #c9843a;
  --horizon: #2a6f7a;
  --ok: #3dba8a;
  --warn: #e3a14a;
  --fail: #e06b6b;
  --unknown: #7a8b99;
  --panel: rgba(8, 22, 34, 0.72);
  --line: rgba(215, 228, 239, 0.12);
  --font-display: "Syne", "Avenir Next", sans-serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font-body);
  color: var(--mist);
  background: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
}

.sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 115%, rgba(227, 161, 74, 0.22) 0%, transparent 42%),
    radial-gradient(70% 50% at 78% 18%, rgba(42, 111, 122, 0.32) 0%, transparent 55%),
    radial-gradient(55% 40% at 18% 28%, rgba(14, 36, 51, 0.9) 0%, transparent 60%),
    linear-gradient(180deg, #050d14 0%, var(--ink) 38%, #0a1c28 72%, #132a34 100%);
}
.sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255,255,255,0.03) 2px,
      rgba(255,255,255,0.03) 3px
    );
  opacity: 0.45;
  animation: grain 18s linear infinite;
}

.flock {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.bird {
  position: absolute;
  width: 28px;
  height: 14px;
  opacity: 0.55;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35));
  animation: fly linear infinite;
}
.bird svg { width: 100%; height: 100%; display: block; }
.bird:nth-child(1) { top: 12%; left: -8%; animation-duration: 42s; animation-delay: -5s; width: 34px; opacity: 0.7; }
.bird:nth-child(2) { top: 22%; left: -12%; animation-duration: 55s; animation-delay: -18s; width: 22px; opacity: 0.4; }
.bird:nth-child(3) { top: 18%; left: -5%; animation-duration: 38s; animation-delay: -28s; width: 40px; opacity: 0.65; }
.bird:nth-child(4) { top: 35%; left: -15%; animation-duration: 48s; animation-delay: -8s; width: 26px; opacity: 0.45; }
.bird:nth-child(5) { top: 8%; left: -10%; animation-duration: 60s; animation-delay: -33s; width: 18px; opacity: 0.35; }
.bird:nth-child(6) { top: 42%; left: -6%; animation-duration: 44s; animation-delay: -12s; width: 30px; opacity: 0.5; }
.bird:nth-child(7) { top: 28%; left: -18%; animation-duration: 52s; animation-delay: -40s; width: 24px; opacity: 0.38; }
.bird:nth-child(8) { top: 15%; left: -3%; animation-duration: 36s; animation-delay: -2s; width: 36px; opacity: 0.6; }
.bird:nth-child(9) { top: 48%; left: -14%; animation-duration: 58s; animation-delay: -22s; width: 20px; opacity: 0.32; }
.bird:nth-child(10) { top: 6%; left: -20%; animation-duration: 50s; animation-delay: -15s; width: 28px; opacity: 0.48; }
.bird:nth-child(11) { top: 55%; left: -9%; animation-duration: 46s; animation-delay: -30s; width: 32px; opacity: 0.42; }
.bird:nth-child(12) { top: 31%; left: -22%; animation-duration: 40s; animation-delay: -7s; width: 25px; opacity: 0.55; }

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem clamp(1rem, 3vw, 2rem);
  position: relative;
  z-index: 2;
}
.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--mist);
  text-decoration: none;
  letter-spacing: -0.03em;
}
.top nav { display: flex; gap: 1rem; align-items: center; }
.top a { color: var(--mist-dim); text-decoration: none; font-weight: 600; }
.top a:hover { color: var(--mist); }
.inline { display: inline; margin: 0; }
.linkish {
  background: none;
  border: none;
  color: var(--dawn);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 1.5rem) 3.5rem;
  position: relative;
  z-index: 1;
}

.hero {
  min-height: calc(100vh - 6.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0 3rem;
  animation: rise 0.8s ease-out both;
}
.brand-hero {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 8.2vw + 0.35rem, 5rem);
  font-weight: 800;
  margin: 0 0 0.35rem;
  letter-spacing: -0.05em;
  line-height: 1.05;
  color: var(--mist);
  text-shadow: 0 8px 40px rgba(0,0,0,0.35);
  animation: crow 1.15s ease-out 0.15s both;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
}
@media (max-width: 420px) {
  .brand-hero {
    font-size: clamp(1.95rem, 11.5vw, 2.55rem);
    letter-spacing: -0.06em;
  }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.2vw, 1.85rem);
  font-weight: 600;
  margin: 0 0 0.85rem;
  max-width: 22ch;
  color: var(--mist-dim);
}
.lede { color: var(--mist-dim); max-width: 34rem; font-size: 1.08rem; }
.cta { margin-top: 1.6rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }

.band { padding: 2.4rem 0 0.5rem; }
.band h2 {
  font-family: var(--font-display);
  margin: 0 0 0.45rem;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}
.band-alt {
  margin-top: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.btn {
  display: inline-block;
  background: linear-gradient(180deg, var(--dawn) 0%, var(--dawn-soft) 100%);
  color: #1a1208;
  border: none;
  border-radius: 3px;
  padding: 0.78rem 1.25rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
  box-shadow: 0 8px 28px rgba(227, 161, 74, 0.22);
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-small { padding: 0.45rem 0.9rem; font-size: 0.95rem; box-shadow: none; }
.btn-ghost {
  background: transparent;
  color: var(--mist);
  border: 1px solid var(--line);
  box-shadow: none;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.35rem 1.3rem;
  margin: 1.2rem 0;
  backdrop-filter: blur(10px);
  border-radius: 4px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.22);
}
.panel h1, .panel h2 {
  font-family: var(--font-display);
  margin-top: 0;
  letter-spacing: -0.02em;
}
.dash-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 0.35rem;
  letter-spacing: -0.03em;
}
.dash-head p { color: var(--mist-dim); margin-top: 0; }

.stack { display: grid; gap: 0.85rem; }
.stack.tight { margin-top: 0.5rem; }
label { display: grid; gap: 0.35rem; font-weight: 600; color: var(--mist); }
label.check-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
}
label.check-row input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--dawn);
}
input[type="email"], input[type="text"] {
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(5, 13, 20, 0.65);
  color: var(--mist);
}
input::placeholder { color: rgba(215, 228, 239, 0.35); }
.checks {
  border: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.45rem;
  color: var(--mist-dim);
}
.checks label { font-weight: 500; display: flex; gap: 0.4rem; align-items: center; }
.checks legend { font-weight: 700; margin-bottom: 0.35rem; color: var(--mist); }

.alert-prefs-head {
  margin-bottom: 1.35rem;
  max-width: 36rem;
}
.alert-prefs-head h2 {
  margin-bottom: 0.35rem;
}
.alert-prefs-head .muted {
  margin: 0;
  line-height: 1.55;
}
.alert-prefs-form {
  display: grid;
  gap: 1.5rem;
}
.alert-group {
  border: none;
  margin: 0;
  padding: 0;
}
.alert-group legend {
  display: block;
  width: 100%;
  margin: 0 0 0.75rem;
  padding: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dawn);
  border-bottom: 1px solid var(--line);
}
.alert-checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  border: none;
  color: var(--mist-dim);
}
.alert-check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(5, 13, 20, 0.42);
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.alert-check:hover {
  border-color: rgba(227, 161, 74, 0.35);
  background: rgba(227, 161, 74, 0.06);
}
.alert-check input {
  width: auto;
  margin: 0.2rem 0 0;
  flex-shrink: 0;
  accent-color: var(--dawn);
}
.alert-check-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  min-width: 0;
}
.alert-check-name {
  color: var(--mist);
  font-size: 0.98rem;
  line-height: 1.3;
}
.alert-check-wait {
  font-size: 0.75rem;
  color: var(--unknown);
  letter-spacing: 0.02em;
}
.alert-check.is-muted {
  opacity: 0.58;
}
.alert-check.is-muted .alert-check-name {
  color: var(--mist-dim);
}
.alert-prefs-actions {
  padding-top: 0.25rem;
}
.mute-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin: 0.65rem 0 0.25rem;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.flash {
  max-width: 960px;
  margin: 0 auto 0.75rem;
  padding: 0.75rem clamp(1rem, 3vw, 1.5rem);
  position: relative;
  z-index: 2;
}
.flash-ok { color: var(--ok); }
.flash-error { color: var(--fail); }

.domain-list { list-style: none; padding: 0; margin: 0; }
.domain-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}
.domain-list li:last-child { border-bottom: none; }
.muted { color: var(--mist-dim); font-size: 0.92rem; }
.pills { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.45rem 0; }
.pill {
  font-size: 0.72rem;
  padding: 0.18rem 0.48rem;
  border-radius: 2px;
  background: var(--mist-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.pill-ok { background: rgba(61,186,138,0.16); color: var(--ok); }
.pill-warn { background: rgba(227,161,74,0.16); color: var(--warn); }
.pill-fail { background: rgba(224,107,107,0.16); color: var(--fail); }
.pill-unknown { color: var(--unknown); }

.spf-count { margin: 0.45rem 0 0; }
.spf-tree {
  list-style: none;
  padding: 0.2rem 0 0 0.95rem;
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
}
.spf-tree li {
  display: block;
  border: 0;
  padding: 0.12rem 0;
}
.spf-tree code {
  font-size: 0.84em;
  word-break: break-all;
}
.spf-tree-err {
  color: var(--warn);
  font-size: 0.82em;
  text-transform: lowercase;
}
.check-facts {
  list-style: none;
  padding: 0.35rem 0 0;
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
}
.check-facts li {
  display: block;
  border: 0;
  padding: 0.12rem 0;
}
.check-facts code {
  font-size: 0.88em;
  word-break: break-all;
}

.dns-fix {
  margin-top: 0.85rem;
  padding: 0.85rem 0 0.15rem;
  border-top: 1px solid var(--line);
}
.dns-fix-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  color: var(--dawn);
}
.dns-fix > .muted { margin: 0 0 0.65rem; }
.dns-record {
  margin: 0 0 0.85rem;
}
.dns-record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.8rem;
  color: var(--mist-dim);
  margin-bottom: 0.35rem;
}
.dns-record-meta code {
  font-size: 0.85em;
  color: var(--mist);
}
.dns-value {
  margin: 0 0 0.45rem;
  padding: 0.65rem 0.75rem;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  border-radius: 2px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--mist);
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
}
.dns-note { margin: 0.4rem 0 0; font-size: 0.84rem; }
.dns-alt-label {
  margin: 0.4rem 0 0.55rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.dns-copy.is-copied { color: var(--ok); border-color: rgba(61,186,138,0.35); }

.audit-badge {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(5, 13, 20, 0.55);
  max-width: 28rem;
}
.audit-score-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--mist);
  min-width: 3.2rem;
}
.audit-score-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.audit-grade {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.audit-label {
  color: var(--mist-dim);
  font-size: 0.95rem;
  line-height: 1.35;
}
.audit-badge-good { border-color: rgba(61,186,138,0.45); }
.audit-badge-good .audit-score-num,
.audit-badge-good .audit-grade { color: var(--ok); }
.audit-badge-ok { border-color: rgba(42,111,122,0.5); }
.audit-badge-ok .audit-score-num,
.audit-badge-ok .audit-grade { color: #7ec8c4; }
.audit-badge-warn { border-color: rgba(227,161,74,0.5); }
.audit-badge-warn .audit-score-num,
.audit-badge-warn .audit-grade { color: var(--dawn); }
.audit-badge-bad { border-color: rgba(224,107,107,0.5); }
.audit-badge-bad .audit-score-num,
.audit-badge-bad .audit-grade { color: var(--fail); }
.audit-pill-good { color: var(--ok); background: rgba(61,186,138,0.16); }
.audit-pill-ok { color: #7ec8c4; background: rgba(42,111,122,0.18); }
.audit-pill-warn { color: var(--warn); background: rgba(227,161,74,0.16); }
.audit-pill-bad { color: var(--fail); background: rgba(224,107,107,0.16); }

.share-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.65rem;
}
.share-group {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(5, 13, 20, 0.35);
  font-size: 0.9rem;
}
.share-url-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 0.75rem 0;
}
.share-url {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 0.55rem 0.7rem;
  background: rgba(0,0,0,0.28);
  border: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--mist);
}
.share-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.share-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
}
.share-hero {
  margin-bottom: 1.35rem;
}
.share-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dawn);
  font-weight: 700;
}
.share-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
}
.share-sub { margin: 0; color: var(--mist-dim); }
.share-page .audit-badge {
  margin: 1.25rem 0 1rem;
  max-width: none;
}
.share-page .share-groups { margin-bottom: 1.25rem; }
.share-cta { margin-top: 1.25rem; }

.price-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}
.price-card {
  border: 1px solid var(--line);
  padding: 1rem 1.05rem;
  background: rgba(5, 13, 20, 0.35);
  border-radius: 4px;
}
.price-card strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  display: block;
  margin-bottom: 0.25rem;
}

.foot {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 3vw, 1.5rem) 3.5rem;
  color: var(--mist-dim);
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}
.foot a { color: var(--dawn); }

.cookie {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  max-width: 520px;
  margin: 0 auto;
  background: rgba(5, 13, 20, 0.94);
  color: var(--mist);
  padding: 1rem 1.1rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  border-radius: 4px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
  z-index: 9999;
  animation: rise 0.35s ease-out;
}
.cookie-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.75rem; }
.cookie .btn-ghost { color: var(--mist); border-color: var(--line); }

.legal ul { padding-left: 1.2rem; color: var(--mist-dim); }
.danger-zone { border-color: rgba(224,107,107,0.28); }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes crow {
  0% { opacity: 0; transform: translateY(10px) scale(0.98); }
  100% { opacity: 1; transform: none; }
}
@keyframes fly {
  0% { transform: translate3d(0, 0, 0) scaleX(1); }
  45% { transform: translate3d(55vw, -18px, 0) scaleX(1); }
  50% { transform: translate3d(58vw, -10px, 0) scaleX(-1); }
  95% { transform: translate3d(110vw, 12px, 0) scaleX(-1); }
  100% { transform: translate3d(115vw, 0, 0) scaleX(-1); }
}
@keyframes grain {
  from { transform: translateY(0); }
  to { transform: translateY(-3px); }
}

.learn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.learn-grid.compact { margin-top: 1rem; }
.learn-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(5, 13, 20, 0.4);
  text-decoration: none;
  color: var(--mist-dim);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.learn-card strong {
  font-family: var(--font-display);
  color: var(--mist);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.learn-card:hover {
  border-color: rgba(227, 161, 74, 0.45);
  transform: translateY(-1px);
  color: var(--mist);
}
.learn-card.is-active {
  border-color: var(--dawn);
  background: rgba(227, 161, 74, 0.16);
  box-shadow: inset 3px 0 0 var(--dawn), 0 0 0 1px rgba(227, 161, 74, 0.25);
  color: var(--mist);
  transform: none;
}
.learn-card.is-active strong {
  color: var(--dawn);
}
.learn-grid.compact .learn-card:not(.is-active) {
  opacity: 0.72;
}
.learn-grid.compact .learn-card:not(.is-active):hover {
  opacity: 1;
}
.learn-article .volume-note { font-size: 0.88rem; max-width: 40rem; }
.learn-inline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}
.learn-inline a { color: var(--dawn); font-weight: 600; }

@media (max-width: 640px) {
  .domain-list li { flex-direction: column; }
  .hero { min-height: auto; padding-top: 2.5rem; }
  .bird { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  .bird, .sky::after { animation: none !important; }
  .hero, .brand-hero, .cookie { animation: none !important; }
}
