/* Verity landing page: the extension's light, soft look. */
:root {
  --canvas: #f4f4f2;
  --grid: rgb(0 0 0 / 0.035);
  --surface: #ffffff;
  --ink: #1c1c1e;
  --ink-2: #3a3a3c;
  --muted: #6e6e73;
  --faint: #a1a1a6;
  --line: rgb(0 0 0 / 0.07);
  --tile: rgb(0 0 0 / 0.05);
  --accent: #4f7cf0;
  --accent-hover: #4470e6;
  --accent-soft: #e9effd;
  --accent-text: #3561d6;
  --radius-card: 20px;
  --shadow-card: 0 0 0 1px rgb(0 0 0 / 0.05), 0 1px 2px rgb(0 0 0 / 0.04), 0 6px 18px rgb(0 0 0 / 0.04);
  --shadow-hero: 0 0 0 1px rgb(0 0 0 / 0.06), 0 30px 60px -12px rgb(50 50 93 / 0.22), 0 18px 36px -18px rgb(0 0 0 / 0.18);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Segoe UI', system-ui, sans-serif;
  --gutter: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--tile);
  font: 0.9em/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
}

.wrap {
  width: min(1120px, 100% - var(--gutter) * 2);
  margin-inline: auto;
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand-small {
  font-size: 15px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition:
    background 150ms,
    color 150ms;
}
.nav-links a:hover {
  background: var(--tile);
  color: var(--ink);
}
.nav-links .nav-cta {
  background: var(--accent-soft);
  color: var(--accent-text);
}
.nav-links .nav-cta:hover {
  background: #dfe8fc;
  color: var(--accent-text);
}

/* ---------- Buttons, chips, badges ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 150ms,
    transform 150ms,
    box-shadow 150ms;
}
.button:active {
  transform: scale(0.98);
}
.button:focus-visible,
.nav-links a:focus-visible,
.status:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgb(79 124 240 / 0.3), 0 6px 16px rgb(79 124 240 / 0.28);
}
.button-primary:hover {
  background: var(--accent-hover);
}
.button-secondary {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-card);
}
.button-secondary:hover {
  background: #fafafa;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: color-mix(in srgb, var(--cat) 78%, #000);
  background: color-mix(in srgb, var(--cat) 13%, #fff);
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 88px;
  background-color: var(--canvas);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(transparent, var(--surface));
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 56px;
}
.eyebrow,
.section-eyebrow {
  margin-bottom: 14px;
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 600;
}
.hero-logo img {
  width: min(340px, 78%);
  height: auto;
}
.tagline {
  margin-top: 14px;
  color: var(--ink);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.lede {
  margin-top: 20px;
  max-width: 34em;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.6;
}
.lede em {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.hero-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-hero);
  object-fit: cover;
}
.hero-media--placeholder {
  display: grid;
  place-items: center;
  background-color: #fbfbfa;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 18px 18px;
  outline: 2px dashed rgb(79 124 240 / 0.28);
  outline-offset: -12px;
}
.placeholder-inner {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}
.placeholder-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgb(79 124 240 / 0.35);
}
.placeholder-icon svg {
  margin-left: 3px;
}
.placeholder-label {
  font-size: 15px;
  font-weight: 600;
}
.placeholder-hint {
  color: var(--faint);
  font-size: 13px;
}

/* ---------- Sections ---------- */

.section {
  padding: 96px 0;
}
.section-tinted {
  background: var(--canvas);
}
.section h2 {
  max-width: 18em;
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.section-lede {
  margin-top: 16px;
  max-width: 38em;
  color: var(--ink-2);
  font-size: 17px;
}
.section h3 {
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.step {
  padding: 26px 24px 28px;
}
.step p,
.honest p,
.install-steps p,
.technique p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.step-number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 700;
  flex: none;
}

/* What it detects */
.techniques {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.technique {
  padding: 22px 24px 24px;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.technique p {
  margin-top: 12px;
}

/* Honest by design */
.honest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.honest {
  padding: 26px 26px 28px;
}
.metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
  padding: 24px 26px;
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px rgb(79 124 240 / 0.12);
}
.metrics p {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 15px;
}
.metrics .badge {
  background: var(--surface);
}

/* Install */
.install {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: start;
}
.install-copy .button {
  margin-top: 28px;
}
.install-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.install-steps li {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
}
.install-steps .step-number {
  margin-bottom: 0;
}
.install-steps p {
  margin-top: 4px;
}

/* ---------- Footer ---------- */

.footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-note {
  flex: 1;
  min-width: 240px;
  color: var(--muted);
  font-size: 14px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--tile);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--faint);
}
.status[data-state='up'] .status-dot {
  background: #16a34a;
  box-shadow: 0 0 0 3px rgb(22 163 74 / 0.15);
}
.status[data-state='down'] .status-dot {
  background: #dc2626;
}

/* ---------- Small screens ---------- */

@media (max-width: 900px) {
  .hero {
    padding: 48px 0 64px;
  }
  .hero-inner,
  .install {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .steps,
  .techniques {
    grid-template-columns: minmax(0, 1fr);
  }
  .honest-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .section {
    padding: 72px 0;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 16px;
  }
  .nav-links a:not(.nav-cta) {
    display: none;
  }
  .hero-actions .button {
    flex: 1 1 100%;
  }
  .metrics {
    flex-direction: column;
    align-items: flex-start;
  }
  .lede {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
