:root {
  --ink: #0f172a;
  --muted: #64748b;
  --body: #475569;
  --line: #e2e8f0;
  --teal: #14b8a6;
  --teal-dark: #0d9488;
  --teal-soft: #f0fdfa;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --slate: #0f172a;
  --max: 1140px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--teal); }
button, input, select, textarea { font-family: inherit; font-size: 16px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.announcement {
  background: var(--slate); color: #fff; text-align: center;
  padding: 9px 16px; padding-top: max(9px, var(--safe-t));
  font-size: 13.5px; font-weight: 600;
}
.announcement span { color: var(--teal); }
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 16px;
  min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover { color: var(--ink); }
.logo:hover .logo-word-pros { color: var(--teal); }
.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.22);
}
.logo-word {
  display: inline-flex;
  align-items: baseline;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.035em;
  line-height: 1;
  white-space: nowrap;
}
.logo-word-pop { color: var(--ink); }
.logo-word-pros { color: var(--teal-dark); }
.footer-logo .logo-img { width: 36px; height: 36px; border-radius: 11px; }
.footer-logo .logo-word { font-size: 1.1rem; }
@media (max-width: 380px) {
  .logo-word { font-size: 1.05rem; }
  .logo-img { width: 36px; height: 36px; }
}
.nav-links { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }
.nav-links a:hover, .nav-links a.active { color: var(--teal-dark); }
.btn {
  border: none; cursor: pointer; font-weight: 700; border-radius: 12px;
  transition: .15s; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
}
.btn-primary { background: var(--orange); color: #fff; padding: 11px 20px; font-size: 14.5px; box-shadow: 0 6px 16px rgba(249,115,22,.3); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-lg { padding: 15px 28px; font-size: 16px; border-radius: 14px; width: 100%; max-width: 320px; }
.btn-ghost {
  background: #fff; color: var(--ink); border: 2px solid #cbd5e1; padding: 13px 26px;
  font-size: 16px; border-radius: 14px; font-weight: 700;
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-dark); }
.menu-toggle {
  display: none; border: 1px solid var(--line); background: #fff; border-radius: 10px;
  padding: 10px 14px; font-weight: 700; cursor: pointer; min-height: 44px;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 48px 16px; }
.section-title { margin: 0 0 8px; font-size: clamp(28px, 4vw, 34px); font-weight: 800; letter-spacing: -.02em; }
.section-sub { margin: 0 0 28px; color: var(--muted); font-size: 17px; }
.h2 { margin: 28px 0 12px; font-size: 1.25rem; font-weight: 800; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 480px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .wrap { padding: 64px 24px; }
  .nav-inner { padding: 0 24px; height: 68px; }
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .btn-lg { width: auto; }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.hero { background: linear-gradient(180deg, #f0fdfa 0%, #fff 100%); }
.hero-inner {
  max-width: var(--max); margin: 0 auto; padding: 40px 16px 48px;
  display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center;
}
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 44px; padding: 48px 24px 56px; }
}
/*
 * Coverage hero type + layout
 * Spacing: top (tag/title) · center (lead) · low (CTAs/trust) — keep as-is
 * Type: clear hierarchy against the map panel
 */
.hero--coverage .hero-inner {
  align-items: start;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-width: 0;
  max-width: 36rem;
  gap: 20px;
}
.hero-copy-top,
.hero-copy-low {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
}
.hero--coverage .hero-copy .tag {
  margin: 0 0 14px;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 12px;
  line-height: 1.2;
}
.hero--coverage .hero-copy h1 {
  margin: 0;
  max-width: 15ch;
  font-size: clamp(32px, 4.8vw, 48px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
  color: var(--ink);
}
.hero--coverage .hero-copy h1 em {
  font-style: normal;
  color: var(--teal-dark);
}
.hero--coverage .hero-copy .lead {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(16px, 1.35vw, 18.5px);
  font-weight: 500;
  line-height: 1.55;
  color: var(--body);
  letter-spacing: -0.01em;
}
.hero--coverage .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 14px;
  gap: 12px;
}
/* Side-by-side CTAs — not full-width stacks */
.hero--coverage .hero-actions .btn-lg {
  width: auto;
  max-width: none;
  min-height: 48px;
  padding: 13px 22px;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.hero--coverage .contact-hint {
  margin: 0 0 12px;
  max-width: none;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
  white-space: nowrap;
}
.hero--coverage .contact-hint strong {
  color: var(--ink);
  font-weight: 700;
}
@media (max-width: 899px) {
  .hero--coverage .hero-copy {
    max-width: none;
    gap: 22px;
  }
  .hero--coverage .hero-copy h1 {
    max-width: 16ch;
    font-size: clamp(30px, 8vw, 40px);
  }
  .hero--coverage .hero-copy .lead {
    font-size: 16.5px;
    line-height: 1.55;
  }
  .hero--coverage .contact-hint {
    white-space: normal;
    max-width: 34rem;
    font-size: 13.5px;
  }
  .hero--coverage .hero-actions .btn-lg {
    min-height: 48px;
    font-size: 15.5px;
  }
}
.hero--coverage .trust-row {
  margin: 0;
  gap: 6px 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.35;
  color: var(--muted);
}
.hero--coverage .trust-row .dot {
  color: var(--teal);
  font-weight: 700;
}
@media (min-width: 900px) {
  .hero--coverage .hero-inner {
    align-items: stretch;
    gap: 48px;
  }
  .hero--coverage .hero-copy {
    height: 100%;
    min-height: 100%;
    padding: 0;
    gap: 0;
    /* Three bands preserved */
    justify-content: space-between;
  }
  .hero--coverage .hero-copy .tag {
    margin-top: 0;
    margin-bottom: 14px;
  }
  .hero--coverage .hero-copy-mid {
    margin: 0;
    flex: 0 0 auto;
    max-width: 32rem;
  }
  .hero--coverage .hero-copy-low {
    margin-top: 0;
  }
  .hero--coverage .hero-actions {
    margin: 0 0 12px;
  }
  .hero--coverage .contact-hint {
    margin: 0 0 10px;
    white-space: nowrap;
    font-size: 12.5px;
    letter-spacing: -0.01em;
  }
  .hero--coverage .trust-row {
    font-size: 12px;
  }
  .hero--coverage .dispatch-console {
    height: 100%;
    align-self: stretch;
  }
}
.hero h1 { margin: 0 0 16px; font-size: clamp(32px, 6vw, 52px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero p.lead, .lead-wide { margin: 0 0 20px; font-size: 18px; line-height: 1.55; color: var(--body); max-width: 540px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.contact-hint { font-size: 14px; color: var(--muted); margin: 0 0 14px; max-width: 480px; }
.trust-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.trust-row .dot { color: var(--teal); }
.tag {
  display: inline-flex; background: var(--teal-soft); color: var(--teal-dark);
  font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; margin-bottom: 12px;
}
.svc-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px;
  display: flex; flex-direction: column; gap: 8px; box-shadow: 0 4px 14px rgba(15,23,42,.05);
  color: var(--ink); transition: .15s; height: 100%;
}
.svc-card:hover { border-color: var(--teal); box-shadow: 0 12px 30px rgba(20,184,166,.15); color: var(--ink); }
.svc-img, .detail-hero-img {
  border-radius: 14px; background-size: cover; background-position: center;
  background-color: #f1f5f9; width: 100%;
}
.svc-img { aspect-ratio: 960 / 640; min-height: 120px; }
.detail-hero-img { aspect-ratio: 960 / 640; min-height: 200px; }
.service-photo-hero {
  border-radius: 20px;
  border: 1px solid rgba(13, 148, 136, 0.22);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
  min-height: 240px;
  background-color: #f1f5f9;
}

/* Line-art service illustrations (rev 3.0) */
.service-art-col { min-width: 0; }
.service-art {
  width: 100%;
  border-radius: 20px;
  border: 1px solid rgba(13, 148, 136, 0.22);
  background: linear-gradient(160deg, #f0fdfa 0%, #fff 70%);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-art-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.service-art-inner svg.line-art,
.service-art-inner svg {
  width: 100%;
  height: 100%;
  max-height: 100%;
  display: block;
}
.service-art--static .service-art-inner svg * {
  animation: none !important;
}
.svc-card-art {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 4px;
}
.svc-card-art .service-art {
  border-radius: 14px;
  box-shadow: none;
  aspect-ratio: 4 / 3;
}
.svc-card-art .service-art-inner { padding: 4px; }
.svc-card h3 { margin: 0; font-size: 16px; font-weight: 700; }
.svc-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; flex: 1; }
.svc-card .more { color: var(--orange); font-weight: 700; font-size: 13.5px; }
.card-grid { display: grid; gap: 16px; }
.step-card { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: #fff; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--teal); color: var(--ink);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; margin-bottom: 12px;
}
.dark { background: var(--slate); color: #fff; border-radius: 0; }
.dark .section-title { color: #fff; }
.dark .muted, .dark .section-sub { color: #94a3b8; }
.center-cta { text-align: center; margin-top: 28px; }
.checklist { list-style: none; padding: 0; margin: 16px 0 0; }
.checklist li { padding: 8px 0 8px 28px; position: relative; color: var(--body); font-size: 15px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--teal-dark); font-weight: 800; }
.note-box, .price-note {
  margin-top: 16px; padding: 14px 16px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; font-size: 14px; color: var(--body);
}
/* Service detail: tighter space under logo/nav → title */
.service-detail.wrap {
  padding-top: 16px;
  padding-bottom: 48px;
}
@media (min-width: 768px) {
  .service-detail.wrap {
    padding-top: 20px;
    padding-bottom: 64px;
  }
}

/* Service detail: title + category left; breadcrumb path top-right.
   Path stays on the top-right row; font shrinks so long titles don't push it down.
   Title / category sizes are intentionally unchanged. */
.service-detail-header {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 14px;
  margin: 0 0 22px;
  text-align: left;
}
.service-detail-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px 14px;
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.service-detail-title {
  margin: 0;
  font-weight: 800;
  line-height: 1.15;
  text-align: left;
  flex: 0 1 auto;
  min-width: 0;
}
.service-detail-header .tag {
  margin: 0;
  flex: 0 0 auto;
  align-self: center;
}
.service-detail-crumb {
  margin: 0;
  margin-left: auto;
  flex: 0 1 auto;
  align-self: flex-start;
  text-align: right;
  line-height: 1.35;
  padding-top: 0.4em; /* optical align with bold title baseline */
  white-space: nowrap;
  /* Shrink path text when the title is long / space is tight — not title/tag */
  font-size: clamp(9px, 1.05vw, 12.5px);
  max-width: min(48%, 28rem);
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 639px) {
  .service-detail-header {
    flex-wrap: wrap;
  }
  .service-detail-crumb {
    order: -1; /* path first, still right-aligned */
    max-width: 100%;
    width: 100%;
    text-align: right;
    padding-top: 0;
    font-size: clamp(9px, 2.8vw, 11.5px);
  }
}
.crumb { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.crumb a { color: var(--muted); }
.detail-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .detail-grid { grid-template-columns: 1.1fr 0.9fr; gap: 40px; } }
.service-detail-cta {
  margin-top: 36px;
  padding-top: 8px;
}
.service-detail-cta .hero-actions {
  margin-bottom: 0;
}
.service-price-line {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 36rem;
}
.hook { font-weight: 600; color: var(--teal-dark); margin: 0 0 12px; }
.summary { color: var(--body); font-size: 1.05rem; line-height: 1.65; margin: 0; }
.detail-hero-caption { margin-top: 12px; }
.detail-hero-caption h3 { margin: 0 0 4px; font-size: 1.1rem; }
.detail-hero-caption p { margin: 0; color: var(--muted); font-size: 14px; }
.catalog-page {
  padding-top: 28px;
  padding-bottom: 48px;
}

.cat-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}
@media (min-width: 560px) {
  .cat-stage { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (min-width: 900px) {
  .cat-stage { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
.cat-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
  min-width: 0;
}
.cat-card.is-open {
  border-color: rgba(13, 148, 136, 0.45);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
  /* Span full row when expanded so service list is readable */
  grid-column: 1 / -1;
}
.cat-card-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px 14px 12px;
  background: #fff;
  border: 0;
  text-align: left;
  cursor: pointer;
  min-height: 72px;
  transition: background .15s;
}
.cat-card-head:hover { background: #f8fafc; }
.cat-card-head:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
}
.cat-card.is-open .cat-card-head { background: var(--teal-soft); }
.cat-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #f1f5f9; color: var(--ink);
  border: 1px solid var(--line);
}
.cat-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}
.cat-icon[data-bucket="care"]   { background: #fff1f2; border-color: #fecdd3; color: #be123c; }
.cat-icon[data-bucket="home"]   { background: #f0fdfa; border-color: #99f6e4; color: #0f766e; }
.cat-icon[data-bucket="errands"]{ background: #fff7ed; border-color: #fed7aa; color: #c2410c; }
.cat-icon[data-bucket="events"] { background: #f5f3ff; border-color: #ddd6fe; color: #6d28d9; }
.cat-icon[data-bucket="travel"] { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.cat-icon[data-bucket="tech"]   { background: #ecfeff; border-color: #a5f3fc; color: #0e7490; }
.cat-icon[data-bucket="auto"]   { background: #f1f5f9; border-color: #cbd5e1; color: #334155; }

.cat-card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cat-card-title { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); line-height: 1.2; }
.cat-card-meta {
  font-size: 12.5px; color: var(--muted); font-weight: 500; line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cat-card-aside { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.cat-count {
  min-width: 26px; height: 26px; padding: 0 7px;
  border-radius: 999px; background: #f1f5f9; color: var(--body);
  font-size: 12px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.cat-card.is-open .cat-count { background: #fff; color: var(--teal-dark); }
.cat-chevron {
  width: 28px; height: 28px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); background: #f8fafc;
  transition: transform .25s ease, background .15s, color .15s;
}
.cat-chevron svg { width: 16px; height: 16px; }
.cat-card.is-open .cat-chevron {
  transform: rotate(180deg);
  background: #fff;
  color: var(--teal-dark);
}

/* Height animated in JS for smooth open + close (grid 0fr→1fr is often choppy on close) */
.cat-card-body {
  overflow: hidden;
  height: 0;
  border-top: 1px solid transparent;
  will-change: height;
}
.cat-card.is-open .cat-card-body {
  border-top-color: var(--line);
}
.cat-card-body-inner {
  min-height: 0;
}
.cat-card-body[hidden] {
  display: block;
}
/* When a category expands full-width, lay services in a compact multi-column grid */
.cat-card.is-open .cat-card-body-inner {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .cat-card.is-open .cat-card-body-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .cat-card.is-open .cat-card-body-inner {
    grid-template-columns: repeat(3, 1fr);
  }
}
.cat-svc-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 2px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  min-height: 48px;
  text-decoration: none;
  transition: background .12s;
}
@media (min-width: 560px) {
  .cat-svc-row {
    border-right: 1px solid var(--line);
  }
  .cat-svc-row:nth-child(2n) { border-right: 0; }
}
@media (min-width: 900px) {
  .cat-svc-row:nth-child(2n) { border-right: 1px solid var(--line); }
  .cat-svc-row:nth-child(3n) { border-right: 0; }
}
.cat-svc-row:last-child { border-bottom: 0; }
.cat-svc-name {
  grid-column: 1; grid-row: 1;
  font-weight: 700; font-size: 15px; color: var(--ink);
}
.cat-svc-hook {
  grid-column: 1; grid-row: 2;
  font-size: 13px; color: var(--muted); line-height: 1.35;
}
.cat-svc-go {
  grid-column: 2; grid-row: 1 / span 2;
  color: var(--orange); font-weight: 800; font-size: 16px;
  opacity: 0.7; transition: opacity .12s, transform .12s;
}
.cat-svc-row:hover { background: var(--teal-soft); }
.cat-svc-row:hover .cat-svc-go { opacity: 1; transform: translateX(2px); }
.cat-svc-row:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }

@media (prefers-reduced-motion: reduce) {
  .cat-card-body, .cat-chevron, .cat-svc-go { transition: none; }
}
.site-footer { background: #f8fafc; border-top: 1px solid var(--line); margin-top: 24px; padding-bottom: var(--safe-b); }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1.2fr; } }
.footer-heading { margin: 0 0 10px; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a, .linkish {
  color: var(--ink); font-weight: 600; font-size: 14px; background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
}
.footer-blurb { color: var(--body); font-size: 14px; max-width: 280px; }
.footer-legal { font-size: 13px; color: var(--muted); font-weight: 600; }
.footer-hint { font-size: 13px; color: var(--muted); line-height: 1.4; }
.footer-bottom {
  margin-top: 8px; padding-top: 20px; padding-bottom: 28px;
  border-top: 1px solid var(--line); font-size: 13px; color: var(--muted);
}
.about-card { background: var(--teal-soft); border-radius: 20px; padding: 24px; border: 1px solid #99f6e4; }
.about-steps { padding-left: 20px; color: var(--body); }
.legal h2 { margin-top: 28px; font-size: 1.15rem; }
.legal ul { color: var(--body); }
.muted { color: var(--muted); }

/* Modal */
.modal[hidden] { display: none !important; }
.modal {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center;
  padding: 0; padding-bottom: var(--safe-b);
}
@media (min-width: 640px) {
  .modal { align-items: center; padding: 24px; }
}
.modal-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.45); }
.modal-panel {
  position: relative; background: #fff; width: 100%; max-width: 520px; max-height: min(92dvh, 900px);
  border-radius: 20px 20px 0 0; display: flex; flex-direction: column; box-shadow: 0 25px 60px rgba(15,23,42,.25);
}
@media (min-width: 640px) { .modal-panel { border-radius: 20px; } }
.modal-head { display: flex; justify-content: space-between; gap: 12px; padding: 18px 18px 8px; }
.modal-head h2 { margin: 0; font-size: 1.25rem; }
.step-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.modal-close {
  border: 0; background: #f1f5f9; width: 44px; height: 44px; border-radius: 12px; font-size: 24px; cursor: pointer; line-height: 1;
}
.progress-wrap { height: 4px; background: #e2e8f0; margin: 0 18px 8px; border-radius: 99px; overflow: hidden; }
.progress-bar { height: 100%; width: 25%; background: var(--teal); transition: width .2s; }
.modal-body { padding: 8px 18px; overflow: auto; flex: 1; }
.modal-actions {
  display: flex; gap: 10px; justify-content: space-between; padding: 12px 18px 18px; border-top: 1px solid var(--line);
}
.modal-err { color: #b91c1c; font-size: 14px; font-weight: 600; min-height: 1.2em; margin: 0 18px; }
.field { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--muted); }
.modal-body input, .modal-body textarea, .modal-body select,
.review-form input, .review-form textarea, .review-form select {
  width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; margin-bottom: 12px;
}
.svc-pick, .time-pick {
  display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 12px;
  border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; min-height: 52px;
}
.svc-pick.selected, .time-pick.selected { border-color: var(--teal); background: var(--teal-soft); }
.svc-pick strong { display: block; }
.svc-pick small { color: var(--muted); }
.svc-pick-thumb {
  width: 44px; height: 44px; border-radius: 10px; background-size: cover; background-position: center; flex-shrink: 0;
}
.time-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.success-box { text-align: center; padding: 20px 8px; }
.success-check {
  width: 56px; height: 56px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 12px; font-weight: 800;
}
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.review-form { max-width: 640px; }
.field-grid { display: grid; gap: 0; }
@media (min-width: 640px) { .field-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--body); margin: 12px 0 16px; }
.check-row input { margin-top: 4px; width: auto; }
.hint { font-weight: 500; color: var(--muted); }

/* ============================================================
   Bay Area coverage radar map (home hero)
   Light theme — matches site teal / orange tokens
   ============================================================ */
.dispatch-console {
  --dc-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dc-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  position: relative;
  border: 1px solid rgba(20, 184, 166, 0.28);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, var(--teal-soft) 100%);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  color: var(--ink);
  min-width: 0;
}

.dispatch-console__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(20, 184, 166, 0.18);
  font-family: var(--dc-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.7);
}
.dispatch-console__rec {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-dark);
  font-weight: 700;
}
.dispatch-console__rec i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.45);
  animation: dispatch-live-pulse 1.8s infinite;
  font-style: normal;
}
@keyframes dispatch-live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.5);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(20, 184, 166, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(20, 184, 166, 0);
  }
}
.dispatch-console__clock {
  color: var(--teal-dark);
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* Radar map */
.dispatch-radar {
  position: relative;
  aspect-ratio: 320 / 300;
  background: #f8fafc;
  z-index: 1;
}
.dispatch-radar svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.dispatch-land-base {
  /* full-frame land under bay water */
}
.dispatch-bay {
  /* bay water path filled in SVG */
}
.dispatch-hud {
  position: absolute;
  font-family: var(--dc-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  pointer-events: none;
  z-index: 3;
}
.dispatch-hud--tl {
  top: 10px;
  left: 14px;
  max-width: calc(100% - 100px);
  letter-spacing: 0.08em;
  line-height: 1.3;
}
.dispatch-hud--tr {
  top: 10px;
  right: 14px;
}
.dispatch-hud--bl {
  bottom: 10px;
  left: 14px;
}
.dispatch-hud--br {
  bottom: 10px;
  right: 14px;
  color: var(--teal-dark);
  font-weight: 700;
}

/* Sweep centered on Union City HQ — sized to cover SF + ANT (~r 165 in SVG units) */
.dispatch-radar__sweep {
  position: absolute;
  left: 58.1%;
  top: 50.73%;
  /* diameter ≈ 2*170/320 of map width so beam reaches outer ring / SF / ANT */
  width: 112%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  background: conic-gradient(
    from 0deg,
    rgba(20, 184, 166, 0) 0deg,
    rgba(20, 184, 166, 0.03) 290deg,
    rgba(20, 184, 166, 0.14) 330deg,
    rgba(20, 184, 166, 0.32) 350deg,
    rgba(13, 148, 136, 0.55) 358deg,
    rgba(20, 184, 166, 0) 360deg
  );
  /* keep beam bright almost to the outer edge so SF + ANT light up as it passes */
  -webkit-mask-image: radial-gradient(circle, #000 0 78%, transparent 92%);
  mask-image: radial-gradient(circle, #000 0 78%, transparent 92%);
  animation: dispatch-sweep-spin 6.5s linear infinite;
}
@keyframes dispatch-sweep-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.dispatch-ping {
  position: absolute;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px rgba(20, 184, 166, 0.65);
  z-index: 3;
}
.dispatch-ping::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid rgba(20, 184, 166, 0.5);
  animation: dispatch-ping-ring 3s var(--dc-ease) infinite;
  animation-delay: inherit;
}
@keyframes dispatch-ping-ring {
  0% {
    transform: scale(0.4);
    opacity: 1;
  }
  75% {
    transform: scale(2.1);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
.dispatch-ping--hq {
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  background: var(--orange);
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.7);
  transform: rotate(45deg);
  border-radius: 3px;
}
.dispatch-ping--hq::after {
  border-color: rgba(249, 115, 22, 0.55);
  inset: -8px;
  border-radius: 5px;
}
.dispatch-ping-label {
  position: absolute;
  transform: translate(-50%, 10px);
  font-family: var(--dc-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  color: var(--teal-dark);
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  z-index: 3;
}
.dispatch-ping-label--hq {
  color: var(--orange-dark);
  font-weight: 800;
  transform: translate(-50%, 12px);
}
.dispatch-ping-label--sm {
  font-size: 7.5px;
  letter-spacing: 0.08em;
  opacity: 0.9;
}

.dispatch-console__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 18px;
  border-top: 1px solid rgba(20, 184, 166, 0.18);
  font-family: var(--dc-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.75);
}
.dispatch-console__foot b {
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 899px) {
  .dispatch-console {
    max-width: 560px;
    margin: 0 auto;
  }
}
@media (max-width: 480px) {
  .dispatch-console__head {
    font-size: 10px;
    letter-spacing: 0.08em;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dispatch-radar__sweep,
  .dispatch-ping::after,
  .dispatch-console__rec i {
    animation: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Chat launcher label helper (near Typebot bubble) */
.chat-label-hint {
  position: fixed; right: 16px; bottom: calc(22px + var(--safe-b)); z-index: 180; pointer-events: none;
  background: var(--orange); color: #fff; font-size: 12px; font-weight: 800; padding: 6px 10px;
  border-radius: 999px; box-shadow: 0 6px 16px rgba(249,115,22,.35);
  transform: translateX(-52px);
}
@media (max-width: 380px) {
  .chat-label-hint { font-size: 11px; transform: translateX(-44px); }
}

/* Typebot preview blimp: right-center + always-visible dismiss (fallback) */
typebot-bubble::part(preview-message) {
  position: fixed !important;
  top: 50% !important;
  right: 16px !important;
  bottom: auto !important;
  left: auto !important;
  transform: translateY(-50%) !important;
  padding: 16px 44px 16px 16px !important;
  box-sizing: border-box !important;
}
typebot-bubble::part(preview-message-close-button) {
  opacity: 1 !important;
  visibility: visible !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  top: -8px !important;
  right: -8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.35) !important;
}
@media (max-width: 767px) {
  typebot-bubble::part(preview-message) {
    right: 12px !important;
    max-width: min(300px, calc(100vw - 24px)) !important;
    padding: 18px 48px 18px 16px !important;
  }
  typebot-bubble::part(preview-message-close-button) {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    top: -12px !important;
    right: -12px !important;
  }
}

@media (max-width: 767px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); flex-direction: column;
    align-items: stretch; padding: 12px 16px 16px; gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links .btn { width: 100%; }
  .nav-inner { position: relative; }
}

/* ——— Ops + customer contract ——— */
.ops-body, .contract-body { background: #f8fafc; min-height: 100dvh; }
.ops-top, .contract-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; padding-top: max(12px, var(--safe-t));
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.ops-top-actions { display: flex; gap: 8px; align-items: center; }
.ops-main { padding: 24px 16px 48px; max-width: 900px; }
.ops-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 22px 20px; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}
.ops-form input, .ops-form textarea, .ops-form select,
.contract-card input {
  width: 100%; padding: 12px 14px; border: 2px solid var(--line);
  border-radius: 12px; margin-bottom: 12px; background: #fff;
}
.ops-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.ops-list-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  align-items: flex-end; margin-bottom: 16px;
}
.ops-table-wrap { overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.ops-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ops-table th {
  text-align: left; padding: 12px 14px; font-size: 12px; text-transform: uppercase;
  letter-spacing: .04em; color: var(--muted); border-bottom: 1px solid var(--line);
  background: #f8fafc;
}
.ops-table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ops-table tbody tr { cursor: pointer; }
.ops-table tbody tr:hover { background: var(--teal-soft); }
.ops-table .small, .muted.small { font-size: 12px; font-weight: 500; }
.status-pill {
  display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px;
  border-radius: 999px; text-transform: lowercase; letter-spacing: .02em;
  background: #f1f5f9; color: var(--ink);
}
.st-draft { background: #f1f5f9; color: #475569; }
.st-sent, .st-viewed { background: #e0f2fe; color: #0369a1; }
.st-signed, .st-pay { background: #ffedd5; color: #c2410c; }
.st-paid { background: #ccfbf1; color: #0f766e; }
.st-void { background: #fee2e2; color: #b91c1c; }
.ops-detail-head {
  display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
  margin-bottom: 16px;
}
.ops-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 16px 0;
}
@media (min-width: 640px) {
  .ops-stats { grid-template-columns: repeat(4, 1fr); }
}
.ops-stat {
  background: #f8fafc; border: 1px solid var(--line); border-radius: 14px; padding: 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.ops-stat strong { font-size: 1.05rem; }
.ops-block { margin-top: 22px; padding-top: 8px; border-top: 1px solid var(--line); }
.ops-block h2 { font-size: 1.1rem; margin: 0 0 10px; }
.ops-dl {
  display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; margin: 0;
  font-size: 14px;
}
.ops-dl dt { color: var(--muted); font-weight: 600; }
.ops-dl dd { margin: 0; }
.scope-pre, .scope-box {
  white-space: pre-wrap; font-family: inherit; font-size: 14px; line-height: 1.55;
  background: #f8fafc; border-radius: 12px; padding: 14px; border: 1px solid var(--line);
  margin: 0;
}
.contract-link-box {
  background: #f8fafc; border: 1px dashed var(--line); border-radius: 12px; padding: 12px;
  word-break: break-all; font-size: 13px;
}
.btn-sm { padding: 8px 12px; font-size: 13px; min-height: 40px; }
.btn-danger-ghost {
  background: transparent; color: #b91c1c; border: 2px solid #fecaca;
}
.btn-danger-ghost:hover { background: #fef2f2; }
.contract-main { padding: 20px 16px 40px; max-width: 720px; }
.contract-badge {
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  color: var(--teal-dark); background: var(--teal-soft); padding: 6px 10px; border-radius: 999px;
}
.contract-banner {
  padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; font-weight: 600; font-size: 14px;
}
.contract-banner.is-success { background: #ccfbf1; color: #0f766e; }
.contract-banner.is-warn { background: #ffedd5; color: #c2410c; }
.contract-h3 { font-size: 15px; margin: 14px 0 8px; }
.terms-details summary {
  cursor: pointer; font-weight: 700; color: var(--teal-dark); padding: 8px 0;
}
.terms-body {
  font-size: 13.5px; color: var(--body); line-height: 1.55; max-height: 320px; overflow: auto;
  padding: 8px 0 4px;
}
.terms-body h2, .terms-body h3 { font-size: 14px; color: var(--ink); margin: 14px 0 6px; }
.terms-body ul { padding-left: 1.2em; }
.sig-wrap {
  border: 2px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 8px;
  touch-action: none;
}
.sig-wrap canvas { display: block; width: 100%; height: 180px; border-radius: 10px; cursor: crosshair; }
.contract-foot {
  text-align: center; padding: 16px; padding-bottom: calc(16px + var(--safe-b));
  font-size: 12px;
}

/* ——— Ops service map / mindmap ——— */
.stack-page { max-width: 980px; padding-bottom: 48px; }
.stack-intro { margin-bottom: 20px; }
.stack-legend {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px;
}
.stack-pill {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--muted);
}
.stack-pill--live { background: #ccfbf1; color: #0f766e; border-color: #99f6e4; }
.stack-pill--partial { background: #ffedd5; color: #c2410c; border-color: #fed7aa; }
.stack-pill--planned { background: #f1f5f9; color: #64748b; border-color: #e2e8f0; }
.stack-pill--gov { background: #e0e7ff; color: #3730a3; border-color: #c7d2fe; }

.stack-cloud {
  position: relative;
  margin: 8px 0 28px;
  padding: 20px 16px 22px;
  border-radius: 24px;
  border: 1px solid rgba(20, 184, 166, 0.25);
  background:
    radial-gradient(circle at 50% 50%, rgba(240, 253, 250, 0.95) 0%, #fff 55%, #f8fafc 100%);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  overflow: visible;
}
.stack-map {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}
.stack-map-row {
  display: grid;
  gap: 12px;
  align-items: stretch;
  justify-items: stretch;
}
.stack-map-row--top,
.stack-map-row--bot {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stack-map-row--mid {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}
.stack-hub {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}
.stack-hub-inner {
  width: 148px;
  min-height: 148px;
  border-radius: 50%;
  background: linear-gradient(160deg, #0f172a 0%, #134e4a 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  padding: 16px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.35);
  border: 3px solid #14b8a6;
}
.stack-hub-inner img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff;
  padding: 4px;
}
.stack-hub-inner strong {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}
.stack-hub-inner span {
  font-size: 10px;
  opacity: 0.75;
  letter-spacing: 0.02em;
}

a.stack-node {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  cursor: pointer;
}
a.stack-node:hover {
  border-color: var(--teal);
  box-shadow: 0 12px 28px rgba(20, 184, 166, 0.18);
  transform: translateY(-2px);
}
a.stack-node:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.stack-node {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 118px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 12px 10px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.stack-node h3 {
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
}
.stack-node p {
  margin: 0 0 4px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
}
.stack-url {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--teal-dark);
  margin: 0 0 6px;
  word-break: break-all;
  line-height: 1.3;
}
.stack-node .stack-pill {
  font-size: 10px;
  padding: 3px 8px;
  margin-top: auto;
}
a.stack-hub-inner {
  text-decoration: none;
  color: #fff;
  transition: transform 0.15s, box-shadow 0.15s;
}
a.stack-hub-inner:hover {
  transform: scale(1.03);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.45);
}
.stack-group a {
  color: var(--teal-dark);
  font-weight: 700;
}
.stack-group a:hover { color: var(--teal); }
.stack-node--infra { border-top: 3px solid #f97316; }
.stack-node--web { border-top: 3px solid #0ea5e9; }
.stack-node--comm { border-top: 3px solid #14b8a6; }
.stack-node--pay { border-top: 3px solid #a855f7; }
.stack-node--chat { border-top: 3px solid #eab308; }
.stack-node--sms { border-top: 3px solid #64748b; }
.stack-node--gov { border-top: 3px solid #6366f1; }
.stack-node--fin { border-top: 3px solid #22c55e; }
.stack-node--code { border-top: 3px solid #334155; }
.stack-node--mail { border-top: 3px solid #f43f5e; }

.stack-groups {
  display: grid; gap: 14px;
  grid-template-columns: 1fr;
  margin-bottom: 24px;
}
@media (min-width: 720px) {
  .stack-groups { grid-template-columns: 1fr 1fr; }
}
.stack-group {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 18px; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
.stack-group h2 {
  margin: 0 0 10px; font-size: 15px; font-weight: 800; color: var(--ink);
}
.stack-group ul, .stack-group ol {
  margin: 0; padding-left: 1.15em; color: var(--body); font-size: 13.5px; line-height: 1.5;
}
.stack-group li { margin-bottom: 6px; }
.stack-group code {
  font-size: 12px; background: var(--teal-soft); color: var(--teal-dark);
  padding: 1px 6px; border-radius: 6px;
}
.stack-flow { padding-left: 1.2em; }
.stack-mermaid-wrap { margin-bottom: 16px; }
.stack-mermaid {
  margin: 0; padding: 16px 18px; border-radius: 14px;
  background: #0f172a; color: #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px; line-height: 1.55; overflow-x: auto;
  border: 1px solid #1e293b;
}
.stack-edit-note { font-size: 12.5px; }
.stack-edit-note code {
  font-size: 11.5px; background: #f1f5f9; padding: 2px 6px; border-radius: 4px;
}

@media (max-width: 900px) {
  .stack-map-row--top,
  .stack-map-row--bot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stack-map-row--mid {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }
  .stack-map-row--mid .stack-hub {
    order: -1;
  }
  .stack-hub-inner {
    width: 132px;
    min-height: 132px;
  }
}
@media (max-width: 480px) {
  .stack-cloud { padding: 14px 10px 16px; }
  .stack-map { gap: 10px; }
  .stack-map-row { gap: 8px; }
  .stack-node {
    min-height: 96px;
    padding: 10px 8px;
  }
  .stack-node h3 { font-size: 12.5px; }
  .stack-node p { font-size: 10.5px; }
}
