/* Postbox MX Tools - brand system: #0A2540 / #1a1a2e / #00D4FF / #7C3AED - Syne + DM Sans */

:root {
  --navy: #0A2540;
  --dark: #1a1a2e;
  --cyan: #00D4FF;
  --purple: #7C3AED;
  --menu-red: #e02b20; /* main-site menu hover red - adjust here if needed */
  --pass: #34d399;
  --warn: #fbbf24;
  --fail: #f87171;
  --text: rgba(255, 255, 255, 0.85);
  --text-dim: rgba(255, 255, 255, 0.7);
  --card: rgba(255, 255, 255, 0.08);
  --card-hover: rgba(255, 255, 255, 0.12);
  --border: rgba(0, 212, 255, 0.2);
  --border-strong: rgba(0, 212, 255, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: linear-gradient(135deg, var(--navy) 0%, var(--dark) 100%) fixed;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

.grid-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 2px;
}

/* ---------- header ---------- */
.topbar { background: rgba(0, 0, 0, 0.3); border-bottom: 1px solid rgba(255, 255, 255, 0.06); font-size: 13px; }
.topbar-inner { display: flex; justify-content: flex-end; gap: 10px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: var(--text-dim); }
.topbar a:hover { color: var(--cyan); text-decoration: none; }
.topbar-sep { color: rgba(255, 255, 255, 0.25); }

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(10, 37, 64, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none !important; }
.brand-logo { height: 52px; width: auto; display: block; }
.brand-mark {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 15px;
  color: #fff; padding: 5px 9px; border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
}
.brand-text { color: var(--text); font-size: 15px; }
.brand-text strong { font-family: 'Syne', sans-serif; color: #fff; }

.main-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; }
.main-nav > ul > li > a {
  display: block; color: var(--cyan); font-size: 14px; font-weight: 400;
  font-family: 'Open Sans', sans-serif;
  padding: 20px 12px; text-decoration: none !important; white-space: nowrap;
}
.main-nav > ul > li > a:hover { color: var(--menu-red); }
.caret { font-size: 10px; opacity: .7; }

.has-sub { position: relative; }
.sub {
  position: absolute; top: 100%; left: 0; min-width: 280px;
  background: rgba(10, 37, 64, 0.98); border: 1px solid var(--border-strong);
  border-radius: 0 0 12px 12px; padding: 8px 0 !important;
  display: none !important; flex-direction: column; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}
.has-sub:hover .sub, .has-sub:focus-within .sub { display: flex !important; }
.sub li { width: 100%; }
.sub a {
  display: block; padding: 9px 18px; color: var(--cyan); font-size: 13.5px;
  font-family: 'Open Sans', sans-serif; font-weight: 400;
  text-decoration: none !important;
}
.sub a:hover { color: var(--menu-red); background: rgba(224, 43, 32, 0.06); }

.nav-cta a {
  color: #fff !important; border: 1px solid #fff; border-radius: 8px;
  padding: 8px 16px !important; margin-left: 8px; transition: all .2s;
}
.nav-cta a:hover { border-color: var(--menu-red); color: var(--menu-red) !important; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--cyan); margin: 5px 0; transition: all .2s; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(10, 37, 64, 0.98); border-bottom: 1px solid var(--border-strong);
    max-height: calc(100vh - 60px); overflow-y: auto; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; }
  .main-nav > ul > li > a { padding: 12px 20px; }
  .sub { position: static; display: flex !important; min-width: 0; border: none; box-shadow: none;
    background: rgba(0, 0, 0, 0.25); border-radius: 0; }
  .sub a { padding-left: 34px; }
  .caret { display: none; }
  .nav-cta a { margin: 8px 20px; display: inline-block; }
}

/* ---------- hero ---------- */
.hero { text-align: center; padding: 26px 0 10px; }
.hero-eyebrow {
  display: inline-block; font-size: 13px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--cyan);
  border: 1px solid var(--border-strong); border-radius: 100px;
  padding: 5px 14px; margin-bottom: 22px; background: rgba(0, 212, 255, 0.06);
}
h1 {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(24px, 3.6vw, 36px); line-height: 1.15; color: #fff;
  letter-spacing: -0.01em;
}
.grad-text {
  background: linear-gradient(90deg, #ffffff, var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub { max-width: 640px; margin: 6px auto 0; color: rgba(255,255,255,0.55); font-size: 14px; }

/* ---------- lookup bar ---------- */
.lookup-bar {
  display: flex; gap: 12px; max-width: 760px; margin: 20px auto 0; align-items: stretch;
}
.lookup-fields { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.lookup-bar input, .lookup-bar textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid var(--border-strong);
  border-radius: 12px;
  color: #fff; font-size: 16px; font-family: 'DM Mono', monospace;
  padding: 14px 18px; transition: border-color .2s, box-shadow .2s;
}
.lookup-bar textarea { resize: vertical; font-size: 13px; line-height: 1.5; }
.lookup-bar input::placeholder, .lookup-bar textarea::placeholder { color: rgba(255, 255, 255, 0.4); font-family: 'DM Sans', sans-serif; }
.lookup-bar input:focus, .lookup-bar textarea:focus {
  outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.15);
}
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff; border: none; border-radius: 12px; cursor: pointer;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 16px;
  padding: 14px 26px; white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none !important;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(0, 212, 255, 0.5); }
.btn-secondary {
  display: inline-block; background: transparent; color: var(--cyan);
  border: 2px solid var(--cyan); border-radius: 12px;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 15px;
  padding: 12px 24px; transition: all .2s; text-decoration: none !important;
}
.btn-secondary:hover { background: rgba(0, 212, 255, 0.1); transform: translateY(-3px); }
.hint { text-align: center; color: rgba(255, 255, 255, 0.5); font-size: 13px; margin-top: 12px; min-height: 20px; }
.hidden { display: none !important; }

/* ---------- tool nav ---------- */
.tool-nav {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px; margin: 22px 0 8px;
}
.tool-btn {
  background: var(--card); border: 2px solid var(--border);
  border-radius: 12px; color: var(--text-dim);
  font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 14px;
  padding: 12px 10px; cursor: pointer; text-align: center;
  transition: all .18s;
}
.tool-btn:hover { background: var(--card-hover); border-color: var(--purple); color: #fff; transform: translateY(-2px); }
.tool-btn.active {
  background: rgba(0, 212, 255, 0.1); border-color: var(--cyan); color: var(--cyan); font-weight: 700;
}

/* ---------- results ---------- */
.results { margin: 26px 0 10px; min-height: 40px; }

.card {
  background: var(--card);
  border: 2px solid var(--border-strong);
  border-radius: 18px;
  padding: 26px 28px;
  margin-bottom: 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: cardIn .35s ease both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .card { animation: none; }
  * { transition: none !important; scroll-behavior: auto !important; }
}

.card h2 {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 20px; color: #fff;
  margin-bottom: 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.card .sub { color: rgba(255, 255, 255, 0.55); font-size: 13px; margin-bottom: 16px; font-family: 'DM Mono', monospace; }

.pill {
  display: inline-block; font-size: 12px; font-weight: 700; font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.04em; border-radius: 100px; padding: 3px 12px; text-transform: uppercase;
}
.pill.pass { background: rgba(52, 211, 153, 0.15); color: var(--pass); border: 1px solid rgba(52, 211, 153, 0.4); }
.pill.warn { background: rgba(251, 191, 36, 0.13); color: var(--warn); border: 1px solid rgba(251, 191, 36, 0.4); }
.pill.fail { background: rgba(248, 113, 113, 0.13); color: var(--fail); border: 1px solid rgba(248, 113, 113, 0.4); }
.pill.info { background: rgba(0, 212, 255, 0.1); color: var(--cyan); border: 1px solid var(--border-strong); }

.verdict { border-left: 3px solid var(--border-strong); padding: 8px 14px; margin: 10px 0; border-radius: 0 8px 8px 0; background: rgba(255,255,255,0.04); font-size: 14.5px; }
.verdict.pass { border-left-color: var(--pass); }
.verdict.warn { border-left-color: var(--warn); }
.verdict.fail { border-left-color: var(--fail); }
.verdict strong { color: #fff; }

.rec {
  font-family: 'DM Mono', monospace; font-size: 13px; line-height: 1.6;
  background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px; margin: 10px 0;
  word-break: break-all; white-space: pre-wrap; position: relative; color: #d8f6ff;
}
.copy-btn {
  position: absolute; top: 8px; right: 8px;
  background: rgba(0, 212, 255, 0.1); border: 1px solid var(--border-strong);
  color: var(--cyan); font-size: 11px; font-weight: 700; font-family: 'DM Sans', sans-serif;
  border-radius: 6px; padding: 3px 10px; cursor: pointer; transition: all .15s;
}
.copy-btn:hover { background: rgba(0, 212, 255, 0.2); }

table.dns { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14px; }
table.dns th {
  text-align: left; font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--cyan);
  padding: 8px 10px; border-bottom: 1px solid var(--border-strong);
}
table.dns td {
  padding: 9px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-family: 'DM Mono', monospace; font-size: 13px; color: var(--text); word-break: break-all;
}
table.dns tr:last-child td { border-bottom: none; }

.kv { display: grid; grid-template-columns: 170px 1fr; gap: 6px 14px; margin: 10px 0; font-size: 14px; }
.kv .k { color: var(--cyan); font-weight: 500; }
.kv .v { font-family: 'DM Mono', monospace; font-size: 13px; word-break: break-all; }

.spinner {
  display: inline-block; width: 18px; height: 18px; vertical-align: -4px;
  border: 2px solid var(--border-strong); border-top-color: var(--cyan);
  border-radius: 50%; animation: spin .7s linear infinite; margin-right: 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-line { color: var(--text-dim); font-size: 15px; padding: 8px 0; }

/* ---------- health report ---------- */
.health-head { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; margin-bottom: 8px; }
.score-ring { position: relative; width: 132px; height: 132px; flex-shrink: 0; }
.score-ring svg { transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 10; }
.ring-val {
  fill: none; stroke: url(#ringGrad); stroke-width: 10; stroke-linecap: round;
  transition: stroke-dashoffset 1s ease;
}
.score-label {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.score-grade { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 40px; line-height: 1;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.score-pct { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.health-summary h2 { margin-bottom: 6px; }
.health-summary p { color: var(--text-dim); font-size: 15px; max-width: 560px; }

.check-row {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.check-row:last-child { border-bottom: none; }
.check-status { flex-shrink: 0; width: 74px; padding-top: 1px; }
.check-body { flex: 1; min-width: 0; }
.check-body h3 { font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.check-body p { font-size: 14px; color: var(--text-dim); }
.check-body .rec { margin: 8px 0 2px; }

/* ---------- header analyzer ---------- */
.hop {
  display: flex; gap: 14px; padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07); font-size: 13.5px;
}
.hop:last-child { border-bottom: none; }
.hop-num {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 212, 255, 0.1); border: 1px solid var(--border-strong);
  color: var(--cyan); font-weight: 700; font-size: 13px;
}
.hop-body { flex: 1; min-width: 0; font-family: 'DM Mono', monospace; word-break: break-all; color: var(--text); }
.hop-delay { flex-shrink: 0; font-weight: 700; font-size: 12.5px; color: var(--text-dim); padding-top: 6px; }
.hop-delay.slow { color: var(--warn); }
.hop-delay.veryslow { color: var(--fail); }

/* ---------- coming soon + CTA ---------- */
.consult-cta { margin: 56px 0 64px; }
.cta-inner {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(124, 58, 237, 0.12));
  border: 2px solid var(--border-strong); border-radius: 22px;
  padding: 44px 34px; text-align: center;
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.2);
}
.cta-inner h2 { font-family: 'Syne', sans-serif; font-size: clamp(22px, 3.4vw, 32px); color: #fff; }
.cta-inner p { max-width: 620px; margin: 12px auto 24px; color: var(--text-dim); }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.site-footer { border-top: 1px solid var(--border); padding: 22px 0; }
.footer-inner p { font-size: 13px; color: rgba(255, 255, 255, 0.5); text-align: center; }

@media (max-width: 640px) {
  .lookup-bar { flex-direction: column; }
  .btn-primary { width: 100%; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv .k { margin-top: 8px; }
  .card { padding: 20px 18px; }
  .health-head { gap: 18px; }
  .brand-logo { height: 42px; }
}

/* ---------- SEO content sections ---------- */
.seo-content { margin: 56px 0 0; }
.seo-content h2 { font-family: 'Syne', sans-serif; font-size: 24px; color: #fff; margin-bottom: 12px; }
.seo-content > p { color: var(--text-dim); font-size: 15px; max-width: 780px; margin-bottom: 26px; }
.seo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 8px 34px; }
.seo-grid h3 { font-family: 'Syne', sans-serif; font-size: 16px; margin: 14px 0 4px; }
.seo-grid h3 a { color: var(--cyan); text-decoration: none; }
.seo-grid h3 a:hover { color: var(--purple); }
.seo-grid p { font-size: 14px; color: var(--text-dim); }
.faq details {
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 18px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 700; color: #fff; font-size: 15px; }
.faq summary:hover { color: var(--cyan); }
.faq details p { margin-top: 10px; font-size: 14px; color: var(--text-dim); }
.faq details a { color: var(--cyan); }

/* ---------- share bar ---------- */
.share-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  max-width: 760px; margin: 12px auto 0;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border);
  border-radius: 10px; padding: 9px 14px; font-size: 13px;
}
.share-label { color: var(--text-dim); white-space: nowrap; }
.share-url {
  font-family: 'DM Mono', monospace; color: var(--cyan);
  word-break: break-all; flex: 1; min-width: 200px;
}
.share-copy {
  background: rgba(0, 212, 255, 0.1); border: 1px solid var(--border-strong);
  color: var(--cyan); font-size: 12px; font-weight: 700; font-family: 'DM Sans', sans-serif;
  border-radius: 7px; padding: 5px 14px; cursor: pointer; white-space: nowrap; transition: all .15s;
}
.share-copy:hover { background: rgba(0, 212, 255, 0.2); }
