:root {
  --paper: #F4F7F6; --mist: #CFE2F0; --sky: #CFE2F0; --forest: #2F5D46; --meadow: #8DB580; --hill: #B9D3AE; --lake: #2B7A7A; --ink: #14233A; --slate: #52637A; --line: #C9D2D8;
  --ocean: #2F5D8A; --teal: #27726D; --coral: #D9694A; --coral-deep: #C45A3D; --coral-text: #B04E33; --marigold: #E9A93C; --white: #FFFFFF;
  --capy-brown: #A87A52; --capy-dark: #7C5636;
  --serif: 'Instrument Serif', Georgia, serif; --sans: 'Inter', system-ui, sans-serif; --hand: 'Caveat', cursive;
  --radius: 16px; --shadow: 0 18px 40px -22px rgba(20,35,58,.45); --shadow-sm: 0 6px 16px -10px rgba(20,35,58,.35);
  --capy: url(assets/capy-cursor.png) 24 24;
  --capy: image-set(url(assets/capy-cursor.png) 1x, url(assets/capy-cursor@2x.png) 2x) 24 24;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); cursor: var(--capy), auto; -webkit-font-smoothing: antialiased; }
a, button, [role="button"], summary { cursor: var(--capy), pointer; }
a { color: var(--ocean); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--sans); font-weight: 600; letter-spacing: -0.025em; margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; height: 56px; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); }
.topbar .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { font-family: var(--serif); font-size: 24px; color: var(--ink); text-decoration: none; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a { color: var(--slate); text-decoration: none; padding: 6px 8px; font-size: 15px; }
.nav a:hover { color: var(--ink); }
.nav .dot { color: var(--line); }
.menu-btn { display: none; background: none; border: 1px solid var(--ink); border-radius: 999px; padding: 6px 14px; font-weight: 500; font-size: 14px; }

/* hero: the world is the background */
.hero { position: relative; overflow: hidden; background: var(--sky); min-height: calc(100svh - 56px);
  display: flex; flex-direction: column; align-items: center; padding: 40px 0 28px; }
.hero-text { position: relative; z-index: 2; text-align: center; padding: 0 16px; }
.hero h1 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 76px; line-height: 1; letter-spacing: -0.03em; font-variation-settings: 'SOFT' 100, 'WONK' 0; }
.hero h1 em { font-family: 'Fraunces', Georgia, serif; font-weight: 400; font-style: italic; letter-spacing: -0.02em; color: var(--forest); font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 26%; z-index: 0; pointer-events: none; }
.hills .far { fill: #A9C3D3; } .hills .mid { fill: #A8C99C; } .hills .near { fill: #84AF7D; }
.tagline { color: var(--slate); font-size: 18px; margin: 14px 0 0; text-wrap: balance; }
.clouds { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.cloud { position: absolute; left: 0; width: 120px; animation: drift linear infinite; }
@keyframes drift { from { transform: translateX(-160px); } to { transform: translateX(110vw); } }

.map-wrap { position: relative; z-index: 1; width: min(1200px, 100%); margin-top: 8px; flex: 1; display: flex; align-items: center; }
.map { width: 100%; height: auto; display: block; overflow: hidden; }
.map path, .region-map path { stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.map .rest path, .region-map .rest path { fill: #C6DBBB; stroke: #7FA27A; }
.map .waves path { fill: none; stroke: var(--slate); stroke-width: 1.5; opacity: .3; }
.map .route { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 5 8; opacity: .5; }
.map .plane path { fill: var(--ink); stroke: none; }
.map .hit { fill: transparent; stroke: none; }
.region { outline: none; text-decoration: none; }
.region .lift { pointer-events: none; transform-box: fill-box; transform-origin: center; transition: transform .2s ease-out, opacity .2s; }
.region .land { fill: var(--white); transition: fill .2s ease-out; }
.map.has-on .region:not(.on) .lift { opacity: .4; }
.region.on .land { fill: var(--c); }
.region.on .lift { transform: translateY(-4px) scale(1.03); filter: drop-shadow(0 8px 10px rgba(20,35,58,.18)); }
.region:focus-visible .land { stroke: var(--marigold); stroke-width: 4; }
.region .pin { fill: var(--marigold); stroke: var(--ink); stroke-width: 1.2; opacity: 0; }
.region.on .pin { animation: pindrop .35s ease-out forwards; }
@keyframes pindrop { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.region-label { font: 500 30px var(--hand); fill: var(--ink); opacity: 0; transition: opacity .2s; pointer-events: none; }
.region.on .region-label { opacity: 1; }
.na { --c: var(--ocean); } .eu { --c: #3F7A52; } .as { --c: var(--lake); }

.hint { position: absolute; z-index: 2; right: 8%; top: -6px; font: 500 24px var(--hand); color: var(--ink); transition: opacity .6s; }
.hint.gone { opacity: 0; }
.hint .tap { display: none; }
@media (hover: none) { .hint .hover { display: none; } .hint .tap { display: inline; } }

.chips { position: relative; z-index: 2; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; list-style: none; padding: 0 16px; margin: 16px 0 0; }
.chips li { border: 1px solid rgba(20,35,58,.25); border-radius: 999px; padding: 6px 16px; background: var(--white); font-weight: 500; box-shadow: var(--shadow-sm); }

/* sections */
section.block { padding: 88px 0; }
.block h2 { font-size: 40px; line-height: 1.1; }

/* wallet: opens to the right */
.wallet-row { display: flex; align-items: center; gap: 28px; margin-top: 32px; min-height: 230px; }
.wallet { position: relative; flex: none; width: 220px; height: 160px; background: none; border: 0; padding: 0; }
.wallet-body { position: absolute; inset: 0; border-radius: 26px; background: #6E9C72; box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.12);
  transition: transform .3s ease-out; }
.wallet-body::before { content: ''; position: absolute; inset: 9px; border: 2px dashed rgba(255,250,235,.8); border-radius: 19px; }
.wallet-clasp { position: absolute; right: -6px; top: 56px; width: 44px; height: 48px; border-radius: 12px 0 0 12px; background: #5C8A61;
  box-shadow: -2px 0 0 rgba(0,0,0,.12); transition: transform .3s ease-out; }
.wallet-clasp::after { content: ''; position: absolute; left: 12px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--marigold); }
.wallet-peek { position: absolute; right: 6px; top: 16px; bottom: 16px; width: 30px; }
.wallet-peek i { position: absolute; right: 0; width: 100%; height: 38px; border-radius: 0 6px 6px 0; transition: transform .25s ease-out; }
.wallet-peek i:nth-child(1) { top: 0; } .wallet-peek i:nth-child(2) { top: 44px; } .wallet-peek i:nth-child(3) { top: 88px; }
.wallet:hover .wallet-peek i { transform: translateX(12px); }
.wallet-row.open .wallet-clasp { transform: translateX(18px) rotate(-6deg); }
.wallet-row.open .wallet-peek i { transform: translateX(0); opacity: 0; }
.wallet-face { position: absolute; left: 50%; top: 52%; width: 90px; height: 50px; transform: translate(-60%, -50%); }
.wallet-face i { position: absolute; display: block; }
.wallet-face .eye { top: 8px; width: 10px; height: 12px; border-radius: 50%; background: #1E2B22; transition: all .25s; }
.wallet-face .eye.l { left: 18px; } .wallet-face .eye.r { right: 18px; }
.wallet-face .mouth { left: 50%; top: 24px; width: 14px; height: 7px; margin-left: -7px; border: 2.5px solid #1E2B22; border-top: 0; border-radius: 0 0 14px 14px; transition: all .25s; }
.wallet-face .blush { top: 24px; width: 14px; height: 8px; border-radius: 50%; background: #F2A7A0; opacity: .9; }
.wallet-face .blush.l { left: 2px; } .wallet-face .blush.r { right: 2px; }
.wallet:hover .wallet-face .eye { height: 6px; top: 11px; border-radius: 6px 6px 0 0; }
.wallet-row.open .wallet-face .eye { height: 6px; top: 11px; border-radius: 6px 6px 0 0; background: none; border: 2.5px solid #1E2B22; border-bottom: 0; }
.wallet-row.open .wallet-face .mouth { width: 14px; height: 14px; border: 2.5px solid #1E2B22; border-radius: 50%; background: #C96A5F; }
.wallet:hover .wallet-body { transform: rotate(-2deg) translateY(-2px); }
.wallet-hint { position: absolute; left: 0; right: 0; bottom: -34px; text-align: center; font: 500 22px var(--hand); color: var(--ink); }

.cards { position: relative; flex: 1; height: 210px; --w: 280px; }
.card { position: absolute; top: 20px; left: calc((100% - var(--w)) * var(--i) / (var(--n) - 1)); width: var(--w); aspect-ratio: 1.586; padding: 0; border: 0; border-radius: 14px;
  overflow: hidden; background: #222; box-shadow: 0 14px 28px -14px rgba(0,0,0,.55); z-index: calc(var(--n) - var(--i));
  opacity: 0; transform: translateX(-60px) scale(.6) rotate(-4deg); pointer-events: none;
  transition: transform .45s cubic-bezier(.34,1.45,.64,1), opacity .25s, box-shadow .2s; transition-delay: calc(var(--i) * 70ms); }
.card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wallet-row.open .card { opacity: 1; transform: none; pointer-events: auto; }
.wallet-row.open .card:hover { transform: translateY(-10px); transition-delay: 0s; }
.wallet-row.open .card.sel { transform: translateY(-22px) scale(1.05); z-index: 20; box-shadow: 0 26px 40px -16px rgba(0,0,0,.6); transition-delay: 0s; }
.card-face { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 16px 18px; color: var(--paper); text-align: left; }
.cf-issuer { font-weight: 600; font-size: 15px; letter-spacing: .02em; }
.cf-name { font-family: var(--serif); font-size: 22px; line-height: 1.1; }
.card-info { margin-top: 26px; max-width: 560px; background: var(--white); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); animation: rise .3s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ci-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.ci-head h3 { font-size: 20px; }
.ci-badge { flex: none; background: var(--marigold); color: var(--ink); border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 600; }
.ci-fee { color: var(--slate); margin: 4px 0 10px; }
.ci-perks { margin: 0 0 12px; padding-left: 18px; }
.ci-perks li.neg { color: var(--coral-text); }
.ci-why { margin: 0 0 10px; }
.ci-link { font-weight: 600; }
.wallet-tip { font: 500 22px var(--hand); color: var(--slate); margin: 22px 0 0; }
.wallet-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 28px 0 4px; font-weight: 500; }
.disclosure { color: var(--slate); font-size: 13px; margin: 16px 0 0; }
@media (max-width: 760px) { .opt-detail { flex-direction: column; } .opt-body { padding: 16px; } }

/* optimizer toggle */
.optimizer { margin-top: 26px; max-width: 760px; }
.opt-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.opt-toggle { background: var(--white); border: 0; border-radius: 999px; padding: 11px 20px; font-weight: 600; font-size: 15px; box-shadow: var(--shadow-sm); display: inline-flex; gap: 10px; align-items: center; color: var(--ink); }
.opt-toggle span { font-size: 18px; line-height: 1; color: var(--forest); }
.opt-toggle.soon { color: var(--slate); cursor: var(--capy), default; }
a.opt-toggle { text-decoration: none; }
.opt-toggle.green { background: var(--forest); color: #fff; }
.opt-toggle.green span { color: #fff; }
.opt-toggle.green:hover { background: #24493A; }
.opt-toggle.soon small { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; background: var(--paper); border-radius: 999px; padding: 2px 8px; }
.optimizer.show button.opt-toggle { background: var(--forest); color: #fff; }
.optimizer.show button.opt-toggle span { color: #fff; }
.opt-body { margin-top: 16px; background: var(--white); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); animation: rise .3s ease-out; }
.opt-sub { color: var(--slate); margin: 0 0 16px; font-size: 16px; }
.opt-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-tab { border: 0; background: var(--paper); border-radius: 12px; padding: 9px 14px; font-size: 15px; font-weight: 500; color: var(--ink); transition: background .15s; }
.opt-tab:hover { background: #E6ECEA; }
.opt-tab.on { background: var(--forest); color: #fff; }
.opt-list { margin-top: 18px; display: grid; gap: 10px; }
.opt-item { border-radius: 14px; background: var(--paper); transition: background .15s; }
.opt-item.open { background: #EEF4F0; }
.opt-head { width: 100%; display: flex; justify-content: space-between; gap: 12px; align-items: center; background: none; border: 0; padding: 14px 16px; text-align: left; color: var(--ink); }
.opt-label { font-weight: 600; font-size: 16px; }
.opt-rate { flex: none; background: var(--white); color: var(--forest); font-weight: 700; font-size: 14px; border-radius: 999px; padding: 4px 12px; box-shadow: var(--shadow-sm); }
.opt-detail { display: flex; gap: 16px; align-items: flex-start; padding: 0 16px 16px; }
.opt-thumbs { display: flex; flex: none; }
.opt-thumbs img { width: 92px; border-radius: 7px; box-shadow: 0 6px 12px -6px rgba(0,0,0,.45); }
.opt-thumbs img + img { margin-left: -46px; margin-top: 10px; }
.opt-thumbs:empty { display: none; }
.opt-pick { font-weight: 700; color: var(--ink); margin: 0 0 4px; font-size: 16px; }
.opt-why { margin: 0; color: #2C3D52; font-size: 15px; line-height: 1.6; }

/* allergy card teaser */
.soon-tile { margin-top: 24px; display: grid; grid-template-columns: 200px 1fr auto; gap: 24px; align-items: center; background: var(--white); border-radius: 20px; padding: 18px; box-shadow: var(--shadow-sm); }
.soon-shot { position: relative; height: 190px; border-radius: 14px; overflow: hidden; }
.soon-shot img { width: 100%; display: block; }
.soon-veil { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(214,220,226,.6); color: var(--ink); font-weight: 600; font-size: 15px; }
.soon-eyebrow { margin: 0; color: var(--slate); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.soon-text h3 { font-size: 24px; margin: 4px 0 6px; }
.soon-text p:last-child { margin: 0; color: var(--slate); }
@media (max-width: 760px) { .soon-link { grid-column: 1 / -1; justify-self: stretch; text-align: center; } .it-steps { grid-template-columns: 1fr; } .itinerary { padding: 56px 0; margin-bottom: 64px; } .itinerary h2 { font-size: 32px; } .soon-tile { grid-template-columns: 120px 1fr; gap: 14px; padding: 14px; } .soon-shot { height: 150px; } .soon-text h3 { font-size: 19px; } }

/* allergy tile link */
.soon-link { justify-self: end; align-self: center; background: var(--forest); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; border-radius: 999px; padding: 11px 18px; white-space: nowrap; box-shadow: var(--shadow-sm); }
.soon-link:hover { background: #24493A; }

/* custom itinerary */
.itinerary { background: #CFE3C6; padding: 72px 0; margin-bottom: 88px; }
.it-eyebrow { margin: 0 0 6px; color: var(--forest); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.itinerary h2 { font-size: 40px; line-height: 1.1; }
.it-lede { font-size: 18px; max-width: 34em; margin: 12px 0 24px; color: #22364A; }
.it-steps { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 760px; }
.it-steps li { background: rgba(255,255,255,.7); border-radius: 16px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; font-weight: 500; }
.it-steps b { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--forest); color: #fff; display: grid; place-items: center; font-size: 14px; }
.it-cta { display: inline-block; background: var(--forest); color: #fff; text-decoration: none; font-weight: 600; border-radius: 999px; padding: 13px 22px; box-shadow: var(--shadow-sm); }
.it-cta.soon { background: rgba(255,255,255,.75); color: var(--slate); }

.divider { display: block; width: min(1072px, calc(100% - 32px)); height: 24px; margin: 0 auto 72px; }
.divider path { fill: none; stroke: #84AF7D; stroke-width: 3; stroke-linecap: round; }

/* grey "tap to read more" over cards on hover */
.card::after { content: 'tap to read more'; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(230,234,238,.55);
  color: var(--ink); font-weight: 600; font-size: 14px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.wallet-row.open .card:hover::after, .wallet-row.open .card:focus-visible::after { opacity: 1; }
.wallet-row.open .card.sel::after { opacity: 0; }

/* apps */
.apps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.app { position: relative; background: var(--white); border-radius: var(--radius); padding: 12px; display: flex; gap: 12px; align-items: center;
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.app:hover, .app.open, .app:focus-within { transform: translateY(-2px); box-shadow: var(--shadow); z-index: 6; }
.app > button { all: unset; flex: 1; min-width: 0; }
.app-icon { width: 44px; height: 44px; border-radius: 11px; flex: none; box-shadow: 0 0 0 1px rgba(20,35,58,.08); }
.app-name { font-weight: 600; display: block; }
.app-tag { color: var(--slate); font-size: 14px; }
.app-pop { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--ink); color: var(--paper);
  border-radius: 12px; padding: 12px 14px; font-size: 14px; box-shadow: var(--shadow); display: none; }
.app-pop a { color: var(--marigold); font-weight: 600; }
.app:hover .app-pop, .app.open .app-pop { display: block; }

/* about */
.about { display: grid; grid-template-columns: 220px 1fr 240px; gap: 40px; align-items: center; }
.polaroid { margin: 0; transform: rotate(-3deg); box-shadow: var(--shadow); border-radius: 4px; overflow: hidden; background: #fff; }
.polaroid img { width: 100%; display: block; }
.about-text h2 { font-size: 40px; }
.about-text p { margin: 10px 0 0; max-width: 30em; }
.about-text .big { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.about-text .label { color: var(--slate); font-size: 14px; margin-top: 18px; }
.allergies { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 6px 0 0; }
.allergies li { background: var(--white); border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-sm); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .2s, background .2s, color .2s; }
.socials a:hover { background: var(--ink); color: var(--white); transform: translateY(-2px); }
.soc-icon { width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.about-video { position: relative; }
.about-video video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--radius); display: block; box-shadow: var(--shadow); background: var(--mist); }
.video-cap { display: block; text-align: center; font: 500 20px var(--hand); color: var(--slate); margin-top: 8px; }

/* capybara meadow */
.meadow { position: relative; height: 190px; margin-top: 40px; overflow: hidden; touch-action: manipulation; user-select: none; }
.meadow-note { position: absolute; top: 8px; left: 0; right: 0; text-align: center; font: 500 22px var(--hand); color: var(--slate); margin: 0; pointer-events: none; }
.meadow-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; background: #A8C99C; border-top: 0; }
.flower { position: absolute; bottom: 40px; width: 2px; height: 16px; background: #7EA28A; transform-origin: bottom; animation: sway 3s ease-in-out infinite alternate; animation-delay: var(--d); }
.flower::after { content: ''; position: absolute; top: -6px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--marigold); }
.flower:nth-child(even)::after { background: #fff; box-shadow: 0 0 0 1px #c9d2d8; }
@keyframes sway { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
.capy { position: absolute; left: 0; bottom: 30px; width: 110px; padding: 0; border: 0; background: none; will-change: transform; }
.capy .flip { display: block; }
.capy-svg { display: block; width: 110px; overflow: visible; }
.capy-svg .body { fill: var(--capy-brown); stroke: var(--ink); stroke-width: 1.5; }
.capy-svg .leg { fill: var(--capy-dark); stroke: var(--ink); stroke-width: 1.5; }
.capy-svg .ear { fill: var(--capy-dark); stroke: var(--ink); stroke-width: 1.5; }
.capy-svg .cheek { fill: var(--coral); opacity: .45; }
.capy-svg .eye circle, .capy-svg .nose { fill: var(--ink); }
.capy-svg .eye { transform-box: fill-box; transform-origin: center; animation: blink 4s infinite; }
.capy-svg .yuzu circle { fill: var(--marigold); stroke: var(--ink); stroke-width: 1.5; }
.capy-svg .yuzu path { fill: #6E9B6C; stroke: var(--ink); stroke-width: 1; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
.capy.walk .leg.a { animation: step .28s ease-in-out infinite alternate; }
.capy.walk .leg.b { animation: step .28s ease-in-out infinite alternate-reverse; }
.capy.walk .capy-svg { animation: bob .28s ease-in-out infinite alternate; }
@keyframes step { from { transform: translateY(-3px); } to { transform: translateY(1px); } }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-2px); } }
.capy.nap .eye { animation: none; transform: scaleY(.12); }
.capy.nap .capy-svg { transform: translateY(6px); transition: transform .4s; }
.capy.hop .capy-svg { animation: hop .6s ease-out; }
@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-34px) rotate(-6deg); } 70% { transform: translateY(0) scaleY(.92); } }
.capy-pad { position: absolute; right: 24px; top: 40px; display: flex; align-items: center; gap: 10px; flex-direction: row-reverse; z-index: 3; }
.pad-keys { display: grid; grid-template-columns: repeat(3, 34px); grid-template-rows: repeat(2, 34px); gap: 4px; }
.pad-keys .k { border: 0; border-radius: 9px; background: var(--forest); color: #fff; font-size: 16px; font-weight: 600; box-shadow: 0 3px 0 #1f3f2f; transition: transform .08s, box-shadow .08s; }
.pad-keys .k:active { transform: translateY(3px); box-shadow: none; }
.pad-keys .up { grid-column: 2; grid-row: 1; } .pad-keys .left { grid-column: 1; grid-row: 2; } .pad-keys .down { grid-column: 2; grid-row: 2; } .pad-keys .right { grid-column: 3; grid-row: 2; }
.pad-pill { background: var(--white); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-sm); white-space: nowrap; }
.pad-pill .tap { display: none; }
@media (hover: none) { .pad-pill .hover { display: none; } .pad-pill .tap { display: inline; } }
.zzz { position: absolute; right: -4px; top: -18px; font: 500 20px var(--hand); color: var(--slate); animation: float 2s ease-in-out infinite; }
.heart { position: absolute; left: 50%; top: -10px; color: var(--coral-deep); font-size: 22px; animation: heart 1.2s ease-out forwards; pointer-events: none; }
@keyframes float { 50% { transform: translateY(-6px); } }
@keyframes heart { from { opacity: 1; transform: translateY(0) scale(.6); } to { opacity: 0; transform: translateY(-60px) scale(1.2); } }

.foot { padding: 28px 0 40px; color: var(--slate); font-size: 15px; background: #A8C99C; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: var(--ink); }
.foot span { color: var(--ink); }

/* region pages */
.region-page { padding: 32px 0 80px; }
.region-page .back { display: inline-block; color: var(--slate); text-decoration: none; font-weight: 500; margin-bottom: 14px; }
.region-page h1 { font-size: 64px; line-height: 1; letter-spacing: -0.04em; }
.region-sub { color: var(--slate); margin: 8px 0 0; font-size: 18px; }
.region-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; margin-top: 32px; align-items: start; }
.region-map { background: var(--mist); border-radius: var(--radius); overflow: hidden; }
.region-map svg { display: block; width: 100%; height: auto; }
.region-map path { stroke-width: .6; }
.region-map .other { fill: #E8ECEF; stroke: #9AA9B5; }
.region-map .land { fill: var(--c); }
.region-map .pin { r: 2.2px; fill: var(--marigold); stroke: var(--ink); stroke-width: .5; transition: r .15s; }
.region-map .pin:hover, .region-map .pin:focus-visible, .region-map .pin.sel { r: 3.4px; fill: #fff; outline: none; }
.country { margin-bottom: 22px; }
.country h2 { font-size: 18px; margin-bottom: 8px; }
.city-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.city-chip { background: var(--white); color: var(--ink); text-decoration: none; border-radius: 999px; padding: 6px 14px; font-weight: 500; box-shadow: var(--shadow-sm); }
.city-chip:hover { background: var(--ink); color: var(--paper); }
.city-card { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.city-card h2 { font-size: 32px; }
.city-card .visits { color: var(--slate); margin: 4px 0 12px; }
.vibes { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 14px 0; }
.vibes li { background: var(--mist); border-radius: 999px; padding: 4px 12px; font-size: 14px; }
.recs h3 { font-size: 16px; margin: 14px 0 6px; }
.recs ul { padding-left: 18px; margin: 0; }
.recs span { color: var(--slate); font-size: 14px; }
.guide { font-weight: 600; }

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 56px; left: 0; right: 0; background: var(--paper); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav .dot { display: none; }
  .nav a { padding: 10px 0; font-size: 17px; }
  .hero { padding-top: 32px; min-height: 0; }
  .hero h1 { font-size: 46px; }
  .tagline { font-size: 16px; }
  .hint { right: 16px; top: -34px; font-size: 20px; margin: 0; }
  .map-wrap { margin-top: 36px; flex: none; }
  /* fade the cropped map edges into the sky instead of a hard cut */
  .map { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(180deg, transparent 0, #000 10%, #000 90%, transparent 100%);
    -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(180deg, transparent 0, #000 10%, #000 90%, transparent 100%); mask-composite: intersect; }
  .capy-pad { right: 12px; top: 36px; }
  .pad-pill { display: none; }
  .meadow-note { padding: 0 140px 0 16px; text-align: left; font-size: 19px; }
  .block h2, .about-text h2 { font-size: 32px; }
  section.block { padding: 64px 0; }
  .wallet-row { flex-direction: column; align-items: flex-start; gap: 44px; }
  .cards { width: calc(100% + 32px); margin: 0 -16px; height: auto; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 22px 16px 12px; --w: 220px; }
  .wallet-row:not(.open) .cards { display: none; }
  .card { position: relative; top: 0; left: 0; flex: none; scroll-snap-align: center; transform: translateX(-40px) scale(.9); }
  .wallet-row.open .card.sel { transform: translateY(-12px); }
  .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-icon { width: 38px; height: 38px; }
  .app:nth-child(even) .app-pop { left: auto; right: 0; width: calc(200% + 12px); }
  .app:nth-child(odd) .app-pop { width: calc(200% + 12px); }
  .about { grid-template-columns: 1fr 1fr; gap: 20px; }
  .about-text { grid-column: 1 / -1; grid-row: 1; }
  .polaroid { max-width: 170px; }
  .region-page h1 { font-size: 44px; }
  .region-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cloud, .flower, .zzz { animation: none; }
  .region .lift, .region .land, .card { transition: none; }
  .region.on .pin { animation: none; opacity: 1; }
  .capy.walk .leg, .capy.walk .capy-svg, .capy.hop .capy-svg, .capy-svg .eye { animation: none; }
}
