/* FILE: assets/style.css
 *
 * One shared stylesheet for the whole marketing site, same "single
 * assets/style.css" convention as the app itself. Colors are defined as
 * custom properties up top so the palette can change in one place later
 * without hunting through the file — same blue as the app
 * (field.forepilot.app) for brand continuity, but a light background here
 * since this is the public-facing site, not the in-app tool.
 */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f5f7fa;
  --color-text: #1a1d23;
  --color-text-muted: #5b6472;
  --color-border: #e1e5ea;
  --color-primary: #2f6fed;
  --color-primary-hover: #2559c2;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container-width: 1080px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 12px;
}

p {
  margin: 0 0 16px;
}

.site-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--color-border);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.site-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.site-logo img {
  display: block;
  height: 55px;
  width: auto;
}

.site-logo-tagline {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.site-logo:hover {
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  color: var(--color-text-muted);
}

.site-nav-cta {
  color: #ffffff !important;
  background: var(--color-primary);
  padding: 8px 16px;
  border-radius: 6px;
}

.site-nav-cta:hover {
  background: var(--color-primary-hover);
  text-decoration: none;
}

/* Hero */

.hero {
  text-align: center;
  padding: 80px 20px;
}

.hero h1 {
  font-size: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub {
  color: var(--color-text-muted);
  font-size: 18px;
  max-width: 520px;
  margin: 0 auto 28px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  text-decoration: none;
}

/* Features */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 40px 20px 80px;
}

.feature-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 24px;
}

.feature-card p {
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* Contact */

.contact {
  text-align: center;
  padding: 40px 20px 80px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--color-border);
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  color: var(--color-text-muted);
  font-size: 14px;
}

/* Homepage story sections (Oct 10) — full-width sections walking through
   the actual field workflow, alternating layout/background for rhythm.
   Graphics below are CSS/HTML mockups (phone/stepper/card shapes), not
   photos — James opted for illustration now over waiting on licensed
   jobsite photography; swapping in real photos later just means
   replacing a .story-graphic's contents, the layout classes don't change. */

.hero-band {
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, #ffffff 100%);
}

.story-section {
  padding: 72px 0;
}

.story-section.tint {
  background: var(--color-bg-alt);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.story-grid.reverse .story-text {
  order: 2;
}

.story-grid.reverse .story-graphic {
  order: 1;
}

.story-eyebrow {
  display: inline-block;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.story-text h2 {
  font-size: 28px;
}

.story-text p {
  color: var(--color-text-muted);
  font-size: 16px;
  margin-bottom: 0;
}

.story-graphic {
  display: flex;
  justify-content: center;
}

/* Graphic: voice-to-report phone mockup */

.phone-mock {
  width: 260px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(26, 29, 35, 0.12);
  padding: 24px 18px;
}

.phone-mock-mic {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #ffffff;
  font-size: 20px;
}

.phone-mock-wave {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 36px;
  margin-bottom: 18px;
}

.phone-mock-wave span {
  display: block;
  width: 4px;
  background: var(--color-primary);
  border-radius: 2px;
  opacity: 0.55;
}

.phone-mock-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.phone-mock-chip {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
}

/* Graphic: order lifecycle stepper */

.order-stepper {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 20px 40px rgba(26, 29, 35, 0.1);
  width: 300px;
}

.order-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  padding-bottom: 24px;
}

.order-step:last-child {
  padding-bottom: 0;
}

.order-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.order-step-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  z-index: 1;
}

.order-step-label {
  font-weight: 600;
  font-size: 14px;
}

.order-step-sub {
  color: var(--color-text-muted);
  font-size: 13px;
}

/* Graphic: delay -> GC email card */

.delay-card {
  width: 280px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(26, 29, 35, 0.1);
}

.delay-card-flag {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff4e5;
  border: 1px solid #f3d9a8;
  color: #8a5a00;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 14px;
}

.delay-card-body {
  font-size: 14px;
  color: var(--color-text);
  margin-bottom: 16px;
}

.delay-card-sent {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #e9f6ec;
  border: 1px solid #bfe3c8;
  color: #1f7a37;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
}

/* "...and more" strip */

.more-strip {
  padding: 48px 20px;
  text-align: center;
}

.more-strip-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 20px;
  color: var(--color-text-muted);
  font-size: 15px;
}

/* CTA band */

.cta-band {
  background: var(--color-primary);
  color: #ffffff;
  text-align: center;
  padding: 64px 20px;
}

.cta-band h2 {
  color: #ffffff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 480px;
  margin: 0 auto 24px;
}

.cta-band .btn-primary {
  background: #ffffff;
  color: var(--color-primary);
}

.cta-band .btn-primary:hover {
  background: #f0f4ff;
}

@media (max-width: 860px) {
  .story-grid,
  .story-grid.reverse {
    grid-template-columns: 1fr;
  }

  .story-grid .story-text,
  .story-grid.reverse .story-text,
  .story-grid .story-graphic,
  .story-grid.reverse .story-graphic {
    order: initial;
  }

  .story-graphic {
    margin-top: 12px;
  }
}

/* Pricing page (Oct 10) */

.pricing-kicker {
  display: inline-block;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  padding: 24px 20px 8px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(47, 111, 237, 0.14);
  border-color: var(--color-primary);
}

.pricing-card.featured {
  background: #ffffff;
  border: 2px solid var(--color-primary);
  box-shadow: 0 8px 24px rgba(47, 111, 237, 0.16);
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-tier-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.pricing-rate {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-text);
  margin: 10px 0 2px;
}

.pricing-rate-period {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
}

.pricing-workers {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-bottom: 20px;
  min-height: 40px;
}

.pricing-card .btn {
  margin-top: auto;
  width: 100%;
}

.pricing-trial-note {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 14px;
  margin: 8px 0 0;
}

.plan-includes-list {
  list-style: none;
  padding: 0;
  margin: 20px auto 0;
  max-width: 640px;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px 32px;
  justify-content: center;
  text-align: left;
}

.plan-includes-list li {
  color: var(--color-text-muted);
  padding-left: 26px;
  position: relative;
}

.plan-includes-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */

@media (max-width: 700px) {
  /* Sep 19: on a real phone, the logo block + full nav row (Features,
     Contact, Log in) don't fit on one line — "Log in" was wrapping to two
     lines and getting clipped at the screen edge. Stacking the header
     (logo on top, nav below, both full width) instead of trying to keep
     them side by side fixes it cleanly without needing a hamburger menu
     for just three links. */
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .site-nav {
    width: 100%;
    gap: 16px;
    flex-wrap: wrap;
  }

  .site-nav-cta {
    white-space: nowrap;
  }

  .hero {
    padding: 48px 20px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    padding: 16px 20px 8px;
  }

  .plan-includes-list {
    grid-template-columns: 1fr;
  }

  .site-footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}