:root {
  --paper: #f6f8fb;
  --sheet: #ffffff;
  --sheet-soft: #f9f9f9;
  --header: #ebeff2;
  --grid: #d9e1e7;
  --ink: #1f2933;
  --muted: #667085;
  --blue: #3c78b5;
  --navy: #1f4e78;
  --teal: #2f9e9b;
  --mint: #d9ead3;
  --peach: #fce2d2;
  --pink: #f4e0e9;
  --cyan: #daeef2;
  --yellow: #fff6db;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--ink);
  font-family: Aptos, "Segoe UI", sans-serif;
  background:
    linear-gradient(90deg, rgba(60, 120, 181, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(60, 120, 181, 0.06) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
}

.launcher {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
  overflow-x: hidden;
}

.login-bar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 16px;
}

.login-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #b8cedc;
  border-radius: 999px;
  color: var(--navy);
  font-weight: 850;
  text-decoration: none;
  background: var(--sheet);
  box-shadow: 0 8px 18px rgba(31, 78, 121, 0.1);
}

.login-bar .member-login {
  color: white;
  border-color: var(--blue);
  background: var(--blue);
}

.hero,
.public-note,
.product-card,
.org-map,
.handoff-map,
.secure-preview {
  border: 1px solid var(--grid);
  border-radius: 10px;
  background: var(--sheet);
  box-shadow: 0 14px 34px rgba(31, 78, 121, 0.12);
}

.hero {
  padding: 36px;
  border-top: 6px solid var(--blue);
}

.hero h1 {
  width: 100%;
  max-width: none;
  font-size: clamp(36px, 4.2vw, 52px);
  line-height: 1.08;
}

.eyebrow,
.product-card span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 820px;
  margin-top: 8px;
  color: var(--navy);
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.98;
  overflow-wrap: break-word;
}

.hero p {
  max-width: 760px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
  overflow-wrap: break-word;
}

.public-note {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding: 18px 20px;
  border-left: 6px solid var(--teal);
  background: linear-gradient(90deg, var(--yellow), var(--cyan));
  box-shadow: none;
}

.public-note strong {
  color: var(--navy);
  font-size: 16px;
}

.public-note p {
  max-width: 980px;
  color: var(--ink);
  line-height: 1.45;
}

.hero > *,
.public-note > *,
.product-card > *,
.org-map > *,
.handoff-map > * {
  min-width: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.product-card {
  display: grid;
  gap: 14px;
  min-height: 340px;
  padding: 28px;
  color: inherit;
  text-decoration: none;
}

.product-card.accounting {
  border-top: 6px solid var(--teal);
  background: linear-gradient(180deg, var(--cyan), var(--sheet));
}

.product-card.work {
  border-top: 6px solid var(--blue);
  background: linear-gradient(180deg, var(--mint), var(--sheet));
}

.product-card h2 {
  color: var(--navy);
  font-size: 34px;
}

.product-card p {
  color: var(--muted);
  font-size: 16px;
  overflow-wrap: anywhere;
}

.product-card strong {
  align-self: end;
  width: fit-content;
  padding: 9px 12px;
  border-radius: 6px;
  color: white;
  background: var(--blue);
}

.org-map {
  display: grid;
  gap: 18px;
  margin-top: 20px;
  padding: 24px;
  background: linear-gradient(180deg, var(--sheet), var(--cyan));
}

.secure-preview {
  display: grid;
  gap: 18px;
  margin-top: 20px;
  padding: 24px;
  border-top: 6px solid var(--teal);
  background: linear-gradient(180deg, var(--sheet), var(--yellow));
}

.secure-preview .section-heading h2 {
  max-width: 700px;
}

.secure-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.secure-grid article {
  min-height: 170px;
  padding: 16px;
  border: 1px solid #b8cedc;
  border-radius: 8px;
  background: var(--sheet);
}

.secure-grid span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.secure-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-size: 18px;
}

.secure-grid p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.45;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.section-heading h2 {
  color: var(--navy);
  font-size: 30px;
}

.org-map .section-heading h2 {
  font-size: 18px;
}

.section-heading a {
  color: var(--blue);
  font-weight: 850;
}

.diagram-flow {
  display: grid;
  justify-items: center;
  gap: 0;
  padding: 12px;
}

.diagram-node {
  position: relative;
  width: min(620px, 100%);
  padding: 16px 18px;
  border: 1px solid #9dc3d5;
  border-radius: 8px;
  color: var(--navy);
  background: var(--sheet);
  box-shadow: 0 8px 16px rgba(31, 78, 121, 0.08);
}

.diagram-node strong {
  display: block;
  font-size: 18px;
}

.diagram-node span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.top-node {
  background: var(--yellow);
}

.governing-node,
.county-node {
  background: var(--cyan);
}

.fund-node,
.council-node {
  background: var(--mint);
}

.approval-node {
  background: var(--peach);
}

.flow-arrow {
  display: grid;
  justify-items: center;
  min-height: 58px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.flow-arrow::before {
  content: "";
  width: 2px;
  height: 30px;
  background: var(--blue);
}

.flow-arrow::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 9px solid var(--blue);
}

.flow-arrow span {
  order: 3;
  margin-top: 5px;
  padding: 4px 8px;
  border: 1px solid #b8cedc;
  border-radius: 999px;
  background: var(--sheet);
}

.return-arrow::before {
  background: #d87941;
}

.return-arrow::after {
  border-top-color: #d87941;
}

.org-split,
.diagram-split {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin: 24px 0 0;
}

.diagram-split::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 16.666%;
  right: 16.666%;
  height: 2px;
  background: var(--blue);
}

.diagram-split .diagram-node {
  width: 100%;
  min-height: 128px;
}

.diagram-split .diagram-node::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 50%;
  width: 2px;
  height: 18px;
  background: var(--blue);
}

.handoff-map {
  margin-top: 20px;
  padding: 20px;
  background: var(--sheet-soft);
}

.handoff-map h2 {
  color: var(--navy);
}

.handoff-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.handoff-row span {
  padding: 12px;
  border: 1px solid var(--grid);
  border-radius: 8px;
  color: var(--navy);
  font-weight: 850;
  background: var(--sheet);
}

.handoff-row span:nth-child(1) {
  background: var(--peach);
}

.handoff-row span:nth-child(2) {
  background: var(--mint);
}

.handoff-row span:nth-child(3) {
  background: var(--yellow);
}

.handoff-row span:nth-child(4) {
  background: var(--pink);
}

@media (max-width: 760px) {
  .launcher {
    width: 100%;
    max-width: 390px;
    margin: 0;
    padding: 8px;
  }

  .product-grid,
  .org-split,
  .handoff-row,
  .secure-grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .product-card,
  .public-note,
  .org-map,
  .handoff-map,
  .secure-preview {
    width: 100%;
    max-width: 100%;
    padding: 18px;
  }

  .login-bar {
    justify-content: stretch;
  }

  .login-bar a {
    flex: 1;
  }

  h1 {
    font-size: 32px;
    line-height: 1.04;
  }

  .hero p,
  .public-note p {
    font-size: 15px;
  }

  .product-card {
    min-height: auto;
  }

  .diagram-flow {
    padding: 0;
  }

  .diagram-node {
    width: 100%;
  }

  .diagram-split::before,
  .diagram-split .diagram-node::before {
    display: none;
  }

  .product-card strong {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .launcher {
    width: 100%;
    padding: 6px;
  }

  .hero,
  .product-card,
  .public-note,
  .org-map,
  .handoff-map,
  .secure-preview {
    padding: 16px;
  }

  h1 {
    font-size: 30px;
  }
}
