/* ============================================================
   SKANLIA — Démo interactive (demo.html)
   S'appuie sur styles.css (tokens, .btn, maquettes .phone/.gbp/...)
   ============================================================ */

/* ---- Intro ---- */
.demo-intro {
  padding: clamp(120px, 14vh, 168px) 0 clamp(36px, 5vw, 56px);
  text-align: center;
}
.demo-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 54px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-top: 20px;
  text-wrap: balance;
}
.demo-intro .demo-sub {
  max-width: 60ch;
  margin: 18px auto 0;
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--ink-muted);
  line-height: 1.6;
  text-wrap: pretty;
}
.demo-steps-hint {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 26px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: 100px;
  background: var(--bg-soft);
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute-2);
}
.demo-steps-hint b { color: var(--ink); font-weight: 500; }

/* Smallest phones — let the step breadcrumb wrap instead of overflowing. */
@media (max-width: 360px) {
  .demo-steps-hint { flex-wrap: wrap; justify-content: center; max-width: 100%; row-gap: 4px; }
}

/* ---- Console layout ---- */
.demo-console-wrap { padding-bottom: clamp(64px, 8vw, 110px); }
.demo-console {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
@media (max-width: 920px) {
  .demo-console { grid-template-columns: 1fr; gap: 22px; }
}

.panel-tag {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.panel-num {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--ink); color: #fff;
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  display: grid; place-items: center; flex-shrink: 0;
}
.panel-title { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--ink); }
.panel-hint { font-size: 12.5px; color: var(--ink-mute-2); margin-left: auto; }

/* ---- Source panel ---- */
.demo-source {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 88px;
}
@media (max-width: 920px) { .demo-source { position: static; } }

.demo-field { margin-bottom: 14px; }
.demo-field > label {
  display: block;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.demo-field input,
.demo-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 14px; color: var(--ink);
  background: var(--bg);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.demo-field input:focus,
.demo-field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(6, 17, 31, .06);
}
.demo-field textarea { resize: vertical; min-height: 60px; line-height: 1.5; }
.demo-field .field-suffix { position: relative; }
.demo-field .field-suffix .unit {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute-2);
  pointer-events: none;
}
.demo-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Segmented status control */
.demo-seg-label {
  font-family: var(--font-display); font-size: 12px; font-weight: 500;
  color: var(--ink-2); margin-bottom: 8px;
}
.demo-seg {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  background: var(--bg-soft); border: 1px solid var(--line-soft);
  border-radius: 12px; padding: 4px;
}
.demo-seg button {
  border: none; background: transparent; cursor: pointer;
  font-family: var(--font-display); font-size: 12.5px; font-weight: 500;
  color: var(--ink-mute-2); padding: 8px 6px; border-radius: 9px;
  transition: all .18s ease;
}
.demo-seg button:hover { color: var(--ink); }
.demo-seg button.on {
  background: #fff; color: var(--ink);
  box-shadow: var(--shadow-xs);
}

/* Photo strip */
.demo-photos { margin: 18px 0 6px; }
.demo-photo-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px;
}
.demo-photo {
  aspect-ratio: 1; border-radius: 8px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #94a3b8, #475569);
  background-size: cover; background-position: center;
}
.demo-photo.has-img::after { display: none; }
.demo-photo::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 5px, transparent 5px 11px);
}
.demo-photo .pmark {
  position: absolute; left: 5px; bottom: 4px;
  font-family: var(--font-mono); font-size: 8px; letter-spacing: .02em;
  color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); opacity: .92;
}
.demo-photo-note {
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute-2);
  margin-top: 8px;
}

/* ---- Real property photos inside mockups ---- */
.bg-photo {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
/* Vertical video: real photo full-bleed + legibility scrim, hide fake rect */
.demo-grid .video-vert::before { display: none; }
.demo-grid .video-vert { background: #0b1320; }
.demo-grid .video-vert .bg-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,17,31,.62) 0%, rgba(6,17,31,.10) 34%, rgba(6,17,31,.20) 60%, rgba(6,17,31,.78) 100%);
}
/* Instagram / Facebook image */
.demo-grid .ig-img { background: #0b1320; }
.demo-grid .ig-img::after { display: none; }
.demo-grid .ig-img .bg-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, transparent 28%, rgba(0,0,0,.14) 100%);
}
.demo-grid .ig-img.scrim-strong .bg-photo::after {
  background: linear-gradient(180deg, rgba(6,17,31,.55), rgba(6,17,31,.78));
}
.demo-grid .ig-img .ig-tag, .demo-grid .ig-img .ig-price { z-index: 2; }
/* Story photo */
.demo-grid .story-photo {
  background-size: cover; background-position: center;
  position: relative; overflow: hidden;
}
.demo-grid .story-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11,19,32,.45) 100%);
}
/* Google Business image */
.demo-grid .gbp-img { background-size: cover; background-position: center; }
.demo-grid .gbp-img .pin { z-index: 2; }

.demo-divider { height: 1px; background: var(--line-soft); margin: 20px 0; }

.demo-generate { width: 100%; justify-content: center; }
.demo-reassure {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  margin-top: 14px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-mute-2);
}
.demo-reassure svg { color: var(--gold); }

/* ---- Output panel ---- */
.demo-output {
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  min-height: 560px;
  position: relative;
}

/* Idle / empty */
.demo-empty {
  min-height: 480px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 14px;
}
.demo-empty-mark {
  width: 56px; height: 56px; border-radius: 16px;
  background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink-mute-2);
  box-shadow: var(--shadow-xs);
}
.demo-empty h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--ink); }
.demo-empty p { font-size: 14px; color: var(--ink-mute-2); max-width: 36ch; line-height: 1.55; }
.demo-empty .mono { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-mute-2); margin-top: 6px; }

/* Generating */
.demo-gen {
  min-height: 480px;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 460px; margin: 0 auto;
}
.demo-gen-head { text-align: center; margin-bottom: 26px; }
.demo-gen-head .spinner {
  width: 44px; height: 44px; margin: 0 auto 16px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--ink);
  animation: demoSpin .8s linear infinite;
}
@keyframes demoSpin { to { transform: rotate(360deg); } }
.demo-gen-head h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--ink); }
.demo-gen-head p { font-size: 13.5px; color: var(--ink-mute-2); margin-top: 4px; }

.demo-progress {
  height: 6px; border-radius: 100px; background: var(--line);
  overflow: hidden; margin-bottom: 22px;
}
.demo-progress-bar {
  height: 100%; border-radius: 100px;
  background: linear-gradient(90deg, var(--ink), var(--bg-deep-3));
  transition: width .35s cubic-bezier(.4,0,.2,1);
}
.demo-gen-steps { display: flex; flex-direction: column; gap: 2px; }
.demo-gen-step {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: 10px;
  font-size: 13.5px; color: var(--ink-mute-2);
  transition: all .25s ease;
}
.demo-gen-step .tick {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  border: 1.6px solid var(--line);
  display: grid; place-items: center; color: transparent;
  transition: all .25s ease;
}
.demo-gen-step.active {
  background: #fff; color: var(--ink); box-shadow: var(--shadow-xs);
}
.demo-gen-step.active .tick { border-color: var(--ink); }
.demo-gen-step.done { color: var(--ink); }
.demo-gen-step.done .tick {
  background: var(--gold); border-color: var(--gold); color: var(--ink);
}

/* Results */
.demo-results-head {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-bottom: 18px;
}
.demo-results-head .done-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px; border-radius: 100px;
  background: var(--ink); color: #fff;
  font-family: var(--font-display); font-size: 12.5px; font-weight: 500;
}
.demo-results-head .done-pill .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}
.demo-regen {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); background: #fff;
  border-radius: 100px; padding: 7px 14px; cursor: pointer;
  font-family: var(--font-display); font-size: 12.5px; font-weight: 500; color: var(--ink);
  transition: all .15s ease;
}
.demo-regen:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.demo-regen.stale { border-color: var(--gold); color: var(--ink); background: #fff; }
.demo-regen.stale::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}

/* Channel tabs */
.demo-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.demo-tabs button {
  border: 1px solid var(--line); background: #fff;
  border-radius: 100px; padding: 7px 15px; cursor: pointer;
  font-family: var(--font-display); font-size: 12.5px; font-weight: 500; color: var(--ink-muted);
  transition: all .15s ease;
}
.demo-tabs button:hover { color: var(--ink); }
.demo-tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Results grid */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 22px;
  align-items: start;
}
.gen-card {
  display: flex; flex-direction: column; gap: 12px;
  opacity: 1;
}
@media (prefers-reduced-motion: no-preference) {
  .gen-card { animation: genIn .5s cubic-bezier(.22,1,.36,1) both; }
}
@keyframes genIn { from { transform: translateY(16px) scale(.985); } to { transform: none; } }
.gen-card-label { text-align: left; }
.gen-card-label .lab { font-family: var(--font-display); font-size: 13.5px; font-weight: 600; color: var(--ink); }
.gen-card-label .sub { font-size: 12px; color: var(--ink-mute-2); }
.gen-card-stage { display: flex; justify-content: center; }
.gen-card-foot {
  display: flex; align-items: center; gap: 8px;
  padding-top: 10px; border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-mute-2);
}
.gen-card-foot .sk { display: inline-flex; align-items: center; gap: 5px; }
.gen-card-foot .sk svg { color: var(--gold); }
.gen-validate {
  margin-left: auto;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  border-radius: 100px; padding: 4px 11px;
  font-family: var(--font-display); font-size: 11px; font-weight: 500; color: var(--ink);
  display: inline-flex; align-items: center; gap: 5px;
  transition: all .15s ease;
}
.gen-validate:hover { box-shadow: var(--shadow-xs); }
.gen-validate.ok { background: var(--ink); color: #fff; border-color: var(--ink); }
.gen-validate.ok svg { color: var(--gold); }

/* small reporting tweaks reused inline */
.demo-grid .reporting,
.demo-grid .gbp,
.demo-grid .review { width: 100%; }
.demo-grid .gen-card.wide { grid-column: 1 / -1; }

/* Final CTA band reuse cta-band styles already in styles.css */
.demo-cta-band { margin-top: 8px; }

/* ============================================================
   v2 — presets, LinkedIn, planning, interactivité, lightbox
   ============================================================ */

/* ---- Preset chips (biens d'exemple) ---- */
.preset-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-bottom: 18px;
}
.preset-chip {
  display: flex; flex-direction: column; gap: 2px; text-align: left;
  border: 1px solid var(--line); background: var(--bg);
  border-radius: 12px; padding: 9px 12px; cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.preset-chip:hover { border-color: var(--ink-mute-2); box-shadow: var(--shadow-xs); }
.preset-chip.on { border-color: var(--ink); background: var(--ink); box-shadow: var(--shadow-sm); }
.preset-chip .pc-title { font-family: var(--font-display); font-size: 12.5px; font-weight: 600; color: var(--ink); }
.preset-chip .pc-sub { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-mute-2); }
.preset-chip.on .pc-title { color: #fff; }
.preset-chip.on .pc-sub { color: var(--gold); }

/* ---- Live step line during generation ---- */
.demo-gen-head .gen-live {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-2);
  min-height: 18px;
}
.gen-live-dots { display: inline-flex; gap: 3px; }
.gen-live-dots span {
  width: 4px; height: 4px; border-radius: 50%; background: var(--gold);
  animation: liveDot 1s infinite ease-in-out;
}
.gen-live-dots span:nth-child(2) { animation-delay: .15s; }
.gen-live-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes liveDot { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-2px); } }

/* ---- Validation bar ---- */
.validate-bar {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 16px; margin-bottom: 18px;
  box-shadow: var(--shadow-xs);
}
.validate-bar .vb-track {
  flex: 1; height: 6px; border-radius: 100px; background: var(--line); overflow: hidden; min-width: 60px;
}
.validate-bar .vb-fill {
  height: 100%; border-radius: 100px;
  background: linear-gradient(90deg, var(--gold), #c79b4f);
  transition: width .4s cubic-bezier(.4,0,.2,1);
}
.validate-bar .vb-label { font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute-2); white-space: nowrap; }
.validate-bar .vb-label b { color: var(--ink); font-weight: 600; }
.validate-bar .vb-all {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--ink); background: var(--ink); color: #fff;
  border-radius: 100px; padding: 7px 14px; cursor: pointer;
  font-family: var(--font-display); font-size: 12px; font-weight: 500;
  transition: opacity .15s ease, transform .15s ease;
}
.validate-bar .vb-all:hover:not(:disabled) { transform: translateY(-1px); }
.validate-bar .vb-all:disabled { background: var(--bg-soft); color: var(--ink-mute-2); border-color: var(--line); cursor: default; }
.validate-bar .vb-all:disabled svg { color: var(--gold); }

/* ---- Card stage as button + expand affordance ---- */
.gen-card-stage {
  display: flex; justify-content: center;
  position: relative; width: 100%;
  border: none; background: none; padding: 0; cursor: zoom-in;
  border-radius: 14px;
}
.gen-card-stage .gen-expand {
  position: absolute; top: 8px; right: 8px; z-index: 4;
  width: 28px; height: 28px; border-radius: 9px;
  display: grid; place-items: center; color: #fff;
  background: rgba(6,17,31,.55); backdrop-filter: blur(4px);
  opacity: 0; transform: translateY(-3px); transition: all .18s ease;
}
.gen-card-stage:hover .gen-expand,
.gen-card-stage:focus-visible .gen-expand { opacity: 1; transform: none; }
.gen-card-actions { margin-left: auto; display: flex; align-items: center; gap: 7px; }
.gen-card-actions .gen-validate { margin-left: 0; }
.gen-act {
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-muted); cursor: pointer;
  transition: all .15s ease;
}
.gen-act:hover { color: var(--ink); box-shadow: var(--shadow-xs); }

/* ---- Facebook reactions row ---- */
.fb-react {
  border-top: 1px solid var(--line-soft);
  flex-wrap: wrap; gap: 10px !important; font-size: 10.5px; color: var(--ink-mute-2);
}
.fb-react span { display: inline-flex; align-items: center; gap: 4px; }
.fb-react .fb-count { margin-left: auto; }

/* ---- LinkedIn post mock ---- */
.li-post { background: #fff; }
.li-header {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 38px 12px 8px;
}
.li-logo {
  width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, #0A66C2, #084d92);
  display: grid; place-items: center; color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
}
.li-id { min-width: 0; }
.li-name { font-family: var(--font-display); font-size: 12px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.li-meta { font-size: 9.5px; color: var(--ink-mute-2); line-height: 1.3; }
.li-follow { margin-left: auto; color: #0A66C2; font-size: 11px; font-weight: 600; white-space: nowrap; }
.li-body { padding: 4px 12px 8px; }
.li-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.li-tags span { color: #0A66C2; font-size: 10.5px; font-weight: 500; }
.li-img {
  aspect-ratio: 1.4; position: relative; overflow: hidden; background: #0b1320;
}
.li-img .ig-tag { position: absolute; left: 10px; top: 10px; z-index: 2; padding: 4px 10px; border-radius: 100px; font-size: 10px; }
.li-react {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px 6px; font-size: 9.5px; color: var(--ink-mute-2);
  border-bottom: 1px solid var(--line-soft);
}
.li-react .li-likes { color: var(--ink-2); }
.li-actions {
  display: flex; align-items: center; justify-content: space-around;
  padding: 8px 8px; gap: 6px;
}
.li-actions span { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; color: var(--ink-mute-2); }

/* ---- Weekly planner mock ---- */
.planner {
  width: 100%; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px 22px; box-shadow: var(--shadow-md);
}
.planner-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-bottom: 16px;
}
.planner-legend {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute-2);
}
.planner-legend .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.planner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 8px; }
.planner-day {
  border: 1px solid var(--line-soft); border-radius: 12px;
  padding: 12px 10px; background: var(--bg-soft);
  display: flex; flex-direction: column; gap: 7px;
}
@media (prefers-reduced-motion: no-preference) {
  .planner-day { animation: genIn .5s cubic-bezier(.22,1,.36,1) both; }
}
.pd-top { display: flex; align-items: baseline; justify-content: space-between; }
.pd-day { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--ink); }
.pd-date { font-family: var(--font-mono); font-size: 9.5px; color: var(--ink-mute-2); }
.pd-icon {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
}
.pd-label { font-family: var(--font-display); font-size: 11.5px; font-weight: 500; color: var(--ink); line-height: 1.25; }
.pd-chan { font-size: 10px; color: var(--ink-mute-2); }


.rep-foot {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-mute-2);
}

/* ---- Results inline CTA (after all validated) ---- */
.results-cta {
  margin-top: 22px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  background: var(--ink); color: #fff;
  border-radius: var(--radius); padding: 18px 22px;
}
.results-cta .rc-text { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.4; }
.results-cta .rc-text > svg { color: var(--gold); flex-shrink: 0; }
.results-cta .rc-text b { font-weight: 600; }
.results-cta .btn { flex-shrink: 0; }

/* ---- Lightbox ---- */
.lb-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(6,17,31,.78); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 24px;
  animation: lbFade .2s ease both;
}
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lb-panel {
  width: min(900px, 100%); max-height: 88vh; overflow: auto;
  display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 0; background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: lbPop .25s cubic-bezier(.22,1,.36,1) both;
}
@keyframes lbPop { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.lb-preview {
  display: flex; align-items: center; justify-content: center;
  padding: 28px; background: var(--bg-soft); border-right: 1px solid var(--line-soft);
}
.lb-preview .phone { max-width: 230px; }
.lb-side { padding: 28px; display: flex; flex-direction: column; }
.lb-eyebrow {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute-2);
}
.lb-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.lb-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-top: 10px; }
.lb-sub { font-size: 13px; color: var(--ink-mute-2); margin-top: 4px; }
.lb-text-label {
  font-family: var(--font-display); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em; color: var(--ink-mute-2);
  margin-top: 22px; margin-bottom: 8px;
}
.lb-text {
  margin: 0; padding: 14px 16px; background: var(--bg-soft);
  border: 1px solid var(--line-soft); border-radius: 12px;
  font-family: var(--font-body); font-size: 13.5px; color: var(--ink-2);
  line-height: 1.6; white-space: pre-wrap; word-break: break-word;
}
.lb-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.lb-count { margin-top: auto; padding-top: 18px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute-2); }
.lb-close, .lb-nav {
  position: fixed; z-index: 201;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  transition: background .15s ease;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.24); }
.lb-close { top: 20px; right: 20px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-nav.prev { left: 20px; }
.lb-nav.prev svg { transform: rotate(180deg); }
.lb-nav.next { right: 20px; }
@media (max-width: 720px) {
  .lb-panel { grid-template-columns: 1fr; max-height: 92vh; }
  .lb-preview { padding: 20px; }
  .lb-nav { top: auto; bottom: 18px; transform: none; }
  .lb-nav.prev { left: 50%; margin-left: -52px; }
  .lb-nav.next { right: 50%; margin-right: -52px; }
}

/* ---- Toast ---- */
.demo-toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 16px);
  z-index: 220; pointer-events: none;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff;
  padding: 11px 18px; border-radius: 100px;
  font-family: var(--font-display); font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0; transition: opacity .2s ease, transform .2s ease;
}
.demo-toast svg { color: var(--gold); }
.demo-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---- Fix: IG price/tag legibility ---- */
.demo-grid .ig-img .ig-price {
  background: rgba(255,255,255,.96); box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.demo-grid .ig-img .ig-tag { box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.demo-grid .gbp-img .pin { display: inline-flex; align-items: center; gap: 4px; }

/* ---- Mobile polish ---- */
@media (max-width: 560px) {
  .preset-row { grid-template-columns: 1fr; }
  .demo-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
  .demo-tabs::-webkit-scrollbar { display: none; }
  .demo-tabs button { white-space: nowrap; flex-shrink: 0; }
  .validate-bar { flex-wrap: wrap; }
  .validate-bar .vb-track { order: 3; flex-basis: 100%; }
  .results-cta { flex-direction: column; align-items: flex-start; }
  .results-cta .btn { width: 100%; }
}
