:root {
  --jr-guide-paper: oklch(0.972 0.014 83);
  --jr-guide-surface: oklch(0.992 0.006 82);
  --jr-guide-surface-2: oklch(0.947 0.018 82);
  --jr-guide-ink: oklch(0.205 0.035 255);
  --jr-guide-soft: oklch(0.36 0.035 255);
  --jr-guide-muted: oklch(0.5 0.028 250);
  --jr-guide-line: oklch(0.83 0.026 82);
  --jr-guide-accent: oklch(0.57 0.118 46);
  --jr-guide-accent-soft: rgba(187, 112, 42, 0.12);
  --jr-guide-shadow: 0 24px 70px rgba(55, 43, 25, 0.13);
}

.jr-demo-guide {
  --channel: var(--jr-guide-accent);
  --channel-soft: var(--jr-guide-accent-soft);
  background:
    radial-gradient(circle at 84% 8%, color-mix(in oklch, var(--channel) 18%, transparent), transparent 32%),
    linear-gradient(180deg, var(--jr-guide-paper), oklch(0.955 0.014 83));
  color: var(--jr-guide-ink);
  border-bottom: 1px solid var(--jr-guide-line);
  padding: clamp(34px, 6vw, 82px) 20px;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.jr-demo-guide[data-guide-key="whatsapp"],
.jr-demo-guide[data-guide-key="reservas"] {
  --channel: oklch(0.58 0.12 150);
  --channel-soft: rgba(65, 145, 91, 0.12);
}

.jr-demo-guide[data-guide-key="instagram"] {
  --channel: oklch(0.62 0.14 354);
  --channel-soft: rgba(211, 82, 144, 0.12);
}

.jr-demo-guide[data-guide-key="phone"] {
  --channel: oklch(0.61 0.13 63);
  --channel-soft: rgba(198, 135, 32, 0.13);
}

.jr-demo-guide[data-guide-key="leads"] {
  --channel: oklch(0.55 0.09 245);
  --channel-soft: rgba(82, 112, 168, 0.13);
}

.jr-demo-guide[data-guide-key="content"] {
  --channel: oklch(0.57 0.118 46);
  --channel-soft: rgba(187, 112, 42, 0.13);
}

.jr-demo-guide * { box-sizing: border-box; }

.jr-guide-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.jr-guide-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  color: var(--channel);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jr-guide-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.jr-guide-head {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(300px, 0.42fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: end;
  margin-bottom: 28px;
}

.jr-guide-head h2 {
  margin: 0;
  max-width: 820px;
  color: var(--jr-guide-ink);
  font-size: clamp(34px, 5.6vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.052em;
  font-weight: 850;
}

.jr-guide-head p {
  margin: 0;
  max-width: 56ch;
  color: var(--jr-guide-soft);
  font-size: 15.5px;
  line-height: 1.75;
}

.jr-guide-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(320px, 0.76fr);
  min-height: 470px;
  border: 1px solid rgba(139, 115, 76, 0.22);
  border-radius: 8px;
  overflow: hidden;
  background: var(--jr-guide-surface);
  box-shadow: var(--jr-guide-shadow);
}

.jr-guide-visual {
  position: relative;
  min-height: 470px;
  display: grid;
  place-items: center;
  padding: clamp(22px, 4vw, 44px);
  background:
    linear-gradient(135deg, color-mix(in oklch, var(--channel) 12%, transparent), transparent 42%),
    var(--jr-guide-surface-2);
}

.jr-slide {
  display: none;
  width: min(100%, 560px);
}

.jr-slide.is-active { display: block; }

.jr-guide-copy {
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(24px, 4vw, 40px);
}

.jr-slide-copy { display: none; }
.jr-slide-copy.is-active { display: block; }

.jr-slide-step {
  color: var(--channel);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.jr-slide-copy h3 {
  margin: 0 0 12px;
  color: var(--jr-guide-ink);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.jr-slide-copy p {
  margin: 0;
  color: var(--jr-guide-muted);
  font-size: 15px;
  line-height: 1.75;
}

.jr-guide-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.jr-guide-tab {
  width: 40px;
  height: 40px;
  border: 1px solid var(--jr-guide-line);
  border-radius: 999px;
  background: transparent;
  color: var(--jr-guide-muted);
  cursor: pointer;
  font-weight: 850;
  transition: background 160ms cubic-bezier(0.16, 1, 0.3, 1), color 160ms cubic-bezier(0.16, 1, 0.3, 1), border-color 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

.jr-guide-tab.is-active {
  background: var(--channel);
  color: var(--jr-guide-surface);
  border-color: var(--channel);
}

.jr-guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.jr-guide-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--jr-guide-line);
  color: var(--jr-guide-ink);
  background: var(--jr-guide-surface);
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
}

.jr-guide-btn.primary {
  color: var(--jr-guide-surface);
  background: var(--jr-guide-ink);
  border-color: var(--jr-guide-ink);
}

.jr-try {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(300px, 0.34fr);
  gap: 16px;
  margin-top: 18px;
}

.jr-try-card {
  border: 1px solid rgba(139, 115, 76, 0.22);
  border-radius: 8px;
  background: rgba(255,253,247,0.76);
  padding: clamp(20px, 3vw, 30px);
}

.jr-try-card h3 {
  margin: 0 0 16px;
  color: var(--jr-guide-ink);
  font-size: 23px;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.jr-steps {
  display: grid;
  gap: 14px;
  counter-reset: jr-step;
}

.jr-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--jr-guide-muted);
  font-size: 14px;
  line-height: 1.65;
}

.jr-step::before {
  counter-increment: jr-step;
  content: counter(jr-step);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--channel-soft);
  color: var(--channel);
  font-weight: 900;
}

.jr-step strong {
  display: block;
  color: var(--jr-guide-ink);
  font-size: 14px;
}

.jr-example {
  display: block;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(31, 36, 46, 0.06);
  color: var(--jr-guide-ink);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  white-space: normal;
}

/* Visual mockups */
.jr-browser,
.jr-shot-card,
.jr-panel-shot,
.jr-call-shot,
.jr-lead-shot,
.jr-webedit-shot {
  border: 1px solid rgba(31,36,46,0.14);
  background: var(--jr-guide-surface);
  box-shadow: 0 24px 55px rgba(55, 43, 25, 0.15);
}

.jr-browser {
  border-radius: 8px;
  overflow: hidden;
}

.jr-browser-bar {
  display: flex;
  gap: 6px;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  background: var(--jr-guide-ink);
}

.jr-browser-bar span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: oklch(0.83 0.026 82);
  opacity: 0.88;
}

.jr-browser-body { padding: 22px; }

.jr-shot-line {
  height: 12px;
  border-radius: 999px;
  background: rgba(31, 36, 46, 0.12);
  margin-bottom: 10px;
}

.jr-shot-line.short { width: 52%; }
.jr-shot-line.mid { width: 72%; }

.jr-shot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.jr-shot-card {
  min-height: 78px;
  border-radius: 6px;
  background: var(--channel-soft);
  padding: 12px;
}

.jr-shot-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--jr-guide-ink);
}

.jr-phone {
  width: min(100%, 330px);
  margin: 0 auto;
  border-radius: 30px;
  padding: 12px;
  background: var(--jr-guide-ink);
  box-shadow: 0 24px 55px rgba(55, 43, 25, 0.22);
}

.jr-phone-screen {
  min-height: 360px;
  border-radius: 21px;
  padding: 14px;
  background: #efe6d6;
  overflow: hidden;
}

.jr-phone-top {
  margin: -14px -14px 14px;
  padding: 12px 14px;
  background: var(--channel);
  color: var(--jr-guide-surface);
  font-size: 13px;
  font-weight: 850;
}

.jr-bubble {
  max-width: 84%;
  margin: 8px 0;
  padding: 9px 11px;
  border-radius: 10px;
  color: #211f1b;
  background: var(--jr-guide-surface);
  font-size: 12px;
  line-height: 1.45;
}

.jr-bubble.user {
  margin-left: auto;
  background: #d9f1c8;
}

.jr-ig-phone {
  width: min(100%, 330px);
  margin: 0 auto;
  border-radius: 30px;
  padding: 12px;
  background: var(--jr-guide-ink);
  box-shadow: 0 24px 55px rgba(55, 43, 25, 0.22);
}

.jr-ig-screen {
  border-radius: 21px;
  min-height: 370px;
  background: var(--jr-guide-surface);
  overflow: hidden;
  color: var(--jr-guide-ink);
}

.jr-ig-top {
  display: flex;
  justify-content: space-between;
  padding: 13px 15px;
  border-bottom: 1px solid rgba(31,36,46,0.12);
  font-size: 12px;
  font-weight: 900;
}

.jr-ig-post { padding: 14px; border-bottom: 1px solid rgba(31,36,46,0.1); }
.jr-ig-media {
  height: 148px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, color-mix(in oklch, var(--channel) 24%, transparent), rgba(230,169,64,0.22));
  color: var(--channel);
  font-size: 42px;
  font-weight: 900;
}
.jr-ig-caption {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.45;
}
.jr-ig-comment {
  margin-top: 9px;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--channel-soft);
  color: var(--channel);
  font-size: 12px;
  font-weight: 900;
}
.jr-ig-dm { padding: 14px; background: #fbf8f4; }
.jr-ig-dm-title {
  margin-bottom: 8px;
  color: var(--jr-guide-muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.jr-panel-shot,
.jr-call-shot,
.jr-lead-shot,
.jr-webedit-shot {
  border-radius: 8px;
  padding: 22px;
}

.jr-panel-row {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(31,36,46,0.10);
  font-size: 12px;
}

.jr-panel-row:last-child { border-bottom: 0; }

.jr-call-shot {
  display: grid;
  gap: 12px;
  text-align: center;
}

.jr-call-core {
  width: 78px;
  height: 78px;
  margin: 0 auto;
  border-radius: 999px;
  border: 1px solid color-mix(in oklch, var(--channel) 45%, transparent);
  background: var(--channel-soft);
}

.jr-wave {
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 5px;
  height: 58px;
}

.jr-wave span {
  width: 5px;
  border-radius: 999px;
  background: var(--channel);
}

.jr-wave span:nth-child(1) { height: 18px; }
.jr-wave span:nth-child(2) { height: 34px; }
.jr-wave span:nth-child(3) { height: 48px; }
.jr-wave span:nth-child(4) { height: 28px; }
.jr-wave span:nth-child(5) { height: 42px; }

.jr-lead-shot { display: grid; gap: 12px; }
.jr-lead-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  background: var(--channel-soft);
  color: var(--jr-guide-soft);
  font-size: 13px;
  font-weight: 800;
}
.jr-lead-row span:first-child {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--jr-guide-surface);
  color: var(--channel);
}

.jr-webedit-shot { display: grid; gap: 10px; background: #f8efe0; }
.jr-price-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 12px;
  border-radius: 6px;
  background: rgba(187,112,42,0.11);
  color: var(--jr-guide-soft);
  font-size: 13px;
}
.jr-price-row strong { color: var(--jr-guide-ink); }

@media (max-width: 900px) {
  .jr-guide-head,
  .jr-guide-stage,
  .jr-try {
    grid-template-columns: 1fr;
  }

  .jr-guide-visual,
  .jr-guide-stage {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .jr-demo-guide { padding-left: 14px; padding-right: 14px; }
  .jr-guide-head h2 { font-size: clamp(32px, 12vw, 52px); }
  .jr-shot-grid { grid-template-columns: 1fr; }
  .jr-guide-actions { flex-direction: column; align-items: stretch; }
  .jr-guide-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .jr-guide-tab,
  .jr-guide-btn {
    transition-duration: 0.01ms !important;
  }
}

/* Conversion CTA at the bottom of each demo */
.demo-cta {
  max-width: 720px;
  margin: 48px auto;
  padding: 32px 28px;
  background: var(--jr-guide-surface, #fff);
  border: 1px solid var(--jr-guide-border, rgba(0,0,0,0.08));
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  text-align: center;
}

.demo-cta h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--jr-guide-ink, #1f242e);
}

.demo-cta p {
  margin: 0 0 20px;
  color: var(--jr-guide-muted, #4a4f5b);
  font-size: 1rem;
  line-height: 1.5;
}

.demo-cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.demo-cta-actions a {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.demo-cta-actions a:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.demo-cta-primary {
  background: var(--channel, #1f242e);
  color: #fff;
}

.demo-cta-secondary {
  background: transparent;
  color: var(--jr-guide-ink, #1f242e);
  border: 1px solid var(--jr-guide-border, rgba(0,0,0,0.15));
}

@media (max-width: 540px) {
  .demo-cta {
    margin: 32px 16px;
    padding: 24px 18px;
  }
  .demo-cta h3 { font-size: 1.15rem; }
}
