/* Permit Nav marketing site — shared page chrome & motion.
   Tokens come from the design system; this file only adds page-level
   layout, link resets, scroll-reveal motion and small responsive rules. */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

html, body { margin: 0; background: var(--white); }
body { font-family: var(--font-sans); color: var(--ink-700); -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
#app { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 1 auto; }

a { color: inherit; text-decoration: none; }

.pn-container { max-width: 1240px; margin: 0 auto; padding-left: 48px; padding-right: 48px; }

/* ── Header: hamburger / mobile menu ─────────────────────── */
.pn-burger { display: none; }
.pn-mobile-menu { display: none; }

/* Desktop nav active state — underline instead of pill */
.pn-navitem { background: transparent !important; border-color: transparent !important; border-radius: 0 !important; position: relative; }
.pn-navitem--active { color: var(--blue-700) !important; }
.pn-navitem--active::after {
  content: ''; position: absolute; left: 16px; right: 16px; bottom: 2px;
  height: 2px; background: var(--blue-600); border-radius: 2px;
}
@media (max-width: 760px) {
  .pn-nav-links, .pn-nav-cta, .pn-nav-spacer { display: none !important; }
  .pn-burger {
    display: inline-flex; align-items: center; justify-content: center;
    margin-left: auto; flex: 0 0 auto; width: 44px; height: 44px;
    border-radius: var(--radius-md); background: var(--white);
    border: 1px solid var(--border-strong); color: var(--ink-800);
    cursor: pointer; line-height: 0; transition: background .15s ease, border-color .15s ease;
  }
  .pn-burger:hover { background: var(--surface-muted); border-color: var(--ink-400); }
  .pn-mobile-menu {
    display: flex; flex-direction: column; gap: 4px;
    padding: 10px 20px 18px; border-top: 1px solid var(--border);
    background: rgba(255,255,255,0.98);
  }
  .pn-mobile-link {
    padding: 13px 14px; border-radius: var(--radius-md);
    font-size: 16px; font-weight: 600; color: var(--ink-700);
  }
  .pn-mobile-link.is-active { background: var(--blue-50); color: var(--blue-700); }
  .pn-mobile-menu > *:last-child { margin-top: 10px; }
}

/* Section rhythm — more generous, Barc-style breathing room */
.pn-section { padding: 100px 0; }
.pn-section--tight { padding: 72px 0; }
.pn-muted { background: var(--surface-muted); }

/* Headlines */
.pn-h1 { font-family: var(--font-display); font-weight: 800; line-height: 1.02; letter-spacing: -.025em; color: var(--ink-900); margin: 0; text-wrap: balance; }
.pn-h2 { font-family: var(--font-display); font-weight: 800; line-height: 1.06; letter-spacing: -.02em; color: var(--ink-900); margin: 0; text-wrap: balance; }
.pn-sub { font-size: 19px; line-height: 1.5; color: var(--ink-500); margin: 0; text-wrap: pretty; }

/* Scroll reveal.
   IMPORTANT: the visible state is the BASE state — content is fully opaque and
   only carries a small translateY offset that animates away when revealed.
   No opacity hiding: this guarantees content is never blank even where
   transition/animation clocks are frozen (e.g. a backgrounded preview iframe).
   Real, focused browsers still get the gentle upward motion. */
.reveal { transform: translateY(14px); transition: transform .55s cubic-bezier(.22,.61,.36,1); }
.reveal.is-visible { transform: none; }
.reveal-d1 { transition-delay: .05s; }
.reveal-d2 { transition-delay: .1s; }
.reveal-d3 { transition-delay: .15s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { transform: none !important; transition: none !important; }
}

/* ── Scroll motion (only active when motion.js adds .pn-motion) ─────────── */
/* Reveal upgraded to fade + rise. Base .reveal (above) stays translate-only
   so reduced-motion / no-JS never hides content. */
.pn-motion .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1); }
.pn-motion .reveal.is-visible { opacity: 1; transform: none; }

[data-pn-parallax-bg] { will-change: background-position; }

/* Pinned "Get it right" steps */
.pn-pin { position: relative; padding-top: clamp(48px, 7vh, 96px); padding-bottom: clamp(48px, 7vh, 96px); }
.pn-motion .pn-pin { height: 300vh; }
.pn-motion .pn-pin__sticky { position: sticky; top: 0; min-height: 100vh; display: flex; align-items: center; }
.pn-pin__inner { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 56px; align-items: center; width: 100%; }
.pn-pin__media .pn-shot img { transition: transform .15s linear; }
.pn-motion .pn-pin__media .pn-shot img { transform: scale(calc(1 + var(--pin-p, 0) * 0.06)); }
.pn-pin__steps { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.pn-pin__step { display: flex; gap: 14px; align-items: flex-start; padding: 15px 16px; border-radius: var(--radius-xl); border: 1px solid transparent; transition: opacity .45s ease, transform .45s ease, background .45s ease, border-color .45s ease; }
.pn-motion .pn-pin__step:not(.is-on):not(.is-past) { opacity: .4; }
.pn-motion .pn-pin__step.is-past { opacity: .62; }
.pn-pin__step.is-on { background: var(--blue-50); border-color: var(--border-blue); transform: translateX(4px); }
@media (max-width: 860px) {
  .pn-motion .pn-pin { height: auto !important; }
  .pn-motion .pn-pin__sticky { position: static !important; min-height: 0 !important; display: block; }
  .pn-pin__inner { grid-template-columns: 1fr; gap: 36px; }
  .pn-motion .pn-pin__media .pn-shot img { transform: none !important; }
  .pn-motion .pn-pin__step { opacity: 1 !important; transform: none !important; }
}

/* Footer link columns */
.pn-foot-link { color: var(--text-on-dark-muted); font-size: 15px; transition: color .15s ease; }
.pn-foot-link:hover { color: #fff; }

/* ── Permit-journey timeline ─────────────────────────────── */
.pn-timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.pn-timeline-step { text-align: center; padding: 0 8px; }
.pn-timeline-rail { position: relative; height: 52px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.pn-timeline-dot { width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-primary); position: relative; z-index: 2; }
.pn-timeline-line { position: absolute; top: 50%; height: 2px; background: var(--border-blue); z-index: 1; }
.pn-timeline-line--l { right: 50%; left: -50%; }
.pn-timeline-line--r { left: 50%; right: -50%; }
.pn-timeline-num { font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: .12em; color: var(--blue-500); }
.pn-timeline-label { font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--ink-900); margin: 4px 0 6px; }
.pn-timeline-desc { font-size: 14px; line-height: 1.45; color: var(--ink-500); }

/* ── Comparison chart ────────────────────────────────────── */
/* ── Old-way vs Permit Nav — two-card contrast ───────────── */
.pn-versus { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 940px; margin: 0 auto; align-items: stretch; }
.pn-versus-card { position: relative; border-radius: var(--radius-2xl); padding: 30px 30px 28px; border: 1px solid var(--border); }
.pn-versus-card--old { background: var(--surface-muted); }
.pn-versus-card--new { background: var(--white); border-color: var(--border-blue); box-shadow: var(--shadow-lg); }
.pn-versus-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.pn-versus-badge { width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; background: var(--amber-100); color: var(--amber-600); }
.pn-versus-badge--new { background: var(--blue-600); color: #fff; box-shadow: var(--shadow-primary); }
.pn-versus-title { font-family: var(--font-display); font-weight: 800; font-size: 21px; color: var(--ink-900); line-height: 1.1; }
.pn-versus-sub { font-size: 13.5px; color: var(--ink-500); margin-top: 3px; }
.pn-versus-rec { position: absolute; top: 18px; right: 18px; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--blue-600); color: #fff; padding: 5px 11px; border-radius: var(--radius-full); box-shadow: var(--shadow-primary); }
.pn-versus-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.pn-versus-list li { display: flex; gap: 14px; align-items: center; font-size: 16px; line-height: 1.4; }
.pn-versus-card--old .pn-versus-list li { color: var(--ink-500); }
.pn-versus-card--new .pn-versus-list li { color: var(--ink-900); font-weight: 600; }
.pn-versus-ic { flex: 0 0 auto; width: 38px; height: 38px; border-radius: var(--radius-md); display: inline-flex; align-items: center; justify-content: center; }
.pn-versus-ic--old { background: var(--amber-100); color: var(--amber-600); }
.pn-versus-ic--new { background: var(--blue-50); color: var(--blue-600); }
.pn-cmp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 880px; margin: 96px auto 20px; }
.pn-cmp-stat { text-align: center; padding: 6px 16px; }
.pn-cmp-stat:not(:first-child) { border-left: 1px solid var(--border); }
.pn-cmp-stat__big { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3vw, 36px); color: var(--blue-700); letter-spacing: -.02em; line-height: 1; }
.pn-cmp-stat__label { font-size: 13.5px; color: var(--ink-500); line-height: 1.45; margin: 9px auto 0; max-width: 210px; }
@media (max-width: 700px) {
  .pn-cmp-stats { grid-template-columns: 1fr; gap: 24px; }
  .pn-cmp-stat:not(:first-child) { border-left: none; }
}

/* ── Split editorial float-stat chip ─────────────────────── */
.pn-float-stat { position: absolute; right: -18px; bottom: -18px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: 16px 20px; max-width: 210px; }
.pn-float-stat--left { left: -18px; right: auto; }

/* ── Full-bleed image band (audiences) ───────────────────── */
.pn-band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pn-band-tile { position: relative; min-height: 420px; border-radius: var(--radius-2xl); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 32px; color: #fff; }
.pn-band-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.pn-band-tile .pn-band-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(12,15,22,0.15) 0%, rgba(12,15,22,0.82) 100%); }
.pn-band-tile > *:not(img):not(.pn-band-scrim) { position: relative; z-index: 2; }

/* Responsive */
@media (max-width: 900px) {
  .pn-grid-2 { grid-template-columns: 1fr !important; }
  .pn-grid-3 { grid-template-columns: 1fr !important; }
  .pn-grid-4 { grid-template-columns: 1fr 1fr !important; }
  .pn-hero-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
  .pn-split { grid-template-columns: 1fr !important; gap: 36px !important; }
  .pn-split .reveal { order: unset !important; }
  .pn-nav-links { display: none !important; }
  .pn-timeline { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .pn-timeline-line { display: none; }
  .pn-band-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .pn-container { padding-left: 20px; padding-right: 20px; }
  .pn-grid-4 { grid-template-columns: 1fr !important; }
  .pn-timeline { grid-template-columns: 1fr; }
  .pn-versus { grid-template-columns: 1fr; }
  .pn-float-stat, .pn-float-stat--left { left: auto; right: 12px; bottom: -14px; }
}

/* ════════════════════════════════════════════════════════════
   WARM PALETTE SHIFT
   Blue stays the primary brand colour; we only warm the neutral
   surfaces, borders and the muted band so the site reads friendlier
   and more community-minded. Overrides DS tokens (this file loads
   after the design-system stylesheet).
   ════════════════════════════════════════════════════════════ */
:root {
  /* Barc direction: white base with the faintest warm near-white for bands,
     so the page reads clean and bright while keeping a touch of warmth. */
  --surface-muted: #F7F6F3;   /* near-white, barely warm */
  --surface-warm:  #FBFAF8;   /* lightest, for hero/coverage bands */
  --border:        #ECEAE4;   /* soft neutral hairline */
  --border-strong: #DEDBD3;
  --sand-100:      #F6F4EF;
  --sand-200:      #E9E6DE;
  --ink-warm-500:  #6A6F69;   /* neutral muted text */
}
body { background: var(--white); }

/* ════════════════════════════════════════════════════════════
   ACCENT TRY: BLUE → GREEN
   Remap the brand-blue token scale to a cohesive emerald so the
   whole site's accent (buttons, eyebrows, links, icon tiles, focus
   rings, primary shadow) shifts to green without touching markup.
   Loaded after the design-system tokens, so these win.
   ════════════════════════════════════════════════════════════ */
:root {
  /* Anchored to the product design system (packages/ui) — the source of
     truth. --blue-600 = its --accent-bold/--button-primary emerald (#007a55);
     --blue-700 = its deeper emerald (#006045, dark-mode primary) for hover/
     pressed. Steps 50–500 + 800 are marketing-only tints with no product
     equivalent, harmonized around that emerald. */
  --blue-50:  #E6F5EE;
  --blue-100: #C6EAD8;
  --blue-200: #97D8BB;
  --blue-300: #5FC098;
  --blue-400: #22A377;
  --blue-500: #0A8A62;
  --blue-600: #007A55;   /* primary brand emerald — DS --button-primary */
  --blue-700: #006045;   /* hover / pressed + button sweep — DS dark primary */
  --blue-800: #004D37;   /* deepest */
  --border-blue: #BFE6D3;
  --focus-ring: rgba(0,122,85,0.32);
  --shadow-primary: 0 8px 20px rgba(0,122,85,0.28);
  /* Type — Outfit (clean geometric grotesque, BDO-Grotesk stand-in) */
  --font-display: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
  --font-sans: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
}

/* Sweep-pill primary CTA: deep green base, forest fill sweeps in on hover */
.pn-sweep {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-full) !important;
}
.pn-sweep::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: var(--blue-700);
  transform: translateX(-101%);
  transition: transform .42s cubic-bezier(.45,0,.2,1);
}
.pn-sweep:hover::before { transform: translateX(0); }
.pn-sweep > span { position: relative; z-index: 1; }
.pn-sweep svg { transition: transform .35s cubic-bezier(.45,0,.2,1); }
.pn-sweep:hover svg { transform: translateX(3px); }

/* ── Full-bleed hero (image background, text overlaid) ───── */
.pn-hero-full {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(88vh, 800px);
  padding: 104px 0 116px;
  background-size: cover;
  background-position: center 36%;
  background-repeat: no-repeat;
  overflow: hidden;
}
.pn-hero-full::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,11,18,0.18) 0%, rgba(8,11,18,0) 26%);
}
.pn-hero-full .pn-container { position: relative; z-index: 1; width: 100%; }
.pn-hero-full__inner { max-width: 620px; }
.pn-hero-eyebrow { color: var(--blue-300); }
.pn-hero-full .pn-h1 { color: #fff; text-wrap: balance; }
.pn-hero-sub { color: rgba(255,255,255,0.86); }
.pn-hero-chip { color: rgba(255,255,255,0.78); }
.pn-hero-chip .pn-hero-chip-i { color: var(--blue-300); }
@media (max-width: 760px) {
  .pn-hero-full { min-height: 0; padding: 64px 0 72px; background-position: center 30%; }
  .pn-hero-full::before {
    background:
      linear-gradient(180deg, rgba(8,11,18,0.62) 0%, rgba(8,11,18,0.80) 100%);
  }
}

/* ── Site-wide beta modal ────────────────────────────────── */
.pn-modal-scrim {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(16, 14, 10, 0.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; animation: pn-fade .22s ease forwards;
}
.pn-modal {
  position: relative; width: 100%; max-width: 480px;
  background: var(--white); border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px -20px rgba(16,14,10,0.5);
  padding: 26px 32px 24px; max-height: calc(100vh - 48px); overflow-y: auto;
  transform: translateY(14px) scale(.985); opacity: 0;
  animation: pn-pop .26s cubic-bezier(.22,.61,.36,1) .02s forwards;
}
.pn-modal-close {
  position: absolute; top: 16px; right: 16px; width: 36px; height: 36px;
  border-radius: 50%; border: 1px solid var(--border); background: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-400); cursor: pointer; transition: all .15s ease;
}
.pn-modal-close:hover { color: var(--ink-800); background: var(--surface-muted); border-color: var(--border-strong); }
.pn-field-label {
  display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-700);
  margin: 0 0 5px; letter-spacing: .005em;
}
.pn-select {
  width: 100%; height: 48px; padding: 0 38px 0 14px; appearance: none;
  background: var(--white); border: 1px solid var(--border-strong);
  border-radius: var(--radius-md); box-shadow: var(--shadow-xs);
  font-family: var(--font-sans); font-size: 16px; color: var(--ink-800);
  cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238A929E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}
.pn-select:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--focus-ring); }
.pn-role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pn-role-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 12px; cursor: pointer; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600; font-family: var(--font-sans);
  background: var(--white); color: var(--ink-500); border: 1px solid var(--border-strong);
  transition: all .15s ease;
}
.pn-role-btn.is-sel { background: var(--blue-600); color: #fff; border-color: var(--blue-600); box-shadow: var(--shadow-primary); }
@keyframes pn-fade { to { opacity: 1; } }
@keyframes pn-pop { to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .pn-modal-scrim, .pn-modal { animation: none; opacity: 1; transform: none; }
}

/* ── Thank-you toast (after beta submit) ─────────────────── */
.pn-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  z-index: 300; display: flex; align-items: flex-start; gap: 13px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-xl); box-shadow: 0 18px 50px -12px rgba(16,14,10,0.4);
  padding: 15px 16px; max-width: 400px; width: calc(100vw - 40px);
  animation: pn-toast-in .34s cubic-bezier(.22,.61,.36,1);
}
.pn-toast__icon { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--green-100); color: var(--green-600); display: inline-flex; align-items: center; justify-content: center; }
.pn-toast__body { flex: 1 1 auto; }
.pn-toast__title { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--ink-900); line-height: 1.25; }
.pn-toast__sub { font-size: 13px; color: var(--ink-500); margin-top: 2px; line-height: 1.4; }
.pn-toast__close { flex: 0 0 auto; background: none; border: none; color: var(--ink-400); cursor: pointer; padding: 2px; border-radius: 6px; line-height: 0; }
.pn-toast__close:hover { color: var(--ink-700); }
@keyframes pn-toast-in { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .pn-toast { animation: none; } }

/* ── Coverage section ────────────────────────────────────── */
.pn-coverage { background: var(--surface-warm); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pn-muni-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 8px;
}
.pn-muni-chip {
  display: flex; align-items: center; gap: 13px; padding: 16px 16px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-xs);
  transition: transform .2s ease, box-shadow .2s ease;
}
.pn-muni-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pn-muni-mark {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: -.01em;
  background: linear-gradient(150deg, var(--blue-600), var(--blue-800)); color: #fff;
  box-shadow: var(--shadow-primary);
}
.pn-muni-name { font-size: 14px; font-weight: 700; color: var(--ink-900); line-height: 1.22; }
.pn-muni-live { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-warm-500); margin-top: 4px; }
.pn-muni-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); flex: 0 0 auto; }

/* Supported-municipality logo row */
.pn-support-head { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-warm-500); margin-bottom: 24px; }
.pn-logo-row { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; align-items: stretch; }
.pn-logo-slot {
  display: flex; align-items: center; justify-content: center;
  width: 168px; height: 96px; padding: 18px; box-sizing: border-box;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-xs);
}
.pn-logo-slot img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.pn-support-more { font-size: 14px; color: var(--ink-warm-500); margin-top: 24px; font-style: italic; }
@media (max-width: 600px) { .pn-logo-slot { width: 44%; height: 84px; } }

/* ── Legal / long-form document page ─────────────────────── */
.pn-legal { max-width: 760px; margin: 0 auto; }
.pn-legal__sec { margin-top: 38px; }
.pn-legal__sec:first-of-type { margin-top: 0; }
.pn-legal h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: 21px; color: var(--ink-900); letter-spacing: -.01em;
  margin: 0 0 12px; line-height: 1.25;
}
.pn-legal p { font-size: 16px; line-height: 1.62; color: var(--ink-600); margin: 0 0 14px; }
.pn-legal p:last-child { margin-bottom: 0; }
.pn-legal ul { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 9px; }
.pn-legal li {
  position: relative; padding-left: 26px;
  font-size: 16px; line-height: 1.55; color: var(--ink-600);
}
.pn-legal li::before {
  content: ""; position: absolute; left: 4px; top: 9px;
  width: 8px; height: 8px; border-radius: 2px; background: var(--blue-500);
}
.pn-legal a { color: var(--blue-700); font-weight: 600; }

/* ── Our Story — editorial essay ─────────────────────────── */
.pn-essay { max-width: 720px; margin: 0 auto; }
.pn-essay__lead { font-size: 21px; line-height: 1.62; color: var(--ink-700); font-weight: 500; margin: 0; }
.pn-essay__chapter { margin-top: 58px; }
.pn-essay__chapter h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(25px, 3vw, 33px); color: var(--ink-900);
  letter-spacing: -.02em; line-height: 1.18; margin: 0 0 18px;
}
.pn-essay__chapter p { font-size: 18px; line-height: 1.7; color: var(--ink-600); margin: 0 0 18px; }
.pn-essay__chapter h2 .pn-hl { color: var(--blue-600); }
.pn-essay__chapter p:last-child { margin-bottom: 0; }
.pn-essay em { font-style: italic; color: var(--ink-900); }
.pn-pullquote { margin: 46px 0; padding: 4px 0 4px 26px; border-left: 4px solid var(--blue-500); }
.pn-pullquote p {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(22px, 2.7vw, 29px); line-height: 1.3;
  color: var(--ink-900); letter-spacing: -.01em; margin: 0;
}
.pn-essay-figure { margin: 50px 0; }
.pn-essay-figure img { width: 100%; height: auto; display: block; border-radius: var(--radius-2xl); box-shadow: var(--shadow-lg); }
.pn-essay-figure figcaption { font-size: 13px; color: var(--ink-400); margin-top: 13px; text-align: center; }
.pn-essay-figure--wide { width: min(960px, 92vw); margin-left: calc(50% - min(480px, 46vw)); }

/* ── Our Story — team ────────────────────────────────────── */
/* Inline bios woven through the narrative essay */
.pn-bio {
  display: flex; gap: 24px; align-items: center;
  background: var(--surface-warm); border: 1px solid var(--border);
  border-radius: var(--radius-2xl); padding: 24px 28px; margin: 6px 0;
}
.pn-bio--flip { flex-direction: row-reverse; }
.pn-bio__photo { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; box-shadow: var(--shadow-sm); }
.pn-bio__sil {
  width: 100px; height: 100px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--sand-200); color: var(--ink-warm-500);
}
.pn-bio__name { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--ink-900); line-height: 1.1; }
.pn-bio__role { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--blue-600); margin: 5px 0 9px; }
.pn-bio__text { font-size: 15px; line-height: 1.5; color: var(--ink-600); margin: 0; }
.pn-bio--noimg { justify-content: flex-start; }
.pn-team-block {
  width: 100vw; margin-left: calc(50% - 50vw); margin-top: 48px; margin-bottom: 48px;
  background: var(--sand-100); padding: 64px 32px;
}
.pn-team-block__head { text-align: center; margin: 0 auto 36px; max-width: 1040px; }
.pn-team-block .pn-team-grid { max-width: 1040px; margin-left: auto; margin-right: auto; }
.pn-team-block__list { display: flex; flex-direction: column; gap: 16px; }
.pn-team-block__list .pn-bio { margin: 0; }
.pn-team-card--noimg { display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 1040px) {
  .pn-team-block { padding: 48px 24px; }
}
@media (max-width: 560px) {
  .pn-bio, .pn-bio--flip { flex-direction: column; text-align: center; gap: 16px; padding: 26px 22px; }
  .pn-bio--noimg { text-align: center; }
}
.pn-team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Vision — 50/50 split, text left / image right */
.pn-vision-split {
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
  background: var(--white);
}
.pn-vision-split__text {
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px clamp(32px, 6vw, 88px);
  background: var(--surface-warm);
}
.pn-vision-split__media { position: relative; min-height: 420px; }
.pn-vision-split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 860px) {
  .pn-vision-split { grid-template-columns: 1fr; }
  .pn-vision-split__media { min-height: 280px; }
}

/* Our Story — team bios 2x2 */
.pn-bio2-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  max-width: 860px; margin: 0 auto;
}
/* Banner-cover card: cover image, avatar overlapping, centered identity */
.pn-bio2 {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: none; overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pn-bio2:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.pn-bio2__banner {
  position: relative; height: 132px; background: var(--surface-muted);
}
.pn-bio2__banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pn-bio2__banner::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,11,18,0) 40%, rgba(8,11,18,0.28) 100%);
}
.pn-bio2__id { text-align: center; padding: 0 28px; margin-top: -52px; position: relative; z-index: 1; }
/* Circle portrait, overlapping the banner */
.pn-bio2__photo, .pn-bio2__sil {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 12px; display: block; border: 4px solid var(--white);
  box-shadow: var(--shadow-sm);
}
.pn-bio2__sil {
  display: flex; align-items: center; justify-content: center;
  background: var(--sand-200); color: var(--ink-warm-500);
}
.pn-bio2__name { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--ink-900); line-height: 1.15; }
.pn-bio2__role { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--blue-600); margin-top: 5px; }
.pn-bio2__body { display: flex; flex-direction: column; flex: 1; padding: 16px 28px 26px; text-align: center; }
.pn-bio2__text { font-size: 15px; line-height: 1.58; color: var(--ink-600); margin: 0; text-wrap: pretty; }
.pn-bio2__logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px; margin-top: auto; padding-top: 20px; }
/* No tile background — logos sit on white, normalized to one even height */
.pn-logo-chip {
  display: inline-flex; align-items: center; justify-content: center;
}
.pn-logo-chip img { height: 22px; max-width: 96px; width: auto; display: block; object-fit: contain; }
.pn-logo-chip--big img { height: 34px; max-width: 140px; }
@media (max-width: 920px) {
  .pn-bio2-grid { grid-template-columns: 1fr; max-width: 460px; }
}
.pn-team-card { text-align: center; padding: 4px 6px; }
.pn-team-photo, .pn-team-silhouette {
  width: 124px; height: 124px; border-radius: 50%; margin: 0 auto 18px;
  box-shadow: var(--shadow-md); display: block;
}
.pn-team-photo { object-fit: cover; border: 3px solid #fff; background: var(--surface-muted); }
.pn-team-silhouette {
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
  border: 3px solid #fff; box-shadow: var(--shadow-md); color: var(--ink-700);
}
.pn-team-name { font-family: var(--font-display); font-weight: 800; font-size: 21px; color: var(--ink-900); line-height: 1.1; }
.pn-team-role { font-size: 13px; color: var(--blue-700); font-weight: 700; letter-spacing: .01em; margin: 5px 0 11px; }
.pn-team-bio { font-size: 14px; line-height: 1.52; color: var(--ink-500); margin: 0 auto; max-width: 235px; }
@media (max-width: 920px) {
  .pn-team-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; max-width: 540px; margin: 0 auto; }
}
@media (max-width: 480px) {
  .pn-team-grid { grid-template-columns: 1fr; }
  .pn-essay-figure--wide { width: 100%; margin-left: 0; }
}

/* ── Audiences — who we serve (dark, centered, iconographic) ─ */
.pn-aud { background: var(--surface-dark); }
.pn-aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.pn-aud-card { text-align: center; display: flex; flex-direction: column; align-items: center; }
.pn-aud-ic {
  width: 84px; height: 84px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--blue-400); margin-bottom: 22px;
}
.pn-aud-ic svg { width: 56px; height: 56px; stroke-width: 1.4; }
.pn-aud-name { font-family: var(--font-display); font-weight: 800; font-size: 24px; color: #fff; line-height: 1.12; }
.pn-aud-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-400); margin: 12px 0 10px; }
.pn-aud-blurb { font-size: 15.5px; line-height: 1.6; color: var(--text-on-dark-muted); margin: 0 auto; max-width: 300px; }
@media (max-width: 860px) {
  .pn-aud-grid { grid-template-columns: 1fr; gap: 44px; max-width: 420px; margin: 0 auto; }
}

/* ── Our Story — product carousel ────────────────────────── */
.pn-carousel { position: relative; }
.pn-carousel__stage { display: flex; align-items: center; gap: 16px; }
.pn-lightbox {
  position: fixed; inset: 0; z-index: 1000; background: rgba(17, 22, 28, 0.88);
  backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center;
  gap: clamp(8px, 2vw, 28px); padding: clamp(16px, 4vw, 56px);
  animation: pn-lightbox-in 0.18s ease-out;
}
@keyframes pn-lightbox-in { from { opacity: 0; } to { opacity: 1; } }
.pn-lightbox__figure {
  margin: 0; max-width: min(1100px, 92vw); display: flex; flex-direction: column;
  align-items: center; gap: 16px;
}
.pn-lightbox__figure img {
  display: block; max-width: 100%; max-height: 78vh; object-fit: contain;
  border-radius: var(--radius-lg); box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.pn-lightbox__figure figcaption {
  color: rgba(255,255,255,0.86); font-size: 15px; text-align: center; max-width: 60ch;
}
.pn-lightbox__close {
  position: absolute; top: clamp(12px, 3vw, 28px); right: clamp(12px, 3vw, 28px);
  width: 44px; height: 44px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255,255,255,0.12); color: #fff; display: inline-flex;
  align-items: center; justify-content: center; transition: background 0.15s;
}
.pn-lightbox__close:hover { background: rgba(255,255,255,0.24); }
.pn-lightbox__arrow {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255,255,255,0.12); color: #fff; display: inline-flex;
  align-items: center; justify-content: center; transition: background 0.15s;
}
.pn-lightbox__arrow:hover { background: rgba(255,255,255,0.24); }
.pn-lightbox__dots {
  position: absolute; bottom: clamp(16px, 4vw, 40px); left: 0; right: 0;
  display: flex; justify-content: center; gap: 10px;
}
.pn-carousel__frame {
  position: relative; flex: 1 1 auto; min-width: 0; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-2xl); box-shadow: var(--shadow-lg); padding: 14px;
}
.pn-carousel__viewport {
  position: relative; aspect-ratio: 16 / 9.4; border-radius: var(--radius-lg);
  overflow: hidden; background: var(--white);
}
.pn-carousel__slide {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .6s ease; pointer-events: none;
}
.pn-carousel__slide.is-active { opacity: 1; pointer-events: auto; }
.pn-carousel__slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pn-carousel__arrow {
  flex: 0 0 auto;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--border-strong); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  color: var(--ink-700); transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.pn-carousel__arrow:hover { background: var(--blue-50); color: var(--blue-700); border-color: var(--blue-300); }
.pn-carousel__cap { text-align: center; font-size: 13.5px; color: var(--ink-400); margin-top: 16px; min-height: 18px; }
.pn-carousel__controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 12px; }
.pn-carousel__arrow--m { display: none; width: 38px; height: 38px; }
.pn-carousel__dots { display: flex; gap: 8px; justify-content: center; }
.pn-carousel__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong);
  border: none; cursor: pointer; padding: 0; transition: width .2s ease, background .2s ease, border-radius .2s ease;
}
.pn-carousel__dot.is-active { background: var(--blue-600); width: 22px; border-radius: 5px; }
@media (max-width: 560px) {
  .pn-carousel__stage { gap: 0; }
  .pn-carousel__stage > .pn-carousel__arrow { display: none; }
  .pn-carousel__arrow--m { display: inline-flex; }
  .pn-carousel__cap { font-size: 13px; padding: 0 4px; }
  /* Most product shots are near-square/portrait; use a taller frame on mobile
     so they fill it. The one landscape shot letterboxes on white (contain). */
  .pn-carousel__viewport { aspect-ratio: 1 / 1.05; }
}

/* Real label-free region map (Leaflet + CartoDB no-labels tiles) */
.pn-map-art { position: relative; width: 100%; aspect-ratio: 1.35 / 1; }
.pn-map-art svg { width: 100%; height: 100%; display: block; }
.pn-map-canvas {
  width: 100%; aspect-ratio: 1.3 / 1;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden; background: #E4ECF1; z-index: 0;
}
.pn-map-canvas.leaflet-container { font-family: var(--font-sans); background: #E4ECF1; }
.pn-map-canvas .leaflet-tile { filter: saturate(0.92); }
@media (max-width: 560px) { .pn-map-canvas { aspect-ratio: 1.1 / 1; } }

/* ── Product screenshots ─────────────────────────────────── */
.pn-shot {
  border-radius: var(--radius-2xl); border: 1px solid var(--border);
  background: var(--white); box-shadow: var(--shadow-lg); padding: 12px; overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.pn-shot:hover { box-shadow: 0 24px 56px rgba(17,22,28,0.16); transform: translateY(-2px); }
.pn-shot img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); transition: opacity 0.15s; }
.pn-shot:hover img { opacity: 0.94; }
.pn-shot--tall { display: flex; justify-content: center; }
.pn-shot--tall img { width: auto; max-width: 100%; max-height: 560px; }
.pn-shot-cap { font-size: 13px; color: var(--ink-400); margin: 14px 2px 0; text-align: center; line-height: 1.45; }

/* ── Data-engine source cards ────────────────────────────── */
.pn-source-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pn-source {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 22px 20px 20px; box-shadow: var(--shadow-xs);
}
.pn-source-num { font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: .12em; color: var(--blue-500); margin-bottom: 14px; }
.pn-source-t { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--ink-900); line-height: 1.18; margin: 12px 0 7px; }
.pn-source-s { font-size: 13.5px; line-height: 1.5; color: var(--ink-500); margin: 0; }

@media (max-width: 900px) {
  .pn-muni-grid { grid-template-columns: 1fr 1fr; }
  .pn-source-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .pn-muni-grid { grid-template-columns: 1fr; }
  .pn-source-grid { grid-template-columns: 1fr; }
  .pn-role-grid { grid-template-columns: 1fr 1fr; }
  .pn-modal { padding: 26px 22px 24px; }
}

/* ════════════════════════════════════════════════════════════
   BARC CARD POLISH — softer corners, gentle low shadows and a
   subtle hover lift across the recurring card-like elements, so
   the whole site picks up the clean, airy Barc feel.
   ════════════════════════════════════════════════════════════ */
.pn-source,
.pn-versus-card,
.pn-carousel__frame,
.pn-shot,
.pn-logo-slot,
.pn-muni-chip {
  border-radius: var(--radius-2xl);
}
.pn-source {
  padding: 26px 24px 24px;
  box-shadow: 0 1px 2px rgba(20,26,33,.04), 0 18px 40px -30px rgba(20,26,33,.30);
  transition: transform .25s ease, box-shadow .25s ease, border-color .15s ease;
}
.pn-source:hover {
  transform: translateY(-4px);
  box-shadow: 0 1px 2px rgba(20,26,33,.05), 0 26px 54px -28px rgba(20,26,33,.34);
  border-color: var(--border-strong);
}
.pn-versus-card--new { box-shadow: 0 1px 2px rgba(20,26,33,.04), 0 26px 54px -34px rgba(20,26,33,.36); }

/* Round the in-list feature/icon tiles toward Barc's softer squares */
.pn-versus-ic { border-radius: 12px; }

/* Eyebrows a touch softer in weight to suit Outfit */

