/* demo-quoteline.css - the landing page's hero demo (render.mjs landingDemo, static/demo-quoteline.js): a browser
   window showing the owner's own screens (the calculator builder, then the leads list) next to the phone a visitor
   fills the calculator in on. Linked on the landing page alone, after the kit's sheet.

   The kit's demo frame (.lp-demo > .lp-demo__fit > .lp-demo__stage, .lp-phone, .lp-cursor: landing.css, demo.js) is
   used as it is. Everything here is scoped under .qld, the demo's own class, and every field, stat and table is a
   qld-* copy of the kit's .mx-field/.mx-stat/.mx-table look - never the real class, because the gate reads those as
   page structure and a decorative, pointer-events:none picture of a screen is none of them.

   Inside the stage the sizes are px, on purpose: it is a picture at a fixed design size (1040 x 680; 500 x 640 on a
   narrow screen, where the window and the phone take turns on the same spot), which demo.js scales to the column.

   What the tour changes, read here:
     data-view     builder | leads            which page the window shows
     data-device   window | phone             narrow screens only: which device is on show
     is-phone-up   the visitor's phone has risen (wide screens: it stays up)
     is-rush       the rush add-on is chosen
     is-contact    the contact fields are open and "Request this quote" is gone
     is-thanks     the phone shows the thank-you page
     is-sent       the new lead's row is in the leads list */

.qld-stage {
  width: 1040px;
  height: 680px;
  overflow: hidden;
  color: var(--c-ink);
  font-size: 13px;
  line-height: 1.4;
  text-align: start;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
.qld-stage :where(p, ul, li) { margin: 0; }

/* ── The owner's browser window ─────────────────────────────────────────── */
.qld-win {
  position: absolute;
  left: 24px;
  top: 24px;
  width: 668px;
  height: 632px;
  overflow: hidden;
  border: 1px solid var(--c-line-strong);
  border-radius: 14px;
  background: var(--c-canvas);
  box-shadow: var(--lp-demo-shadow);
  transition: opacity 0.4s ease;
}
.qld-win__chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid var(--c-line);
  background: var(--c-surface-2);
}
.qld-dots { display: flex; gap: 6px; }
.qld-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--c-line-strong); }
.qld-url {
  display: flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--c-canvas);
  color: var(--c-ink-muted);
  font-family: var(--font-mono);
  font-size: 11px;
}
.qld-appbar {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 52px;
  padding: 0 20px;
  border-bottom: 1px solid var(--c-line);
}
.qld-mark { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.qld-mark svg { width: 20px; height: 20px; color: var(--c-accent); }
.qld-nav__item { display: inline-flex; align-items: center; gap: 6px; color: var(--c-ink); font-size: 13px; }
.qld-nav__item svg { width: 15px; height: 15px; color: var(--c-accent); }
.qld-cog { display: inline-flex; margin-inline-start: auto; color: var(--c-ink-muted); }
.qld-cog svg { width: 17px; height: 17px; }

.qld-views { position: relative; height: calc(100% - 88px); padding: 20px 24px; overflow: hidden; }
.qld-view { display: none; }
.qld-stage[data-view='builder'] .qld-view--builder,
.qld-stage[data-view='leads'] .qld-view--leads { display: block; }

.qld-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.qld-eyebrow { color: var(--c-ink-muted); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; }
.qld-h1 { margin: 2px 0 0; font-size: 22px; font-weight: 650; letter-spacing: -0.01em; }
.qld-lead { margin-top: 4px; color: var(--c-ink-muted); font-size: 13px; }
.qld-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

.qld-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid var(--c-line-strong);
  background: var(--c-surface);
  color: var(--c-ink);
}
.qld-btn--primary { border-color: transparent; background: var(--c-accent); color: var(--c-accent-ink); }
.qld-btn--block { display: flex; width: 100%; height: 40px; font-size: 14px; }
.qld-btn.lp-pressed { transform: scale(0.96); }

/* The builder: the form on the left, the live preview beside it. */
.qld-cols { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 16px; align-items: start; }
.qld-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  background: var(--c-surface);
}
.qld-panel--table { padding: 6px 14px; }
.qld-panel__title { font-size: 13px; font-weight: 600; }
.qld-field { display: grid; gap: 4px; min-width: 0; }
.qld-label { color: var(--c-ink-muted); font-size: 11.5px; }
.qld-label--sec { margin-top: 2px; color: var(--c-ink); font-size: 12.5px; font-weight: 600; }
.qld-input {
  display: block;
  min-height: 30px;
  padding: 0 10px;
  overflow: hidden;
  border: 1px solid var(--c-line-field);
  border-radius: 8px;
  background: var(--c-canvas);
  line-height: 28px;
  font-size: 12.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.qld-input--code { font-family: var(--font-mono); font-size: 12px; transition: box-shadow 0.3s ease; }
.qld-stage.is-focus .qld-input--code { box-shadow: 0 0 0 2px var(--c-accent); }
.qld-card { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--c-line); border-radius: 10px; background: var(--c-surface-2); }
.qld-row3 { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr; gap: 8px; }
.qld-opts { color: var(--c-ink-muted); font-size: 11.5px; }
.qld-stat { display: grid; gap: 2px; }
.qld-stat .qld-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; }
.qld-stat__value { font-size: 22px; font-weight: 600; color: var(--c-ink); }

/* The leads list: .mx-table's look, by hand. The new lead's row is in it once the request was sent. */
.qld-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.qld-table th {
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--c-line-strong);
  text-align: start;
  font-weight: 600;
  font-size: 12px;
  color: var(--c-ink-muted);
}
.qld-table td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--c-line); color: var(--c-ink); white-space: nowrap; }
.qld-table tr:last-child td { border-bottom: 0; }
.qld-table .qld-num { text-align: end; font-variant-numeric: tabular-nums; }
.qld-row--new { display: none; }
.qld-stage.is-sent .qld-row--new { display: table-row; background: var(--c-accent-soft); }
.qld-stage.is-sent .qld-row--new td { font-weight: 600; }

/* ── The visitor's phone ────────────────────────────────────────────────── */
.qld-phone {
  left: 716px;
  top: 36px;
  width: 280px;
  height: 608px;
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.qld-stage.is-phone-up .qld-phone { opacity: 1; transform: none; }
.qld-site { padding: 52px 18px 20px; }
.qld-widget { display: grid; gap: 14px; }
.qld-widget .qld-input { min-height: 38px; line-height: 36px; font-size: 14px; border-radius: 9px; }
.qld-widget .qld-label { font-size: 12.5px; }
.qld-widget .qld-stat__value { font-size: 26px; transition: color 0.3s ease; }
.qld-widget .qld-stat__value.is-bump { color: var(--c-accent-strong); }
.qld-contact { display: none; gap: 14px; }
.qld-stage.is-contact .qld-contact { display: grid; }
.qld-stage.is-contact .qld-request { display: none; }
.qld-widget--thanks { display: none; padding-top: 80px; text-align: center; }
.qld-stage.is-thanks .qld-widget--form { display: none; }
.qld-stage.is-thanks .qld-widget--thanks { display: grid; }
.qld-thanks__h { font-size: 24px; font-weight: 650; }
.qld-thanks__t { color: var(--c-ink-muted); font-size: 14px; line-height: 1.5; }

.qld-select { position: relative; display: block; }
.qld-select__value {
  display: block;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--c-line-field);
  border-radius: 9px;
  background: var(--c-canvas);
  line-height: 36px;
  font-size: 14px;
}
.qld-select__list {
  display: none;
  position: absolute;
  left: 0;
  top: 42px;
  z-index: 5;
  width: 100%;
  border: 1px solid var(--c-line-strong);
  border-radius: 9px;
  background: var(--c-surface);
  box-shadow: var(--lp-demo-shadow);
  overflow: hidden;
}
.qld-select.is-open .qld-select__list { display: block; }
.qld-select__opt { display: block; padding: 0 10px; line-height: 36px; font-size: 14px; }
.qld-select__opt.is-picked { background: var(--c-accent-soft); }

/* ── The pictures on the landing's cards (render.mjs STEP_VIZ / LIMIT_VIZ) ────────────────────────────────────
   Each is a miniature of its own feature. Everything is in the product's tokens, so it follows the accent, the
   dark and the light palette; numbers read left to right in every language. */
.lp-viz--scene { height: 8.25rem; }
.qlv { direction: ltr; font-family: var(--font-mono, ui-monospace, monospace); font-size: 0.8125rem; color: var(--c-ink); }
.qlv, .qlv * { box-sizing: border-box; }
.qlv i, .qlv em, .qlv u, .qlv b, .qlv strong { font-style: normal; text-decoration: none; font-weight: 600; }
/* three values taking turns, one third of the loop each - every .qlv-cycle on a card shares the clock */
.qlv-cycle { position: relative; display: inline-grid; }
.qlv-cycle > b { grid-area: 1 / 1; opacity: 0; animation: qlv-turn 6s infinite; }
.qlv-cycle > b:nth-child(2) { animation-delay: -4s; }
.qlv-cycle > b:nth-child(3) { animation-delay: -2s; }
@keyframes qlv-turn { 0%, 30% { opacity: 1; transform: none; } 33.4%, 96% { opacity: 0; transform: translateY(-0.35em); } 100% { opacity: 0; transform: translateY(0.35em); } }

/* 1. the formula */
.qlv-formula { display: flex; align-items: center; gap: 0.4rem; flex-wrap: nowrap; }
.qlv-formula > span { padding: 0.3rem 0.5rem; border-radius: 8px; background: var(--c-surface); border: 1px solid var(--c-line); }
.qlv-formula > i { color: var(--c-ink-muted); font-weight: 500; }
.qlv-formula > .qlv-total { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-accent-ink, #fff); min-width: 3.4rem; text-align: center; }
.qlv-formula > .qlv-cycle:first-child { min-width: 2.6rem; text-align: center; border-color: var(--c-accent); }

/* 2. the calculator inside somebody's page */
.qlv-site { width: min(15rem, 88%); border-radius: 10px; background: var(--c-surface); border: 1px solid var(--c-line); overflow: hidden; }
.qlv-site__bar { display: flex; align-items: center; gap: 4px; padding: 6px 8px; border-bottom: 1px solid var(--c-line); }
.qlv-site__bar > i { width: 6px; height: 6px; border-radius: 50%; background: var(--c-line-strong); }
.qlv-site__bar > span { flex: 1; height: 8px; margin-inline-start: 6px; border-radius: 4px; background: var(--c-surface-2); }
.qlv-site__page { display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; padding: 10px; align-items: center; }
.qlv-site__text { display: grid; gap: 5px; }
.qlv-site__text > u { height: 5px; border-radius: 3px; background: var(--c-line-strong); }
.qlv-site__text > u:nth-child(2) { width: 80%; } .qlv-site__text > u:nth-child(3) { width: 55%; }
.qlv-site__calc { display: grid; gap: 7px; padding: 8px; border-radius: 8px; border: 1px solid var(--c-accent); background: color-mix(in srgb, var(--c-accent) 9%, transparent); }
.qlv-site__track { position: relative; height: 4px; border-radius: 2px; background: var(--c-line-strong); }
.qlv-site__track > em { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--c-accent); animation: qlv-knob 6s infinite; }
@keyframes qlv-knob { 0%, 30% { left: 22%; } 33.4%, 63% { left: 52%; } 66.7%, 96% { left: 90%; } 100% { left: 22%; } }
.qlv-site__calc > strong { justify-items: end; font-size: 0.875rem; }

/* 3. a request arriving */
.qlv-inbox { width: min(14rem, 86%); display: grid; gap: 5px; }
.qlv-inbox__row { display: flex; align-items: center; gap: 8px; padding: 6px 9px; border-radius: 8px; background: var(--c-surface); border: 1px solid var(--c-line); animation: qlv-shift 5s infinite; }
.qlv-inbox__row > i { width: 14px; height: 14px; border-radius: 50%; background: var(--c-line-strong); flex: none; }
.qlv-inbox__row > u { flex: 1; height: 5px; border-radius: 3px; background: var(--c-line-strong); }
.qlv-inbox__row > b { font-size: 0.75rem; }
.qlv-inbox__row.is-new { border-color: var(--c-accent); animation-name: qlv-arrive; }
.qlv-inbox__row.is-new > i { background: var(--c-accent); }
@keyframes qlv-arrive { 0%, 8% { opacity: 0; transform: translateY(-120%) scale(0.96); } 20%, 92% { opacity: 1; transform: none; } 100% { opacity: 1; transform: none; } }
@keyframes qlv-shift { 0%, 8% { transform: translateY(-110%); } 20%, 100% { transform: none; } }

/* 4. the counter that is never billed */
.qlv-odo { display: flex; align-items: center; gap: 0.75rem; }
.qlv-odo__n { display: flex; gap: 3px; font-size: 1.25rem; line-height: 1.9rem; height: 1.9rem; overflow: hidden; }
.qlv-odo__n > span { display: block; width: 1.25rem; text-align: center; border-radius: 6px; background: var(--c-surface); border: 1px solid var(--c-line); }
.qlv-odo__n > span > b { display: block; height: 1.9rem; }
.qlv-odo__n > [class^='qlv-odo__col'] { animation: qlv-roll 5s steps(10) infinite; }
.qlv-odo__n > .is-slow { animation-duration: 50s; }
@keyframes qlv-roll { to { transform: translateY(calc(-10 * 1.9rem)); } }
.qlv-odo__n > [class^='qlv-odo__col'] { overflow: visible; border: 0; background: none; }
.qlv-odo__n > [class^='qlv-odo__col'] > b { border-radius: 6px; background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-line); }
.qlv-odo__fee { padding: 0.3rem 0.6rem; border-radius: 999px; background: var(--c-accent); color: var(--c-accent-ink, #fff); font-weight: 600; }

/* 5. the free line is a mark, not a wall */
.qlv-line { width: min(15rem, 88%); display: grid; gap: 12px; }
.qlv-line__meter { position: relative; height: 10px; border-radius: 5px; background: var(--c-surface); border: 1px solid var(--c-line); }
.qlv-line__meter > em { position: absolute; inset-block: 0; left: 0; border-radius: 5px; background: var(--c-accent); animation: qlv-fill 6s ease-in-out infinite; }
.qlv-line__meter > i { position: absolute; top: -5px; bottom: -5px; left: 62%; width: 2px; background: var(--c-ink); border-radius: 1px; }
@keyframes qlv-fill { 0% { width: 20%; } 45% { width: 62%; } 55% { width: 62%; } 100% { width: 96%; } }
.qlv-line__kept { display: flex; gap: 6px; justify-content: center; }
.qlv-line__kept > span { width: 26px; height: 18px; border-radius: 4px; border: 1px solid var(--c-line-strong); background: var(--c-surface); position: relative; opacity: 0.35; animation: qlv-kept 6s infinite; }
.qlv-line__kept > span::after { content: ''; position: absolute; inset: 3px 5px auto; height: 6px; border: solid var(--c-accent); border-width: 0 0 2px 2px; transform: rotate(-45deg) scale(0.7); }
.qlv-line__kept > span:nth-child(2) { animation-delay: 1.4s; } .qlv-line__kept > span:nth-child(3) { animation-delay: 2.8s; } .qlv-line__kept > span:nth-child(4) { animation-delay: 4.2s; }
@keyframes qlv-kept { 0%, 6% { opacity: 0.35; transform: translateY(-6px); } 14%, 100% { opacity: 1; transform: none; } }

/* 6. everything on, for nothing */
.qlv-all { display: grid; grid-template-columns: repeat(3, 26px) auto; gap: 6px 6px; align-items: center; }
.qlv-all > span { width: 26px; height: 14px; border-radius: 7px; background: var(--c-line-strong); position: relative; animation: qlv-on 6s infinite; }
.qlv-all > span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--c-surface); animation: qlv-knob2 6s infinite; }
.qlv-all > span:nth-child(2), .qlv-all > span:nth-child(2)::after { animation-delay: 0.5s; }
.qlv-all > span:nth-child(3), .qlv-all > span:nth-child(3)::after { animation-delay: 1s; }
.qlv-all > span:nth-child(4), .qlv-all > span:nth-child(4)::after { animation-delay: 1.5s; }
.qlv-all > span:nth-child(5), .qlv-all > span:nth-child(5)::after { animation-delay: 2s; }
.qlv-all > span:nth-child(6), .qlv-all > span:nth-child(6)::after { animation-delay: 2.5s; }
@keyframes qlv-on { 0%, 8% { background: var(--c-line-strong); } 16%, 100% { background: var(--c-accent); } }
@keyframes qlv-knob2 { 0%, 8% { transform: none; } 16%, 100% { transform: translateX(12px); } }
.qlv-all > b { grid-column: 4; grid-row: 1 / span 2; margin-inline-start: 0.6rem; padding: 0.35rem 0.7rem; border-radius: 999px; background: var(--c-surface); border: 1px solid var(--c-accent); font-size: 1rem; }


/* A second block inside one band: its heading stands off the cards above, and the closing sentence sits close to its
   grid (kit landing.css has the same rule from 2026-11-14; here until the kit is vendored again). */
:is(.lp-bento, .lp-steps, ol, ul) + .lp-head-centre { margin-top: 4rem; }
:is(.lp-bento, .lp-steps, ol, ul) + .lp-head-centre:last-child { margin-top: 1.75rem; margin-bottom: 0; }
