/* ============================================================
   URLWACHE — modern dark theme
   ============================================================ */

:root {
  color-scheme: dark;

  --bg: #060912;
  --text: #e9eef9;
  --muted: #99a6c2;
  --faint: #66748f;

  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);

  --accent: #6c8cff;
  --accent-light: #8aa0ff;
  --accent-2: #a06bff;
  --accent-cyan: #4fd1ff;
  --grad: linear-gradient(120deg, #4fd1ff, #6c8cff 48%, #a06bff);
  --grad-btn: linear-gradient(135deg, #6c8cff, #8a6bff);

  --green: #34d399;
  --amber: #fbbf24;
  --red: #fb7185;
  --blue: #60a5fa;

  --radius: 18px;
  --radius-sm: 13px;
  --radius-xs: 10px;

  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.75);
  --mono: ui-monospace, "JetBrains Mono", "SF Mono", "Cascadia Code", "Consolas", monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI Variable", "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent-light);
}

::selection {
  background: rgba(108, 140, 255, 0.32);
  color: #fff;
}

:where(a, button, input, textarea, .tab):focus-visible {
  outline: 2px solid rgba(108, 140, 255, 0.85);
  outline-offset: 2px;
}

/* ── Background decoration ──────────────────────────────── */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(circle at 50% -2%, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at 50% -2%, #000 0%, transparent 72%);
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(640px 440px at 80% -8%, rgba(108, 140, 255, 0.3), transparent 60%),
    radial-gradient(560px 380px at 8% 2%, rgba(160, 107, 255, 0.2), transparent 60%),
    radial-gradient(720px 520px at 50% 116%, rgba(79, 209, 255, 0.1), transparent 60%);
}

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 14px;
  z-index: 50;
  width: min(1160px, calc(100% - 32px));
  margin: 14px auto 0;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 12px 10px 16px;
  background: rgba(14, 19, 33, 0.85);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 12px 34px -16px rgba(0, 0, 0, 0.7);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(108, 140, 255, 0.7);
}

.brand-mark.small {
  width: 26px;
  height: 26px;
  border-radius: 8px;
}

.brand-name {
  font-size: 16px;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  padding: 8px 13px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.18s, background 0.18s;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav-cta {
  flex-shrink: 0;
  padding: 9px 16px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color 0.18s, background 0.18s, transform 0.06s;
}

.nav-cta:hover {
  border-color: rgba(108, 140, 255, 0.6);
  background: rgba(108, 140, 255, 0.14);
}

.nav-cta:active {
  transform: translateY(1px);
}

/* ── Promo banner ───────────────────────────────────────── */
.promo-banner {
  width: min(1160px, calc(100% - 32px));
  margin: 12px auto 0;
  padding: 11px 16px;
  border: 1px solid rgba(108, 140, 255, 0.35);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(108, 140, 255, 0.14), rgba(108, 140, 255, 0.06));
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.promo-banner strong {
  color: var(--accent-light);
}

/* ── Hero ───────────────────────────────────────────────── */
main {
  display: block;
}

.hero {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(46px, 9vh, 104px) 0 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  scroll-margin-top: 92px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px 1px rgba(52, 211, 153, 0.8);
  animation: pulse 2.4s ease-in-out infinite;
}

.hero-title {
  margin: 20px 0 0;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 640px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: clamp(16px, 2.1vw, 19px);
  line-height: 1.6;
}

/* ── Console (the centerpiece) ──────────────────────────── */
.console {
  width: min(820px, 100%);
  margin: 38px auto 0;
  text-align: left;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.console-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 6px 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px 1px rgba(52, 211, 153, 0.8);
  animation: pulse 2.4s ease-in-out infinite;
}

.readouts {
  display: flex;
  gap: 20px;
}

.readout {
  text-align: right;
}

.readout span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
}

.readout strong {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

/* segmented tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 16px;
}

.tab {
  flex: 1 1 0;
  min-width: 84px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  font-size: 13.5px;
  padding: 9px 8px;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  transition: color 0.18s, background 0.18s, box-shadow 0.18s;
}

.tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.tab.active {
  color: #fff;
  background: var(--grad-btn);
  box-shadow: 0 8px 18px -8px rgba(108, 140, 255, 0.8);
}

.tool-form {
  margin: 0;
}

#target-label {
  display: block;
  margin: 0 0 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--faint);
}

.input-row {
  position: relative;
  display: flex;
  gap: 10px;
}

.input-prefix {
  position: absolute;
  left: 16px;
  top: 27px;
  transform: translateY(-50%);
  display: flex;
  color: var(--faint);
  pointer-events: none;
}

input {
  flex: 1;
  min-width: 0;
  height: 54px;
  padding: 0 16px 0 46px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--mono);
  font-size: 16px;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

textarea {
  width: 100%;
  min-height: 134px;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

input::placeholder,
textarea::placeholder {
  color: var(--faint);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(108, 140, 255, 0.75);
  background: rgba(0, 0, 0, 0.42);
  box-shadow: 0 0 0 4px rgba(108, 140, 255, 0.16);
}

#run-tool,
#run-batch {
  height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--grad-btn);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 12px 28px -10px rgba(108, 140, 255, 0.75);
  transition: transform 0.06s, box-shadow 0.2s, filter 0.2s;
}

#run-tool:hover,
#run-batch:hover {
  filter: brightness(1.08);
  box-shadow: 0 16px 36px -10px rgba(108, 140, 255, 0.85);
}

#run-tool:active,
#run-batch:active {
  transform: translateY(1px);
}

.batch-row {
  display: grid;
  gap: 12px;
}

#run-batch {
  justify-self: start;
  min-width: 180px;
}

.console-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.18s, background 0.18s, border-color 0.18s;
}

.ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-strong);
}

.price-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  margin-left: auto;
  padding: 0 15px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(108, 140, 255, 0.35);
  background: rgba(108, 140, 255, 0.12);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.price-pill strong {
  color: var(--text);
  font-family: var(--mono);
}

/* ── Result area ────────────────────────────────────────── */
.result {
  margin-top: 16px;
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 7px;
  padding: 44px 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
  text-align: center;
  color: var(--muted);
}

.empty-glyph {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 4px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent-light);
}

.empty-state strong {
  color: var(--text);
  font-size: 17px;
}

.empty-state span {
  max-width: 380px;
  font-size: 14px;
}

.report-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.report-header h2 {
  margin: 6px 0 0;
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.report-header p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.label {
  display: block;
  margin: 0 0 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.score {
  min-width: 106px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}

.score span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
}

.score strong {
  display: block;
  margin-top: 3px;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.05;
}

.score.low {
  color: var(--green);
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.1);
  box-shadow: 0 0 36px -12px rgba(52, 211, 153, 0.6);
}

.score.medium {
  color: var(--amber);
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.1);
  box-shadow: 0 0 36px -12px rgba(251, 191, 36, 0.55);
}

.score.high {
  color: var(--red);
  border-color: rgba(251, 113, 133, 0.45);
  background: rgba(251, 113, 133, 0.12);
  box-shadow: 0 0 36px -12px rgba(251, 113, 133, 0.6);
}

.score.neutral {
  color: var(--blue);
  border-color: rgba(96, 165, 250, 0.4);
  background: rgba(96, 165, 250, 0.1);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.dns-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metric,
.evidence,
.dns-record {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.dns-record pre {
  overflow-x: auto;
}

.metric span,
.evidence span,
.dns-record span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.metric strong,
.evidence strong,
.dns-record strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.signals {
  display: grid;
  gap: 10px;
}

.signal {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
}

.signal strong {
  display: block;
  margin-bottom: 3px;
  font-size: 13.5px;
  font-weight: 700;
}

.signal span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.signal.pass {
  border-left-color: var(--green);
}

.signal.warning {
  border-left-color: var(--red);
}

.signal.review {
  border-left-color: var(--amber);
}

.recommendations {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(108, 140, 255, 0.22);
  border-radius: 12px;
  background: rgba(108, 140, 255, 0.07);
}

.recommendations ul {
  margin: 0;
  padding-left: 18px;
}

.recommendations li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 4px;
}

details {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

summary {
  padding: 12px 15px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--muted);
  list-style: none;
  user-select: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary:hover {
  color: var(--text);
}

details[open] summary {
  border-bottom: 1px solid var(--border);
}

pre {
  margin: 0;
  max-width: 100%;
  overflow: auto;
  padding: 14px;
  background: #05080f;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: #cdd6ea;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.55;
}

details pre {
  border: 0;
  border-radius: 0;
}

code {
  font-family: var(--mono);
  overflow-wrap: anywhere;
}

:not(pre) > code {
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: #cdd6ff;
  font-size: 0.86em;
}

pre code {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: inherit;
}

/* ── Mail tester ────────────────────────────────────────── */
.mail-row {
  display: grid;
  gap: 12px;
}

.mail-intro {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

#run-mail {
  justify-self: start;
  min-width: 200px;
}

.mail-pending {
  display: grid;
  gap: 12px;
  padding: 4px 2px;
}

.mail-address {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border: 1px solid rgba(108, 140, 255, 0.35);
  background: rgba(108, 140, 255, 0.1);
  border-radius: var(--radius-sm);
}

.mail-address code {
  font-size: 16px;
  color: #cdd6ff;
  overflow-wrap: anywhere;
}

.mail-address .ghost {
  margin-left: auto;
}

.mail-hint {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.mail-wait {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
}

/* ── Hero chips ─────────────────────────────────────────── */
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hero-chips li {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
}

/* ── Content bands ──────────────────────────────────────── */
.band {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(52px, 9vh, 104px) 0 0;
  scroll-margin-top: 92px;
}

.band-head {
  max-width: 720px;
  margin-bottom: 30px;
}

.band-head h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.band-head .eyebrow {
  margin-bottom: 12px;
}

.band-lede {
  margin: 14px 0 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature {
  padding: 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 26px 54px -26px rgba(108, 140, 255, 0.55);
}

.feat-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 13px;
  border: 1px solid rgba(108, 140, 255, 0.3);
  background: linear-gradient(135deg, rgba(108, 140, 255, 0.22), rgba(160, 107, 255, 0.16));
  color: #9fb2ff;
}

.feature strong {
  display: block;
  margin-bottom: 9px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.api-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
}

.step-n {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid rgba(108, 140, 255, 0.3);
  background: linear-gradient(135deg, rgba(108, 140, 255, 0.25), rgba(160, 107, 255, 0.18));
  color: #b9c6ff;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 14px;
}

.terminal {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #05080f;
  box-shadow: var(--shadow);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.terminal-bar .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot.r {
  background: #ff5f57;
}

.dot.y {
  background: #febc2e;
}

.dot.g {
  background: #28c840;
}

.terminal-title {
  margin-left: 8px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
}

.terminal pre {
  border: 0;
  border-radius: 0;
  padding: 16px;
  background: transparent;
  color: #b7c4dd;
  font-size: 13px;
  line-height: 1.7;
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 13px;
}

.checklist li {
  position: relative;
  padding-left: 32px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.5;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.15);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.pricing {
  padding: 22px 24px;
}

.pricing .eyebrow {
  margin-bottom: 6px;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.price-row span {
  color: var(--muted);
}

.price-row strong {
  color: var(--text);
  font-family: var(--mono);
  font-weight: 700;
}

.price-row strong.free {
  color: var(--green);
}

.price-cta {
  display: block;
  margin-top: 18px;
  padding: 13px;
  border-radius: 12px;
  background: var(--grad-btn);
  color: #fff;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 14px 30px -12px rgba(108, 140, 255, 0.75);
  transition: filter 0.2s, transform 0.06s;
}

.price-cta:hover {
  filter: brightness(1.08);
}

.price-cta:active {
  transform: translateY(1px);
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  width: min(1160px, calc(100% - 32px));
  margin: clamp(56px, 9vh, 104px) auto 0;
  padding: 30px 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
}

.footer-note {
  max-width: 440px;
  color: var(--faint);
  font-size: 13.5px;
  text-align: right;
}

/* ── Utilities & motion ─────────────────────────────────── */
.hidden {
  display: none !important;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

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

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .bento,
  .api-split {
    grid-template-columns: 1fr;
  }

  .evidence-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .nav {
    top: 10px;
    gap: 8px;
    padding: 8px 10px 8px 12px;
  }

  .nav-cta {
    padding: 8px 13px;
    font-size: 13px;
  }

  .nav-links {
    display: none;
  }

  .tab {
    min-width: 78px;
  }

  .console-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .readouts {
    width: 100%;
    justify-content: space-between;
  }

  .readout {
    text-align: left;
  }

  .input-row {
    flex-direction: column;
  }

  .input-prefix {
    top: 25px;
  }

  #run-tool {
    height: 50px;
    width: 100%;
  }

  #run-batch {
    width: 100%;
  }

  .price-pill {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  .report-header {
    flex-direction: column;
  }

  .metric-grid,
  .evidence-grid,
  .dns-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-note {
    text-align: left;
  }

  .footer-right {
    align-items: flex-start;
  }
}

/* ── Footer links ───────────────────────────────────────── */
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.18s;
}

.footer-links a:hover {
  color: var(--text);
}

/* ── Legal / prose pages (Impressum etc.) ───────────────── */
.legal {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(40px, 8vh, 88px) 0 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.18s;
}

.back-link:hover {
  color: var(--text);
}

.legal-title {
  margin: 16px 0 0;
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.legal .card {
  margin-top: 26px;
  padding: clamp(22px, 4vw, 40px);
}

.legal h2 {
  margin: 28px 0 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.legal h2:first-of-type {
  margin-top: 0;
}

.legal p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.7;
}

.legal address {
  font-style: normal;
  color: var(--text);
  line-height: 1.8;
}

.legal a {
  color: var(--accent-light);
  overflow-wrap: anywhere;
}

.legal a.price-cta {
  margin-top: 24px;
  color: #fff;
}

.legal strong {
  color: var(--text);
}

.legal .fine {
  margin-top: 20px;
  color: var(--faint);
  font-size: 13px;
  line-height: 1.6;
}
