/* Public home / about page (templates/about.html, served at "/" for
   signed-out visitors on the main domain and at /about). Builds on
   tracking.css — same colours (light and dark), hero, cards, road and van;
   only the page's own layout lives here. */

/* ---- Hero ---- */
.home-hero .track-eyebrow {
  margin-bottom: 8px;
}

.home-nav,
.home-hero-inner,
.home-main,
.home-footer {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.home-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--hero-text);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}

.home-brand small {
  margin-left: 2px;
  color: var(--hero-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.home-brand-van {
  width: 40px;
  height: 23px;
  color: var(--van);
}

.home-nav-links {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.home-nav a {
  color: var(--hero-text);
}

.home-nav-links a,
.home-nav-signin a {
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  opacity: 0.88;
}

.home-nav-links a:hover,
.home-nav-signin a:hover,
.home-nav-links a:focus-visible,
.home-nav-signin a:focus-visible {
  opacity: 1;
  text-decoration: underline;
}

.home-nav-signin {
  display: flex;
  gap: 16px;
}

.home-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 36px;
}

.home-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.about-lead {
  max-width: 34em;
  margin: 16px 0 0;
  color: var(--hero-muted);
  font-size: 1.1rem;
  line-height: 1.55;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
}

.about-btn {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  color: var(--hero-text);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

.about-btn:hover,
.about-btn:focus-visible {
  background: rgba(255, 255, 255, 0.15);
}

.about-btn-primary {
  border-color: var(--van);
  background: var(--van);
  color: #1d1a12;
}

.about-btn-primary:hover,
.about-btn-primary:focus-visible {
  background: #f9c862;
}

.home-track-card {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.10);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(4px);
}

.home-track-card h2 {
  margin: 0;
  font-size: 1.25rem;
}

.home-track-card p {
  margin: 4px 0 14px;
  color: var(--hero-muted);
}

.home-track-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--hero-text);
  font-size: 0.9rem;
  opacity: 0.85;
}

.home-road {
  max-width: 1080px;
}

.home-road .track-van {
  animation-name: home-drive;
  animation-duration: 20s;
}

@keyframes home-drive {
  0% { transform: translateX(-80px); }
  100% { transform: translateX(calc(min(1080px, 100vw) + 80px)); }
}

/* ---- Sections ---- */
.home-main {
  padding-top: 56px;
  padding-bottom: 56px;
}

.home-section + .home-section,
.home-section + .home-columns {
  margin-top: 64px;
}

.home-kicker {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-section > h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
}

.home-intro {
  max-width: 44em;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.home-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.home-steps li {
  position: relative;
  counter-increment: step;
}

.home-steps li::after {
  content: counter(step);
  position: absolute;
  top: 18px;
  right: 20px;
  color: var(--line);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.home-steps h3,
.home-features h3 {
  margin: 14px 0 6px;
  font-size: 1.05rem;
}

.home-steps p,
.home-features p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.home-steps strong {
  color: var(--text);
}

.home-step-icon,
.home-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}

.home-step-icon svg,
.home-feature-icon svg {
  width: 24px;
  height: 24px;
}

.home-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 32px;
  margin: 28px 0 0;
  padding: 28px;
  list-style: none;
}

.home-features li {
  display: flex;
  gap: 14px;
}

.home-features h3 {
  margin-top: 2px;
}

.home-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.about-section h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.about-section p,
.about-section li {
  line-height: 1.55;
}

.about-section p {
  margin: 0 0 10px;
}

.about-section ul {
  margin: 0 0 10px;
  padding-left: 20px;
}

.about-section li + li {
  margin-top: 4px;
}

.about-section a {
  color: var(--accent);
}

.about-section code {
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.home-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
}

.home-contact p:last-child {
  margin-bottom: 0;
}

.about-section .about-btn-primary {
  color: #1d1a12;
}

/* ---- Footer ---- */
.home-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  padding-bottom: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.home-footer p {
  margin: 0;
}

.home-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.home-footer a {
  color: var(--muted);
}

/* ---- Narrower screens ---- */
@media (max-width: 960px) {
  .home-nav-links {
    display: none;
  }

  .home-nav-signin {
    margin-left: auto;
  }

  .home-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .home-hero-inner,
  .home-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-hero-inner {
    gap: 28px;
    padding-top: 20px;
  }

  /* The hero buttons carry both sign-in links on a phone. */
  .home-nav-signin {
    display: none;
  }

  .home-main {
    padding-top: 40px;
  }

  .home-section + .home-section,
  .home-section + .home-columns {
    margin-top: 48px;
  }

  .home-contact {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .home-steps,
  .home-features {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-track-card,
  .home-features {
    padding: 18px;
  }
}
