/* Demo-only additions. The theme toggles state with JavaScript; this static copy
   uses hidden checkboxes / radios (#demo-*) and <label>s instead. */
.demo-btn { -webkit-user-select: none; user-select: none; cursor: pointer; }

/* Mobile menu */
@media (max-width: 960px) {
  body:has(#demo-menu:checked) .nav { display: block; }
}
body:has(#demo-menu:checked) .nav-toggle__bar:nth-child(2) { transform: translateY(4px) rotate(45deg); }
body:has(#demo-menu:checked) .nav-toggle__bar:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }

/* Chat */
body:has(#demo-chat:checked) .chat .chat__panel { opacity: 1; visibility: visible; transform: none; }
body:has(#demo-chat:checked) .chat .chat__icon--open { opacity: 0; transform: rotate(90deg) scale(.6); }
body:has(#demo-chat:checked) .chat .chat__icon--close { opacity: 1; transform: none; }
body:has(#demo-chat:checked) .chat .chat__dot { display: none; }

/* Pricing: monthly / yearly */
.demo-py { display: none; }
.demo-sw-to-month { display: none; }
body:has(#demo-bill-y:checked) .demo-py { display: inline; }
body:has(#demo-bill-y:checked) .demo-pm { display: none; }
body:has(#demo-bill-y:checked) .demo-sw-to-year { display: none; }
body:has(#demo-bill-y:checked) .demo-sw-to-month { display: inline-block; }
body:has(#demo-bill-y:checked) .billing__label[data-for='month'] { color: var(--ink-3); }
body:has(#demo-bill-y:checked) .billing__label[data-for='year'] { color: var(--ink); }
body:has(#demo-bill-y:checked) .plans .plan:not(.plan--same) .plan__billed { visibility: visible; }

/* Testimonial slider */
body:has(#demo-rev-1:checked) .reviews > .review { display: none; }
body:has(#demo-rev-1:checked) .reviews > .review:nth-of-type(1) { display: block; animation: fadeUp .5s ease both; }
body:has(#demo-rev-1:checked) .reviews__dot:nth-child(1) { width: 28px; background: var(--accent-2); }
body:has(#demo-rev-2:checked) .reviews > .review { display: none; }
body:has(#demo-rev-2:checked) .reviews > .review:nth-of-type(2) { display: block; animation: fadeUp .5s ease both; }
body:has(#demo-rev-2:checked) .reviews__dot:nth-child(2) { width: 28px; background: var(--accent-2); }
body:has(#demo-rev-3:checked) .reviews > .review { display: none; }
body:has(#demo-rev-3:checked) .reviews > .review:nth-of-type(3) { display: block; animation: fadeUp .5s ease both; }
body:has(#demo-rev-3:checked) .reviews__dot:nth-child(3) { width: 28px; background: var(--accent-2); }
body:has(#demo-rev-4:checked) .reviews > .review { display: none; }
body:has(#demo-rev-4:checked) .reviews > .review:nth-of-type(4) { display: block; animation: fadeUp .5s ease both; }
body:has(#demo-rev-4:checked) .reviews__dot:nth-child(4) { width: 28px; background: var(--accent-2); }
body:has(#demo-rev-5:checked) .reviews > .review { display: none; }
body:has(#demo-rev-5:checked) .reviews > .review:nth-of-type(5) { display: block; animation: fadeUp .5s ease both; }
body:has(#demo-rev-5:checked) .reviews__dot:nth-child(5) { width: 28px; background: var(--accent-2); }
body:has(#demo-rev-6:checked) .reviews > .review { display: none; }
body:has(#demo-rev-6:checked) .reviews > .review:nth-of-type(6) { display: block; animation: fadeUp .5s ease both; }
body:has(#demo-rev-6:checked) .reviews__dot:nth-child(6) { width: 28px; background: var(--accent-2); }
body:has(#demo-rev-7:checked) .reviews > .review { display: none; }
body:has(#demo-rev-7:checked) .reviews > .review:nth-of-type(7) { display: block; animation: fadeUp .5s ease both; }
body:has(#demo-rev-7:checked) .reviews__dot:nth-child(7) { width: 28px; background: var(--accent-2); }
body:has(#demo-rev-8:checked) .reviews > .review { display: none; }
body:has(#demo-rev-8:checked) .reviews > .review:nth-of-type(8) { display: block; animation: fadeUp .5s ease both; }
body:has(#demo-rev-8:checked) .reviews__dot:nth-child(8) { width: 28px; background: var(--accent-2); }
