/* RigCast marketing site - shared styles
   Dark theme, mobile-first, built for truck drivers: big type, high contrast. */

:root {
  --navy: #0B0F17;
  --navy-2: #0A1226;
  --blue: #2563EB;
  --blue-bright: #3B82F6;
  --amber: #FBBF24;
  --text: #F8FAFC;
  --muted: #9CA3AF;
  --card: #121826;
  --card-2: #0F1521;
  --border: #1E293B;
  --go: #22C55E;
  --caution: #FBBF24;
  --wait: #F97316;
  --shut: #EF4444;
  --maxw: 1080px;
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 { line-height: 1.15; margin: 0 0 .4em; font-weight: 800; }

h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.muted { color: var(--muted); }
.amber { color: var(--amber); }
.center { text-align: center; }

/* ---------- Skip link + focus ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--amber);
  color: #111;
  padding: 12px 18px;
  font-weight: 700;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 23, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.3rem;
}
.brand img { width: 36px; height: 36px; }
.brand .cast { color: var(--amber); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}
.nav-links a:hover { color: var(--amber); }
.nav-links .nav-cta {
  background: var(--blue);
  padding: 10px 18px;
  border-radius: 10px;
  color: #fff;
}
.nav-links .nav-cta:hover { background: var(--blue-bright); color: #fff; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 48px;
  height: 48px;
  border-radius: 10px;
  font-size: 1.5rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  padding: 16px 26px;
  font-size: 1.05rem;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-bright); }
.btn-amber { background: var(--amber); color: #111; }
.btn-amber:hover { filter: brightness(1.08); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-ghost:hover { border-color: var(--amber); }

/* ---------- Store badges ---------- */
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  border: 1px solid #2b3344;
  border-radius: 12px;
  padding: 10px 18px;
  text-decoration: none;
  color: #fff;
  min-width: 200px;
}
.store-badge:hover { border-color: var(--amber); }
.store-badge svg { width: 30px; height: 30px; flex: 0 0 auto; }
.store-badge .sb-text { display: flex; flex-direction: column; line-height: 1.1; }
.store-badge .sb-small { font-size: .72rem; color: #cbd5e1; }
.store-badge .sb-big { font-size: 1.2rem; font-weight: 700; }

.coming-soon {
  display: inline-block;
  margin-top: 14px;
  font-size: .95rem;
  color: var(--amber);
  font-weight: 600;
}
.coming-soon::before {
  content: "";
  display: inline-block;
  width: 9px; height: 9px;
  background: var(--amber);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { margin-bottom: .3em; }
.section-head p { color: var(--muted); font-size: 1.15rem; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .85rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 10px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 64px 0 56px;
  background:
    radial-gradient(1100px 500px at 50% -10%, rgba(37, 99, 235, 0.28), transparent 60%),
    linear-gradient(180deg, var(--navy-2), var(--navy));
  overflow: hidden;
}
.hero-inner { text-align: center; max-width: 760px; margin: 0 auto; }
.hero-logo { width: 84px; height: 84px; margin: 0 auto 18px; }
.hero h1 { font-size: 3.2rem; margin-bottom: .15em; }
.hero h1 .rig { color: var(--text); }
.hero h1 .cast { color: var(--amber); }
.hero .tagline { font-size: 1.55rem; font-weight: 700; margin-bottom: .35em; }
.hero .subhead { font-size: 1.2rem; color: var(--muted); max-width: 560px; margin: 0 auto 30px; }
.hero .store-row { justify-content: center; }

.hero-banner {
  margin: 44px auto 0;
  max-width: 920px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}

/* ---------- Verdict chips (hero accent) ---------- */
.verdicts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 28px 0 4px;
}
.chip {
  font-weight: 800;
  font-size: .95rem;
  padding: 8px 16px;
  border-radius: 999px;
  letter-spacing: .03em;
}
.chip-go { background: rgba(34,197,94,.15); color: var(--go); border: 1px solid rgba(34,197,94,.4); }
.chip-caution { background: rgba(251,191,36,.15); color: var(--caution); border: 1px solid rgba(251,191,36,.4); }
.chip-wait { background: rgba(249,115,22,.15); color: var(--wait); border: 1px solid rgba(249,115,22,.4); }
.chip-shut { background: rgba(239,68,68,.15); color: var(--shut); border: 1px solid rgba(239,68,68,.4); }

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: .3em; }
.step p { color: var(--muted); margin: 0; }

/* ---------- Features ---------- */
.alt { background: var(--navy-2); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.feature .fi {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(37,99,235,.16);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature .fi svg { width: 28px; height: 28px; stroke: var(--amber); }
.feature h3 { margin-bottom: .25em; }
.feature p { color: var(--muted); margin: 0; font-size: 1.02rem; }

/* feature with screenshot */
.shot-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 56px;
}
.shot-row.reverse .shot-text { order: 2; }
.shot-row img {
  margin: 0 auto;
  max-width: 280px;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
}
.shot-text h3 { font-size: 1.5rem; }
.shot-text p { color: var(--muted); font-size: 1.1rem; }

/* ---------- For fleets ---------- */
.fleet {
  background:
    radial-gradient(800px 380px at 80% 0%, rgba(37,99,235,.18), transparent 60%),
    var(--navy);
}
.fleet-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 880px;
  margin: 0 auto;
}
.fleet-list { list-style: none; padding: 0; margin: 0 0 28px; }
.fleet-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 1.08rem;
}
.fleet-list li:last-child { border-bottom: none; }
.fleet-list .check {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(34,197,94,.18);
  color: var(--go);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  margin-top: 2px;
}

/* ---------- Final CTA ---------- */
.cta {
  text-align: center;
  background: linear-gradient(180deg, var(--navy), var(--navy-2));
}
.cta h2 { font-size: 2.2rem; }
.cta .store-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-2);
  border-top: 1px solid var(--border);
  padding: 48px 0 36px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}
.footer-brand { max-width: 320px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { color: var(--muted); font-size: .98rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 40px; }
.footer-col h4 {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin: 0 0 12px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text); text-decoration: none; }
.footer-col a:hover { color: var(--amber); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  color: var(--muted);
  font-size: .92rem;
}

/* ---------- Legal pages ---------- */
.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 20px 80px;
}
.legal h1 { font-size: 2rem; margin-bottom: 6px; }
.legal h2 { font-size: 1.3rem; margin-top: 34px; }
.legal .eff { color: var(--muted); font-size: .95rem; margin-bottom: 28px; }
.legal p { color: #E2E8F0; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; color: #E2E8F0; }
.legal a { color: var(--blue-bright); }
.legal .box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 22px;
  margin-top: 12px;
}
.legal .warn {
  background: rgba(251,191,36,.12);
  border: 1px solid var(--amber);
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 16px;
  font-weight: 600;
  color: var(--text);
}
.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.back-link:hover { color: var(--amber); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  body { font-size: 17px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .hero h1 { font-size: 2.5rem; }
  .hero .tagline { font-size: 1.3rem; }

  .menu-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy-2);
    border-bottom: 1px solid var(--border);
    padding: 8px 16px 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 16px 6px;
    border-bottom: 1px solid var(--border);
    font-size: 1.1rem;
  }
  .nav-links .nav-cta { text-align: center; margin-top: 10px; border-bottom: none; }

  .steps { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .shot-row { grid-template-columns: 1fr; gap: 24px; }
  .shot-row.reverse .shot-text { order: 0; }
  .fleet-card { padding: 28px 22px; }
  section { padding: 56px 0; }
}

@media (max-width: 420px) {
  .store-badge { min-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
