/* Below-the-fold — DealerDash landing
   Em dash as a system: section markers, list bullets, giant anchor graphic. */

.page {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Section rhythm */
.sec {
  padding: 120px 0;
  position: relative;
}
.sec + .sec { border-top: 1px solid var(--border); }
.sec.tight { padding: 80px 0; }

.sec-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 20px;
}
.sec-mark::before {
  content: "—";
  color: var(--accent);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.sec h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.05;
  margin: 0 0 20px;
  max-width: 820px;
  text-wrap: balance;
}
.sec h2 em { font-style: normal; color: var(--accent); font-weight: 700; margin: 0 -0.02em; }
.sec .lede {
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 0 56px;
  text-wrap: pretty;
}
.sec .lede em {
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0.05em;
}
.sec .lede b {
  color: var(--text);
  font-weight: 600;
}

/* ============================================================
   Problem section — em-dash bullets
   ============================================================ */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (max-width: 800px) { .problem-grid { grid-template-columns: 1fr; } }

.problem-cell {
  background: var(--bg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.problem-cell .tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.problem-cell .tag::before {
  content: "—";
  color: var(--accent);
  font-size: 14px;
  line-height: 1;
}
.problem-cell h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--text);
}
.problem-cell p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}
.problem-cell .metric {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
.problem-cell .metric b {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-right: 8px;
}

/* ============================================================
   Solution — Today view reveal
   ============================================================ */

.today {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: 0 40px 120px rgba(0,0,0,0.5);
  overflow: hidden;
}

.today-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}
/* Live dot on the Today header */
.today-head h4 { display: inline-flex; align-items: center; gap: 8px; }
.today-head h4 .sub { color: var(--text-muted); font-weight: 400; margin-left: 4px; font-size: 13px; }
.today-head h4 .live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(63, 185, 80, 0.15);
  animation: live-pulse 2.2s ease-in-out infinite;
  margin-left: 4px;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.85); }
}
.today-head .filter { opacity: 0.55; transition: opacity 200ms; }
.today-head .filter:hover { opacity: 1; }
.today-head .filter {
  display: inline-flex;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 3px;
  font-size: 11px;
}
.today-head .filter button {
  padding: 5px 10px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  border-radius: 3px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.today-head .filter button.on {
  background: var(--accent-bg);
  color: var(--accent);
}

.today-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 700px) { .today-metrics { grid-template-columns: repeat(2, 1fr); } }

.metric-card {
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
}
.metric-card .n {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.metric-card .n.warn { color: var(--accent); }
.metric-card .l {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
}

/* Label row above exceptions list — names the cap column */
.today-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 12px 0 10px;
  padding: 0 16px;
}
.today-label-row .today-label { margin: 0; }
.today-label-row .right { letter-spacing: 0.18em; }

.today-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  font-weight: 500;
  margin: 8px 0 10px;
}

.exc-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); border-radius: var(--r-md); overflow: hidden; }

.exc-row {
  background: var(--bg-elev);
  display: grid;
  grid-template-columns: 6px 1.5fr 2fr auto 70px;
  align-items: center;
  gap: 16px;
  padding: 14px 16px 14px 0;
  position: relative;
  transition: background 150ms;
}

/* Mobile: stack vehicle+cap on top row, reason+view on bottom row.
 * The 5-col desktop layout squishes the middle columns on narrow screens
 * and the cap+view end up overlapping the reason text. */
@media (max-width: 768px) {
  .exc-row {
    grid-template-columns: 6px 1fr auto;
    grid-template-areas:
      "gut veh cap"
      "gut reason act";
    gap: 4px 10px;
    padding: 12px 12px 12px 0;
    align-items: start;
  }
  .exc-row .gut    { grid-area: gut; }
  .exc-row .veh    { grid-area: veh; font-size: 12px; }
  .exc-row .veh .vin { font-size: 9px; }
  .exc-row .reason { grid-area: reason; min-width: 0; }
  .exc-row .reason .r-h { font-size: 13px; }
  .exc-row .reason .r-sub { font-size: 11px; }
  .exc-row .cap    { grid-area: cap; font-size: 15px; min-width: 0; white-space: nowrap; }
  .exc-row .act    { grid-area: act; justify-self: end; font-size: 11px; padding: 3px 10px; }
}
.exc-row:hover { background: var(--bg-hover); }

/* Severity — gutter + subtle row tint (danger only gets a faint tint to match its higher visual weight) */
.exc-row.info    .gut { background: var(--info); }
.exc-row.warn    .gut { background: var(--accent); }
.exc-row.danger  .gut { background: var(--danger); }
.exc-row.danger {
  background: linear-gradient(90deg, rgba(248, 81, 73, 0.055) 0%, var(--bg-elev) 40%);
}
.exc-row.danger:hover {
  background: linear-gradient(90deg, rgba(248, 81, 73, 0.085) 0%, var(--bg-hover) 40%);
}
.exc-row .gut { width: 6px; align-self: stretch; margin-right: 2px; }

.exc-row .veh {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.exc-row .veh .vin {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 3px;
  letter-spacing: 0.02em;
}

.exc-row .reason {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.exc-row .reason .r-h {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.exc-row.danger .reason .r-h { color: var(--danger); }
.exc-row.warn   .reason .r-h { color: var(--accent); }
.exc-row.info   .reason .r-h { color: var(--text); }
.exc-row .reason .r-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
}

.exc-row .cap {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  min-width: 84px;
  text-align: right;
}
.exc-row.danger .cap { color: var(--danger); }

.exc-row .act {
  font-size: 11px;
  color: var(--text-muted);
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  letter-spacing: 0.02em;
  text-align: center;
  opacity: 0;
  transition: opacity 150ms;
}
.exc-row:hover .act,
.exc-row:first-child .act { opacity: 1; }

/* ============================================================
   Giant em dash section anchor
   ============================================================ */

.emdash-anchor {
  text-align: center;
  padding: 100px 0 80px;
  overflow: hidden;
}
.emdash-anchor .giant {
  font-family: var(--font-display);
  font-size: clamp(120px, 22vw, 240px);
  line-height: 0.9;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.06em;
  display: inline-block;
  margin: 0;
}
.emdash-anchor .caption {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--text-dim);
  font-weight: 500;
  margin-top: 8px;
}

/* ============================================================
   Systems (was: Integrations)
   ============================================================ */

.bridge-line {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  font-style: italic;
  margin: -32px 0 36px;
  text-align: left;
  max-width: 640px;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--border);
  position: relative;
}
@media (max-width: 900px) { .systems-grid { grid-template-columns: repeat(2, 1fr); } }

.system-tile {
  background: var(--bg);
  padding: 28px 20px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 150px;
  transition: background 200ms;
  position: relative;
}
.system-tile:hover { background: var(--bg-elev); }
.system-tile:hover .system-line { opacity: 1; }

.system-icon {
  color: var(--accent);
  opacity: 0.85;
  margin-bottom: 2px;
}
.system-kind {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.system-sample {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: auto;
  font-variant-numeric: tabular-nums;
}
.system-line {
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 300ms;
}

/* Hub node under the grid — visualizes “one place” */
.systems-hub {
  display: flex;
  justify-content: center;
  margin-top: 36px;
  position: relative;
}
.systems-hub::before {
  content: "";
  position: absolute;
  top: -36px;
  left: 50%;
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, transparent, var(--border));
}
.hub-node {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elev);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}
.hub-node .hub-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 138, 58, 0.15);
}

/* ============================================================
   Quote
   ============================================================ */

.quote {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--text);
  text-wrap: balance;
}
.quote blockquote em {
  font-style: normal;
  color: var(--accent);
  font-weight: 700;
  margin: 0 -0.02em;
}
.quote .who {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}
.quote .who .dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 600;
  font-size: 12px;
  font-family: var(--font-display);
}

/* ============================================================
   Pricing / Final CTA
   ============================================================ */

.cta-final {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 64px 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.cta-final::before {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(245,158,11,0.1) 0%, transparent 65%);
  pointer-events: none;
}
@media (max-width: 800px) {
  .cta-final { grid-template-columns: 1fr; padding: 40px 28px; }
}
.cta-final h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 12px;
  max-width: 520px;
  text-wrap: balance;
}
.cta-final h3 em { font-style: normal; color: var(--accent); font-weight: 700; }
.cta-final p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
  max-width: 460px;
}
.cta-final .side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}
.cta-final .side .cta-micro {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  font-weight: 500;
}
.cta-final .side .cta-micro .sep {
  color: var(--border);
  font-weight: 400;
}

/* ============================================================
   Footer
   ============================================================ */

.foot {
  padding: 48px 0 80px;
  color: var(--text-dim);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.foot .brand {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
}
.foot .brand em { font-style: normal; color: var(--accent); font-weight: 700; margin: 0 -0.04em; }
.foot .links { display: flex; gap: 24px; }
.foot .links a:hover { color: var(--text); }

/* ============================================================
   Nav
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(10,10,15,0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms, background 200ms;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.nav .brand {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.nav .brand em { font-style: normal; color: var(--accent); font-weight: 700; margin: 0 -0.04em; }
.nav .links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  color: var(--text-muted);
}
.nav .links a:hover { color: var(--text); }
.nav .acts { display: flex; gap: 10px; align-items: center; }
@media (max-width: 700px) { .nav .links { display: none; } }
