/* KnockRoute - D2D Sales App CSS */
:root {
  --primary: #f97316;
  --primary-dark: #ea580c;
  --primary-light: #fff7ed;
  --primary-50: #fff7ed;
  --green: #22c55e;
  --green-bg: #f0fdf4;
  --amber: #f59e0b;
  --amber-bg: #fffbeb;
  --red: #ef4444;
  --red-bg: #fef2f2;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -2px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.06);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.08), 0 8px 10px -6px rgba(0,0,0,.06);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-900);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius); font-size: 14px; font-weight: 600;
  border: none; cursor: pointer; transition: all .2s; text-decoration: none;
  font-family: inherit; line-height: 1.4;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(249,115,22,.3); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 12px rgba(249,115,22,.3); transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--primary); border: 1.5px solid var(--gray-200); }
.btn-outline:hover { border-color: var(--primary); background: var(--primary-50); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-block { width: 100%; }
.btn-ghost { background: none; color: var(--gray-600); border: none; }
.btn-ghost:hover { color: var(--gray-900); }

/* ---- INPUTS ---- */
input, textarea, select {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius); font-size: 15px; font-family: inherit;
  transition: border .2s, box-shadow .2s; background: #fff;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(249,115,22,.1);
}
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--gray-700); }

/* ---- LANDING PAGE ---- */
.landing-body { background: #fff; }

/* -- Skip link -- */
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 200;
  background: var(--primary); color: #fff; padding: 8px 16px;
  border-radius: var(--radius); font-size: 14px; font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* -- Nav -- */
.landing-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 24px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 19px; font-weight: 800; color: var(--gray-900);
}
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--gray-600); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--gray-900); text-decoration: none; }
.nav-actions { display: flex; gap: 8px; align-items: center; }

/* -- Hamburger menu -- */
.landing-nav .hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.landing-nav .hamburger span {
  display: block; width: 22px; height: 2px; background: var(--gray-700);
  border-radius: 2px; transition: transform .3s, opacity .3s;
}
.landing-nav .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.landing-nav .hamburger.active span:nth-child(2) { opacity: 0; }
.landing-nav .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none; flex-direction: column;
  background: #fff; border-bottom: 1px solid var(--gray-100);
  padding: 0 24px; box-shadow: var(--shadow-md);
  position: sticky; top: 57px; z-index: 99;
}
.mobile-menu a {
  padding: 14px 0; color: var(--gray-600); font-size: 15px; font-weight: 500;
  border-bottom: 1px solid var(--gray-50);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--gray-900); text-decoration: none; }
.mobile-menu.open { display: flex; }

/* -- Hero -- */
.hero {
  padding: 72px 0 56px;
  background: linear-gradient(180deg, var(--primary-50) 0%, #fff 100%);
  overflow: hidden;
}
.hero .container {
  display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center;
}
.hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 99px;
  background: var(--primary-light); color: var(--primary); font-size: 13px; font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 40px; font-weight: 900; line-height: 1.12; letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, #dc2626 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 17px; color: var(--gray-500); max-width: 520px; margin-bottom: 32px; line-height: 1.7;
}
.founder-quote {
  font-size: 15px; font-style: italic; color: var(--gray-500); line-height: 1.7;
  max-width: 480px; margin: 0 0 28px 0; padding: 0 0 0 16px;
  border-left: 3px solid var(--primary);
}
.founder-attr { display: block; font-style: normal; font-weight: 600; font-size: 13px; color: var(--gray-400); margin-top: 8px; }
.founder-link { color: var(--primary); font-weight: 500; text-decoration: none; }
.founder-link:hover { text-decoration: underline; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-proof { font-size: 13px; color: var(--gray-400); }

/* Phone mockup */
.hero-visual { display: flex; justify-content: center; }
.phone-mock {
  width: 280px; height: 500px;
  background: var(--gray-900); border-radius: 36px; padding: 12px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,0,0,.05), 0 40px 60px -20px rgba(0,0,0,.15);
  position: relative;
}
.phone-mock::before {
  content: ''; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 24px; background: var(--gray-900); border-radius: 0 0 14px 14px; z-index: 2;
}
.phone-screen {
  width: 100%; height: 100%; background: #f8fafc; border-radius: 26px;
  overflow: hidden; display: flex; flex-direction: column;
}
.mock-header {
  padding: 32px 16px 10px; background: #fff;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}
.mock-dot { width: 8px; height: 8px; border-radius: 50%; }
.mock-dot.green { background: var(--green); }
.mock-map {
  flex: 1; position: relative;
  background: linear-gradient(160deg, #fdf2e3 0%, #f7f2ee 40%, #e8f4ec 100%);
  overflow: hidden;
}
.mock-streets { position: absolute; inset: 0; }
.street { position: absolute; background: rgba(255,255,255,.6); }
.street.h { left: 0; right: 0; height: 2px; }
.street.v { top: 0; bottom: 0; width: 2px; }
.mock-pin {
  position: absolute; width: 14px; height: 14px; border-radius: 50%;
  border: 2.5px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2);
  z-index: 1;
}
.mock-pin.green { background: var(--green); }
.mock-pin.amber { background: var(--amber); }
.mock-pin.red { background: var(--red); }
.mock-pin.gray { background: var(--gray-400); }
.mock-pin.orange { background: var(--primary); }
.mock-gps {
  position: absolute; bottom: 30%; left: 50%;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--primary); border: 3px solid #fff;
  box-shadow: 0 0 0 6px rgba(249,115,22,.15), 0 1px 4px rgba(0,0,0,.2);
  z-index: 2; animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(249,115,22,.15), 0 1px 4px rgba(0,0,0,.2); }
  50% { box-shadow: 0 0 0 12px rgba(249,115,22,.08), 0 1px 4px rgba(0,0,0,.2); }
}
.mock-bottom-bar {
  display: flex; justify-content: space-around; padding: 14px;
  background: #fff; border-top: 1px solid var(--gray-100);
}
.mock-stat { font-size: 12px; color: var(--gray-500); }
.mock-stat strong { color: var(--gray-900); font-weight: 700; }

/* -- Demo Video -- */
.demo-video { padding: 0 0 20px; }
.video-wrapper {
  max-width: 720px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: #000;
}
.video-wrapper iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
}
.video-thumb {
  width: 100%;
  height: auto;
  display: block;
}
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.2s;
}
.video-wrapper:hover .video-play-btn { transform: translate(-50%, -50%) scale(1.1); }
@media (max-width: 768px) {
  .demo-video { padding: 0 0 16px; }
  .video-wrapper { margin: 0 16px; border-radius: 8px; }
}

/* -- Proof bar -- */
.proof-bar { padding: 28px 0; border-bottom: 1px solid var(--gray-100); }
.proof-logos {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: var(--gray-400); font-weight: 500;
}
.proof-logos .sep { color: var(--gray-200); }

/* -- Competitor comparison -- */
.competitor-callout {
  max-width: 800px; margin: 0 auto 48px;
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%);
  border: 1.5px solid #fed7aa;
  border-radius: var(--radius-xl); padding: 32px;
  text-align: center;
}
.competitor-callout h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.competitor-callout .price-compare {
  font-size: 15px; color: var(--gray-600); line-height: 1.7;
}
.competitor-callout .highlight {
  font-weight: 800; color: var(--primary); font-size: 20px;
}

/* -- Section headers -- */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.section-header p { font-size: 16px; color: var(--gray-500); max-width: 500px; margin: 0 auto; }

/* -- Features -- */
.features { padding: 88px 0; background: var(--gray-50); }
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature-card {
  background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-lg);
  padding: 28px; transition: box-shadow .25s, transform .25s;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: var(--primary-50); display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.feature-card p { font-size: 14px; color: var(--gray-500); line-height: 1.65; }

/* -- Industries -- */
.industries { padding: 72px 0; }
.industries-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: 960px; margin: 0 auto;
}
.industry-card {
  text-align: center; padding: 28px 20px;
  border: 1px solid var(--gray-100); border-radius: var(--radius-lg);
  background: #fff; transition: box-shadow .25s, transform .25s;
}
.industry-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.industry-icon {
  width: 56px; height: 56px; border-radius: var(--radius-lg);
  background: var(--primary-50); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.industry-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--gray-800); }
.industry-card p { font-size: 14px; color: var(--gray-500); line-height: 1.5; }

/* -- How it works -- */
.how-it-works { padding: 88px 0; }
.steps-grid {
  display: flex; align-items: flex-start; justify-content: center; gap: 16px; flex-wrap: wrap;
}
.step-card {
  flex: 1; min-width: 200px; max-width: 280px; text-align: center; padding: 24px;
}
.step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--primary);
  color: #fff; font-size: 18px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; box-shadow: 0 4px 12px rgba(249,115,22,.25);
}
.step-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.step-card p { font-size: 14px; color: var(--gray-500); line-height: 1.6; }
.step-arrow { display: flex; align-items: center; padding-top: 36px; }

/* -- Pricing -- */
.pricing { padding: 88px 0; background: var(--gray-50); }
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; max-width: 960px; margin: 0 auto;
}
.price-card {
  background: #fff; border: 1.5px solid var(--gray-200); border-radius: var(--radius-xl);
  padding: 36px 28px; text-align: center; position: relative; transition: box-shadow .25s;
}
.price-card:hover { box-shadow: var(--shadow-lg); }
.price-card.popular {
  border-color: var(--primary); box-shadow: var(--shadow-lg);
  transform: scale(1.04);
}
.popular-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; padding: 4px 18px;
  border-radius: 99px; font-size: 12px; font-weight: 700;
  box-shadow: 0 2px 8px rgba(249,115,22,.3);
}
.price-card h3 { font-size: 18px; font-weight: 700; color: var(--gray-700); margin-bottom: 4px; }
.price { font-size: 48px; font-weight: 900; letter-spacing: -0.03em; margin: 8px 0 4px; }
.price span { font-size: 16px; font-weight: 500; color: var(--gray-400); }
.price-onetime { font-size: 14px; font-weight: 600; color: var(--gray-400); text-align: center; margin-bottom: 4px; }
.price-desc { font-size: 14px; color: var(--gray-500); margin-bottom: 24px; }
.price-card ul { list-style: none; text-align: left; margin-bottom: 28px; }
.price-card li {
  padding: 8px 0; font-size: 14px; color: var(--gray-600);
  border-bottom: 1px solid var(--gray-50);
  display: flex; align-items: center; gap: 10px;
}
.price-card li::before {
  content: '';
  display: inline-block; width: 20px; height: 20px; flex-shrink: 0;
  background: var(--green-bg); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 5l2.5 2.5L8 3' stroke='%2322c55e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* -- Testimonials -- */
.testimonials { padding: 80px 0; background: var(--gray-50); }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 1100px; margin: 0 auto;
}
.testimonial-card {
  background: #fff; border-radius: 16px; padding: 32px;
  border: 1px solid var(--gray-100);
  display: flex; flex-direction: column; gap: 16px;
  transition: box-shadow .2s;
}
.testimonial-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.testimonial-stars { color: #f59e0b; font-size: 16px; letter-spacing: 2px; }
.testimonial-quote {
  font-size: 15px; line-height: 1.7; color: var(--gray-600);
  flex: 1;
}
.testimonial-author { border-top: 1px solid var(--gray-100); padding-top: 16px; display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.testimonial-name { font-weight: 700; font-size: 14px; color: var(--gray-800); }
.testimonial-role { font-size: 13px; color: var(--gray-400); margin-top: 2px; }
.testimonial-industry {
  display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; color: var(--primary); background: var(--primary-50);
  padding: 3px 10px; border-radius: 99px; margin-top: 8px;
}

/* -- FAQ -- */
.faq { padding: 80px 0; }
.faq-grid { max-width: 720px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--gray-100); padding: 0;
}
.faq-item summary {
  padding: 20px 0; font-size: 16px; font-weight: 600; color: var(--gray-800);
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 22px; font-weight: 400; color: var(--gray-400);
  transition: transform .2s; flex-shrink: 0; margin-left: 16px;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p {
  padding: 0 0 20px; font-size: 15px; line-height: 1.7; color: var(--gray-500);
}

/* -- Final CTA -- */
.final-cta {
  padding: 88px 0; text-align: center;
  background: linear-gradient(135deg, var(--gray-900) 0%, #4a2412 100%);
  color: #fff;
}
.final-cta h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.02em; }
.final-cta p { font-size: 17px; color: rgba(255,255,255,.55); margin-bottom: 32px; }
.final-cta .btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 12px rgba(249,115,22,.3);
}
.final-cta .btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* -- Footer -- */
.landing-footer { padding: 32px 0; border-top: 1px solid var(--gray-100); }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-inner p { font-size: 13px; color: var(--gray-400); }

/* -- Blog -- */
.blog-hero { padding: 120px 0 48px; }
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px; max-width: 960px; margin: 0 auto;
}
.blog-card {
  background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-lg);
  overflow: hidden; transition: box-shadow .25s, transform .25s;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-card-body { padding: 24px; }
.blog-card-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.blog-card-body h3 a { color: var(--gray-900); }
.blog-card-body h3 a:hover { color: var(--primary); text-decoration: none; }
.blog-card-body p { font-size: 14px; color: var(--gray-500); line-height: 1.65; }
.blog-card-meta { font-size: 12px; color: var(--gray-400); margin-bottom: 8px; }

/* ---- RESPONSIVE ---- */
@media (min-width: 768px) {
  .hero .container { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 48px; }
}
@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .landing-nav .hamburger { display: flex; }
  .feature-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: 1fr; }
  .faq { padding: 56px 0; }
  .faq-item summary { font-size: 15px; padding: 16px 0; }
  .faq-item p { font-size: 14px; }
  .hero { padding: 48px 0 32px; }
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 15px; }
  .founder-quote { font-size: 14px; margin-bottom: 24px; }
  .section-header h2 { font-size: 26px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .price-card.popular { transform: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .competitor-callout { padding: 24px 20px; }
  .competitor-callout .highlight { font-size: 18px; }
}
