/* ==========================================================================
   AGENCY90 — hero.css  (v1.4)
   Live buying-journey demo. Uses the existing Agency90 tokens from styles.css
   (sky / sky-ink / gold / cream / charcoal / radius / shadow / ease). No new
   colours. All spacing/positioning uses logical properties so the same CSS
   serves Arabic (RTL) and English (LTR); direction-dependent motion reads
   --flow (+1 LTR, -1 RTL), defined on :root from <html dir> (see styles.css).
   ========================================================================== */

.hx{
  --hx-ink: var(--a90-sky-ink);
  --hx-ease: var(--ease-soft);
  --hx-io: cubic-bezier(.65, 0, .35, 1);
  --stage-h: 500px;
  padding: 28px 0 44px;
  overflow: hidden;
}
@media (min-width: 900px){ .hx{ padding: 44px 0 72px; } }

.hx .eyebrow{ letter-spacing: .06em; margin-bottom: 12px; }
.hx .hx-brand{ letter-spacing: .03em; }
.hx .hx-brand em{ letter-spacing: 0; }

.hx .hx-ic{ width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Layout ---------- */
.hx-grid{ display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
@media (min-width: 1040px){ .hx-grid{ grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 64px; } }
.hx-copy{ max-width: 600px; }
.hx-demo{ width: 100%; max-width: 560px; margin-inline: auto; position: relative; }
@media (min-width: 1040px){ .hx-demo{ margin-inline: 0; } }

/* ---------- Copy ---------- */
.hx .hero-title{
  font-size: clamp(30px, 8.4vw, 38px); line-height: 1.32; margin: 0 0 12px; text-wrap: balance;
}
html[lang="en"] .hx .hero-title{ line-height: 1.14; letter-spacing: -.02em; }
@media (min-width: 1040px){
  .hx .hero-title{ font-size: clamp(42px, 4.3vw, 54px); line-height: 1.24; }
  html[lang="en"] .hx .hero-title{ font-size: clamp(38px, 3.7vw, 48px); line-height: 1.1; }
}
.hx .hero-lead{ font-size: 16.5px; line-height: 1.75; max-width: 500px; margin-bottom: 0; text-wrap: pretty; }
@media (min-width: 900px){ .hx .hero-lead{ font-size: 18px; } }
.hx-actions{ display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 22px; }
.hx-actions .btn-primary{ min-height: 52px; }
.hx-micro{ margin: 12px 0 0; font-size: 13.5px; color: var(--a90-gray); }
@media (max-width: 480px){
  .hx-actions .btn-primary{ flex: 1 1 auto; padding-inline: 20px; }
  .hx-actions .btn-ghost{ padding-inline: 4px; white-space: nowrap; }
}
@media (max-width: 639px){ .hx-micro{ display: none; } }   /* the same line closes the page; keep the first screen light */

/* ---------- Segmented controls (shared component) ---------- */
.hx-seg{
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 4px; border-radius: var(--radius-pill); isolation: isolate;
}
.hx-seg > input{ position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.hx-seg > label{
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 14px; border-radius: var(--radius-pill); cursor: pointer; white-space: nowrap;
  font-weight: 600; font-size: 15px; line-height: 1; color: var(--a90-gray);
  transition: color 200ms var(--hx-ease), transform 160ms var(--hx-ease);
  -webkit-tap-highlight-color: transparent; user-select: none; touch-action: manipulation;
}
.hx-seg > label:active{ transform: scale(.97); }
.hx-seg > input:checked + label{ color: var(--a90-charcoal); }
.hx-seg > input:focus-visible + label{ outline: 2px solid var(--hx-ink); outline-offset: -2px; }
.hx-seg-thumb{
  position: absolute; z-index: 0; inset-block: 4px; inset-inline-start: 4px;
  width: calc((100% - 8px) / var(--n, 2)); border-radius: var(--radius-pill);
  transform: translateX(calc(var(--i, 0) * 100% * var(--flow)));
  transition: transform 380ms var(--hx-ease);
}

/* where in the journey */
.hx-seg--steps{ background: var(--a90-sky-light); margin-bottom: 10px; }
.hx-seg--steps > label{ font-size: 15px; }
.hx-seg--steps .hx-seg-thumb{ background: var(--a90-white); box-shadow: 0 1px 2px rgba(32,37,42,.10), 0 4px 12px rgba(32,37,42,.08); }
/* before / after: the primary control, on top of the store */
.hx-modebar{ padding: 10px 12px; background: var(--a90-sky-light); border-bottom: 1px solid var(--a90-border); }
.hx-seg--ba{ width: min(100%, 320px); margin-inline: auto; background: var(--a90-white); border: 1px solid var(--a90-border); }
.hx-seg--ba > label{ min-height: 46px; font-size: 15.5px; font-weight: 700; }
.hx-seg--ba .hx-seg-thumb{ background: var(--a90-sky); box-shadow: 0 3px 12px rgba(120,199,232,.55); }

/* ---------- Store frame ---------- */
.hx-frame{
  background: var(--a90-white); border: 1px solid var(--a90-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
/* ---------- Store stage (fixed height: nothing below ever shifts) ---------- */
.hx-stage{
  --liq: #78C7E8;
  position: relative; height: var(--stage-h); background: #FBFAF7; overflow: hidden;
  container-type: inline-size; color: var(--a90-charcoal);
}
.hx-stage[data-opt="1"]{ --liq: #C8A45D; }
.hx-stage[data-opt="2"]{ --liq: #454C53; }
@media (min-width: 480px){ .hx{ --stage-h: 506px; } }

.hx-screen{
  position: absolute; inset: 0; display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; pointer-events: none;
}
.hx-screen.is-active{ opacity: 1; visibility: visible; pointer-events: auto; }

.hx-sh{
  flex: none; display: flex; align-items: center; justify-content: space-between; height: 46px; padding-inline: 14px;
  background: var(--a90-white); border-bottom: 1px solid var(--a90-border); color: var(--a90-charcoal-muted);
}
.hx-brand{ font-family: var(--font-latin-head); font-weight: 700; font-size: 15px; letter-spacing: .03em; color: var(--a90-charcoal); }
.hx-brand em{ font-style: normal; color: var(--a90-gold); font-family: var(--font-ar-head); letter-spacing: 0; margin-inline-start: 3px; }
.hx-bag{ position: relative; display: inline-flex; }
.hx-bagc{
  position: absolute; top: -6px; inset-inline-end: -8px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--a90-charcoal); color: var(--a90-white); font: 700 11px/17px var(--font-latin-head); text-align: center;
}
.hx-bagc[hidden]{ display: none; }
.hx-bagc.bump{ animation: hxBump 520ms var(--hx-ease); }
@keyframes hxBump{ 0%{ transform: scale(.4); } 55%{ transform: scale(1.3); } 100%{ transform: scale(1); } }

.hx-sbody{
  flex: 1; min-height: 0; overflow: hidden; padding: 14px 14px 0; display: flex; flex-direction: column; gap: 14px;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 22px), transparent);
          mask-image: linear-gradient(to bottom, #000 calc(100% - 22px), transparent);
}

/* sticky purchase bar */
.hx-sb{
  flex: none; display: flex; align-items: center; gap: 14px; padding: 10px 14px; min-height: 68px;
  background: var(--a90-white); border-top: 1px solid var(--a90-border); box-shadow: 0 -8px 20px rgba(32,37,42,.05);
}
.hx-sb-p{ display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.hx-sb-p small{ font-size: 12.5px; color: var(--a90-gray); }
.hx-sb-p b{ font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hx-cta{
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px;
  border-radius: var(--radius-pill); background: var(--a90-charcoal); color: var(--a90-white); font-weight: 700; font-size: 15px;
  transition: background 180ms var(--hx-ease), transform 160ms var(--hx-ease), box-shadow 180ms var(--hx-ease);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.hx-cta:hover{ background: #333a41; box-shadow: 0 6px 16px rgba(32,37,42,.22); }
.hx-cta:active{ transform: scale(.97); box-shadow: none; }
.hx-cta:focus-visible, .hx-qty button:focus-visible{ outline: 2px solid var(--hx-ink); outline-offset: 2px; }
.hx-cta .hx-ic-add{ display: none; width: 18px; height: 18px; }
.hx-cta.is-done{ background: var(--a90-sky-ink); }
.hx-cta.is-done .hx-ic-add{ display: block; }

/* product (choice) */
.hx-ptop{ display: flex; gap: 14px; align-items: stretch; }
.hx-pmedia{ flex: none; width: 96px; height: 108px; border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(32,37,42,.06), 0 6px 14px rgba(32,37,42,.08); }
.hx-pmedia svg, .hx-thumb svg{ width: 100%; height: 100%; display: block; }
.hx-pinfo{ min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.hx-kick{ margin: 0; font-size: 12.5px; color: var(--a90-gray); }
.hx-pname{ margin: 1px 0 2px; font-size: 17px; line-height: 1.35; }
.hx-pmeta{ margin: 0 0 6px; font-size: 13.5px; color: var(--a90-charcoal-muted); }
.hx-price{ margin: 0; font-size: 19px; font-weight: 700; color: var(--a90-charcoal); font-variant-numeric: tabular-nums; }
.hx-price small{ font-size: 12.5px; font-weight: 500; color: var(--a90-gray); margin-inline-start: 4px; }

.hx-tabs{ display: flex; gap: 20px; border-bottom: 1px solid var(--a90-border); font-size: 13.5px; color: var(--a90-gray); flex: none; }
.hx-tabs span{ padding: 4px 0 8px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.hx-tabs .on{ color: var(--a90-charcoal); font-weight: 600; border-color: var(--a90-charcoal); }
.hx-desc{ margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--a90-charcoal-muted); flex: none; }

/* ---------- Intervention zone (the only thing that changes) ---------- */
.hx-zone{ position: relative; flex: none; }
.hx-zone::before, .hx-zone::after{
  content: ""; position: absolute; inset: -7px; border-radius: 16px; pointer-events: none; transition: opacity 320ms var(--hx-ease);
}
.hx-zone::before{ border: 1.5px dashed rgba(40,115,151,.5); }         /* dashed = hypothesis */
.hx-zone::after{ border: 1.5px solid var(--a90-sky); opacity: 0; }    /* solid  = intervention */
.hx-stage[data-mode="after"] .hx-zone::before{ opacity: 0; }
.hx-stage[data-mode="after"] .hx-zone::after{ opacity: 1; }
.hx-zone.pulse::after{ animation: hxPulse 900ms var(--hx-ease); }
@keyframes hxPulse{ 0%{ box-shadow: 0 0 0 0 rgba(120,199,232,.7); } 100%{ box-shadow: 0 0 0 12px rgba(120,199,232,0); } }

.hx-ztag{
  position: absolute; z-index: 2; top: -19px; inset-inline-end: 8px; padding: 0 10px; height: 22px; display: inline-flex; align-items: center;
  border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap;
  color: var(--hx-ink); background: #FBFAF7; border: 1px solid rgba(40,115,151,.4);
  transition: background 300ms var(--hx-ease), color 300ms var(--hx-ease), border-color 300ms var(--hx-ease);
}
.hx-stage[data-mode="after"] .hx-ztag{ background: var(--a90-sky); color: var(--a90-charcoal); border-color: var(--a90-sky); }

.hx-zin{ position: relative; }
.hx-v{ display: none; }
.hx-v.on{ display: block; }
.hx-v.leaving{ display: block; position: absolute; inset-inline: 0; top: 0; pointer-events: none; }
.hx-zl{ margin: 0 0 8px; font-size: 13.5px; font-weight: 600; color: var(--a90-charcoal-muted); }

/* choice — BEFORE: three opaque pills */
.hx-pills{ display: flex; gap: 8px; flex-wrap: wrap; }
.hx-pill{ position: relative; cursor: pointer; }
.hx-pill input, .hx-opt input, .hx-pay input{ position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.hx-pill span{
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--radius-pill);
  background: var(--a90-white); border: 1px solid var(--a90-border); font-size: 14.5px; font-weight: 600; color: var(--a90-charcoal-muted);
  transition: border-color 200ms var(--hx-ease), color 200ms var(--hx-ease), box-shadow 200ms var(--hx-ease), transform 160ms var(--hx-ease);
}
.hx-pill:active span{ transform: scale(.97); }
.hx-pill input:checked + span{ border-color: var(--a90-charcoal); color: var(--a90-charcoal); box-shadow: inset 0 0 0 1px var(--a90-charcoal); }
.hx-pill input:focus-visible + span, .hx-opt input:focus-visible ~ .hx-opt-t, .hx-pay input:focus-visible ~ .hx-pay-t{ outline: 2px solid var(--hx-ink); outline-offset: 3px; border-radius: 10px; }

/* choice — AFTER: option cards that explain the difference */
.hx-cards{ display: flex; flex-direction: column; gap: 7px; }
.hx-opt, .hx-pay{
  position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  min-height: 52px; padding: 6px 14px; border-radius: 14px; background: var(--a90-white); border: 1px solid var(--a90-border);
  cursor: pointer; transition: border-color 200ms var(--hx-ease), box-shadow 200ms var(--hx-ease), transform 160ms var(--hx-ease);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.hx-opt:active, .hx-pay:active{ transform: scale(.985); }
.hx-opt.is-on, .hx-pay.is-on{ border-color: var(--a90-charcoal); box-shadow: inset 0 0 0 1px var(--a90-charcoal); }
.hx-dot{ width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #B9B5A9; background: var(--a90-white); position: relative; transition: border-color 200ms, background 200ms; }
.hx-dot::after{ content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--a90-white); transform: scale(0); transition: transform 240ms var(--hx-ease); }
.hx-opt.is-on .hx-dot, .hx-pay.is-on .hx-dot{ border-color: var(--a90-charcoal); background: var(--a90-charcoal); }
.hx-opt.is-on .hx-dot::after, .hx-pay.is-on .hx-dot::after{ transform: scale(1); }
.hx-opt-t, .hx-pay-t{ display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.hx-opt-t b, .hx-pay-t b{ font-size: 14.5px; font-weight: 700; }
.hx-opt-t small, .hx-pay-t small{ font-size: 13px; color: var(--a90-charcoal-muted); }
.hx-meter{ display: inline-flex; gap: 3px; align-items: flex-end; }
.hx-meter i{ width: 5px; border-radius: 2px; background: #DAD6CA; transition: background 240ms; }
.hx-meter i:nth-child(1){ height: 8px; } .hx-meter i:nth-child(2){ height: 13px; } .hx-meter i:nth-child(3){ height: 18px; }
.hx-meter[data-meter="0"] i:nth-child(-n + 1),
.hx-meter[data-meter="1"] i:nth-child(-n + 2),
.hx-meter[data-meter="2"] i:nth-child(-n + 3){ background: var(--a90-charcoal); }

/* cart */
.hx-stitle{ margin: 0; font-size: 17px; }
.hx-item{ display: flex; gap: 12px; align-items: center; padding: 10px; background: var(--a90-white); border: 1px solid var(--a90-border); border-radius: 14px; }
.hx-order{ display: flex; gap: 12px; align-items: center; padding: 0 2px; }   /* checkout: a quiet order line, not a card — the payment zone is the focus */
.hx-thumb{ flex: none; width: 64px; height: 72px; border-radius: 10px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(32,37,42,.06); }
.hx-thumb--sm{ width: 36px; height: 40px; border-radius: 8px; }
.hx-item-t{ min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.4; }
.hx-item-t b{ font-size: 14.5px; }
.hx-item-t small{ font-size: 13px; color: var(--a90-charcoal-muted); }
.hx-item-r{ display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.hx-line{ font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hx-qty{ display: inline-flex; align-items: center; border: 1px solid var(--a90-border); border-radius: var(--radius-pill); background: #FBFAF7; }
.hx-qty button{ width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--a90-charcoal); transition: background 160ms, transform 140ms; touch-action: manipulation; }
.hx-qty button:hover{ background: var(--a90-sky-light); }
.hx-qty button:active{ transform: scale(.9); }
.hx-qty button[disabled]{ color: #A9A599; pointer-events: none; }
.hx-qty output{ min-width: 20px; text-align: center; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }

.hx-sum{ margin: 0; background: var(--a90-white); border: 1px solid var(--a90-border); border-radius: 14px; overflow: hidden; }
.hx-sum dl{ margin: 0; padding: 10px 14px; }
.hx-sum > dl, dl.hx-sum{ padding: 10px 14px; }
.hx-sum div{ display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 14px; }
.hx-sum dt{ color: var(--a90-charcoal-muted); }
.hx-sum dt small{ font-size: 12.5px; color: var(--a90-gray); margin-inline-start: 4px; }
.hx-sum dd{ margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.hx-sum .is-muted dd{ font-weight: 500; font-size: 13.5px; color: var(--a90-gray); }
.hx-sum .is-free{ color: var(--hx-ink); }
.hx-sum .is-total{ margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--a90-border); }
.hx-sum .is-total dt{ color: var(--a90-charcoal); font-weight: 700; }
.hx-sum .is-total dd{ font-size: 17px; font-weight: 700; }
.hx-eta{ display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--a90-sky-light); font-size: 14px; font-weight: 600; }
.hx-eta .hx-ic{ color: var(--hx-ink); }
.hx-eta em{ margin-inline-start: auto; font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--hx-ink); background: var(--a90-white); border: 1px solid rgba(40,115,151,.28); border-radius: var(--radius-pill); padding: 1px 10px; white-space: nowrap; }
.hx-eta span{ min-width: 0; }
.hx-sum--rich div.hx-eta{ display: flex; padding: 10px 14px; font-size: 14px; }

/* checkout */
.hx-pays{ display: flex; flex-direction: column; gap: 6px; }
.hx-pay{ min-height: 44px; padding: 4px 12px; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; }
.hx-pay--static{ cursor: default; }
.hx-pay-ic{ display: grid; place-items: center; width: 34px; height: 30px; border-radius: 8px; background: var(--a90-cream); border: 1px solid var(--a90-border); color: var(--a90-charcoal-muted); }
.hx-pay-ic .hx-ic{ width: 18px; height: 18px; }
.hx-pay-t b{ font-size: 14px; }
.hx-pay-t small{ font-size: 12.5px; }
.hx-pay .hx-dot{ width: 18px; height: 18px; }
.hx-pay .hx-dot::after{ inset: 3px; }
.hx-other{ margin: 10px 0 0; display: flex; align-items: center; gap: 4px; font-size: 13.5px; color: var(--a90-gray); }
.hx-other .hx-ic{ width: 16px; height: 16px; }
.hx-exp{ list-style: none; margin: 8px 0 0; padding: 7px 4px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--a90-sky-light); border-radius: 12px; }
.hx-exp li{ display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; font-size: 12.5px; line-height: 1.35; font-weight: 600; color: var(--a90-charcoal-muted); }
.hx-exp .hx-ic{ width: 17px; height: 17px; color: var(--hx-ink); }

.hx-toast{
  position: absolute; z-index: 5; inset-inline: 14px; bottom: 80px; margin-inline: auto; width: fit-content; max-width: calc(100% - 28px);
  padding: 9px 16px; border-radius: var(--radius-pill); background: var(--a90-charcoal); color: var(--a90-white); font-size: 13.5px; font-weight: 600; text-align: center;
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity 240ms var(--hx-ease), transform 240ms var(--hx-ease);
}
.hx-toast.on{ opacity: 1; transform: none; }

/* narrow stage (360px phones): keep the shipping strip on one line */
@container (max-width: 330px){
  .hx-eta{ gap: 8px; padding-inline: 10px; font-size: 13px; }
  .hx-eta em{ padding-inline: 8px; font-size: 12px; }
  .hx-sum dl{ padding-inline: 10px; }
}

/* wider stage (desktop / tablet): same design, more air */
@container (min-width: 440px){
  .hx-sbody{ padding: 16px 18px 0; gap: 15px; }
  .hx-sh, .hx-sb{ padding-inline: 18px; }
  .hx-pmedia{ width: 108px; height: 120px; }
  .hx-pname{ font-size: 18px; }
  .hx-cards{ gap: 8px; }
  .hx-opt{ min-height: 54px; }
  .hx-pay{ min-height: 44px; }
  .hx-thumb{ width: 72px; height: 80px; }
  .hx-toast{ bottom: 86px; }
}

/* ---------- Readout: one friction (or intervention) · one metric ---------- */
.hx-read{
  position: relative; margin-top: 14px; padding: 14px 16px; padding-inline-start: 24px; min-height: 124px;
  background: var(--a90-white); border: 1px solid var(--a90-border); border-radius: 16px; box-shadow: var(--shadow-sm);
}
.hx-read::before{                                                    /* the line grammar: dashed → solid */
  content: ""; position: absolute; inset-block: 14px; inset-inline-start: 11px; width: 3px; border-radius: 2px;
  background: repeating-linear-gradient(to bottom, rgba(40,115,151,.7) 0 6px, transparent 6px 11px);
  transition: background 300ms var(--hx-ease);
}
.hx-read[data-mode="after"]::before{ background: var(--a90-sky); }
.hx-read p{ margin: 0; color: var(--a90-charcoal); }
.hx-r-line{ font-size: 16px; line-height: 1.65; }
.hx-read .hx-r-metric{ margin-top: 10px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 13.5px; font-weight: 600; color: var(--a90-gray); }
.hx-read strong{ font-size: 14px; font-weight: 700; color: var(--hx-ink); margin-inline-end: 4px; }
.hx-kpi{
  display: inline-block; padding: 2px 14px; border-radius: var(--radius-pill); background: var(--a90-sky-light);
  border: 1px solid rgba(120,199,232,.7); font-weight: 700; font-size: 14px; color: var(--a90-charcoal);
}
@media (min-width: 640px){ .hx-r-line{ font-size: 16.5px; } }
.hx-note{ margin: 10px 4px 0; font-size: 13px; line-height: 1.6; color: var(--a90-gray); text-align: center; }

/* language switch flips direction: don't animate thumbs across the flip */
.hx-noanim .hx-seg-thumb, .hx-noanim .hx-seg > label{ transition: none !important; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  .hx *, .hx *::before, .hx *::after{ animation: none !important; transition-duration: 1ms !important; }
}
