/* myl1nk add-on: "Sales page" biolink layout (views/l/partials/biolink_sales.php). Editorial look (ivory, serif), mobile-first.
   Deliberately not the myl1nk "Poster" style: the page belongs to the client's brand. */

@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/playfair-normal-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/playfair-normal-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("fonts/playfair-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("fonts/playfair-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("fonts/inter-normal-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("fonts/inter-normal-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

body.ml-sales {
  --bg: #f5f2ec; --paper: #fffdf9; --ink: #151412; --muted: #6e685f; --line: #e3ddd2; --soft: #ece7dd;
  /* brand slots: a client page overrides them in its biolink Custom CSS as `html body.ml-sales { ... }` */
  --accent: var(--ink); --accent-text: var(--ink);
  --head-bg: var(--bg); --head-ink: var(--ink); --head-muted: var(--muted); --head-accent: var(--ink);
  --hot: #e5484d; --hot-ink: #fff;
  --bar-bg: var(--ink); --bar-ink: var(--paper); --bar-dot: #e5484d;
  --buy-bg: var(--ink); --buy-ink: var(--paper);
  --display: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  margin: 0; background: var(--bg) !important; color: var(--ink);
  font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.ml-sales * { box-sizing: border-box; }
.ml-sales a { color: inherit; }
.mls { max-width: 480px; margin: 0 auto; padding: 0 18px 150px; }

/* header: brand panel (full bleed, colours from --head-*), logo centred */
.mls-head {
  margin: 0 -18px; padding: 26px 18px 24px; text-align: center; background: var(--head-bg); color: var(--head-ink);
  box-shadow: 0 0 0 100vmax var(--head-bg); clip-path: inset(0 -100vmax);
}
.mls-id { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.mls-id > div { min-width: 0; }
.mls-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.mls-name { margin: 0; font: 600 12px/1.3 var(--body); letter-spacing: 0.24em; text-transform: uppercase; overflow-wrap: anywhere; color: var(--head-accent); }
.mls-verified { font-size: 11px; margin-left: 4px; }
.mls-handle { font-size: 12px; color: var(--head-muted); margin-top: 2px; }
.mls-tagline { margin: 18px 0 0; font: 400 27px/1.18 var(--display); letter-spacing: -0.005em; }
.mls-tagline::before { content: ""; display: block; width: 36px; height: 1px; background: var(--head-accent); margin: 0 auto 18px; opacity: 0.8; }
.mls-facts { margin: 10px 0 0; font-size: 13px; color: var(--head-muted); display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; }
.mls-facts span { opacity: 0.5; }

/* photo strip: one swipeable row, sits half on the header panel */
.mls-strip { display: flex; gap: 6px; overflow-x: auto; margin: 18px -18px 0; padding: 0 18px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.mls-strip::-webkit-scrollbar { display: none; }
.mls-strip img { flex: 0 0 auto; width: 104px; height: 130px; object-fit: cover; border-radius: 10px; scroll-snap-align: start; box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.5); }
@supports selector(:has(+ *)) {
  .mls-head:has(+ .mls-strip) { padding-bottom: 82px; }
  .mls-head + .mls-strip { margin-top: -62px; position: relative; }
}

/* picker */
.mls-pick { margin-top: 26px; }
.mls-h2 { margin: 0 0 12px; font: 400 22px/1.2 var(--display); }
.mls-tiles { display: grid; gap: 8px; }
.mls-tile { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.mls-tile.is-on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.mls-tile-main { display: flex; align-items: center; gap: 12px; padding: 14px 44px 14px 14px; text-decoration: none; min-height: 64px; }
.mls-radio { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--muted); flex-shrink: 0; position: relative; }
.mls-tile.is-on .mls-radio { border-color: var(--ink); }
.mls-tile.is-on .mls-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); }
.mls-tile-text { flex: 1; min-width: 0; }
.mls-tile-text b { display: block; font-weight: 600; font-size: 15px; line-height: 1.25; }
.mls-tile-text small { display: block; font-size: 12px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.mls-tile-price { font: 500 21px/1 var(--display); white-space: nowrap; }
.mls-info { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }
.mls-info[open] { position: static; transform: none; padding: 0 14px 14px 44px; }
.mls-info summary { list-style: none; cursor: pointer; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font: italic 400 15px/1 var(--display); color: var(--muted); background: var(--bg); }
.mls-info summary::-webkit-details-marker { display: none; }
.mls-info[open] summary { position: absolute; right: 10px; top: 20px; }
.mls-info ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.mls-info li { padding-left: 14px; position: relative; }
.mls-info li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 7px; height: 1px; background: var(--accent); }

/* more options (packs) */
.mls-more { margin-top: 14px; border-top: 1px solid var(--line); }
.mls-more-title { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); padding: 14px 0 4px; }
.mls-more-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.mls-more-text { min-width: 0; }
.mls-more-text b { font-weight: 600; font-size: 14px; }
.mls-more-text small { display: block; font-size: 12px; color: var(--muted); }
.mls-more-price { font: 500 17px/1 var(--display); white-space: nowrap; text-align: right; }
.mls-more-row::after { content: "→"; font: 400 14px var(--body); color: var(--muted); margin-left: -4px; }
.mls-more-price em { display: block; font: 500 10px/1.4 var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-style: normal; margin-top: 3px; }
.mls-note { margin: 12px 0 0; font-size: 12px; color: var(--muted); }

/* folded details below */
.mls-fold { margin-top: 30px; border-top: 1px solid var(--line); }
.mls-block { border-bottom: 1px solid var(--line); }
.mls-block > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font: 400 19px/1.2 var(--display); }
.mls-block > summary::-webkit-details-marker { display: none; }
.mls-block > summary::after, .mls-faq summary::after { content: "+"; font: 400 22px/1 var(--display); color: var(--accent-text); transition: transform 0.2s; }
.mls-block[open] > summary::after, .mls-faq[open] summary::after { transform: rotate(45deg); }
.mls-block-body { padding: 0 0 18px; }
.mls-text p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.mls-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.mls-steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 8px; padding: 8px 0; color: var(--muted); font-size: 14px; }
.mls-steps li::before { content: counter(s); font: italic 400 22px/1 var(--display); color: var(--accent-text); }
.mls-sec { margin-top: 26px; }
.mls-h3 { margin: 0 0 6px; font: 400 19px/1.2 var(--display); }
.mls-faq { border-bottom: 1px solid var(--line); padding: 13px 0; }
.mls-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 14px; font-weight: 500; font-size: 14px; }
.mls-faq summary::-webkit-details-marker { display: none; }
.mls-faq div { margin-top: 8px; color: var(--muted); font-size: 14px; }
.mls-faq div p { margin: 0 0 6px; }

/* buttons */
.mls-btn { display: flex; align-items: center; justify-content: center; width: 100%; text-decoration: none; border-radius: 999px; padding: 13px 20px; font: 500 15px/1.2 var(--body); border: 1px solid var(--ink); }
.mls-btn-line { background: transparent; color: var(--ink) !important; margin-top: 8px; }

/* footer */
.mls-foot { margin-top: 36px; text-align: center; font-size: 12px; color: var(--muted); }
.mls-foot a { text-decoration: none; }

/* sticky buy bar */
.mls-buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 70%, transparent);
}
.mls-buy {
  display: block; max-width: 444px; margin: 0 auto; background: var(--buy-bg); color: var(--buy-ink) !important; text-align: center; text-decoration: none;
  border-radius: 999px; padding: 16px; font: 600 16px/1.2 var(--body); box-shadow: 0 10px 28px -12px rgba(0, 0, 0, 0.5);
}
.mls-buy:active { transform: scale(0.99); }
.mls-buy-note { text-align: center; font-size: 11px; color: var(--muted); margin-top: 6px; }

.ml-sales :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .mls-tile { transition: none; } }
@media (min-width: 700px) { .mls-head { padding-top: 40px; } .mls-tagline { font-size: 32px; } }
.mls-tile-price s, .mls-more-price s { font: 400 13px/1 var(--body); color: var(--muted); margin-right: 6px; vertical-align: middle; }

/* urgent launch bar (biolink announcement) */
.mls-urgent {
  position: sticky; top: 0; z-index: 60; background: var(--bar-bg); color: var(--bar-ink); overflow: hidden; white-space: nowrap; margin: 0 -18px;
  box-shadow: 0 0 0 100vmax var(--bar-bg); clip-path: inset(0 -100vmax);
}
.mls-urgent a { color: inherit; text-decoration: none; display: block; }
.mls-urgent-track { display: inline-flex; padding: 10px 0; animation: mls-scroll 18s linear infinite; }
.mls-urgent-track span { font: 600 12px/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase; padding: 0 18px; display: inline-flex; align-items: center; gap: 10px; }
.mls-urgent-track span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--bar-dot); animation: mls-pulse 1.2s ease-in-out infinite; }
@keyframes mls-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes mls-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.mls-off { display: inline-block; margin-left: 6px; padding: 2px 6px; border-radius: 999px; background: var(--hot); color: var(--hot-ink); font: 600 10px/1.3 var(--body); letter-spacing: 0.04em; vertical-align: 2px; }
@media (prefers-reduced-motion: reduce) { .mls-urgent-track { animation: none; } .mls-urgent-track span::before { animation: none; } }

/* lining figures: Playfair defaults to old-style digits */
body.ml-sales { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.mls-tagline strong { font-weight: 600; color: var(--head-accent); }
.mls-desc { margin: 10px 0 0; font-size: 15px; color: var(--head-muted); }
.mls-desc strong { color: var(--head-ink); font-weight: 600; }

/* client chats strip */
.mls-reviews { margin-top: 34px; }
.mls-reviews-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.mls-link { background: none; border: 0; padding: 0; font: 500 13px var(--body); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mls-reviews-track { display: flex; gap: 10px; overflow-x: auto; margin: 4px -18px 0; padding: 4px 18px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.mls-reviews-track::-webkit-scrollbar { display: none; }
.mls-review { flex: 0 0 auto; width: 150px; height: 270px; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); overflow: hidden; cursor: zoom-in; }
.mls-review img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.mls-review.is-demo { display: flex; flex-direction: column; justify-content: space-between; padding: 14px 10px 10px; background: #fff; }
.mls-demo-chat { display: grid; gap: 8px; }
.mls-demo-chat i { display: block; height: 22px; width: 78%; border-radius: 14px; background: var(--soft); }
.mls-demo-chat i.me { justify-self: end; width: 62%; background: #3797f0; opacity: 0.85; }
.mls-demo-label { font: 500 11px var(--body); color: var(--muted); letter-spacing: 0.04em; }

/* lightbox */
.mls-lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(21, 20, 18, 0.92); background: color-mix(in srgb, var(--ink) 94%, transparent); display: flex; align-items: center; justify-content: center; }
.mls-lightbox[hidden] { display: none; }
.mls-lb-stage { max-width: min(92vw, 440px); max-height: 82vh; }
.mls-lb-stage .mls-review { width: min(92vw, 440px); height: auto; max-height: 82vh; cursor: default; border: 0; }
.mls-lb-stage .mls-review img { height: auto; max-height: 82vh; object-fit: contain; }
.mls-lb-stage .mls-review.is-demo { height: 70vh; }
.mls-lb-close, .mls-lb-nav { position: absolute; background: rgba(255, 253, 249, 0.12); color: #fffdf9; border: 0; border-radius: 999px; width: 44px; height: 44px; font: 400 26px/1 var(--body); cursor: pointer; }
.mls-lb-close { top: 14px; right: 14px; }
.mls-lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.mls-lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.mls-lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255, 253, 249, 0.7); font-size: 13px; }

/* personal launch offer (biolink setting sales_offer_hours) */
.mls-offer { margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--accent); border-radius: 12px; background: var(--paper); background: color-mix(in srgb, var(--accent) 9%, var(--paper)); font-size: 13px; line-height: 1.45; }
.mls-offer b { font-weight: 600; }
[data-offer-left] { font-variant-numeric: lining-nums tabular-nums; }
