/* ============================================================
   l9-classlanding.css - the public class landing pages: /class/{id} (the QR page, class.aspx) and
   /loc/{studio}/promotions[/{slug}] (promotions.aspx). One stylesheet so the two pages, which share the signing form
   (ctrl_signing.ascx) and the same hero, chips, cards and messages, can never drift apart. Moved out of class.aspx on
   2026-11-03.
   2026-11-04 (Terence): rebuilt on the design tokens (Content/l9.tokens.css, brain UI.md) after the FREE pill rendered
   as a stretched green blob on the live promotions page. Every colour, font and radius is a token or a tint of one
   (color-mix, the same way l9-signing.css and l9-eventstrip.css tint), never a literal and never a fallback
   (Commandment 18). Buttons are the theme's four (l9.theme.css: l9-btn-primary, -secondary, -link); this file styles
   none of them beyond their disabled state. Keep ASCII only.
   ============================================================ */

/* ---- page shell ---- */
.l9c-page { max-width: 560px; margin: 0 auto; padding: 22px 16px 210px; color: var(--l9-text); }
.l9c-page.l9c-wide { max-width: 640px; }
.l9c-logo { text-align: center; margin-bottom: 20px; }
.l9c-logo img { height: 34px; width: auto; }
/* The theme's buttons carry no disabled state; the confirm button sits disabled until the form is complete. */
.l9c-page .l9-btn-primary:disabled, .l9c-page .l9-btn-secondary:disabled { opacity: .5; cursor: not-allowed; }

/* ---- hero: the class picture and its card ---- */
.l9c-hero { border-radius: var(--l9-radius-card); overflow: hidden; background: var(--l9-surface); border: 1px solid var(--l9-border); box-shadow: var(--l9-shadow-soft); }
.l9c-hero-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: var(--l9-bg); }
.l9c-hero-body { padding: 20px 20px 22px; }
.l9c-class { margin-top: 18px; }

/* ---- headings and copy. h1, h2 and h3 take the heading font from l9.theme.css; these set size and weight only. ---- */
.l9c-title { font-size: 1.7rem; font-weight: 700; line-height: 1.12; margin: 8px 0 14px; text-transform: uppercase; color: var(--l9-text); }
.l9c-class .l9c-title { font-size: 1.45rem; }
.l9-eyebrow + .l9c-title { margin-top: 0; }
/* The studio line above the promotions title (Terence 2026-11-04): heavier than an eyebrow, it is the first thing the
   ad visitor reads. */
.l9c-studio { font-family: var(--l9-font-heading); font-size: 1.05rem; letter-spacing: .14em; text-transform: uppercase; color: var(--l9-accent); font-weight: 700; }
.l9c-studio + .l9c-title { margin-top: 6px; }
.l9c-section-label { margin: 28px 0 12px; font-family: var(--l9-font-heading); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--l9-text-muted); font-weight: 600; }
.l9c-hero-body .l9c-section-label { margin-top: 18px; }
.l9c-intro { color: var(--l9-text-muted); font-size: .95rem; line-height: 1.5; margin: 0 0 18px; }
.l9c-desc { margin: 16px 0 0; color: var(--l9-text-muted); font-size: .96rem; line-height: 1.55; white-space: pre-wrap; }
.l9c-designed { margin-top: 12px; font-size: .82rem; color: var(--l9-text-muted); }
.l9c-designed strong { color: var(--l9-text); font-weight: 700; }
.l9c-none { color: var(--l9-text-muted); font-size: .9rem; margin: 12px 0 0; }
.l9c-card .l9c-none { margin: 0 0 14px; }
.l9c-link { color: var(--l9-accent); text-decoration: underline; }

/* ---- chips: one box model for every chip (FREE, price, studio, plain), so they sit as one row and none can stretch.
   The shared chip class UI.md names (l9-chip, Gap 3) is not in l9.portal.css yet; these move onto it when it lands. ---- */
.l9c-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.l9c-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; vertical-align: middle; }
.l9c-chip.free { background: var(--l9-success); border-color: var(--l9-success); color: var(--l9-bg); font-weight: 700; letter-spacing: .1em; }
.l9c-chip.price { border-color: var(--l9-accent); color: var(--l9-accent); font-weight: 700; }
.l9c-chip.loc { border-color: var(--l9-accent); color: var(--l9-accent); background: color-mix(in srgb, var(--l9-accent) 12%, transparent); }
/* a chip after a class title on the hub (several classes): inline with the heading text */
.l9c-title .l9c-chip { margin-left: 10px; min-height: 26px; font-size: .72rem; }

/* ---- cards ---- */
.l9c-card { background: var(--l9-surface); border: 1px solid var(--l9-border); border-radius: var(--l9-radius-card); padding: 20px; box-shadow: var(--l9-shadow-soft); }
.l9c-card-pay { margin-top: 22px; border-color: color-mix(in srgb, var(--l9-accent) 45%, transparent); }
.l9c-closed { text-align: center; padding: 34px 22px; }
.l9c-closed .l9c-glyph { font-size: 2.4rem; line-height: 1; }
.l9c-closed h3 { font-size: 1.4rem; margin: 12px 0 6px; }
.l9c-closed p { color: var(--l9-text-muted); font-size: .95rem; margin: 0; }
.l9c-pay-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; gap: 10px; }
.l9c-pay-head h3 { font-size: 1.1rem; margin: 0; }
.l9c-pay-price { font-family: var(--l9-font-heading); font-size: 1.3rem; font-weight: 700; color: var(--l9-accent); white-space: nowrap; }
.l9c-pay-price.free { color: var(--l9-success); }
/* the Stripe card fields, boxed like the inputs beside them */
.l9c-cardbox { background: var(--l9-bg); border: 1.5px solid var(--l9-border); border-radius: var(--l9-radius-input); padding: 12px 13px; }
.l9c-cardbox.is-focus { border-color: var(--l9-accent); }
/* the voucher code row: the input and the theme's secondary button side by side */
.l9c-code-row { display: flex; gap: 8px; align-items: stretch; }
.l9c-code-row .l9c-input { flex: 1; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.l9c-code-row .l9-btn-secondary { flex: 0 0 auto; }
.l9c-code-applied { display: none; align-items: center; justify-content: space-between; gap: 10px; background: color-mix(in srgb, var(--l9-success) 12%, transparent); border: 1px solid color-mix(in srgb, var(--l9-success) 45%, transparent); border-radius: var(--l9-radius-input); padding: 4px 4px 4px 13px; color: var(--l9-text); font-size: .88rem; }
.l9c-code-applied.show { display: flex; }

/* ---- messages ---- */
.l9c-msg { margin-top: 12px; font-size: .88rem; padding: 10px 12px; border-radius: var(--l9-radius-input); display: none; color: var(--l9-text); }
.l9c-msg.err { display: block; background: color-mix(in srgb, var(--l9-danger) 12%, transparent); border: 1px solid color-mix(in srgb, var(--l9-danger) 40%, transparent); }
.l9c-msg.info { display: block; background: color-mix(in srgb, var(--l9-accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--l9-accent) 35%, transparent); }
.l9c-hint { margin: 0 0 14px; padding: 11px 13px; border-radius: var(--l9-radius-input); background: color-mix(in srgb, var(--l9-accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--l9-accent) 35%, transparent); color: var(--l9-text-muted); font-size: .82rem; line-height: 1.45; }
.l9c-hint strong { color: var(--l9-accent); }
.l9c-hint.after { text-align: left; margin: 18px 0 14px; }
.l9c-btn-note { text-align: center; font-size: .78rem; color: var(--l9-text-muted); margin: 7px 0 0; line-height: 1.4; }
.l9c-modes + .l9c-btn-note { margin-top: 12px; }
.l9c-unavail { font-size: .86rem; color: var(--l9-text); background: color-mix(in srgb, var(--l9-danger) 10%, transparent); border: 1px solid color-mix(in srgb, var(--l9-danger) 30%, transparent); border-radius: var(--l9-radius-input); padding: 12px; }
.l9c-success { text-align: center; padding: 30px 20px; }
.l9c-success .tick { font-size: 2.4rem; color: var(--l9-success); }
.l9c-success h3 { font-size: 1.35rem; margin: 8px 0 6px; }
.l9c-success p { color: var(--l9-text-muted); font-size: .95rem; }
.l9c-success .l9c-list { text-align: left; margin: 10px 0 6px; }
.l9c-notfound { text-align: center; padding: 60px 20px; color: var(--l9-text-muted); }
.l9c-outcome { margin: 6px 0; font-size: .9rem; color: var(--l9-text-muted); }
.l9c-outcome.bad { color: var(--l9-text); border-left: 3px solid var(--l9-danger); padding-left: 8px; }

/* ---- the three ways in (Terence 2026-10-07, 2026-11-04): a choice, not buttons. Each tile carries a radio-style
   marker, filled gold when chosen; a disabled tile (no date ticked yet) is dimmed with a dashed marker; a tag at the
   right edge carries FREE or the casual price. ---- */
.l9c-modes { display: grid; grid-template-columns: 1fr; gap: 10px; }
.l9c-mode { display: block; width: 100%; box-sizing: border-box; position: relative; min-height: 48px; text-align: left; background: var(--l9-surface); border: 1.5px solid var(--l9-border); border-radius: var(--l9-radius-button); padding: 15px 16px 15px 50px; color: var(--l9-text); text-decoration: none; font: inherit; cursor: pointer; }
.l9c-mode.has-tag { padding-right: 84px; }
.l9c-mode b { display: block; font-family: var(--l9-font-heading); font-size: 1.02rem; font-weight: 600; letter-spacing: .02em; color: var(--l9-text); }
.l9c-mode small { display: block; margin-top: 3px; font-size: .8rem; color: var(--l9-text-muted); line-height: 1.4; }
.l9c-mode:hover { border-color: var(--l9-accent); color: var(--l9-text); }
.l9c-mode.on { border-color: var(--l9-accent); background: color-mix(in srgb, var(--l9-accent) 10%, transparent); }
.l9c-mode.on b { color: var(--l9-accent); }
.l9c-mode::before { content: ""; position: absolute; left: 16px; top: 50%; width: 22px; height: 22px; margin-top: -11px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--l9-text-muted); background: transparent; }
.l9c-mode.on::before { border-color: var(--l9-accent); background: radial-gradient(circle, var(--l9-accent) 0 5px, transparent 6px); }
.l9c-mode:disabled { opacity: .55; cursor: not-allowed; }
.l9c-mode:disabled:hover { border-color: var(--l9-border); }
.l9c-mode:disabled::before { border-style: dashed; }
.l9c-mode-tag { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-family: var(--l9-font-heading); font-weight: 700; font-size: 1rem; letter-spacing: .06em; color: var(--l9-accent); white-space: nowrap; }
.l9c-mode-tag.free { color: var(--l9-success); }

/* ---- the dates of a promoted class (promotions.aspx), ticked to book ---- */
.l9c-sessions { margin: 14px 0 0; display: grid; gap: 8px; }
.l9c-session { display: flex; align-items: center; gap: 12px; min-height: 48px; background: var(--l9-bg); border: 1.5px solid var(--l9-border); border-radius: var(--l9-radius-input); padding: 12px 14px; cursor: pointer; }
.l9c-session input { width: 20px; height: 20px; accent-color: var(--l9-accent); flex: 0 0 auto; margin: 0; }
.l9c-session .when { flex: 1; font-weight: 700; color: var(--l9-text); font-size: .95rem; }
.l9c-session .when small { display: block; font-weight: 500; color: var(--l9-text-muted); font-size: .78rem; margin-top: 2px; }
.l9c-session .cost { font-family: var(--l9-font-heading); font-weight: 700; letter-spacing: .06em; color: var(--l9-accent); white-space: nowrap; }
.l9c-session .cost.free { color: var(--l9-success); }
.l9c-session.on { border-color: var(--l9-accent); background: color-mix(in srgb, var(--l9-accent) 8%, transparent); }
.l9c-session.off { opacity: .55; cursor: not-allowed; }
.l9c-session .state { font-family: var(--l9-font-heading); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--l9-text-muted); font-weight: 600; white-space: nowrap; }
.l9c-summary { margin-top: 22px; }
.l9c-hub-link { display: block; text-align: center; margin: 22px 0 0; color: var(--l9-accent); font-size: .9rem; }
