/* Westcode.io / municipal service line
   Static, no build step. Brand tokens mirror westcode.io.
   Loaded after the site chrome CSS. Every component rule is scoped to main#main
   so the shared header, nav and footer keep their own styles. */

@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dmsans-latin.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

/* Tokens live on main#main so they never override the site chrome's --line, --sun, etc. */
main#main {
  --navy: #243867;
  --sun: #F8B52B;
  --sand: #F7EEDC;
  --cream: #FDF6E4;
  --deep-sea: #1A5184;
  --paper: #FFFCF5;
  --muted: #656b83;
  /* Body copy: navy-derived, >= 7:1 on sand, cream and paper */
  --ink: #34416a;

  --line: rgba(36, 56, 103, 0.12);
  --line-strong: rgba(36, 56, 103, 0.2);
  --shadow-sm: 0 1px 2px rgba(36, 56, 103, 0.06), 0 2px 8px rgba(36, 56, 103, 0.05);
  --shadow-md: 0 1px 2px rgba(36, 56, 103, 0.06), 0 12px 32px -8px rgba(36, 56, 103, 0.16);
  --shadow-lg: 0 2px 4px rgba(36, 56, 103, 0.05), 0 30px 60px -20px rgba(36, 56, 103, 0.28);

  --max: 1240px;
  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(64px, 8vw, 112px);
  --radius: 22px;
  --radius-lg: 32px;

  --font: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Base (scoped to the municipal main; site chrome keeps its own styles) ---------- */
main#main {
  display: block;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  overflow-x: clip;
}
main#main *, main#main *::before, main#main *::after { box-sizing: border-box; }
main#main img { display: block; max-width: 100%; height: auto; }
main#main svg.icon, main#main .cta-sun { display: block; max-width: 100%; }

main#main h1, main#main h2, main#main h3 {
  margin: 0;
  font-family: var(--font);
  color: var(--navy);
  font-weight: 700;
  text-wrap: balance;
}
main#main h1 {
  font-size: clamp(2.5rem, 1.55rem + 4.1vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}
main#main h2 {
  font-size: clamp(2rem, 1.35rem + 2.6vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}
main#main h3 {
  font-size: 1.1875rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
main#main p { margin: 0; text-wrap: pretty; }

main#main a { color: var(--deep-sea); text-underline-offset: 3px; }
main#main a:hover { color: var(--navy); }

main#main :focus-visible {
  outline: 3px solid var(--deep-sea);
  outline-offset: 3px;
  border-radius: 8px;
}
main#main:focus { outline: none; }

main#main .icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

main#main .wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Section label (sun dot) ---------- */
main#main .label {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.005em;
}
main#main .label::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sun);
  transform: translateY(-1px);
}

main#main .lead {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink);
}

/* ---------- Buttons ---------- */
main#main .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
main#main .btn .icon { width: 18px; height: 18px; }
main#main .btn:hover { transform: translateY(-1px); }
main#main .btn:active { transform: translateY(0); }

main#main .btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(36, 56, 103, 0.55);
}
main#main .btn-primary:hover { background: #1c2d55; color: #fff; }

main#main .btn-secondary {
  background: rgba(255, 252, 245, 0.78);
  color: var(--navy);
  border-color: var(--line-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
main#main .btn-secondary:hover { background: var(--paper); color: var(--navy); border-color: rgba(36, 56, 103, 0.35); }

main#main .btn-sun {
  background: var(--sun);
  color: var(--navy);
}
main#main .btn-sun:hover { background: #ffc444; color: var(--navy); }

main#main .btn-sm { min-height: 44px; padding: 10px 20px; font-size: 0.9375rem; }

main#main .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Sections ---------- */
main#main .section { padding-block: var(--section); }
main#main .section-cream {
  background: var(--cream);
  border-block: 1px solid rgba(36, 56, 103, 0.06);
}

main#main .section-head { max-width: 760px; margin-bottom: clamp(36px, 4.5vw, 56px); }
main#main .section-head h2 + .lead { margin-top: 18px; }
main#main .section-head-center { margin-inline: auto; text-align: center; }
main#main .section-head-center .lead { max-width: 640px; margin-inline: auto; }

/* ---------- Hero ---------- */
main#main .hero { padding-block: clamp(32px, 6vw, 88px) clamp(16px, 2vw, 32px); }
main#main .hero-grid {
  display: grid;
  gap: clamp(40px, 5vw, 64px);
  align-items: start;
}
main#main .hero-copy { min-width: 0; }
main#main .hero h1 { max-width: 13ch; }
main#main .hero .lead { margin-top: 22px; max-width: 58ch; }
main#main .hero .actions { margin-top: 32px; }

main#main .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
main#main .chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: rgba(255, 252, 245, 0.75);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}
main#main .chips .icon {
  width: 16px;
  height: 16px;
  padding: 2px;
  border-radius: 50%;
  background: var(--sun);
  stroke-width: 3;
}
main#main .hero-note {
  margin-top: 20px;
  color: var(--ink);
  font-size: 0.9375rem;
}

main#main .hero-media { margin: 0; min-width: 0; }
main#main .hero-media .paper-card { max-width: 600px; margin-inline: auto; }

/* Paper card for the mockup. Square artboard, never stretched. */
main#main .paper-card {
  padding: clamp(6px, 1vw, 12px);
  border: 1px solid rgba(36, 56, 103, 0.14);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}
main#main .paper-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: calc(var(--radius-lg) - 10px);
  background: var(--sand);
}
/* The artwork already includes the caption sentence. Only the hero figure keeps a figcaption, using the site .visually-hidden class so it is not printed twice; the showcase figure has none. */

@media (min-width: 960px) {
  main#main .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}

/* ---------- Problem ---------- */
/* Hero and problem share the sand background, so the full section padding stacked on the hero's bottom padding read as an empty band. */
main#main #problem { padding-top: clamp(48px, 5vw, 72px); }
main#main .split-head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(36px, 4.5vw, 56px);
}
main#main .split-body { display: grid; gap: 16px; max-width: 62ch; }
@media (min-width: 960px) {
  main#main .split-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: end; }
}

/* ---------- Cards / grids ---------- */
main#main .grid {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
main#main .card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 26px 24px 28px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
}
main#main .card h3 { margin-top: 6px; }
main#main .card p { font-size: 1rem; line-height: 1.6; }

main#main .icon-tile {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 14px;
  background: var(--sand);
  color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--line);
}
main#main .icon-tile .icon { width: 22px; height: 22px; }

main#main .card-alert .icon-tile { background: var(--navy); color: var(--sun); box-shadow: none; }

@media (min-width: 640px) {
  main#main .grid { gap: 20px; }
  main#main .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  main#main .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Use cases: 1 / 2 / 3 columns. Feature and closing card span to keep rows full. */
main#main .card-feature {
  background: var(--navy);
  box-shadow: var(--shadow-md);
}
main#main .card-feature h3 { color: #fff; font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.5rem); }
main#main .card-feature p { color: rgba(255, 255, 255, 0.9); font-size: 1.0625rem; max-width: 62ch; }
main#main .card-feature .icon-tile { background: var(--sun); color: var(--navy); box-shadow: none; }

main#main .card-sun {
  background: #FCE7B6;
  box-shadow: inset 0 0 0 1px rgba(248, 181, 43, 0.6);
}
main#main .card-sun .icon-tile { background: var(--paper); }
main#main .card-sun h3 + p { margin-top: 8px; }
main#main .card-sun h3 { font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.5rem); }
main#main .card-sun p { font-size: 1.0625rem; color: var(--navy); }

@media (min-width: 680px) {
  main#main .grid-uses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  main#main .card-feature, main#main .card-sun { grid-column: span 2; }
  main#main .card-sun { flex-direction: row; align-items: center; gap: 20px; }
  main#main .card-sun h3 { margin-top: 0; }
}
@media (min-width: 1060px) {
  main#main .grid-uses { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Showcase ---------- */
main#main .showcase {
  max-width: 1080px;
  margin: 0 auto;
}

/* ---------- Mockup gallery ---------- */
/* Lighter paper card than the showcase: same paper and border, smaller radius and shadow, caption inside. */
main#main .mockup-gallery-wrap {
  max-width: 1080px;
  margin: clamp(48px, 6vw, 80px) auto 0;
}
main#main .mockup-gallery-title {
  margin-bottom: clamp(20px, 3vw, 32px);
  font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem);
  text-align: center;
}
main#main .mockup-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}
main#main .mockup-gallery > li { display: flex; min-width: 0; }
main#main .mockup-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: clamp(6px, 1vw, 12px);
  border: 1px solid rgba(36, 56, 103, 0.14);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-md);
}
main#main .mockup-card picture { display: block; }
main#main .mockup-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: calc(var(--radius) - 8px);
  background: var(--sand);
}
main#main .mockup-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 14px 14px;
}
main#main .mockup-card h4 {
  margin: 0;
  font-family: var(--font);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--navy);
  text-wrap: balance;
}
main#main .mockup-card p { font-size: 1rem; line-height: 1.6; }
@media (min-width: 720px) {
  main#main .mockup-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Pilot ---------- */
main#main .pilot-grid {
  display: grid;
  gap: 32px;
  align-items: start;
}
main#main .steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
}
main#main .steps li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px clamp(18px, 2.5vw, 28px);
}
main#main .steps li + li { border-top: 1px solid var(--line); }
main#main .step-num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sand);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
main#main .steps li:first-child .step-num { background: var(--sun); box-shadow: none; }
main#main .steps p { color: var(--navy); font-size: 1.0625rem; line-height: 1.5; }

main#main .pilot-aside { display: grid; gap: 20px; }
main#main .hold-card {
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-md);
}
main#main .hold-card h3 { color: #fff; font-size: 1.375rem; }
main#main .checklist {
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
main#main .checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 1.0625rem;
  line-height: 1.45;
  color: #fff;
}
main#main .checklist .icon {
  width: 24px;
  height: 24px;
  padding: 4px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--navy);
  stroke-width: 3;
}
main#main .studio-line {
  padding: 0 4px;
  font-size: 1rem;
  line-height: 1.6;
}

@media (min-width: 960px) {
  main#main .pilot-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; }
  main#main .pilot-aside { position: sticky; top: 112px; }
}

/* ---------- FAQ ---------- */
main#main .faq-grid { display: grid; gap: 28px; }
main#main .faq-head h2 { max-width: 12ch; }
main#main .faq-list { display: grid; gap: 10px; }
main#main .faq-list details {
  border-radius: 18px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 180ms ease;
}
main#main .faq-list details[open] { box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-sm); }
main#main .faq-list summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 16px 68px 16px 22px;
  color: var(--navy);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
  border-radius: 18px;
}
main#main .faq-list summary::-webkit-details-marker { display: none; }
main#main .faq-list summary::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  border-radius: 50%;
  background:
    linear-gradient(var(--navy), var(--navy)) center / 12px 2px no-repeat,
    linear-gradient(var(--navy), var(--navy)) center / 2px 12px no-repeat,
    var(--sand);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 200ms ease, background-color 200ms ease;
}
main#main .faq-list details[open] summary::after {
  transform: rotate(45deg);
  background:
    linear-gradient(var(--navy), var(--navy)) center / 12px 2px no-repeat,
    linear-gradient(var(--navy), var(--navy)) center / 2px 12px no-repeat,
    var(--sun);
  box-shadow: none;
}
main#main .faq-list details p {
  padding: 0 22px 22px;
  max-width: 64ch;
  font-size: 1rem;
}

@media (min-width: 960px) {
  main#main .faq-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
  main#main .faq-head { position: sticky; top: 112px; }
}

/* ---------- Final CTA ---------- */
main#main .section-cta { padding-top: 0; }
main#main .cta-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(40px, 6vw, 80px) clamp(24px, 6vw, 80px);
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
main#main .cta-sun {
  position: absolute;
  z-index: -1;
  right: clamp(-120px, -6vw, -40px);
  top: clamp(-120px, -6vw, -40px);
  width: clamp(200px, 26vw, 340px);
  fill: var(--sun);
}
main#main .cta-panel h2 { color: #fff; max-width: 17ch; }
main#main .cta-panel .lead { margin-top: 20px; max-width: 56ch; color: rgba(255, 255, 255, 0.9); }
main#main .cta-try {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  max-width: 56ch;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
}
main#main .cta-try-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--navy);
}
main#main .cta-try-icon .icon { width: 16px; height: 16px; }
main#main .cta-panel .actions { margin-top: 32px; }
main#main .contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
main#main .contact-list li { display: flex; align-items: center; gap: 10px; color: var(--sun); }
main#main .contact-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}
main#main .contact-list a:hover { text-decoration-color: var(--sun); color: #fff; }
main#main .cta-panel :focus-visible { outline-color: var(--sun); }

@media (max-width: 639px) {
  main#main .cta-sun { width: 150px; right: -60px; top: -60px; }
  main#main .cta-panel h2 { padding-right: 40px; }
}

/* ---------- Mobile tuning ---------- */
@media (max-width: 479px) {
  main#main .actions .btn { width: 100%; }
  main#main .card { padding: 22px 20px 24px; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  main#main *, main#main *::before, main#main *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  main#main .btn:hover { transform: none; }
}

@media (forced-colors: active) {
  main#main .label::before, main#main .chips .icon, main#main .checklist .icon { forced-color-adjust: none; }
  main#main .btn { border-color: ButtonText; }
}
