/* Smart Gear Diagnostics — landing page and legal pages (T-376).
   One dark theme on purpose: logo v2 is drawn for a black ground (see
   ../README.md, "The SG cutaway"). Colors come from the logo: silver
   (#bcbec0) and Blue Topaz (#70a5d9). */
:root {
  color-scheme: dark;
  --ink: #0a0b0d;
  --paper: #12141a;
  --paper-2: #181b22;
  --line: rgba(232, 236, 240, 0.09);
  --line-strong: rgba(232, 236, 240, 0.18);
  --text: #eceef0;
  --text-dim: #a4abb3;
  --text-faint: #6c737b;
  --silver: #bcbec0;
  --blue: #70a5d9;
  --blue-bright: #94c0ea;
  --radius: 14px;
}

* { box-sizing: border-box; }
img { max-width: 100%; height: auto; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--blue-bright); }
a:hover { color: var(--text); }

.display { font-family: "Big Shoulders Display", "Arial Narrow", sans-serif; }

.wrap {
  width: 100%;
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 40rem) { .wrap { padding-inline: 1.5rem; } }

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 11, 13, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand img { width: 2.25rem; height: 2.25rem; }
.brand span { white-space: nowrap; }
.site-nav { display: flex; gap: 1.25rem; font-size: 0.95rem; }
.site-nav a { color: var(--text-dim); text-decoration: none; white-space: nowrap; }
.site-nav a:hover { color: var(--text); }
.site-nav .nav-signin { color: var(--blue-bright); font-weight: 600; }
@media (max-width: 34rem) {
  .brand span { display: none; }
  .site-nav { gap: 0.85rem; font-size: 0.9rem; }
}
@media (max-width: 24rem) {
  .site-nav .nav-buy { display: none; }
}

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding-block: clamp(3rem, 9vw, 6rem) clamp(2.5rem, 7vw, 4.5rem);
}
.hero-logo { width: min(19rem, 70vw); margin: 0 auto 2rem; display: block; }
.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blue);
}
.hero h1 {
  margin: 0 auto;
  max-width: 18ch;
  font-size: clamp(2.4rem, 7vw, 4.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
.hero .lede {
  margin: 1.25rem auto 0;
  max-width: 40rem;
  color: var(--text-dim);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  text-wrap: pretty;
}
.actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.btn {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.btn-primary { background: var(--blue); border-color: var(--blue); color: #08111b; }
.btn-primary:hover { background: var(--blue-bright); color: #08111b; }
.btn:not(.btn-primary):hover { border-color: var(--silver); color: var(--text); }
.chip {
  margin: 2rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.chip::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--blue);
}

/* ── Sections ───────────────────────────────────────────────────────── */
section { padding-block: clamp(2.5rem, 7vw, 4.5rem); border-top: 1px solid var(--line); }
section h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.05;
}
.section-lede { margin: 0 0 2rem; color: var(--text-dim); max-width: 40rem; }

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.5rem;
}
.card h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.card p { margin: 0; color: var(--text-dim); }
.card .num {
  display: inline-block;
  margin-bottom: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--blue);
}

.needs {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  color: var(--text-dim);
  font-size: 0.95rem;
}
.needs li::before { content: "✓"; color: var(--blue); margin-right: 0.45rem; }

/* ── Pricing ────────────────────────────────────────────────────────── */
.packs {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  max-width: 44rem;
}
.pack { text-align: left; }
.pack .size { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.pack .size small { font-size: 1rem; font-weight: 600; color: var(--text-dim); margin-left: 0.35rem; font-family: "Work Sans", sans-serif; }
.pack .price { margin-top: 1rem; font-size: 1.6rem; font-weight: 600; }
.pack .price small { font-size: 0.95rem; color: var(--text-dim); font-weight: 500; }
.pack .cad { margin-top: 0.15rem; color: var(--text-dim); }
.pack .per { margin-top: 1rem; font-size: 0.9rem; color: var(--text-faint); }
.fine {
  margin: 1.75rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-dim);
  max-width: 44rem;
}
.fine li { margin-bottom: 0.35rem; }

/* ── Contact ────────────────────────────────────────────────────────── */
.contact-mail { font-size: clamp(1.15rem, 3vw, 1.5rem); font-weight: 600; word-break: break-word; }
.company { margin-top: 1rem; color: var(--text-dim); font-size: 0.95rem; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding-block: 2rem 2.5rem; font-size: 0.9rem; color: var(--text-faint); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; align-items: center; justify-content: space-between; }
.legal-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.legal-links a { color: var(--text-dim); text-decoration: none; }
.legal-links a:hover { color: var(--text); }
.legal-links a[aria-current="page"] { color: var(--text); }

/* ── Legal pages ────────────────────────────────────────────────────── */
.legal { max-width: 46rem; padding-block: clamp(2rem, 6vw, 3.5rem) 3rem; }
.legal h1 { margin: 0 0 1.5rem; font-size: clamp(2.2rem, 6vw, 3.2rem); font-weight: 800; line-height: 1.05; }
.legal p { margin: 0 0 1.1rem; color: #d3d7db; }
.legal p strong { color: var(--text); font-weight: 600; }
.legal .back { display: inline-block; margin-bottom: 1.5rem; font-size: 0.95rem; text-decoration: none; }
