/* Hero "before / after" carousel (see /en/partials/hero-result.html). /js/hero-result.js sets data-phase
   (type → typed → build → live), the classes s1 s2 s3 (what happens inside the app) and .is-on on the current slide. */
.hr { margin: 0; width: 100%; max-width: 520px; }
.hr figcaption { margin-top: .6rem; font-size: .85rem; color: var(--de-muted); text-align: center; }
.hr svg { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: 0 18px 40px -24px rgba(18,35,43,.55); }
.hr text { font-family: Arial, Helvetica, sans-serif; }
.hr svg * { transform-box: fill-box; }
.hr .hr-send, .hr .hr-build, .hr .hr-live, .hr .hr-win, .hr .hr-slide, .hr .hr-s2, .hr .hr-s3, .hr .hr-s2-hide,
.hr .hr-s1-hide, .hr .hr-s1-show, .hr .hr-typed, .hr .hr-caret {
  transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.hr .hr-build, .hr .hr-live, .hr .hr-win, .hr .hr-slide, .hr .hr-s2, .hr .hr-s3, .hr .hr-s1-show { opacity: 0; }
.hr .hr-win { opacity: .12; } /* before: an empty window; after: the app */
.hr .hr-slide { transform: translateY(12px); pointer-events: none; }
.hr .hr-up { transform: translateY(8px); }
.hr .hr-send { opacity: .35; }
.hr .hr-caret { animation: hr-blink 1s steps(1) infinite; }
.hr .hr-bar { transform-origin: left center; transform: scaleX(0); }
.hr[data-phase="typed"] .hr-send, .hr[data-phase="build"] .hr-send { opacity: 1; }
.hr[data-phase="build"] .hr-build { opacity: 1; }
.hr[data-phase="build"] .hr-bar { transform: scaleX(1); transition: transform 1.3s cubic-bezier(.4,0,.2,1); }
.hr[data-phase="build"] .hr-caret, .hr[data-phase="live"] .hr-caret { opacity: 0; animation: none; }
.hr[data-phase="live"] .hr-send { opacity: 0; }
.hr[data-phase="live"] .hr-live, .hr[data-phase="live"] .hr-win, .hr[data-phase="live"] .hr-slide.is-on { opacity: 1; transform: none; }
/* inside the apps */
.hr .hr-s1-pick, .hr .hr-s1-btn, .hr .hr-s1-shrink, .hr .hr-s3-top { transition: fill .35s ease, transform .9s cubic-bezier(.4,0,.2,1); }
.hr.s1 .hr-s1-pick, .hr.s3 .hr-s3-top { fill: #ffb349; }
.hr.s1 .hr-s1-btn { fill: #c97a00; }
.hr .hr-s1-shrink { transform-origin: left center; }
.hr.s1 .hr-s1-shrink { transform: scaleX(.3); }
.hr.s2 .hr-s1-shrink { fill: #e0705a; }
.hr.s1 .hr-s1-hide { opacity: 0; } .hr.s1 .hr-s1-show { opacity: 1; }
.hr .hr-bars rect { transform-origin: center bottom; transform: scaleY(0); transition: transform .8s cubic-bezier(.3,.7,.3,1), fill .35s ease; }
.hr .hr-bars rect:nth-child(2) { transition-delay: .12s; } .hr .hr-bars rect:nth-child(3) { transition-delay: .24s; } .hr .hr-bars rect:nth-child(4) { transition-delay: .36s; }
.hr.s1 .hr-bars rect { transform: none; }
.hr.s2 .hr-s2-hide { opacity: 0; }
.hr.s2 .hr-s2, .hr.s3 .hr-s3 { opacity: 1; transform: none; }
/* leaving a slide */
.hr.is-out .hr-slide, .hr.is-out .hr-live, .hr.is-out .hr-typed { opacity: 0 !important; }
.hr-dots circle { fill: #4b6368; transition: fill .4s ease; }
.hr-dots circle.is-on { fill: #ff9f01; }
@keyframes hr-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hr * { transition: none !important; animation: none !important; } }

/* Product copy and example are side by side on desktop. */
.product-preview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 3rem; align-items: center; }
@media (max-width: 980px) {
  .product-preview { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* Named example controls replace the four dots drawn in the SVG. */
.hr-dots { display: none; }
.hr-ctrl { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: .6rem; }
.hr-ctrl button { appearance: none; border: 1px solid var(--de-line, #c4c4c8); background: transparent; cursor: pointer;
  min-height: 34px; display: inline-flex; align-items: center; justify-content: center; color: var(--de-text, #18181b); }
.hr-ctrl button:focus-visible { outline: 2px solid #ff9f01; outline-offset: 2px; }
.hr-pick { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; }
.hr-pick button { padding: .25rem .52rem; border-radius: 6px; font: 600 .82rem/1.15 Arial, sans-serif; }
.hr-pick button:hover, .hr-pp:hover { border-color: #ff9f01; }
.hr-pick button[aria-pressed="true"] { background: #ff9f01; border-color: #ff9f01; color: #18181b; }
.hr-pp { flex: 0 0 34px; border-radius: 50%; padding: 0; }
.hr-pp::before { content: ""; width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; box-sizing: border-box; }
.hr-pp[data-state="paused"]::before { width: 0; height: 0; border: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
