/* Truck Mod Doctor — landing page styles
 *
 * Mobile-first. Pure CSS, no JS. No external fonts (system stack).
 * Palette mirrors the desktop app's dark theme so the brand reads
 * the same on the site as it does in the running app.
 */

/* ── Palette + tokens ────────────────────────────────────────── */
:root {
  --bg:           #0d0d12;
  --surface:      #16161e;
  --surface-2:   #1d1d28;
  --border:       #2a2a3a;
  --accent:       #e8761a;   /* brand orange */
  --accent-hot:   #ff8b30;
  --success:      #4ab870;
  --warning:      #e8a020;
  --error:        #e05050;
  --text:         #f0f0f5;
  --text-dim:     #b8b8c8;
  --muted:        #8080a0;

  --radius:       14px;
  --radius-sm:    8px;
  --max-w:        1180px;
  --max-w-narrow: 760px;

  --shadow-soft:  0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-card:  0 1px 0 rgba(255, 255, 255, 0.03) inset,
                  0 8px 30px rgba(0, 0, 0, 0.45);

  --t-fast:       150ms ease-out;
}

/* ── Reset / base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hot); }
code {
  font-family: "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.95em;
  background: var(--surface-2);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  color: var(--text-dim);
}

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw + 0.5rem, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw + 0.5rem, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; color: var(--text-dim);
     text-transform: uppercase; letter-spacing: 0.06em; }
p  { margin: 0 0 1em; }

.container {
  width: min(100% - 2rem, var(--max-w));
  margin-inline: auto;
}
.container.narrow { max-width: var(--max-w-narrow); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn, .btn-small {
  display: inline-block;
  padding: 0.85em 1.4em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
  white-space: nowrap;
}
.btn-small { padding: 0.55em 1em; font-size: 0.9rem; }
.btn-large { padding: 1.05em 1.8em; font-size: 1.1rem; }

.btn-primary {
  background: var(--accent);
  color: #1a0d00;
  box-shadow: 0 4px 0 #b34d00, 0 8px 24px rgba(232, 118, 26, 0.25);
}
.btn-primary:hover {
  background: var(--accent-hot);
  color: #1a0d00;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-link {
  display: inline-block;
  color: var(--text-dim);
  font-weight: 500;
  padding: 0.85em 0.5em;
}
.btn-link:hover { color: var(--accent); }

/* ── Site header ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(13, 13, 18, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
}
.brand img { width: 32px; height: 32px; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.primary-nav > a {
  color: var(--text-dim);
  font-weight: 500;
}
.primary-nav > a:hover { color: var(--text); }
.primary-nav > a.btn-small {
  background: var(--accent);
  color: #1a0d00;
}
.primary-nav > a.btn-small:hover {
  background: var(--accent-hot);
  color: #1a0d00;
}
@media (max-width: 640px) {
  .primary-nav > a:not(.btn-small) { display: none; }
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  padding: 4rem 0 3rem;
  background:
    radial-gradient(ellipse 60% 60% at 50% 0%, rgba(232, 118, 26, 0.10), transparent 60%),
    var(--bg);
  text-align: center;
}
.kicker {
  display: inline-block;
  color: var(--accent);
  background: rgba(232, 118, 26, 0.12);
  border: 1px solid rgba(232, 118, 26, 0.35);
  padding: 0.55em 1.2em;
  border-radius: 999px;
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 1.8rem;
}
.hero h1 { max-width: 18ch; margin-inline: auto; }
.hero .lede {
  max-width: 60ch;
  margin: 1rem auto 1.8rem;
  color: var(--text-dim);
  font-size: 1.1rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.8rem;
}

.trust-strip {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em 1.2em;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.trust-strip li::before {
  content: "· ";
  margin-right: 0.35em;
  color: var(--accent);
}
.trust-strip li:first-child::before { content: ""; margin: 0; }

.hero-shot {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}
.hero-shot img { display: block; width: 100%; height: auto; }

/* ── Section base ────────────────────────────────────────────── */
section { padding: 4rem 0; }
@media (max-width: 640px) { section { padding: 3rem 0; } }

.section-eyebrow {
  text-align: center;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 2rem;
}
.section-head {
  text-align: center;
  margin-bottom: 3rem;
}
.section-head h2 { margin-bottom: 0.5rem; }
.section-head .lede-sm {
  color: var(--text-dim);
  max-width: 56ch;
  margin: 0 auto;
}

/* ── 3-up card grid (problem + how) ──────────────────────────── */
.cards-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}
@media (min-width: 720px) {
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
}

.card, .step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
}
.card h3 { font-size: 1.1rem; }
.card p, .step-card p { color: var(--text-dim); margin: 0; }
.emoji {
  display: inline-block;
  margin-right: 0.3em;
  filter: saturate(1.1);
}

.how { background: var(--surface); }
.how h2 { text-align: center; margin-bottom: 3rem; }
.step-card {
  background: var(--surface-2);
  position: relative;
}
.step-num {
  display: inline-block;
  color: var(--accent);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

/* ── Features grid ───────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 720px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.feature h3 { font-size: 1.25rem; }
.feature-text p { color: var(--text-dim); margin: 0; }
.feature-shot {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: var(--shadow-soft);
}
.feature-shot img { display: block; width: 100%; }

/* ── Built on real research ──────────────────────────────────── */
.research {
  background: var(--surface);
  text-align: center;
}
.research p {
  color: var(--text-dim);
  font-size: 1.1rem;
}
.research .emphasis {
  color: var(--text);
  font-weight: 600;
  font-size: 1.15rem;
  margin-top: 1.5rem;
}

/* ── Pricing ─────────────────────────────────────────────────── */
.pricing { background: var(--bg); }

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  max-width: 760px;
  margin: 0 auto 2rem;
}
@media (min-width: 640px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; gap: 1.4rem; }
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  text-align: center;
  position: relative;
}
.price-card--featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(232, 118, 26, 0.06), var(--surface));
  box-shadow: 0 0 0 1px rgba(232, 118, 26, 0.2), var(--shadow-soft);
}
.price-card h3 { font-size: 1rem; color: var(--text-dim);
                 text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.6rem; }
.price-card .price {
  margin: 0.4rem 0 0.6rem;
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
}
.price-card .num { font-size: 2.6rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.price-card .per { color: var(--muted); }
.price-card .muted { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.4rem; }
.price-card .btn { width: 100%; }

.ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #1a0d00;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.3em 0.9em;
  border-radius: 999px;
  white-space: nowrap;
  margin: 0;
}

.pricing-includes {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.8rem;
}
.includes-heading {
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem 1.2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 480px) {
  .check-list { grid-template-columns: 1fr 1fr; }
}
.check-list li {
  position: relative;
  padding-left: 1.6em;
  color: var(--text-dim);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.05em;
  color: var(--success);
  font-weight: 700;
}

.pricing-fineprint {
  max-width: 60ch;
  margin: 2rem auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ── Promises / what we don't do ─────────────────────────────── */
.promises { background: var(--surface); }
.promise-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 760px;
  display: grid;
  gap: 1rem;
}
.promise-list li {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem 1.1rem 3rem;
  position: relative;
  color: var(--text-dim);
}
.promise-list li::before {
  content: "✓";
  position: absolute;
  left: 1.1rem;
  top: 1.05rem;
  width: 1.3em;
  height: 1.3em;
  border-radius: 50%;
  background: var(--success);
  color: #04300d;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9em;
}
.promise-list li strong { color: var(--text); display: block; margin-bottom: 0.25rem; }
.promise-coda {
  text-align: center;
  margin-top: 2.2rem;
  font-size: 1.1rem;
  font-weight: 600;
  font-style: italic;
  color: var(--text);
}

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq { background: var(--bg); }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.6rem;
  overflow: hidden;
  transition: border-color var(--t-fast);
}
.faq-item[open] { border-color: var(--accent); }
.faq-item summary {
  cursor: pointer;
  padding: 1.05rem 1.3rem;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 3rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  transition: transform var(--t-fast);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  margin: 0;
  padding: 0 1.3rem 1.2rem;
  color: var(--text-dim);
}
.faq-more {
  text-align: center;
  margin-top: 1.8rem;
  font-weight: 600;
}

/* ── Final CTA ───────────────────────────────────────────────── */
.final-cta {
  background:
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(232, 118, 26, 0.12), transparent 60%),
    var(--surface);
  text-align: center;
}
.final-cta h2 { font-size: clamp(1.8rem, 4vw + 0.4rem, 2.8rem); }
.final-cta .lede { color: var(--text-dim); font-size: 1.1rem; max-width: 50ch; margin: 1rem auto 2rem; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  color: var(--text-dim);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}
.footer-brand .brand { margin-bottom: 0.8rem; }
.footer-brand .muted { color: var(--muted); font-size: 0.88rem; }
.footer-col h4 { margin-bottom: 0.9rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--text-dim); }
.footer-col a:hover { color: var(--accent); }

.footer-strip {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
}
.footer-strip p { margin-bottom: 0.5rem; font-size: 0.9rem; }
.footer-strip .small { font-size: 0.78rem; color: var(--muted); max-width: 80ch; margin-inline: auto; }
.footer-strip a { color: var(--text-dim); }
.footer-strip a:hover { color: var(--accent); }

.muted { color: var(--muted); }

/* ── Interior page hero (FAQ, Support, etc.) ─────────────────── */
.page-hero {
  padding: 4rem 0 3rem;
  text-align: center;
  background:
    radial-gradient(ellipse 50% 50% at 50% 0%, rgba(232, 118, 26, 0.08), transparent 60%),
    var(--bg);
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw + 0.3rem, 2.8rem);
  max-width: 22ch;
  margin-inline: auto;
}
.page-hero .lede {
  max-width: 50ch;
  margin: 0.8rem auto 0;
  color: var(--text-dim);
  font-size: 1.05rem;
}

/* ── FAQ full-page category headings ─────────────────────────── */
.faq-full { padding-top: 1rem; }
.faq-cat-heading {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 3rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.faq-cat-heading:first-child { margin-top: 0; }

/* ── Legal pages (privacy, terms) ────────────────────────────── */
.effective-date {
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  margin: -0.5rem 0 2rem;
}
.legal { padding-top: 1rem; }
.legal-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.4rem 1.2rem 2.4rem;
  margin: 0 0 3rem;
  color: var(--text-dim);
}
.legal-toc li { margin-bottom: 0.35rem; }
.legal-toc li::marker { color: var(--muted); }
.legal-toc a { color: var(--text-dim); }
.legal-toc a:hover { color: var(--accent); }
.legal h2 {
  font-size: 1.35rem;
  margin: 2.8rem 0 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
  scroll-margin-top: 80px;
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.legal p, .legal ul { color: var(--text-dim); }
.legal ul { padding-left: 1.4rem; }
.legal ul li { margin-bottom: 0.4rem; }
.legal strong { color: var(--text); }

/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
