/* ------------------------------------------------------------------
   Simpl Service — shared design system for the static marketing pages.

   The landing page keeps its own inline <style> (it is inlined at build
   time for above-the-fold speed and has components these pages do not
   use). Everything else — /about, /vs/*, /auto-repair/* — links this
   file, so the palette and type scale are changed in exactly one place.

   Token names and values are kept identical to the landing page.
   ------------------------------------------------------------------ */

:root {
  --ink:        #0b0f14;
  --ink-2:      #1b2430;
  --body:       #4a5565;
  --muted:      #6b7684;
  --faint:      #9aa4b2;

  --accent:     #0d6e6e;
  --accent-2:   #0a8f8f;
  --accent-lift:#1fb6ad;
  --accent-blue:#1569d6;
  --accent-ink: #063c3c;
  --accent-wash:#edfafa;
  --accent-line:#bfe9e6;

  --surface:    #ffffff;
  --surface-2:  #f6f8fa;
  --surface-3:  #eef2f6;
  --line:       #e4e9ef;
  --line-2:     #d2dae3;

  --good:       #0a8a2f;
  --good-wash:  #e9f7ee;
  --good-line:  #a9ddb8;
  --bad:        #c92828;

  --grad: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 45%, var(--accent-blue) 100%);
  --grad-soft: linear-gradient(135deg, #f3fbfb 0%, #eef5fe 100%);

  --shadow-sm: 0 1px 2px rgba(11,15,20,0.05), 0 1px 3px rgba(11,15,20,0.04);
  --shadow:    0 2px 4px rgba(11,15,20,0.04), 0 8px 24px rgba(11,15,20,0.07);
  --shadow-lg: 0 4px 10px rgba(11,15,20,0.05), 0 20px 48px rgba(11,15,20,0.11);
  --shadow-accent: 0 8px 28px rgba(13,110,110,0.26);

  --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-xl: 26px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); background: var(--surface);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.011em;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent-lift); color: #fff; }

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

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1000px; margin: 0 auto; display: flex;
  align-items: center; justify-content: space-between; padding: 14px 20px;
}
.brand {
  font-size: 20px; font-weight: 800; letter-spacing: -0.5px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--accent);
}
.back-home { font-size: 14px; font-weight: 600; color: var(--muted); transition: color 0.2s var(--ease); }
.back-home:hover { color: var(--accent); }

/* ---------- Content ---------- */
.content { max-width: 820px; margin: 0 auto; padding: 56px 20px 80px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; color: var(--accent-ink);
  text-transform: uppercase; letter-spacing: 1.1px;
  background: var(--accent-wash); border: 1px solid var(--accent-line);
  padding: 7px 14px; border-radius: 999px;
}
.eyebrow::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-lift); box-shadow: 0 0 0 3px rgba(31,182,173,0.22);
}
h1 { font-size: 44px; font-weight: 800; color: var(--ink); margin-top: 20px; line-height: 1.1; letter-spacing: -1.7px; }
h1 .accent {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--accent);
}
.subtitle { font-size: 18.5px; color: var(--body); margin-top: 18px; line-height: 1.58; }

h2 { font-size: 27px; font-weight: 800; color: var(--ink); margin-top: 52px; letter-spacing: -0.8px; line-height: 1.2; }
h3 { font-size: 18px; font-weight: 700; color: var(--ink); margin-top: 28px; letter-spacing: -0.4px; }
p { font-size: 16.5px; color: var(--body); line-height: 1.68; margin-top: 13px; }
strong { color: var(--ink-2); font-weight: 700; }

ul, ol { margin-top: 14px; padding-left: 0; list-style: none; }
ul li, ol li { position: relative; font-size: 16.5px; color: var(--body); line-height: 1.6; padding-left: 28px; margin-top: 11px; }
ul li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  color: var(--accent-2); font-weight: 800; font-size: 15px;
}
ol { counter-reset: simpl-ol; }
ol li::before {
  counter-increment: simpl-ol; content: counter(simpl-ol);
  position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--grad); color: #fff;
  font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Comparison table ---------- */
.table-wrap {
  overflow-x: auto; margin-top: 30px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); background: var(--surface);
}
.comparison-table { width: 100%; border-collapse: collapse; }
.comparison-table th, .comparison-table td {
  padding: 15px 18px; text-align: left; font-size: 15px;
  border-bottom: 1px solid var(--line);
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table th {
  font-weight: 700; color: var(--ink); background: var(--surface-2);
  font-size: 14px; letter-spacing: -0.2px;
}
/* The Simpl column is the one we want read first. */
.comparison-table th:nth-child(2) { color: var(--accent-ink); background: var(--accent-wash); }
.comparison-table td:nth-child(2) { background: rgba(237,250,250,0.42); }
.comparison-table td:first-child { font-weight: 650; color: var(--ink-2); }
.col-simpl { color: var(--ink-2); font-weight: 600; }
.col-simpl::before { content: "\2713"; color: var(--accent-2); font-weight: 800; margin-right: 7px; }
.col-other { color: var(--muted); }

/* ---------- Callout / FAQ ---------- */
.callout {
  margin-top: 26px; padding: 22px 24px;
  background: var(--grad-soft); border: 1px solid var(--accent-line);
  border-radius: var(--r-lg);
}
.callout p:first-child { margin-top: 0; }

.faq-item {
  padding: 18px 20px; margin-top: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.faq-item:hover { border-color: var(--accent-line); box-shadow: var(--shadow-sm); }
.faq-q { font-size: 16.5px; font-weight: 650; color: var(--ink); letter-spacing: -0.3px; margin: 0; }
.faq-a { font-size: 15.5px; color: var(--body); margin-top: 10px; line-height: 1.65; }

/* ---------- CTA ---------- */
.cta-section {
  position: relative; overflow: hidden;
  margin-top: 60px; padding: 46px 36px; border-radius: var(--r-xl); text-align: center;
  background:
    radial-gradient(620px 300px at 50% -10%, rgba(31,182,173,0.28), transparent 70%),
    linear-gradient(160deg, #0b1418 0%, #0b0f14 60%, #0a1220 100%);
  box-shadow: var(--shadow-lg);
}
.cta-section h2 { color: #fff; margin-top: 0; }
.cta-section p { color: #a7b4c2; }
.cta-btn {
  display: inline-block; margin-top: 26px;
  background: var(--grad); background-size: 180% 180%; color: #fff;
  padding: 16px 34px; border-radius: var(--r-sm); font-size: 16px; font-weight: 700;
  box-shadow: var(--shadow-accent);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-position 0.45s var(--ease);
}
.cta-btn:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 14px 38px rgba(13,110,110,0.38); }

/* ---------- Footer ---------- */
.footer { background: linear-gradient(160deg, #0b1418 0%, #0b0f14 100%); padding: 44px 20px; margin-top: 80px; }
.footer-inner {
  max-width: 1000px; margin: 0 auto; display: flex;
  justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-brand {
  font-size: 18px; font-weight: 800; letter-spacing: -0.4px;
  background: linear-gradient(135deg, var(--accent-lift) 0%, #6fb8ff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--accent-lift);
}
.footer-copy { color: #6f7a88; font-size: 13px; }
.footer-link { color: #8a95a3; font-size: 14px; font-weight: 550; transition: color 0.2s var(--ease); }
.footer-link:hover { color: var(--accent-lift); }

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .content { padding: 40px 20px 60px; }
  h1 { font-size: 32px; letter-spacing: -1.1px; }
  h2 { font-size: 23px; margin-top: 42px; }
  p, ul li, ol li { font-size: 16px; }
  .comparison-table th, .comparison-table td { padding: 12px 14px; font-size: 14px; }
  .cta-section { padding: 34px 22px; }
}

/* ------------------------------------------------------------------
   Page-specific components (town pages, /about).
   These were inline on each page before the stylesheet was shared.
   ------------------------------------------------------------------ */

/* ---------- Hero (town pages, about) ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-top: 60px; padding-bottom: 56px;
  background:
    radial-gradient(760px 360px at 85% -10%, rgba(31,182,173,0.15), transparent 70%),
    radial-gradient(640px 320px at 5% 8%, rgba(21,105,214,0.09), transparent 68%),
    linear-gradient(180deg, #fbfdfe 0%, var(--surface) 70%);
  border-bottom: 1px solid var(--line);
}
/* The hero's children are direct descendants on these pages, so the hero
   is a centering flex column rather than relying on per-child margins
   (inline-level children like the eyebrow pill would not center that way). */
/* The hero's children sit directly inside it, so the hero carries the same
   measure and gutters as .content. Normal block flow then puts every child
   (block and inline-level alike) on one left edge. */
.hero { padding-left: calc((100% - 820px) / 2 + 20px); padding-right: calc((100% - 820px) / 2 + 20px); }
.hero > .content { padding-left: 0; padding-right: 0; padding-top: 0; padding-bottom: 0; max-width: none; }
@media (max-width: 860px) {
  .hero { padding-left: 20px; padding-right: 20px; }
}
.hero-cta {
  display: inline-block; margin-top: 26px;
  background: var(--grad); background-size: 180% 180%; color: #fff;
  padding: 15px 30px; border-radius: var(--r-sm); font-size: 16px; font-weight: 700;
  box-shadow: var(--shadow-accent);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-position 0.45s var(--ease);
}
.hero-cta:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 14px 38px rgba(13,110,110,0.38); }

/* ---------- Nav ---------- */
.nav-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav-link {
  position: relative; font-size: 15px; color: var(--body); font-weight: 550;
  padding: 4px 0; transition: color 0.2s var(--ease);
}
.nav-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  border-radius: 2px; background: var(--grad);
  transform: scaleX(0); transform-origin: left; transition: transform 0.28s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); }

/* ---------- Steps ---------- */
.steps { display: flex; gap: 18px; margin-top: 32px; flex-wrap: wrap; }
.step {
  position: relative; flex: 1; min-width: 215px;
  background: var(--surface); padding: 26px 24px; border-radius: var(--r-lg);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease);
}
.step::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step:hover::before { transform: scaleX(1); }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--grad); color: #fff; font-size: 15px; font-weight: 800;
  box-shadow: var(--shadow-accent);
}
.step-body { font-size: 15.5px; color: var(--body); margin-top: 9px; line-height: 1.55; }
.step h3 { margin-top: 16px; }

/* ---------- Tiers ---------- */
.tiers { display: flex; gap: 18px; margin-top: 32px; flex-wrap: wrap; }
.tier {
  flex: 1; min-width: 215px; padding: 26px 24px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease), border-color 0.24s var(--ease);
}
.tier:hover { transform: translateY(-4px); border-color: var(--accent-line); box-shadow: var(--shadow-lg); }
.tier h3 { margin-top: 0; }
.tier strong {
  display: block; font-size: 26px; font-weight: 800; margin-top: 8px; letter-spacing: -1px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--accent);
}

/* ---------- Value cards (about) ---------- */
.values, .value-row { display: flex; gap: 18px; margin-top: 32px; flex-wrap: wrap; }
.value-card {
  flex: 1; min-width: 230px; padding: 26px 24px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease), border-color 0.24s var(--ease);
}
.value-card:hover { transform: translateY(-4px); border-color: var(--accent-line); box-shadow: var(--shadow-lg); }
.value-title { font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: -0.4px; margin-top: 0; }
.value-title::before {
  content: ''; display: block; width: 32px; height: 4px; border-radius: 999px;
  background: var(--grad); margin-bottom: 15px;
}
.value-body { font-size: 15.5px; color: var(--body); margin-top: 10px; line-height: 1.58; }

/* ---------- Boxes ---------- */
.local-box, .mission-box, .nearby {
  margin-top: 30px; padding: 24px 26px;
  background: var(--grad-soft); border: 1px solid var(--accent-line);
  border-radius: var(--r-lg);
}
.local-box p:first-child, .mission-box p:first-child, .nearby p:first-child { margin-top: 0; }
.local-box h2, .mission-box h2, .nearby h2 { margin-top: 0; font-size: 22px; }
.nearby a { color: var(--accent); font-weight: 650; text-decoration: underline; }
.nearby a:hover { color: var(--accent-ink); }

/* ---------- Founder (about) ---------- */
.founder-hero {
  display: flex; align-items: flex-start; gap: 30px; margin-top: 32px;
  padding: 30px; border-radius: var(--r-xl);
  background: var(--grad-soft); border: 1px solid var(--accent-line);
}
.founder-photo {
  width: 150px; height: 150px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 3px solid var(--surface); box-shadow: var(--shadow);
}
.founder-info { flex: 1; }
.founder-name { font-size: 24px; font-weight: 800; color: var(--ink); letter-spacing: -0.7px; margin-top: 0; }
.founder-role { font-size: 14px; color: var(--muted); margin-top: 5px; font-weight: 550; }
.founder-linkedin { color: var(--accent); text-decoration: underline; font-weight: 650; }

.cta-note { font-size: 13.5px; color: var(--muted); margin-top: 14px; }
.cta-section .cta-note { color: #93a2b2; }
.faq { margin-top: 20px; }

@media (max-width: 768px) {
  .hero { padding-top: 44px; padding-bottom: 40px; }
  .steps, .tiers, .values, .value-row { flex-direction: column; }
  .founder-hero { flex-direction: column; align-items: center; text-align: center; padding: 26px 20px; }
  .founder-photo { width: 120px; height: 120px; }
  .value-title::before { margin-left: auto; margin-right: auto; }
}
