:root {
  /* Stripe-style palette */
  --bg-body: #f6f9fc;        /* page background */
  --bg-elevated: #ffffff;    /* cards / hero blocks */
  --bg-elevated-soft: #ffffff;
  --paper-bg: #ffffff;       /* paper surfaces */

  --accent: #0074d4;         /* primary blue */
  --accent-soft: #0074d4;

  --text-main: #444444;      /* main text */
  --text-muted: #717171;     /* secondary text */
  --text-subtle: #9ca3af;    /* tertiary text */
  --border-subtle: #d7d7d7;  /* card borders */
  --pill-bg: #ebeef1;        /* soft gray pills */

  --font-main: system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--font-main);
  background: var(--bg-body);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Generic layout ---------- */

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 3rem;
}

/* ---------- Header used on index & cars ---------- */

.header {
  background-color: var(--bg-body);
  color: #111827;
  padding: 2.5rem 1.5rem 3.5rem;  /* extra bottom for floating pills */
  text-align: center;
  position: relative;
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

.header h1 {
  margin: 0;
  font-size: 2.4rem;
}

.tagline {
  font-size: 1.1rem;
  margin-top: 0.5rem;
  color: var(--text-muted);
}

/* Quote block on home page */

.quote {
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-style: italic;
}

.quote img {
  display: block;
  margin: 0.2rem auto;
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.quote a {
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
}

.quote a::after {
  content: " 🔗";
}

.quote a:hover {
  text-decoration: underline;
}

/* ---------- Category rail (Adobe-style pills) ---------- */

.category-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.6rem 0 0.1rem;
}

/* Floating version when inside .header (index.html) */
.header .category-rail {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  padding: 0.35rem 0.6rem;
  z-index: 5;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--pill-bg);
  border: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.category-pill span.arrow {
  font-size: 0.7rem;
}

.category-pill span.sub {
  color: var(--text-subtle);
}

/* ---------- Content “paper” card used on index & cars ---------- */

.content {
  max-width: 960px;
  margin: 3.5rem auto 2.5rem;      /* room for floating pills above */
  padding: 2.5rem 2rem;
  background: var(--paper-bg);      /* Stripe-style white card */
  border-radius: 1.5rem;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
  color: var(--text-main);
  position: relative;
}

.content h2 {
  color: #111827;
  margin-top: 2rem;
}

.content p,
.content ul {
  color: var(--text-main);
  font-size: 0.98rem;
}

.content ul {
  list-style-type: disc;
  padding-left: 2rem;
}

/* CTA box (home page, reusable) */

.cta {
  margin: 2rem 0;
  padding: 2rem;
  background-color: #0f172a;
  color: white;
  text-align: center;
  border-radius: 12px;
}

.cta p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.email-button {
  display: inline-block;
  background-color: var(--accent);
  color: white;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 116, 212, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.email-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 10px 24px rgba(0, 116, 212, 0.45);
}

/* ---------- Simple footer (index & cars) ---------- */

.footer-simple {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 0.8rem;
}

/* ---------- Card pattern (DocketBot right column + cars graph) ---------- */

.card-column {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.card {
  border-radius: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 1.2rem 1.25rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
}

.card-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pill-tag {
  font-size: 0.7rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #ebeef1;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.card p {
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 0.8rem;
}

.card-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.card-link {
  font-size: 0.82rem;
  color: var(--accent-soft);
  cursor: pointer;
}

.card-link:hover {
  text-decoration: underline;
}

.card-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.contact-block {
  padding-top: 0.4rem;
  border-top: 1px dashed rgba(15, 23, 42, 0.12);
  margin-top: 0.7rem;
}

.contact-block a {
  color: var(--accent-soft);
  font-size: 0.85rem;
}

.contact-block a:hover {
  text-decoration: underline;
}

/* Cards specific tweaks for cars.html chart */

.card-graph {
  height: 400px;
}

.status-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.75rem;
}

/* ---------- Top bar (DocketBot) ---------- */

.top-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(246, 249, 252, 0.88);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.top-left,
.top-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Brand */

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #0f172a;
}

.brand-tag {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Sign in link */

.signin-link {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #0f172a;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease,
    color 0.15s ease;
}

.signin-link:hover {
  border-color: rgba(148, 163, 184, 0.9);
  background: #ffffff;
}

/* ---------- DocketBot hero (Stripe-style card) ---------- */

.hero {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr);
  gap: 2.75rem;
  padding: 2.5rem 2.4rem;
  border-radius: 1.5rem;
  background: var(--paper-bg);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #ebeef1;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.hero-label-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #38bdf8, var(--accent));
}

.hero-title {
  font-size: clamp(2.4rem, 3vw + 1.4rem, 3.3rem);
  line-height: 1.05;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #111827;
}

.hero-subtitle {
  max-width: 34rem;
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-bullets {
  list-style: none;
  margin-bottom: 1.75rem;
}

.hero-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.93rem;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.hero-bullets li::before {
  content: "•";
  color: var(--accent);
  margin-top: 0.05rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn-primary {
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 8px 20px rgba(0, 116, 212, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    filter 0.12s ease;
}

.btn-primary span.icon {
  font-size: 1.1rem;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 10px 24px rgba(0, 116, 212, 0.45);
}

.btn-ghost {
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid #ebeef1;
  font-size: 0.9rem;
  font-weight: 500;
  color: #393b3e;
  background: #ebeef1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.15s ease, border-color 0.15s ease,
    color 0.15s ease;
}

.btn-ghost:hover {
  background: #e1e5ea;
  border-color: #e1e5ea;
}

.hero-footnote {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.85rem;
}

.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero side panel */

.hero-panel {
  width: 100%;
  max-width: 320px;
  padding: 1.7rem 1.5rem 1.4rem;
  border-radius: 1rem;
  background: #f9fafb;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  position: relative;
  overflow: hidden;
}

.hero-panel-orbit {
  position: absolute;
  width: 200%;
  height: 200%;
  left: -50%;
  top: -60%;
  background: radial-gradient(circle, rgba(148, 163, 184, 0.35), transparent 55%);
  opacity: 0.22;
  pointer-events: none;
}

.hero-logo-glyph {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: 0.9rem;
}
/* Make the DocketBot label visually match the 48px glyph */
.hero-glyph-title {
  font-size: 1.5rem;   /* bump size */
  line-height: 48px;   /* match glyph height for vertical centering */
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #111827;
}

.hero-panel-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #111827;
}

.hero-panel-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.hero-panel-list {
  list-style: none;
  font-size: 0.78rem;
  color: var(--text-main);
  margin-bottom: 1.1rem;
}

.hero-panel-list li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.hero-panel-list span.key {
  color: var(--text-muted);
}

.hero-panel-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #ebeef1;
  border: 1px solid var(--border-subtle);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ---------- DocketBot rail under hero ---------- */

.rail {
  margin-top: 2.5rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.rail-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.rail-link {
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.rail-link:hover {
  background: #ebeef1;
  color: #111827;
}

.rail-link.active {
  background: #e1e5ea;
  color: #111827;
}

/* ---------- DocketBot sections (paper background) ---------- */

.sections {
  margin-top: 2.8rem;
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.8fr);
  gap: 2.5rem;
  background: var(--paper-bg);
  border-radius: 1.5rem;
  padding: 2.5rem 2.4rem;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
  color: var(--text-main);
}

.section {
  margin-bottom: 2.4rem;
}

.section h2 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
  color: #111827;
}

.section-lede {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.section ul {
  padding-left: 1.1rem;
  color: var(--text-main);
  font-size: 0.93rem;
}

.section ul li {
  margin-bottom: 0.4rem;
}

/* Local-first badge */

.badge-local {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: #ebeef1;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0.9rem;
}

.badge-local span.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0aff9d, #36e4ff);
}

/* ---------- DocketBot site footer ---------- */

.site-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.site-footer a {
  color: var(--accent-soft);
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  main {
    padding-inline: 1rem;
  }

  .top-bar-inner {
    padding-inline: 1rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 2rem 1.5rem;
  }

  .hero-right {
    order: -1;
    justify-content: flex-start;
  }

  .sections {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .top-bar-inner {
    padding-block: 0.6rem;
  }

  .hero {
    padding: 1.7rem 1.25rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .content {
    padding: 2rem 1.5rem;
  }
}
