/* ============================================================
   l9-landing.css - the Landing Pages master (L9_Landing.Master, brain LANDING_PAGES_MASTER_SPEC.md, 2026-11-11).
   The blocks every official Landing Page shares: the top block (video or picture, studio, title, line, chips, the
   gold action), about, proof, what happens next, the guarantee, questions, the final action, the sticky action and
   the footer. The thing sold (the page's own slot) keeps its own stylesheet (l9-classlanding.css, the funnel's own,
   the event page's own).
   Every colour, font and radius is a token from l9.tokens.css or a tint of one (color-mix), never a literal and
   never a fallback (Commandment 18). Buttons are the theme's (l9.theme.css: l9-btn-primary). Keep ASCII only.
   ============================================================ */

/* ---- page shell: one column, phone first; wider on a computer ---- */
.l9l { max-width: 600px; margin: 0 auto; padding: 14px 16px 120px; color: var(--l9-text); }
@media (min-width: 900px) { .l9l { max-width: 720px; padding-bottom: 60px; } }

/* ---- the top block ---- */
.l9l-top { margin: 0 0 28px; }
.l9l-video, .l9l-pic { margin: 0 0 18px; display: flex; justify-content: center; }
/* the picture shown whole in its own shape, never cropped (it may carry the date and text), capped so the title and
   the action stay on the first screen */
.l9l-pic img { display: block; max-width: 100%; width: auto; height: auto; max-height: 62vh; border-radius: var(--l9-radius-card); box-shadow: var(--l9-shadow-strong); }
@media (min-width: 900px) { .l9l-pic img { max-height: 55vh; } }
.l9l-video .l9-media { width: 100%; }
.l9l-video .l9-media-frame { border-radius: var(--l9-radius-card); box-shadow: var(--l9-shadow-strong); }
.l9l-studio { font-family: var(--l9-font-heading); font-size: .95rem; letter-spacing: .16em; text-transform: uppercase; color: var(--l9-accent); font-weight: 600; }
.l9l-title { font-family: var(--l9-font-heading); font-size: clamp(2.1rem, 8vw, 3rem); line-height: .98; text-transform: uppercase; font-weight: 700; margin: 6px 0 12px; color: var(--l9-text); }
.l9l-line { font-size: 1.05rem; line-height: 1.5; color: var(--l9-text-muted); margin: 0 0 16px; }

/* chips: one box model for every chip (price, FREE, when, duration, type), so they sit as one row and none stretches */
.l9l-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 20px; }
.l9l-chip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; font-family: var(--l9-font-heading); font-size: .82rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--l9-text); background: var(--l9-surface-2); border: 1px solid var(--l9-border); white-space: nowrap; line-height: 1; }
.l9l-chip.free { background: var(--l9-success); border-color: var(--l9-success); color: var(--l9-bg); font-weight: 700; letter-spacing: .1em; }
.l9l-chip.price { border-color: var(--l9-accent); color: var(--l9-accent); font-weight: 700; }
.l9l-chip.tag { border-color: color-mix(in srgb, var(--l9-accent) 40%, transparent); color: var(--l9-accent); background: color-mix(in srgb, var(--l9-accent) 12%, transparent); }

/* the gold action: the theme's primary button, full width, with a glow so it reads as the one thing to press */
.l9l-action { width: 100%; min-height: 56px; font-size: 1.05rem; box-shadow: 0 12px 32px color-mix(in srgb, var(--l9-accent) 28%, transparent); }
.l9l-action:hover, .l9l-action:focus { box-shadow: 0 12px 36px color-mix(in srgb, var(--l9-accent) 40%, transparent); }

/* ---- the thing sold: the page's slot. The anchor jump lands below the sticky header. ---- */
.l9l-sold { scroll-margin-top: 84px; }
/* pages that kept their own wrapper from before the master: the shell is the master's now */
.l9l .l9c-page { max-width: none; padding: 0; }
.l9l .l9c-card .l9c-section-label:first-child { margin-top: 0; }
.l9l .l9-ev { max-width: none; padding: 0; }
.l9l .l9-offerhead { padding-top: 0; }

/* ---- the blocks after the slot ---- */
.l9l-block { margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--l9-border); }
.l9l-label { font-family: var(--l9-font-heading); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--l9-accent); font-weight: 600; margin: 0 0 12px; }
.l9l-prose { font-size: 1rem; line-height: 1.6; color: var(--l9-text); }
.l9l-prose p { margin: 0 0 12px; }
.l9l-prose p:last-child { margin-bottom: 0; }
.l9l-prose ul, .l9l-prose ol { margin: 0 0 12px; padding-left: 22px; }
.l9l-prose h1, .l9l-prose h2, .l9l-prose h3 { font-size: 1.1rem; margin: 14px 0 6px; }
/* a description stored as plain text keeps its line breaks */
.l9l-desc { white-space: pre-wrap; margin: 0; }
.l9l-designed { margin-top: 14px; font-size: .86rem; color: var(--l9-text-muted); }
.l9l-designed strong { color: var(--l9-text); font-weight: 700; }
/* the guarantee: a panel in the accent, so the promise stands out from the prose around it */
.l9l-risk { border-top: 0; padding: 20px 20px 18px; border-radius: var(--l9-radius-card); background: color-mix(in srgb, var(--l9-accent) 9%, transparent); border: 1px solid color-mix(in srgb, var(--l9-accent) 35%, transparent); }
.l9l-risk .l9l-label { margin-bottom: 8px; }

/* an event's Learn more: the promo channel's pictures and videos after the description, in a sideways row, each in
   its own shape at one row height (drawn by ctrl_media: picture first, tap to play with sound) */
.l9l-more { margin: 22px 0 0; }
.l9l-sub { font-family: var(--l9-font-heading); font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; margin: 0 0 10px; color: var(--l9-text); }
.l9l-more-row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
.l9l-more-item { flex: 0 0 auto; height: 300px; scroll-snap-align: start; }
.l9l-more-item .l9-media, .l9l-more-item .l9-media-frame { height: 100%; width: auto; }
/* prefixed so it outranks l9-media.css's frame:not([style*=aspect-ratio]) poster rule, which left an unloaded video
   poster 0 tall; the minimum width gives a lazy picture a size before it arrives, so the browser fetches it */
.l9l-more .l9l-more-item .l9-media-frame img { position: static; display: block; height: 100%; width: auto; max-width: none; min-width: 120px; background: var(--l9-surface-2); }
.l9l-more-item .l9-media-processing { height: 100%; width: 200px; }

/* questions: native details/summary, the chevron in the accent, no script */
.l9l-faq { border: 1px solid var(--l9-border); border-radius: var(--l9-radius-input); background: var(--l9-surface); margin: 0 0 8px; }
.l9l-faq summary { position: relative; padding: 14px 46px 14px 16px; cursor: pointer; font-weight: 700; color: var(--l9-text); list-style: none; line-height: 1.35; }
.l9l-faq summary::-webkit-details-marker { display: none; }
.l9l-faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--l9-accent); border-bottom: 2px solid var(--l9-accent); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.l9l-faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.l9l-faq[open] { border-color: color-mix(in srgb, var(--l9-accent) 45%, var(--l9-border)); }
.l9l-faq-a { padding: 0 16px 14px; color: var(--l9-text-muted); line-height: 1.55; font-size: .95rem; }
.l9l-faq-a p:last-child { margin-bottom: 0; }

/* the final action */
.l9l-final { margin-top: 36px; }

/* ---- the sticky action: phones only, slid up while the gold button and the slot are both off screen ---- */
.l9l-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--l9-surface-2); border-top: 1px solid var(--l9-border); box-shadow: var(--l9-shadow-strong); transform: translateY(110%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
.l9l-sticky.show { transform: none; visibility: visible; transition: transform .25s ease; }
@media (prefers-reduced-motion: reduce) { .l9l-sticky { transition: none; } }
.l9l-sticky .px { font-family: var(--l9-font-heading); font-weight: 700; font-size: 1.25rem; color: var(--l9-accent); white-space: nowrap; }
.l9l-sticky .px.free { color: var(--l9-success); }
.l9l-sticky .px:empty { display: none; }
.l9l-sticky .l9-btn-primary { flex: 1; margin: 0; }
@media (min-width: 900px) { .l9l-sticky { display: none; } }

/* ---- footer ---- */
.l9l-foot { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--l9-border); text-align: center; font-size: .78rem; color: var(--l9-text-muted); }
.l9l-foot-links { margin-top: 6px; display: flex; justify-content: center; gap: 16px; }
.l9l-foot a { color: var(--l9-text-muted); text-decoration: none; }
.l9l-foot a:hover { color: var(--l9-accent); }
