/* GarageFlow — sales-focused SaaS design system */

:root {
  --navy-900: #071824;
  --navy-800: #0d2636;
  --navy-700: #163a4f;
  --navy-100: #e5f1f4;
  --orange-600: #e84f1c;
  --orange-500: #ff6428;
  --orange-100: #fff0e8;
  --teal-700: #087f76;
  --teal-600: #0aa99b;
  --teal-500: #12c8b7;
  --teal-100: #ddfbf7;
  --green-600: #1e8e5a;
  --green-100: #e2f5ec;
  --amber-600: #b45309;
  --amber-100: #fef3c7;
  --red-600: #dc2626;
  --red-100: #fee2e2;
  --blue-600: #2563eb;
  --blue-100: #dbeafe;
  --gray-900: #16202c;
  --gray-700: #3d4c5e;
  --gray-500: #64748b;
  --gray-300: #cbd5e1;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --gray-50: #f8fafc;
  --white: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(7, 24, 36, .08), 0 4px 16px rgba(7, 24, 36, .06);
  --shadow-lg: 0 4px 12px rgba(7, 24, 36, .10), 0 16px 40px rgba(7, 24, 36, .12);
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ------------------------------------------------------------- type */

h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }

.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--gray-50); }
.section-dark { background: var(--navy-900); color: var(--white); }
.section-dark .section-sub { color: var(--gray-300); }

.kicker {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--orange-600);
  margin-bottom: 12px;
}

.section-title { margin-bottom: 12px; }
.section-sub { font-size: 1.1rem; color: var(--gray-500); max-width: 680px; }
.center { text-align: center; }
.center .section-sub { margin: 0 auto; }

/* ---------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.15;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  font-family: var(--font);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--orange-500);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(242, 101, 34, .35);
}
.btn-primary:hover { background: var(--orange-600); }

.btn-secondary {
  background: var(--white);
  color: var(--navy-800);
  border-color: var(--gray-300);
}
.btn-secondary:hover { border-color: var(--navy-800); }

.btn-ghost-light {
  background: rgba(255, 255, 255, .08);
  color: var(--white);
  border-color: rgba(255, 255, 255, .35);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, .16); }

.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-lg { padding: 17px 36px; font-size: 1.1rem; }
.btn-block { display: flex; width: 100%; text-align: center; }

/* -------------------------------------------------------------- nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav .container {
  max-width: 1280px;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav-logo .logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 8px 18px rgba(255, 100, 40, .2);
  display: block;
}
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; min-width: 0; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  color: var(--gray-300);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1;
  padding: 8px 10px;
  border-radius: 6px;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(255,255,255,.08); }
.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.nav-cta {
  min-height: 36px;
  padding: 8px 16px;
  white-space: nowrap;
  border-radius: 7px;
  box-shadow: 0 6px 18px rgba(255, 100, 40, .22);
}
.nav-cta:hover { box-shadow: 0 8px 22px rgba(255, 100, 40, .3); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
}
.nav-toggle:hover { background: rgba(255,255,255,.08); }

/* -------------------------------------------------------------- hero */

.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(255, 100, 40, .24), transparent 60%),
    radial-gradient(800px 400px at 0% 110%, rgba(18, 200, 183, .2), transparent 55%),
    var(--navy-900);
  color: var(--white);
  padding: 88px 0 96px;
}
.hero .kicker { color: var(--orange-500); }
.hero-sub {
  font-size: 1.2rem;
  color: var(--gray-300);
  max-width: 640px;
  margin: 20px 0 32px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: .9rem; color: var(--gray-500); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}

/* --------------------------------------------------------- cards etc */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--gray-500); font-size: .96rem; }

.card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--orange-100);
  color: var(--orange-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.stat-row { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 40px; }
.stat b { display: block; font-size: 1.8rem; color: var(--orange-500); }
.stat span { color: var(--gray-300); font-size: .9rem; }

/* ------------------------------------------------------------ badges */

.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: capitalize;
  white-space: nowrap;
}
.badge-new { background: var(--blue-100); color: var(--blue-600); }
.badge-contacted { background: var(--amber-100); color: var(--amber-600); }
.badge-quoted { background: var(--orange-100); color: var(--orange-600); }
.badge-won { background: var(--green-100); color: var(--green-600); }
.badge-lost { background: var(--red-100); color: var(--red-600); }
.badge-urgent { background: var(--red-100); color: var(--red-600); }
.badge-soon { background: var(--amber-100); color: var(--amber-600); }
.badge-flex { background: var(--gray-100); color: var(--gray-500); }

/* ------------------------------------------------------------- forms */

.form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.form-title { font-size: 1.15rem; font-weight: 800; margin-bottom: 4px; }
.form-caption { color: var(--gray-500); font-size: .9rem; margin-bottom: 20px; }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-family: var(--font);
  background: var(--white);
  color: var(--gray-900);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--orange-500);
  box-shadow: 0 0 0 3px rgba(255, 100, 40, .15);
}
.field textarea { resize: vertical; min-height: 90px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.choice-row { display: flex; gap: 10px; flex-wrap: wrap; }
.choice-row input { display: none; }
.choice-row label {
  padding: 9px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--gray-700);
}
.choice-row input:checked + label {
  border-color: var(--orange-500);
  background: var(--orange-100);
  color: var(--orange-600);
}

.upload-box {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 22px;
  text-align: center;
  color: var(--gray-500);
  font-size: .9rem;
  cursor: pointer;
  background: var(--gray-50);
}
.upload-box:hover { border-color: var(--orange-500); color: var(--orange-600); }
.upload-box input { display: none; }

.form-success {
  background: var(--green-100);
  color: var(--green-600);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-weight: 600;
  margin-top: 8px;
}
.form-error {
  background: var(--red-100);
  color: var(--red-600);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-weight: 600;
  margin-top: 8px;
  font-size: .9rem;
}

/* ------------------------------------------------------------- steps */

.steps { display: grid; gap: 0; position: relative; }
.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 20px 0;
}
.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--white);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.step:not(:last-child) .step-num::after {
  content: "";
  position: absolute;
  top: 40px;
  left: 50%;
  width: 2px;
  height: calc(100% + 20px);
  background: var(--gray-200);
  z-index: -1;
}
.step h4 { font-size: 1.05rem; margin-bottom: 4px; }
.step p { color: var(--gray-500); font-size: .94rem; }

/* ----------------------------------------------------- before/after */

.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.ba-panel {
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--gray-200);
}
.ba-before { background: var(--gray-100); }
.ba-after { background: var(--white); box-shadow: var(--shadow-lg); border-color: var(--orange-100); }
.ba-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.ba-before .ba-tag { background: var(--gray-300); color: var(--gray-700); }
.ba-after .ba-tag { background: var(--orange-500); color: var(--white); }
.ba-list { list-style: none; }
.ba-list li {
  padding: 9px 0 9px 30px;
  position: relative;
  color: var(--gray-700);
  font-size: .95rem;
  border-bottom: 1px dashed var(--gray-200);
}
.ba-list li:last-child { border-bottom: none; }
.ba-before .ba-list li::before { content: "✕"; position: absolute; left: 4px; color: var(--red-600); font-weight: 800; }
.ba-after .ba-list li::before { content: "✓"; position: absolute; left: 4px; color: var(--green-600); font-weight: 800; }

/* ----------------------------------------------------------- pricing */

.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.price-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  position: relative;
}
.price-card.featured { border: 2px solid var(--orange-500); box-shadow: var(--shadow-lg); }
.price-flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange-500);
  color: var(--white);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.price-name { font-size: 1.05rem; font-weight: 800; }
.price-for { color: var(--gray-500); font-size: .85rem; margin: 2px 0 14px; }
.price-amount { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; }
.price-amount small { font-size: .95rem; font-weight: 600; color: var(--gray-500); }
.price-list { list-style: none; margin: 18px 0 24px; flex: 1; }
.price-list li {
  padding: 7px 0 7px 26px;
  position: relative;
  font-size: .92rem;
  color: var(--gray-700);
}
.price-list li::before { content: "✓"; position: absolute; left: 2px; color: var(--green-600); font-weight: 800; }

/* --------------------------------------------------------- dashboard */

.dash-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 28px; }
.dash-stat {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.dash-stat b { display: block; font-size: 1.7rem; letter-spacing: -0.02em; }
.dash-stat span { font-size: .82rem; color: var(--gray-500); font-weight: 600; }

.lead-table-wrap {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-x: auto;
}
.lead-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.lead-table th {
  text-align: left;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-500);
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}
.lead-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
  font-size: .92rem;
  vertical-align: top;
}
.lead-table tr:last-child td { border-bottom: none; }
.lead-table tr.lead-row { cursor: pointer; }
.lead-table tr.lead-row:hover { background: var(--gray-50); }
.lead-name { font-weight: 700; }
.lead-meta { color: var(--gray-500); font-size: .82rem; }

.lead-detail {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-top: 20px;
}
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 24px; margin: 16px 0; }
.detail-item b { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-500); margin-bottom: 2px; }
.detail-item span { font-size: .95rem; }
.photo-chip {
  display: inline-block;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: .8rem;
  margin: 2px 4px 2px 0;
  color: var(--gray-700);
}

.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--gray-300);
  background: var(--white);
  font-size: .86rem;
  font-weight: 700;
  color: var(--gray-700);
  cursor: pointer;
  font-family: var(--font);
}
.filter-btn.active { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }

/* ----------------------------------------------------- mock browser */

.mock-window {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
.mock-bar {
  background: var(--gray-100);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--gray-200);
}
.mock-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gray-300); }
.mock-dot:first-child { background: #f87171; }
.mock-dot:nth-child(2) { background: #fbbf24; }
.mock-dot:nth-child(3) { background: #34d399; }
.mock-url {
  flex: 1;
  background: var(--white);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: .78rem;
  color: var(--gray-500);
  border: 1px solid var(--gray-200);
}
.mock-body { padding: 24px; }

/* --------------------------------------------------------- CTA band */

.cta-band {
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(255, 100, 40, .32), transparent 60%),
    radial-gradient(500px 240px at 10% 100%, rgba(18, 200, 183, .22), transparent 60%),
    var(--navy-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: 56px 48px;
  text-align: center;
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: var(--gray-300); max-width: 560px; margin: 0 auto 28px; }

/* ------------------------------------------------------------ footer */

.footer {
  background: var(--navy-900);
  color: var(--gray-300);
  padding: 48px 0 32px;
  margin-top: 72px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer h4 { color: var(--white); font-size: .9rem; margin-bottom: 12px; }
.footer ul { list-style: none; }
.footer a { color: var(--gray-300); text-decoration: none; font-size: .9rem; display: inline-block; padding: 4px 0; }
.footer a:hover { color: var(--white); }
.footer-tag { font-size: .92rem; max-width: 300px; margin-top: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; font-size: .82rem; color: var(--gray-500); }

/* --------------------------------------------------------------- faq */

.faq { max-width: 760px; margin: 36px auto 0; }
.faq details {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 700;
  list-style: none;
  position: relative;
  padding-right: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--orange-500);
}
.faq details[open] summary::after { content: "–"; }
.faq .faq-a { padding: 0 20px 16px; color: var(--gray-500); font-size: .95rem; }

/* ------------------------------------------------------- trust chips */

.trust-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 20px; }
.trust-chip { font-size: .88rem; font-weight: 600; color: var(--gray-300); }
.trust-chip::before { content: "✓ "; color: var(--orange-500); font-weight: 800; }

.sample-tag {
  display: inline-block;
  background: var(--amber-100);
  color: var(--amber-600);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 10px;
  border-radius: 999px;
}

/* -------------------------------------------------------- responsive */

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .grid-4, .price-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy-900);
    padding: 12px 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .nav-menu.open { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links a { display: block; padding: 12px; }
  .nav-cta { display: flex; width: 100%; margin-top: 12px; text-align: center; min-height: 44px; }
}

@media (max-width: 1060px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy-900);
    padding: 12px 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .nav-menu.open { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links a { display: flex; justify-content: flex-start; min-height: 44px; padding: 12px; }
  .nav-cta { display: flex; width: 100%; margin-top: 12px; text-align: center; min-height: 44px; }
}

@media (max-width: 600px) {
  .section { padding: 52px 0; }
  .grid-2, .grid-3, .grid-4, .price-grid, .ba-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .btn-lg { padding-left: 20px; padding-right: 20px; font-size: 1rem; }
  .cta-band { padding: 40px 24px; }
  .hero { padding: 60px 0 68px; }
}
