/* ==========================================================================
   PICK — pickglobal.org
   "Civic Blueprint" design system
   Navy #0F2F66 · Cream #FEFCDD · Rust #C1502E
   Green is used ONLY as a data colour (cleaned streets, progress) — never as
   brand chrome. The retired sage/trash-bag palette must not come back.
   ========================================================================== */

:root {
  /* Brand */
  --navy:        #0F2F66;
  --navy-deep:   #0A2049;
  --navy-mid:    #1B4290;
  --navy-line:   #214B8F;
  --cream:       #FEFCDD;
  --rust:        #C1502E;
  --rust-hover:  #A94227;

  /* Surfaces */
  --paper:       #FBF9F0;
  --paper-2:     #F4F1E4;
  --card:        #FFFFFF;

  /* Ink */
  --ink:         #0F2F66;
  --ink-70:      rgba(15,47,102,0.72);
  --ink-50:      rgba(15,47,102,0.55);
  --line:        rgba(15,47,102,0.14);
  --line-strong: rgba(15,47,102,0.22);

  /* Data colours (map + stats only) */
  --data-green:  #3E9B54;
  --data-amber:  #E0A32E;
  --data-red:    #C2402F;

  --radius:      16px;
  --radius-lg:   24px;
  --shadow:      0 1px 2px rgba(15,47,102,0.06), 0 8px 24px rgba(15,47,102,0.07);
  --shadow-lg:   0 24px 60px rgba(10,32,73,0.18);
  --maxw:        1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* height:auto is load-bearing. Every screenshot carries width/height attributes
   (they reserve space and stop layout shift), and the browser treats that height
   as a presentational hint. Without this rule, `width:100%` scales the width while
   the height stays pinned at 1168px — the phone shots render ~2.3x too tall. */
img { max-width: 100%; height: auto; display: block; }

a { color: var(--rust); text-decoration: none; }
a:hover { color: var(--rust-hover); text-decoration: underline; }

h1, h2, h3, h4 { letter-spacing: -0.022em; line-height: 1.12; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(34px, 5.4vw, 58px); }
h2 { font-size: clamp(27px, 3.4vw, 38px); }
h3 { font-size: 21px; line-height: 1.25; }
p  { margin: 0 0 1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; }

/* ---------- Blueprint texture ---------------------------------------- */
.blueprint {
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  color: var(--cream);
}
.blueprint h1, .blueprint h2, .blueprint h3 { color: var(--cream); }
.blueprint p { color: rgba(254,252,221,0.82); }
.blueprint a { color: #FFC9AE; }

/* ---------- Header ---------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251,249,240,0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  max-width: var(--maxw); margin: 0 auto; padding: 11px 22px;
  display: flex; align-items: center; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand b { font-size: 19px; font-weight: 800; letter-spacing: 0.02em; }
.brand small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-50); margin-top: -3px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink-70); font-size: 15px; font-weight: 600;
  padding: 8px 12px; border-radius: 10px; text-decoration: none;
}
.nav a:hover { color: var(--navy); background: rgba(15,47,102,0.06); text-decoration: none; }
.nav a.active { color: var(--navy); background: rgba(15,47,102,0.08); }

.nav-toggle {
  margin-left: auto; display: none; border: 1px solid var(--line-strong);
  background: transparent; color: var(--navy); border-radius: 10px;
  padding: 7px 11px; font-size: 15px; font-weight: 700; cursor: pointer;
}

/* ---------- Buttons --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 16px;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: var(--cream); box-shadow: 0 6px 18px rgba(15,47,102,.22); }
.btn-primary:hover { background: var(--navy-mid); color: var(--cream); }
.btn-rust { background: var(--rust); color: #fff; box-shadow: 0 6px 18px rgba(193,80,46,.28); }
.btn-rust:hover { background: var(--rust-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(15,47,102,0.06); color: var(--navy); }
.btn-cream, .blueprint a.btn-cream { background: var(--cream); color: var(--navy); }
.btn-cream:hover, .blueprint a.btn-cream:hover { background: #fff; color: var(--navy); }
.btn-outline-cream, .blueprint a.btn-outline-cream { background: transparent; color: var(--cream); border-color: rgba(254,252,221,.45); }
.btn-outline-cream:hover, .blueprint a.btn-outline-cream:hover { background: rgba(254,252,221,.12); color: var(--cream); }
.btn-sm { padding: 9px 16px; font-size: 14.5px; }
/* Buttons living inside .nav / .blueprint must beat the link-colour rules there. */
.nav a.btn-primary, .blueprint a.btn-primary { color: var(--cream); }
.nav a.btn-primary:hover, .blueprint a.btn-primary:hover { color: var(--cream); background: var(--navy-mid); }
.nav a.btn-ghost, .blueprint a.btn-ghost { color: var(--navy); }

/* ---------- Sections -------------------------------------------------- */
/* The site is a field report, not a slide deck. Keep consecutive sections
   close enough that the reader can see the argument carry forward. */
section { padding: 32px 0; }
section.tight { padding: 24px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-50); margin-bottom: 14px;
}
.blueprint .eyebrow { color: rgba(254,252,221,0.62); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--rust); border-radius: 2px; }
.field-stamp {
  display: inline-flex; align-items: center; max-width: 100%; margin-bottom: 18px;
  border: 1px solid rgba(254,252,221,.56); border-radius: 3px; padding: 6px 9px 5px;
  color: var(--cream); font-size: 11px; font-weight: 800; letter-spacing: .12em;
  line-height: 1.2; text-transform: uppercase;
  transform: rotate(-1deg); box-shadow: 3px 3px 0 rgba(193,80,46,.66);
}
.lede { font-size: 19px; color: var(--ink-70); max-width: 62ch; }
.blueprint .lede { color: rgba(254,252,221,0.8); }
.section-head { max-width: 68ch; margin-bottom: 18px; }

/* ---------- Hero ------------------------------------------------------ */
.hero { padding: 30px 0 28px; overflow: hidden; }
.hero .grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; align-items: center; }
.hero h1 { margin-bottom: 12px; }
.hero .lede { font-size: 20px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 10px; }
.hero-note { font-size: 14px; color: rgba(254,252,221,0.62); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }

/* Phone frame */
.phone {
  position: relative; width: 100%; max-width: 288px; margin: 0 auto;
  border-radius: 44px; padding: 11px;
  background: linear-gradient(160deg, #16336a, #071a3d);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(254,252,221,.16);
}
.phone::before {
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 78px; height: 20px; background: #05132c; border-radius: 12px; z-index: 2;
}
.phone img { border-radius: 34px; width: 100%; }
.phone-stack { position: relative; }
.phone-stack .phone.back {
  position: absolute; right: -14%; top: 12%; width: 62%; max-width: 190px;
  transform: rotate(6deg); opacity: .96; z-index: -1;
}

.float-card {
  position: absolute; left: -26px; bottom: 46px; z-index: 3;
  background: var(--cream); color: var(--navy); border-radius: 14px;
  padding: 12px 16px; box-shadow: var(--shadow-lg); max-width: 210px;
}
.float-card .k { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-50); }
.float-card .v { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.float-card .s { font-size: 13px; color: var(--ink-70); line-height: 1.35; }

/* ---------- Live stat strip ------------------------------------------ */
.statstrip { border-top: 1px solid rgba(254,252,221,.16); padding-top: 14px; margin-top: 18px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat .num { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.stat .lbl { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(254,252,221,.6); margin-top: 8px; }
.stat.on-paper .num { color: var(--navy); }
.stat.on-paper .lbl { color: var(--ink-50); }

/* ---------- Steps ----------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 21px 22px; box-shadow: var(--shadow); overflow: hidden; }
.step .n {
  width: 34px; height: 34px; border-radius: 10px; background: var(--navy); color: var(--cream);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; margin-bottom: 14px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-70); font-size: 15.5px; }
.step .shot { margin: 18px -24px 0; }
.step .shot img { border-top-left-radius: 10px; border-top-right-radius: 10px;
  box-shadow: 0 -2px 0 var(--line); margin: 0 auto; width: 78%; }

/* ---------- Feature rows --------------------------------------------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.feature + .feature { margin-top: 28px; }
.feature.flip .fig { order: -1; }
.feature .fig .phone { max-width: 252px; }
.feature .phone-stack { position: relative; }
.feature .phone-stack .phone.back {
  position: absolute; left: -33%; top: 7%; width: 74%; max-width: 188px;
  transform: rotate(-7deg); z-index: -1;
}
.feature ul { margin: 18px 0 0; padding: 0; list-style: none; }
.feature ul li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--ink-70); }
.feature ul li::before {
  content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px;
  border-radius: 2px; background: var(--rust);
}
.blueprint .feature ul li { color: rgba(254,252,221,.82); }
/* the challenge mock uses .ranked inside a .feature — no rust bullets there */
.feature ul.ranked li { padding-left: 0; margin-bottom: 0; }
.feature ul.ranked li::before { display: none; }

/* ---------- Cards ----------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--ink-70); font-size: 15.5px; }
.blueprint .card { background: rgba(255,255,255,.055); border-color: rgba(254,252,221,.16); box-shadow: none; }
.blueprint .card p { color: rgba(254,252,221,.78); }

/* Honest / note callout */
.note {
  border-left: 3px solid var(--rust); background: rgba(193,80,46,.06);
  padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0;
}
.note strong { color: var(--navy); }
.blueprint .note { background: rgba(255,201,174,.09); }
.blueprint .note strong { color: var(--cream); }

/* ---------- FAQ ------------------------------------------------------- */
.faq { max-width: 820px; }
.faq details {
  border-bottom: 1px solid var(--line); padding: 18px 2px;
}
.faq summary {
  cursor: pointer; font-weight: 700; font-size: 17.5px; list-style: none;
  display: flex; align-items: flex-start; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; margin-left: auto; color: var(--rust); font-size: 22px; line-height: 1; font-weight: 700;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0 0; color: var(--ink-70); font-size: 16px; }

/* ---------- CTA band -------------------------------------------------- */
.ctaband { text-align: center; }
.ctaband .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* ---------- Legal / prose pages -------------------------------------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 22px; margin-top: 2em; }
.prose h3 { font-size: 18px; margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-70); }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.page-head { padding: 34px 0 30px; }
.page-head h1 { margin-bottom: 12px; }
.updated { font-size: 14px; color: rgba(254,252,221,.6); }

/* ---------- Footer ---------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: rgba(254,252,221,.72); padding: 40px 0 22px; }
.site-footer a { color: rgba(254,252,221,.72); text-decoration: none; }
.site-footer a:hover { color: var(--cream); text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 34px; }
.foot-brand .brand b { color: var(--cream); }
.foot-brand .brand small { color: rgba(254,252,221,.5); }
.foot-brand p { font-size: 14.5px; color: rgba(254,252,221,.6); margin-top: 14px; max-width: 34ch; }
.foot-col h4 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(254,252,221,.5); margin-bottom: 14px; font-weight: 800; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 9px; font-size: 15px; }
.foot-bottom {
  margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(254,252,221,.14);
  display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center;
  font-size: 13.5px; color: rgba(254,252,221,.5);
}
.foot-bottom .sep { margin-left: auto; }

/* ---------- Map page -------------------------------------------------- */
#map { height: 420px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.leaflet-container { background: var(--paper-2); font: inherit; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: var(--ink-50); margin-top: 12px; }
.map-legend i { width: 22px; height: 5px; border-radius: 3px; display: inline-block; margin-right: 7px; vertical-align: middle; }
.citygrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.citycard { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: .15s; }
.citycard:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(15,47,102,.12); color: var(--ink); text-decoration: none; }
.citycard .cname { font-weight: 800; font-size: 17px; }
.citycard .cbig { font-size: 24px; font-weight: 800; color: var(--navy); margin-top: 6px; letter-spacing: -.02em; }
.citycard .cbig span { font-size: 12.5px; font-weight: 700; color: var(--ink-50); }
.citycard .cmeta { font-size: 13.5px; color: var(--ink-50); margin-top: 4px; }
.ranked { list-style: none; margin: 0; padding: 0; }
.ranked li { display: flex; align-items: center; gap: 14px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.ranked li:last-child { border-bottom: none; }
.rank { width: 28px; height: 28px; border-radius: 9px; background: var(--paper-2); color: var(--navy);
  font-weight: 800; font-size: 13.5px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.rank.top { background: var(--navy); color: var(--cream); }
.ranked .pname { flex: 1; font-weight: 700; }
.ranked .pval { font-weight: 800; color: var(--navy); font-size: 15.5px; }
.ranked .pval span { font-size: 12.5px; font-weight: 600; color: var(--ink-50); }
.subtle { font-size: 14px; color: var(--ink-50); }
.tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--rust); background: rgba(193,80,46,.09); border-radius: 999px; padding: 5px 11px; }

/* ---------- Misc ------------------------------------------------------ */
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }
.center { text-align: center; }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--navy); color: var(--cream);
  padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- Responsive ------------------------------------------------ */
@media (max-width: 900px) {
  .hero .grid, .feature { grid-template-columns: 1fr; gap: 30px; }
  .feature.flip .fig { order: 0; }
  .steps, .cards, .cards.two { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .phone-stack .phone.back { display: none; }
  /* Below 900px the hero column narrows enough that the card's desktop
     bottom-left overhang lands ON TOP of the phone screenshot instead of
     beside it — it was covering the mock's own "Start cleanup" button and
     bottom nav row. Drop it into normal flow under the phone instead. */
  .float-card { position: static; left: auto; bottom: auto; margin: 16px auto 0; }
}
@media (max-width: 720px) {
  section { padding: 26px 0; }
  section.tight { padding: 20px 0; }
  .hero { padding: 28px 0 30px; }
  .page-head { padding: 30px 0 26px; }
  .section-head { margin-bottom: 20px; }
  .feature + .feature { margin-top: 34px; }
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px 14px 16px; gap: 2px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; font-size: 16px; }
  .nav .btn { margin-top: 8px; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: 22px; }
  #map { height: 320px; }
}
@media (max-width: 460px) {
  .foot-grid { grid-template-columns: 1fr; }
}
