/*
 * GMC Sync — shared design system (marketing site now; operator console
 * later). Design tokens up top so the whole look is tweakable from one
 * place. Aesthetic: deep-blue brand gradient + frosted glass panels +
 * green accent, echoing the App Store screenshot deck.
 */

:root {
  /* Brand palette */
  --deep: #091161;
  --mid: #172cb5;
  --ink: #1b2049;
  --ink-2: #2e3565;
  --accent: #17a96e;
  --accent-bright: #4ade9c;

  /* Surfaces & text */
  --bg: #070b2e;
  --text: #eef1ff;
  --text-dim: #b9c0e6;
  --text-faint: #8b93c4;
  --card: #ffffff;
  --card-ink: #1b2049;
  --card-dim: #5b6285;

  /* Glass */
  --glass-bg: rgba(10, 16, 74, 0.55);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-blur: 16px;

  /* Geometry */
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --maxw: 1120px;
  --header-h: 68px;

  /* Type scale */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --shadow: 0 30px 70px rgba(3, 6, 40, 0.55);
  --shadow-sm: 0 10px 30px rgba(3, 6, 40, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent-bright);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Background field: brand gradient + soft brand arcs ─────────────── */
.bg-field {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(
      1200px 700px at 78% -8%,
      var(--mid) 0%,
      transparent 55%
    ),
    linear-gradient(168deg, #142499 0%, var(--deep) 46%, #060a34 100%);
}
.bg-arc {
  position: fixed;
  z-index: -1;
  opacity: 0.08;
  pointer-events: none;
}
.bg-arc.one {
  top: -180px;
  right: -160px;
  width: 620px;
}
.bg-arc.two {
  bottom: -260px;
  left: -220px;
  width: 720px;
}

/* ─── Sticky glass header ────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(7, 11, 46, 0.6);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
  border-bottom: 1px solid var(--glass-border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  color: #fff;
}
.brand img {
  width: 26px;
  height: 26px;
}
/* Full Intulon GMC Sync lockup, sized to fill the header (was too small at
   34px). Wide aspect — size by height only. */
.brand img.lockup {
  width: auto;
  height: 46px;
}
.brand .g {
  color: var(--accent-bright);
}
.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  align-items: center;
}
.nav a:not(.btn) {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 15px;
}
.nav a:not(.btn):hover {
  color: #fff;
  text-decoration: none;
}
@media (max-width: 760px) {
  .nav a.hide-sm {
    display: none;
  }
}

/* ─── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-primary,
.btn-primary:visited,
.btn-primary:hover {
  background: linear-gradient(120deg, var(--accent-bright), var(--accent));
  color: #05231a;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(23, 169, 110, 0.4);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: var(--glass-border);
}

/* ─── Glass panel (the signature surface) ────────────────────────────── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.25);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.25);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ─── Sections ───────────────────────────────────────────────────────── */
section {
  padding: 96px 0;
}
.eyebrow {
  color: var(--accent-bright);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
/* ─── FAQ search (help.html) ────────────────────────────────────────── */
.faq-search {
  margin: 20px 0 10px;
}
.faq-search input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font: inherit;
  font-size: 16px;
}
.faq-search input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
.faq-search input:focus {
  outline: 2px solid var(--accent-bright);
  border-color: transparent;
}
.faq-search-empty {
  margin-top: 12px;
  opacity: 0.7;
}

h1,
h2,
h3 {
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
h1 {
  font-size: clamp(38px, 6vw, 66px);
  font-weight: 800;
}
h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
}
h3 {
  font-size: 20px;
  font-weight: 700;
}
.lead {
  color: var(--text-dim);
  font-size: clamp(17px, 2.2vw, 21px);
  max-width: 640px;
}

/* ─── Hero ───────────────────────────────────────────────────────────── */
.hero {
  padding: 84px 0 72px;
}
.hero h1 {
  max-width: 900px;
}
.hero h1 .g {
  background: linear-gradient(120deg, var(--accent-bright), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  margin-top: 22px;
}
.hero .cta {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero .trust {
  margin-top: 22px;
  color: var(--text-faint);
  font-size: 14px;
}

/* Compare cards (the $80 vs $12 device) */
.compare {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
}
@media (max-width: 760px) {
  .compare {
    grid-template-columns: 1fr;
  }
  .compare .arrow {
    transform: rotate(90deg);
    justify-self: center;
  }
}
.compare .card {
  padding: 24px 26px;
  border-radius: var(--radius);
}
.compare .bad {
  background: rgba(35, 42, 85, 0.6);
  border: 1px solid rgba(255, 138, 128, 0.25);
}
.compare .good {
  background: #fff;
  color: var(--card-ink);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.compare .good::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--accent-bright), var(--accent));
}
.compare .tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.compare .bad .tag {
  color: var(--text-faint);
}
.compare .good .tag {
  color: var(--accent);
}
.compare .big {
  font-size: 26px;
  font-weight: 800;
  margin: 8px 0 6px;
}
.compare .bad .big {
  color: #ff8a80;
}
.compare .sub {
  font-size: 15px;
}
.compare .bad .sub {
  color: #ff8a80;
  opacity: 0.85;
}
.compare .good .sub {
  color: var(--card-dim);
}
.compare .arrow svg {
  width: 44px;
  height: 24px;
}

/* ─── Feature grid ───────────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 44px;
}
.feature {
  padding: 28px;
}
.feature .ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, rgba(74, 222, 156, 0.2), rgba(23, 169, 110, 0.14));
  border: 1px solid rgba(74, 222, 156, 0.28);
  margin-bottom: 16px;
}
.feature .ic svg {
  width: 22px;
  height: 22px;
}
.feature h3 {
  margin-bottom: 8px;
}
.feature p {
  color: var(--text-dim);
  font-size: 15px;
}

/* ─── Pricing ────────────────────────────────────────────────────────── */
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 44px;
}
.tier {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}
.tier.featured {
  border-color: rgba(74, 222, 156, 0.5);
  box-shadow: 0 0 0 1px rgba(74, 222, 156, 0.3), var(--shadow-sm);
}
.tier .name {
  font-weight: 700;
  color: #fff;
  font-size: 18px;
}
.tier .price {
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  margin: 10px 0 2px;
}
.tier .price span {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-faint);
}
.tier .cap {
  color: var(--accent-bright);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 14px;
}
.tier ul {
  list-style: none;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.tier li {
  color: var(--text-dim);
  font-size: 14px;
  padding-left: 24px;
  position: relative;
}
.tier li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-bright);
  font-weight: 700;
}
.pill {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #05231a;
  background: linear-gradient(120deg, var(--accent-bright), var(--accent));
  padding: 3px 10px;
  border-radius: 999px;
}

/* ─── Callout band ───────────────────────────────────────────────────── */
.band {
  text-align: center;
  padding: 64px 0;
}
.band .glass {
  padding: 52px 32px;
  max-width: 820px;
  margin: 0 auto;
}

/* ─── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--glass-border);
  padding: 44px 0;
  color: var(--text-faint);
  font-size: 14px;
}
.site-footer .cols {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
/* Column links (landing footer) stack; the inline footer on legal/help
   pages keeps its anchors inline so the "·" separators don't orphan. */
.site-footer .cols a {
  color: var(--text-dim);
  display: block;
  margin-top: 8px;
}
.site-footer a {
  color: var(--text-dim);
}
.site-footer h4 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ─── Legal / long-form pages ────────────────────────────────────────── */
.doc {
  padding: 64px 0 96px;
}
.doc .glass {
  padding: 48px 52px;
  max-width: 820px;
  margin: 0 auto;
}
.doc h1 {
  font-size: 38px;
  margin-bottom: 8px;
}
.doc .updated {
  color: var(--text-faint);
  font-size: 14px;
  margin-bottom: 28px;
}
.doc h2 {
  font-size: 22px;
  margin: 32px 0 10px;
}
.doc p,
.doc li {
  color: var(--text-dim);
  font-size: 16px;
  margin-bottom: 12px;
}
.doc ul {
  padding-left: 22px;
}
.doc a {
  color: var(--accent-bright);
}
