/* ============================================================================
   LUMEN - Fleet Design System  ·  components.css
   Depends on tokens.css. Component library with explicit states.
   Class convention: .lum-<component>[ .lum-<component>--<variant>].
   ============================================================================ */

/* ---- Base / reset --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { line-height: var(--lh-tight); margin: 0 0 var(--space-3); letter-spacing: -0.01em; }
h1 { font-size: var(--fs-2xl); font-weight: var(--fw-bold); }
h2 { font-size: var(--fs-xl); font-weight: var(--fw-semibold); }
h3 { font-size: var(--fs-lg); font-weight: var(--fw-semibold); }
p  { margin: 0 0 var(--space-4); }
a  { color: var(--color-primary); text-underline-offset: 2px; }

/* Universal visible focus - a11y default, every interactive element. */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

.lum-numeric { font-variant-numeric: tabular-nums; }   /* money / tables */
.lum-mono    { font-family: var(--font-mono); }
.lum-muted   { color: var(--color-text-muted); }
.lum-visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---- Button --------------------------------------------------------------
   i18n: no fixed width, min-height (not height), wraps gracefully. */
.lum-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2);
  min-height: var(--control-h);
  padding: 0 var(--space-5);
  font: inherit; font-weight: var(--fw-semibold); line-height: 1.2;
  border: 1px solid transparent; border-radius: var(--radius-md);
  cursor: pointer; text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.lum-btn:active:not(:disabled) { transform: translateY(1px); }
.lum-btn:disabled, .lum-btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.lum-btn--lg { min-height: var(--control-h-lg); padding: 0 var(--space-6); font-size: var(--fs-md); }
.lum-btn--block { width: 100%; }

.lum-btn--primary { background: var(--color-primary); color: var(--color-text-on-brand); }
.lum-btn--primary:hover:not(:disabled) { background: var(--color-primary-hover); }
.lum-btn--secondary { background: var(--color-surface); color: var(--color-text); border-color: var(--color-border-strong); }
.lum-btn--secondary:hover:not(:disabled) { background: var(--color-surface-sunken); }
.lum-btn--ghost { background: transparent; color: var(--color-primary); }
.lum-btn--ghost:hover:not(:disabled) { background: var(--color-primary-tint); }
.lum-btn--danger { background: var(--red-700); color: #fff; }
.lum-btn--danger:hover:not(:disabled) { background: var(--red-600); }

/* loading state: pass aria-busy="true"; spinner replaces label visually */
.lum-btn[aria-busy="true"] { color: transparent; position: relative; pointer-events: none; }
.lum-btn[aria-busy="true"]::after {
  content: ""; position: absolute; width: 1.1em; height: 1.1em;
  border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%;
  color: var(--color-text-on-brand);
  animation: lum-spin 0.7s linear infinite;
}
@keyframes lum-spin { to { transform: rotate(360deg); } }

/* ---- Field (label + input + help/error) ---------------------------------- */
.lum-field { margin-bottom: var(--space-4); }
.lum-label { display: block; font-weight: var(--fw-medium); font-size: var(--fs-sm); margin-bottom: var(--space-2); }
.lum-input, .lum-textarea, .lum-select {
  width: 100%; min-height: var(--control-h);
  padding: 0 var(--space-3); font: inherit; color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);   /* 3:1 boundary (1.4.11) */
  border-radius: var(--radius-sm);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.lum-textarea { padding: var(--space-3); min-height: 7rem; resize: vertical; line-height: var(--lh-body); }
.lum-input:hover, .lum-textarea:hover, .lum-select:hover { border-color: var(--gray-600); }
.lum-input:focus-visible, .lum-textarea:focus-visible, .lum-select:focus-visible {
  outline: none; border-color: var(--color-primary); box-shadow: var(--shadow-focus);
}
.lum-input::placeholder, .lum-textarea::placeholder { color: var(--gray-400); }
.lum-input[aria-invalid="true"], .lum-textarea[aria-invalid="true"] {
  border-color: var(--color-danger); box-shadow: 0 0 0 3px rgba(220,38,38,0.2);
}
.lum-help  { font-size: var(--fs-sm); color: var(--color-text-muted); margin-top: var(--space-2); }
.lum-error { font-size: var(--fs-sm); color: var(--color-danger); margin-top: var(--space-2); min-height: 1.2em; }

/* ---- Choice (radio/checkbox as tappable rows) ---------------------------- */
.lum-choice {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-3); min-height: var(--touch-min);
  background: var(--color-surface); border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm); cursor: pointer;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.lum-choice:hover { border-color: var(--gray-600); }
.lum-choice:has(input:checked) { border-color: var(--color-primary); background: var(--color-primary-tint); }
.lum-choice:has(input:focus-visible) { box-shadow: var(--shadow-focus); }
.lum-choice input { accent-color: var(--color-primary); margin-top: 0.15rem; }

/* ---- Segmented control --------------------------------------------------- */
.lum-segmented { display: inline-flex; padding: 3px; gap: 3px; background: var(--color-surface-sunken); border-radius: var(--radius-md); }
.lum-segmented button {
  min-height: 36px; padding: 0 var(--space-4); border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--color-text-muted); font: inherit; font-weight: var(--fw-medium); cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.lum-segmented button[aria-selected="true"] { background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-xs); }

/* ---- Card ---------------------------------------------------------------- */
.lum-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-5);
}
.lum-card--raised { box-shadow: var(--shadow-sm); border-color: transparent; }
.lum-card--interactive { cursor: pointer; transition: box-shadow var(--dur-base), transform var(--dur-base); }
.lum-card--interactive:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

/* ---- Badge / status (ALWAYS icon + text, never color alone) -------------- */
.lum-badge {
  display: inline-flex; align-items: center; gap: 0.35em;
  font-size: var(--fs-xs); font-weight: var(--fw-semibold); line-height: 1;
  padding: 0.3em 0.6em; border-radius: var(--radius-full); white-space: nowrap;
}
.lum-badge--neutral { background: var(--color-surface-sunken); color: var(--gray-600); }
.lum-badge--info    { background: var(--blue-50);  color: var(--blue-700); }
.lum-badge--success { background: var(--green-50); color: var(--green-700); }
.lum-badge--warning { background: var(--amber-50); color: var(--amber-700); }
.lum-badge--danger  { background: var(--red-50);   color: var(--red-700); }

/* ---- Banner (disclaimer / inline message) -------------------------------- */
.lum-banner {
  display: flex; gap: var(--space-3); padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md); font-size: var(--fs-sm);
  border: 1px solid var(--color-border); background: var(--color-surface-sunken); color: var(--color-text);
}
.lum-banner--warning { background: var(--amber-50); border-color: var(--color-border); color: var(--gray-800); }
.lum-banner--info    { background: var(--blue-50);  border-color: var(--blue-100); }

/* ---- List ---------------------------------------------------------------- */
.lum-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.lum-list-item {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: var(--space-4); background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
}

/* ---- Modal / sheet ------------------------------------------------------- */
.lum-modal-backdrop {
  position: fixed; inset: 0; background: rgba(15,23,42,0.45);
  display: grid; place-items: center; padding: var(--space-4); z-index: var(--z-modal);
  animation: lum-fade var(--dur-base) var(--ease-out);
}
.lum-modal {
  width: 100%; max-width: 480px; background: var(--color-surface);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: var(--space-5);
  animation: lum-pop var(--dur-base) var(--ease-out);
}
@media (max-width: 560px) {
  /* On mobile, modal becomes a bottom sheet (thumb-reachable). */
  .lum-modal-backdrop { place-items: end center; padding: 0; }
  .lum-modal { max-width: none; border-radius: var(--radius-xl) var(--radius-xl) 0 0; animation: lum-sheet var(--dur-slow) var(--ease-out); }
}
@keyframes lum-fade  { from { opacity: 0; } }
@keyframes lum-pop   { from { opacity: 0; transform: scale(0.97); } }
@keyframes lum-sheet { from { transform: translateY(100%); } }

/* ---- Skeleton (loading-first, not spinners) ------------------------------ */
.lum-skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 37%, var(--gray-100) 63%);
  background-size: 400% 100%; border-radius: var(--radius-sm);
  animation: lum-shimmer 1.4s ease infinite; height: 1em;
}
@keyframes lum-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ---- Empty state --------------------------------------------------------- */
.lum-empty { text-align: center; padding: var(--space-7) var(--space-4); color: var(--color-text-muted); }
.lum-empty .lum-empty-icon { font-size: 2rem; margin-bottom: var(--space-3); opacity: 0.7; }

/* ---- Toast --------------------------------------------------------------- */
.lum-toast {
  position: fixed; left: 50%; bottom: calc(var(--control-h-lg) + var(--space-4)); transform: translateX(-50%);
  background: var(--gray-900); color: #fff; padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg); z-index: var(--z-toast);
  animation: lum-pop var(--dur-base) var(--ease-out);
}

/* ---- Magic-moment reveal (signature mechanic: notes -> structured items) --
   Staggered enter; honor reduced-motion (tokens collapse durations to 0). */
.lum-reveal > * { opacity: 0; transform: translateY(8px); animation: lum-rise var(--dur-slow) var(--ease-out) forwards; }
.lum-reveal > *:nth-child(1) { animation-delay: 60ms; }
.lum-reveal > *:nth-child(2) { animation-delay: 160ms; }
.lum-reveal > *:nth-child(3) { animation-delay: 260ms; }
.lum-reveal > *:nth-child(4) { animation-delay: 360ms; }
.lum-reveal > *:nth-child(5) { animation-delay: 460ms; }
.lum-reveal > *:nth-child(n+6) { animation-delay: 560ms; }
@keyframes lum-rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .lum-reveal > * { opacity: 1; transform: none; animation: none; }
  .lum-skeleton { animation: none; }
}

/* ============================================================================
   v1.1 - research-validated refinements (benchmark: Stripe/Linear/Vercel +
   fintech-trust + thumb-zone). See design-system.md §10.
   ============================================================================ */

/* Editorial display (research pillar 5: calm/editorial lean). Headings/hero only. */
.lum-display { font-family: var(--font-display); font-weight: var(--fw-semibold); letter-spacing: -0.015em; line-height: var(--lh-tight); }

/* Confidence marker (research pillar 2: transparency as a CALM trust-mark, not an
   alarm). Sits beside an estimated number: "becslés · forrás". Quiet, not loud. */
.lum-confidence {
  display: inline-flex; align-items: center; gap: 0.3em;
  font-size: var(--fs-xs); font-weight: var(--fw-medium); color: var(--color-text-muted);
  background: var(--color-surface-sunken); border-radius: var(--radius-full); padding: 0.15em 0.55em;
}
.lum-confidence a { color: var(--color-primary); text-decoration: underline; }

/* Trust badge (research §1: official compliance as a VISIBLE trust-mark, not a
   hidden feature - strong in HU: "NAV-nál rendben vagy"). MK: NAV-integration. */
.lum-trust-badge {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-size: var(--fs-sm); font-weight: var(--fw-medium);
  color: var(--color-success); background: var(--color-success-tint);
  border-radius: var(--radius-full); padding: 0.3em 0.7em;
}

/* "Set-aside pot" (research §1, Coconut [Á]: a calm visual vessel for the amount
   to set aside - more legible than a table cell). Used for the MK hero metaphor. */
.lum-pot { background: var(--color-surface-sunken); border-radius: var(--radius-md); height: 12px; overflow: hidden; }
.lum-pot > span { display: block; height: 100%; background: var(--color-primary); border-radius: var(--radius-md); transition: width var(--dur-slow) var(--ease-out); }

/* Money value: calm, tabular, NEVER blood-red (research §"kerüljük"). */
.lum-money { font-variant-numeric: tabular-nums; color: var(--color-money); }
.lum-money--down { color: var(--color-money-down); }
.lum-money--up   { color: var(--color-money-up); }

/* Structuring pattern (research pillar 4: the magic moment BUILDS, never a blank
   spinner). Choreography: render N .lum-skeleton-row in .lum-structuring during
   latency -> on data, swap the container's content and add .lum-reveal so the real
   rows rise in. With reduced-motion the swap is instant. */
.lum-structuring { display: flex; flex-direction: column; gap: var(--space-2); }
.lum-skeleton-row { height: 56px; border-radius: var(--radius-md); }
.lum-skeleton-row.lum-skeleton { /* inherits shimmer from .lum-skeleton */ }

/* Micro-celebration (research pillar 1: Linear-style success-state on first real
   output - first estimate / first sent quote). Small, elegant, not confetti-spam. */
.lum-celebrate { animation: lum-celebrate var(--dur-slow) var(--ease-out); }
@keyframes lum-celebrate { 0% { transform: scale(0.96); opacity: 0; } 60% { transform: scale(1.02); } 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lum-celebrate { animation: none; } }

/* ---- Onboarding / guided first-run (closes Hnry/Coconut warmth gap) ------
   A reassuring stepper so the non-techy user is led, not dumped into a form. */
.lum-stepper { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-5); }
.lum-step-dot {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  font-size: var(--fs-sm); font-weight: var(--fw-semibold);
  background: var(--color-surface-sunken); color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.lum-step-dot[aria-current="step"] { background: var(--color-primary); color: #fff; border-color: transparent; }
.lum-step-dot.is-done { background: var(--color-success-tint); color: var(--color-success); border-color: transparent; }
.lum-step-line { flex: 1; height: 2px; background: var(--color-border); border-radius: var(--radius-full); }
.lum-step-line.is-done { background: var(--color-success); }
/* warm intro block for first run */
.lum-onboard-intro { text-align: center; padding: var(--space-6) var(--space-4) var(--space-5); }
.lum-onboard-intro .lum-onboard-hero { font-size: var(--fs-xl); font-weight: var(--fw-bold); margin-bottom: var(--space-2); }

/* ---- Acceptance loop (PARITY-CRITICAL - Joist [H] + Tradify [H]) -----------
   Research parity bar (must hit, else the competitor test fails this dimension):
   (a) MUST - Tradify-level: client accepts in ONE TAP on a shared link, and the
       tradesperson gets an INSTANT notification (push/SMS); the deal status flips
       to "Elfogadta" in REAL TIME (lum-badge--success + timeline updates live).
   (b) OPTIONAL - Joist-level: finger-signature ON GLASS on-site (user AND client),
       auto-saved to the client profile.
   Accepted -> offer "→ számla" next step (Joist/Tradify convert instantly).
   NOTE: the proto's mock "Elfogadta" badge is NOT enough - the BUILD must implement
   the real 1-tap accept + notify-back loop. Components below provide the UI; the
   push/realtime is platform (web push / SMS) wired by the build.
   lum-signature impl: a <canvas> with pointer events (touch-action:none), capture
   strokes, add .is-signed, persist to the deal/client record. */
.lum-accept-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-sm);
}
.lum-accept-total { font-size: var(--fs-2xl); font-weight: var(--fw-bold); }
.lum-signature {
  border: 1px dashed var(--color-border-strong); border-radius: var(--radius-md);
  min-height: 96px; display: grid; place-items: center; color: var(--color-text-muted);
  background: var(--color-surface-sunken); cursor: crosshair; touch-action: none;
}
.lum-signature.is-signed { border-style: solid; border-color: var(--color-success); color: var(--color-text); }
.lum-accept-actions { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-4); }

/* ---- Auto-save / draft-persistence indicator (QQ AC-C1.2 MUST: the field
   note must NEVER be lost; the user must SEE that work is saved - field trust).
   Inline status near the Capture field. ALWAYS icon + text (never color alone -
   WCAG 1.4.1), and a polite live-region so a screen reader hears the change.
   Markup: <span class="lum-savestate" role="status" aria-live="polite"> with an
   icon glyph + label; toggle the state class as persistence progresses.
   States (mirror app persistence, not network optimism):
     .is-saving  -> "Mentés..."          (write in flight; muted, soft pulse)
     .is-saved   -> "Mentve"             (committed to local store; success)
     .is-local   -> "Mentve a készüléken" (OFFLINE: saved locally, will sync;
                                           reassure FIRST, do not alarm - amber,
                                           NOT danger; nothing is lost)
     .is-error   -> "Mentés sikertelen - újra" (only real failure; danger + retry)
   Rule: offline is NOT an error state. The note is safe on-device; sync is a
   background promise, surfaced calmly. Reserve danger strictly for actual loss. */
.lum-savestate {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-size: var(--fs-sm); font-weight: var(--fw-medium);
  color: var(--color-text-muted);
}
.lum-savestate .lum-savestate-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor; flex: none;
}
.lum-savestate.is-saving { color: var(--color-text-muted); }
.lum-savestate.is-saving .lum-savestate-dot { animation: lum-savepulse 1.1s var(--ease-out) infinite; }
.lum-savestate.is-saved  { color: var(--color-success); }
.lum-savestate.is-local  { color: var(--color-warning); }
.lum-savestate.is-error  { color: var(--color-danger); }
@keyframes lum-savepulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .lum-savestate .lum-savestate-dot { animation: none; } }

/* ---- Feature discovery / in-app education (cross-product, tg543) ----------
   GOAL: activate dead / underused-but-useful features WITHOUT nagging. The nudge
   is EARNED attention, never stolen: it appears at a natural pause, is always
   dismissable, is throttled, and stops after a few ignores. Discovery NEVER uses
   a blocking modal (lum-modal is reserved for real decisions) and NEVER fires
   mid-task / mid-input. Analytics decides WHAT to surface (architect pipe); these
   components are the HOW. Governance rules live in the deliverable spec, not CSS.

   Four primitives, escalating in assertiveness (use the lightest that works):
     1. lum-tooltip   - passive, on hover/focus. Help when asked. Zero intrusion.
     2. lum-tip-card  - "Tudtad?" calm inline card in a pause. Suggest + dismiss.
     3. lum-coachmark - beacon dot + popover pointing AT one element. One at a time.
     4. tour          - sequenced coachmarks + lum-stepper progress. Opt-in, skippable. */

/* 1. Tooltip - passive help (hover/focus on desktop; tap-reveal on touch). Pair
   with aria-describedby so a screen reader gets the same text. */
.lum-tooltip { position: relative; display: inline-flex; }
.lum-tooltip-bubble {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  z-index: var(--z-tooltip); width: max-content; max-width: 260px;
  background: var(--color-text); color: var(--color-bg);
  font-size: var(--fs-sm); line-height: 1.35; padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transition: opacity var(--dur-fast) var(--ease-out);
}
.lum-tooltip:hover .lum-tooltip-bubble,
.lum-tooltip:focus-within .lum-tooltip-bubble,
.lum-tooltip-bubble.is-open { opacity: 1; visibility: visible; }

/* 2. "Tudtad?" tip card - the DEFAULT discovery surface: calm, inline, non-blocking,
   shown in a natural pause. Value-framed text + one clear action + dismiss. */
.lum-tip-card {
  display: flex; gap: var(--space-3); align-items: flex-start;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-md); padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-xs);
}
.lum-tip-card .lum-tip-icon { flex: none; color: var(--color-primary); font-size: var(--fs-lg); line-height: 1.2; }
.lum-tip-card .lum-tip-body { flex: 1; min-width: 0; }
.lum-tip-card .lum-tip-title { font-weight: var(--fw-semibold); margin-bottom: 2px; }
.lum-tip-card .lum-tip-text { color: var(--color-text-muted); font-size: var(--fs-sm); }
.lum-tip-card .lum-tip-actions { display: flex; gap: var(--space-2); margin-top: var(--space-3); flex-wrap: wrap; }

/* 3. Coachmark - a beacon dot that draws the eye to ONE element, opening a popover
   that points at it. Use only when the feature is anchored to a specific control.
   The beacon pulses (calm, slow) to earn a glance; reduced-motion stills it. */
.lum-beacon {
  position: absolute; width: 14px; height: 14px; border-radius: 50%;
  background: var(--color-primary); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5);
  animation: lum-beacon-pulse 2s var(--ease-out) infinite; cursor: pointer; z-index: var(--z-coachmark);
}
@keyframes lum-beacon-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}
.lum-coachmark {
  position: absolute; z-index: var(--z-coachmark); width: max-content; max-width: 300px;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: var(--space-4);
}
.lum-coachmark .lum-coachmark-title { font-weight: var(--fw-semibold); margin-bottom: var(--space-1); }
.lum-coachmark .lum-coachmark-text { color: var(--color-text-muted); font-size: var(--fs-sm); }
.lum-coachmark .lum-coachmark-actions { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-3); }
.lum-coachmark .lum-coachmark-progress { color: var(--color-text-muted); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
/* little pointer arrow (default: popover sits BELOW the anchor, arrow points up) */
.lum-coachmark::before {
  content: ""; position: absolute; top: -7px; left: var(--coachmark-arrow, 20px);
  width: 12px; height: 12px; background: var(--color-surface);
  border-left: 1px solid var(--color-border); border-top: 1px solid var(--color-border);
  transform: rotate(45deg);
}
@media (prefers-reduced-motion: reduce) { .lum-beacon { animation: none; } }

/* MOBILE (QQ, fat-finger / field): a tiny coachmark is a mis-tap trap. On narrow
   screens promote the coachmark to a bottom-sheet tip (reuse the modal sheet
   pattern) so the target is thumb-sized. */
@media (max-width: 640px) {
  .lum-coachmark--sheet {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; max-width: none;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: var(--space-5);
  }
  .lum-coachmark--sheet::before { display: none; }
}

/* 5. Activation checklist - a self-paced "getting started" list of high-value
   first actions. NOT a nudge (no interruption): a calm, dismissable panel the
   user opens at will. Progress is visible (done count); each item is one tap to
   the relevant flow. Disappears for good once complete or dismissed. Good for the
   non-techy MK user who wants to know "what should I do next". */
.lum-checklist { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-4); box-shadow: var(--shadow-xs); }
.lum-checklist-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-3); }
.lum-checklist-progress { color: var(--color-text-muted); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.lum-checklist-item { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) 0; }
.lum-checklist-item + .lum-checklist-item { border-top: 1px solid var(--color-border); }
.lum-checklist-mark { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--color-border-strong); color: var(--color-text-muted); font-size: var(--fs-sm); }
.lum-checklist-item.is-done .lum-checklist-mark { background: var(--color-success-tint); color: var(--color-success); border-color: transparent; }
.lum-checklist-item.is-done .lum-checklist-label { color: var(--color-text-muted); text-decoration: line-through; }
.lum-checklist-label { flex: 1; min-width: 0; }

/* ---- Layout helpers ------------------------------------------------------ */
.lum-container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--space-4); }
.lum-container--narrow { max-width: var(--container-narrow); }
.lum-stack > * + * { margin-top: var(--space-4); }
/* thumb-zone sticky CTA (mobile primary action) */
.lum-cta-bar {
  position: sticky; bottom: 0; padding: var(--space-3) var(--space-4);
  background: linear-gradient(to top, var(--color-bg) 72%, transparent);
}
