/*
 * Landing page styles, ported from the "Localí" artifact (claude.ai).
 * Tokens come from globals.css; everything here is scoped under .landing so
 * the marketing page can't restyle the product screens.
 */

.landing {
  background: var(--bg-page);
  padding-inline: 20px;
  font-size: 16px;
}
.landing .wrap {
  max-width: 1120px;
  margin: 0 auto;
}
.landing h1,
.landing h2,
.landing h3 {
  text-wrap: balance;
}
.landing .eyebrow {
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-muted);
}
.landing .mono,
.landing .num {
  font-family: var(--font-data);
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.landing .logo-l {
  display: var(--logo-light);
}
.landing .logo-d {
  display: var(--logo-dark);
}
.landing .btn.lg {
  height: 44px;
  padding: 0 18px;
  font-size: 16px;
}
.landing .icon {
  width: 18px;
  height: 18px;
  flex: none;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* nav */
.landing nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 18px;
  border-bottom: 1px solid var(--border-default);
}
.landing nav .brand img {
  height: 22px;
  width: auto;
}
.landing .navr {
  display: flex;
  gap: 10px;
  align-items: center;
}
.landing .seg {
  display: flex;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-card);
}
.landing .seg button {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  height: 32px;
  padding: 0 10px;
  cursor: pointer;
  font: 600 12px/1 var(--font-data);
}
.landing .seg button[aria-pressed="true"] {
  background: var(--brand-soft);
  color: var(--text-link);
}

/* hero */
.landing .hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
  padding-block: 56px 72px;
}
.landing .tagline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--brand);
}
.landing .hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 5.2vw, 56px);
  letter-spacing: -0.01em;
  margin-top: 14px;
}
.landing .hero .lede {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 36ch;
  margin: 20px 0 28px;
}
.landing .cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.landing .facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border-default);
  font-size: 14px;
  color: var(--text-secondary);
}
.landing .facts > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.landing .facts .icon {
  color: var(--brand);
}

/* cards & fleet board */
.landing .card {
  overflow: hidden;
}
.landing .card-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-default);
}
.landing .card-h h3 {
  font-size: 14px;
  font-weight: 600;
}
.landing .map {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  background: var(--map-base);
}
.landing .fleet {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--border-default);
}
.landing .fleet-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-default);
}
.landing .fleet-row:last-child {
  border-bottom: 0;
}
.landing .swatch {
  width: 18px;
  height: 3px;
  border-radius: 2px;
}
.landing .fleet-row .who b {
  color: var(--text-heading);
  font-weight: 600;
}
.landing .fleet-row .who span {
  color: var(--text-muted);
  margin-left: 8px;
  font-size: 12px;
}

/* status pill (DS StatusPill) */
.landing .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.landing .pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}
.landing .pill.moving { background: var(--ok-soft); color: var(--ok-text); }
.landing .pill.moving i { background: var(--vehicle-moving); }
.landing .pill.idle { background: var(--warn-soft); color: var(--warn-text); }
.landing .pill.idle i { background: var(--vehicle-idle); }
.landing .pill.stopped { background: var(--neutral-soft); color: var(--neutral-text); }
.landing .pill.stopped i { background: var(--vehicle-stopped); }
.landing .pill.alert { background: var(--danger-soft); color: var(--danger-text); }
.landing .pill.alert i { background: var(--vehicle-alert); }

/* floating brief message over the hero card */
.landing .brief-wrap {
  position: relative;
}
.landing .brief {
  position: absolute;
  right: -18px;
  bottom: 150px;
  width: min(310px, 82%);
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  box-shadow: var(--shadow-token-sm);
  padding: 14px 16px;
}
.landing .brief .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.landing .brief .meta img {
  height: 20px;
  width: 20px;
}
.landing .brief .meta b {
  font-size: 13px;
  color: var(--text-heading);
  margin-left: 8px;
}
.landing .brief p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-body);
}
.landing .brief p + p {
  margin-top: 6px;
}
.landing .brief .stat {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--text-heading);
  line-height: 1;
}

/* section bands */
.landing section.band {
  padding-block: 80px;
  border-top: 1px solid var(--border-default);
}
.landing section.sunken {
  background: var(--bg-app);
  box-shadow: 0 0 0 100vmax var(--bg-app);
  clip-path: inset(0 -100vmax);
  border-top-color: transparent;
}
.landing section.sunken + section.band {
  border-top-color: transparent;
}
.landing .sec-head {
  max-width: 640px;
  margin-bottom: 40px;
}
.landing .sec-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 38px);
  margin-top: 10px;
}
.landing .sec-head p {
  color: var(--text-secondary);
  margin: 14px 0 0;
}

/* daily brief demo */
.landing .brief-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.landing .msg {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  box-shadow: var(--shadow-token-xs);
  padding: 20px;
  max-width: 440px;
}
.landing .msg-h {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.landing .msg-h img {
  width: 28px;
  height: 28px;
}
.landing .msg-h b {
  color: var(--text-heading);
  font-size: 14px;
}
.landing .msg ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 14px;
}
.landing .msg li {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 10px;
  align-items: baseline;
}
.landing .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translateY(-1px);
}
.landing .stats {
  display: flex;
  gap: 28px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-default);
}
.landing .stat-b .v {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--text-heading);
  line-height: 1;
}
.landing .stat-b .l {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.landing .checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.landing .checks li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
}
.landing .checks .icon {
  color: var(--brand);
  margin-top: 3px;
}
.landing .checks b {
  color: var(--text-heading);
  font-weight: 600;
}

/* features */
.landing .features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.landing .feat {
  padding: 20px;
}
.landing .feat .ic {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.landing .feat h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}
.landing .feat p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

/* steps */
.landing .steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: s;
}
.landing .step {
  position: relative;
  padding-top: 48px;
}
.landing .step::before {
  counter-increment: s;
  content: counter(s);
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-soft);
  border: 1px solid var(--brand-soft-border);
  color: var(--text-link);
  display: grid;
  place-items: center;
  font: 600 13px/1 var(--font-data);
}
.landing .step::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 44px;
  right: -20px;
  border-top: 1px dashed var(--border-strong);
}
.landing .step:last-child::after {
  display: none;
}
.landing .step h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}
.landing .step p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

/* demo form */
.landing .demo {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: start;
}
.landing form.card {
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.landing .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.landing .field.full {
  grid-column: 1 / -1;
}
.landing .field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-heading);
}
.landing .field input,
.landing .field select {
  height: 36px;
  padding: 0 12px;
  width: 100%;
  background: var(--surface-card);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text-body);
  font-size: 14px;
  transition: box-shadow var(--dur-fast) var(--ease-out);
}
.landing .field input:focus,
.landing .field select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: var(--focus-ring);
}
.landing .field input[aria-invalid="true"] {
  border-color: var(--danger);
}
.landing .form-foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.landing .status {
  font-size: 13px;
  color: var(--text-secondary);
}
.landing .status.ok {
  color: var(--ok-text);
}
.landing .status.err {
  color: var(--danger-text);
}

/* footer */
.landing footer {
  padding-block: 28px 44px;
  border-top: 1px solid var(--border-default);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 13px;
}
.landing footer img {
  height: 16px;
  width: auto;
}

@media (max-width: 900px) {
  .landing .hero,
  .landing .demo,
  .landing .brief-demo {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .landing .features {
    grid-template-columns: 1fr 1fr;
  }
  .landing .steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .landing .step::after {
    display: none;
  }
  .landing .brief {
    position: static;
    width: auto;
    margin: 12px 0 0;
  }
}
@media (max-width: 560px) {
  .landing .features,
  .landing form.card {
    grid-template-columns: 1fr;
  }
  /* Phones: the hero repeats the demo CTA, so the nav keeps only a compact
     sign-in — hiding it left mobile users with no way into the app. */
  .landing .navr .btn-primary {
    display: none;
  }
  .landing .navr .btn-secondary {
    padding: 8px 12px;
    font-size: 13px;
    white-space: nowrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  .landing * {
    transition: none !important;
  }
}
