:root {
  --bg: #0d1117;
  --bg-elevated: rgba(17, 24, 39, 0.78);
  --bg-muted: rgba(148, 163, 184, 0.08);
  --border: rgba(148, 163, 184, 0.18);
  --text: #e5edf5;
  --muted: #9aa7b8;
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 28%),
    linear-gradient(180deg, #0d1117 0%, #0b1020 100%);
  min-height: 100vh;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 32px;
}

.site-header {
  padding: 4px 0 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-name,
.brand-tag,
.eyebrow,
.micro-label,
.group-label,
.status-pill,
.chip,
.metric-label,
.inline-disclaimer,
.card-note,
.site-footer,
.footer-links a {
  letter-spacing: 0;
}

.brand-name {
  font-size: 0.95rem;
  font-weight: 700;
}

.brand-tag {
  color: var(--muted);
  font-size: 0.8rem;
}

.section {
  margin-top: 18px;
}

.hero {
  display: grid;
  gap: 14px;
}

.panel,
.info-card,
.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-copy,
.hero-result,
.module-slot,
.site-footer,
.trust-cta {
  padding: 18px;
}

.eyebrow,
.micro-label,
.group-label {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  margin-top: 10px;
  font-size: clamp(1.95rem, 5.7vw, 3.2rem);
  line-height: 1.02;
  max-width: 12ch;
}

.hero-subhead {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 58ch;
}

.hero-actions {
  margin-top: 16px;
}

.cta-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #04131d;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(14, 165, 233, 0.26);
  width: 100%;
  max-width: 320px;
}

.cta-button.secondary {
  width: auto;
}

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.1);
  color: #d8e4f2;
  font-size: 0.82rem;
}

.inline-disclaimer {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
  max-width: 46ch;
}

.result-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.hero-result h2 {
  margin-top: 8px;
  font-size: 1.3rem;
}

.result-summary {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.45;
}

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

.metric-grid > div,
.switcher-group,
.diagnostic-form,
.comparison-table-wrap {
  background: var(--bg-muted);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.metric-grid > div {
  padding: 12px;
}

.metric-label {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.mono,
th,
td,
.segmented-button {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.metric-value {
  display: block;
  margin-top: 6px;
  font-size: 1.4rem;
}

.switcher-group {
  margin-top: 12px;
  padding: 10px;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.segmented-button {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(12, 18, 28, 0.85);
  color: var(--text);
  padding: 0 8px;
}

.segmented-button.is-active {
  border-color: color-mix(in srgb, var(--accent) 62%, white);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.text-toggle {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-weight: 700;
}

.diagnostic-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
}

.diagnostic-form label {
  display: grid;
  gap: 6px;
}

.diagnostic-form span {
  color: var(--muted);
  font-size: 0.84rem;
}

.diagnostic-form input,
.diagnostic-form select {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(12, 18, 28, 0.96);
  color: var(--text);
  padding: 0 12px;
  width: 100%;
}

.section-header {
  margin-bottom: 12px;
}

.section-header h2 {
  margin-top: 6px;
  font-size: 1.45rem;
}

.card-grid {
  display: grid;
  gap: 12px;
}

.info-card {
  padding: 16px;
}

.info-card h3 {
  font-size: 1rem;
}

.info-card p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.5;
}

.card-note {
  color: #dce7f3;
}

.comparison-table-wrap {
  overflow: hidden;
  margin-top: 12px;
}

.comparison-grid {
  display: grid;
}

.comparison-row + .comparison-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.comparison-label {
  padding: 12px 12px 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  font-weight: 700;
}

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

.comparison-cell {
  min-width: 0;
  padding: 12px;
}

.comparison-cell + .comparison-cell {
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.comparison-heading {
  display: block;
  margin-bottom: 8px;
  color: #dce7f3;
  font-size: 0.84rem;
}

.comparison-cell strong {
  display: block;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.45;
  word-break: break-word;
}

.module-description,
.module-footnote {
  color: var(--muted);
  line-height: 1.55;
}

.module-footnote {
  margin-top: 10px;
  font-size: 0.84rem;
}

.trust-cta {
  margin-top: 14px;
  display: grid;
  gap: 14px;
  align-items: center;
}

.trust-cta h3 {
  margin-top: 6px;
  font-size: 1.2rem;
}

.trust-cta p:last-of-type {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  padding: 0 16px;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  font-weight: 700;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  padding: 0 0 16px;
  color: var(--muted);
  line-height: 1.55;
}

.site-footer {
  margin-top: 18px;
}

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

.site-footer p + p {
  margin-top: 10px;
  color: var(--muted);
}

@media (min-width: 820px) {
  .page-shell {
    width: min(1160px, calc(100% - 48px));
    padding-top: 22px;
  }

  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    align-items: stretch;
  }

  .hero-copy,
  .hero-result,
  .module-slot,
  .site-footer,
  .trust-cta {
    padding: 22px;
  }

  .leak-grid,
  .trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trust-cta {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}
