:root {
  --forest: #123f34;
  --forest-2: #205d4d;
  --ink: #182823;
  --cream: #fff9ec;
  --sand: #f0e3c5;
  --terra: #c56843;
  --sun: #f3bd36;
  --sky: #cde8e2;
  --white: #ffffff;
  --muted: #617069;
  --danger: #9f4038;
  --sun-shadow: #b67d12;
  --shadow: 0 18px 50px rgba(18, 63, 52, 0.15);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--cream); }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 80% 5%, color-mix(in srgb, var(--sun) 58%, transparent) 0, transparent 25rem), var(--cream); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

.shell { min-height: 100vh; min-height:100svh; padding-bottom:calc(90px + env(safe-area-inset-bottom)); }
.mobile-explore-switch { display:none; }
.skip-link { position:absolute; z-index:1000; top:8px; left:8px; transform:translateY(-160%); border-radius:10px; padding:12px 16px; background:var(--sun); color:var(--forest); font-weight:900; text-decoration:none; box-shadow:var(--shadow); }
.skip-link:focus { transform:translateY(0); }
#main-content:focus { outline:none; }
#main-content h1:focus { outline:3px solid var(--sun); outline-offset:6px; border-radius:4px; }
.topbar { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:18px clamp(18px,5vw,64px); }
.brand { display:flex; align-items:center; gap:10px; border:0; padding:0; background:transparent; font-weight:900; color:var(--forest); letter-spacing:-.02em; cursor:pointer; }
.brand-lockup { display:flex; align-items:center; gap:10px; white-space:nowrap; }
.brand-logo { display:block; width:42px; height:42px; background:var(--forest); mask:url("/brand/color-avatar.png") center / contain no-repeat; -webkit-mask:url("/brand/color-avatar.png") center / contain no-repeat; }
.top-actions { display:flex; align-items:center; gap:8px; }
.pill { min-height:44px; border:1px solid rgba(18,63,52,.18); border-radius:999px; padding:9px 14px; background:rgba(255,255,255,.68); color:var(--forest); font-weight:750; }
.pill.active { background:var(--forest); color:var(--white); }
.pill.help-link { border-color:#d3a42e; background:var(--sun); color:#123f34; font-weight:900; box-shadow:0 3px 0 #b67d12; }
.pill.help-link:hover { background:#f7c84f; transform:translateY(-1px); }

.stage { width:min(1180px, calc(100% - 32px)); margin:0 auto; }
.hero { position:relative; min-height:620px; display:grid; grid-template-columns:1.1fr .9fr; align-items:center; gap:36px; padding:44px clamp(24px,5vw,70px); overflow:hidden; border-radius:42px; background:linear-gradient(145deg, var(--forest) 0%, color-mix(in srgb, var(--forest) 82%, black) 76%); color:var(--white); box-shadow:var(--shadow); }
.hero::after { content:""; position:absolute; width:340px; height:340px; right:-130px; top:-145px; border:72px solid rgba(248,195,61,.22); border-radius:50%; }
.eyebrow { display:inline-flex; gap:8px; align-items:center; padding:8px 12px; border-radius:999px; color:var(--forest); background:var(--sun); font-size:.82rem; font-weight:900; text-transform:uppercase; letter-spacing:.08em; }
h1 { max-width:760px; margin:18px 0 16px; font-size:clamp(2.5rem,6vw,5.6rem); line-height:.94; letter-spacing:-.065em; }
.hero-copy p { max-width:620px; margin:0 0 28px; color:var(--sky); font-size:clamp(1rem,2vw,1.22rem); line-height:1.6; }
.cta-row { display:flex; flex-wrap:wrap; gap:12px; }
.btn { min-height:50px; border:0; border-radius:17px; padding:0 20px; font-weight:900; transition:transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover { transform:translateY(-2px); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline:3px solid var(--sun); outline-offset:3px; }
.btn-primary { background:var(--sun); color:var(--forest); box-shadow:0 7px 0 var(--sun-shadow); }
.btn-secondary { background:transparent; color:var(--white); border:1px solid rgba(255,255,255,.35); }
.hero-art { position:relative; align-self:end; min-height:520px; z-index:1; }
.hero-art img { position:absolute; height:590px; max-width:none; bottom:-78px; left:50%; transform:translateX(-50%); filter:drop-shadow(0 20px 25px rgba(0,0,0,.24)); }
.speech { position:absolute; z-index:2; top:30px; right:0; max-width:225px; padding:15px 18px; border-radius:20px 20px 5px 20px; background:var(--white); color:var(--forest); font-weight:900; box-shadow:var(--shadow); }
.product-focus { align-self:center; min-height:300px; display:flex; flex-direction:column; justify-content:center; align-items:flex-start; gap:16px; padding:42px; border:1px solid rgba(255,255,255,.18); border-radius:32px; background:linear-gradient(145deg,rgba(255,255,255,.13),rgba(255,255,255,.04)); }
.product-focus .card-icon { width:72px; height:72px; border-radius:24px; background:var(--sun); font-size:2rem; }
.product-focus strong { font-size:clamp(1.8rem,4vw,3.2rem); line-height:1; letter-spacing:-.04em; }
.product-focus p { max-width:330px; margin:0; color:var(--sky); font-size:1.05rem; line-height:1.55; }

.map-stage { width:min(1480px,calc(100% - 28px)); margin:0 auto; }
.map-heading { display:flex; align-items:end; justify-content:space-between; gap:20px; padding:10px 4px 18px; }
.map-heading > div { min-width:0; }
.map-heading h1 { max-width:none; margin:12px 0 0; color:var(--forest); font-size:clamp(2rem,4.5vw,4.2rem); }
.location-btn { flex:0 0 auto; color:var(--white); background:var(--forest); box-shadow:none; }
.search-panel { position:relative; z-index:5; display:flex; align-items:center; gap:12px; min-width:0; margin-bottom:12px; padding:10px; border:1px solid rgba(18,63,52,.12); border-radius:24px; background:rgba(255,255,255,.92); box-shadow:0 12px 35px rgba(18,63,52,.12); }
.map-search { display:flex; align-items:center; gap:10px; flex:0 1 420px; min-width:260px; padding:0 14px; border-right:1px solid var(--sky); color:var(--forest); font-size:1.35rem; }
.map-search input { width:100%; min-height:46px; border:0; outline:0; background:transparent; color:var(--ink); font-size:1rem; }
.map-filters { display:flex; min-width:0; gap:8px; overflow-x:auto; padding:2px; scrollbar-width:thin; }
.map-filters .pill { flex:0 0 auto; }
.geo-status { margin:0 4px 12px; color:var(--muted); font-size:.88rem; }
.explore-layout { display:grid; grid-template-columns:minmax(340px,.8fr) minmax(520px,1.2fr); min-height:610px; overflow:hidden; border:1px solid rgba(18,63,52,.12); border-radius:30px; background:var(--white); box-shadow:var(--shadow); }
.map-results { min-width:0; padding:20px; border-right:1px solid var(--sky); background:var(--white); }
.results-title { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:0 2px 16px; }
.results-title div { display:grid; gap:4px; }
.results-title h2 { margin:0; color:var(--forest); font-size:1.1rem; line-height:1.2; }
.results-title span { color:var(--muted); font-size:.86rem; }
.text-button { min-height:44px; border:0; padding:8px; background:transparent; color:var(--forest); font-weight:900; white-space:nowrap; }
.map-business-list { display:grid; gap:10px; max-height:548px; overflow-y:auto; padding-right:5px; }
.map-business-row { display:grid; grid-template-columns:1fr; align-items:center; border:1px solid var(--sky); border-radius:19px; background:var(--white); transition:border-color .18s ease,box-shadow .18s ease; }
.map-business-row:hover,.map-business-row.is-map-active { border-color:var(--forest-2); box-shadow:0 8px 20px rgba(18,63,52,.14); }
.map-business-main { display:grid; grid-template-columns:auto 1fr; align-items:center; gap:12px; min-width:0; border:0; padding:13px; background:transparent; text-align:left; }
.map-business-main > span:last-child { display:grid; min-width:0; }
.map-business-main strong { overflow:hidden; color:var(--forest); font-size:1rem; text-overflow:ellipsis; white-space:nowrap; }
.map-business-main small { margin-top:3px; color:var(--forest); font-size:.78rem; font-weight:800; }
.map-business-main small b { margin-left:5px; color:var(--forest); }
.map-business-main em { display:-webkit-box; overflow:hidden; margin-top:6px; color:var(--muted); font-size:.82rem; font-style:normal; line-height:1.35; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.map-business-icon { display:grid; place-items:center; width:48px; height:48px; border-radius:15px; background:var(--sky); font-size:1.35rem; }
.map-shell { position:relative; min-width:0; min-height:610px; overflow:hidden; background:var(--sky); }
.geo-map { position:absolute; inset:0; overflow:hidden; background:var(--sky); }
.geo-map:focus-visible { outline:4px solid var(--sun); outline-offset:-4px; }
.map-marker-icon { border:0!important; background:transparent!important; }
.map-marker { position:relative; display:grid; place-items:center; width:34px; height:34px; border:2px solid var(--white); border-radius:50% 50% 50% 0; color:var(--white); box-shadow:0 4px 10px rgba(18,63,52,.28); transform:rotate(-45deg); transition:transform .16s ease, filter .16s ease; }
.map-marker.producer { background:var(--forest); }
.map-marker.service { background:var(--sun); color:var(--forest); }
.map-marker.partner { background:var(--sand); color:var(--forest); }
.map-marker:hover,.leaflet-marker-icon:focus-visible .map-marker { filter:brightness(1.08); transform:rotate(-45deg) scale(1.08); }
.map-marker > span { display:grid; place-items:center; width:26px; height:26px; border-radius:50%; background:rgba(255,255,255,.94); font-size:.86rem; transform:rotate(45deg); }
.location-btn { display:inline-flex; align-items:center; gap:9px; }
.location-btn-icon { display:grid; place-items:center; line-height:1; }
.map-toolbar { position:absolute; z-index:500; top:14px; left:54px; }
.map-toolbar button { min-height:44px; border:1px solid rgba(18,63,52,.16); border-radius:12px; padding:8px 11px; background:rgba(255,255,255,.94); color:var(--forest); box-shadow:0 4px 14px rgba(18,63,52,.16); font-size:.78rem; font-weight:900; }
.map-legend { position:absolute; z-index:500; bottom:25px; left:12px; display:flex; flex-wrap:wrap; gap:9px; border-radius:12px; padding:8px 10px; background:rgba(255,255,255,.94); color:var(--forest); box-shadow:0 3px 12px rgba(0,0,0,.12); font-size:.75rem; font-weight:800; }
.map-legend span { display:flex; align-items:center; gap:5px; }
.legend-dot { width:9px; height:9px; border-radius:50%; }
.legend-dot.producer { background:var(--forest); }
.legend-dot.service { background:var(--sun); }
.legend-dot.partner { background:var(--sand); }
.map-popup { display:grid; gap:7px; color:var(--ink); }
.map-popup strong { color:var(--forest); font-size:1rem; }
.map-popup-type { color:var(--forest); font-size:.75rem; font-weight:900; text-transform:uppercase; }
.map-popup-location { color:var(--muted); font-size:.78rem; }
.map-popup-action { min-height:44px; justify-self:start; border:0; border-radius:10px; padding:8px 11px; background:var(--forest); color:var(--white); font-weight:900; }
.map-unavailable { display:grid; height:100%; place-items:center; padding:30px; color:var(--forest); text-align:center; }
.leaflet-control-zoom a { color:var(--forest)!important; }
.leaflet-control-attribution { font-size:10px!important; }

.circular-profile { max-width:1120px; }
.profile-cover { display:grid; grid-template-columns:auto 1fr; align-items:center; gap:24px; margin-bottom:20px; padding:clamp(26px,5vw,56px); border-radius:36px; background:linear-gradient(145deg,var(--forest),color-mix(in srgb, var(--forest) 82%, black)); color:var(--white); box-shadow:var(--shadow); }
.profile-cover h1 { max-width:none; margin:14px 0 8px; font-size:clamp(2.5rem,6vw,5rem); }
.profile-cover p { margin:0; color:var(--sky); font-size:1.05rem; }
.profile-symbol { display:grid; place-items:center; width:112px; height:112px; border:8px solid rgba(255,255,255,.18); border-radius:34px; background:var(--sun); font-size:3.2rem; box-shadow:0 12px 0 rgba(0,0,0,.18); }
.profile-layout { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr); gap:18px; align-items:start; }
.profile-main,.profile-side { display:grid; gap:18px; }
.profile-main .card { padding:clamp(24px,4vw,38px); }
.profile-main h2 { margin:14px 0 10px; color:var(--forest); font-size:clamp(1.6rem,3vw,2.4rem); letter-spacing:-.035em; }
.profile-main p { font-size:1rem; line-height:1.65; }
.profile-lead { margin-bottom:10px!important; color:var(--forest)!important; font-weight:850; }
.practice-list { display:grid; gap:12px; margin-top:18px; }
.practice-list > div { padding:16px; border-left:5px solid var(--sun); border-radius:8px 16px 16px 8px; background:var(--sky); }
.practice-list strong { color:var(--forest); }
.practice-list p { margin-top:5px; }
.territory-card small { display:block; margin-top:10px; color:var(--muted); line-height:1.45; }
.profile-links { display:grid; gap:8px; margin-top:14px; }
.profile-links a { border-radius:12px; padding:11px 13px; background:var(--sky); color:var(--forest); font-weight:850; text-decoration:none; }

.section { padding:58px 0 10px; }
.section-head { display:flex; align-items:end; justify-content:space-between; gap:24px; margin-bottom:20px; }
.section h2 { margin:0; color:var(--forest); font-size:clamp(1.7rem,3.5vw,3rem); line-height:1; letter-spacing:-.045em; }
.section-head p { max-width:520px; margin:0; color:var(--muted); line-height:1.55; }
.grid { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:16px; }
.card { position:relative; overflow:hidden; border:1px solid rgba(18,63,52,.12); border-radius:25px; padding:22px; background:rgba(255,255,255,.88); box-shadow:0 8px 26px rgba(18,63,52,.08); }
.card h3 { margin:10px 0 8px; color:var(--forest); font-size:1.2rem; }
.card p { margin:0; color:var(--muted); line-height:1.48; }
.card-icon { display:grid; place-items:center; width:48px; height:48px; border-radius:16px; background:var(--sky); color:var(--forest); font-size:1.35rem; }
.tag { display:inline-flex; align-items:center; gap:5px; border-radius:999px; padding:7px 10px; background:var(--sand); color:var(--forest); font-size:.78rem; font-weight:850; }
.card-button { display:block; width:fit-content; min-height:44px; margin-top:18px; border:0; border-radius:14px; padding:12px; background:var(--forest); color:var(--white); font-weight:850; }
.business-card { min-height:245px; display:flex; flex-direction:column; }
.business-card .card-button { margin-top:auto; }
.mission-card { background:linear-gradient(145deg,#fff 0%,var(--cream) 100%); }
.mission-points { position:absolute; right:18px; top:18px; display:grid; place-items:center; width:52px; height:52px; border-radius:50%; background:var(--sun); color:var(--forest); font-weight:950; }

.game-panel { width:min(760px, calc(100% - 32px)); margin:20px auto 0; border-radius:32px; padding:clamp(24px,5vw,46px); background:var(--white); box-shadow:var(--shadow); }
.progress { height:11px; overflow:hidden; border-radius:999px; background:var(--sky); }
.progress span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--terra),var(--sun)); transition:width .25s ease; }
.question { margin:26px 0 18px; color:var(--forest); font-size:clamp(1.5rem,4vw,2.5rem); line-height:1.1; letter-spacing:-.04em; }
.answers { display:grid; gap:10px; }
.answer { width:100%; border:1px solid var(--sky); border-radius:16px; padding:16px; background:var(--white); color:var(--ink); text-align:left; font-weight:750; }
.answer:hover { border-color:var(--terra); background:var(--cream); }
.result-hero { display:grid; grid-template-columns:auto 1fr; align-items:center; gap:22px; }
.result-badge { display:grid; place-items:center; width:100px; height:100px; border-radius:30px; background:var(--sun); font-size:2.8rem; box-shadow:0 9px 0 var(--sun-shadow); }

.view { animation:rise .28s ease both; }
@keyframes rise { from { opacity:0; transform:translateY(10px); } }
.page-head { padding:28px 0; }
.page-head h1 { color:var(--forest); font-size:clamp(2.4rem,6vw,4.7rem); margin:0 0 12px; }
.page-head p { max-width:720px; color:var(--muted); font-size:1.08rem; line-height:1.55; }
.filters { display:flex; gap:10px; flex-wrap:wrap; margin:16px 0 22px; }
.field { display:grid; gap:7px; margin-bottom:15px; }
.field label { color:var(--forest); font-weight:850; }
.field input, .field select, .field textarea { width:100%; border:1px solid color-mix(in srgb, var(--forest) 16%, white); border-radius:14px; padding:13px 14px; background:var(--white); color:var(--ink); }
.field textarea { min-height:92px; resize:vertical; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 15px; }
.category-field { border:0; padding:0; }
.category-field legend { margin-bottom:9px; color:var(--forest); font-weight:850; }
.category-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.category-options label { display:flex; align-items:flex-start; gap:8px; border:1px solid var(--sky); border-radius:12px; padding:10px; color:var(--ink); font-size:.9rem; }
.category-options input { width:18px; height:18px; flex:0 0 auto; accent-color:var(--forest); }
.consent-box { margin:8px 0 14px; border-radius:16px; padding:16px; background:var(--sky); }
.consent-box .check { margin:10px 0 0; }
.split-grid { grid-template-columns:1.1fr .9fr; }
.full { grid-column:1/-1; }
.notice { border-left:5px solid var(--sun); border-radius:8px 18px 18px 8px; padding:14px 16px; background:var(--cream); color:var(--forest); line-height:1.45; }
.toast { position:fixed; right:20px; bottom:92px; z-index:20; max-width:340px; padding:14px 18px; border-radius:16px; background:var(--forest); color:var(--white); box-shadow:var(--shadow); animation:rise .25s ease both; }
.stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.stat { padding:18px; border-radius:20px; background:var(--forest); color:var(--white); }
.stat strong { display:block; color:var(--sun); font-size:2rem; }
.activity { display:grid; gap:10px; margin-top:18px; }
.activity-row { display:flex; justify-content:space-between; gap:16px; padding:14px; border-radius:15px; background:var(--white); border:1px solid rgba(18,63,52,.12); }
.bottom-nav { position:fixed; left:50%; bottom:calc(14px + env(safe-area-inset-bottom)); z-index:10; display:flex; gap:0; transform:translateX(-50%); overflow:hidden; padding:0; border:1px solid rgba(255,255,255,.18); border-radius:20px; background:var(--forest); box-shadow:0 12px 30px rgba(18,63,52,.24); }
.nav-btn { display:grid; grid-template-rows:21px auto; align-content:center; justify-items:center; gap:3px; width:76px; min-height:60px; border:0; border-radius:0; padding:0; background:transparent; color:var(--sky); font-size:.69rem; font-weight:800; line-height:1; }
.nav-btn:first-child { border-radius:19px 0 0 19px; }
.nav-btn:last-child { border-radius:0 19px 19px 0; }
.nav-btn span:first-child { display:grid; place-items:center; line-height:1; }
.nav-btn svg, .location-btn svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.8; }
.nav-btn span:last-child { display:block; }
.nav-btn.active { color:var(--forest); background:var(--sun); }
.empty { padding:38px; text-align:center; border:2px dashed color-mix(in srgb, var(--forest) 16%, white); border-radius:24px; color:var(--muted); }
.code-box { display:flex; align-items:center; justify-content:center; min-height:170px; border:10px solid var(--white); border-radius:24px; color:var(--forest); background:repeating-linear-gradient(45deg,#fff 0 11px,var(--sky) 11px 22px); box-shadow:var(--shadow); font-size:2rem; font-weight:950; letter-spacing:.16em; }
.footer { padding:70px 20px 20px; text-align:center; color:var(--muted); font-size:.9rem; }
.footer strong { display:block; color:var(--forest); }
.footer span { display:flex; justify-content:center; flex-wrap:wrap; gap:8px; margin-top:10px; }
.footer button, .footer a, .back-link { border:0; background:transparent; color:var(--forest); font-weight:800; text-decoration:underline; text-underline-offset:3px; }
.check { display:flex; align-items:flex-start; gap:10px; margin:8px 0 18px; color:var(--muted); font-size:.92rem; line-height:1.45; }
.check input { width:20px; height:20px; flex:0 0 auto; accent-color:var(--forest); }
.clean-list { display:grid; gap:10px; margin:20px 0; padding:0; list-style:none; }
.clean-list li { position:relative; padding-left:28px; line-height:1.4; }
.clean-list li::before { content:"✓"; position:absolute; left:0; color:var(--forest); font-weight:950; }
.value-card { background:linear-gradient(145deg,#fff 0%,var(--sky) 100%); }
.direction-picker { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:20px; }
.direction-picker label { cursor:pointer; }
.direction-picker input { position:absolute; opacity:0; }
.direction-picker span { display:grid; min-height:58px; place-items:center; border:2px solid color-mix(in srgb, var(--forest) 16%, white); border-radius:16px; padding:10px; color:var(--forest); font-weight:900; text-align:center; }
.direction-picker input:checked + span { border-color:var(--forest); background:var(--forest); color:#fff; }
.flow-list { display:grid; gap:14px; margin:18px 0 0; padding-left:24px; color:var(--muted); line-height:1.5; }
.list-card { margin-top:16px; }
.connection-row { display:grid; gap:5px; padding:14px 0; border-bottom:1px solid var(--sky); }
.connection-row:last-child { border-bottom:0; }
.connection-row .tag { width:max-content; }
.connection-row strong { color:var(--forest); }
.connection-row small { color:var(--muted); }
.compact { padding:20px; margin-top:14px; }
.journey-card { background:linear-gradient(145deg,var(--forest),color-mix(in srgb, var(--forest) 82%, black)); color:#fff; }
.journey-card h3,.journey-card p { color:#fff; }
.inline-link { display:block; color:#fff; text-align:center; text-decoration:none; }
.form-error { min-height:1.25rem; color:var(--danger); font-weight:800; }
.pricing-layout { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(260px,.85fr); gap:18px; max-width:920px; margin:0 auto; }
.price-card { padding:clamp(24px,5vw,42px); border:2px solid var(--forest); }
.price-card h2 { margin:24px 0 2px; color:var(--forest); font-size:2rem; }
.price { display:flex; align-items:end; gap:7px; margin:8px 0 16px!important; }
.price strong { color:var(--forest); font-size:3.2rem; line-height:1; letter-spacing:-.06em; }
.price span { color:var(--muted); }
.wide { width:100%; }
.research-card { align-self:start; background:var(--forest); color:var(--white); }
.research-card h3, .research-card p { color:var(--white); }
.mini-metric { display:grid; gap:6px; margin-top:22px; padding:16px; border-radius:16px; background:rgba(255,255,255,.1); }
.mini-metric strong { color:var(--sun); }
.checkout-stage { width:min(1040px,calc(100% - 32px)); margin:20px auto; }
.back-link { margin:0 0 16px; }
.checkout-grid { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr); gap:18px; align-items:start; }
.checkout-title { margin:20px 0; color:var(--forest); font-size:clamp(2rem,5vw,3.4rem); }
.payment-methods, .score { margin:18px 0; padding:0; border:0; }
.payment-methods legend, .score legend { margin-bottom:10px; color:var(--forest); font-weight:900; }
.payment-methods label { display:flex; align-items:center; gap:12px; margin-bottom:9px; padding:14px; border:1px solid color-mix(in srgb, var(--forest) 16%, white); border-radius:15px; background:var(--white); }
.payment-methods input { width:20px; height:20px; accent-color:var(--forest); }
.payment-methods span { display:grid; }
.payment-methods small, .security-note { color:var(--muted); }
.security-note { margin:14px 0 0; font-size:.82rem; line-height:1.45; }
.order-card { position:sticky; top:18px; }
.order-row { display:flex; justify-content:space-between; gap:16px; margin-top:18px; padding-bottom:14px; border-bottom:1px solid var(--sky); }
.order-row.total { color:var(--forest); font-size:1.12rem; }
.success-panel { text-align:center; }
.success-icon { display:grid; place-items:center; width:76px; height:76px; margin:0 auto 20px; border-radius:50%; background:var(--forest); color:var(--sun); font-size:2.5rem; font-weight:950; }
.success-panel .question { margin-left:auto; margin-right:auto; }
.success-panel .cta-row { justify-content:center; margin-top:24px; }
.score > div { display:grid; grid-template-columns:repeat(11,1fr); gap:5px; }
.score label input { position:absolute; opacity:0; pointer-events:none; }
.score label span { display:grid; place-items:center; aspect-ratio:1; border:1px solid color-mix(in srgb, var(--forest) 16%, white); border-radius:10px; background:#fff; font-weight:850; }
.score label input:checked + span { background:var(--forest); color:#fff; border-color:var(--forest); }
.funnel { display:grid; gap:9px; margin-top:18px; }
.funnel span { display:flex; justify-content:space-between; gap:10px; padding:14px; border-radius:14px; background:var(--sky); }
.legal { max-width:860px; }
.legal article { padding:clamp(24px,5vw,44px); }
.legal h2 { margin:28px 0 8px; color:var(--forest); }
.legal h2:first-child { margin-top:0; }

/* Rodapé compartilhado: a mesma assinatura visual em todas as jornadas. */
.site-footer { width:min(86rem,calc(100% - 2rem)); margin:1.5rem auto 5.5rem; overflow:hidden; border:1px solid rgba(18,63,52,.14); border-radius:1.5rem; background:#123f34; color:#fff9ec; box-shadow:0 18px 42px rgba(18,63,52,.14); }
.site-footer-main { display:grid; grid-template-columns:minmax(18rem,.85fr) minmax(0,1.65fr); align-items:start; gap:clamp(2rem,7vw,6.5rem); padding:2.25rem clamp(1.25rem,4vw,3.5rem) 2rem; }
.site-footer-brand { display:grid; align-content:start; gap:1rem; min-height:100%; }
.site-footer-brand-lockup { display:flex; align-items:center; gap:.8rem; min-width:0; }
.site-footer-logo { display:block; flex:0 0 auto; width:3.25rem; height:3.25rem; object-fit:contain; }
.site-footer-brand-name { color:#fff9ec; font-size:1.05rem; font-weight:900; letter-spacing:-.02em; white-space:nowrap; }
.site-footer-brand-subtitle { margin:.2rem 0 0; color:#f3bd36; font-size:.75rem; font-weight:800; }
.site-footer-brand-copy { max-width:22rem; margin:.45rem 0 0; color:#cde8e2; line-height:1.5; }
.site-footer-links { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(1rem,3vw,2.75rem); }
.site-footer-links > div { display:grid; align-content:start; gap:.45rem; }
.site-footer-label { margin:0 0 .35rem; color:#f3bd36; font-size:.72rem; font-weight:900; letter-spacing:.1em; text-transform:uppercase; }
.site-footer-links a { display:inline-flex; align-items:center; gap:.25rem; color:#fff9ec; font-size:.85rem; text-decoration:none; }
.site-footer-links a:hover { color:#f3bd36; }
.site-footer-note { max-width:12rem; margin-top:.25rem; color:#cde8e2; font-size:.72rem; line-height:1.35; }
.site-footer-bottom { display:flex; align-items:center; justify-content:space-between; gap:1rem; border-top:1px solid rgba(205,232,226,.18); padding:1rem clamp(1.25rem,4vw,3.5rem); color:#cde8e2; font-size:.75rem; }
.site-footer-location { display:inline-flex; align-items:center; gap:.3rem; }

@media (max-width: 840px) {
  .hero { min-height:720px; grid-template-columns:1fr; padding-bottom:0; }
  .hero-art { min-height:320px; }
  .hero-art img { height:430px; bottom:-90px; }
  .speech { top:0; right:4px; }
  .grid { grid-template-columns:1fr 1fr; }
  .stats { grid-template-columns:1fr 1fr; }
  .pricing-layout, .checkout-grid { grid-template-columns:1fr; }
  .order-card { position:static; }
  .map-heading { align-items:flex-start; }
  .explore-layout { grid-template-columns:1fr; }
  .explore-layout[data-mobile-view="map"], .explore-layout[data-mobile-view="list"] { min-height:0; }
  .explore-layout[data-mobile-view="map"] .map-results { display:none; }
  .explore-layout[data-mobile-view="list"] .map-shell { display:none; }
  .explore-layout[data-mobile-view="list"] .map-results { grid-row:1; border:0; }
  .explore-layout[data-mobile-view="list"] .map-business-list { max-height:none; overflow:visible; border:0; padding:0; background:transparent; box-shadow:none; }
  .map-shell { grid-row:1; height:min(56svh,30rem); min-height:18rem; }
  .leaflet-control-zoom a { width:44px!important; height:44px!important; line-height:44px!important; }
  .mobile-explore-switch { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; margin:0 0 10px; border:1px solid rgba(16,63,59,.12); border-radius:16px; padding:5px; background:rgba(255,255,255,.86); }
  .mobile-explore-switch button { min-height:44px; border:0; border-radius:11px; padding:8px 12px; background:transparent; color:var(--forest); font-size:.9rem; font-weight:850; }
  .mobile-explore-switch button.is-active { background:var(--sun); }
  .map-filters { scrollbar-width:thin; }
  .map-filters .pill { min-height:44px; padding:8px 12px; font-size:.82rem; }
  .map-results { grid-row:2; border-right:0; border-top:1px solid var(--sky); }
  .map-results { display:flex; min-height:0; flex-direction:column; }
  .map-business-list {
    max-height:min(34rem, 52vh);
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
    border:1px solid rgba(18,63,52,.12);
    border-radius:18px;
    padding:8px 6px 8px 0;
    background:color-mix(in srgb, var(--cream) 42%, var(--white));
    box-shadow:inset 0 1px 0 rgba(18,63,52,.04);
  }
  .profile-layout { grid-template-columns:1fr; }
  .site-footer-main { grid-template-columns:1fr; gap:2rem; }
}

@media (max-width: 560px) {
  .mobile-map-page { padding-bottom:calc(16px + env(safe-area-inset-bottom)); }
  .mobile-map-page .bottom-nav { display:none; }
  .topbar { display:grid; grid-template-columns:1fr auto; padding:13px 14px 12px; }
  .brand-logo { width:35px; height:35px; }
  .top-actions { grid-column:1 / -1; display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:7px; width:100%; }
  .top-actions .pill { min-width:0; min-height:44px; padding:6px 4px; font-size:.76rem; line-height:1.2; text-align:center; white-space:normal; }
  .mobile-map-page .top-actions .pill { display:flex; align-items:center; justify-content:center; font-size:.7rem; line-height:1.15; text-align:center; }
  .mobile-map-page .top-actions .help-link { display:none; }
  .top-actions .help-link, .top-actions .institutional-link { display:none; }
  .top-actions .pilot-link { padding:6px 4px; font-size:.76rem; }
  .hero { width:100%; min-height:690px; padding:28px 20px 0; border-radius:28px; }
  .hero-copy p { font-size:1rem; }
  .cta-row .btn { width:100%; }
  .section { padding-top:38px; }
  .section-head { display:block; }
  .section-head p { margin-top:10px; }
  .grid, .form-grid { grid-template-columns:1fr; }
  .category-options { grid-template-columns:1fr; }
  .direction-picker { grid-template-columns:1fr; }
  .split-grid { grid-template-columns:1fr !important; }
  .full { grid-column:auto; }
  .result-hero { grid-template-columns:1fr; }
  .score > div { grid-template-columns:repeat(6,1fr); }
  .bottom-nav { width:auto; justify-content:center; }
  .nav-btn { grid-template-rows:21px auto; width:76px; min-height:60px; padding:0; }
  .mobile-map-page .location-btn { justify-content:center; font-size:.78rem; text-align:center; }
  .mobile-map-page .map-mode-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; margin-bottom:10px; }
  .mobile-map-page .map-mode-tabs .pill { display:flex; min-width:0; align-items:center; justify-content:center; padding:6px; font-size:.72rem; line-height:1.15; text-align:center; }
  .mobile-map-page .mobile-explore-switch button { display:flex; align-items:center; justify-content:center; font-size:.78rem; line-height:1.15; text-align:center; }
  .mobile-map-page .map-filters .pill { display:inline-flex; align-items:center; justify-content:center; padding:8px 10px; font-size:.72rem; line-height:1.15; text-align:center; }
  .mobile-map-page .map-toolbar button { display:flex; min-height:44px; align-items:center; justify-content:center; max-width:calc(100vw - 86px); padding:6px 8px; font-size:.7rem; line-height:1.15; text-align:center; }
  .map-stage { width:calc(100% - 16px); }
  .map-heading { display:grid; padding-top:4px; }
  .map-heading > div { min-width:0; }
  .map-heading h1 { font-size:2.2rem; line-height:1; }
  .map-agent-cta .text-button { display:inline-block; max-width:100%; padding-right:0; padding-left:0; white-space:normal; overflow-wrap:anywhere; }
  .map-agent-cta { display:none; }
  .location-btn { width:fit-content; max-width:100%; min-height:44px; padding:0 14px; font-size:.88rem; }
  .search-panel { display:grid; grid-template-columns:minmax(0, 1fr); border-radius:18px; }
  .search-panel > * { min-width:0; }
  .map-search { min-width:0; border-right:0; border-bottom:1px solid var(--sky); }
  .map-shell { height:min(56svh,30rem); min-height:18rem; }
  .explore-layout { border-radius:22px; }
  .map-results { padding:14px; }
  .map-business-list { max-height:min(30rem, 52vh); border-radius:16px; padding-right:5px; }
  .explore-layout[data-mobile-view="list"] .map-business-list { max-height:none; overflow:visible; border:0; padding:0; background:transparent; box-shadow:none; }
  .map-marker { width:32px; height:32px; }
  .map-marker > span { width:24px; height:24px; font-size:.78rem; }
  .profile-cover { grid-template-columns:1fr; border-radius:26px; }
  .profile-symbol { width:84px; height:84px; border-radius:26px; font-size:2.4rem; }
  .site-footer { width:calc(100% - 1rem); margin-bottom:5rem; border-radius:1.2rem; }
  .site-footer-main { gap:2rem; padding:1.75rem 1.15rem; }
  .site-footer-main > *, .site-footer-links > div { min-width:0; }
  .site-footer-brand-copy { min-width:0; overflow-wrap:anywhere; }
  .site-footer-links { grid-template-columns:1fr 1fr; gap:1.25rem .75rem; }
  .site-footer-links a { width:auto; overflow-wrap:anywhere; }
  .site-footer-bottom { align-items:flex-start; flex-direction:column; padding:.9rem 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
}

/* O atributo hidden precisa prevalecer sobre o grid/flex dos resultados. */
[hidden] { display: none !important; }
.nav-btn, .pill, .text-button, .card-button { text-decoration: none; }

/* Alternância entre iniciativas publicadas e pesquisa territorial agregada. */
.map-mode-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.research-cta { display: inline-flex; align-items: center; justify-content: center; background: var(--sun); color: #0F4A32; text-decoration: none; flex-shrink: 0; }
.research-note { font-size: .95rem; line-height: 1.65; color: var(--forest); margin: 12px 0; }
.research-status { font-size: .95rem; line-height: 1.6; margin: 12px 0; }
.research-list-title { font-size: 1.2rem; margin: 22px 0 12px; }
.research-states { padding: 0; list-style: none; margin: 0; }
.research-states li { border-bottom: 1px solid #cbd9d2; padding: 10px 0; }
.research-states button { width: 100%; min-height: 44px; padding: 10px; text-align: left; border: 1px solid #b2c9be; border-radius: 10px; background: #fff; color: #0F4A32; font: inherit; font-weight: 750; cursor: pointer; }
.legend-dot.research { background: #EFCB67; border: 2px solid #0F4A32; }
.research-view .map-results { padding: 16px; }
@media (max-width: 560px) {
  .research-view .map-heading { align-items: stretch; flex-direction: column; }
  .research-cta { width: 100%; }
  .map-mode-tabs .pill { flex: 1; min-height: 44px; }
  .research-view .map-heading h1 { font-size: 2.1rem; }
}

/* Rodapé em painel lateral, com o controle junto à Ajuda. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 600;
  background: color-mix(in srgb, var(--cream) 94%, transparent);
  backdrop-filter: blur(16px);
}
.top-actions-help-menu { display: flex; min-width: 0; flex: 0 0 auto; align-items: center; gap: 8px; }
.top-actions-help-menu .help-link { flex: 0 0 auto; }

.site-footer-public {
  position: static;
  z-index: auto;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--cream);
  pointer-events: auto;
}
.site-footer-public-toggle,
.site-footer-public[open] .site-footer-public-toggle {
  position: relative;
  top: auto;
  right: auto;
  z-index: 1003;
  display: grid;
  width: 56px;
  min-height: 56px;
  flex: 0 0 56px;
  place-items: center;
  gap: 0;
  padding: 0;
  transform: none;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--forest);
  box-shadow: none;
  cursor: pointer;
  list-style: none;
}
.site-footer-public-toggle::-webkit-details-marker { display: none; }
.site-footer-public-toggle::marker { content: ""; }
.site-footer-public-toggle:hover { color: var(--forest-2); }
.site-footer-public[open] .site-footer-public-toggle { color: #fff; }
.site-footer-public-toggle:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
.site-footer-public-toggle-icon { display: grid; width: 24px; height: 24px; place-items: center; }
.site-footer-public-toggle-icon svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2; }
.site-footer-public[open] .site-footer-public-toggle-icon svg { display: none; }
.site-footer-public[open] .site-footer-public-toggle-icon::after { content: "×"; font-size: 1.8rem; line-height: 1; }
.site-footer-public-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1001;
  display: grid;
  width: min(390px, calc(100vw - 64px));
  height: 100vh;
  height: 100dvh;
  grid-template-rows: auto 1fr auto;
  gap: 28px;
  overflow-y: auto;
  padding: max(82px, calc(env(safe-area-inset-top) + 72px)) 26px max(22px, env(safe-area-inset-bottom));
  border-left: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(155deg, var(--forest), var(--forest-2));
  color: var(--cream);
  box-shadow: -18px 0 55px rgba(10,40,35,.2);
  opacity: 0;
  visibility: hidden;
  transform: translateX(102%);
  transition: transform .28s ease, opacity .2s ease, visibility .28s;
  pointer-events: auto;
}
.site-footer-public[open] .site-footer-public-panel { opacity: 1; visibility: visible; transform: translateX(0); }
.site-footer-public-brand { display: grid; align-content: start; gap: 12px; min-height: auto; }
.site-footer-public-brand-lockup { display: flex; min-width: 0; align-items: center; gap: 12px; }
.site-footer-public-logo { display: block; width: 48px; height: 48px; flex: 0 0 auto; object-fit: contain; }
.site-footer-public-brand-lockup > span { display: grid; min-width: 0; gap: 3px; overflow-wrap: anywhere; }
.site-footer-public-brand-lockup strong { color: #fff; font-size: 1rem; }
.site-footer-public-brand-lockup small { color: var(--sky); font-size: .75rem; }
.site-footer-public-brand > p { max-width: 30rem; margin: 0; color: var(--sky); font-size: .9rem; line-height: 1.5; }
.site-footer-public-links { display: grid; grid-template-columns: 1fr; align-content: start; gap: 20px; }
.site-footer-public-links > div { display: grid; align-content: start; gap: 8px; }
.site-footer-public-links b { margin-bottom: 2px; color: var(--sun); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.site-footer-public-links a { width: auto; max-width: 100%; color: var(--cream); font-size: .9rem; line-height: 1.45; text-decoration: none; }
.site-footer-public-links a:hover { color: var(--sun); }
.site-footer-public-links a:focus-visible { border-radius: 4px; outline: 2px solid var(--sun); outline-offset: 3px; }
.site-footer-public-links span { max-width: 28rem; color: var(--sky); font-size: .75rem; line-height: 1.45; }
.site-footer-public-bottom { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(221,243,235,.18); padding-top: 16px; color: var(--sky); font-size: .74rem; }
@media (max-width: 560px) {
  .top-actions-help-menu { width: 100%; }
  .top-actions-help-menu .help-link { min-width: 0; flex: 1 1 auto; display: flex; align-items: center; justify-content: center; }
  .mobile-map-page .top-actions-help-menu .help-link { display: flex; }
  .site-footer-public-toggle,
  .site-footer-public[open] .site-footer-public-toggle { width: 44px; min-height: 44px; flex-basis: 44px; }
  .site-footer-public-panel { width: min(340px, calc(100vw - 52px)); gap: 22px; padding-right: 20px; padding-left: 20px; }
  .site-footer-public-links { gap: 18px; }
  .site-footer-public-bottom { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 561px) and (max-width: 980px) {
  .topbar { justify-content: flex-end; }
  .topbar > .brand,
  .top-actions .institutional-link { display: none; }
}
@media (prefers-reduced-motion: reduce) { .site-footer-public-panel { transition: none; } }
