:root {
  --bg: #0a0d14;
  --bg-alt: #10161f;
  --bg-raised: #141922;
  --ink: #e9e6dc;
  --ink-dim: #a3aab8;
  --line: rgba(233, 230, 220, 0.12);
  --accent: #4f9ddb;
  --accent-ink: #8ec4ec;
  --accent-soft: #142a3a;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 16px 40px rgba(0, 0, 0, 0.45);
  --cta: #29c26b;
  --cta-hover: #22a85b;
  --cta-ink: #0a1f13;
  --cta-shadow: 0 2px 6px rgba(41, 194, 107, 0.22), 0 10px 26px rgba(41, 194, 107, 0.16);
  --border-strong: rgba(233, 230, 220, 0.34);
  /* --seal: the "stays on your device" motif only — a hairline and a small mark,
     never a fill, never on type. Warm like the ink so it belongs on the navy. */
  --seal: #c9a86a;
  --seal-dim: rgba(201, 168, 106, 0.4);
  --font-sans: "Public Sans", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-ink); }

h1, h2, h3, .display {
  font-family: var(--font-serif);
  font-weight: 440;
  letter-spacing: -0.005em;
}

h2 { font-size: 1.9rem; line-height: 1.15; margin: 0 0 16px; }
h3 { font-size: 1.2rem; line-height: 1.25; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}
.cta-button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.display {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
}

.dek {
  color: var(--ink-dim);
  font-size: 1.075rem;
  line-height: 1.62;
  max-width: 60ch;
  margin: 0 0 28px;
}

.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.cta-button {
  display: inline-block;
  background: var(--cta);
  color: var(--cta-ink);
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: var(--cta-shadow);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.cta-button:hover { background: var(--cta-hover); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

table.compare th, table.compare td {
  border: 1px solid var(--line);
  padding: 12px 16px;
  text-align: left;
}

table.compare th { background: var(--bg-raised); }

.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}

.disclaimer {
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 20px;
  font-size: 0.9rem;
  color: var(--ink-dim);
}

footer {
  padding: 32px 0;
  color: var(--ink-dim);
  font-size: 0.85rem;
  text-align: center;
}

footer .footer-links { margin-bottom: 10px; }
footer .footer-links a { color: var(--ink-dim); margin: 0 12px; }
footer .footer-links a:hover { color: var(--ink); }

/* Site nav */
.site-nav {
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-nav .brand {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.05rem;
}

.site-nav .links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.site-nav .links a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav .links a:hover { color: var(--ink); }

.site-nav .links a.nav-cta {
  color: var(--accent-ink);
  font-weight: 600;
}

/* Inner-page heads */
.page-head {
  padding: 48px 0 8px;
}

.prose { max-width: 68ch; }
.prose h2 { margin-top: 40px; }
.prose p { color: var(--ink-dim); }
.prose li { color: var(--ink-dim); margin-bottom: 6px; }

.callout {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}

/* Forms */
.form-grid { display: flex; flex-direction: column; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; color: var(--ink-dim); }
.form-control {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 1rem;
}
.form-control:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-hp { position: absolute; left: -9999px; }

/* Score bars (sample report) */
.score-row { display: flex; align-items: center; gap: 14px; margin: 14px 0; }
.score-row .score-label { width: 200px; flex-shrink: 0; font-size: 0.92rem; }
.score-row .score-track {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  overflow: hidden;
}
.score-row .score-fill {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}
.score-row .score-value { width: 52px; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-dim); font-size: 0.9rem; }

.score-dial {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.score-dial .score-number { font-size: 3.5rem; font-weight: 700; line-height: 1; }
.score-dial .score-grade { color: var(--ink-dim); font-size: 1rem; margin-top: 6px; }

/* Narrow centered reading column, for inner pages (about/contact/legal/sample-report) */
.wrap {
  max-width: 780px;
  margin: 0 auto;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-row { display: flex; flex-direction: column; margin-bottom: 16px; }
.contact-row:last-child { margin-bottom: 0; }
.contact-row .label {
  font-size: 0.78rem;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.contact-row .val { font-size: 1rem; }

/* Homepage hero */
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: stretch;
}

.hero-visual svg { width: 100%; height: auto; display: block; }

@media (max-width: 780px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { order: 0; margin: 0; }
}

/* --- Privacy motif: the data stays inside the device, nothing goes out --- */
.privacy-mark { display: inline-block; vertical-align: middle; color: var(--seal); flex-shrink: 0; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--seal);
  margin-bottom: 18px;
}

/* The screenshot inside a drawn "your device" enclosure, with a severed line out */
.stay-frame {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stay-frame .stay-device {
  position: relative;
  border: 1px solid var(--seal-dim);
  border-radius: 16px;
  padding: 10px;
  background: rgba(201, 168, 106, 0.03);
}
.stay-frame .stay-device::before,
.stay-frame .stay-device::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--seal);
  border-radius: 2px;
}
.stay-frame .stay-device::before { top: -3px; left: -3px; border-right: 0; border-bottom: 0; }
.stay-frame .stay-device::after { bottom: -3px; right: -3px; border-left: 0; border-top: 0; }
.stay-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
}

/* The screenshot is tall; on desktop it scrolls inside the device frame.
   Scroll lives on an inner wrapper so it never clips the corner brackets. */
.stay-scroll { border-radius: 8px; }
@media (min-width: 781px) {
  .stay-scroll {
    max-height: 600px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--seal-dim) transparent;
  }
  .stay-scroll::-webkit-scrollbar { width: 8px; }
  .stay-scroll::-webkit-scrollbar-track { background: transparent; }
  .stay-scroll::-webkit-scrollbar-thumb {
    background: var(--seal-dim);
    border-radius: 999px;
  }
  .stay-scroll::-webkit-scrollbar-thumb:hover { background: var(--seal); }
}
.stay-caption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--ink-dim);
}
.stay-caption .sever {
  flex: 1;
  height: 1px;
  background-image: linear-gradient(to right, var(--seal-dim) 0 4px, transparent 4px 8px);
  background-size: 8px 1px;
}

/* --- CTA block: no buy button is ever unchaperoned --- */
.cta-block { margin-top: 8px; }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.cta-button.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-strong);
  box-shadow: none;
  font-weight: 600;
}
.cta-button.secondary:hover { background: var(--bg-raised); border-color: var(--ink); }
.trust-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 6px;
  font-size: 0.92rem;
  color: var(--ink);
}
.trust-line {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-dim);
}

/* --- Closing band: full-bleed, carries the motif, weightier than mid-page --- */
.closing-band {
  background: var(--bg-raised);
  border-top: 1px solid var(--line);
  border-bottom: none;
  padding: 80px 0;
  text-align: center;
}
.closing-band .privacy-mark { color: var(--seal); display: block; margin: 0 auto 20px; }
.closing-band .closing-line {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.25;
  max-width: 24ch;
  margin: 0 auto 28px;
}
/* Centered CTA cluster (hero + closing band): buttons row and the trust
   strip both centered under the buttons. The trust strip switches from a
   flex row to centered text so it stays centered even if it wraps. */
.closing-band .cta-actions,
.hero-cta .cta-actions { justify-content: center; }

.closing-band .trust-strip,
.hero-cta .trust-strip {
  display: block;
  text-align: center;
}
.hero-cta .trust-line { text-align: center; }
