:root {
  --bg: #07111f;
  --bg-soft: #0c1829;
  --panel: #0f1e31;
  --panel-2: #13253a;
  --text: #f7fbff;
  --muted: #9fb1c5;
  --line: rgba(255, 255, 255, 0.1);
  --brand: #65f2c7;
  --brand-dark: #0e3b31;
  --danger: #ff9b9b;
  --header-bg: rgba(7, 17, 31, 0.86);
  --input-bg: #091523;
  --console-bg: rgba(12, 24, 41, 0.84);
  --code-text: #d5e3ef;
  --subtle-fill: rgba(255, 255, 255, 0.025);
  --subtle-fill-2: rgba(255, 255, 255, 0.03);
  --ad-border: rgba(255, 255, 255, 0.16);
  --shadow: rgba(0, 0, 0, 0.28);
  --max: 1160px;
  --radius: 18px;
}

html[data-theme="light"] {
  --bg: #f6f9fc;
  --bg-soft: #eef4f7;
  --panel: #ffffff;
  --panel-2: #f7fafc;
  --text: #102033;
  --muted: #5f7184;
  --line: rgba(16, 32, 51, 0.12);
  --brand: #0aa77a;
  --brand-dark: #dff8ef;
  --danger: #b42318;
  --header-bg: rgba(246, 249, 252, 0.9);
  --input-bg: #ffffff;
  --console-bg: #13253a;
  --code-text: #203246;
  --subtle-fill: rgba(16, 32, 51, 0.025);
  --subtle-fill-2: rgba(16, 32, 51, 0.035);
  --ad-border: rgba(16, 32, 51, 0.16);
  --shadow: rgba(22, 36, 50, 0.12);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand);
  color: #06150f;
}
.nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}
.nav a:hover {
  color: var(--text);
}

.hero {
  padding: 96px 0 72px;
  background: radial-gradient(
    circle at 75% 20%,
    rgba(101, 242, 199, 0.12),
    transparent 28%
  );
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 64px;
}
.hero-copy h1,
.tool-page-heading h1,
.guide-header h1 {
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  margin: 12px 0 22px;
  max-width: 900px;
}
.hero-copy p,
.tool-page-heading p,
.guide-header p {
  color: var(--muted);
  max-width: 720px;
  font-size: 1.08rem;
}
.eyebrow {
  color: var(--brand);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 750;
  border: 1px solid transparent;
}
.button-primary {
  background: var(--brand);
  color: #052219;
}
.button-primary:hover {
  filter: brightness(1.04);
}
.button-secondary {
  border-color: var(--line);
  color: var(--text);
  background: var(--subtle-fill);
}

.hero-console {
  border: 1px solid var(--line);
  background: var(--console-bg);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 80px var(--shadow);
}
.console-bar {
  display: flex;
  gap: 7px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}
.console-bar span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}
.console-body {
  padding: 28px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--code-text);
}
.console-body p {
  margin: 9px 0;
}
.console-muted {
  display: inline-block;
  width: 86px;
  color: #70859b;
}
.console-good {
  color: var(--brand);
  margin-right: 12px;
}

.section {
  padding: 72px 0;
}
.section-soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}
.section-heading h2,
.content-grid h2,
.results-heading h2 {
  margin: 6px 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}
.section-heading p {
  max-width: 460px;
  color: var(--muted);
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tool-card-link {
  display: block;
}
.tool-card {
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease;
}
.tool-card-live:hover {
  transform: translateY(-3px);
  border-color: rgba(101, 242, 199, 0.55);
}
.tool-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tool-icon {
  color: var(--brand);
}
.status-pill {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
}
.status-pill.live {
  background: rgba(101, 242, 199, 0.12);
  color: var(--brand);
}
.tool-card h3 {
  margin: 30px 0 8px;
  font-size: 1.2rem;
}
.tool-card p {
  color: var(--muted);
  margin: 0 0 24px;
}
.tool-cta,
.text-link {
  color: var(--brand);
  font-weight: 700;
}
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.content-grid p {
  color: var(--muted);
}

.ad-placeholder {
  min-height: 92px;
  margin-top: 24px;
  margin-bottom: 24px;
  border: 1px dashed var(--ad-border);
  display: grid;
  place-items: center;
  color: #65788d;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.tool-page,
.guide-page {
  padding: 72px 0 88px;
}
.tool-page-heading,
.guide-header {
  max-width: 900px;
  margin-bottom: 34px;
}
.tool-page-heading h1,
.guide-header h1 {
  font-size: clamp(2.7rem, 6vw, 4.7rem);
}
.lookup-panel,
.article-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 26px;
}
.lookup-form label {
  display: block;
  margin-bottom: 9px;
  font-weight: 750;
}
.lookup-row {
  display: grid;
  grid-template-columns: 1fr 120px auto;
  gap: 10px;
}
.lookup-row input,
.lookup-row select {
  min-height: 50px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--text);
  padding: 0 14px;
  outline: none;
}
.lookup-row input:focus,
.lookup-row select:focus {
  border-color: rgba(101, 242, 199, 0.65);
  box-shadow: 0 0 0 3px rgba(101, 242, 199, 0.08);
}
.lookup-row button {
  min-height: 50px;
  border: 0;
  border-radius: 11px;
  background: var(--brand);
  color: #052219;
  padding: 0 18px;
  font-weight: 850;
  cursor: pointer;
}
.lookup-row button:disabled {
  opacity: 0.65;
  cursor: wait;
}
.error-message {
  color: var(--danger);
  margin: 14px 0 0;
}
.results {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.results-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 16px;
}
.results-heading h2 {
  font-size: 1.65rem;
}
.result-code {
  color: var(--muted);
  font-size: 0.8rem;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.record-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow-wrap: anywhere;
}
.empty-result {
  padding: 18px;
  border-radius: 12px;
  background: var(--subtle-fill-2);
  color: var(--muted);
}
.article-card {
  margin-top: 28px;
}
.article-card p,
.prose p {
  color: var(--muted);
}
.prose {
  max-width: 860px;
}
.prose h2 {
  margin-top: 34px;
  letter-spacing: -0.02em;
}
.article-cta {
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.site-footer {
  padding: 42px 0;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 36px;
}
.footer-inner p,
.footer-links {
  color: var(--muted);
}
.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero-inner,
  .content-grid {
    grid-template-columns: 1fr;
  }
  .tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero {
    padding-top: 72px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 22px), var(--max));
  }
  .nav {
    gap: 14px;
    font-size: 0.88rem;
  }
  .hero {
    padding: 58px 0 48px;
  }
  .hero-copy h1 {
    font-size: clamp(2.65rem, 15vw, 4rem);
  }
  .tool-grid {
    grid-template-columns: 1fr;
  }
  .section-heading,
  .footer-inner,
  .results-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .lookup-row {
    grid-template-columns: 1fr 95px;
  }
  .lookup-row button {
    grid-column: 1 / -1;
  }
  .lookup-panel,
  .article-card {
    padding: 18px;
  }
}

.trust-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.86rem;
}
.trust-row span::before {
  content: "✓";
  color: var(--brand);
  margin-right: 7px;
  font-weight: 900;
}
.section-action {
  margin-top: 26px;
}
.compact-heading {
  max-width: 760px;
}
.compact-heading h1 {
  font-size: clamp(2.5rem, 6vw, 4.4rem);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stat-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.stat-card strong {
  display: block;
  font-size: 2.3rem;
  letter-spacing: -0.05em;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 10px;
}
.stat-card span {
  color: var(--muted);
}
.health-pill {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}
.health-pill.healthy {
  background: rgba(101, 242, 199, 0.12);
  color: var(--brand);
}
.health-pill.warning {
  background: rgba(255, 190, 92, 0.12);
  color: #ffcc7a;
}
.resolver-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.resolver-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--subtle-fill);
  min-width: 0;
}
.resolver-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 11px;
}
.resolver-card-head span {
  color: var(--muted);
  font-size: 0.75rem;
}
.answer-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}
.answer-list li {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow-wrap: anywhere;
  padding: 5px 0;
  color: var(--code-text);
  font-size: 0.87rem;
}
.tool-note,
.muted-copy {
  color: var(--muted);
  font-size: 0.84rem;
}
.tool-note {
  margin: 16px 0 0;
}
.compact-error {
  margin-bottom: 0;
  font-size: 0.85rem;
}
.two-column-row {
  grid-template-columns: 1fr auto;
}
.result-list {
  display: grid;
  gap: 0;
  margin: 0;
}
.result-list div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.result-list dt {
  color: var(--muted);
}
.result-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.ip-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 34px;
}
.ip-card strong {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(2rem, 6vw, 4.4rem);
  letter-spacing: -0.05em;
  margin: 10px 0 12px;
  overflow-wrap: anywhere;
}
.ip-card p {
  max-width: 720px;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 900px) {
  .resolver-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .two-column-row {
    grid-template-columns: 1fr;
  }
  .result-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .ip-card {
    padding: 22px;
  }
}

/* Theme controls */
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.theme-toggle {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  font-weight: 750;
  font-size: 0.82rem;
}
.theme-toggle:hover {
  border-color: rgba(101, 242, 199, 0.55);
}
.theme-toggle-icon {
  font-size: 1rem;
  line-height: 1;
}
html[data-theme="light"] .hero {
  background: radial-gradient(
    circle at 75% 20%,
    rgba(10, 167, 122, 0.11),
    transparent 28%
  );
}
html[data-theme="light"] .console-body {
  color: #d5e3ef;
}
html[data-theme="light"] .console-muted {
  color: #9fb1c5;
}
html[data-theme="light"] .console-good {
  color: #65f2c7;
}
html[data-theme="light"] .brand-mark,
html[data-theme="light"] .button-primary,
html[data-theme="light"] .lookup-row button {
  color: #041a13;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.contact-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.contact-card h2 {
  margin: 8px 0 12px;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}
.contact-card p {
  color: var(--muted);
  margin-bottom: 24px;
}
.contact-note {
  margin-top: 18px;
  margin-bottom: 0 !important;
  font-size: 0.84rem;
}
.contact-home {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
}
.contact-home h2 {
  margin: 6px 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}
.contact-home p {
  max-width: 680px;
  color: var(--muted);
  margin-bottom: 0;
}
.contact-home-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* Global DNS propagation map */
.propagation-panel {
  overflow: hidden;
}
.propagation-search-row {
  grid-template-columns: 1fr 120px auto;
}
.expected-value-field {
  margin-top: 18px;
}
.expected-value-field label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.expected-value-field label span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}
.expected-value-field input {
  width: 100%;
  min-height: 48px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--text);
  padding: 0 14px;
  outline: none;
}
.expected-value-field input:focus {
  border-color: rgba(101, 242, 199, 0.65);
  box-shadow: 0 0 0 3px rgba(101, 242, 199, 0.08);
}
.field-help {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.propagation-map-card {
  margin: 22px 0 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-2);
  overflow: hidden;
}
.map-toolbar {
  padding: 18px 20px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.map-toolbar h3 {
  margin: 5px 0 0;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.map-summary {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.78rem;
}
.map-summary span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}
.legend-dot.propagated,
.map-marker.propagated .map-marker-dot {
  fill: #20c997;
  background: #20c997;
}
.legend-dot.different,
.map-marker.different .map-marker-dot {
  fill: #f0a43b;
  background: #f0a43b;
}
.legend-dot.failed,
.map-marker.failed .map-marker-dot {
  fill: #e45d68;
  background: #e45d68;
}
.world-map-wrap {
  padding: 12px;
}
.world-map {
  display: block;
  width: 100%;
  height: auto;
  min-height: 280px;
}
.map-ocean {
  fill: #071728;
}
.map-grid-lines line {
  stroke: rgba(255, 255, 255, 0.055);
  stroke-width: 1;
}
.map-land path {
  fill: #16334a;
  stroke: #21465f;
  stroke-width: 1.4;
}
html[data-theme="light"] .map-ocean {
  fill: #e9f4f8;
}
html[data-theme="light"] .map-grid-lines line {
  stroke: rgba(16, 32, 51, 0.07);
}
html[data-theme="light"] .map-land path {
  fill: #cbdde3;
  stroke: #afc7d0;
}
.map-marker {
  cursor: help;
}
.map-marker-pulse {
  opacity: 0.18;
}
.map-marker.propagated .map-marker-pulse {
  fill: #20c997;
}
.map-marker.different .map-marker-pulse {
  fill: #f0a43b;
}
.map-marker.failed .map-marker-pulse {
  fill: #e45d68;
}
.map-marker-dot {
  stroke: #fff;
  stroke-width: 2;
}
.map-legend-copy {
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 0.84rem;
}
.map-legend-copy p {
  margin: 5px 0;
}
.map-legend-copy code,
.regional-results-heading code {
  color: var(--text);
  background: var(--subtle-fill-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
}
.regional-results-heading {
  margin: 26px 0 14px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
.regional-results-heading h3 {
  margin: 0;
  font-size: 1.25rem;
}
.regional-results-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.resolver-card-head > div {
  min-width: 0;
}
.resolver-country {
  display: block;
  margin-top: 2px;
}
.resolver-meta {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  overflow-wrap: anywhere;
}
.region-status {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  font-weight: 900;
  flex: 0 0 auto;
}
.region-status.propagated {
  color: #0a7d5c;
  background: rgba(32, 201, 151, 0.14);
}
.region-status.different {
  color: #b36c08;
  background: rgba(240, 164, 59, 0.14);
}
.region-status.failed {
  color: #b52e3b;
  background: rgba(228, 93, 104, 0.14);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-home {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }
  .map-toolbar,
  .regional-results-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .header-actions {
    gap: 9px;
  }
  .theme-toggle-label {
    display: none;
  }
  .theme-toggle {
    width: 38px;
    padding: 0;
    justify-content: center;
  }
  .nav {
    gap: 11px;
  }
  .nav a:nth-child(2) {
    display: none;
  }
  .world-map-wrap {
    padding: 6px;
    overflow-x: auto;
  }
  .world-map {
    min-width: 700px;
  }
}

@media (max-width: 640px) {
  .propagation-search-row {
    grid-template-columns: 1fr 95px;
  }
  .propagation-search-row button {
    grid-column: 1 / -1;
  }
  .contact-home-actions {
    width: 100%;
    flex-direction: column;
  }
  .contact-home-actions .button {
    width: 100%;
  }
}

/* v4 theme reliability */
html[data-theme="dark"] {
  color-scheme: dark;
}
html[data-theme="light"] {
  color-scheme: light;
}
body,
.site-header,
.section-soft,
.tool-card,
.lookup-panel,
.article-card,
.ip-card,
.contact-card,
.theme-toggle,
input,
select {
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}
html[data-theme="light"] .status-pill {
  background: rgba(16, 32, 51, 0.06);
}
html[data-theme="light"] .console-bar span {
  background: rgba(255, 255, 255, 0.22);
}

/* v5 explicit theme switch */
.theme-switch {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  font-size: 0.8rem;
}
.theme-switch:hover {
  border-color: color-mix(in srgb, var(--brand) 60%, var(--line));
}
.theme-switch-track {
  width: 38px;
  height: 22px;
  padding: 2px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.theme-switch-track.light {
  justify-content: flex-end;
}
.theme-switch-track.dark {
  justify-content: flex-start;
}
.theme-switch-thumb {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--brand);
  color: #062019;
  font-size: 0.68rem;
  line-height: 1;
}
.theme-switch-text {
  min-width: 34px;
  text-align: left;
}
@media (max-width: 720px) {
  .theme-switch {
    padding: 0 8px;
  }
  .theme-switch-text {
    display: none;
  }
}

/* v6 email security and domain health */
.email-security-row {
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.72fr) auto;
}
.security-check-grid,
.domain-health-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.security-check-card,
.domain-health-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--subtle-fill);
  min-width: 0;
}
.security-check-head,
.domain-health-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.security-check-head h3,
.domain-health-card-head h3 {
  margin: 0;
  font-size: 1.05rem;
}
.security-check-card > p,
.domain-health-card > p {
  color: var(--muted);
  margin: 12px 0;
}
.record-block {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--code-bg);
  color: var(--code-text);
  font-size: 0.78rem;
  line-height: 1.55;
}
.compact-record-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 7px;
  color: var(--code-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
}
.compact-record-list strong {
  color: var(--brand);
  margin-right: 6px;
}
.mini-result-list {
  margin: 14px 0 0;
  display: grid;
  gap: 7px;
}
.mini-result-list div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px;
}
.mini-result-list dt {
  color: var(--muted);
}
.mini-result-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.health-pill.danger {
  background: rgba(228, 93, 104, 0.13);
  color: #e45d68;
}
.domain-health-heading {
  gap: 24px;
}
.health-summary-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.health-summary,
.check-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 0.74rem;
  font-weight: 850;
  white-space: nowrap;
}
.health-summary.pass,
.check-status.pass {
  background: rgba(32, 201, 151, 0.13);
  color: #20c997;
}
.health-summary.warning,
.check-status.warning {
  background: rgba(240, 164, 59, 0.14);
  color: #f0a43b;
}
.health-summary.fail,
.check-status.fail {
  background: rgba(228, 93, 104, 0.14);
  color: #e45d68;
}
.health-summary.info,
.check-status.info {
  background: rgba(95, 156, 210, 0.14);
  color: #73aee0;
}
.domain-health-card.pass {
  border-color: color-mix(in srgb, #20c997 28%, var(--line));
}
.domain-health-card.warning {
  border-color: color-mix(in srgb, #f0a43b 30%, var(--line));
}
.domain-health-card.fail {
  border-color: color-mix(in srgb, #e45d68 30%, var(--line));
}

@media (max-width: 900px) {
  .email-security-row {
    grid-template-columns: 1fr;
  }
  .security-check-grid,
  .domain-health-grid {
    grid-template-columns: 1fr;
  }
  .domain-health-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .health-summary-pills {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .mini-result-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* Growth release: guides, services and conversion paths */
.guide-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.guide-list-card,
.service-card {
  display: block;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.guide-list-card {
  transition:
    transform 0.18s ease,
    border-color 0.18s ease;
}
.guide-list-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
}
.guide-list-card h2,
.service-card h2 {
  margin: 10px 0 8px;
  font-size: 1.3rem;
  letter-spacing: -0.025em;
}
.guide-list-card p,
.service-card p {
  color: var(--muted);
  margin: 0 0 18px;
}
.service-grid {
  margin-bottom: 32px;
}
.guide-support {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.prose code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--code-bg, var(--bg-soft));
  color: var(--code-text);
}
@media (max-width: 760px) {
  .guide-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }
}

/* GAM-ready responsive ad inventory */
.responsive-ad-slot {
  width: 100%;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  overflow: hidden;
}
.ad-label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.responsive-ad-frame {
  width: min(970px, 100%);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--subtle-fill, var(--panel));
}
.ad-placeholder-copy {
  min-height: 88px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.75rem;
}
.ad-placeholder-copy strong {
  color: var(--text);
  font-size: 0.8rem;
}
.ad-size-mobile {
  display: none;
}
.article-ad-slot {
  margin: 30px 0;
}

@media (max-width: 800px) {
  .responsive-ad-frame {
    width: 300px;
    max-width: 100%;
    min-height: 250px;
  }
  .ad-placeholder-copy {
    min-height: 248px;
    flex-direction: column;
  }
  .ad-size-desktop {
    display: none;
  }
  .ad-size-mobile {
    display: inline;
  }
}
/* ==========================================================
   HOMEPAGE TOP GAM AD
   ========================================================== */

.homepage-top-ad-section {
  width: 100%;
  padding: 16px 0 0;
}

.homepage-top-ad {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/*
  Important:
  We intentionally DO NOT set a fixed height here.

  GAM/partner tag may return:
  Desktop:
  - 970x90
  - 728x90
  - 300x250
  - 300x100

  Mobile:
  - 300x250
  - 320x50
  - 300x100
*/

.homepage-top-ad .gam-ad-inner {
  width: 100%;
  max-width: 970px;
  min-height: 90px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: visible;
}

.gam-ad-label {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  opacity: 0.65;
}

/* ==========================================================
   HERO
   ========================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 72px;
}

.hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: 4%;
  top: -90px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.08);
  filter: blur(70px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 72px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.hero h1 {
  margin: 0;
  max-width: 800px;
  font-size: clamp(3.2rem, 6.3vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.hero-description {
  max-width: 720px;
  margin: 30px 0 0;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.65;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 0.94rem;
}

.trust-row span {
  white-space: nowrap;
}

/* ==========================================================
   HERO CONSOLE
   ========================================================== */

.hero-console {
  width: 100%;
  max-width: 600px;
  justify-self: end;
  overflow: hidden;
  border-radius: 24px;
  background: #102840;
  color: #e4edf6;
  box-shadow:
    0 28px 70px rgba(15, 23, 42, 0.16),
    0 8px 26px rgba(15, 23, 42, 0.1);
}

.console-bar {
  display: flex;
  gap: 8px;
  padding: 20px 24px 10px;
}

.console-bar span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.console-body {
  display: grid;
  gap: 19px;
  padding: 48px 38px 52px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.04rem;
}

.console-body p {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 16px;
  margin: 0;
}

.console-muted {
  color: #9fb1c4;
}

.console-good {
  color: #5eeac3;
}

/* ==========================================================
   GENERIC HOMEPAGE SECTIONS
   ========================================================== */

.section {
  padding: 88px 0;
}

.section-soft {
  background: var(--panel-soft);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 50px;
  margin-bottom: 40px;
}

.section-heading h2 {
  max-width: 720px;
  margin: 4px 0 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.section-heading > p {
  max-width: 520px;
  margin: 0;
  line-height: 1.7;
  color: var(--muted);
}

.section-action {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

/* ==========================================================
   FEATURE / DOMAIN HEALTH SECTION
   ========================================================== */

.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: 70px;
}

.feature-split h2 {
  margin: 4px 0 18px;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.feature-split > div:first-child > p {
  max-width: 670px;
  margin-bottom: 26px;
  color: var(--muted);
  line-height: 1.75;
}

.feature-check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 22px;
  margin-bottom: 30px;
}

.feature-check-list span {
  color: var(--text);
  font-weight: 650;
}

.health-preview-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.08);
}

.health-preview-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.health-preview-heading strong {
  display: block;
  margin-top: 5px;
  font-size: 1.35rem;
}

.health-preview-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.health-preview-badge {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
}

.health-preview-results {
  display: grid;
  margin-top: 8px;
}

.health-preview-results > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.health-preview-results > div:last-child {
  border-bottom: 0;
}

.health-preview-results strong {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.status-good {
  color: var(--accent);
}

.status-warning {
  color: #d48b0b;
}

.status-info {
  color: var(--muted);
}

/* ==========================================================
   GUIDES
   ========================================================== */

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

.guide-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}

.guide-card-label {
  margin-bottom: 18px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.guide-card h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.guide-card p {
  flex: 1;
  margin: 16px 0 26px;
  line-height: 1.7;
  color: var(--muted);
}

/* ==========================================================
   STATS
   ========================================================== */

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

.stat-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}

.stat-card strong {
  margin-bottom: 7px;
  font-size: 2.4rem;
  letter-spacing: -0.05em;
}

.stat-card span {
  color: var(--muted);
}

/* ==========================================================
   TECHNICAL SUPPORT CTA
   ========================================================== */

.support-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
  padding-top: 34px;
  padding-bottom: 34px;
}

.support-cta-copy {
  max-width: 780px;
}

.support-cta h2 {
  margin: 4px 0 16px;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.support-cta p {
  max-width: 740px;
  line-height: 1.7;
  color: var(--muted);
}

.support-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.support-tags span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-size: 0.82rem;
  font-weight: 650;
}

.support-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 245px;
}

/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 1024px) {
  .hero-inner,
  .feature-split {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .hero-console {
    justify-self: start;
    max-width: 720px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

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

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

  .support-cta-actions {
    flex-direction: row;
    min-width: 0;
  }
}

/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 768px) {
  .homepage-top-ad-section {
    padding-top: 18px;
  }

  .homepage-top-ad .gam-ad-inner {
    width: 100%;
    max-width: 320px;

    /*
      The smallest mobile creative can be 320x50.
      We only reserve 50px as minimum space.

      If GAM serves 300x100 or 300x250,
      the container grows automatically.
    */
    min-height: 50px;
  }

  .hero {
    padding: 42px 0 58px;
  }

  .hero-inner {
    gap: 38px;
  }

  .hero h1 {
    font-size: clamp(3rem, 13vw, 4.8rem);
    letter-spacing: -0.06em;
  }

  .hero-description {
    margin-top: 22px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .trust-row {
    gap: 12px 18px;
  }

  .hero-console {
    border-radius: 18px;
  }

  .console-body {
    padding: 34px 24px 38px;
    font-size: 0.9rem;
  }

  .console-body p {
    grid-template-columns: 76px 1fr;
  }

  .section {
    padding: 62px 0;
  }

  .feature-check-list {
    grid-template-columns: 1fr;
  }

  .guide-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .support-cta-actions {
    width: 100%;
    flex-direction: column;
  }

  .support-cta-actions .button {
    width: 100%;
  }
}

/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width: 420px) {
  .homepage-top-ad .gam-ad-inner {
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 14vw, 4rem);
  }

  .health-preview-card,
  .guide-card,
  .stat-card {
    padding: 22px;
  }
}

/* ==========================================================
   RESPONSIVE GAM AD SLOT
   ========================================================== */

.gam-ad-slot {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.gam-ad-inner {
  position: relative;
  width: 100%;
  max-width: 970px;
  min-height: 90px;

  display: flex;
  justify-content: center;
  align-items: center;

  margin: 0 auto;

  /*
    Do not hide overflow.
    A 300x250 creative must be allowed to expand vertically.
  */
  overflow: visible;
}

.gam-ad-label {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);

  font-size: 9px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.12em;

  color: var(--muted);
  opacity: 0.65;
}

.gam-ad-placeholder {
  width: 100%;
  max-width: 970px;
  min-height: 90px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px dashed var(--line);
  border-radius: 8px;

  color: var(--muted);
  background: transparent;

  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* MOBILE */

@media (max-width: 768px) {
  .gam-ad-inner {
    width: 100%;
    max-width: 320px;
    min-height: 50px;
  }

  .gam-ad-placeholder {
    width: 100%;
    max-width: 320px;
    min-height: 50px;
  }
}
