/* Smart Gear Diagnostics: landing page and legal pages.
   T-458 (22/11/26): restyled to match the app (apps/web): same fonts (Space Grotesk
   for display, Inter for text), same colours (the app's default "Midnight Bay" tokens, copied
   from apps/web/app/globals.css), same card, title-band and button looks, and the app's
   moving hero background (hero.js). The legal pages share this file; their words are untouched. */
:root {
  color-scheme: dark;
  --background: #0e0e11;
  --foreground: #e6e4ef;
  --card: #19191e;
  --card-edge: #3a3a44;
  --primary: #b7c8e1;
  --primary-foreground: #314156;
  --accent: #edecff;
  --muted-foreground: #abaab4;
  --on-surface-variant: #abaab4;
  --surface-container-highest: #24252d;
  --hairline: rgba(255, 255, 255, 0.05);
  --hairline-strong: rgba(255, 255, 255, 0.1);
  --radius: 0.5rem;
  --radius-xl: 0.7rem;
  --radius-md: 0.4rem;
}

* { 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;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::selection, ::selection { background: var(--primary); color: var(--primary-foreground); }
main { flex: 1; }

a { color: var(--primary); }
.display { font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif; }

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

/* ── Header (the app's bar: blurred, hairline edge) ─────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(14, 14, 17, 0.6);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.05);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap { max-width: 80rem; padding-inline: 1.5rem; display: flex; align-items: center; gap: 1rem; min-height: 4rem; }
.brand {
  display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0;
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.5rem;
  letter-spacing: -0.05em; text-transform: uppercase; color: var(--primary); text-decoration: none; white-space: nowrap;
}
.brand img { width: 2.25rem; height: 2.25rem; }
.site-nav { flex: 1; display: flex; justify-content: center; align-items: center; gap: 1.5rem; }
.site-nav a {
  font-family: "Space Grotesk", sans-serif; font-size: 1rem; letter-spacing: -0.025em; text-decoration: none;
  color: var(--on-surface-variant); padding-bottom: 0.25rem; border-bottom: 2px solid transparent; white-space: nowrap;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--foreground); }
.header-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

/* the app's buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem; white-space: nowrap;
  height: 2rem; padding: 0 0.625rem; border-radius: var(--radius); border: 1px solid transparent;
  font: 500 0.875rem/1 "Inter", sans-serif; text-decoration: none; cursor: pointer;
  background: var(--primary); color: var(--primary-foreground); transition: filter 0.15s, transform 0.05s;
}
.btn:hover { filter: brightness(1.1); color: var(--primary-foreground); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.btn-sm { height: 1.75rem; font-size: 0.8rem; border-radius: var(--radius-md); }
.btn-sm svg { width: 0.875rem; height: 0.875rem; }
.btn-outline { background: rgba(255, 255, 255, 0.05); border-color: var(--hairline-strong); color: var(--foreground); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); color: var(--foreground); }
.btn-bordered { background: var(--surface-container-highest); border-color: rgba(230, 228, 239, 0.8); color: var(--foreground); font-weight: 600; }
.btn-bordered:hover { color: var(--foreground); }
.btn-lg { height: 2.25rem; }
.btn-hero {
  height: auto; padding: 1rem 2.5rem; border-radius: var(--radius-xl);
  font: 600 1.125rem/1.5 "Space Grotesk", sans-serif; letter-spacing: 0.025em; gap: 0.5rem;
}
.btn-hero svg { width: 1.25rem; height: 1.25rem; }

/* ── Hero: the app's account-page hero ─────────────────────────────── */
.page { position: relative; overflow: hidden; }
.glow-a { position: absolute; top: -10%; left: -10%; width: 40%; height: 40%; background: rgba(183, 200, 225, 0.1); filter: blur(120px); border-radius: 50%; pointer-events: none; }
.glow-b { position: absolute; bottom: 10%; right: -5%; width: 30%; height: 30%; background: rgba(220, 221, 254, 0.1); filter: blur(100px); border-radius: 50%; pointer-events: none; }
.hero {
  position: relative; z-index: 1; width: 100%; min-height: min(75vh, 46rem); overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
#hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 4rem 1.5rem; }
.hero-logo { width: min(17rem, 68vw); margin: 0 auto 2rem; display: block; }
.hero h1 {
  margin: 0 0 1.5rem; font-family: "Space Grotesk", sans-serif; font-weight: 700; color: var(--foreground);
  font-size: 3rem; line-height: 1.25; letter-spacing: -0.05em; text-shadow: 0 0 20px currentColor;
}
@media (min-width: 48rem) { .hero h1 { font-size: 4.5rem; line-height: 1; } }
@media (min-width: 64rem) { .hero h1 { font-size: 6rem; line-height: 1; } }
.gradient-text { background: linear-gradient(to right, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.hero .lede { margin: 0 auto 3rem; max-width: 42rem; font-size: 1.125rem; font-weight: 300; line-height: 1.625; color: var(--on-surface-variant); }
@media (min-width: 48rem) { .hero .lede { font-size: 1.25rem; } }

/* ── Sections: the app's title-band card ────────────────────────────── */
.sections { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4rem; padding: 4rem 1.5rem 5rem; width: 100%; max-width: 72rem; margin-inline: auto; }
@media (min-width: 48rem) { .sections { gap: 6rem; } }
section[id] { scroll-margin-top: 5.5rem; }

.card { background: var(--card); border: 1px solid var(--card-edge); border-radius: var(--radius-xl); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); overflow: hidden; }
.section-card { padding: 0; }
.section-band {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 1rem; border-bottom: 1px solid var(--card-edge); background: rgba(183, 200, 225, 0.1);
}
@media (min-width: 40rem) { .section-band { padding: 1rem 1.25rem; } }
.section-band svg { width: 1.5rem; height: 1.5rem; margin-top: 0.125rem; color: var(--primary); flex-shrink: 0; }
.section-band h2 { margin: 0; font-family: "Space Grotesk", sans-serif; font-size: 1.25rem; line-height: 1.75rem; font-weight: 700; }
.section-band p { margin: 0.125rem 0 0; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted-foreground); }
.section-body { padding: 1rem; }
@media (min-width: 40rem) { .section-body { padding: 1rem 1.25rem; } }

.grid-3 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
@media (min-width: 48rem) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.inner-card { display: flex; flex-direction: column; gap: 0.75rem; height: 100%; padding: 1.5rem; }
.inner-card .num { margin: 0; font-family: "Space Grotesk", sans-serif; font-size: 0.875rem; font-weight: 600; color: var(--primary); }
.inner-card h3 { margin: 0; font-family: "Space Grotesk", sans-serif; font-size: 1.25rem; line-height: 1.75rem; font-weight: 700; }
.inner-card p { margin: 0; font-size: 0.875rem; line-height: 1.625; color: var(--on-surface-variant); }
.inner-card .btn { margin-top: auto; align-self: flex-start; }

.needs { margin: 1.25rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; font-size: 0.875rem; color: var(--on-surface-variant); }
.needs li { display: flex; align-items: center; gap: 0.4rem; }
.needs svg { width: 1rem; height: 1rem; color: var(--primary); }
.intro { margin: 0 0 1.5rem; font-size: 1.125rem; line-height: 1.625; color: var(--on-surface-variant); }
.note { margin: 1.25rem 0 0; font-size: 0.875rem; color: var(--on-surface-variant); }

/* pricing boxes */
.packs { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .packs { grid-template-columns: repeat(3, 1fr); } }
.pack { display: flex; flex-direction: column; gap: 0.5rem; height: 100%; padding: 1.5rem; }
.pack h3 { margin: 0; font-family: "Space Grotesk", sans-serif; font-size: 1.5rem; line-height: 2rem; font-weight: 700; }
.pack .price { margin: 0; font-size: 1.125rem; }
.pack .price strong { font-family: "Space Grotesk", sans-serif; font-size: 2.25rem; line-height: 1.1; font-weight: 700; margin-right: 0.35rem; }
.pack .price small { font-size: 0.875rem; color: var(--muted-foreground); }
.pack ul { margin: 0.75rem 0 1.25rem; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; color: var(--on-surface-variant); }
.pack li { display: flex; gap: 0.5rem; align-items: flex-start; line-height: 1.4; }
.pack li svg { width: 1rem; height: 1rem; margin-top: 0.1rem; color: var(--primary); flex-shrink: 0; }
.pack .btn { margin-top: auto; align-self: stretch; height: 2.5rem; font-weight: 600; }
.pack .lead { margin: 0.5rem 0 1.25rem; font-size: 0.875rem; line-height: 1.625; color: var(--on-surface-variant); }

/* contact */
.contact-mail { font-size: 1.125rem; font-weight: 500; word-break: break-word; text-decoration: underline; text-decoration-color: rgba(183, 200, 225, 0.6); text-underline-offset: 4px; }
.company { margin: 0.75rem 0 0; font-size: 0.875rem; color: var(--on-surface-variant); }

/* ── Footer: the app's footer ───────────────────────────────────────── */
.site-footer { margin-top: auto; padding: 1rem 0; border-top: 1px solid var(--hairline); background: rgba(14, 14, 17, 0.4); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.site-footer .wrap { max-width: 80rem; padding-inline: 1.5rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
@media (min-width: 40rem) { .site-footer .wrap { flex-direction: row; justify-content: space-between; } }
.site-footer span, .legal-links a { font-family: "Space Grotesk", sans-serif; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.site-footer span { color: var(--muted-foreground); font-weight: 700; }
.site-footer span em { font-style: normal; font-weight: 400; letter-spacing: normal; text-transform: none; margin-left: 0.5rem; opacity: 0.7; }
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; }
.legal-links a { color: var(--primary); text-decoration: underline; text-decoration-color: rgba(183, 200, 225, 0.6); text-underline-offset: 4px; font-weight: 500; }
.legal-links a:hover { text-decoration-color: var(--primary); }
.legal-links a[aria-current="page"] { color: var(--foreground); }

/* ── Legal pages (words untouched) ──────────────────────────────────── */
.legal { max-width: 46rem; padding-block: 3rem 3rem; }
.legal h1 { margin: 0 0 1.5rem; font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
.legal p { margin: 0 0 1.1rem; color: #d3d7db; }
.legal p strong { color: var(--foreground); font-weight: 600; }
.legal .back { display: inline-block; margin-bottom: 1.5rem; font-size: 0.95rem; }

/* ── Small screens ──────────────────────────────────────────────────── */
@media (max-width: 47.99rem) {
  .site-header .wrap { flex-wrap: wrap; row-gap: 0; padding-block: 0.5rem; padding-inline: 1rem; }
  .brand { font-size: 1rem; gap: 0.5rem; }
  .brand img { width: 1.75rem; height: 1.75rem; }
  .header-actions { margin-left: auto; }
  .site-nav { order: 3; flex: 1 0 100%; justify-content: center; gap: 1.25rem; padding-block: 0.5rem; border-top: 1px solid var(--hairline); margin-top: 0.4rem; }
  .site-nav a { font-size: 0.9rem; }
  .hero { min-height: min(70vh, 40rem); }
  .btn-hero { padding: 0.9rem 2rem; }
}
