/* =================================================================
   Public requirements wizard — sunset hero masthead
   --------------------------------------------------------------------
   Per user mockup: diagonal warm orange → light pink gradient; full
   hero (NOT a thin bar); rainbow strip at the very top; oversized
   double-seal lockup top-center; engraved 3D serif headline; small
   ornament + lede; pill-shaped clipboard CTA bottom-right; faint
   heart watermark right; orange ribbon swoosh bottom-left. Sign-in
   floats top-right.
   ================================================================= */

.wizard-shell {
  min-height: 100vh;
  background: linear-gradient(180deg, #fff5e8 0%, var(--ivory-50) 200px);
  color: var(--mauve-900);
  position: relative;
}

/* ====================================================================
   .wizard-hero — the full masthead (replaces .wizard-masthead bar
   AND .wizard-header from the previous iteration)
   ==================================================================== */

.wizard-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--sp-12) var(--sp-6) var(--sp-16);
  text-align: center;
  color: #fff;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  box-shadow: 0 24px 60px -20px rgba(140, 50, 10, 0.32);
  /* Primary: user-supplied cinematic ribbon background (drop into /assets/img/wizard-hero-bg.jpg).
     Fallback: warm diagonal gradient that approximates it so the page never looks broken. */
  background-color: #c95a1a;
  /* Layers (top → bottom):
     1. very subtle dark tint to anchor white text contrast on the lightest right-edge
     2. user-supplied cinematic ribbon WebP (24KB, 2400w)
     3. CSS gradient fallback for the brief moment before the WebP decodes
        (and for any client where the WebP fails to load) */
  background-image:
    linear-gradient(135deg,
      rgba(120, 35, 0, 0.18) 0%,
      transparent 38%,
      rgba(120, 35, 0, 0.10) 100%),
    url("/assets/img/wizard-hero-bg.webp"),
    linear-gradient(135deg,
      #b3450f 0%, #c95a1a 18%, #db6e2e 36%, #e88555 54%,
      #ee9c7e 70%, #f3b3a4 84%, #f5c8c5 100%);
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat;
  min-height: 560px;
}

/* --- Top rainbow strip (city/cultural identity) --- */
.wizard-hero__rainbow {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 8px;
  background: linear-gradient(90deg,
    var(--fiesta-coral)  0   11%,
    var(--fiesta-teal)   11% 22%,
    var(--champagne-400) 22% 33%,
    var(--fiesta-sky)    33% 44%,
    var(--rose-500)      44% 55%,
    var(--fiesta-leaf)   55% 66%,
    var(--lavender-500)  66% 77%,
    var(--fiesta-sun)    77% 88%,
    var(--berry-500)     88% 100%);
  z-index: 3;
}

/* --- Top-right portal nav strip (floats over the gradient) --- */
.wizard-hero__nav {
  position: absolute;
  top: var(--sp-5);
  right: var(--sp-6);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: min(640px, calc(100% - 2 * var(--sp-3)));
}
.wizard-hero__nav .btn {
  background: rgba(255, 255, 255, 0.94);
  color: var(--mauve-800);
  border: 0;
  --_text: var(--mauve-800);
  --_highlight: rgba(255, 255, 255, 0.6);
  --btn-depth: 3px;
  min-height: 40px;
  padding: 0.5rem 1.15rem;
  font-size: var(--fs-14);
  border-radius: var(--r-pill);
  box-shadow: 0 8px 24px rgba(140, 50, 10, 0.28), inset 0 1px 0 rgba(255,255,255,0.7);
}
.wizard-hero__nav .btn::before { background: rgba(255, 222, 200, 0.95); }
.wizard-hero__nav .btn::after  { background: linear-gradient(180deg, rgba(255,255,255,0.7), transparent); }

/* Portal links — translucent ghost so the Sign in pill stays visually primary */
.wizard-hero__nav .btn--portal {
  background: rgba(255, 255, 255, 0.18);
  color: #fff8e8;
  --_text: #fff8e8;
  --_highlight: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: 0 4px 14px rgba(64, 16, 4, 0.2), inset 0 1px 0 rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: var(--fs-13, 0.81rem);
  padding: 0.45rem 0.9rem;
  min-height: 36px;
  transition: background 180ms cubic-bezier(0.2,0.8,0.2,1), border-color 180ms cubic-bezier(0.2,0.8,0.2,1), transform 180ms cubic-bezier(0.2,0.8,0.2,1);
}
.wizard-hero__nav .btn--portal::before { background: rgba(255, 255, 255, 0.0); }
.wizard-hero__nav .btn--portal::after  { background: linear-gradient(180deg, rgba(255,255,255,0.22), transparent); }
.wizard-hero__nav .btn--portal:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-1px);
}
.wizard-hero__nav .btn--portal:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .wizard-hero__nav .btn--portal { transition: none; }
  .wizard-hero__nav .btn--portal:hover { transform: none; }
}

/* Backwards-compat: keep the legacy class so any cached page still renders */
.wizard-hero__signin {
  position: absolute;
  top: var(--sp-5);
  right: var(--sp-6);
  z-index: 4;
}

/* The decorative swoosh + heart watermark are now baked into the
   /assets/img/wizard-hero-bg.jpg image. We keep these selectors as
   no-op placeholders so the markup stays stable; if you ever swap
   to a plain solid background, restoring the CSS-only fallback is
   a one-block edit. */
.wizard-hero__swoosh,
.wizard-hero__watermark { display: none; }

/* --- Brand lockup: two seals + office name --- */
.wizard-hero__brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.wizard-hero__seal {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 4px solid #fff;
  box-shadow:
    0 14px 32px rgba(85, 30, 5, 0.45),
    0 0 0 6px rgba(255, 255, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.wizard-hero__seal--secondary {
  margin-left: -28px;
  width: 80px;
  height: 80px;
  z-index: -1;
}
.wizard-hero__brand-text {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wizard-hero__brand-title {
  font-family: var(--font-display);
  font-size: var(--fs-20);
  font-weight: 500;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 6px rgba(85, 30, 5, 0.45);
  letter-spacing: 0.005em;
}
.wizard-hero__brand-divider {
  display: block;
  width: 80%;
  max-width: 240px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.85), rgba(255,255,255,0.0));
}
.wizard-hero__brand-sub {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
}

/* --- The 3D engraved headline ("What to bring before you queue") --- */
.wizard-hero__title {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 auto var(--sp-4);
  max-width: 18ch;
  /* Layered shadow stack creates an embossed, lit-from-above feel:
     - inner light highlight on top edge
     - inner dark groove on bottom edge
     - soft drop shadow far below
     - faint pink glow */
  color: #fff8e8;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55),
    0 2px 0 rgba(255, 255, 255, 0.30),
    0 -1px 0 rgba(120, 35, 0, 0.55),
    0 -2px 0 rgba(120, 35, 0, 0.30),
    0 12px 24px rgba(85, 30, 5, 0.55),
    0 24px 60px rgba(255, 130, 90, 0.20);
  filter: drop-shadow(0 0 14px rgba(255, 220, 180, 0.20));
}

.wizard-hero__ornament {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  margin: 0 auto var(--sp-4);
  color: var(--champagne-200);
  font-size: var(--fs-18);
}
.wizard-hero__ornament::before,
.wizard-hero__ornament::after {
  content: "";
  width: 70px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 230, 200, 0.65), transparent);
}

.wizard-hero__lede {
  position: relative;
  z-index: 2;
  margin: 0 auto var(--sp-8);
  max-width: 56ch;
  font-size: var(--fs-18);
  line-height: 1.55;
  font-weight: 400;
  color: rgba(255, 248, 232, 0.92);
  text-shadow: 0 1px 2px rgba(85, 30, 5, 0.45);
}

/* --- "Check requirements" + "Sign in" pill CTAs at bottom-right --- */
.wizard-hero__cta {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
  padding: 0 var(--sp-2);
}
.wizard-hero__cta .wizard-hero__signin-btn {
  background: rgba(255, 255, 255, 0.18);
  color: #fff8e8;
  --_text: #fff8e8;
  --_highlight: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 6px 16px rgba(64, 16, 4, 0.22), inset 0 1px 0 rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  min-height: 48px;
  padding: 0.65rem 1.3rem;
  font-size: var(--fs-14);
  border-radius: var(--r-pill);
  transition: background 180ms cubic-bezier(0.2,0.8,0.2,1), border-color 180ms cubic-bezier(0.2,0.8,0.2,1), transform 180ms cubic-bezier(0.2,0.8,0.2,1);
}
.wizard-hero__cta .wizard-hero__signin-btn::before { background: rgba(255, 255, 255, 0.0); }
.wizard-hero__cta .wizard-hero__signin-btn::after  { background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent); }
.wizard-hero__cta .wizard-hero__signin-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.62);
  transform: translateY(-1px);
}
.wizard-hero__cta .wizard-hero__signin-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .wizard-hero__cta .wizard-hero__signin-btn { transition: none; }
  .wizard-hero__cta .wizard-hero__signin-btn:hover { transform: none; }
}
.wizard-hero__cta .btn {
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.95);
  color: var(--mauve-800);
  border: 0;
  --_text: var(--mauve-800);
  --_highlight: rgba(255, 255, 255, 0.6);
  --btn-depth: 4px;
  min-height: 52px;
  padding: 0.85rem 1.6rem 0.85rem 1.2rem;
  font-size: var(--fs-16);
  font-weight: 600;
  box-shadow:
    0 12px 32px rgba(140, 50, 10, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 0 rgba(168, 71, 10, 0.10);
}
.wizard-hero__cta .btn::before { background: rgba(255, 222, 200, 0.95); }
.wizard-hero__cta .btn::after  { background: linear-gradient(180deg, rgba(255,255,255,0.7), transparent); }
.wizard-hero__cta .btn .wizard-hero__cta-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--champagne-300), var(--champagne-500));
  display: grid;
  place-items: center;
  color: var(--mauve-900);
  margin-right: var(--sp-1);
}

/* --- Mobile --- */
@media (max-width: 720px) {
  .wizard-hero { padding: var(--sp-10) var(--sp-4) var(--sp-12); border-radius: 0 0 24px 24px; }
  .wizard-hero__signin { top: var(--sp-3); right: var(--sp-3); }
  .wizard-hero__nav {
    position: static;
    margin: 0 auto var(--sp-5);
    justify-content: center;
    max-width: 100%;
  }
  .wizard-hero__nav .btn--portal {
    flex: 1 1 auto;
    min-width: 140px;
    justify-content: center;
  }
  .wizard-hero__brand { flex-direction: column; gap: var(--sp-3); margin-bottom: var(--sp-5); }
  .wizard-hero__brand-text { text-align: center; align-items: center; }
  .wizard-hero__brand-divider { background: linear-gradient(90deg, transparent, rgba(255,255,255,0.85), transparent); }
  .wizard-hero__seal { width: 64px; height: 64px; border-width: 3px; }
  .wizard-hero__seal--secondary { width: 56px; height: 56px; margin-left: -16px; }
  .wizard-hero__cta { justify-content: center; }
  .wizard-hero__watermark { width: 320px; height: 320px; right: -100px; top: 10%; }
  .wizard-hero__swoosh { width: 360px; height: 360px; left: -120px; bottom: -100px; }
}

/* =====================================================================
   Public 54-barangay overview map
   Sits below the hero, above the program cards. Warm orange surround.
   ===================================================================== */
.public-barangay-map {
  width: min(1180px, calc(100% - 2rem));
  margin: var(--sp-8) auto var(--sp-8);
  padding: var(--sp-6) var(--sp-5);
  background:
    radial-gradient(800px 400px at 100% -10%, rgba(255, 200, 162, 0.45), transparent 60%),
    linear-gradient(180deg, rgba(255, 248, 240, 0.94), rgba(255, 240, 232, 0.94));
  border: 1px solid rgba(168, 71, 10, 0.14);
  border-radius: var(--r-2xl);
  box-shadow: 0 12px 32px rgba(140, 50, 10, 0.10);
}
.public-barangay-map__intro {
  margin-bottom: var(--sp-5);
  text-align: center;
}
.public-barangay-map__eyebrow {
  margin: 0 0 var(--sp-1);
  color: var(--mauve-700);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: var(--fs-12);
  font-weight: 800;
}
.public-barangay-map__title {
  margin: 0 0 var(--sp-2);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 600;
  color: var(--mauve-900);
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55),
    0 -1px 0 rgba(168, 71, 10, 0.10);
}
.public-barangay-map__lede {
  margin: 0 auto;
  max-width: 60ch;
  color: var(--mauve-800);
  font-size: var(--fs-15, 0.94rem);
  line-height: 1.5;
}
.public-barangay-map .pagadian-map-card {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(168, 71, 10, 0.18);
  box-shadow: 0 8px 24px rgba(140, 50, 10, 0.10);
}
.public-barangay-map .pagadian-map-card__title {
  color: var(--mauve-900);
  font-family: var(--font-display);
}
.public-barangay-map .pagadian-map { --map-h: 540px; border-radius: 0 0 var(--r-xl) var(--r-xl); }

@media (max-width: 720px) {
  .public-barangay-map { padding: var(--sp-4) var(--sp-3); margin: var(--sp-6) auto; }
  .public-barangay-map .pagadian-map { --map-h: 380px; }
}

/* --- Reduced motion: nothing animates here, but keep the defensive guard --- */
.seal-lockup {
  display: flex;
  align-items: center;
  isolation: isolate;
}
.seal-lockup__seal {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 12px 28px rgba(0,0,0,.30), 0 0 0 6px rgba(255,176,141,.16);
}
.seal-lockup__seal--primary {
  position: relative;
  z-index: 2;
}
.seal-lockup__seal--secondary {
  width: 62px;
  height: 62px;
  margin-left: -16px;
  z-index: 1;
}
.wizard-header__title {
  font-family: var(--font-display);
  font-size: var(--fs-48);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 var(--sp-3);
  /* 3D engraved contrast — dark warm fill, soft white highlight, subtle pink shadow */
  color: var(--mauve-900);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65),
    0 -1px 0 rgba(168, 71, 10, 0.18),
    0 6px 20px rgba(168, 71, 10, 0.12);
  line-height: 1.05;
}
.wizard-header__lede {
  color: var(--mauve-800);
  max-width: 620px;
  margin: 0 auto;
  font-size: var(--fs-18);
  line-height: 1.55;
  font-weight: 400;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.programs-overview {
  width: min(1180px, calc(100% - 2rem));
  /* No more negative-margin overlap; clean spacing under the masthead */
  margin: var(--sp-8) auto var(--sp-8);
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}
.programs-overview__header {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  align-items: flex-end;
  margin-bottom: var(--sp-5);
  flex-wrap: wrap;
}
.programs-overview__eyebrow {
  margin: 0 0 var(--sp-1);
  color: var(--mauve-700);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: var(--fs-12);
  font-weight: 800;
}
.programs-overview h2 {
  margin: 0;
  color: var(--mauve-900);
  font-family: var(--font-display);
  font-size: var(--fs-30);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  /* 3D engraved contrast on the cream background */
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55),
    0 -1px 0 rgba(168, 71, 10, 0.10);
}
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--sp-3);
}
.program-card {
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  box-shadow: var(--elev-2);
}
.program-card__topline { display: flex; justify-content: flex-start; margin-bottom: var(--sp-3); }
.program-card__tag {
  display: inline-flex;
  border-radius: var(--r-pill);
  background: var(--champagne-50);
  color: var(--champagne-600);
  border: 1px solid var(--champagne-200);
  font-size: var(--fs-12);
  font-weight: 700;
  padding: 4px 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.program-card__title {
  margin: 0 0 var(--sp-2);
  color: var(--mauve-900);
  font-family: var(--font-display);
  font-size: var(--fs-20);
  font-weight: 600;
}
.program-card__summary {
  margin: 0 0 var(--sp-3);
  color: var(--text-secondary);
  line-height: 1.5;
  font-size: var(--fs-14);
}
.program-card__services {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: var(--fs-13, 13px);
  line-height: 1.55;
}
.milestone-strip {
  margin-top: var(--sp-4);
  display: grid;
  grid-template-columns: auto minmax(180px, max-content) 1fr;
  gap: var(--sp-3);
  align-items: center;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: var(--r-xl);
  padding: var(--sp-4) var(--sp-5);
  box-shadow: var(--elev-1);
}
.milestone-strip__label {
  color: var(--rose-700);
  font-size: var(--fs-12);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.wizard-card {
  background: var(--surface-card);
  border-radius: var(--r-3xl);
  padding: var(--sp-8);
  margin: 0 auto;
  max-width: 820px;
  box-shadow: var(--elev-4), inset 0 1px 0 rgba(255,255,255,0.6);
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: auth-card-in 600ms var(--ease-silk);
}

.wizard-step { display: none; }
.wizard-step.is-active {
  display: block;
  animation: page-fade-in 400ms var(--ease-silk);
}
.wizard-step__title {
  font-family: var(--font-display);
  font-size: var(--fs-30);
  font-weight: 500;
  margin: 0 0 var(--sp-2);
  color: var(--mauve-900);
  letter-spacing: var(--tracking-display);
}
.wizard-step__hint {
  color: var(--text-muted);
  margin: 0 0 var(--sp-6);
  font-size: var(--fs-16);
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-3);
}
.option-tile {
  display: block;
  padding: var(--sp-5);
  border: 2px solid var(--border-subtle);
  border-radius: var(--r-xl);
  background: var(--surface-raised);
  cursor: pointer;
  transition: all var(--motion-medium) var(--ease-silk);
  text-align: left;
  position: relative;
}
.option-tile:hover {
  border-color: var(--rose-300);
  background: var(--rose-50);
  transform: translateY(-3px);
  box-shadow: var(--elev-2);
}
.option-tile input { display: none; }
.option-tile:has(input:checked) {
  border-color: var(--rose-500);
  background: linear-gradient(135deg, var(--rose-50), var(--champagne-50));
  box-shadow: var(--elev-2);
}
.option-tile:has(input:checked)::after {
  content: "✓";
  position: absolute;
  top: var(--sp-3); right: var(--sp-3);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--rose-500);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: var(--fs-14);
  box-shadow: var(--elev-2);
}
.option-tile__title {
  font-weight: 600;
  font-size: var(--fs-18);
  margin: 0 0 4px;
  font-family: var(--font-display);
  color: var(--mauve-900);
}
.option-tile__sub { color: var(--text-muted); font-size: var(--fs-14); margin: 0; line-height: 1.45; }

.wizard-progress {
  display: flex;
  gap: 6px;
  margin-bottom: var(--sp-6);
}
.wizard-progress__step {
  flex: 1;
  height: 4px;
  background: var(--ivory-200);
  border-radius: 2px;
  transition: background var(--motion-medium);
}
.wizard-progress__step.is-active,
.wizard-progress__step.is-done {
  background: linear-gradient(90deg, var(--rose-400), var(--champagne-400));
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border-subtle);
}

/* Print checklist */
.checklist {
  list-style: none;
  padding: 0;
  margin: var(--sp-4) 0;
}
.checklist li {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border-bottom: 1px dashed var(--border-default);
  align-items: flex-start;
  background: var(--surface-raised);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-2);
  border: 1px solid var(--border-subtle);
}
.checklist li::before {
  content: "";
  width: 22px; height: 22px;
  border: 2px solid var(--rose-500);
  border-radius: var(--r-sm);
  flex-shrink: 0;
  margin-top: 2px;
  background: #fff;
}
.checklist__title { font-weight: 600; margin: 0; color: var(--mauve-900); font-family: var(--font-display); font-size: var(--fs-18); }
.checklist__hint { font-size: var(--fs-13, 13px); color: var(--text-muted); margin: 4px 0 0; line-height: 1.45; }

@media print {
  .wizard-shell { background: #fff; }
  .wizard-header { background: #fff; color: #000; padding: 1rem; }
  .wizard-header__title, .wizard-header__lede { color: #000 !important; }
  .wizard-actions, .no-print { display: none !important; }
  .wizard-card { box-shadow: none; margin: 0; max-width: 100%; padding: 1rem; }
  body::before { display: none; }
}

@media (max-width: 760px) {
  .programs-overview { margin-top: -56px; }
  .programs-overview__header,
  .milestone-strip {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }
  .programs-overview h2 { font-size: var(--fs-30); }
}

/* =====================================================================
   Government Links — footer-adjacent reference panel.
   Deep blue / purple gradient with white SVG-icon pills, mirroring the
   official Pagadian Portal reference design so the two LGU surfaces
   share an "official references" visual language.
   ===================================================================== */
.public-gov-links {
  width: min(1180px, calc(100% - 2rem));
  margin: var(--sp-8) auto var(--sp-10);
  padding: clamp(1.5rem, 2.4vw, 2rem);
  border-radius: var(--r-2xl);
  background:
    radial-gradient(circle at 12% 20%, rgba(96, 165, 250, 0.20), transparent 22%),
    radial-gradient(circle at 88% 18%, rgba(129, 140, 248, 0.20), transparent 22%),
    radial-gradient(circle at 74% 82%, rgba(192, 132, 252, 0.18), transparent 22%),
    linear-gradient(145deg, #2c3a8a 0%, #495dc0 38%, #6751c8 70%, #873db9 100%);
  color: #ffffff;
  box-shadow:
    0 30px 60px rgba(46, 5, 26, 0.24),
    0 12px 24px rgba(98, 18, 60, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.public-gov-links__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
  flex-wrap: wrap;
}
.public-gov-links__title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.public-gov-links__lede {
  display: block;
  max-width: 56ch;
  margin-top: var(--sp-2);
  color: rgba(239, 246, 255, 0.86);
  font-size: var(--fs-14);
  line-height: 1.6;
}
.public-gov-links__kicker {
  align-self: flex-start;
  padding: 0.5rem 0.95rem;
  border-radius: var(--r-pill);
  background: rgba(15, 23, 42, 0.28);
  color: #f8fafc;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.18);
  white-space: nowrap;
}
.public-gov-links__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  position: relative;
  z-index: 1;
}
.public-gov-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 14px 16px;
  border-radius: 18px;
  text-decoration: none;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08)),
    linear-gradient(135deg, rgba(66, 86, 189, 0.36), rgba(122, 73, 195, 0.24));
  border: 1px solid rgba(221, 214, 254, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10),
              0 12px 24px rgba(76, 17, 51, 0.22);
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 200ms ease,
              box-shadow 200ms ease;
}
.public-gov-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), transparent 58%);
  pointer-events: none;
}
.public-gov-link:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.28);
}
.public-gov-link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}
.public-gov-link__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.96), rgba(167, 139, 250, 0.96));
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28),
              0 6px 14px rgba(67, 56, 202, 0.32);
  position: relative;
  z-index: 1;
}
.public-gov-link__icon svg { display: block; }
.public-gov-link__copy {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.public-gov-link__copy strong {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: 0.005em;
}
@media (prefers-reduced-motion: reduce) {
  .public-gov-link { transition: none; }
  .public-gov-link:hover { transform: none; }
}
@media (max-width: 960px) {
  .public-gov-links__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .public-gov-links__grid { grid-template-columns: 1fr; }
  .public-gov-links__header { flex-direction: column; }
  .public-gov-links__kicker { align-self: flex-start; }
}

/* Capability ribbon — introduces the system's digital-operations breadth
   inside the hero space, below the citizen "Check requirements" CTA.
   Chips name the modules (label-only — numbers live in the .system-metrics
   strip below as proof). One bright CTA at the end leads evaluators to
   /showcase. Visually subordinate to the primary CTA above so citizens
   don't get distracted; visually unmissable to anyone evaluating the
   system. */
.wizard-hero__capabilities {
  margin: 22px auto 0;
  max-width: 760px;
  text-align: center;
  padding: var(--sp-4, 16px) var(--sp-5, 20px);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
  backdrop-filter: blur(2px);
}
.wizard-hero__capabilities-eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}
.wizard-hero__capability-chips {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.wizard-hero__capability-chips li {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background 120ms ease, border-color 120ms ease;
}
.wizard-hero__capability-chips li:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.42);
}
.wizard-hero__capabilities-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(247, 111, 21, 0.18);
  border: 1.5px solid rgba(255, 178, 122, 0.55);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.wizard-hero__capabilities-cta:hover {
  background: rgba(247, 111, 21, 0.32);
  border-color: rgba(255, 200, 150, 0.85);
  transform: translateY(-1px);
}
.wizard-hero__capabilities-cta svg { transition: transform 160ms ease; }
.wizard-hero__capabilities-cta:hover svg { transform: translateX(2px); }
@media (max-width: 720px) {
  .wizard-hero__capabilities { padding: var(--sp-3, 12px) var(--sp-4, 16px); margin-top: 16px; }
  .wizard-hero__capability-chips li { font-size: 12px; padding: 5px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .wizard-hero__capabilities-cta,
  .wizard-hero__capabilities-cta svg,
  .wizard-hero__capability-chips li { transition: none; }
  .wizard-hero__capabilities-cta:hover { transform: none; }
}

/* ============================================================
   .system-metrics — "What this system runs today" capability
   strip on the public wizard front view. 6 live KPIs from
   SystemMetricsService. Sits between the hero and the public
   barangay map; reuses the warm palette (no new colors), the
   token spacing scale, and matches the .program-card surface.
   Reasoning per visual choice:
     - 3×2 desktop / 2-col tablet / 1-col mobile: maps cleanly
       to 6 metrics; no orphan tile at any breakpoint.
     - Translucent card surface (.94 alpha) matches existing
       .program-card so the strip reads as a sibling to the
       programs grid below.
     - Outline SVG icons (no emoji) match existing programs
       and government-links visual language.
     - Compliance strip below uses muted text and brand-gold
       chip styling already in use elsewhere — establishes
       audit credibility without a separate trust-claim grid.
   ============================================================ */
.system-metrics {
  margin: var(--sp-12) auto;
  padding: 0 var(--sp-6);
  max-width: 1180px;
}
.system-metrics__head {
  text-align: center;
  margin-bottom: var(--sp-6);
}
.system-metrics__eyebrow {
  margin: 0 0 var(--sp-2);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mauve-600, #8a6473);
}
.system-metrics__title {
  margin: 0 0 var(--sp-3);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--mauve-900, #2a1822);
  letter-spacing: -0.01em;
}
.system-metrics__lede {
  max-width: 640px;
  margin: 0 auto;
  font-size: var(--fs-16);
  line-height: 1.55;
  color: var(--text-secondary, #5a4654);
}
.system-metrics__lede a {
  color: var(--brand-orange, #f76f15);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(247, 111, 21, 0.32);
  transition: border-color var(--motion-fast, 120ms) ease;
}
.system-metrics__lede a:hover { border-bottom-color: var(--brand-orange, #f76f15); }

.system-metrics__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.system-metric {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--r-xl, 18px);
  padding: var(--sp-5) var(--sp-5) var(--sp-4);
  box-shadow: var(--elev-2, 0 8px 24px rgba(63, 42, 54, 0.08));
  transition: transform var(--motion-ui, 180ms) var(--ease-standard, cubic-bezier(0.2, 0.8, 0.2, 1)),
              box-shadow var(--motion-ui, 180ms) var(--ease-standard, cubic-bezier(0.2, 0.8, 0.2, 1));
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.system-metric:hover {
  transform: translateY(-2px);
  box-shadow: var(--elev-3, 0 14px 30px rgba(63, 42, 54, 0.12));
}
.system-metric__icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md, 12px);
  background: var(--champagne-50, #fff5e6);
  color: var(--champagne-700, #a8470a);
}
.system-metric__icon svg { width: 22px; height: 22px; }
.system-metric__label {
  margin: 0;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: var(--fs-12);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mauve-700, #5a3a4c);
}
.system-metric__value {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--mauve-900, #2a1822);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.system-metric__sub {
  margin: 0;
  font-size: var(--fs-14);
  color: var(--text-secondary, #5a4654);
  line-height: 1.45;
}

.system-metrics__compliance {
  margin: var(--sp-6) auto 0;
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2) var(--sp-4);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: var(--fs-12);
  color: var(--text-muted, #7a6470);
  border-top: 1px solid rgba(212, 192, 200, 0.4);
  border-bottom: 1px solid rgba(212, 192, 200, 0.4);
}
.system-metrics__compliance span {
  white-space: nowrap;
}
.system-metrics__compliance span::before {
  content: "✓";
  margin-right: 6px;
  color: var(--success-700, #166534);
  font-weight: 700;
}

@media (max-width: 960px) {
  .system-metrics__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .system-metrics { padding: 0 var(--sp-4); margin: var(--sp-8) auto; }
  .system-metrics__grid { grid-template-columns: 1fr; gap: var(--sp-3); }
  .system-metrics__compliance { flex-direction: column; gap: var(--sp-2); align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .system-metric { transition: none; }
  .system-metric:hover { transform: none; }
}

/* ============================================================
   Demo video band — 75-second guided tour of the system.
   Sits between the hero and the live-numbers strip. Mirrors
   the warm/maroon brand language used by .wizard-hero so the
   transition feels earned. Mobile collapses to a single column.
   ============================================================ */
.wizard-demo {
  max-width: 1180px;
  margin: var(--sp-10, 56px) auto var(--sp-8, 40px);
  padding: 0 var(--sp-6, 28px);
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 1.6fr);
  gap: var(--sp-7, 36px);
  align-items: center;
}
.wizard-demo__head { display: flex; flex-direction: column; gap: var(--sp-3, 16px); }
.wizard-demo__eyebrow {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: var(--fs-12, 12px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-maroon, #8E1F2F);
  font-weight: 700;
  margin: 0;
}
.wizard-demo__title {
  font-family: var(--font-display, "Playfair Display", Georgia, serif);
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink, #2A1A12);
  margin: 0;
  font-weight: 600;
}
.wizard-demo__lede {
  font-size: var(--fs-16, 16px);
  line-height: 1.55;
  color: var(--text-soft, #5C3F32);
  margin: 0;
  max-width: 44ch;
}
.wizard-demo__frame {
  position: relative;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(140deg, #6E1422 0%, #8E1F2F 60%, #F0763C 130%);
  padding: 6px;
  box-shadow:
    0 32px 56px -32px rgba(110, 20, 34, 0.45),
    0 12px 24px -12px rgba(0, 0, 0, 0.18);
}
.wizard-demo__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: #1c0e07;
  outline: none;
}
.wizard-demo__caption {
  margin-top: var(--sp-3, 14px);
  text-align: center;
  font-size: var(--fs-13, 13px);
  color: var(--text-muted, #7a6470);
  font-family: var(--font-body, "Inter", system-ui, sans-serif);
}
.wizard-demo__caption a {
  color: var(--brand-maroon, #8E1F2F);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 880px) {
  .wizard-demo {
    grid-template-columns: 1fr;
    gap: var(--sp-4, 20px);
    margin: var(--sp-7, 36px) auto var(--sp-6, 28px);
  }
  .wizard-demo__head { text-align: center; align-items: center; }
  .wizard-demo__lede { max-width: 56ch; }
}

@media (prefers-reduced-motion: reduce) {
  .wizard-demo__frame { box-shadow: 0 6px 12px -6px rgba(0, 0, 0, 0.18); }
}
