/* ONEFIT landing: page CSS on top of the kit (assets/kit/system.css, motion.css).
   Brand: Mint #04E6B3 fills with Black #231F20 labels, Deep Mint #007F63 for accent text on light,
   Mist #F2F5F4, Graphite #4A4F4D, Montserrat (brandbook v2.0). Motion uses the brandbook curve, --ease. */

:root { --mint: #04e6b3; --deep-mint: #007f63; --mist: #f2f5f4; --graphite: #4a4f4d; --ink-brand: #231f20; }

/* the kit drives links, focus and some hovers from --action; mint is the button fill only, so text and the
   focus ring stay in ink (Mint on white is 1.6:1) */
:focus-visible { outline-color: var(--ink); }
.ground-inverse :focus-visible, .lp-hero :focus-visible { outline-color: var(--mint); }
@media (hover: hover) and (pointer: fine) { .footer ul a:hover, .footer__nav a:hover, .menu-col a:hover { color: var(--ink); } }

/* ------------------------------------------------------------------ the page's rhythm: native scrolling
   Every section is as tall as its content (no one-screen sections, no wheel snapping): one padding above and below
   each, and an anchor lands with the section's top just under the fixed header. The hero stays the first screen. */
:root { --sec-y: clamp(72px, 3.8vw + 57px, 112px); }
html { scroll-padding-top: var(--nav); }
main > section.section:not(.hero), footer.closing.lp-close { height: auto; min-height: 0; padding: var(--sec-y) 0; }
main > section.section:not(.hero) > .wrap, footer.closing.lp-close > .wrap { height: auto; }
.nav__link { height: 44px; }

h1, h2, h3 { font-weight: 800; }
h3 { font-size: var(--t-card); line-height: 1.25; letter-spacing: -0.02em; }
.lp-head-note { color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 52ch; margin: 0; }
.lp-small { color: var(--muted); font-size: 14px; margin: 0; }
.lp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* chunky credit numerals, the plans' signature (after 1Fit's tiles): an extruded face, set at an angle */
.lp-chunky {
  display: inline-block; font-weight: 800; letter-spacing: -0.075em; line-height: 1; color: var(--ink-brand);
  font-size: clamp(104px, 11vw, 160px); transform: rotate(var(--rot, 0deg));
  text-shadow: .02em .02em 0 var(--mint), .04em .04em 0 var(--mint), .06em .06em 0 var(--mint), .075em .075em 0 var(--mint);
}
.lp-chunky--deep { text-shadow: .02em .02em 0 var(--deep-mint), .04em .04em 0 var(--deep-mint), .06em .06em 0 var(--deep-mint), .075em .075em 0 var(--deep-mint); }
.lp-chunky--sm { font-size: 96px; }

/* ------------------------------------------------------------------ hero: E's stepping lines on a full-bleed photo */
.lp-hero { color: #fff; background: var(--ink-brand); overflow: hidden; }
/* at least the first screen at every width (the kit fixes it at 100svh from 640 up): a short laptop, a landscape
   phone or 200% zoom grows the hero instead of pushing the headline up under the header */
main > section.lp-hero { height: auto; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr; }
main > section.lp-hero > .wrap { height: auto; }
/* a landscape phone: the phone's header and a shorter gap above and below the hero's words */
@media (max-height: 500px) { :root { --nav: 56px; --hgap: 24px; --hpadb: 24px; } }
/* the photographs are the section's background layers, starting under the fixed header */
.lp-hero > img.layer.lp-hero__photo { position: absolute; left: 0; right: 0; top: var(--nav); bottom: 0; width: 100%; height: calc(100% - var(--nav)); z-index: 0;
  object-fit: cover; opacity: 0; transition: opacity 700ms var(--ease); }
/* the first photograph is the hero's ground and always shows; the others fade in over it */
.lp-hero > img.lp-hero__photo:nth-of-type(1) { object-position: 50% 35%; opacity: 1; }
.lp-hero > img.lp-hero__photo:nth-of-type(3) { object-position: 50% 30%; }
.lp-hero__photo.is-on { opacity: 1; }
/* the words sit on the photograph's lower left: a shade from the left under the words (the right of the photo stays
   clear) over the shade from below keeps every line at 3:1 or more on all three frames */
.lp-hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(35,31,32,.64) 0%, rgba(35,31,32,.46) 45%, rgba(35,31,32,0) 72%),
    linear-gradient(180deg, rgba(35,31,32,.12) 0%, rgba(35,31,32,0) 22%, rgba(35,31,32,.62) 50%, rgba(35,31,32,.8) 66%, rgba(35,31,32,.9) 100%); }
.lp-hero > .wrap { position: relative; z-index: 1; }
/* one column on the left line: the lines, the lead, the buttons, the facts, then the next class and the dots */
.lp-hero__text { display: grid; align-content: end; height: 100%; }
.lp-hero__copy { display: grid; gap: var(--s-5); max-width: 760px; }
.lp-hero__lines { display: grid; justify-items: start; font-size: clamp(40px, 3.6vw + 26px, 78px); line-height: 1.02; letter-spacing: -0.055em; font-weight: 800; color: #fff; }
/* a short screen sets the lines by its height too, so the words stay under the faces and the first screen holds them */
.lp-hero__lines { font-size: clamp(36px, min(3.6vw + 26px, 9svh), 78px); }
.lp-line { display: block; color: rgba(255,255,255,.7); transition: color 400ms var(--ease); }
.lp-line.is-on { color: #fff; }
.lp-word { display: inline-block; padding: 0 .12em; margin-left: -.02em; border-radius: .1em; transition: background-color 400ms var(--ease), color 400ms var(--ease); }
.lp-line.is-on .lp-word { background: var(--mint); color: var(--ink-brand); }
.lp-hero__lead { font-size: 19px; line-height: 1.55; max-width: 34em; color: rgba(255,255,255,.92); margin: 0; }
.lp-hero .btn-row { margin-top: var(--s-2); }
/* the kit's credits line appends an English word; the summary carries its own Mongolian label */
.credits > summary::after { content: none; }
.credits > summary { text-decoration: underline; text-decoration-color: rgba(35,31,32,.3); text-underline-offset: 3px; }
.lp-hero__facts { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-7); margin: var(--s-3) 0 0; }
.lp-hero__facts div { display: grid; gap: 2px; }
.lp-hero__facts dt { font-size: 14px; font-weight: 500; color: rgba(255,255,255,.75); }
.lp-hero__facts dd { margin: 0; font-size: 18px; font-weight: 700; }
/* the facts repeat the How and Plans sections: a narrower or shorter screen keeps the photograph instead */
@media (max-width: 1279px), (max-height: 820px) { .lp-hero__facts { display: none; } }
.lp-hero__side { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.lp-next { margin: 0; font-size: 15px; line-height: 1.45; color: rgba(255,255,255,.9); }
.lp-next b { color: var(--mint); font-weight: 700; }
.lp-hero__steps { display: flex; align-items: center; gap: 2px; }
.lp-step { width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.lp-step::before { content: ""; width: 28px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.4); transition: background-color 240ms var(--ease), transform 90ms var(--ease); }
.lp-step.is-on::before { background: var(--mint); }
.lp-step:active::before { transform: scaleX(.86); }
.lp-pause { width: 44px; height: 44px; margin-left: var(--s-2); border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(35,31,32,.55); color: #fff; cursor: pointer; display: grid; place-items: center; padding: 0;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), transform 90ms var(--ease); }
.lp-pause:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) {
  .lp-pause:hover { background: rgba(35,31,32,.78); border-color: rgba(255,255,255,.75); }
  .lp-step:not(.is-on):hover::before { background: rgba(255,255,255,.75); }
}
.lp-pause svg { width: 18px; height: 18px; fill: currentColor; }
.lp-pause__play, .lp-pause[aria-pressed="true"] .lp-pause__stop { display: none; }
.lp-pause[aria-pressed="true"] .lp-pause__play { display: block; }
.lp-hero:not(.is-rotating) .lp-pause { display: none; }
@media (max-width: 639px) {
  /* a phone puts the words over more of the photograph: a deeper shade from higher up */
  .lp-hero::after { background: linear-gradient(180deg, rgba(35,31,32,.3) 0%, rgba(35,31,32,.7) 22%, rgba(35,31,32,.84) 42%, rgba(35,31,32,.92) 100%); }
  .lp-hero__lead { font-size: 17px; }
  .lp-hero .btn-row .btn { width: 100%; }
  /* the kit turns a phone's second button into a text link, but its pill theme keeps the pale fill: on the photo, a white link */
  .lp-hero .btn-row > .btn--secondary, .lp-hero .btn-row > .btn--secondary:hover { background: none; border-color: transparent; color: #fff; text-decoration-color: rgba(255,255,255,.45); }
  .lp-next { font-size: 14px; }
}

/* ------------------------------------------------------------------ how credits work: three steps with app pieces */
/* each card: its app piece on a stage of one height (first on screen, last for a screen reader), then the number
   and the step, then its line; the three stages make one band, the three titles start on one line */
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.lp-stepcard { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-6); border-radius: 28px; overflow: hidden; }
.lp-stage { order: -1; min-height: 248px; margin: 0 calc(-1 * var(--s-3)) var(--s-4); display: grid; place-items: center; }
.lp-stepcard__head { display: flex; align-items: center; gap: var(--s-3); }
.lp-stepcard h3 { font-size: 24px; letter-spacing: -0.03em; }
.lp-stepcard p { margin: 0; font-size: 16px; line-height: 1.6; max-width: 40ch; }
.lp-stepcard--mint { background: var(--mint); color: var(--ink-brand); }
.lp-stepcard--mint p { color: rgba(35,31,32,.82); }
.lp-stepcard--ink { background: var(--ink-brand); color: #fff; }
.lp-stepcard--ink p { color: rgba(255,255,255,.78); }
.lp-stepcard--mist { background: var(--mist); color: var(--ink-brand); }
.lp-stepcard--mist p { color: var(--graphite); }
.lp-num { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 16px; background: var(--ink-brand); color: var(--mint); }
.lp-stepcard--ink .lp-num { background: var(--mint); color: var(--ink-brand); }
/* 1: the plan's credits as the app shows them, paid and receipted */
.lp-piece--credits { width: 100%; max-width: 300px; background: #fff; border-radius: 22px; padding: 18px 20px 20px; box-shadow: 0 18px 40px rgba(35,31,32,.16); display: grid; gap: 2px; }
.lp-piece__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lp-piece__label { font-size: 14px; font-weight: 600; color: var(--graphite); }
.lp-tag { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--mist); color: var(--ink-brand); white-space: nowrap; }
.lp-chunky--sm { font-size: 88px; }
.lp-paid { list-style: none; margin: 10px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-brand); }
.lp-paid li { display: flex; align-items: center; gap: 8px; }
.lp-paid svg, .lp-class i.is-booked svg, .lp-code__ok svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--deep-mint); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
/* 2: three classes from the list, the last one booked */
/* the rows stack in flow, so a name that wraps makes its row taller instead of being cut */
.lp-piece--stack { width: 100%; max-width: 340px; display: grid; gap: 6px; }
.lp-class { margin: 0 calc(20px - var(--x)) 0 var(--x); display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 10px;
  background: #fff; color: var(--ink-brand); border-radius: 18px; box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.lp-class:nth-child(1) { --x: 0px; }
.lp-class:nth-child(2) { --x: 14px; }
.lp-class:nth-child(3) { --x: 6px; }
.lp-class img { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; flex: none; }
.lp-class div { flex: 1; min-width: 0; display: grid; }
.lp-class b { font-size: 15px; font-weight: 700; line-height: 1.3; }
.lp-class span { font-size: 13px; line-height: 1.35; color: var(--graphite); }
.lp-class i { font-style: normal; font-size: 15px; font-weight: 800; color: var(--deep-mint); white-space: nowrap; flex: none; }
.lp-class:has(i.is-booked) { gap: 8px; }
.lp-class i.is-booked { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; letter-spacing: -0.01em; color: var(--ink-brand); }
.lp-class i.is-booked svg { width: 13px; height: 13px; }
/* a narrow card (1024 to 1279): the rows drop their pictures so the name keeps its room beside the price */
@media (min-width: 1024px) and (max-width: 1279px) { .lp-class { gap: 10px; padding: 14px; } .lp-class img { display: none; } }
/* under 1280 the booked mark is the check alone, on a mint disc (the piece's label names it for a screen reader) */
@media (max-width: 1279px) {
  .lp-class i.is-booked { font-size: 0; width: 28px; height: 28px; justify-content: center; border-radius: 50%; background: var(--mint); }
  .lp-class i.is-booked svg { width: 16px; height: 16px; stroke: var(--ink-brand); }
}
/* 3: the booking's check-in QR, its class and time, accepted at the desk */
.lp-piece--pass { position: relative; width: 100%; max-width: 320px; padding: 0 0 22px 14px; }
.lp-pass { display: flex; align-items: center; gap: 14px; padding: 18px; background: var(--ink-brand); color: #fff; border-radius: 22px; box-shadow: 0 18px 40px rgba(35,31,32,.16); }
.lp-pass__info { flex: 1; min-width: 0; display: grid; gap: 2px; justify-items: start; }
.lp-pass__info b { font-size: 16px; font-weight: 800; line-height: 1.25; }
.lp-pass__info span { font-size: 14px; color: rgba(255,255,255,.72); }
.lp-pass__info em { margin-top: 10px; font-style: normal; font-size: 13px; font-weight: 700; white-space: nowrap; padding: 4px 10px; border-radius: 999px; background: var(--mint); color: var(--ink-brand); }
.lp-pass__qr { flex: none; width: 112px; aspect-ratio: 1; background: #fff; border-radius: 14px; padding: 8px; }
.lp-pass__qr svg { width: 100%; height: 100%; fill: var(--ink-brand); }
.lp-pass__check { position: absolute; left: 0; bottom: 0; width: 52px; height: 52px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(35,31,32,.18); }
.lp-pass__check svg { width: 54%; height: 54%; fill: none; stroke: var(--ink-brand); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
/* three across: the cards share three rows (stage, title, line), so a title that wraps keeps every line level */
@media (min-width: 1024px) {
  .lp-steps { grid-template-rows: repeat(3, auto); row-gap: 0; }
  .lp-stepcard { display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start; }
  .lp-stepcard__head { align-items: flex-start; }
}
/* a small laptop: a slimmer card, the number above its title, and a smaller pass so its QR stays whole */
@media (min-width: 1024px) and (max-width: 1279px) {
  .lp-stepcard { padding: var(--s-5); }
  .lp-stepcard__head { flex-direction: column; gap: var(--s-2); }
  .lp-stepcard h3 { font-size: 22px; }
}
@media (min-width: 1024px) and (max-width: 1279px), (max-width: 359px) {
  .lp-piece--pass { padding: 0 0 30px 8px; }
  .lp-pass { gap: 10px; padding: 14px; }
  .lp-piece--pass .lp-pass__qr { width: 80px; }
  .lp-pass__info em { font-size: 12px; padding: 4px 8px; }
  .lp-pass__check { width: 44px; height: 44px; }
}
/* a tablet: each card a row, its words on the left and its piece on the right */
@media (min-width: 768px) and (max-width: 1023px) {
  .lp-stepcard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; column-gap: var(--s-6); row-gap: var(--s-3); }
  .lp-stage { grid-column: 2; grid-row: 1 / -1; margin: 0; }
  .lp-stepcard__head { grid-column: 1; grid-row: 1; align-self: end; }
  .lp-stepcard > p { grid-column: 1; grid-row: 2; align-self: start; }
}
/* under 1024 the cards stack, each as wide as the column */
@media (max-width: 1023px) { .lp-steps { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ places: the live map of Ulaanbaatar */
/* the page's splits share one line: the words on columns 1-5, the picture on 6-12, both top-aligned */

/* the map is the section's ground, edge to edge; the words sit on it in a white panel on columns 1-5 */
/* a wide screen: the map is a tall band (not a whole screen on a tall monitor), the panel on its upper left */
main > section.section.lp-places-sec { position: relative; overflow: clip; background: #edf1ef; min-height: clamp(640px, 86svh, 820px); }
.lp-places-sec > .lp-map { position: absolute; inset: 0; z-index: 0; }
.lp-places-sec > .wrap { pointer-events: none; }
.wrap.grid.lp-places { align-content: start; }
.lp-places__panel { pointer-events: auto; grid-column: 1 / span 5; margin-left: calc(-1 * var(--s-7)); display: flex; flex-direction: column; gap: var(--s-5); min-width: 0;
  padding: 40px var(--s-7); border-radius: 28px; background: #fff; box-shadow: 0 1px 2px rgba(35,31,32,.08), 0 24px 60px rgba(35,31,32,.18); }
/* a small laptop: one column more, so the five chips stay on one row */
@media (min-width: 1024px) and (max-width: 1365px) { .lp-places__panel { grid-column: 1 / span 6; } }
.lp-places__panel .lp-head-note { margin: calc(-1 * var(--s-2)) 0 0; }
.lp-chips-row { display: flex; flex-wrap: wrap; gap: 6px; }
/* desktop: the five chips («Эрүүл хоол» is the long one) fit the panel's one row */
@media (min-width: 1024px) { .lp-chips-row { gap: 4px; } .lp-chips-row .lp-filter { padding: 0 11px; } }
@media (min-width: 1024px) and (max-width: 1439px) { .lp-chips-row .lp-filter { padding: 0 9px; font-size: 14px; } }
.lp-filter { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink);
  font: 600 15px/1 var(--font-text); cursor: pointer; display: inline-flex; align-items: center;
  transition: background-color 150ms var(--ease), color 150ms var(--ease), border-color 150ms var(--ease), transform 90ms var(--ease); }
.lp-filter[aria-pressed="true"] { background: var(--ink-brand); border-color: var(--ink-brand); color: #fff; }
.lp-filter:active { transform: translateY(1px) scale(.985); }
@media (hover: hover) and (pointer: fine) { .lp-filter[aria-pressed="false"]:hover { border-color: var(--ink); } }
/* the picked place, as the app's list row shows it: its picture, kind, name and next class */
.lp-venue { display: flex; gap: var(--s-4); align-items: center; padding: 14px; border-radius: 20px; background: var(--mist); }
.lp-venue img { width: 88px; height: 88px; border-radius: 14px; object-fit: cover; flex: none; }
.lp-venue > div { min-width: 0; }
.lp-venue p { margin: 0; }
.lp-venue__pillar { font-size: 14px; font-weight: 700; color: var(--deep-mint); }
.lp-venue__name { font-size: 18px; font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; margin-top: 2px !important; }
.lp-venue__next { font-size: 15px; color: var(--graphite); margin-top: 2px !important; }
.lp-map-hint { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 14px; line-height: 1.5; color: var(--graphite); }
.lp-map-hint svg { flex: none; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: var(--deep-mint); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lp-map { position: relative; overflow: hidden; background: #edf1ef; }
.lp-map__canvas { position: absolute; inset: 0; }
/* the map's container clips an outside ring, so the focused map draws its ring inside */
.lp-map .maplibregl-canvas:focus-visible { outline: 3px solid var(--ink-brand); outline-offset: -3px; }
.lp-map__still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lp-map.is-live .lp-map__still { display: none; }
.lp-map .maplibregl-ctrl-bottom-right { bottom: 34px; right: max(var(--gut), calc((100% - var(--container)) / 2)); }
.lp-map .maplibregl-ctrl-bottom-right .maplibregl-ctrl { margin: 0; }
.lp-map .maplibregl-ctrl-group { border-radius: 14px; box-shadow: 0 6px 18px rgba(35,31,32,.18); }
.lp-map .maplibregl-ctrl-group button { width: 44px; height: 44px; }
.lp-map__credit { position: absolute; z-index: 2; right: max(var(--gut), calc((100% - var(--container)) / 2)); bottom: 8px; margin: 0;
  font-size: 12px; color: rgba(35,31,32,.78); background: rgba(255,255,255,.85); padding: 2px 8px; border-radius: 6px; }
/* a landmark: its drawing alone, standing on its spot; a thin white edge keeps it clear of the map */
.lp-lm { width: var(--lm, 60px); height: var(--lm, 60px); padding: 0; border: 0; background: none; cursor: pointer; display: block;
  filter: drop-shadow(0 0 .6px #fff) drop-shadow(0 0 .6px #fff) drop-shadow(0 0 .6px #fff); }
/* maplibre writes the marker's position as its transform every frame: the lift and press move the drawing inside it */
.lp-lm svg { display: block; width: 100%; height: 100%; transition: transform 180ms var(--ease); transform-origin: 50% 100%; }
.lp-lm:focus-visible { outline: 2px solid var(--ink-brand); outline-offset: 2px; border-radius: 12px; }
@media (hover: hover) and (pointer: fine) { .lp-lm:hover svg { transform: translateY(-3px) scale(1.06); } }
.lp-lm:active svg { transform: scale(.97); }
@media (max-width: 1023px) {
  /* a tablet and a phone: the words first on the page's ground, then the map below them, edge to edge */
  main > section.section.lp-places-sec { display: flex; flex-direction: column; min-height: 0; padding-bottom: 0; background: var(--bg); }
  #places > .wrap { order: 1; pointer-events: auto; height: auto; flex: none; }
  .lp-places-sec > .lp-map { order: 2; position: relative; inset: auto; flex: 1 0 auto; height: min(72svh, 640px); min-height: 420px; margin-top: var(--s-6); }
  .lp-places__panel { grid-column: 1 / -1; margin-left: 0; padding: 0; background: none; box-shadow: none; border-radius: 0; }
  .lp-map .maplibregl-ctrl-bottom-right { right: var(--gut); }
  .lp-map__credit { right: var(--gut); }
}

/* ------------------------------------------------------------------ plans */
/* the plans on the left as the app lists them (slim rows: name, credits and days, the price on the right), what
   every plan includes on the right as four tiles, each led by its figure */
.wrap.grid.lp-plans-wrap { align-items: start; }
.lp-plans-col { grid-column: 1 / span 5; display: flex; flex-direction: column; align-items: stretch; }
.lp-plans-col .lp-head-note { margin: var(--s-3) 0 0; }
.lp-plans-col .btn-row { margin-top: var(--s-5); }
.lp-planrows { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.lp-planrow { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 76px; padding: 12px 20px;
  background: #fff; border: 1px solid var(--line-strong); border-radius: 18px; }
.lp-planrow p { margin: 0; }
.lp-planrow__name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.lp-planrow__meta { margin-top: 2px !important; font-size: 14px; color: var(--graphite); font-variant-numeric: tabular-nums; }
.lp-planrow__price { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* the best value: the app's own mark (lowest price per credit) and a flame, on the brand's mint fill with ink words */
.lp-planrow--best { border: 2px solid var(--mint); background: var(--mint); padding: 11px 19px; }
.lp-planrow--best .lp-planrow__meta { color: rgba(35,31,32,.8); }
.lp-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px 3px 6px; border-radius: 999px; background: var(--ink-brand); color: #fff;
  font-size: 13px; font-weight: 700; letter-spacing: 0; line-height: 1.4; white-space: nowrap; }
.lp-fire { width: 16px; height: 16px; flex: none; }
.lp-perks { grid-column: 6 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.lp-perk { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: var(--s-3); padding: var(--s-6); border-radius: 24px; min-width: 0; }
/* a narrow tile puts its figure above the title instead of pushing the words past the padding */
.lp-perk__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); min-height: 64px; }
.lp-perk__big { flex: none; }
.lp-perk .lp-chunky { font-size: 52px; letter-spacing: -0.06em; }
.lp-perk h3 { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
.lp-perk p { margin: 0; font-size: 16px; line-height: 1.55; }
.lp-perk .lp-perk__fine { font-size: 14px; font-weight: 600; }
.lp-perk--ink { background: var(--ink-brand); color: #fff; }
.lp-perk--ink p { color: rgba(255,255,255,.76); }
.lp-perk--mint { background: var(--mint); color: var(--ink-brand); }
.lp-perk--mint p { color: rgba(35,31,32,.8); }
.lp-perk--mist { background: var(--mist); }
.lp-perk--mist p, .lp-perk--line p { color: var(--graphite); }
.lp-perk--line { background: #fff; border: 1px solid var(--line-strong); }
/* the pause sign: two mint bars with the chunky face's deep edge */
.lp-perk__pause { display: flex; gap: 9px; height: 48px; align-items: stretch; padding-right: 4px; }
.lp-perk__pause i { width: 16px; border-radius: 4px; background: var(--mint); box-shadow: 2px 2px 0 var(--deep-mint), 4px 4px 0 var(--deep-mint); }
/* below 1280 the two columns are too narrow for the tiles' figures: the list, then the tiles two by two */
@media (max-width: 1279px) {
  .lp-plans-col, .lp-perks { grid-column: 1 / -1; }
  .lp-perks { margin-top: var(--s-7); }
}
@media (max-width: 639px) {
  .lp-perks { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); margin-top: var(--s-6); }
  .lp-perk { padding: var(--s-4) var(--s-5); gap: var(--s-2); }
  .lp-perk .lp-chunky { font-size: 48px; }
  .lp-planrow { padding: 10px 16px; min-height: 68px; }
  .lp-planrow--best { padding: 9px 15px; }
  .lp-planrow__name { font-size: 16px; }
  .lp-planrow__price { font-size: 18px; }
}
/* the narrowest phone (320, or 400% zoom): the price drops under the plan's name, the figures shrink */
@media (max-width: 359px) {
  .lp-planrow { flex-wrap: wrap; row-gap: 2px; }
  .lp-perk .lp-chunky { font-size: 40px; }
}

/* ------------------------------------------------------------------ partners */
/* the photograph (a full spin class, OneFit's own) is the section's ground, edge to edge; the words and the partner
   app's code check-in float on it as one stack on columns 1-5 (as the map's panel does), the class carries on to the right */
main > section.section.lp-partners-sec { position: relative; overflow: clip; min-height: clamp(640px, 86svh, 820px); }
.lp-partners__photo { position: absolute; inset: 0; z-index: 0; margin: 0; }
.lp-partners__photo > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 0% 30%; }
.lp-partners-sec > .wrap { pointer-events: none; }
.wrap.grid.lp-partners { align-content: start; }
.lp-partners__stack { pointer-events: auto; grid-column: 1 / span 5; margin-left: calc(-1 * var(--s-7)); display: flex; flex-direction: column; gap: var(--s-4); }
.lp-partners__copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-5); padding: var(--s-7); border-radius: 28px;
  background: #fff; box-shadow: 0 1px 2px rgba(35,31,32,.08), 0 24px 60px rgba(35,31,32,.18); }
.lp-partners__copy .lp-head-note { margin-top: calc(-1 * var(--s-2)); }
.lp-facts { list-style: none; margin: 0; padding: 0; display: grid; width: 100%; }
.lp-facts li { padding: 14px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.5; color: var(--graphite); }
.lp-facts li:last-child { border-bottom: 1px solid var(--line); }
.lp-facts b { color: var(--ink-brand); font-weight: 700; }
/* the plain contacts under the partner button, for a question first */
.lp-partners__contact { margin: calc(-1 * var(--s-2)) 0 0; font-size: 15px; line-height: 1.5; color: var(--graphite); }
.lp-partners__contact a { color: inherit; text-underline-offset: 3px; }
.lp-nb { white-space: nowrap; }
/* the partner app's check-in by code: the member's six digits, then the visit recorded */
.lp-code { display: grid; gap: var(--s-3); justify-items: start; padding: 20px var(--s-7); border-radius: 22px; background: var(--ink-brand); color: #fff;
  box-shadow: 0 18px 44px rgba(35,31,32,.28); }
.lp-code p { margin: 0; }
.lp-code__label { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.72); }
.lp-code__digits { display: grid; grid-template-columns: repeat(6, 44px); gap: 8px; }
.lp-code__digits i { display: grid; place-items: center; height: 54px; border-radius: 12px; background: #fff; color: var(--ink-brand);
  font-style: normal; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.lp-code__ok { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--mint); }
.lp-code__ok svg { stroke: currentColor; }
/* a tablet and a phone: the words and the code first on the section's ground, then the photograph whole, edge to edge */
@media (max-width: 1023px) {
  main > section.section.lp-partners-sec { display: flex; flex-direction: column; min-height: 0; padding-bottom: 0; }
  #partners > .wrap { order: 1; pointer-events: auto; height: auto; flex: none; }
  .lp-partners__stack { grid-column: 1 / -1; margin-left: 0; gap: var(--s-6); }
  .lp-partners__copy { padding: 0; background: none; box-shadow: none; border-radius: 0; }
  .lp-code { box-shadow: none; }
  .lp-partners__photo { order: 2; position: relative; inset: auto; flex: none; margin-top: var(--s-7); }
  .lp-partners__photo > img { height: auto; aspect-ratio: 1920 / 1092; }
}

/* a phone's bar is the logo and the menu; the app button sits in the hero and the closing screen */
@media (max-width: 639px) { .nav__logo img { height: 18px; width: auto; } }
/* a touch screen of any width: the logos are 44px targets */
@media (max-width: 639px), (pointer: coarse) { .nav__logo, .lp-close__logo { display: inline-flex; align-items: center; min-height: 44px; } }
@media (max-width: 639px) {
  .lp-stepcard { padding: var(--s-5); }
  .lp-stage { min-height: 224px; margin-bottom: var(--s-3); }
  .lp-stepcard h3 { font-size: 22px; }
  .lp-chunky--sm { font-size: 72px; }
  .lp-pass__qr { width: 96px; }
  .lp-class { gap: 10px; }
  .lp-class img { width: 44px; height: 44px; border-radius: 10px; }
  .lp-code { padding: 18px 20px; }
  .lp-code__digits { grid-template-columns: repeat(6, minmax(0, 44px)); gap: 6px; }
}
/* ------------------------------------------------------------------ the closing screen: the leopard's stage */
/* a dark ground; the words on columns 1-6, the leopard on a mint spotlight on 7-12, the links under a hairline */
footer.closing.lp-close { overflow: hidden; padding-bottom: var(--s-7); }
.lp-close__wrap { row-gap: var(--s-7) !important; }
.lp-close__call { align-items: start; min-height: 0; }
.lp-close__copy { grid-column: 1 / span 5; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); align-content: start; }
.lp-close__copy h2 { color: #fff; font-size: clamp(36px, 2.4vw + 24px, 58px); line-height: .98; letter-spacing: -0.055em; }
.lp-close__copy h2 span { display: block; color: var(--mint); }
/* beside the stage, the long last word keeps to the five columns (it would break inside itself from 1024 to 1279) */
@media (min-width: 1024px) { .lp-close__copy h2 { font-size: clamp(36px, 4.3vw, 58px); } }
.lp-close__copy > p { margin: 0; font-size: 18px; line-height: 1.55; color: rgba(255,255,255,.76); max-width: 30em; }
.lp-close__actions { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: var(--s-5); margin-top: var(--s-2); }
.lp-stores { gap: var(--s-3); }
.btn.lp-store { gap: 10px; }
.lp-store svg { width: 20px; height: 20px; flex: none; }
/* the QR: a real code (www.onefit.mn/app), big enough to scan from a seat at the desk */
.lp-qr { display: flex; align-items: center; gap: var(--s-5); margin: 0; padding: 12px 28px 12px 12px; border-radius: 24px; background: #302c2d; max-width: 480px; }
.lp-qr svg { display: block; width: 152px; height: 152px; flex: none; border-radius: 14px; background: #fff; fill: var(--ink-brand); }
.lp-qr figcaption { font-size: 16px; font-weight: 600; line-height: 1.45; color: rgba(255,255,255,.88); }
@media (max-width: 1279px) { .lp-qr { gap: var(--s-4); padding-right: 20px; } .lp-qr svg { width: 128px; height: 128px; } .lp-qr figcaption { font-size: 15px; } }

/* the stage: a mint disc with two faint rings, the leopard standing in front of it, a little over its edge */
.lp-close__stage { grid-column: 6 / -1; position: relative; --stage: min(460px, 38vw); height: var(--stage); }
.lp-spot { position: absolute; left: 50%; top: 0; width: var(--stage); height: var(--stage); transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #6DF5D5 0%, var(--mint) 46%, #00C496 100%); }
.lp-spot::before, .lp-spot::after { content: ""; position: absolute; inset: -8%; border-radius: 50%; border: 1px solid rgba(4,230,179,.26); }
.lp-spot::after { inset: -16%; border-color: rgba(4,230,179,.12); }
.lp-leo { position: absolute; left: 50%; top: calc(var(--stage) / 2); width: var(--leo); height: var(--leo); --leo: calc(var(--stage) * .94);
  transform: translate(-50%, -50%); cursor: pointer; z-index: 2; }
/* the run sheet: 6 x 4 frames, each exactly the box; the frame is set as a percentage (landing.js) */
.lp-leo__sprite { position: absolute; inset: 0; background: 0 0 / 600% 400% no-repeat; }
/* the sheet itself comes when the screen is near (landing.js) */
.is-near .lp-leo__sprite { background-image: url("mascot/run-sheet-360.webp"); }
.lp-leo-pause { position: absolute; z-index: 3; margin: 0; left: calc(50% + var(--stage) * .36); top: calc(var(--stage) * .84); }
.lp-close__stage:not(.is-live) .lp-leo-pause { display: none; }
.lp-leo::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: 1%; height: 7%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,90,68,.4), transparent); z-index: -1; }

/* the links: the mark, three columns, the legal line */
.lp-close__links { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.2fr); gap: var(--s-5) var(--s-7);
  padding-top: var(--s-6); border-top: 1px solid rgba(255,255,255,.14); font-size: 15px; }
.lp-close__links > * { display: grid; align-content: start; gap: 6px; }
.lp-close__logo { display: block; width: max-content; }
.lp-close__logo img { display: block; height: 22px; width: auto; }
.lp-close__links h3 { font-size: 14px; font-weight: 600; letter-spacing: 0; margin: 0 0 2px; color: rgba(255,255,255,.5); }
.lp-close__links a:not(.lp-close__logo) { color: rgba(255,255,255,.88); width: max-content; min-height: 24px; text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.22); text-underline-offset: 4px; transition: text-decoration-color 150ms var(--ease), color 150ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .lp-close__links a:not(.lp-close__logo):hover { color: #fff; text-decoration-color: var(--mint); } }
.lp-close__links span { color: rgba(255,255,255,.7); }
.lp-legal { justify-items: end; text-align: right; color: rgba(255,255,255,.6); }
.lp-legal details summary { cursor: pointer; min-height: 24px; display: inline-flex; align-items: center; font-size: 14px; color: rgba(255,255,255,.7); text-decoration-color: rgba(255,255,255,.3) !important; }
.lp-legal details p { margin: 6px 0 0; font-size: 14px; max-width: 34ch; }
@media (max-width: 1279px) {
  .lp-close__links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lp-close__logo, .lp-legal { grid-column: 1 / -1; }
  .lp-legal { justify-items: start; text-align: left; }
}
/* a tablet and a phone: the words, then the leopard under them (beside them the heading would run into its stage) */
@media (max-width: 1023px) { .lp-close__copy, .lp-close__stage { grid-column: 1 / -1; } }
@media (max-width: 767px) {
  /* the long last word fits a 320 screen */
  .lp-close__copy h2 { font-size: min(36px, 8.6vw); }
  .lp-close__stage { --stage: min(260px, calc(100vw - 2 * var(--gut))); }
  .lp-spot::before, .lp-spot::after { content: none; }
  .lp-qr { display: none; }
  /* the two stores side by side (the kit stacks a phone's button row) */
  .btn-row.lp-stores { width: 100%; flex-direction: row; flex-wrap: nowrap; }
  .lp-stores .btn.lp-store { flex: 1 1 0; min-width: 0; justify-content: center; padding-inline: 12px; }
}
@media (max-width: 359px) {
  .btn-row.lp-stores { flex-wrap: wrap; }
  .lp-stores .btn.lp-store { flex-basis: 100%; }
}
@media (max-width: 479px) { .lp-close__links { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-3); } }
/* on a phone or any touch screen every link is a 44px target */
@media (max-width: 639px), (pointer: coarse) { .lp-close__links a:not(.lp-close__logo), .lp-legal details summary { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; } }

@media (prefers-reduced-motion: reduce) {
  .lp-hero__photo, .lp-line, .lp-word, .lp-step::before, .lp-pause, .lp-lm svg, .lp-store { transition: none; }
}
