/* Interactive bands on product and solution pages (bin/interactive.py). Everything
   reads without JavaScript; interactive.js adds motion and clicks. */

.hr-demo-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
@media (max-width: 960px) { .hr-demo-grid { grid-template-columns: 1fr; gap: 36px; } }
.hr-demo-copy { display: grid; gap: 16px; align-content: start; }
.hr-demo-copy h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -0.045em; }
.hr-lede { font-size: 18px; color: var(--ink-2); max-width: 52ch; }
.hr-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.hr-fact { border-top: 1px solid var(--line-2); padding-top: 12px; display: grid; gap: 4px; align-content: start; }
.hr-fact b { font-size: 26px; font-weight: 650; letter-spacing: -0.03em; line-height: 1.1; }
.hr-fact span { font-size: 14px; color: var(--muted); line-height: 1.4; }
@media (max-width: 560px) { .hr-facts { grid-template-columns: 1fr; } }

.hr-demo { background: var(--paper); border: 1px solid var(--line-2); border-radius: 22px; padding: 18px; box-shadow: var(--sh-3); display: grid; gap: 12px; min-width: 0; }
.hr-note { font-size: 13.5px; color: var(--muted); margin-top: 14px; max-width: 80ch; }
.hr-demo .hr-note { margin-top: 0; }

/* tabs (switchable conversations, Desk views) */
.hr-tabs { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; background: var(--layer-2); border-radius: 14px; width: fit-content; max-width: 100%; }
.hr-tab { border: 0; background: transparent; color: var(--muted); border-radius: 10px; padding: 8px 14px; font: 550 14px/1.2 var(--sans); cursor: pointer; min-height: 36px; transition: background .2s, color .2s, box-shadow .2s; }
.hr-tab:hover { color: var(--ink); }
.hr-tab[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(16, 18, 32, .12); }

/* conversations */
.hr-plabel { font: 600 13px/1.2 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.hr-panel + .hr-panel { margin-top: 12px; }
.js-hr .hr-plabel { display: none; }
.js-hr .hr-panel + .hr-panel { margin-top: 0; }
.hr-chat { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.hr-chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--brand); color: #fff; }
.hr-av { width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); display: grid; place-items: center; font: 800 12px/1 var(--sans); }
.hr-chat-head span { display: grid; line-height: 1.25; }
.hr-chat-head small { font-size: 12px; opacity: 0.85; }
.hr-msgs { list-style: none; margin: 0; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; min-height: 300px; }
.hr-v { align-self: flex-end; max-width: 80%; background: var(--brand); color: #fff; padding: 9px 13px; border-radius: 14px 14px 4px 14px; font-size: 15px; line-height: 1.45; }
.hr-a { align-self: flex-start; max-width: 88%; background: var(--layer); padding: 10px 13px; border-radius: 14px 14px 14px 4px; font-size: 15px; line-height: 1.5; }
.hr-s { align-self: center; font-size: 12.5px; font-weight: 600; color: var(--ok); background: #e6f4ec; padding: 5px 12px; border-radius: 999px; }
.hr-src { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.hr-src span { font-size: 12.5px; font-weight: 600; color: var(--brand); background: var(--paper); border: 1px solid #d3e0fd; padding: 3px 9px; border-radius: 999px; }
.hr-warn { display: block; margin-top: 8px; font-size: 12.5px; font-weight: 700; color: #b42323; }
.hr-typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; background: var(--layer); border-radius: 14px; }
.hr-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: hr-blink 1.2s infinite; }
.hr-typing i:nth-child(2) { animation-delay: 0.2s; }
.hr-typing i:nth-child(3) { animation-delay: 0.4s; }
.hr-in { animation: hr-pop 0.35s ease-out; }
@keyframes hr-pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes hr-blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }
.hr-replay { justify-self: start; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 7px 14px; font: 600 13.5px/1.2 var(--sans); cursor: pointer; min-height: 36px; }

/* proof bars and cost rows */
.hr-bars { display: grid; gap: 16px; max-width: 900px; }
.hr-brow { display: grid; grid-template-columns: 200px minmax(0, 1fr) 70px; gap: 16px; align-items: center; font-size: 16px; }
.hr-bl { font-weight: 600; }
.hr-brow b { font: 600 15px/1 var(--mono); text-align: right; }
.hr-track { display: block; height: 14px; border-radius: 999px; background: var(--layer-2); overflow: hidden; }
.hr-fill { display: block; height: 100%; border-radius: 999px; background: var(--brand); transition: width 1.1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.hr-fill.them { background: #b9bfcc; }
.hr-wait .hr-fill { width: 0 !important; }
@media (max-width: 640px) { .hr-brow { grid-template-columns: 1fr 60px; } .hr-brow .hr-track { grid-column: 1 / -1; order: 3; } }

.hr-calc-head { font-weight: 700; font-size: 16px; }
.hr-slider { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.hr-slider input { width: 100%; accent-color: var(--brand); }
.hr-crow { display: grid; gap: 6px; }
.hr-ctop { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.hr-ctop b { font: 700 15px/1.2 var(--mono); white-space: nowrap; }
.hr-crow small { font-size: 13px; color: var(--muted); line-height: 1.45; }

/* the Desk sketch */
.hr-desk-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; min-height: 320px; }
@media (max-width: 640px) { .hr-desk-grid { grid-template-columns: 1fr; } }
.hr-rows { list-style: none; margin: 0; padding: 0; border-right: 1px solid var(--line); }
.hr-row { width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: var(--paper); padding: 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; font: inherit; cursor: pointer; min-height: 48px; }
.hr-row[aria-pressed="true"] { background: var(--brand-soft); }
.hr-row b { font-size: 14px; }
.hr-row small { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hr-chip { font: 600 11px/1 var(--sans); padding: 4px 8px; border-radius: 999px; background: var(--layer-2); color: var(--ink-2); align-self: center; }
.hr-chip.new { background: var(--brand-soft); color: var(--brand); }
.hr-chip.open { background: #fdf3dc; color: #7a4f01; }
.hr-chip.won { background: #e6f4ec; color: var(--ok); }
.hr-detail { padding: 16px; display: grid; gap: 10px; align-content: start; }
.hr-detail header { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 16px; }
.hr-bub { background: var(--layer); border-radius: 12px; padding: 10px 12px; font-size: 14.5px; }
.hr-bub.me { background: var(--brand-soft); }
.hr-dnote { font-size: 13.5px; color: var(--ink-2); }
.hr-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.hr-acts span { border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; font-size: 13.5px; font-weight: 600; }
.hr-acts .go { background: var(--brand); border-color: var(--brand); color: #fff; }
.hr-rows li[hidden] { display: none; }

/* the set-up stepper */
.hr-fsteps { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.hr-fstep { border: 1px solid var(--line-2); border-radius: 16px; padding: 18px; display: grid; gap: 8px; background: var(--paper); }
.hr-k { font: 600 12.5px/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); }
.hr-fstep b { font-size: 19px; font-weight: 620; }
.hr-fstep span { font-size: 15px; color: var(--ink-2); }
.hr-field { font: 500 14px/1.2 var(--mono) !important; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; color: var(--muted) !important; }
.hr-fbar { display: flex; gap: 6px; }
.hr-fbar i { flex: 1; height: 6px; border-radius: 999px; background: var(--layer-2); transition: background 0.4s; }
.hr-fbar i.on { background: var(--brand); }
.hr-fnav { display: flex; gap: 8px; }
.hr-fnav button { border: 1px solid var(--line-2); background: var(--paper); border-radius: 12px; padding: 9px 18px; font: 600 14px/1.2 var(--sans); cursor: pointer; min-height: 40px; }
.hr-fnav .go { background: var(--brand); border-color: var(--brand); color: #fff; }
.js-hr .hr-fstep { min-height: 190px; align-content: start; }

/* hidden always wins over the display rules above */
.hr-band [hidden], .hr-demo [hidden] { display: none !important; }

/* more message kinds */
.hr-p { background: #e6f4ec; }
.hr-mail { background: var(--paper); border: 1px solid var(--line); display: grid; gap: 6px; }
.hr-mail-head { display: grid; gap: 2px; font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.hr-prod { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 8px; margin-top: 8px; }
.hr-prod-img { width: 60px; height: 60px; border-radius: 9px; background: linear-gradient(135deg, #d9c4f0, #7b4fc0); }
.hr-prod > span:last-child { display: grid; gap: 2px; font-size: 13.5px; }
.hr-stock { color: var(--ok); font-weight: 700; }
.hr-form { display: grid; gap: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-top: 8px; }
.hr-in-field { border: 1px solid #d4d1d6; border-radius: 8px; padding: 8px 10px; font-size: 13.5px; color: var(--muted); }
.hr-in-go { justify-self: start; background: var(--brand); color: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 13.5px; }

/* example label, charts */
.hr-example { justify-self: start; font: 700 12px/1 var(--sans); color: #7a4f01; background: #fdf3dc; padding: 5px 10px; border-radius: 999px; }
.hr-unit { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.hr-chart { display: flex; align-items: flex-end; gap: 10px; height: 230px; border: 1px solid var(--line); border-radius: 14px; padding: 16px 14px 10px; }
.hr-col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; }
.hr-colbar { width: 100%; border-radius: 6px 6px 2px 2px; background: var(--brand); transition: height 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.hr-colbar.alt { background: #e0962f; }
.hr-colv { font: 700 12px/1 var(--mono); }
.hr-coll { font-size: 12px; color: var(--muted); white-space: nowrap; }
.hr-wait .hr-colbar { height: 0 !important; }

/* the widget and the small page it sits on */
.hr-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.hr-sws { display: flex; gap: 6px; margin-right: 6px; }
.hr-sw { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--paper); box-shadow: 0 0 0 1px #d4d1d6; cursor: pointer; }
.hr-sw[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.hr-page { position: relative; display: block; height: 330px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--paper); }
.hr-page-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.hr-page-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--layer-2); }
.hr-page-lines { display: grid; gap: 9px; padding: 14px; }
.hr-page-lines i { display: block; height: 10px; border-radius: 5px; background: var(--layer); }
.hr-page-lines i:nth-child(1) { width: 60%; }
.hr-page-lines i:nth-child(2) { width: 88%; }
.hr-page-lines i:nth-child(3) { width: 72%; }
.hr-page-lines i:nth-child(4) { width: 45%; }
.hr-launch { position: absolute; right: 14px; bottom: 14px; width: 48px; height: 48px; border-radius: 50%; background: var(--hr-accent, var(--brand)); box-shadow: 0 8px 20px rgba(12, 11, 13, 0.2); }
.hr-wpanel { position: absolute; right: 14px; bottom: 72px; width: 240px; border-radius: 16px; overflow: hidden; background: var(--paper); box-shadow: 0 18px 40px rgba(12, 11, 13, 0.18); font-size: 13px; }
.hr-whead { display: block; padding: 10px 12px; color: #fff; font-weight: 700; background: var(--hr-accent, var(--brand)); }
.hr-wbody { display: grid; gap: 8px; padding: 10px; }
.hr-wbody span { background: var(--layer); border-radius: 10px; padding: 8px 10px; }
.hr-widget.left .hr-launch, .hr-widget.left .hr-wpanel { right: auto; left: 14px; }
.hr-widget.dark .hr-wpanel { background: #1b1b1f; color: #ececf0; }
.hr-widget.dark .hr-wbody span { background: #2a2a30; }

/* proactive formats on the small page */
.hr-fl { position: absolute; right: 70px; bottom: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px 14px 4px 14px; padding: 9px 12px; font-size: 13px; box-shadow: 0 10px 24px rgba(12, 11, 13, 0.14); }
.hr-fcard { position: absolute; right: 12px; bottom: 72px; width: 230px; border-radius: 14px; overflow: hidden; background: var(--paper); box-shadow: 0 16px 36px rgba(12, 11, 13, 0.2); }
.hr-fmedia { display: grid; place-items: center; height: 96px; background: linear-gradient(135deg, #2b3242, #0c0b0d); }
.hr-fmedia i { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.85); }
.hr-fbody { display: grid; gap: 6px; padding: 10px 12px 12px; font-size: 13px; }
.hr-fbody em, .hr-fcenter em { justify-self: start; font-style: normal; background: var(--brand); color: #fff; border-radius: 999px; padding: 5px 12px; font-weight: 700; font-size: 12.5px; }
.hr-fdim { position: absolute; inset: 40px 0 0; display: grid; place-items: center; background: rgba(12, 11, 13, 0.4); }
.hr-fcenter { display: grid; gap: 8px; width: 260px; background: var(--paper); border-radius: 16px; padding: 16px; font-size: 13.5px; }
.hr-fchat { position: absolute; right: 12px; bottom: 72px; width: 240px; display: grid; gap: 6px; }
.hr-fwho { justify-self: start; background: var(--paper); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; box-shadow: 0 4px 12px rgba(12, 11, 13, 0.12); }
.hr-fcc { display: grid; gap: 6px; background: var(--paper); border-radius: 14px; padding: 8px; font-size: 12.5px; box-shadow: 0 14px 30px rgba(12, 11, 13, 0.18); }
.hr-fbub { background: var(--layer); border-radius: 10px; padding: 8px 10px; }
.hr-fchips { display: flex; flex-wrap: wrap; gap: 4px; }
.hr-fchips i { font-style: normal; background: #e8f0fe; color: #0b57d0; border-radius: 6px; padding: 3px 7px; font-weight: 600; font-size: 11.5px; }
.hr-fask { display: flex; justify-content: space-between; align-items: center; color: var(--muted); padding: 2px 2px 0 4px; }
.hr-fask i { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); }
.hr-fbar2 { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); width: 64%; display: flex; align-items: center; gap: 8px; background: var(--paper); border-radius: 12px; padding: 8px; font-size: 12.5px; color: var(--muted); box-shadow: 0 8px 22px rgba(12, 11, 13, 0.16); }
.hr-fbar2 i { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--layer); }
.hr-fbar2 i:last-child { margin-left: auto; background: var(--ink); }
@media (max-width: 560px) { .hr-fcard, .hr-fchat, .hr-wpanel { width: 190px; } .hr-fbar2 { width: 80%; } .hr-fcenter { width: 220px; } }

/* notifications, events, rules, unanswered */
.hr-nlist { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.hr-n { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.hr-n span { display: grid; gap: 2px; font-size: 14px; }
.hr-n small { font-size: 13px; color: var(--muted); }
.hr-n time { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.hr-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-top: 7px; }
.hr-read .hr-dot { background: transparent; }
.hr-nfoot { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.hr-dests { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.hr-dest { font: 700 12.5px/1 var(--sans); padding: 6px 10px; border-radius: 999px; background: var(--layer); color: var(--muted); }
.hr-dest.on { background: #e6f4ec; color: var(--ok); }
.hr-code { margin: 0; background: #0c0b0d; color: #d9dee9; border-radius: 12px; padding: 14px; font: 500 13px/1.6 var(--mono); white-space: pre-wrap; word-break: break-word; }
.hr-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hr-rule { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 15px; }
.hr-rule.off { opacity: 0.45; }
.hr-toggle { position: relative; width: 44px; height: 26px; border: 0; border-radius: 999px; background: #cfcbd2; cursor: pointer; }
.hr-toggle span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left 0.25s; }
.hr-toggle.on { background: var(--brand); }
.hr-toggle.on span { left: 21px; }
.hr-result { background: #e6f4ec; color: var(--ok); font-weight: 700; font-size: 14.5px; border-radius: 12px; padding: 10px 12px; }
.hr-uqs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hr-uq { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.hr-uqq { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; font-weight: 600; grid-column: 1; }
.hr-uq .hr-track { grid-column: 1; }
.hr-add { grid-column: 2; grid-row: 1 / span 2; border: 0; background: var(--brand); color: #fff; border-radius: 999px; padding: 8px 14px; font: 700 13.5px/1.2 var(--sans); cursor: pointer; min-height: 38px; }
.hr-done { grid-column: 2; grid-row: 1 / span 2; color: var(--ok); font-weight: 700; font-size: 13.5px; }
@media (max-width: 560px) { .hr-uq { grid-template-columns: 1fr; } .hr-add, .hr-done { grid-column: 1; grid-row: auto; justify-self: start; } }

/* hidden always wins, for the parts added above too */
.hr-band [hidden], .hr-demo [hidden] { display: none !important; }

/* Custom development: the automation workflow (bin/build_content.py cd_flow). A pulse runs along the line and lights each step in turn. */
.cd-pipe { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.cd-pipe::before { content: ""; position: absolute; top: 27px; left: 10%; right: 10%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--brand-line), var(--brand), var(--brand-line)); background-size: 200% 100%; animation: cd-run 3s linear infinite; }
.cd-node { position: relative; display: grid; gap: 8px; align-content: start; justify-items: start; padding: 0 4px; }
.cd-n { position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font: 650 20px/1 var(--sans); color: var(--brand); background: var(--paper); border: 2px solid var(--brand-line); box-shadow: 0 0 0 6px var(--paper); animation: cd-lit 7.5s ease-in-out infinite; animation-delay: calc(var(--i) * 1.5s); }
.cd-node b { font-size: 17px; letter-spacing: -0.02em; line-height: 1.3; }
.cd-d { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.cd-ex { font: 500 12.5px/1.4 var(--mono); color: var(--ink-2); background: var(--layer); border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; }
@keyframes cd-run { from { background-position: 200% 0; } to { background-position: 0 0; } }
@keyframes cd-lit { 0%, 30%, 100% { background: var(--paper); color: var(--brand); border-color: var(--brand-line); transform: none; } 8%, 20% { background: var(--brand); color: #fff; border-color: var(--brand); transform: scale(1.08); } }
@media (max-width: 900px) {
	.cd-pipe { grid-template-columns: 1fr; gap: 22px; }
	.cd-pipe::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 3px; height: auto; background: linear-gradient(180deg, var(--brand-line), var(--brand), var(--brand-line)); background-size: 100% 200%; animation-name: cd-run-v; }
	.cd-node { grid-template-columns: 56px 1fr; column-gap: 16px; padding: 0; }
	.cd-node .cd-n { grid-row: span 3; }
}
@keyframes cd-run-v { from { background-position: 0 200%; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .cd-pipe::before, .cd-n { animation: none; } }
