/*
 * Lokal public website — home page only (enqueued on the front page).
 * The opening is a sticky, scroll-driven painted map: one parcel travels from
 * the seller to a neighbourhood shop and then home. home.js drives it.
 */
.home { background: var(--lk-marigold-500); }

/* ---------- Story: chapters on the left, map pinned on the right ---------- */
.lp-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-bottom: var(--lk-border); background: var(--lk-marigold-500); }
.lp-ch { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 72px clamp(18px, 4.5vw, 64px); }
.lp-ch--intro { min-height: calc(100vh - 77px); padding-top: clamp(28px, 4vw, 56px); }
.lp-ch--intro h1 { font-size: clamp(3.4rem, 7.4vw, 8.4rem); max-width: 11ch; margin: 0; }
.lp-ch h2 { font-size: clamp(2.8rem, 5.2vw, 5.8rem); max-width: 12ch; margin: 0; }
.lp-ch p { font-size: clamp(1.08rem, 1.4vw, 1.3rem); max-width: 32rem; font-weight: 500; margin: 24px 0 0; }
.lp-ch .lp-actions { margin: 32px 0 0; }
.lp-ch__n { display: block; font-weight: 900; font-stretch: 62%; font-size: clamp(6rem, 11vw, 10rem); line-height: .8; color: transparent; -webkit-text-stroke: 3px var(--lk-ink); margin-bottom: 18px; }
.lp-hint { margin-top: 48px; display: inline-flex; align-items: center; gap: 12px; font-weight: 800; text-decoration: none; align-self: flex-start; }
.lp-hint i { width: 24px; height: 36px; border: 3px solid var(--lk-ink); border-radius: 12px; position: relative; }
.lp-hint i::after { content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--lk-ink); animation: lp-wheel 1.8s infinite; }
@keyframes lp-wheel { 0% { transform: none; opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }

.lp-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--lk-ink); border-left: var(--lk-border); }
.lp-stage__map { position: absolute; inset: 0; width: 100%; height: 100%; }
.lp-road { fill: none; stroke-linecap: round; }
.lp-road--main { stroke: #33473E; stroke-width: 16; }
.lp-road--minor { stroke: #24372F; stroke-width: 6; }
.lp-lanes { fill: none; stroke: var(--lk-paper); stroke-width: 1.6; stroke-dasharray: 10 12; opacity: .28; }
.lp-lagoon { fill: #1D3F73; }
.lp-lagoon-wave { fill: none; stroke: var(--lk-paper); stroke-width: 2; opacity: .35; stroke-linecap: round; }
.lp-route-ghost { fill: none; stroke: var(--lk-marigold-500); stroke-width: 3; stroke-dasharray: 2 11; stroke-linecap: round; opacity: .5; }
.lp-route-case { fill: none; stroke: var(--lk-ink); stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
.lp-route { fill: none; stroke: var(--lk-marigold-500); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.lp-walk { fill: none; stroke: var(--lk-paper); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1 10; }
.lp-lbl { font: 800 14px var(--lk-font); font-stretch: 75%; fill: var(--lk-paper); letter-spacing: .04em; }
.lp-sign { font: 900 27px var(--lk-font); font-stretch: 62%; fill: var(--lk-board-yellow); letter-spacing: .02em; }
.lp-board-mk { transition: opacity .5s; }
.is-dim .lp-board-mk { opacity: .3; }
.lp-chosen { transform-box: fill-box; transform-origin: 50% 100%; transform: scale(.8); transition: transform .6s cubic-bezier(.3, 1.6, .5, 1); }
.lp-halo { fill: var(--lk-marigold-500); opacity: 0; transform-box: fill-box; transform-origin: center; }
.is-on .lp-halo { animation: lp-halo 2.2s ease-out infinite; }
@keyframes lp-halo { 0% { opacity: .5; transform: scale(.4); } 100% { opacity: 0; transform: scale(2.6); } }

.lp-tabs { position: absolute; top: 22px; left: 22px; right: 22px; display: flex; gap: 8px; padding: 0; margin: 0; list-style: none; }
.lp-tabs li { flex: 1; text-align: center; font-weight: 800; font-stretch: 80%; font-size: 15px; padding: 8px 4px; border: 3px solid var(--lk-paper); border-radius: 999px; color: var(--lk-paper); background: var(--lk-ink); transition: background .3s, color .3s, border-color .3s; }
.lp-tabs li.is-done { background: var(--lk-marigold-500); color: var(--lk-ink); border-color: var(--lk-marigold-500); }

.lp-smspop { position: absolute; left: 6%; bottom: 14%; width: min(360px, 84%); background: #fff; border: var(--lk-border); border-radius: 26px 26px 26px 6px; box-shadow: 8px 8px 0 var(--lk-marigold-500); padding: 16px 20px; font-weight: 700; font-stretch: 85%; font-size: 20px; line-height: 1.2; opacity: 0; transform: translateY(18px) rotate(-1deg); transition: opacity .4s, transform .45s cubic-bezier(.2, 1.3, .4, 1); }
.lp-smspop__from { display: block; font-size: 13px; font-stretch: 100%; color: var(--lk-muted); margin-bottom: 6px; }
.lp-ref { font-family: var(--lk-mono); font-weight: 700; font-size: .82em; background: var(--lk-marigold-500); padding: 0 .2em; border-radius: 5px; white-space: nowrap; }
.lp-stamp { position: absolute; right: 8%; top: 18%; color: var(--lk-sign-red); border: 5px solid var(--lk-sign-red); border-radius: 10px; padding: 8px 18px 10px; font-weight: 900; font-stretch: 62%; font-size: 46px; line-height: .9; text-align: center; background: rgba(255, 244, 221, .94); transform: rotate(-9deg) scale(1.6); opacity: 0; transition: opacity .15s, transform .35s cubic-bezier(.3, 1.5, .5, 1); }
.lp-stamp small { display: block; font-size: 16px; font-stretch: 90%; font-weight: 800; margin-top: 4px; letter-spacing: .06em; }
.lp-smspop.is-shown { opacity: 1; transform: rotate(-1deg); }
.lp-stamp.is-shown { opacity: 1; transform: rotate(-9deg) scale(1); }

@media (prefers-reduced-motion: no-preference) {
  .lp-board-mk, .lp-seller-mk, .lp-home-mk, .lp-chosen-wrap { animation: lp-drop .6s cubic-bezier(.2, 1.4, .4, 1) both; }
  .lp-board-mk:nth-child(2) { animation-delay: .08s; } .lp-board-mk:nth-child(3) { animation-delay: .16s; } .lp-board-mk:nth-child(4) { animation-delay: .24s; }
  .lp-board-mk:nth-child(5) { animation-delay: .32s; } .lp-board-mk:nth-child(6) { animation-delay: .4s; }
  .lp-chosen-wrap { animation-delay: .5s; } .lp-seller-mk { animation-delay: .6s; } .lp-home-mk { animation-delay: .7s; }
  .lp-route-ghost { animation: lp-fade 1s .9s both; }
}
@keyframes lp-drop { from { opacity: 0; transform: translateY(-16px); } }
@keyframes lp-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .lp-hint i::after, .is-on .lp-halo { animation: none; } }

/* Without JavaScript the map can't follow the scroll, so show the finished route. */
.no-js .lp-route, .no-js .lp-route-case { stroke-dasharray: none; }

@media (max-width: 860px) {
  .lp-story { display: flex; flex-direction: column; }
  .lp-chapters { display: contents; }
  .lp-ch { order: 2; } .lp-stage { order: 1; } .lp-story .lp-ch--intro { order: 0; }
  .lp-stage { height: 50vh; z-index: 3; border-left: 0; border-block: var(--lk-border); }
  .lp-tabs { top: 12px; left: 12px; right: 12px; gap: 5px; } .lp-tabs li { font-size: 12px; padding: 5px 2px; border-width: 2px; }
  .lp-story .lp-ch--intro { min-height: 0; justify-content: flex-start; padding-block: 40px 48px; }
  .lp-ch:not(.lp-ch--intro) { min-height: 50vh; justify-content: center; padding-block: 28px; }
  .lp-ch__n { font-size: 3.6rem; -webkit-text-stroke-width: 2px; margin-bottom: 10px; }
  .lp-smspop { font-size: 15px; left: 4%; bottom: 5%; padding: 12px 14px; }
  .lp-stamp { font-size: 30px; right: auto; left: 5%; top: auto; bottom: 7%; }
  .lp-hint { display: none; }
}

/* ---------- The street: painted signboards rolling past ---------- */
.lp-street { background: var(--lk-ink); overflow: hidden; padding-block: 34px 30px; position: relative; border-bottom: var(--lk-border); }
.lp-street::after { content: ""; position: absolute; inset: auto 0 0 0; height: 12px; background: repeating-linear-gradient(90deg, var(--lk-paper) 0 40px, transparent 40px 80px); opacity: .25; }
.lp-track { display: flex; gap: 28px; width: max-content; animation: lp-drive 60s linear infinite; }
.lp-street:hover .lp-track, .lp-street:focus-within .lp-track { animation-play-state: paused; }
@keyframes lp-drive { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .lp-track { animation: none; } .lp-street { overflow-x: auto; } }
.lp-board { position: relative; flex: none; display: flex; flex-direction: column; justify-content: center; padding: 18px 34px 16px; border: 6px solid; border-radius: 6px; text-align: center; min-height: 168px; }
.lp-board::before, .lp-board::after { content: ""; position: absolute; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: currentColor; opacity: .55; }
.lp-board::before { left: 8px; } .lp-board::after { right: 8px; }
.lp-board b { display: block; font-weight: 900; font-stretch: 62%; font-size: 58px; line-height: .9; text-transform: uppercase; letter-spacing: .01em; }
.lp-board span { display: block; font-weight: 700; font-stretch: 85%; font-size: 15px; margin-top: 8px; }
.lp-board--1 { background: var(--lk-green-700); color: var(--lk-board-yellow); border-color: var(--lk-board-yellow); }
.lp-board--2 { background: #fff; color: var(--lk-sign-red); border-color: var(--lk-sign-red); }
.lp-board--3 { background: var(--lk-sign-blue); color: #fff; border-color: #fff; }
.lp-board--4 { background: var(--lk-sign-red); color: #fff; border-color: var(--lk-marigold-500); }
.lp-board--5 { background: var(--lk-board-yellow); color: var(--lk-ink); border-color: var(--lk-ink); outline: 6px solid var(--lk-board-yellow); }
.lp-board--6 { background: var(--lk-paper); color: var(--lk-green-700); border-color: var(--lk-green-700); }
.lp-board--2 b::before { content: "+"; display: inline-block; margin-right: 10px; color: var(--lk-green-700); font-stretch: 100%; }
.lp-sticker { position: absolute; right: -16px; bottom: -18px; width: 66px; height: 66px; border-radius: 50%; background: var(--lk-marigold-500); border: 3px solid var(--lk-ink); display: grid; place-items: center; transform: rotate(-10deg); box-shadow: 3px 3px 0 rgba(0, 0, 0, .35); }
.lp-sticker img { width: 34px; height: 34px; }
.lp-street__cap { color: var(--lk-paper); font-weight: 600; font-size: 15px; margin: 26px 0 0; display: flex; align-items: center; gap: 10px; }
.lp-street__cap .lp-sticker { position: static; width: 30px; height: 30px; border-width: 2px; transform: none; box-shadow: none; }
.lp-street__cap .lp-sticker img { width: 16px; height: 16px; }
@media (max-width: 600px) { .lp-board { min-height: 130px; padding: 14px 24px; } .lp-board b { font-size: 42px; } }

/* ---------- The text message ---------- */
.lp-sms { background: var(--lk-paper); padding-block: clamp(80px, 10vw, 150px); }
.lp-sms h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-stretch: 80%; font-weight: 800; max-width: 22ch; line-height: .98; }
.lp-bubble { margin-top: 36px; background: #fff; border: var(--lk-border); border-radius: 36px 36px 36px 6px; padding: clamp(24px, 3.4vw, 48px); box-shadow: 10px 10px 0 var(--lk-ink); max-width: 1100px; }
.lp-bubble p { margin: 0; font-weight: 700; font-stretch: 78%; font-size: clamp(1.8rem, 4.3vw, 3.9rem); line-height: 1.08; letter-spacing: -.01em; }
.lp-bubble__from { display: block; font-size: 15px; font-weight: 700; margin-bottom: 14px; color: var(--lk-muted); }
.lp-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 56px; max-width: 1100px; }
.lp-facts div { border-top: var(--lk-border); padding-top: 16px; }
.lp-facts b { display: block; font-size: clamp(1.6rem, 2.4vw, 2.2rem); font-stretch: 80%; font-weight: 800; line-height: 1; }
.lp-facts p { margin: 8px 0 0; color: var(--lk-ink-2); }
@media (max-width: 760px) { .lp-facts { grid-template-columns: 1fr; } }

/* ---------- Three blocks: sellers, shops, couriers ---------- */
.lp-who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: var(--lk-border); }
.lp-who article { padding: clamp(40px, 5vw, 72px) clamp(22px, 3vw, 44px); display: flex; flex-direction: column; gap: 18px; border-right: var(--lk-border); min-height: 560px; }
.lp-who article:last-child { border-right: 0; }
.lp-who h2 { font-size: clamp(3rem, 6vw, 5.6rem); margin: 0; }
.lp-who p { margin: 0; max-width: 28rem; }
.lp-who ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.lp-who .lp-actions { margin: auto 0 0; padding-top: 12px; }
.lp-who__sell { background: var(--lk-green-700); color: #fff; }
.lp-who__shop { background: var(--lk-sign-red); color: #fff; }
.lp-who__ride { background: var(--lk-paper); }
@media (max-width: 980px) { .lp-who { grid-template-columns: 1fr; } .lp-who article { border-right: 0; border-bottom: var(--lk-border); min-height: 0; } .lp-who article:last-child { border-bottom: 0; } }

/* ---------- Notice board ---------- */
.lp-rules { padding-block: clamp(80px, 10vw, 140px); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.lp-rules h2 { font-size: clamp(2.6rem, 5vw, 4.6rem); max-width: 10ch; }
.lp-rules > div > p { font-weight: 500; max-width: 28rem; }
.lp-notice { background: #fff; border: 6px solid var(--lk-ink); outline: 6px solid #fff; padding: clamp(24px, 3.5vw, 44px); transform: rotate(-1.2deg); box-shadow: 14px 14px 0 rgba(16, 35, 27, .85); }
.lp-notice h3 { font-weight: 900; font-stretch: 62%; font-size: clamp(3.4rem, 6vw, 5.4rem); line-height: .85; color: var(--lk-sign-red); text-align: center; text-transform: uppercase; border-bottom: 4px solid var(--lk-ink); padding-bottom: 14px; margin: 0 0 18px; }
.lp-notice ol { margin: 0; padding-left: 1.4em; display: grid; gap: 14px; font-size: 1.15rem; font-weight: 600; }
.lp-notice li::marker { font-weight: 900; color: var(--lk-sign-red); }
.lp-notice__sig { margin: 22px 0 0; text-align: right; font-weight: 800; font-style: italic; font-stretch: 90%; }
@media (max-width: 900px) { .lp-rules { grid-template-columns: 1fr; } .lp-notice { transform: none; } }
@media (prefers-reduced-motion: reduce) { .lp-notice { transform: none; } }

/* ---------- Close ---------- */
.lp-close { background: var(--lk-ink); color: var(--lk-paper); padding-block: clamp(70px, 9vw, 120px); border-top: var(--lk-border); }
.lp-close__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.lp-close h2 { font-size: clamp(2.6rem, 6vw, 5.6rem); max-width: 13ch; margin: 0; }
.lp-close p { margin: 16px 0 0; max-width: 32rem; color: #D8E3DC; }
.lp-close .lp-actions { margin: 0; }
@media (max-width: 860px) { .lp-close__row { grid-template-columns: 1fr; } }
/* the footer follows straight on from the ink close, so drop its top rule */
.home .lp-footer { border-top: 0; padding-top: 0; }
.home .lp-footer .lp-footer__grid { padding-top: 48px; border-top: 2px solid #2A3E35; }
