/*
 * Live demo only: the "Try it live" section (Product tour + Demo data) and the hooks that
 * hide the Product tour links when the tour is switched off (TOUR_ENABLED=false).
 * Same colours and fonts as custom.css: brand #C1232B, ink #0B0909, Poppins, JetBrains Mono.
 */
.live-section { position: relative; padding: clamp(80px,10vw,130px) 0; background: #F7F3F1; color: #0B0909; overflow: hidden; }
.live-head { text-align: center; max-width: 900px; margin: 0 auto; }
.live-heading { font-size: clamp(38px,4.4vw,72px); line-height: 1.02; letter-spacing: -.045em; font-weight: 800; margin: 18px 0 0; }
.live-heading span { color: #C1232B; }
.live-text { font-size: 18px; line-height: 1.65; color: #4A4041; margin: 22px auto 0; max-width: 660px; }
.live-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; }
.live-card { position: relative; display: flex; flex-direction: column; border-radius: 22px; padding: 34px; overflow: hidden; min-height: 100%; }
.live-card.dark { background: #0B0909; color: #fff; box-shadow: 0 40px 80px -40px rgba(11,9,9,.6); }
.live-card.red { background: #C1232B; color: #fff; box-shadow: 0 40px 80px -40px rgba(193,35,43,.7); }
.live-tag { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; font: 500 12px/1 'JetBrains Mono', monospace; letter-spacing: .12em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.12); }
.live-tag i { width: 8px; height: 8px; border-radius: 50%; background: #FF8A8F; }
.live-card.red .live-tag i { background: #fff; }
.live-title { font-size: clamp(26px,2.4vw,36px); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; margin: 20px 0 0; }
.live-desc { font-size: 15.5px; line-height: 1.65; color: rgba(255,255,255,.78); margin: 14px 0 0; }
.live-card.red .live-desc { color: rgba(255,255,255,.88); }
.live-steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; counter-reset: s; }
.live-steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.live-steps li::before { content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 12px/1 'JetBrains Mono', monospace; background: rgba(255,255,255,.16); }
.live-steps b { font-weight: 700; }
.live-shot { margin: 26px 0 0; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); background: #1a1414; }
.live-shot img { display: block; width: 100%; height: auto; }
.live-bar { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px; background: rgba(255,255,255,.08); font: 500 11px 'JetBrains Mono', monospace; color: rgba(255,255,255,.6); }
.live-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.25); }
.live-bar span { margin-left: 8px; }
.live-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 28px; }
.live-btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 22px; border-radius: 14px; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .2s, background .2s, color .2s; }
.live-btn:hover { transform: translateY(-2px); }
.live-btn.white { background: #fff; color: #0B0909; }
.live-btn.white:hover { background: #FFE8E9; }
.live-btn.red { background: #C1232B; color: #fff; }
.live-btn.red:hover { background: #E02A33; }
.live-btn.line { border: 1.5px solid rgba(255,255,255,.55); color: #fff; }
.live-btn.line:hover { background: #fff; color: #C1232B; }
.live-btn svg { width: 14px; height: 14px; fill: currentColor; }
.live-facts { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin-top: 24px; border-radius: 18px; overflow: hidden; background: #E7DDD8; border: 1px solid #E7DDD8; }
.live-fact { background: #fff; padding: 24px 26px; }
.live-fact b { display: block; font: 500 12px 'JetBrains Mono', monospace; color: #C1232B; letter-spacing: .1em; text-transform: uppercase; }
.live-fact span { display: block; font-size: 15px; line-height: 1.55; color: #4A4041; margin-top: 8px; }

/* The tour is off (TOUR_ENABLED=false): its links and card disappear, Demo data takes the row. */
body.no-tour [data-fg-tour], body.no-tour [data-tour-only] { display: none !important; }
body.no-tour .live-grid { grid-template-columns: 1fr; max-width: 640px; margin-left: auto; margin-right: auto; }

@media (max-width: 899px) {
  .live-grid { grid-template-columns: 1fr; }
  .live-facts { grid-template-columns: 1fr; }
  .live-card { padding: 26px; }
}

/* The tour's 14 chapters under its picture */
.live-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.live-chips span { font-size: 13px; font-weight: 500; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.85); }
