/* MapMyAdventures – mobile-first styles. Placeholder brand: forest green, warm sun accent, paper. */

:root {
	--forest: #1f4d3a;
	--forest-2: #2b6650;
	--moss: #e5efe8;
	--sun: #f2a541;
	--sun-ink: #2a1c05;
	--paper: #f5f3ee;
	--card: #ffffff;
	--ink: #1d2622;
	--muted: #5c6862;
	--line: #e0dcd2;
	--danger: #b3261e;
	--danger-bg: #fdecea;
	--ok-bg: #e6f2ea;
	--radius: 14px;
	--radius-s: 10px;
	--shadow: 0 1px 2px rgba(20, 30, 25, .06), 0 8px 24px rgba(20, 30, 25, .08);
	--wrap: 1120px;
	--nav-h: 64px;
	--safe-b: env(safe-area-inset-bottom, 0px);
	--safe-t: env(safe-area-inset-top, 0px);
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.55 var(--font); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--forest-2); text-underline-offset: 3px; }
a:hover { color: var(--forest); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem); }
h2 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 1000; background: #fff; padding: .5em 1em; border-radius: var(--radius-s); }
.skip:focus { left: 8px; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.muted { color: var(--muted); }
.row { display: flex; flex-wrap: wrap; gap: .6rem; }
.mma-icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }

/* Logo */
.mma-logo { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; }
.mma-logo-mark { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 2px 3px rgba(20, 50, 35, .25)); }
.mma-logo-text { font-size: 1.32rem; font-weight: 850; letter-spacing: -.035em; line-height: 1; white-space: nowrap; }
.mma-logo-text__map { color: var(--forest); }
.mma-logo-text__my { color: #e8891c; font-style: italic; padding: 0 .06em 0 .02em; }
.mma-logo-text__adv { color: var(--forest-2); background: linear-gradient(90deg, #2b6650, #3f8f68); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.2rem; border: 2px solid var(--forest); border-radius: 999px; background: var(--forest); color: #fff; font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, transform .1s; }
.btn:hover { background: var(--forest-2); border-color: var(--forest-2); color: #fff; }
.btn:active { transform: scale(.98); }
.btn--small { min-height: 40px; padding: .45rem .95rem; font-size: .92rem; }
.btn--big { min-height: 56px; padding: .9rem 1.8rem; font-size: 1.1rem; }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; color: var(--forest); }
.btn--ghost:hover { background: var(--moss); color: var(--forest); }
.btn--sun { background: var(--sun); border-color: var(--sun); color: var(--sun-ink); }

/* Cards, notices */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; }
.card + .card { margin-top: 1rem; }
.notice { padding: .75rem 1rem; border-radius: var(--radius-s); margin: 0 0 1rem; font-size: .95rem; }
.notice--ok { background: var(--ok-bg); color: var(--forest); }
.notice--error { background: var(--danger-bg); color: var(--danger); }

/* Forms */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; margin: 0; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { font-weight: 600; font-size: .95rem; padding: 0; }
.field input[type=text], .field input[type=email], .field input[type=password], .field textarea, .field select {
	width: 100%; min-height: 50px; padding: .7rem .9rem; font: 1rem/1.4 var(--font); color: var(--ink);
	background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-s); appearance: none;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--forest-2); outline: 3px solid rgba(43, 102, 80, .18); outline-offset: 0; }
.field input[readonly] { background: var(--paper); color: var(--muted); }
.field .help { margin: 0; font-size: .88rem; color: var(--muted); overflow-wrap: anywhere; }
.field .help strong { color: var(--ink); }
.field .error { margin: 0; font-size: .88rem; color: var(--danger); }
.field.has-error input { border-color: var(--danger); }
.field .help.is-ok { color: var(--forest-2); }
.field .help.is-bad { color: var(--danger); }
.field--split { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; font-size: .95rem; }
.check, .radio { display: flex; align-items: flex-start; gap: .55rem; font-weight: 400 !important; font-size: .95rem; cursor: pointer; }
.check input, .radio input { width: 20px; height: 20px; margin: .1rem 0 0; accent-color: var(--forest); flex: none; }
.radio + .radio { margin-top: .35rem; }
.opt { font-weight: 400; color: var(--muted); }
.pw { position: relative; }
.pw input { padding-right: 3.2rem; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: none; color: var(--muted); border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.pw-toggle[aria-pressed=true] { color: var(--forest); }

/* Marketing header / footer */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245, 243, 238, .92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); padding-top: var(--safe-t); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.site-header__brand { text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: .9rem; }
.site-nav__link { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
@media (max-width: 420px) { .site-header .mma-logo-text { font-size: 1.08rem; } .site-header .mma-logo-mark { width: 34px; height: 34px; } .site-header .btn--small { padding: .4rem .75rem; } }
@media (max-width: 350px) { .site-header .mma-logo-text { display: none; } }
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 calc(2rem + var(--safe-b)); margin-top: 3rem; }
.site-footer__in { display: grid; gap: .4rem; }
.site-footer__small { margin: 0; color: var(--muted); font-size: .9rem; }

/* Home (placeholder) */
.hero { padding: clamp(2.5rem, 8vw, 6rem) 0 2.5rem; background: radial-gradient(1200px 400px at 70% 0, var(--moss), transparent 70%); }
.hero h1 { font-size: clamp(2rem, 1.3rem + 4vw, 3.6rem); max-width: 16ch; }
.hero__sub { font-size: 1.15rem; color: var(--muted); max-width: 46ch; }
.steps { display: grid; gap: 1rem; padding: 1rem 0 2rem; }
.step { background: var(--card); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.step__n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--sun); color: var(--sun-ink); font-weight: 800; margin-bottom: .6rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.content { padding: 2rem 0; }
.prose { max-width: 70ch; }

/* Auth pages */
.auth { padding: clamp(1.5rem, 6vw, 4rem) 16px calc(2rem + var(--safe-b)); display: grid; justify-items: center; }
.auth__card { width: min(100%, 440px); padding: clamp(1.25rem, 4vw, 2rem); }
.auth__card h1 { font-size: 1.6rem; }
.auth__alt { margin: 1.25rem 0 0; text-align: center; font-size: .95rem; }

/* ---------- App shell ---------- */
.mma-app { background: var(--paper); }
.app { min-height: 100dvh; }
.app-nav {
	position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
	height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
	background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); backdrop-filter: blur(8px);
}
.app-nav__brand, .app-nav__public { display: none; }
.app-nav__list { list-style: none; margin: 0; padding: 0 4px; height: var(--nav-h); display: grid; grid-template-columns: repeat(4, 1fr); align-items: stretch; }
.app-nav__link { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 600; -webkit-tap-highlight-color: transparent; }
.app-nav__link .mma-icon { width: 26px; height: 26px; }
.app-nav__link[aria-current=page] { color: var(--forest); }
.app-nav__item--upload .app-nav__link { color: var(--forest); }
.app-nav__item--upload .app-nav__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-top: -22px; border-radius: 50%; background: var(--sun); color: var(--sun-ink); box-shadow: 0 6px 16px rgba(242, 165, 65, .45); border: 4px solid #fff; }
.app-nav__item--upload .app-nav__icon .mma-icon { width: 24px; height: 24px; }
.app-main { padding: calc(1rem + var(--safe-t)) 16px calc(var(--nav-h) + var(--safe-b) + 1.5rem); }
.app-page { max-width: 960px; margin: 0 auto; }
.app-page--narrow { max-width: 620px; }
.app-page__head { margin-bottom: 1rem; }
.app-page__head h1 { font-size: 1.6rem; margin: 0; }
.back { display: inline-block; margin-bottom: .4rem; text-decoration: none; font-weight: 600; font-size: .95rem; }
.verify-banner { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; background: #fff6e6; border: 1px solid #f3d7a6; color: #5a3d0c; border-radius: var(--radius-s); padding: .65rem .9rem; margin-bottom: 1rem; font-size: .92rem; }
.app-main--map .verify-banner, .app-main--map > .notice { position: absolute; z-index: 6; left: 12px; right: 12px; top: calc(64px + var(--safe-t)); margin: 0; box-shadow: var(--shadow); }
.app-main--map > .notice + .notice, .app-main--map .verify-banner + .notice { top: calc(130px + var(--safe-t)); }

@media (min-width: 900px) {
	.app { display: grid; grid-template-columns: 248px 1fr; }
	.app-nav { position: sticky; top: 0; bottom: auto; height: 100dvh; padding: 1.25rem .9rem; border-top: 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 1.5rem; }
	.app-nav__brand { display: block; padding: 0 .5rem; text-decoration: none; }
	.app-nav__list { height: auto; display: flex; flex-direction: column; gap: .25rem; padding: 0; }
	.app-nav__item--upload { order: -1; margin-bottom: .75rem; }
	.app-nav__link { flex-direction: row; justify-content: flex-start; gap: .75rem; padding: .7rem .8rem; border-radius: var(--radius-s); font-size: 1rem; }
	.app-nav__link:hover { background: var(--paper); color: var(--ink); }
	.app-nav__link[aria-current=page] { background: var(--moss); }
	.app-nav__item--upload .app-nav__link { background: var(--sun); color: var(--sun-ink); justify-content: center; border-radius: 999px; }
	.app-nav__item--upload .app-nav__link:hover { background: #f5b25d; }
	.app-nav__item--upload .app-nav__icon { width: auto; height: auto; margin: 0; border: 0; background: none; box-shadow: none; color: inherit; }
	.app-nav__public { display: flex; gap: .6rem; align-items: flex-start; margin-top: auto; padding: .8rem; border-radius: var(--radius-s); background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
	.app-nav__public small { display: block; font-weight: 400; color: var(--muted); overflow-wrap: anywhere; }
	.app-main { padding: 2rem 2rem 3rem; }
	.app-main--map .verify-banner, .app-main--map > .notice { left: 1rem; right: auto; max-width: 560px; top: 4.5rem; }
}

/* Map screens */
.app-main--map { position: fixed; inset: 0 0 calc(var(--nav-h) + var(--safe-b)) 0; padding: 0; }
@media (min-width: 900px) { .app-main--map { position: relative; inset: auto; height: 100dvh; } }
.map-wrap { position: relative; height: 100%; min-height: 320px; background: #dfe7e2; overflow: hidden; }
.map-wrap > .map { position: absolute; inset: 0; }
.map-top { position: absolute; z-index: 5; top: calc(10px + var(--safe-t)); left: 10px; right: 10px; display: flex; gap: .5rem; pointer-events: none; }
.map-top > * { pointer-events: auto; }
.chips { list-style: none; margin: -6px -6px 0; padding: 6px 6px 12px; display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; }
.chip { flex: none; background: rgba(255, 255, 255, .95); border-radius: 999px; padding: .4rem .8rem; font-size: .85rem; box-shadow: var(--shadow); white-space: nowrap; }
.chip b { color: var(--forest); }
.map-empty { position: absolute; z-index: 5; left: 12px; right: 12px; bottom: 40px; text-align: center; padding: 1.4rem 1.2rem; }
.map-empty h2 { font-size: 1.2rem; }
.map-empty p { color: var(--muted); font-size: .95rem; }
.map-empty__art, .empty__art { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--moss); color: var(--forest); margin-bottom: .6rem; }
.map-empty__art .mma-icon, .empty__art .mma-icon { width: 28px; height: 28px; }
@media (min-width: 600px) { .map-empty { left: 50%; right: auto; transform: translateX(-50%); width: 420px; bottom: 44px; } }
.maplibregl-ctrl-bottom-right { bottom: 0; }
.mma-app .maplibregl-ctrl-top-right { top: calc(48px + var(--safe-t)); }

/* Empty states */
.empty { text-align: center; padding: 2rem 1.25rem; }
.empty p { color: var(--muted); max-width: 42ch; margin-inline: auto; }

/* Profile */
.profile-link__url { font-weight: 600; overflow-wrap: anywhere; }

/* Public profile */
.public__head { display: flex; gap: 1rem; align-items: center; padding: 1.25rem 0; }
.public__head h1 { font-size: 1.6rem; margin: 0; }
.public__bio { margin: .2rem 0 0; color: var(--muted); }
.avatar { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--forest); color: #fff; font-weight: 700; font-size: 1.4rem; }
.public__map { height: min(70dvh, 640px); }
.made-with { text-align: center; font-size: .9rem; padding: 1rem 0; }
.mma-page.mma-route-profile .site-footer { margin-top: 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.map-fail { position: absolute; z-index: 4; left: 50%; top: 40%; transform: translate(-50%, -50%); width: min(90%, 360px); margin: 0; padding: .8rem 1rem; background: #fff; border-radius: var(--radius-s); box-shadow: var(--shadow); text-align: center; font-size: .92rem; color: var(--muted); }

/* ---------- Upload ---------- */
.upload-page .card + .card, .upload-page .card + ul, .upload-page ul + .card { margin-top: 1rem; }
.tip { display: flex; gap: .9rem; align-items: flex-start; background: #fff6e6; box-shadow: none; border: 1px solid #f3d7a6; margin-bottom: 1rem; }
.tip h2 { font-size: 1.05rem; margin-bottom: .3rem; }
.tip p { font-size: .95rem; }
.tip__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sun); color: var(--sun-ink); }
.drop { text-align: center; padding: 2rem 1.25rem; border: 2px dashed transparent; transition: border-color .15s, background .15s; }
.can-drop .drop { border-color: var(--line); }
.drop.is-over { border-color: var(--forest-2); background: var(--moss); }
.drop__art { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--moss); color: var(--forest); margin-bottom: .6rem; }
.drop__art .mma-icon { width: 30px; height: 30px; }
.drop__title { font-weight: 700; font-size: 1.1rem; }
.drop__pick { cursor: pointer; }
.drop__pick:focus-within { outline: 3px solid var(--sun); outline-offset: 2px; }
.drop__hint { margin: .8rem 0 0; color: var(--muted); }
.drop__hint--desktop { display: none; }
.can-drop .drop__hint--desktop { display: block; }
.drop__small { margin: .8rem 0 0; font-size: .85rem; color: var(--muted); }
.process-bar { position: sticky; z-index: 10; bottom: calc(var(--nav-h) + var(--safe-b) + 10px); display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; border: 1px solid var(--line); }
.process-bar__text { margin: 0; font-weight: 600; }
@media (min-width: 900px) { .process-bar { bottom: 16px; } }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.uploads { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.up { position: relative; display: grid; grid-template-columns: 1fr auto; gap: .1rem .8rem; padding: .65rem .9rem .8rem; background: #fff; border-radius: var(--radius-s); overflow: hidden; font-size: .92rem; }
.up__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.up__meta { grid-column: 1; color: var(--muted); font-size: .85rem; }
.up__act { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.up__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--paper); }
.up__bar span { display: block; height: 100%; width: 0; background: var(--forest-2); transition: width .2s; }
.up.is-done .up__meta { color: var(--forest-2); }
.up.is-dup .up__meta { color: var(--muted); }
.up.is-error .up__meta, .up.is-failed .up__meta { color: var(--danger); }
.up.is-error .up__bar span, .up.is-failed .up__bar span { background: var(--danger); }
.link { border: 0; background: none; color: var(--forest-2); font: 600 .92rem var(--font); text-decoration: underline; cursor: pointer; padding: .4rem; }
.bar { height: 12px; border-radius: 99px; background: var(--paper); overflow: hidden; margin: .4rem 0 .8rem; }
.bar span { display: block; height: 100%; width: 0; background: var(--forest-2); border-radius: 99px; transition: width .4s; }
.small { font-size: .85rem; }
.results__summary h2 { margin-bottom: .4rem; }
.results__summary .warn { color: #7a4f0b; }
.results__summary .bad { color: var(--danger); margin-bottom: .3rem; }
.fails { margin: 0 0 1rem; padding-left: 1.2rem; font-size: .9rem; color: var(--muted); }
.thumbs { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 4px; }
.thumb { position: relative; aspect-ratio: 1; background: var(--line); border-radius: 6px; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.is-nogps img { opacity: .65; }
.thumb__flag { position: absolute; left: 4px; right: 4px; bottom: 4px; padding: .1rem .3rem; border-radius: 4px; background: rgba(0, 0, 0, .65); color: #fff; font-size: .7rem; text-align: center; }

/* ---------- Adventure cards and page ---------- */
.adv-cards { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.adv-card a { display: block; height: 100%; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; color: var(--ink); text-decoration: none; transition: transform .15s; }
.adv-card a:hover { transform: translateY(-2px); }
.adv-card__pic { display: block; aspect-ratio: 4 / 3; background: var(--moss); }
.adv-card__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.adv-card__body { display: grid; gap: .25rem; padding: .8rem 1rem 1rem; justify-items: start; }
.adv-card__title { font-weight: 700; line-height: 1.3; }
.adv-card__meta { color: var(--muted); font-size: .88rem; }
.badge { display: inline-block; margin-top: .2rem; padding: .1rem .55rem; border-radius: 99px; font-size: .75rem; font-weight: 700; background: var(--moss); color: var(--forest); }
.badge--private { background: #eee; color: #555; }
.badge--link { background: #fff1d6; color: #7a4f0b; }
.notice--warn { background: #fff6e6; color: #5a3d0c; }
.adv__hero { display: block; width: 100%; max-height: 60vh; object-fit: cover; border-radius: var(--radius); margin: .5rem 0 1rem; }
.adv__head h1 { font-size: clamp(1.4rem, 1.1rem + 1.5vw, 2rem); }
.facts { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem .5rem; }
.facts li { background: var(--card); border-radius: 99px; padding: .3rem .75rem; font-size: .9rem; box-shadow: var(--shadow); }

/* ---------- App map: tools, markers, sheet ---------- */
.map-top { flex-direction: column; align-items: flex-start; }
.map-tools { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; max-width: calc(100% - 50px); }
.map-tools__search, .map-tools__year { min-height: 40px; border: 0; border-radius: 99px; padding: .4rem .9rem; font: .92rem var(--font); background: rgba(255, 255, 255, .97); box-shadow: var(--shadow); color: var(--ink); }
.map-tools__search { width: 13rem; max-width: 100%; }
.map-tools__count { font-size: .82rem; background: rgba(255, 255, 255, .9); border-radius: 99px; padding: .2rem .6rem; }
.map-tools__count:empty { display: none; }
.map-btns { position: absolute; z-index: 5; right: 10px; bottom: 36px; display: grid; gap: .4rem; justify-items: end; }
.has-sheet .map-btns { display: none; }
.map-btn { display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; padding: .4rem .85rem; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .97); box-shadow: var(--shadow); font: 600 .88rem var(--font); color: var(--forest); cursor: pointer; }
.map-btn .mma-icon { width: 18px; height: 18px; }
@media (min-width: 900px) { .map-btns { bottom: 40px; right: 16px; } .has-sheet .map-btns { display: grid; } }

.mk { display: block; width: 50px; height: 50px; padding: 0; border-radius: 50%; border: 3px solid #fff; background: var(--moss); box-shadow: 0 2px 8px rgba(0, 0, 0, .35); overflow: hidden; cursor: pointer; transition: transform .15s, border-color .15s; }
.mk img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mk:hover, .mk:focus-visible { transform: scale(1.1); }
.mk.is-sel { border-color: var(--sun); transform: scale(1.22); z-index: 3; box-shadow: 0 0 0 4px rgba(242, 165, 65, .35), 0 4px 14px rgba(0, 0, 0, .35); }
.mk-cl { display: grid; place-items: center; width: 54px; height: 54px; padding: 0; border-radius: 50%; border: 3px solid #fff; background: var(--forest); color: #fff; font: 800 1.05rem var(--font); box-shadow: 0 0 0 6px rgba(31, 77, 58, .25), 0 2px 8px rgba(0, 0, 0, .3); cursor: pointer; }
.mk-cl:hover { background: var(--forest-2); }

.sheet { position: fixed; z-index: 30; left: 0; right: 0; bottom: calc(var(--nav-h) + var(--safe-b)); max-height: 46dvh; overflow: auto; overscroll-behavior: contain; background: #fff; border-radius: 18px 18px 0 0; box-shadow: 0 -8px 30px rgba(0, 0, 0, .18); padding: 0 1rem 1rem; transition: max-height .25s ease; }
.sheet.is-open { max-height: calc(100dvh - var(--nav-h) - var(--safe-b) - 60px); }
.sheet__handle { display: block; width: 100%; height: 26px; border: 0; background: none; cursor: grab; position: sticky; top: 0; z-index: 1; background: #fff; }
.sheet__handle span { display: block; width: 44px; height: 5px; margin: 0 auto; border-radius: 99px; background: var(--line); }
.sheet__head { display: grid; grid-template-columns: 88px 1fr auto; gap: .8rem; align-items: center; margin-bottom: .7rem; }
.sheet__hero { width: 88px; height: 88px; object-fit: cover; border-radius: 12px; cursor: zoom-in; background: var(--moss); }
.sheet.is-open .sheet__head { grid-template-columns: 1fr auto; }
.sheet.is-open .sheet__hero { grid-column: 1 / -1; grid-row: 1; width: 100%; height: auto; max-height: 40vh; aspect-ratio: 4 / 3; }
.sheet__title { font-size: 1.05rem; margin: 0 0 .15rem; }
.sheet__meta { margin: 0; color: var(--muted); font-size: .88rem; }
.sheet__close { align-self: start; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--paper); font-size: 1.5rem; line-height: 1; color: var(--muted); cursor: pointer; }
.strip { list-style: none; margin: 0 -1rem .9rem; padding: 0 1rem; display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; min-height: 88px; }
.strip li { flex: none; scroll-snap-align: start; }
.strip__btn { position: relative; display: block; width: 88px; height: 88px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--moss); cursor: zoom-in; }
.strip__btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.strip__flag { position: absolute; left: 3px; right: 3px; bottom: 3px; border-radius: 4px; background: rgba(0, 0, 0, .65); color: #fff; font-size: .62rem; }
.sheet.is-open .strip { flex-wrap: wrap; overflow: visible; margin: 0 0 .9rem; padding: 0; }
.sheet.is-open .strip li { width: calc((100% - 12px) / 3); }
.sheet.is-open .strip__btn { width: 100%; height: auto; aspect-ratio: 1; }
@media (min-width: 900px) {
	.sheet { position: absolute; left: 16px; right: auto; top: 16px; bottom: auto; width: 380px; max-height: calc(100% - 32px); border-radius: var(--radius); padding: 1rem; }
	.sheet__handle { display: none; }
	.sheet__head { grid-template-columns: 1fr auto; }
	.sheet__hero { grid-column: 1 / -1; grid-row: 1; width: 100%; height: auto; aspect-ratio: 4 / 3; }
	.strip { flex-wrap: wrap; overflow: visible; margin: 0 0 .9rem; padding: 0; }
	.strip li { width: calc((100% - 12px) / 3); }
	.strip__btn { width: 100%; height: auto; aspect-ratio: 1; }
	.has-sheet .map-top { left: 412px; }
}
.pswp__caption-custom, .pswp [class*="caption"] { position: absolute; left: 0; right: 0; bottom: calc(12px + var(--safe-b)); text-align: center; color: #fff; font-size: .9rem; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); pointer-events: none; }

/* ---------- Adventure page, editing, Unsorted ---------- */
.adv__top { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: flex-start; justify-content: space-between; margin: .4rem 0 .6rem; }
.adv__top h1 { margin-bottom: .5rem; }
.adv__btns { display: flex; gap: .5rem; flex-wrap: wrap; }
.facts__privacy { font-weight: 700; }
.facts .badge--link { background: #fff1d6; color: #7a4f0b; }
.facts .badge--private { background: #eee; color: #555; }
.facts .badge--public { background: var(--moss); color: var(--forest); }
.adv__herobtn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.adv__hero { margin-top: 0; }
.adv__story { margin: 0 0 1rem; font-size: 1.05rem; }
.minimap { position: relative; height: 260px; border-radius: var(--radius); overflow: hidden; margin: 0 0 1rem; background: var(--moss); }
@media (min-width: 900px) { .minimap { height: 340px; } }
.editpanel { margin-bottom: 1rem; }
.editpanel hr { border: 0; border-top: 1px solid var(--line); margin: 1.2rem 0 .8rem; }
.btn--danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn--danger:hover { background: #8f1d17; border-color: #8f1d17; }

.gallery { list-style: none; margin: 0; padding: 0; columns: 2 160px; column-gap: 6px; }
@media (min-width: 900px) { .gallery { columns: 3 220px; } }
.gallery__item { break-inside: avoid; margin: 0 0 6px; }
.gallery__btn { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--moss); cursor: zoom-in; }
.gallery__btn img { display: block; width: 100%; height: auto; transition: transform .15s, opacity .15s; }
.gallery__cap { margin: .25rem .2rem .4rem; font-size: .85rem; color: var(--muted); }
.gallery__tag, .gallery__flag { position: absolute; left: 6px; bottom: 6px; padding: .1rem .45rem; border-radius: 6px; background: rgba(0, 0, 0, .65); color: #fff; font-size: .72rem; }
.gallery__tag { background: var(--sun); color: var(--sun-ink); font-weight: 700; }
.gallery__tick { position: absolute; top: 8px; right: 8px; display: none; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; background: rgba(0, 0, 0, .25); color: transparent; }
.gallery__tick .mma-icon { width: 18px; height: 18px; }
.is-editing .gallery__btn { cursor: pointer; }
.is-editing .gallery__tick { display: grid; }
.gallery__btn[aria-pressed=true] { outline: 4px solid var(--sun); outline-offset: -4px; }
.gallery__btn[aria-pressed=true] img { transform: scale(.94); opacity: .85; }
.gallery__btn[aria-pressed=true] .gallery__tick { background: var(--sun); border-color: #fff; color: var(--sun-ink); }

.actionbar { position: fixed; z-index: 35; left: 8px; right: 8px; bottom: calc(var(--nav-h) + var(--safe-b) + 8px); background: #fff; border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0, 0, 0, .22); padding: .7rem .8rem; }
.actionbar__count { margin: 0 0 .5rem; font-weight: 700; font-size: .92rem; }
.actionbar__btns { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chipbtn { flex: none; min-height: 40px; padding: .4rem .8rem; border: 1.5px solid var(--line); border-radius: 99px; background: #fff; font: 600 .88rem var(--font); color: var(--ink); cursor: pointer; white-space: nowrap; }
.chipbtn:hover { border-color: var(--forest-2); }
.chipbtn:disabled { opacity: .4; cursor: not-allowed; }
.chipbtn--danger { color: var(--danger); border-color: #f0c7c4; }
.chipbtn--plain { border-color: transparent; color: var(--muted); }
.has-actionbar .app-main { padding-bottom: calc(var(--nav-h) + var(--safe-b) + 140px); }
@media (min-width: 900px) { .actionbar { left: calc(248px + 2rem); right: 2rem; bottom: 1rem; max-width: 900px; } .has-actionbar .app-main { padding-bottom: 140px; } }

.dlg { border: 0; border-radius: var(--radius); padding: 0; width: min(94vw, 460px); max-height: 88dvh; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); color: var(--ink); }
.dlg::backdrop { background: rgba(20, 30, 25, .45); }
.dlg--wide { width: min(94vw, 680px); }
.dlg--map { width: min(96vw, 760px); }
.dlg__in { display: grid; gap: .8rem; padding: 1.2rem; max-height: 88dvh; overflow: auto; }
.dlg__in h2 { margin: 0; font-size: 1.2rem; }
.dlg__in p { margin: 0; }
.dlg__in textarea { width: 100%; min-height: 90px; padding: .7rem .9rem; font: 1rem/1.4 var(--font); border: 1.5px solid var(--line); border-radius: var(--radius-s); }
.dlg__search { min-height: 44px; padding: .5rem .9rem; border: 1.5px solid var(--line); border-radius: 99px; font: 1rem var(--font); }
.dlg__btns { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
.dlg__map { position: relative; height: min(55dvh, 440px); border-radius: var(--radius-s); overflow: hidden; background: var(--moss); }
.dlg--sheet { margin: auto auto 0; width: min(100vw, 560px); max-width: 100vw; border-radius: 18px 18px 0 0; padding-bottom: var(--safe-b); }
@media (min-width: 700px) { .dlg--sheet { margin: auto; border-radius: var(--radius); } }
.pick { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; max-height: 50dvh; overflow: auto; }
.pick__btn { display: grid; width: 100%; text-align: left; gap: .1rem; padding: .7rem .8rem; border: 1.5px solid var(--line); border-radius: var(--radius-s); background: #fff; font: inherit; cursor: pointer; }
.pick__btn:hover, .pick__btn:focus-visible { border-color: var(--forest-2); background: var(--paper); }
.pick__title { font-weight: 700; }
.pick__meta { font-size: .85rem; color: var(--muted); }
.pickphotos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 5px; max-height: 55dvh; overflow: auto; }
.pickphoto { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--moss); }
.pickphoto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pickphoto .gallery__tick { display: grid; color: transparent; font-weight: 800; }
.pickphoto[aria-pressed=true] { outline: 4px solid var(--sun); outline-offset: -4px; }
.pickphoto[aria-pressed=true] .gallery__tick { background: var(--sun); color: var(--sun-ink); }

.toast { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + var(--safe-b) + 16px); display: flex; align-items: center; gap: 1rem; max-width: calc(100vw - 24px); padding: .75rem 1rem; border-radius: 12px; background: #1d2622; color: #fff; box-shadow: 0 8px 30px rgba(0, 0, 0, .3); font-size: .95rem; }
.has-actionbar .toast { bottom: calc(var(--nav-h) + var(--safe-b) + 130px); }
.toast__undo { border: 0; background: none; color: var(--sun); font: 700 .95rem var(--font); cursor: pointer; padding: .2rem .3rem; }
@media (min-width: 900px) { .toast { bottom: 24px; left: calc(50% + 124px); } .has-actionbar .toast { bottom: 130px; } }

.tray { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--ink); margin-bottom: 1rem; border: 1px solid #f3d7a6; background: #fffaf0; }
.tray__pics { display: flex; flex: none; }
.tray__pics img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; border: 2px solid #fff; margin-left: -12px; }
.tray__pics img:first-child { margin-left: 0; }
.tray__text { display: grid; flex: 1; font-size: .92rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .5rem; }
.filters input, .filters select { min-height: 44px; padding: .45rem .9rem; border: 1.5px solid var(--line); border-radius: 99px; font: .95rem var(--font); background: #fff; color: var(--ink); }
.filters input { flex: 1 1 200px; }
.filters__count { font-size: .9rem; }

.help-btn { position: absolute; z-index: 20; top: calc(10px + var(--safe-t)); right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; box-shadow: var(--shadow); font: 800 1.1rem var(--font); color: var(--forest); cursor: pointer; }
.app-main:not(.app-main--map) { position: relative; }
.app-main--map .help-btn { top: auto; right: auto; left: 10px; bottom: 40px; }
.has-sheet .app-main--map .help-btn { display: none; }
@media (min-width: 900px) { .help-btn { top: 1.5rem; right: 1.5rem; } .app-main--map .help-btn { left: 16px; bottom: 44px; } .has-sheet .app-main--map .help-btn { display: block; left: 412px; } }
.help-list { margin: 0; padding-left: 1.1rem; display: grid; gap: .6rem; }
.tipbubble { position: fixed; z-index: 70; width: min(280px, calc(100vw - 16px)); padding: .8rem .9rem; border-radius: 12px; background: var(--forest); color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); font-size: .92rem; }
.tipbubble::before { content: ""; position: absolute; top: -7px; left: var(--arrow, 50%); width: 14px; height: 14px; margin-left: -7px; background: var(--forest); transform: rotate(45deg); }
.tipbubble.is-above::before { top: auto; bottom: -7px; }
.tipbubble p { margin: 0 0 .5rem; }
.tipbubble button { border: 0; border-radius: 99px; padding: .35rem .9rem; background: var(--sun); color: var(--sun-ink); font: 700 .85rem var(--font); cursor: pointer; }

/* ---------- Public pages (visitor shell) ---------- */
.app-nav__who { display: none; }
.app-nav__list--3 { grid-template-columns: repeat(3, 1fr); }
.avatar--s { width: 30px; height: 30px; font-size: .9rem; }
.who-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .35rem .3rem .3rem; border-radius: 99px; background: rgba(255, 255, 255, .97); box-shadow: var(--shadow); font-size: .95rem; }
.who-pill__share { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--moss); color: var(--forest); cursor: pointer; }
.who-pill__share .mma-icon { width: 18px; height: 18px; }
.owner-bar { position: relative; z-index: 8; margin: 0 0 1rem; padding: .55rem .9rem; border-radius: var(--radius-s); background: #fff6e6; border: 1px solid #f3d7a6; color: #5a3d0c; font-size: .88rem; }
.app-main--map .owner-bar { position: absolute; left: 10px; right: 10px; bottom: 40px; margin: 0; box-shadow: var(--shadow); }
.has-sheet .owner-bar { display: none; }
.public-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: .3rem 0 .8rem; }
.public-head__text { flex: 1 1 200px; }
.public-head h1 { margin: 0; font-size: 1.6rem; }
.public-head__bio { margin: .2rem 0 0; color: var(--muted); }
.chips--page { margin-bottom: 1.2rem; flex-wrap: wrap; overflow: visible; }
.chips--page .chip { box-shadow: none; border: 1px solid var(--line); }
.adv-cards--strip { margin-bottom: 1.5rem; }
.about-made { margin-top: 1rem; }
.made-with { text-align: center; font-size: .9rem; padding: 1.5rem 0 .5rem; }
.form__h { font-size: 1.1rem; margin: .8rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.homepick { position: relative; height: 240px; border-radius: var(--radius-s); overflow: hidden; background: var(--moss); margin: .3rem 0 .5rem; }
.select { min-height: 48px; padding: .5rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-s); font: 1rem var(--font); background: #fff; }
@media (min-width: 900px) {
	.app-nav__who { display: flex; align-items: center; gap: .6rem; padding: .3rem .5rem; color: var(--ink); text-decoration: none; font-weight: 700; }
	.app-nav__list--3 { display: flex; }
	.app-main--map .owner-bar { left: 16px; right: auto; max-width: 520px; bottom: 44px; }
}

/* ---------- Marketing site ---------- */
.center { text-align: center; }
.narrow { max-width: 760px; }
.eyebrow { margin: 0 0 .5rem; color: var(--forest-2); font-weight: 800; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 52ch; }
.page-hero .center .lead, .page-hero.center .lead { margin-inline: auto; }
.todo { display: inline-block; margin: .5rem 0; padding: .2rem .5rem; border: 1px dashed #c47a00; border-radius: 6px; background: #fff3d6; color: #7a4f0b; font: 600 .8rem var(--font); }
mark { background: #fff3d6; color: #7a4f0b; padding: 0 .2em; border-radius: 3px; }
.draft-note { padding: .7rem 1rem; border-radius: var(--radius-s); background: #fff3d6; color: #5a3d0c; }

/* Header + menu */
.site-nav__menu { display: flex; list-style: none; margin: 0; padding: 0; gap: 1.2rem; align-items: center; }
.site-nav__link[aria-current=page] { color: var(--forest-2); text-decoration: underline; text-underline-offset: 6px; }
.site-nav__toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; border-radius: 10px; }
.burger, .burger::before, .burger::after { display: block; width: 22px; height: 2px; margin: 0 auto; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s, opacity .2s; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -7px; } .burger::after { top: 7px; }
.menu-open .burger { background: transparent; }
.menu-open .burger::before { transform: translateY(7px) rotate(45deg); }
.menu-open .burger::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 820px) {
	.site-nav__toggle { display: block; order: 2; }
	.site-nav__menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 16px 1rem; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0, 0, 0, .08); }
	.menu-open .site-nav__menu { display: flex; }
	.site-nav__menu .site-nav__link { display: block; padding: .8rem .2rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
	.site-header__in { position: static; }
	.site-header { position: sticky; }
}
@media (min-width: 821px) { .site-nav__login { margin-left: .4rem; } }

/* Hero */
.home .hero { padding: clamp(2rem, 6vw, 5rem) 0 clamp(2rem, 5vw, 4rem); }
.hero__grid { display: grid; gap: 2rem; align-items: center; }
.home .hero h1 { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.8rem); max-width: 15ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.4rem 0 .6rem; }
.hero__small { color: var(--muted); font-size: .92rem; }
.hero__phone { justify-self: center; text-align: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.15fr .85fr; } }
.phone { width: min(300px, 78vw); padding: 10px; border-radius: 44px; background: #1d2622; box-shadow: 0 30px 60px rgba(20, 40, 30, .35), inset 0 0 0 2px #3a4a43; }
.phone img { display: block; width: 100%; height: auto; border-radius: 34px; }
.phone--s { width: min(260px, 70vw); justify-self: center; }

/* Steps band */
.steps-band { background: #fff; padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.steps3 { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: 1rem; }
.steps3 li { padding: 1.3rem; border-radius: var(--radius); background: var(--paper); }
.steps3__n { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: .6rem; border-radius: 50%; background: var(--sun); color: var(--sun-ink); font-weight: 800; }
@media (min-width: 760px) { .steps3 { grid-template-columns: repeat(3, 1fr); } }

/* Demo */
.demo-band { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.demo { margin: 1.2rem 0; }
.demo__map { height: min(70vh, 560px); border-radius: var(--radius); box-shadow: var(--shadow); }
.demo--tall .demo__map { height: min(78vh, 720px); }
.demo .sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 62%; }
.demo .sheet.is-open { max-height: 92%; }
@media (min-width: 900px) { .demo .sheet { left: 12px; right: auto; top: 12px; bottom: auto; width: 340px; max-height: calc(100% - 24px); } }
.demo__hint { position: absolute; z-index: 4; left: 50%; bottom: 40px; transform: translateX(-50%); margin: 0; padding: .35rem .8rem; border-radius: 99px; background: rgba(29, 38, 34, .8); color: #fff; font-size: .85rem; pointer-events: none; white-space: nowrap; }
.has-sheet .demo__hint { display: none; }
.demo .map-top { top: 10px; }
.demo__fallback img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.mma-page:not(.mma-app) .map-btns { bottom: 36px; }

/* Feature tiles */
.features { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.tiles { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.tile { padding: 1.3rem; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.tile h3 { font-size: 1.1rem; margin: .4rem 0 .4rem; }
.tile p { margin: 0; color: var(--muted); }
.tile__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--moss); color: var(--forest); }

/* Your page */
.yourpage-band { background: var(--forest); color: #eef5f0; padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.yourpage-band h2 { color: #fff; }
.yourpage { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .yourpage { grid-template-columns: .8fr 1.2fr; } }
.browser { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px rgba(0, 0, 0, .3); }
.browser__bar { display: flex; align-items: center; gap: 6px; padding: .55rem .8rem; background: #e9e6df; }
.browser__bar span { width: 11px; height: 11px; border-radius: 50%; background: #cfcac0; }
.browser__bar p { flex: 1; margin: 0 0 0 .6rem; padding: .2rem .7rem; border-radius: 99px; background: #fff; color: var(--muted); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser img { display: block; width: 100%; height: auto; }

/* Pricing */
.pricing-teaser { padding: clamp(2.5rem, 6vw, 4.5rem) 0 1rem; }
.plans { display: grid; gap: 1rem; margin: 1.5rem auto; max-width: 820px; }
@media (min-width: 700px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { position: relative; padding: 1.6rem; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .4rem; }
.plan h2, .plan h3 { margin: 0; font-size: 1.3rem; }
.plan--best { outline: 3px solid var(--sun); }
.plan__tag { position: absolute; top: -12px; right: 16px; margin: 0; padding: .15rem .7rem; border-radius: 99px; background: var(--sun); color: var(--sun-ink); font-weight: 800; font-size: .8rem; }
.plan__price { margin: .2rem 0; font-size: 2.2rem; font-weight: 800; color: var(--forest); }
.plan__price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.plan .btn { margin-top: auto; }
.ticks { list-style: none; margin: .6rem 0 1rem; padding: 0; display: grid; gap: .45rem; }
.ticks li { padding-left: 1.6rem; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--forest-2); font-weight: 800; }

/* FAQ */
.faq-band { padding: clamp(2rem, 5vw, 4rem) 0; }
.faq { max-width: 760px; margin: 1.2rem auto; display: grid; gap: .6rem; }
.faq details { background: #fff; border-radius: var(--radius-s); box-shadow: var(--shadow); }
.faq summary { padding: 1rem 1.2rem; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--forest-2); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 1.2rem 1.1rem; color: var(--muted); }

.final-cta { padding: clamp(3rem, 7vw, 5rem) 0; background: radial-gradient(900px 300px at 50% 100%, var(--moss), transparent 70%); }
.final-cta h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); }

/* Inner pages */
.page-hero { padding: clamp(2rem, 6vw, 4rem) 0 1.5rem; }
.page-hero h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); }
.page-hero .center, .page-hero.center { text-align: center; }
.page-hero .wrap.center .lead { margin-inline: auto; }
.split { display: grid; gap: 1.5rem; align-items: center; padding: 1.5rem 0 2.5rem; }
@media (min-width: 900px) { .split { grid-template-columns: 1.2fr .8fr; gap: 3rem; } .split--flip > :first-child { order: 2; } }
.callout { margin: 1rem 0; padding: 1rem 1.2rem; border-radius: var(--radius-s); background: #fff6e6; border: 1px solid #f3d7a6; color: #5a3d0c; }
.prose h2 { margin-top: 1.8rem; font-size: 1.3rem; }
.prose ul { padding-left: 1.2rem; }
.page .wrap.narrow { padding-bottom: 2rem; }

/* Footer */
.site-footer__grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.site-footer__h { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: .3rem 0 .6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--forest-2); text-decoration: underline; }
.site-footer__legal { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.site-footer__legal { margin-inline: auto; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Plan ---------- */
.plan-now { font-size: 1.6rem; margin: 0 0 .3rem; }
.usage { margin: .9rem 0; }
.usage__label { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 .3rem; font-size: .92rem; }
.bar--full span { background: var(--danger); }
.upgrade { border: 2px solid var(--sun); }
.bad { color: var(--danger); }

/* ---------- Profile extras ---------- */
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar--l { width: 88px; height: 88px; font-size: 2rem; }
.profile-top { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.profile-top h2 { margin: 0 0 .2rem; }
.plan-strip { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.plan-strip .eyebrow { margin: 0 0 .1rem; }
.plan-strip__name { margin: 0; font-size: 1.15rem; }
.avatar-edit { display: grid; gap: .5rem; justify-items: center; }
.avatar-edit .btn { cursor: pointer; }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary h2 { margin: 0; }
.acc summary::after { content: "›"; color: var(--muted); font-size: 1.4rem; transform: rotate(90deg); }
.acc[open] summary::after { transform: rotate(-90deg); }
.acc .form { margin-top: 1rem; }
.acc--danger { border: 1px solid #f0c7c4; }
.acc--danger h2 { color: var(--danger); }

/* ---------- Onboarding intro ---------- */
.intro { width: min(94vw, 440px); padding: 0; overflow: hidden; }
.intro__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.intro__track::-webkit-scrollbar { display: none; }
.intro__card { flex: 0 0 100%; scroll-snap-align: start; padding: 2rem 1.6rem 1rem; text-align: center; }
.intro__card h2 { font-size: 1.4rem; }
.intro__card p { color: var(--muted); }
.intro__art { display: inline-grid; place-items: center; width: 84px; height: 84px; margin-bottom: 1rem; border-radius: 50%; background: var(--moss); color: var(--forest); }
.intro__art .mma-icon { width: 40px; height: 40px; }
.intro__tip { padding: .6rem .8rem; border-radius: var(--radius-s); background: #fff6e6; color: #5a3d0c !important; font-size: .92rem; }
.intro__foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1.2rem 1.2rem; }
.intro__dots { display: flex; gap: .4rem; }
.intro__dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: var(--line); cursor: pointer; }
.intro__dots button[aria-current=true] { background: var(--forest); width: 24px; border-radius: 99px; }
.is-busy { opacity: .6; pointer-events: none; }
.hero__sub--2 { margin-top: -.3rem; font-weight: 600; color: var(--forest-2); }
.howtos { display: grid; gap: .6rem; margin: 1rem 0 2rem; }
.howto { background: #fff; border-radius: var(--radius-s); box-shadow: var(--shadow); }
.howto summary { padding: 1rem 1.2rem; font-weight: 700; cursor: pointer; list-style: none; }
.howto summary::-webkit-details-marker { display: none; }
.howto summary::before { content: "→ "; color: var(--forest-2); }
.howto__body { display: grid; gap: 1rem; padding: 0 1.2rem 1.2rem; align-items: start; }
.howto__body ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }
.howto__shot { width: 180px; height: auto; border-radius: 16px; box-shadow: var(--shadow); }
@media (min-width: 700px) { .howto__body { grid-template-columns: 1fr auto; } }
.support-bar { position: absolute; z-index: 9; top: auto; bottom: 40px; left: 10px; right: 10px; margin: 0; box-shadow: var(--shadow); }

/* ---------- Home: animated product tour (sizes in cqw = % of the phone screen width) ---------- */
.tour { display: grid; justify-items: center; gap: 1rem; }
/* The phone is the size container, so the screen's text and parts scale with the phone. */
.tour__phone { width: min(310px, 80vw); container-type: inline-size; }
.tour__screen { position: relative; aspect-ratio: 390 / 844; border-radius: 34px; overflow: hidden; background: var(--paper); font: 4cqw/1.35 var(--font); color: var(--ink); user-select: none; }
.ts { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .45s, visibility 0s .45s; }
.ts.is-on { opacity: 1; visibility: visible; transition: opacity .45s; }
.ts-head { padding: 9cqw 6cqw 3cqw; font-weight: 800; font-size: 6.2cqw; }
.ts-btn { display: inline-block; padding: 2.4cqw 5cqw; border-radius: 99px; font-weight: 700; font-size: 3.8cqw; }
.ts-btn--green { background: var(--forest); color: #fff; }
.ts-btn--sun { background: var(--sun); color: var(--sun-ink); }
.ts-btn--block { display: block; text-align: center; margin-top: 3cqw; }
.ts-drop { margin: 0 5cqw; padding: 5cqw; background: #fff; border-radius: 4cqw; text-align: center; display: grid; gap: 2.5cqw; justify-items: center; box-shadow: 0 1px 6px rgba(0,0,0,.06); }
.ts-drop__icon { display: grid; place-items: center; width: 12cqw; height: 12cqw; border-radius: 50%; background: var(--moss); color: var(--forest); font-size: 6cqw; }
.ts-uploads { list-style: none; margin: 4cqw 5cqw 0; padding: 0; display: grid; gap: 2cqw; }
.ts-uploads li { display: flex; gap: 3cqw; align-items: center; padding: 2cqw; background: #fff; border-radius: 3cqw; opacity: 0; transform: translateY(4cqw); transition: opacity .3s, transform .3s; }
.ts-uploads li.is-in { opacity: 1; transform: none; }
.ts-uploads img { width: 10cqw; height: 10cqw; border-radius: 2cqw; object-fit: cover; background: var(--moss); }
.ts-uploads span { flex: 1; display: grid; gap: 1.5cqw; font-size: 3.4cqw; font-weight: 600; }
.ts-uploads i { height: 1.2cqw; border-radius: 99px; background: var(--paper); overflow: hidden; }
.ts-uploads i b { display: block; height: 100%; width: 0; background: var(--forest-2); transition: width 1.1s ease-out; }
.ts-uploads li.is-done i b { width: 100%; }
.ts-ready { position: absolute; left: 5cqw; right: 5cqw; bottom: 24cqw; display: flex; justify-content: space-between; align-items: center; padding: 3cqw 3.5cqw; background: #fff; border-radius: 3.5cqw; box-shadow: 0 4px 14px rgba(0,0,0,.1); font-weight: 700; font-size: 3.6cqw; }
.ts-card { margin: 0 5cqw; padding: 5cqw; background: #fff; border-radius: 4cqw; display: grid; gap: 2.5cqw; }
.ts-card small, .ts-note { color: var(--muted); font-size: 3.2cqw; }
.ts-bar { height: 2.6cqw; border-radius: 99px; background: var(--paper); overflow: hidden; }
.ts-bar b { display: block; height: 100%; width: 0; background: var(--forest-2); border-radius: 99px; }
.ts-found { margin: 4cqw 5cqw 0; display: grid; gap: 3cqw; opacity: 0; transform: translateY(6cqw); transition: opacity .5s, transform .5s; }
.ts-found.is-in { opacity: 1; transform: none; }
.ts-found > b { font-size: 5.4cqw; }
.ts-advcard { display: flex; gap: 3cqw; align-items: center; padding: 2.5cqw; background: #fff; border-radius: 3.5cqw; box-shadow: 0 1px 6px rgba(0,0,0,.07); }
.ts-advcard img { width: 16cqw; height: 16cqw; object-fit: cover; border-radius: 2.5cqw; }
.ts-advcard span { display: grid; gap: .8cqw; }
.ts-advcard small { color: var(--muted); font-size: 3.1cqw; }
.ts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4cqw; }
.ts-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2cqw; transform: scale(.6); opacity: 0; transition: transform .35s, opacity .35s; }
.ts-found.is-in .ts-grid img { transform: none; opacity: 1; }
.ts-found.is-in .ts-grid img:nth-child(n) { transition-delay: calc(var(--d, 0) * 1ms); }

/* map */
.ts--map { background: #dfe7e2; }
.tm { position: absolute; inset: 0; transform-origin: 50% 50%; transition: transform 1.3s cubic-bezier(.5, 0, .2, 1), opacity 1s; }
.tm__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tm--trip { opacity: 0; transform: scale(.35); }
.ts--map.is-zoomed .tm:not(.tm--trip) { opacity: 0; }
.ts--map.is-zoomed .tm--trip { opacity: 1; transform: none; }
.tm-cl, .tm-mk { position: absolute; transform: translate(-50%, -50%) scale(0); transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.ts--map.is-markers .tm-cl, .ts--map.is-markers .tm-mk { transform: translate(-50%, -50%) scale(1); }
.tm-cl { display: grid; place-items: center; width: 13cqw; height: 13cqw; border-radius: 50%; background: var(--forest); color: #fff; font-weight: 800; border: .8cqw solid #fff; box-shadow: 0 0 0 1.6cqw rgba(31,77,58,.25); }
.tm-mk { width: 13cqw; height: 13cqw; border-radius: 50%; border: .9cqw solid #fff; overflow: hidden; box-shadow: 0 1cqw 3cqw rgba(0,0,0,.35); background: var(--moss); }
.tm-mk img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tm-mk.is-tapped, .tm-mk--sel { border-color: var(--sun); }
.tm-mk--sel { transform: translate(-50%, -50%) scale(1.15) !important; }
.tm-dot { position: absolute; width: 3.6cqw; height: 3.6cqw; margin: -1.8cqw 0 0 -1.8cqw; border-radius: 50%; background: var(--sun); border: .7cqw solid #fff; transform: scale(0); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(var(--i) * 60ms + .4s); }
.ts--map.is-zoomed .tm-dot { transform: none; }
.ts-chips { position: absolute; top: 8cqw; left: 4cqw; right: 4cqw; display: flex; gap: 1.5cqw; flex-wrap: nowrap; overflow: hidden; }
.ts-chips span { flex: none; padding: 1.4cqw 2.8cqw; border-radius: 99px; background: rgba(255,255,255,.96); font-size: 3.1cqw; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.ts-chips b { color: var(--forest); }
.ts-sheet { position: absolute; left: 0; right: 0; bottom: 16.5cqw; padding: 2cqw 4cqw 4cqw; background: #fff; border-radius: 5cqw 5cqw 0 0; box-shadow: 0 -2cqw 6cqw rgba(0,0,0,.18); transform: translateY(110%); transition: transform .5s cubic-bezier(.2, .9, .3, 1); }
.ts-sheet.is-in { transform: none; }
.ts-sheet__handle { display: block; width: 11cqw; height: 1.2cqw; margin: 0 auto 3cqw; border-radius: 99px; background: var(--line); }
.ts-sheet__head { display: flex; gap: 3cqw; align-items: center; }
.ts-sheet__head img { width: 17cqw; height: 17cqw; border-radius: 3cqw; object-fit: cover; }
.ts-sheet__head span { display: grid; gap: .6cqw; }
.ts-sheet__head small { color: var(--muted); font-size: 3.1cqw; }
.ts-strip { display: flex; gap: 1.6cqw; margin: 3cqw -4cqw 0; padding: 0 4cqw; overflow: hidden; }
.ts-strip img { flex: none; width: 20cqw; height: 20cqw; border-radius: 2.5cqw; object-fit: cover; transition: transform .8s ease-in-out; }
.ts-strip.is-moved img { transform: translateX(-22cqw); }

/* viewer */
.ts--viewer { background: #0d1210; }
.tv { position: absolute; inset: 0; display: flex; transition: transform .45s cubic-bezier(.3, .8, .3, 1); }
.tv__slide { flex: 0 0 100%; display: grid; place-items: center; }
.tv__slide img { width: 100%; height: auto; max-height: 100%; object-fit: contain; }
.ts--viewer.is-on .tv__slide:first-child img { animation: tv-in .45s ease-out; }
@keyframes tv-in { from { transform: scale(.25); opacity: .3; } }
.tv__count, .tv__close { position: absolute; top: 8cqw; color: #fff; font-size: 3.8cqw; }
.tv__count { left: 5cqw; } .tv__close { right: 5cqw; font-size: 7cqw; line-height: 1; }
.tv__cap { position: absolute; left: 0; right: 0; bottom: 8cqw; text-align: center; color: #fff; font-size: 3.6cqw; text-shadow: 0 1px 3px rgba(0,0,0,.6); }

/* share */
.ts--share { background: var(--paper); }
.tsh-page { padding: 9cqw 5cqw; display: grid; gap: 3cqw; justify-items: start; }
.tsh-page img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4cqw; }
.tsh-page b { font-size: 5.4cqw; }
.tsh-sheet { position: absolute; left: 0; right: 0; bottom: 0; padding: 5cqw; background: #f2f2f7; border-radius: 5cqw 5cqw 0 0; box-shadow: 0 -2cqw 8cqw rgba(0,0,0,.2); transform: translateY(105%); transition: transform .45s cubic-bezier(.2, .9, .3, 1); }
.tsh-sheet.is-in { transform: none; }
.tsh-preview { display: flex; gap: 3cqw; align-items: center; padding: 2.5cqw; background: #fff; border-radius: 3cqw; }
.tsh-preview img { width: 26cqw; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 2cqw; }
.tsh-preview span { display: grid; font-size: 3.4cqw; }
.tsh-preview small { color: var(--muted); }
.tsh-apps { display: flex; justify-content: space-between; margin-top: 4cqw; }
.tsh-apps span { display: grid; justify-items: center; gap: 1.2cqw; font-size: 2.8cqw; }
.tsh-apps i { display: grid; place-items: center; width: 13cqw; height: 13cqw; border-radius: 3.5cqw; color: #fff; font-style: normal; font-size: 6cqw; }
.tsh-chat { position: absolute; inset: 0; background: #e8ddd3; opacity: 0; transition: opacity .4s; }
.tsh-chat.is-in { opacity: 1; }
.tsh-chat header { display: flex; gap: 3cqw; align-items: center; padding: 9cqw 5cqw 3cqw; background: #075e54; color: #fff; }
.tsh-chat header i { display: grid; place-items: center; width: 9cqw; height: 9cqw; border-radius: 50%; background: #128c7e; font-style: normal; }
.tsh-bubble { margin: 6cqw 5cqw 0 auto; width: 72%; padding: 1.6cqw; background: #dcf8c6; border-radius: 3cqw 0 3cqw 3cqw; display: grid; gap: 1cqw; font-size: 3.3cqw; transform: scale(.7); transform-origin: right top; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.tsh-chat.is-in .tsh-bubble { transform: none; }
.tsh-bubble img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 2cqw; }
.tsh-bubble small { color: #3b5a3b; }
.tsh-reply { margin: 4cqw auto 0 5cqw; width: max-content; max-width: 70%; padding: 2.5cqw 3.5cqw; background: #fff; border-radius: 0 3cqw 3cqw 3cqw; font-size: 3.4cqw; opacity: 0; transform: translateY(3cqw); transition: opacity .3s .9s, transform .3s .9s; }
.tsh-chat.is-in .tsh-reply { opacity: 1; transform: none; }

/* app nav + finger */
.ts-nav { position: absolute; left: 0; right: 0; bottom: 0; height: 16.5cqw; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; text-align: center; background: rgba(255,255,255,.97); border-top: 1px solid var(--line); font-size: 2.8cqw; font-weight: 600; color: var(--muted); transition: transform .4s; }
.ts-nav__up { justify-self: center; display: grid; place-items: center; width: 12cqw; height: 12cqw; margin-top: -5cqw; border-radius: 50%; background: var(--sun); color: var(--sun-ink); font-size: 5cqw; border: 1cqw solid #fff; }
.ts-nav.is-hidden { transform: translateY(100%); }
.tour__finger { position: absolute; z-index: 20; left: 50%; top: 110%; width: 11cqw; height: 11cqw; margin: -5.5cqw 0 0 -5.5cqw; border-radius: 50%; background: rgba(255,255,255,.55); border: .8cqw solid rgba(29,38,34,.55); box-shadow: 0 1cqw 3cqw rgba(0,0,0,.25); transition: left .7s cubic-bezier(.4, 0, .2, 1), top .7s cubic-bezier(.4, 0, .2, 1), transform .15s; pointer-events: none; }
.tour__finger.is-tap { transform: scale(.75); }
.tour__finger.is-tap::after { content: ""; position: absolute; inset: -2cqw; border-radius: 50%; border: .8cqw solid rgba(242,165,65,.9); animation: tf-ripple .5s ease-out forwards; }
@keyframes tf-ripple { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

/* controls */
.tour__controls { display: grid; gap: .6rem; justify-items: center; width: min(360px, 92vw); }
.tour__caption { margin: 0; min-height: 2.8em; text-align: center; font-weight: 700; color: var(--forest); }
.tour__chapters { display: flex; gap: .35rem; align-items: center; }
.tour__chapters button { position: relative; overflow: hidden; padding: .45rem .7rem .6rem; border: 0; border-radius: 99px; background: #fff; box-shadow: var(--shadow); font: 600 .85rem var(--font); color: var(--muted); cursor: pointer; }
.tour__chapters button[aria-current=step] { color: var(--forest); }
.tour__chapters button i { position: absolute; left: 10%; right: 10%; bottom: .25rem; height: 3px; border-radius: 99px; background: var(--line); }
.tour__chapters button i::after { content: ""; position: absolute; inset: 0; width: var(--p, 0%); background: var(--sun); border-radius: 99px; }
.tour__pause { width: 2.2rem; height: 2.2rem; padding: 0 !important; display: grid; place-items: center; font-size: .7rem !important; letter-spacing: -.1em; }
@media (prefers-reduced-motion: reduce) { .tour * { transition-duration: .01ms !important; animation: none !important; } }
.ts-uploads span { text-align: left; }
.btn { white-space: nowrap; }
.app-nav .mma-logo-text { font-size: 1.12rem; }
.app-nav .mma-logo-mark { width: 34px; height: 34px; }
.site-footer .mma-logo-text { font-size: 1.2rem; }

/* ---------- Map: quick-jump places, Layers panel, hill pop-ups ---------- */
.places { display: flex; gap: .35rem; max-width: calc(100% - 50px); overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; margin: -2px; }
.places::-webkit-scrollbar { display: none; }
.place { flex: none; display: inline-flex; align-items: center; gap: .35rem; min-height: 34px; padding: .3rem .75rem; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .96); box-shadow: var(--shadow); font: 600 .84rem var(--font); color: var(--ink); cursor: pointer; white-space: nowrap; }
.place small { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; padding: 0 .3rem; border-radius: 99px; background: var(--moss); color: var(--forest); font-size: .72rem; font-weight: 800; }
.place[aria-pressed=true] { background: var(--forest); color: #fff; }
.place[aria-pressed=true] small { background: rgba(255, 255, 255, .2); color: #fff; }
.map-btn[aria-expanded=true] { background: var(--forest); color: #fff; }

.lyr { position: fixed; z-index: 45; left: 0; right: 0; bottom: calc(var(--nav-h) + var(--safe-b)); max-height: 72dvh; overflow: auto; overscroll-behavior: contain; background: #fff; border-radius: 18px 18px 0 0; box-shadow: 0 -10px 34px rgba(0, 0, 0, .22); padding: 0 1rem 1rem; }
@media (min-width: 900px) { .lyr { position: absolute; left: auto; right: 16px; bottom: 140px; width: 320px; max-height: calc(100% - 170px); border-radius: var(--radius); } }
.app--visitor .lyr { bottom: calc(var(--nav-h) + var(--safe-b)); }
@media (min-width: 900px) { .app--visitor .lyr { bottom: 140px; } }
.lyr__head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: .9rem 0 .5rem; background: #fff; }
.lyr__head b { font-size: 1.05rem; }
.lyr__x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--paper); font-size: 1.4rem; line-height: 1; color: var(--muted); cursor: pointer; }
.lyr__sec { border: 0; margin: 0; padding: .6rem 0 .4rem; border-top: 1px solid var(--line); }
.lyr__sec legend { padding: .4rem 0; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lyr__seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; margin-bottom: .4rem; border-radius: 12px; background: var(--paper); }
.lyr__seg button { min-height: 38px; border: 0; border-radius: 9px; background: transparent; font: 600 .88rem var(--font); color: var(--muted); cursor: pointer; }
.lyr__seg button[aria-pressed=true] { background: #fff; color: var(--forest); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.lyr__row { display: flex; align-items: center; gap: .6rem; min-height: 40px; cursor: pointer; font-size: .95rem; }
.lyr__row input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--forest); }
.lyr__label { flex: 1; }
.lyr__count { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.lyr__hint { font-size: .78rem; color: var(--muted); }
.lyr__swatch { width: 22px; height: 4px; border-radius: 3px; }
.lyr__credit { margin: .4rem 0 0; font-size: .74rem; color: var(--muted); }
.lyr__tip { margin: .6rem 0 0; padding: .6rem .8rem; border-radius: var(--radius-s); background: #fff6e6; color: #5a3d0c; font-size: .85rem; }
.hillpop { display: grid; gap: .2rem; font: .88rem/1.35 var(--font); color: var(--ink); }
.hillpop b { font-size: .98rem; }
.hillpop span { color: var(--muted); }
.hillpop .hillpop__done { color: #2f7a4a; font-weight: 700; }
.hillpop a { font-weight: 600; }
.maplibregl-popup-content { border-radius: 12px; padding: .7rem 1.6rem .7rem .8rem; box-shadow: var(--shadow); }

/* ---------- Marketing: a bit more life (hover, scroll-in) ---------- */
.btn { transition: background .15s, border-color .15s, color .15s, transform .18s cubic-bezier(.3,.7,.4,1.4), box-shadow .18s; }
@media (hover: hover) {
	.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(31, 77, 58, .22); }
	.btn--sun:hover { background: #f5b45c; border-color: #f5b45c; color: var(--sun-ink); box-shadow: 0 8px 20px rgba(242, 165, 65, .4); }
	.btn--ghost:hover { box-shadow: none; }
	.btn:active { transform: translateY(0) scale(.98); box-shadow: none; }

	.site-nav__link { position: relative; }
	.site-nav__menu .site-nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--sun); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
	.site-nav__menu .site-nav__link:hover::after { transform: scaleX(1); }
	.site-header__brand .mma-logo-mark { transition: transform .35s cubic-bezier(.3,.7,.4,1.5); }
	.site-header__brand:hover .mma-logo-mark { transform: translateY(-3px) rotate(-6deg); }

	.tile, .plan, .steps3 li, .howto, .faq details, .card--lift { transition: transform .22s ease, box-shadow .22s ease, background .22s; }
	.tile:hover, .plan:hover { transform: translateY(-5px); box-shadow: 0 2px 4px rgba(20, 30, 25, .06), 0 18px 40px rgba(20, 30, 25, .14); }
	.tile__icon { transition: transform .35s cubic-bezier(.3,.7,.4,1.6), background .2s, color .2s; }
	.tile:hover .tile__icon { transform: rotate(-8deg) scale(1.12); background: var(--forest); color: #fff; }
	.plan--best:hover { box-shadow: 0 0 0 6px rgba(242, 165, 65, .18), 0 18px 40px rgba(20, 30, 25, .14); }
	.steps3 li:hover { transform: translateY(-4px); background: #fff; box-shadow: var(--shadow); }
	.steps3__n { transition: transform .35s cubic-bezier(.3,.7,.4,1.6); }
	.steps3 li:hover .steps3__n { transform: scale(1.15) rotate(8deg); }
	.faq details:hover, .howto:hover { transform: translateX(3px); box-shadow: 0 1px 2px rgba(20, 30, 25, .06), 0 10px 28px rgba(20, 30, 25, .12); }
	.faq summary::after { transition: transform .2s; }
	.faq details:hover summary::after { transform: scale(1.25); }

	.phone, .browser { transition: transform .5s cubic-bezier(.2,.7,.3,1), box-shadow .5s; }
	.split .phone:hover, .yourpage .browser:hover { transform: perspective(900px) rotateY(-6deg) rotateX(3deg) translateY(-6px); }
	.split--flip .phone:hover { transform: perspective(900px) rotateY(6deg) rotateX(3deg) translateY(-6px); }

	.site-footer a { background: linear-gradient(var(--sun), var(--sun)) 0 100% / 0 2px no-repeat; transition: background-size .25s, color .15s; }
	.site-footer a:hover { text-decoration: none; background-size: 100% 2px; }
	.site-footer a:has(.mma-logo) { background: none; }
}
.faq details[open] p { animation: mma-drop .25s ease; }
@keyframes mma-drop { from { opacity: 0; transform: translateY(-6px); } }

/* Scroll-in: only when JS has set it up, so nothing is ever hidden without it. */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); transition-delay: var(--d, 0s); }
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-reveal [data-reveal] { opacity: 1; transform: none; } }

/* ---------- Cookie notice ---------- */
.cookies { position: fixed; z-index: 90; left: 16px; right: 16px; bottom: calc(16px + var(--safe-b)); max-width: 420px; margin-left: auto; padding: 1.1rem 1.2rem 1.1rem 1.1rem; display: grid; grid-template-columns: auto 1fr; gap: .2rem .9rem; background: var(--forest); color: #eef5f0; border-radius: 18px; box-shadow: 0 20px 50px rgba(10, 30, 20, .35); animation: mma-pop .45s cubic-bezier(.2,.8,.3,1.2) both; }
.cookies[hidden] { display: none; }
.cookies__icon { grid-row: span 2; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 255, 255, .1); }
.cookies__icon svg { width: 30px; height: 30px; }
.cookies h2 { margin: 0; font-size: 1.05rem; color: #fff; }
.cookies p { margin: .2rem 0 0; font-size: .92rem; line-height: 1.45; color: #d5e6dc; }
.cookies p a { color: var(--sun); }
.cookies__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.cookies__actions .btn { flex: 1; min-height: 44px; }
.cookies .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.cookies .btn--ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.cookies.is-leaving { animation: mma-out .3s ease forwards; }
body.mma-app .cookies { bottom: calc(var(--nav-h) + 12px + var(--safe-b)); }
@keyframes mma-pop { from { opacity: 0; transform: translateY(30px) scale(.96); } }
@keyframes mma-out { to { opacity: 0; transform: translateY(20px); } }

/* ---------- Share panel ---------- */
.sharesheet { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 480px; background: transparent; color: var(--ink); }
.sharesheet::backdrop { background: rgba(15, 30, 22, .45); backdrop-filter: blur(2px); }
.sharesheet[open] { animation: mma-pop .25s ease; }
.sharesheet__in { background: var(--card); border-radius: 22px 22px 0 0; padding: 18px 20px calc(20px + var(--safe-b, 0px)); box-shadow: 0 -10px 40px rgba(0, 0, 0, .2); }
@media (min-width: 640px) { .sharesheet { margin: auto; } .sharesheet__in { border-radius: 22px; padding-bottom: 20px; } }
.sharesheet__top { display: flex; align-items: center; justify-content: space-between; }
.sharesheet h2 { margin: 0; font-size: 1.25rem; color: var(--forest); }
.sharesheet__x { border: 0; background: var(--line); color: var(--ink); width: 34px; height: 34px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; }
.sharesheet__what { margin: 4px 0 16px; color: var(--muted, #5c6862); font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sharesheet__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 12px 6px; }
.sharesheet__list a, .sharesheet__list button { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; padding: 4px 0; border: 0; background: none; color: var(--ink); font: 600 .8rem/1.2 var(--font); text-decoration: none; cursor: pointer; }
.sharesheet__ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: #fff; transition: transform .15s ease, box-shadow .15s ease; }
.sharesheet__ico--whatsapp { background: #25d366; }
.sharesheet__ico--facebook { background: #1877f2; }
.sharesheet__ico--x { background: #111; }
.sharesheet__ico--email { background: var(--forest-2); }
.sharesheet__ico--copy { background: var(--sun); color: var(--sun-ink); }
.sharesheet__ico--more { background: var(--line); color: var(--ink); }
.is-done .sharesheet__ico--copy { background: var(--forest); color: #fff; }
@media (hover: hover) { .sharesheet__list a:hover .sharesheet__ico, .sharesheet__list button:hover .sharesheet__ico { transform: translateY(-3px) scale(1.06); box-shadow: 0 8px 18px rgba(0, 0, 0, .18); } }
.sharesheet__link { margin-top: 18px; }
.sharesheet__link input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font: .9rem var(--font); }
@media (prefers-reduced-motion: reduce) { .sharesheet[open] { animation: none; } }
