/* Wallet Partners LLC — site styles */
:root {
  --navy: #0f2440;
  --navy-2: #163558;
  --ink: #16202b;
  --ink-2: #4a5563;
  --ink-3: #6b7683;
  --line: #dde3ea;
  --bg: #f7f9fb;
  --card: #ffffff;
  --blue: #2a78d6;
  --blue-2: #1f5fae;
  --amber: #eda100;
  --amber-2: #b97c00;
  --aqua: #1baf7a;
  --orange: #eb6834;
  --red: #e34948;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15,36,64,.06), 0 8px 24px rgba(15,36,64,.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-2); }
a:hover { color: var(--blue); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 800; letter-spacing: -.01em; }
.brand svg { width: 34px; height: 34px; }
.brand span small { display: block; font-weight: 500; font-size: .72rem; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); background: #eef3f9; }
.nav a.cta { background: var(--navy); color: #fff; margin-left: 8px; }
.nav a.cta:hover { background: var(--navy-2); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 12px 14px; }
  .nav.open { display: flex; }
  .nav a.cta { margin: 6px 0 0; text-align: center; }
}

/* Hero */
.hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; }
.hero picture, .hero .hero-img { position: absolute; inset: 0; }
.hero .hero-img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(15,36,64,.92) 0%, rgba(15,36,64,.7) 55%, rgba(15,36,64,.35) 100%); }
.hero .wrap { position: relative; z-index: 1; padding: clamp(56px, 9vw, 120px) 20px; max-width: var(--max); }
.hero h1 { color: #fff; max-width: 760px; }
.hero p.lead { font-size: clamp(1.05rem, 1.8vw, 1.3rem); max-width: 680px; color: #e5ecf5; }
.eyebrow { display: inline-block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--amber); margin-bottom: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 700; text-decoration: none; border: 1px solid transparent; font-size: .98rem; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--amber); color: #1a1400; }
.btn-primary:hover { background: #ffb61a; color: #1a1400; }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy); }

/* Sections */
section { padding: clamp(44px, 6vw, 80px) 0; }
section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.dark { background: var(--navy); color: #dfe7f1; }
section.dark h2, section.dark h3 { color: #fff; }
section.dark .muted { color: #a9b8c9; }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head p { font-size: 1.08rem; color: var(--ink-2); }
section.dark .section-head p { color: #c3cfdd; }

/* Stat tiles */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.stat .num { font-size: 2.1rem; font-weight: 800; color: var(--navy); line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .num sup { font-size: .95rem; color: var(--ink-3); font-weight: 600; margin-left: 4px; }
.stat .lbl { color: var(--ink-2); font-weight: 600; margin-top: 6px; }
.stat .src { color: var(--ink-3); font-size: .8rem; margin-top: 4px; }
.hero .stats { margin-top: 44px; }
.hero .stat { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); backdrop-filter: blur(6px); }
.hero .stat .num { color: #fff; }
.hero .stat .lbl { color: #dfe7f1; }
.hero .stat .src { color: #a9b8c9; }

/* Cards / grids */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-top: 0; }
.card .icon { width: 42px; height: 42px; border-radius: 10px; background: #eef3f9; color: var(--blue-2); display: grid; place-items: center; margin-bottom: 14px; }
.card .icon svg { width: 22px; height: 22px; }
section.dark .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); color: #dfe7f1; }
section.dark .card .icon { background: rgba(255,255,255,.1); color: var(--amber); }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split figcaption { font-size: .8rem; color: var(--ink-3); padding: 8px 12px; background: #fff; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--aqua); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='black'/%3E%3Cpath d='M7 12.5l3 3 7-7' stroke='white' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='black'/%3E%3Cpath d='M7 12.5l3 3 7-7' stroke='white' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.callout { border-left: 4px solid var(--amber); background: #fff8e6; padding: 16px 20px; border-radius: 0 10px 10px 0; margin: 20px 0; }
.callout.info { border-color: var(--blue); background: #eef4fc; }
.callout.warn { border-color: var(--red); background: #fdeeee; }
.callout p:last-child { margin-bottom: 0; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: step; }
.timeline li { position: relative; padding: 0 0 22px 44px; counter-increment: step; }
.timeline li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.timeline li::after { content: ""; position: absolute; left: 14px; top: 32px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline strong { display: block; color: var(--navy); }

/* Map */
.map-wrap { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #e9eef3; }
#map { height: 560px; width: 100%; }
#map.compact { height: 440px; }
.map-legend { position: absolute; bottom: 12px; left: 12px; z-index: 400; background: rgba(255,255,255,.95); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: .8rem; display: grid; gap: 4px; }
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.dot.inside { background: var(--blue); }
.dot.edge { background: var(--orange); }
.poly-key { width: 22px; height: 12px; border: 2px dashed var(--amber-2); background: rgba(237,161,0,.12); display: inline-block; }
.leaflet-popup-content { font-family: var(--font); font-size: .9rem; line-height: 1.45; margin: 12px 14px; }
.leaflet-popup-content h4 { margin: 0 0 4px; font-size: 1rem; color: var(--navy); }
.leaflet-popup-content .tag { display: inline-block; font-size: .7rem; padding: 2px 8px; border-radius: 999px; background: #eef3f9; color: var(--navy); font-weight: 700; margin-right: 4px; }
.leaflet-popup-content .links { margin-top: 8px; display: flex; gap: 10px; flex-wrap: wrap; }
.marker-pin { width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); display: grid; place-items: center; }
.marker-pin.inside { background: var(--blue); }
.marker-pin.edge { background: var(--orange); }
.marker-pin span { transform: rotate(45deg); color: #fff; font-weight: 800; font-size: .72rem; font-family: var(--font); }

/* Filters + station list */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0; }
.filters label { font-weight: 600; font-size: .9rem; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; }
.filters select, .filters input[type="search"] { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; min-width: 160px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .85rem; font-weight: 600; cursor: pointer; font-family: inherit; color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.count { margin-left: auto; font-size: .9rem; color: var(--ink-3); }
.station-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 20px; }
.station { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.station.active { outline: 2px solid var(--blue); }
.station .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.station .n { width: 30px; height: 30px; border-radius: 50%; color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .85rem; flex: none; }
.station .n.inside { background: var(--blue); }
.station .n.edge { background: var(--orange); }
.station h3 { font-size: 1.02rem; margin: 0; }
.station .addr { color: var(--ink-2); font-size: .92rem; }
.station .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-block; font-size: .72rem; padding: 3px 9px; border-radius: 999px; background: #eef3f9; color: var(--navy); font-weight: 700; }
.tag.h24 { background: #e6f7f0; color: #0b6b47; }
.tag.brand { background: #fff4d6; color: #6b4a00; }
.station .links { display: flex; gap: 12px; flex-wrap: wrap; font-size: .88rem; margin-top: auto; padding-top: 6px; }
.brand-badge { display: inline-flex; align-items: center; gap: 8px; }
.brand-sw { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f1f5f9; color: var(--navy); font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Charts */
.viz { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.viz h3 { font-size: 1.05rem; margin-bottom: 2px; }
.viz .sub { color: var(--ink-3); font-size: .85rem; margin-bottom: 14px; }
.viz svg { width: 100%; height: auto; display: block; }
.viz .bar-row { display: grid; grid-template-columns: 150px 1fr 70px; align-items: center; gap: 12px; margin: 8px 0; font-size: .9rem; }
.viz .bar-row .track { height: 14px; background: #eef2f6; border-radius: 4px; overflow: hidden; }
.viz .bar-row .fill { height: 100%; border-radius: 0 4px 4px 0; background: var(--blue); }
.viz .bar-row .val { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); font-weight: 600; }
.viz .legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .82rem; color: var(--ink-2); margin-top: 10px; }
.viz .legend span { display: inline-flex; align-items: center; gap: 6px; }
.viz .sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.viz details { margin-top: 10px; font-size: .85rem; }
.viz details summary { cursor: pointer; color: var(--blue-2); font-weight: 600; }
.viz .tip { position: absolute; pointer-events: none; background: var(--navy); color: #fff; font-size: .8rem; padding: 6px 9px; border-radius: 6px; transform: translate(-50%, -120%); white-space: nowrap; opacity: 0; transition: opacity .12s; }
.viz .tip.show { opacity: 1; }

/* Calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 800px) { .calc { grid-template-columns: 1fr; } }
.calc .field { display: grid; gap: 4px; margin-bottom: 14px; }
.calc label { font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.calc input { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; width: 100%; }
.calc .out { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 24px; }
.calc .out h3 { color: #fff; }
.calc .out .row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.calc .out .row:last-child { border-bottom: none; }
.calc .out .row b { font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.calc .out .row span { color: #c3cfdd; }

/* Prose pages */
.prose { max-width: 800px; }
.prose h2 { margin-top: 2em; font-size: 1.45rem; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.page-title { padding: clamp(36px, 5vw, 64px) 0 clamp(20px, 3vw, 36px); background: #fff; border-bottom: 1px solid var(--line); }
.page-title p { color: var(--ink-2); font-size: 1.08rem; max-width: 720px; margin: 0; }
.page-title .eyebrow { color: var(--amber-2); }
.meta-line { font-size: .85rem; color: var(--ink-3); margin-top: 10px; }

/* Forms */
form.contact { display: grid; gap: 14px; max-width: 560px; }
form.contact label { font-weight: 600; font-size: .9rem; color: var(--ink-2); display: grid; gap: 4px; }
form.contact input, form.contact textarea, form.contact select { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; width: 100%; background: #fff; }
form.contact textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--ink-3); }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: #0b1a2e; color: #b7c4d4; padding: 48px 0 28px; font-size: .9rem; }
.site-footer a { color: #dfe7f1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .8rem; color: #8ea0b5; }
.disclaimer { font-size: .78rem; color: #8ea0b5; margin-top: 14px; }

/* Cookie banner */
.cookie { position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: 520px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 12px; padding: 16px 18px; z-index: 90; font-size: .9rem; display: none; }
.cookie.show { display: block; }
.cookie .actions { display: flex; gap: 8px; margin-top: 10px; }

/* Utilities */
.center { text-align: center; }
.mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; }
.mb-0 { margin-bottom: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sources { font-size: .85rem; color: var(--ink-2); }
.sources li { margin-bottom: 6px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.kbd { font-family: var(--mono); font-size: .85em; background: #eef2f6; padding: 2px 6px; border-radius: 4px; }
@media print { .site-header, .cookie, .hero-actions, .nav-toggle { display: none !important; } .hero::after { background: var(--navy); } }
