/* SiteHaul marketing site — corporate B2B look, auto light/dark */

:root{
  --max: 1160px;
  --headerH: 56px; /* header height for fixed nav + anchor offset */

  /* Light theme (default) */
  --bg: #ffffff;
  --bg-elev: #f6f8fb;
  --surface: rgba(255,255,255,.92);
  --surface-solid: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --hairline: rgba(15,23,42,.14);

  /* Brand */
  --accent: #1d4ed8;
  --accent-hover: #1e40af;

  --radius: 18px;
  --radius-sm: 12px;

  --shadow: 0 14px 40px rgba(15,23,42,.10);
  --shadow-sm: 0 10px 24px rgba(15,23,42,.10);

  --padX: clamp(18px, 4vw, 30px);
  --sectionY: clamp(56px, 7vw, 92px);
}

@media (prefers-color-scheme: dark){
  :root{
    --bg: #0b1220;
    --bg-elev: #0f172a;
    --surface: rgba(15,23,42,.78);
    --surface-solid: #0f172a;
    --text: #f8fafc;
    --muted: #94a3b8;
    --hairline: rgba(248,250,252,.14);

    --accent: #60a5fa;
    --accent-hover: #3b82f6;

    --shadow: 0 18px 56px rgba(0,0,0,.55);
    --shadow-sm: 0 14px 40px rgba(0,0,0,.45);
  }
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

/* Fixed header offset */
html{ scroll-padding-top: calc(var(--headerH) + env(safe-area-inset-top)); }
main#main{ padding-top: calc(var(--headerH) + env(safe-area-inset-top)); }
section[id]{ scroll-margin-top: calc(var(--headerH) + env(safe-area-inset-top) + 18px); }

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a{ color: inherit; }
img{ max-width: 100%; height: auto; }

.container{
  width: 100%;
  max-width: var(--max);
  padding-inline: var(--padX);
  margin: 0 auto;
}

.skip{
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface-solid);
  color: var(--text);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  z-index: 9999;
}
.skip:focus{ left: 12px; top: 12px; }

/* Header */
.site-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;

  background: var(--surface);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);

  border-bottom: 1px solid var(--hairline);
  padding-top: env(safe-area-inset-top);
}

.nav-wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  max-width: var(--max);
  height: var(--headerH);
  padding: 0 var(--padX);
  margin: 0 auto;
}

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

.brand-logo{
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

.brand-name{
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

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

.nav a{
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 8px;
  border-radius: 10px;
  transition: background .18s ease, color .18s ease, transform .12s ease;
}
.nav a:hover{
  color: var(--text);
  background: rgba(15,23,42,.06);
}
@media (prefers-color-scheme: dark){
  .nav a:hover{ background: rgba(248,250,252,.08); }
}

/* Home button */
.nav a.nav-home{
  color: var(--text);
  background: rgba(15,23,42,.05);
}
.nav a.nav-home:hover{ background: rgba(15,23,42,.08); }
@media (prefers-color-scheme: dark){
  .nav a.nav-home{ background: rgba(248,250,252,.08); }
  .nav a.nav-home:hover{ background: rgba(248,250,252,.12); }
}

.nav-download{
  color: #fff !important;
  background: var(--accent);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}
.nav-download:hover{ background: var(--accent-hover); }

/* Mobile menu button */
.nav-toggle{
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--hairline);
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle:active{ transform: scale(.98); }

.nav-toggle-icon{
  width: 18px;
  height: 2px;
  background: var(--text);
  display: block;
  position: relative;
  border-radius: 2px;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after{
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}
.nav-toggle-icon::before{ top: -6px; }
.nav-toggle-icon::after{ top: 6px; }

/* Hero */
.hero{
  padding: calc(var(--sectionY) * 0.85) 0 var(--sectionY);
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(29,78,216,.12), transparent 60%),
    radial-gradient(900px 420px at 90% 10%, rgba(29,78,216,.10), transparent 62%),
    linear-gradient(180deg, var(--bg), var(--bg-elev));
}
@media (prefers-color-scheme: dark){
  .hero{
    background:
      radial-gradient(900px 420px at 10% -10%, rgba(96,165,250,.18), transparent 60%),
      radial-gradient(900px 420px at 90% 10%, rgba(96,165,250,.12), transparent 62%),
      linear-gradient(180deg, var(--bg), var(--bg-elev));
  }
}

.hero-grid{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(22px, 5vw, 46px);
  align-items: center;
}

.hero-copy{
  text-align: left;
}

.eyebrow{
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 11px;
}

.hero-logo-row{
  display: flex;
  justify-content: flex-start;
  margin-bottom: 14px;
}
.hero-logo{
  width: min(220px, 60vw);
  height: auto;
  display: block;
}

.hero-title{
  margin: 0;
  font-size: clamp(34px, 5.3vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.hero-sub{
  margin: 14px 0 0;
  max-width: 760px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
}

.hero-actions{
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  align-items: center;
  margin-top: 18px;
  flex-wrap: wrap;
}

.hero-footnote{
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.hero-checks{
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  max-width: 560px;
}
.hero-checks li{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  line-height: 1.4;
}
.hero-checks li::before{
  content: "✓";
  color: var(--accent);
  font-weight: 800;
  margin-top: 1px;
}

/* Hero media (e.g., dump truck image) */
.hero-side{
  display: grid;
  gap: 14px;
  justify-items: stretch;
}

.hero-media{
  margin: 0;
}
.hero-media-img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: var(--surface-solid);
  box-shadow: var(--shadow);
}

.hero-panel{
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: var(--surface-solid);
  box-shadow: var(--shadow-sm);
  padding: 16px;
}
.hero-panel-title{
  margin: 0 0 8px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.hero-panel-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.hero-panel-metric{
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  padding: 12px 12px;
}
.hero-panel-k{
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.hero-panel-v{
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 4px;
}

/* Showcase cards under hero */
.hero-showcase{
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.shot{
  border-radius: var(--radius);
  background: var(--surface-solid);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  min-height: 0;
  display: grid;
  gap: 6px;
  text-align: left;
}

.shot-label{
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 15px;
}
.shot-sub{
  color: var(--muted);
  font-size: 13px;
}

/* Sections */
.section{
  padding: var(--sectionY) 0;
}
.section-alt{
  background: var(--bg-elev);
}

.section-title{
  font-size: clamp(26px, 3.6vw, 40px);
  letter-spacing: -0.02em;
  margin: 0;
}

.section-lead{
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 760px;
}

/* Tiles */
.tiles{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.tile{
  border-radius: var(--radius);
  background: var(--surface-solid);
  border: 1px solid var(--hairline);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.tile h3{
  margin: 0 0 8px;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.tile p{ margin: 0; color: var(--muted); line-height: 1.6; }
.tile .fine{ margin-top: 10px; }

.tile-wide{
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 18px;
}

.tile-visual{
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.visual-pill{
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgba(15,23,42,.04);
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--text);
}
@media (prefers-color-scheme: dark){
  .visual-pill{ background: rgba(248,250,252,.08); }
}

/* Media cards (screenshots in sections) */
.media-card{
  margin-top: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--surface-solid);
  box-shadow: var(--shadow-sm);
}
.media-inner{
  background: rgba(15,23,42,.03);
  padding: 18px;
  display: grid;
  place-items: center;
}
@media (prefers-color-scheme: dark){
  .media-inner{ background: rgba(248,250,252,.06); }
}
.media-img{
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 560px;
  display: block;
}
@media (max-width: 620px){
  .media-inner{ padding: 12px; }
  .media-img{ max-height: 440px; }
}

/* Steps */
.steps{
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step{
  border-radius: var(--radius);
  background: var(--surface-solid);
  border: 1px solid var(--hairline);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.step-num{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(29,78,216,.12);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 10px;
}
@media (prefers-color-scheme: dark){
  .step-num{ background: rgba(96,165,250,.16); }
}
.step h3{ margin: 0 0 8px; font-size: 17px; }
.step p{ margin: 0; color: var(--muted); line-height: 1.6; }

/* Callout */
.callout{
  margin-top: 22px;
  border-radius: var(--radius);
  background: var(--surface-solid);
  border: 1px solid var(--hairline);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}
.callout h3{ margin: 0 0 8px; letter-spacing: -0.01em; }
.callout p{ margin: 0; color: var(--muted); }
.callout-right{
  display: flex;
  gap: 12px;
}
.callout-metric{
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  background: rgba(15,23,42,.03);
  padding: 12px 14px;
  min-width: 140px;
  text-align: left;
}
@media (prefers-color-scheme: dark){
  .callout-metric{ background: rgba(248,250,252,.06); }
}
.callout-k{ color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.callout-v{ font-size: 24px; font-weight: 900; letter-spacing: -0.02em; }

/* Pricing */
.pricing{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}
.price-card{
  border-radius: var(--radius);
  background: var(--surface-solid);
  border: 1px solid var(--hairline);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 10px;
}
.price-card.featured{
  border-color: rgba(29,78,216,.35);
  background: linear-gradient(180deg, rgba(29,78,216,.10), rgba(0,0,0,0));
}
@media (prefers-color-scheme: dark){
  .price-card.featured{
    border-color: rgba(96,165,250,.35);
    background: linear-gradient(180deg, rgba(96,165,250,.14), rgba(0,0,0,0));
  }
}
.price-card h3{ margin: 0; font-size: 17px; }
.price-big{ font-size: 34px; font-weight: 900; letter-spacing: -0.02em; }
.muted{ color: var(--muted); margin: 0; }
.bullets{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.bullets li{ margin: 6px 0; }

/* FAQ layout (image + accordion) */
.faq-split{
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 18px;
  align-items: start;
}
.faq-media{
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--surface-solid);
  box-shadow: var(--shadow-sm);
}
.faq-img{
  width: 100%;
  height: auto;
  display: block;
}
.faq-split .faq{
  margin-top: 0;
  max-width: none;
}
@media (max-width: 980px){
  .faq-split{ grid-template-columns: 1fr; }
}
.faq{
  margin-top: 18px;
  display: grid;
  gap: 10px;
  max-width: 860px;
}
details{
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: var(--surface-solid);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
summary{
  cursor: pointer;
  font-weight: 800;
  letter-spacing: -0.01em;
}
details p{ color: var(--muted); margin: 10px 0 0; line-height: 1.6; }

/* CTA band */
.cta-band{
  margin-top: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: var(--surface-solid);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cta-band h3{ margin: 0 0 6px; letter-spacing: -0.01em; }
.cta-band-actions{ display:flex; gap: 10px; flex-wrap: wrap; }

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  border: 1px solid transparent;
  transition: transform .12s ease, background .18s ease, border-color .18s ease;
  user-select: none;
}
.btn:active{ transform: scale(.98); }

.btn.primary{
  background: var(--accent);
  color: white;
}
.btn.primary:hover{ background: var(--accent-hover); }

.btn.ghost{
  background: transparent;
  border-color: var(--hairline);
  color: var(--text);
}
.btn.ghost:hover{
  background: rgba(15,23,42,.05);
}
@media (prefers-color-scheme: dark){
  .btn.ghost:hover{ background: rgba(248,250,252,.08); }
}

.btn.link{
  background: transparent;
  color: var(--accent);
  padding-inline: 8px;
}
.btn.link:hover{ text-decoration: underline; }

/* Footer */
.footer{
  padding: 34px 0;
  border-top: 1px solid var(--hairline);
  background: var(--bg);
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  align-items: start;
}
.footer-brand{
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-logo{ width: 28px; height: 28px; object-fit: contain; display:block; }
.footer-name{ font-weight: 900; letter-spacing: -0.01em; }
.footer-note{ color: var(--muted); font-size: 13px; margin-top: 2px; }
.footer-links{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  justify-content: flex-end;
}
.footer-links a{
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 10px;
}
.footer-links a:hover{
  color: var(--text);
  background: rgba(15,23,42,.05);
}
@media (prefers-color-scheme: dark){
  .footer-links a:hover{ background: rgba(248,250,252,.08); }
}
.footer-copy{
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
}

/* Page hero (support/privacy/terms/legal) */
.page-hero{
  padding: calc(var(--sectionY) * .75) 0 calc(var(--sectionY) * .55);
  background: linear-gradient(180deg, var(--bg), var(--bg-elev));
}
.page-title{
  margin: 0;
  font-size: clamp(32px, 5vw, 54px);
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.page-sub{
  margin: 10px 0 0;
  max-width: 780px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

/* Support cards */
.support-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.support-card{
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: var(--surface-solid);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 10px;
}
.support-card h3{ margin: 0; letter-spacing: -0.01em; }
.support-card p{ margin: 0; color: var(--muted); line-height: 1.6; }
.support-link{ color: var(--accent); font-weight: 800; }

/* Prose */
.prose{
  max-width: 880px;
}
.prose h2{
  margin: 28px 0 8px;
  letter-spacing: -0.01em;
}
.prose p{
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.75;
}
.prose a{ color: var(--accent); }

/* Utilities */
.fine{ color: var(--muted); font-size: 13px; line-height: 1.55; }
.center{ text-align: center; }
.hide-mobile{ display: inline; }

/* Responsive */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-side{ order: 2; }
  .hero-copy{ order: 1; }
  .hero-showcase{ grid-template-columns: 1fr; }

  .tiles{ grid-template-columns: 1fr; }
  .tile-wide{ grid-template-columns: 1fr; text-align: left; }
  .steps{ grid-template-columns: 1fr; }
  .pricing{ grid-template-columns: 1fr; }
  .support-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .footer-links{ justify-content: flex-start; }
}

@media (max-width: 840px){
  .hide-mobile{ display: none; }

  .nav-toggle{ display: inline-flex; }

  /* Collapse nav into dropdown */
  .nav{
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 10px var(--padX) 14px;
    background: var(--surface-solid);
    border-bottom: 1px solid var(--hairline);
  }

  .site-header.nav-open .nav{
    display: grid;
    gap: 8px;
  }

  .nav a{
    display: block;
    color: var(--text);
    background: rgba(15,23,42,.04);
    border-radius: var(--radius-sm);
    padding: 12px 12px;
  }
  @media (prefers-color-scheme: dark){
    .nav a{ background: rgba(248,250,252,.08); }
  }

  .nav-download{
    display: block;
    text-align: center;
  }
}
