/* ============================================================
   CarpoolLine.com — Stylesheet
   ------------------------------------------------------------
   Palette (edit in one place):
     --navy       deep navy, headings & header
     --slate      body text
     --blue       soft blue, links & secondary accents
     --sky        soft blue tint, section backgrounds
     --green      green accent, primary CTAs
   ============================================================ */

:root {
  --navy:        #14294a;
  --navy-deep:   #0d1c33;
  --slate:       #4a586c;
  --slate-light: #6b7a8f;
  --blue:        #2f6fb3;
  --sky:         #edf3fa;
  --sky-deep:    #dbe7f4;
  --green:       #23935f;
  --green-dark:  #1b7a4e;
  --white:       #ffffff;
  --border:      #dde5ef;
  --amber:       #e0a530;

  --font-display: "Bricolage Grotesque", "Segoe UI", Arial, sans-serif;
  --font-body:    "Inter", "Segoe UI", Arial, sans-serif;

  --radius:    14px;
  --radius-sm: 9px;
  --shadow:    0 10px 30px rgba(20, 41, 74, 0.10);
  --shadow-sm: 0 3px 12px rgba(20, 41, 74, 0.07);

  --container: 1120px;
}

/* ---------- Reset / base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.35rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.18rem; font-weight: 600; }

p { margin: 0 0 1.1em; }

a { color: var(--blue); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--green);
  color: #fff;
}
.btn-primary:hover { background: var(--green-dark); }

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--sky-deep);
}
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }

.btn-light {
  background: #fff;
  color: var(--navy);
}
.btn-light:hover { background: var(--sky); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

/* Three dots suggesting cars queued in a line */
.brand-mark { display: flex; gap: 4px; align-items: center; }
.brand-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--sky-deep);
}
.brand-dot:first-child { background: var(--green); width: 11px; height: 11px; }
.brand-dot:nth-child(2) { background: var(--blue); }

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.brand-accent { color: var(--green); }

.site-nav { display: flex; align-items: center; gap: 6px; }

.site-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--slate);
  text-decoration: none;
  padding: 9px 15px;
  border-radius: 999px;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.site-nav a:hover { color: var(--navy); background: var(--sky); }
.site-nav a.is-active { color: var(--navy); background: var(--sky); }

.site-nav a.nav-cta {
  background: var(--navy);
  color: #fff;
  margin-left: 8px;
}
.site-nav a.nav-cta:hover,
.site-nav a.nav-cta.is-active { background: var(--green); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle-bar {
  width: 24px; height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Sections ---------- */

.section { padding: 88px 0; }
.section-tint { background: var(--sky); }
.section-navy { background: var(--navy); }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: #c8d6ea; }

/* Dashed lane-line divider — the carpool line motif */
.lane-divider {
  border: 0;
  height: 0;
  margin: 0 auto;
  max-width: var(--container);
  border-top: 3px dashed var(--sky-deep);
  width: calc(100% - 48px);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.12rem; }

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(ellipse 900px 480px at 85% -10%, var(--sky) 0%, transparent 60%),
    var(--white);
  padding: 84px 0 96px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero-copy .eyebrow { color: var(--blue); }

.hero-sub {
  font-size: 1.2rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-note {
  margin-top: 22px;
  font-size: 0.92rem;
  color: var(--slate-light);
}

/* Signature element: an "arrival order" dashboard mockup */

.queue-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 22px 14px;
  max-width: 440px;
  margin-left: auto;
}

.queue-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}

.queue-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  font-size: 0.98rem;
}

.queue-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
}
.queue-live::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.queue-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 4px;
  border-bottom: 1px dashed var(--sky-deep);
}
.queue-row:last-child { border-bottom: 0; }

.queue-pos {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  width: 30px;
  flex-shrink: 0;
  text-align: center;
}

.queue-tag {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--blue);
  background: var(--sky);
  border-radius: 6px;
  padding: 4px 10px;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

.queue-info { flex: 1; min-width: 0; }
.queue-name {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
  line-height: 1.3;
}
.queue-lane {
  font-size: 0.8rem;
  color: var(--slate-light);
}

.queue-status {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  flex-shrink: 0;
}
.status-ready   { background: #e2f4ea; color: var(--green-dark); }
.status-notify  { background: var(--sky); color: var(--blue); }
.status-arrived { background: #fbf2dc; color: #96700f; }

.queue-caption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--slate-light);
  padding: 12px 0 4px;
  border-top: 1px solid var(--border);
  margin-top: 6px;
}

/* ---------- Cards grid ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
}

.card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--sky);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; }

.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: 0.98rem; }

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

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}

.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px 26px;
  box-shadow: var(--shadow-sm);
}

.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background: var(--navy);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step h3 { font-size: 1.08rem; }
.step p { margin-bottom: 0; font-size: 0.95rem; }

/* connector between steps (desktop) */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 46px;
  right: -22px;
  width: 22px;
  border-top: 3px dashed var(--sky-deep);
}

/* ---------- Checklist / pill lists ---------- */

.pill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pill-grid li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-weight: 500;
  color: var(--navy);
  font-size: 0.97rem;
  display: flex;
  align-items: center;
  gap: 11px;
}

.pill-grid li::before {
  content: "";
  flex-shrink: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.section-navy .pill-grid li {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: #eaf1fa;
}

/* ---------- Split layout ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split .section-head { margin-bottom: 0; }

.hero-img-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--sky);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: var(--radius);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* faint lane lines in the CTA background */
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0 70px,
    rgba(255, 255, 255, 0.05) 70px 74px
  );
  pointer-events: none;
}

.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: #c8d6ea; max-width: 560px; margin: 0 auto 28px; position: relative; }
.cta-band .btn { position: relative; }

/* ---------- Content pages ---------- */

.page-hero {
  background:
    radial-gradient(ellipse 700px 380px at 90% -20%, var(--sky) 0%, transparent 60%),
    var(--white);
  padding: 72px 0 56px;
}
.page-hero .section-head { margin-bottom: 0; }

.prose { max-width: 720px; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }

.question-list {
  padding: 0;
  margin: 0;
  list-style: none;
  max-width: 760px;
}
.question-list li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-bottom: 12px;
  color: var(--navy);
  font-weight: 500;
}

/* ---------- Forms ---------- */

.form-wrap {
  max-width: 720px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 40px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 22px;
}

.field { display: flex; flex-direction: column; }
.field-full { grid-column: 1 / -1; }

.field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  margin-bottom: 7px;
}

.req { color: var(--green); }

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--navy);
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color 0.15s ease;
  width: 100%;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 111, 179, 0.14);
}

.field textarea { resize: vertical; min-height: 140px; }

.form-actions { margin-top: 28px; }

.form-errors {
  background: #fdeeee;
  border: 1px solid #f0c7c7;
  color: #8f2626;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 26px;
}
.form-errors ul { margin: 6px 0 0; padding-left: 20px; }

/* Honeypot — hidden from humans, visible to bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* ---------- Thank you ---------- */

.thanks {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 0;
}

.thanks-mark {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: #e2f4ea;
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 26px;
}
.thanks-mark svg { width: 32px; height: 32px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: #b9c8de;
  padding: 56px 0 36px;
  margin-top: 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.14);
}

.site-footer .brand-name { color: #fff; }
.footer-tagline { margin: 8px 0 0; font-size: 0.95rem; color: #8fa3c0; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 26px; }
.footer-nav a {
  color: #c8d6ea;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.97rem;
}
.footer-nav a:hover { color: #fff; }

.footer-legal {
  padding-top: 26px;
  font-size: 0.86rem;
  color: #8fa3c0;
}
.footer-legal p { margin: 0 0 6px; }
.footer-disclaimer { font-size: 0.82rem; }

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .queue-live::before { animation: none; }
  .btn:hover { transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .queue-card { margin: 0 auto; }
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:not(:last-child)::after { display: none; }
  .pill-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }

  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 20px;
    gap: 4px;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 15px; }
  .site-nav a.nav-cta { margin-left: 0; margin-top: 8px; text-align: center; }

  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .pill-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-wrap { padding: 28px 22px; }
  .cta-band { padding: 48px 26px; }
  .hero { padding: 56px 0 68px; }
}
