/* TorQ OBD Scanner — shared stylesheet
   torquey.nuravtech.com
*/

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

:root {
  --bg:        #0d1117;
  --surface:   #161b22;
  --border:    #21262d;
  --green:     #3fb950;
  --green-dim: #238636;
  --text:      #e6edf3;
  --muted:     #8b949e;
  --radius:    10px;
  --max-w:     860px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

/* ── NAV ─────────────────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,17,23,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  margin-right: auto;
}

.nav-brand img { width: 32px; height: 32px; border-radius: 7px; }

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}

nav a:hover, nav a.active {
  color: var(--text);
  background: var(--border);
}

/* ── HERO ─────────────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 72px 24px 56px;
}

.hero img.icon {
  width: 110px;
  height: 110px;
  border-radius: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(63,185,80,.25);
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 40%, var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.hero p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 540px;
  margin: 0 auto 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-dim);
  color: #fff;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background .15s, transform .1s;
}

.btn:hover { background: var(--green); transform: translateY(-1px); }

/* ── MAIN CONTENT ─────────────────────────────────────────────────────────── */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ── FEATURE GRID ─────────────────────────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card .icon-sm { font-size: 1.6rem; margin-bottom: 10px; }
.card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.card p  { color: var(--muted); font-size: 0.875rem; }

/* ── PROSE (privacy, T&C, support) ───────────────────────────────────────── */
.prose { max-width: var(--max-w); margin: 0 auto; padding: 48px 24px 80px; }

.prose .page-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 40px;
}

.prose .page-header h1 {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.prose .page-header .meta {
  color: var(--muted);
  font-size: 0.875rem;
}

.prose h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 40px 0 12px;
  color: var(--green);
}

.prose h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 24px 0 8px;
}

.prose p  { margin-bottom: 16px; color: var(--muted); }
.prose li { color: var(--muted); margin-bottom: 6px; }
.prose ul, .prose ol { padding-left: 20px; margin-bottom: 16px; }

.prose strong { color: var(--text); }

.prose a { color: var(--green); text-decoration: underline; }

/* table */
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-bottom: 24px;
}
.prose th {
  background: var(--surface);
  text-align: left;
  padding: 10px 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text);
}
.prose td {
  padding: 9px 14px;
  border: 1px solid var(--border);
  color: var(--muted);
}
.prose tr:nth-child(even) td { background: #0f1419; }

/* callout */
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* faq */
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { font-size: 0.975rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.faq-item p  { margin: 0; font-size: 0.9rem; }

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 28px 24px;
  color: var(--muted);
  font-size: 0.8rem;
}

footer a { color: var(--muted); text-decoration: underline; }
footer .links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 10px; }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero h1   { font-size: 1.7rem; }
  nav a      { display: none; }
  nav a.nav-cta { display: inline-flex; }
  .prose .page-header h1 { font-size: 1.5rem; }
}
