/* Garage Health website — garagehealthapp.com
   Layout: one centered column like a service manual; the hero pairs the
   headline with a live-looking "readout" card from the app, then thin
   hairline-ruled sections with mono labels.
   Colors and type come straight from the app's own design system
   (css/styles.css in the app: "titanium & ice blue"), so the site and the
   app read as one product. System fonts only: no third-party font or
   script requests, which keeps the site consistent with the app's
   no-trackers privacy stance. */
:root {
  --bg: #08090B;
  --surface: #15171A;
  --surface2: #1D2024;
  --line: rgba(140, 180, 214, 0.20);
  --line-soft: rgba(140, 180, 214, 0.10);
  --accent: #8FC1E8;
  --accent-glow: rgba(143, 193, 232, 0.16);
  --text: #EDF1F5;
  --text2: #A3AFBA;
  --text3: #6B7580;
  --success: #22C97A;
  --warning: #F5A623;
  --danger: #F75B5B;
  --chrome: linear-gradient(180deg, #F4F6F8 0%, #C9CFD5 55%, #AEB5BC 100%);
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.875rem, 1.3rem + 2.6vw, 3rem);
  --step-4: clamp(2.25rem, 1.4rem + 4vw, 4rem);
  --radius: 14px;
  --radius-sm: 9px;
  --col: 1080px;
  --measure: 66ch;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img, svg { max-width: 100%; }

.wrap { max-width: var(--col); margin-inline: auto; padding-inline: 20px; }

/* ── Header ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: rgba(8, 9, 11, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 14px; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -0.01em;
  font-size: 1.0625rem;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--chrome); color: #0B0D10;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 1px 0 rgba(0,0,0,0.6);
}
.brand-mark svg { width: 22px; height: 22px; }
.site-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-nav a {
  color: var(--text2); text-decoration: none; font-size: var(--step--1); font-weight: 500;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* ── Hero ───────────────────────────────────────────── */
.hero { padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 72px); }
.hero .wrap {
  display: grid; gap: clamp(32px, 5vw, 64px);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center;
}
.eyebrow {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 18px;
}
.hero h1 {
  font-size: var(--step-4); line-height: 1.04; letter-spacing: -0.035em;
  font-weight: 750; margin: 0 0 20px; text-wrap: balance;
}
.hero h1 .dim { color: var(--text3); }
.lede { font-size: var(--step-1); color: var(--text2); max-width: 34ch; margin: 0 0 28px; line-height: 1.5; }
.status-line {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--step--1); color: var(--text2);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
}
.status-line .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--warning);
  box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.15);
}

/* Readout: an example vehicle card in the app's own visual language */
.readout {
  background: linear-gradient(180deg, var(--surface2), var(--surface));
  border: 1px solid var(--line); border-radius: 20px; padding: 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 30px 60px -30px rgba(0,0,0,0.8);
  min-width: 0;
}
.readout-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.readout-car { font-weight: 700; font-size: var(--step-1); letter-spacing: -0.01em; }
.tag {
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text3); border: 1px solid var(--line-soft); border-radius: 6px; padding: 2px 7px; white-space: nowrap;
}
.readout-sub { color: var(--text3); font-family: var(--font-mono); font-size: 0.75rem; margin: 0 0 18px; }
.readout-label {
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text3); margin: 0 0 8px;
}
.issue {
  display: grid; grid-template-columns: 4px minmax(0, 1fr); gap: 12px;
  padding: 10px 12px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.025);
  margin-bottom: 8px;
}
.issue .bar { border-radius: 4px; background: var(--danger); }
.issue.warn .bar { background: var(--warning); }
.issue strong { display: block; font-size: 0.9375rem; font-weight: 600; }
.issue span { color: var(--text2); font-size: 0.8125rem; line-height: 1.45; }
.service { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.service-row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9375rem; margin-bottom: 8px; }
.service-row .mi { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--accent); white-space: nowrap; }
.gauge { height: 6px; border-radius: 6px; background: var(--surface2); overflow: hidden; }
.gauge i { display: block; height: 100%; width: 79%; border-radius: 6px; background: linear-gradient(90deg, var(--accent), #CFE6F7); }
.readout-note { margin: 14px 0 0; font-size: 0.75rem; color: var(--text3); }

/* ── Sections ───────────────────────────────────────── */
.section { padding-block: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line-soft); }
.section-head { display: grid; gap: 8px; margin-bottom: 36px; max-width: 46rem; }
.section-head h2 {
  font-size: var(--step-3); line-height: 1.1; letter-spacing: -0.03em; margin: 0; text-wrap: balance;
}
.section-head p { margin: 0; color: var(--text2); font-size: var(--step-1); line-height: 1.5; }

.features { display: grid; gap: 1px; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--bg); padding: 26px 24px 28px; min-width: 0; }
.feature h3 { margin: 0 0 8px; font-size: var(--step-1); letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--text2); font-size: 0.9375rem; }
.feature .spec {
  display: block; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}

.privacy-band { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ledger { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ledger h3 {
  margin: 0; padding: 14px 18px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text2); background: var(--surface); border-bottom: 1px solid var(--line-soft);
}
.ledger ul { list-style: none; margin: 0; padding: 6px 0; }
.ledger li { padding: 10px 18px; font-size: 0.9375rem; color: var(--text); display: grid; gap: 2px; }
.ledger li small { color: var(--text3); font-size: 0.8125rem; }
.ledger.stays h3 { color: var(--success); }

/* ── Document pages (privacy, terms, support) ───────── */
.doc { padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.doc h1 { font-size: var(--step-3); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 10px; text-wrap: balance; }
.doc .updated { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text3); letter-spacing: 0.04em; margin: 0 0 36px; }
.doc-body { max-width: var(--measure); }
.doc-body h2 { font-size: var(--step-1); letter-spacing: -0.01em; margin: 40px 0 10px; }
.doc-body p, .doc-body li { color: var(--text2); }
.doc-body strong { color: var(--text); font-weight: 600; }
.doc-body ul { padding-left: 1.2em; }
.doc-body li { margin-bottom: 8px; }
.summary {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 8px;
  background: linear-gradient(180deg, var(--surface), rgba(21,23,26,0.4));
}
.summary p { margin: 0; color: var(--text); }

.contact-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 8px 0 12px;
  background: var(--surface);
}
.contact-card .addr { font-family: var(--font-mono); font-size: 1rem; color: var(--text); word-break: break-all; user-select: all; }
.btn {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 0.875rem;
  color: #0B0D10; background: var(--chrome); border-radius: 10px; padding: 9px 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}
.btn:hover { filter: brightness(1.05); }

.faq details { border-top: 1px solid var(--line-soft); padding-block: 14px; }
.faq details:last-child { border-bottom: 1px solid var(--line-soft); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; }

/* ── Footer ─────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line-soft); padding-block: 32px calc(32px + env(safe-area-inset-bottom, 0px)); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.site-footer p { margin: 0; color: var(--text3); font-size: var(--step--1); max-width: 52ch; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer nav a { color: var(--text2); text-decoration: none; font-size: var(--step--1); }
.site-footer nav a:hover { color: var(--text); }

@media (max-width: 820px) {
  .hero .wrap, .privacy-band { grid-template-columns: minmax(0, 1fr); }
  .features { grid-template-columns: minmax(0, 1fr); }
  .lede { max-width: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .gauge i { animation: fill 1.2s cubic-bezier(.2,.7,.2,1) both; transform-origin: left; }
  @keyframes fill { from { transform: scaleX(0.15); } to { transform: scaleX(1); } }
}
