/* =====================================================================================
   Help Centre (views/help.js): search, topics, articles with an animated phone demo
   (help/demos.js), a "how it works" workflow, steps and troubleshooting.
   .hx = page parts, .hx-m-* = the little mock screens inside the demo phone.
   ===================================================================================== */

.hx {
  width: min(100%, 860px);
  margin: 0 auto;
  padding-bottom: 32px;
}

/* ---------- Home: hero and search ---------- */
.hx-hero {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 28px 8px 8px;
  text-align: center;
}
.hx-hero__orb {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
  animation: hx-float 5s ease-in-out infinite;
}
@keyframes hx-float {
  50% {
    transform: translateY(-5px) rotate(-4deg);
  }
}
.hx-hero__title {
  margin: 6px 0 0;
  font-size: clamp(34px, 8vw, 52px);
  line-height: 1;
}
.hx-hero__title em {
  background: var(--brand-text, var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hx-hero__lead {
  max-width: 34em;
  margin: 0;
  color: var(--text-2);
}
.hx-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 560px);
  margin-top: 10px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line-2);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  color: var(--text-3);
}
.hx-search:focus-within {
  border-color: var(--brand-2);
}
.hx-search__input {
  flex: 1;
  min-width: 0;
  min-height: 52px !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  font-size: 16px;
}
.hx-search__input:focus {
  outline: none;
}

.hx-section {
  margin-top: 28px;
  scroll-margin-top: calc(var(--topbar-h, 56px) + 16px);
}
.hx-section__title,
.hx-block__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
}
.hx-cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 12px;
}
.hx-cat {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  color: var(--text);
  text-decoration: none !important;
  transition:
    transform var(--dur-2) var(--ease),
    border-color var(--dur-2) var(--ease);
}
.hx-cat:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand-2) 40%, var(--line));
}
.hx-cat__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 6px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--brand-2) 14%, transparent);
  color: var(--brand-2);
}
.hx-cat small {
  color: var(--text-2);
  font-size: 13px;
}
.hx-cat__n {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
}
.hx-list {
  display: grid;
  gap: 8px;
}
.hx-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  text-decoration: none !important;
}
.hx-link:hover {
  border-color: color-mix(in srgb, var(--brand-2) 40%, var(--line));
}
.hx-link > .icon {
  flex: none;
  color: var(--text-3);
}
.hx-link__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--brand-2);
}
.hx-link__text {
  display: grid;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.hx-link__text small {
  color: var(--text-2);
  font-size: 13px;
}
.hx-results {
  margin-top: 24px;
}
.hx-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  color: var(--text-2);
}
.hx-contact {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding: 18px;
}
.hx-contact h2 {
  margin: 0 0 2px;
  font-size: 17px;
}
.hx-contact p {
  margin: 0;
  color: var(--text-2);
}
.hx-contact > div {
  flex: 1 1 220px;
}
.hx-contact__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--brand-2);
}

/* ---------- Article ---------- */
.hx-crumbs {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  padding-top: 18px;
  font-size: 13px;
  color: var(--text-3);
}
.hx-crumbs a {
  color: var(--text-2);
}
.hx-article__head {
  display: grid;
  gap: 8px;
  margin: 14px 0 8px;
}
.hx-article__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: var(--brand);
  color: #fff;
}
.hx-article__title {
  margin: 0;
  font-size: clamp(26px, 6vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hx-article__lead {
  margin: 0;
  font-size: 17px;
  color: var(--text-2);
}
.hx-block {
  margin-top: 28px;
}
.hx-steps {
  counter-reset: hx;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hx-steps li {
  counter-increment: hx;
  position: relative;
  padding: 12px 14px 12px 50px;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: var(--surface);
  line-height: 1.5;
}
.hx-steps li::before {
  content: counter(hx);
  position: absolute;
  left: 12px;
  top: 11px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.hx-tips p {
  display: flex;
  gap: 10px;
  margin: 0 0 8px;
  padding: 12px 14px;
  border-radius: var(--radius-l);
  background: color-mix(in srgb, var(--gold-2, #f2c35b) 14%, var(--surface));
  line-height: 1.5;
}
.hx-tips .icon {
  flex: none;
  margin-top: 2px;
  color: var(--gold-text, #b7791f);
}
.hx-faq {
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.hx-faq summary::before {
  content: none; /* the app's little arrow: this one has a chevron on the right */
}
.hx-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 2px;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  list-style: none;
}
.hx-faq summary::-webkit-details-marker {
  display: none;
}
.hx-faq summary .icon {
  flex: none;
  color: var(--text-3);
  transition: transform var(--dur-2) var(--ease);
}
.hx-faq[open] summary .icon {
  transform: rotate(180deg);
}
.hx-faq p {
  margin: 0 0 14px;
  color: var(--text-2);
  line-height: 1.55;
  animation: fade-in var(--dur-2) var(--ease);
}

/* ---------- Workflow ("How it works") ---------- */
.hx-flow {
  position: relative;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hx-flow:not(.hx-flow--inner)::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 22px;
  bottom: 22px;
  width: 2px;
  background: linear-gradient(var(--brand-2), color-mix(in srgb, var(--brand-2) 15%, transparent));
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 1.2s var(--ease);
}
.hx-flow.is-in::before {
  transform: scaleY(1);
}
.hx-node,
.hx-split {
  position: relative;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.45s var(--ease),
    transform 0.45s var(--ease);
  transition-delay: calc(var(--i) * 0.16s);
}
.hx-flow.is-in .hx-node,
.hx-flow.is-in .hx-split {
  opacity: 1;
  transform: none;
}
.hx-node {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hx-node__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--brand-2);
  color: var(--brand-2);
  box-shadow: 0 0 0 4px var(--bg);
}
.hx-node__text {
  display: grid;
  gap: 2px;
  flex: 1;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.hx-node__text small {
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.45;
}
.hx-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 10px;
  padding-left: 56px;
}
.hx-path {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 18px;
  border: 1.5px dashed var(--line-2);
}
.hx-path--ok {
  border-color: color-mix(in srgb, var(--ok, #13814f) 50%, transparent);
}
.hx-path--warn {
  border-color: color-mix(in srgb, var(--warn, #b7791f) 50%, transparent);
}
.hx-path__label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  justify-self: start;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: var(--surface-2);
}
.hx-path--ok .hx-path__label {
  color: var(--ok, #13814f);
}
.hx-path--warn .hx-path__label {
  color: var(--warn, #b7791f);
}
.hx-flow--inner .hx-node {
  opacity: 1;
  transform: none;
}

/* ---------- The demo: a phone with scenes, and the steps beside it ---------- */
.hx-demo {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 20px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--brand-2) 16%, transparent), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
}
@media (max-width: 640px) {
  .hx-demo {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    padding: 16px 12px;
  }
}
.hx-phone {
  width: 230px;
  padding: 9px;
  border-radius: 38px;
  background: linear-gradient(145deg, #2a2230, #0d0a10);
  box-shadow:
    0 30px 60px -24px rgb(0 0 0 / 0.6),
    inset 0 0 0 1.5px rgb(255 255 255 / 0.08);
}
.hx-screen {
  position: relative;
  aspect-ratio: 9 / 19;
  overflow: hidden;
  border-radius: 30px;
  background: #f9f6fa;
  color: #1d1420;
  font-size: 11px;
  line-height: 1.3;
  isolation: isolate;
}
.hx-scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateX(10%);
  transition:
    opacity 0.45s var(--ease),
    transform 0.45s var(--ease);
  pointer-events: none;
}
.hx-scene.is-on {
  opacity: 1;
  transform: none;
}
.hx-demo__side {
  display: grid;
  gap: 12px;
  width: 100%;
}
.hx-demo__steps {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hx-demo__steps button {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 14px;
  background: none;
  color: var(--text-2);
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
  transition:
    background-color var(--dur-2) var(--ease),
    color var(--dur-2) var(--ease);
}
.hx-demo__steps li.is-on button {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 650;
}
.hx-demo__n {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-3);
  font-size: 12px;
  font-weight: 800;
}
.hx-demo__steps li.is-on .hx-demo__n {
  background: var(--brand);
  color: #fff;
}
.hx-demo__ctrl {
  display: flex;
  gap: 6px;
}

/* The finger: moves to the spot, then taps, holds or swipes. */
.hx-finger {
  position: absolute;
  z-index: 20;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.55);
  border: 2px solid rgb(255 255 255 / 0.95);
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.35);
  opacity: 0;
  transition:
    left 0.6s var(--ease),
    top 0.6s var(--ease),
    opacity 0.3s var(--ease);
  pointer-events: none;
}
.hx-finger.is-shown {
  opacity: 1;
}
.hx-finger::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid rgb(255 255 255 / 0.9);
  opacity: 0;
}
.hx-finger.is-tap {
  animation: hx-press 0.45s var(--ease);
}
.hx-finger.is-tap::after {
  animation: hx-ripple 0.6s var(--ease);
}
.hx-finger.is-hold {
  transform: scale(0.8);
  transition:
    transform 0.2s var(--ease),
    left 0.6s var(--ease),
    top 0.6s var(--ease);
}
.hx-finger.is-hold::after {
  animation: hx-ripple 1.2s var(--ease) infinite;
}
.hx-finger.is-swipe {
  transition:
    top 0.9s cubic-bezier(0.3, 0, 0.2, 1),
    opacity 0.3s;
}
@keyframes hx-press {
  50% {
    transform: scale(0.72);
  }
}
@keyframes hx-ripple {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(2.4);
  }
}

/* ---------- Mock screens ---------- */
.hx-m-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  height: 34px;
  padding: 10px 12px 0;
}
.hx-m-logo {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
}
.hx-m-feed {
  flex: 1;
  padding: 6px 10px;
  overflow: hidden;
}
.hx-m-pad {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 8px 12px;
}
.hx-m-muted {
  color: #8a7f8d;
  font-size: 9.5px;
}
.hx-m-tabbar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex: none;
  height: 44px;
  margin-top: auto;
  border-top: 1px solid #ece4ee;
  background: #fff;
  color: #6b6070;
}
.hx-m-orb {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-top: -14px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 0 0 3px #fff;
}
.hx-m-me,
.hx-m-av {
  display: inline-block;
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
}
.hx-m-lines {
  display: grid;
  gap: 4px;
  flex: 1;
}
.hx-m-lines i {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: #e5dce8;
}
.hx-m-card {
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgb(40 10 50 / 0.08);
}
.hx-m-card__head {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hx-m-card__photo,
.hx-m-preview {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 10px;
}
.hx-m-preview {
  aspect-ratio: 1;
}
.hx-m-preview--tall {
  aspect-ratio: 3 / 4;
}
.hx-m-card__acts {
  display: flex;
  gap: 10px;
  color: #6b6070;
}
.hx-m-scenery {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #7cc4f2 0%, #b9e0f7 45%, #f6d7b8 100%);
}
.hx-m-sun {
  position: absolute;
  top: 18%;
  right: 20%;
  width: 26%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #fff6c7, #ffd36b 60%, rgb(255 211 107 / 0) 72%);
}
.hx-m-hills {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 60%;
}
.hx-m-chip {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.45);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
}
.hx-m-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  justify-self: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 11px;
}
.hx-m-btn--wide {
  justify-self: stretch;
  padding: 9px;
}
.hx-m-btn--sm {
  padding: 4px 10px;
  font-size: 10px;
}

/* Camera */
.hx-m-cam,
.hx-m-reel {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: #000;
  color: #fff;
}
.hx-m-scenery--full {
  inset: 0;
}
.hx-m-pill {
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.35);
  font-weight: 700;
  white-space: nowrap;
}
.hx-m-cam__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 28%;
  background: linear-gradient(transparent, rgb(0 0 0 / 0.75) 40%);
}
.hx-m-ratio {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 0.4);
  background: rgb(0 0 0 / 0.35);
  font-size: 9px;
  font-weight: 800;
}
.hx-m-shutter {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid #fff;
}
.hx-m-shutter::before {
  content: '';
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
}
.hx-m-shutter--rec {
  border-color: rgb(255 255 255 / 0.4);
  transform: scale(1.1);
}
.hx-m-shutter--rec::before {
  width: 26px;
  height: 26px;
  background: #ff3b5c;
}
.hx-m-shutter--stop::before {
  width: 18px;
  height: 18px;
  border-radius: 5px;
}
.hx-m-shutter--rec i {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background: conic-gradient(#ff3b5c var(--p, 0deg), transparent 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
}
.hx-scene.is-on .hx-m-shutter--rec i {
  animation: hx-ring 3s linear forwards;
}
@property --p {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
@keyframes hx-ring {
  from {
    --p: 20deg;
  }
  to {
    --p: 200deg;
  }
}
.hx-m-rec {
  position: absolute;
  top: 24px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.4);
  font-weight: 800;
  transform: translateX(-50%);
}
.hx-m-rec i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff3b5c;
  animation: hx-blink 1s steps(2, start) infinite;
}
@keyframes hx-blink {
  to {
    visibility: hidden;
  }
}
.hx-m-lock {
  position: absolute;
  left: 50%;
  bottom: 31%;
  padding: 6px;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.45);
  transform: translateX(-50%);
}
.hx-m-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
}
.hx-scene.is-on .hx-m-flash {
  animation: hx-flash 0.5s ease-out 0.8s;
}
@keyframes hx-flash {
  20% {
    opacity: 0.9;
  }
}

/* Posting and done */
.hx-m-center {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  flex: 1;
  padding: 16px;
  text-align: center;
}
.hx-m-center strong {
  font-size: 13px;
}
.hx-m-center small {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #6b6070;
}
.hx-m-center .posting-art {
  color: #1d1420;
}
.hx-m-bar {
  display: block;
  width: 80%;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #ece4ee;
}
.hx-m-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}
.hx-scene.is-on .hx-m-bar i {
  animation: hx-fill 3s var(--ease) forwards;
}
.hx-scene.is-on .hx-m-bar--to12 i {
  animation: hx-fill12 1.4s var(--ease) 0.3s forwards;
}
@keyframes hx-fill {
  to {
    width: 100%;
  }
}
@keyframes hx-fill12 {
  to {
    width: 12%;
  }
}
.hx-m-done .badge figcaption,
.hx-m-grid .badge figcaption,
.hx-m-sheet .badge figcaption {
  display: none;
}
.hx-scene.is-on .hx-pop {
  animation: hx-pop 0.8s var(--ease-spring) both;
}
.hx-scene.is-on .hx-flip {
  animation: hx-flip 1.1s var(--ease-spring) both;
}
@keyframes hx-pop {
  from {
    opacity: 0;
    transform: scale(0.3) rotate(-20deg);
  }
}
@keyframes hx-flip {
  from {
    opacity: 0;
    transform: perspective(500px) rotateY(-540deg) scale(0.4);
  }
  40% {
    opacity: 1;
  }
}
.hx-m-confetti {
  position: absolute;
  top: 34%;
  left: 50%;
  width: 6px;
  height: 6px;
  pointer-events: none;
}
.hx-m-confetti,
.hx-m-confetti::before,
.hx-m-confetti::after {
  border-radius: 2px;
}
.hx-scene.is-on .hx-m-confetti {
  box-shadow:
    -60px -40px 0 var(--brand-1),
    50px -50px 0 #f2c35b,
    -40px 30px 0 #3cc488,
    70px 20px 0 #7cc4f2,
    0 -70px 0 var(--brand-2),
    -80px -10px 0 #f2c35b,
    80px -20px 0 var(--brand-1);
  animation: hx-burst 1s var(--ease) both;
}
@keyframes hx-burst {
  from {
    opacity: 1;
    transform: scale(0.1);
  }
  70% {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: scale(1.2) translateY(14px);
  }
}

/* Passport bits */
.hx-m-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 6px;
  justify-items: center;
  padding: 10px;
}
.hx-m-grid .badge,
.hx-m-sheet .badge {
  --size: 44px;
}
.hx-m-grid .badge--ribbon .badge__art {
  margin-bottom: 6px;
}
.hx-m-sheetwrap {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #ece4ee;
}
.hx-m-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 14px 12px 16px;
  border-radius: 18px 18px 0 0;
  background: #fff;
  box-shadow: 0 -8px 24px rgb(40 10 50 / 0.15);
  text-align: center;
}
.hx-m-sheet--list {
  justify-items: stretch;
  text-align: left;
}
.hx-scene.is-on .hx-m-sheet {
  animation: hx-up 0.5s var(--ease) both;
}
@keyframes hx-up {
  from {
    transform: translateY(100%);
  }
}
.hx-m-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f3eef5;
  color: #5d5361;
  font-size: 9.5px;
  font-weight: 700;
}
.hx-m-ladder {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 8px;
}
.hx-m-ladder span {
  display: grid;
  justify-items: center;
  gap: 3px;
  font-size: 20px;
  filter: grayscale(1);
  opacity: 0.45;
}
.hx-m-ladder small {
  font-size: 9px;
  font-weight: 700;
}
.hx-m-ladder .is-done,
.hx-m-ladder .is-now {
  filter: none;
  opacity: 1;
}
.hx-scene.is-on .hx-m-ladder .is-now {
  animation: hx-pop 0.7s var(--ease-spring) both;
}
.hx-m-checks {
  gap: 6px;
}
.hx-m-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 10px;
  background: #fff;
  font-weight: 700;
}
.hx-m-check i {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #d8cfdb;
  color: transparent;
}
.hx-scene.is-on .hx-m-check i {
  animation: hx-tick 0.35s var(--ease) both;
  animation-delay: calc(0.4s + var(--i) * 0.45s);
}
@keyframes hx-tick {
  to {
    border-color: #13814f;
    background: #13814f;
    color: #fff;
  }
}
.hx-m-notice {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #e7f6ee;
  color: #0d5f3a;
  font-weight: 700;
}
.hx-scene.is-on .hx-m-notice {
  animation: hx-down 0.5s var(--ease) 0.4s both;
}
@keyframes hx-down {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
}
.hx-m-cert {
  margin: 14px;
  border-radius: 16px;
  border: 2px solid #f2c35b;
  background: #fbf5e6;
}
.hx-m-cert small:first-of-type {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #9a6b16;
}
.hx-m-seal {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 6px solid #f2c35b;
  background: #fff;
  font-size: 30px;
}
.hx-scene.is-on .hx-m-seal {
  animation: hx-flip 1s var(--ease-spring) both;
}

/* Ride together */
.hx-m-input {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #e5dce8;
  background: #fff;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
}
.hx-m-type {
  letter-spacing: 0.08em;
}
.hx-scene.is-on .hx-m-type {
  animation: hx-type 1.2s steps(10) both;
}
@keyframes hx-type {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
.hx-m-opt {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1.5px solid #e5dce8;
  background: #fff;
}
.hx-m-opt small {
  grid-column: 2;
  color: #8a7f8d;
  font-size: 9px;
}
.hx-m-opt.is-on {
  border-color: var(--brand-2);
  background: #fbf2fd;
}
.hx-m-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
}
.hx-m-row > span:nth-child(2) {
  display: grid;
  flex: 1;
}
.hx-m-row small {
  color: #8a7f8d;
  font-size: 9px;
}
.hx-m-row--dim {
  opacity: 0.6;
}
.hx-m-live {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 800;
}
.hx-m-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #13814f;
  animation: hx-blink 1.2s steps(2, start) infinite;
}
.hx-m-ride {
  position: relative;
  flex: 1;
  overflow: hidden;
}
.hx-m-map {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(120 110 130 / 0.08) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(rgb(120 110 130 / 0.08) 1px, transparent 1px) 0 0 / 22px 22px,
    #eef3ea;
}
.hx-m-road {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hx-m-road path {
  fill: none;
  stroke: #fff;
  stroke-width: 7;
  stroke-linecap: round;
}
.hx-m-rider {
  position: absolute;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.3);
  animation: hx-ride 9s linear infinite;
}
.hx-m-rider--1 {
  background: var(--brand-2);
}
.hx-m-rider--2 {
  background: var(--brand-1);
  animation-delay: -1.2s;
}
.hx-m-rider--3 {
  background: #2b8be0;
  animation-delay: -2.4s;
}
.hx-m-rider--4 {
  background: #13814f;
  animation-delay: -3.6s;
}
@keyframes hx-ride {
  0% {
    left: 20%;
    top: 100%;
  }
  25% {
    left: 45%;
    top: 75%;
  }
  50% {
    left: 58%;
    top: 50%;
  }
  75% {
    left: 45%;
    top: 22%;
  }
  100% {
    left: 80%;
    top: 0%;
  }
}
.hx-m-bubble {
  position: absolute;
  top: 18px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 14px 14px 14px 4px;
  background: #fff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.12);
}
.hx-scene.is-on .hx-m-bubble {
  animation: hx-pop 0.6s var(--ease-spring) 0.6s both;
}
.hx-m-sos {
  position: absolute;
  right: 10px;
  bottom: 18%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e5243b;
  color: #fff;
  font-weight: 900;
  font-size: 11px;
  box-shadow: 0 6px 16px rgb(229 36 59 / 0.45);
}
.hx-scene.is-on .hx-m-sos--hold {
  animation: hx-sos 1.6s ease-in-out 0.7s infinite;
}
@keyframes hx-sos {
  50% {
    box-shadow:
      0 0 0 10px rgb(229 36 59 / 0.25),
      0 6px 16px rgb(229 36 59 / 0.45);
  }
}
.hx-m-sosping {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: #e5243b;
}
.hx-m-sosping::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #e5243b;
  animation: hx-ripple 1.4s ease-out infinite;
}
.hx-m-alert {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 6px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 12px;
  background: #e5243b;
  color: #fff;
  box-shadow: 0 8px 18px rgb(229 36 59 / 0.4);
}
.hx-m-alert small {
  grid-column: 2;
  opacity: 0.9;
  font-size: 9px;
}
.hx-m-alert--ok {
  background: #13814f;
  box-shadow: 0 8px 18px rgb(19 129 79 / 0.35);
}
.hx-scene.is-on .hx-m-alert {
  animation: hx-down 0.5s var(--ease) 0.3s both;
}
.hx-m-code {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.hx-m-qr {
  width: 70px;
  height: 70px;
  border-radius: 6px;
  background: repeating-conic-gradient(#1d1420 0 25%, #fff 0 50%) 0 0 / 10px 10px;
  border: 5px solid #fff;
  outline: 1px solid #e5dce8;
}

/* Ideas and Videos */
.hx-m-tabs {
  display: flex;
  gap: 4px;
  padding: 2px 10px 4px;
  font-size: 9.5px;
  font-weight: 700;
  color: #8a7f8d;
}
.hx-m-tabs span {
  padding: 4px 7px;
  border-radius: 999px;
}
.hx-m-tabs .is-on {
  background: #1d1420;
  color: #fff;
}
.hx-m-reel__rail {
  position: absolute;
  right: 8px;
  bottom: 22%;
  display: grid;
  gap: 12px;
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.5));
}
.hx-m-reel__who {
  position: absolute;
  left: 10px;
  bottom: 12%;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 6px;
  align-items: center;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.5);
}
.hx-m-reel__who small {
  grid-column: 2;
}
.hx-m-shield,
.hx-m-play {
  position: absolute;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
}
.hx-m-shield {
  right: 8px;
  background: linear-gradient(135deg, #2bb673, #13915a);
}
.hx-scene.is-on .hx-m-shield {
  animation: hx-pop 0.7s var(--ease-spring) 0.5s both;
}
.hx-m-play {
  left: 8px;
  background: rgb(0 0 0 / 0.5);
}
.hx-m-card__photo .hx-m-chip {
  bottom: auto;
  top: 8px;
}
.hx-m-idea {
  display: grid;
  align-content: center;
  gap: 12px;
  flex: 1;
  padding: 18px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--brand-4) 30%, #0d060f), #120816);
  color: #fff;
}
.hx-m-idea strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.15;
}
.hx-m-idea .hx-m-tag {
  justify-self: start;
  background: rgb(242 195 91 / 0.2);
  color: #f2c35b;
}

/* Small phones: a slightly smaller phone. */
@media (max-width: 360px) {
  .hx-phone {
    width: 210px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hx-hero__orb,
  .hx-scene,
  .hx-scene *,
  .hx-finger,
  .hx-m-rider,
  .hx-m-live i,
  .hx-m-rec i {
    animation: none !important;
    transition: none !important;
  }
  .hx-node,
  .hx-split,
  .hx-flow::before {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Feedback & suggestions (views/feedback.js) ---------- */
.fb {
  padding-bottom: 32px;
}
.fb-hero {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 24px 8px 16px;
  text-align: center;
}
.fb-hero__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.fb-hero__title {
  margin: 4px 0 0;
  font-size: clamp(30px, 7vw, 44px);
  line-height: 1.05;
}
.fb-hero__title em {
  background: var(--brand-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fb-hero__lead {
  max-width: 32em;
  margin: 0;
  color: var(--text-2);
}
.fb-form {
  display: grid;
  gap: 14px;
  padding: 18px;
}
.fb-kinds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}
.fb-kinds legend {
  margin-bottom: 8px;
  padding: 0;
}
.fb-kind {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-l);
  border: 1.5px solid var(--line);
  background: var(--surface-2);
  cursor: pointer;
}
.fb-kind input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.fb-kind:has(input:checked) {
  border-color: var(--brand-2);
  background: color-mix(in srgb, var(--brand-2) 9%, var(--surface));
}
.fb-kind:has(input:focus-visible) {
  outline: 2px solid var(--brand-2);
  outline-offset: 2px;
}
.fb-kind__emoji {
  font-size: 22px;
}
.fb-kind__text {
  display: grid;
  gap: 1px;
}
.fb-kind__text small {
  color: var(--text-2);
  font-size: 12.5px;
}
.fb-text {
  resize: vertical;
  min-height: 120px;
}
.fb-count {
  justify-self: end;
}
.fb-shot {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px dashed var(--line-2);
  color: var(--text-2);
  font-size: 14px;
  cursor: pointer;
}
.fb-shot input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.fb-mine {
  margin-top: 28px;
}
.fb-mine__title {
  margin: 0 0 12px;
  font-size: 18px;
}
.fb-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fb-item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: var(--surface);
}
.fb-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.fb-item__kind {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
}
.fb-item__msg {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.fb-item__meta {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-3);
}
.fb-status {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 800;
}
.fb-status.is-planned {
  background: color-mix(in srgb, var(--brand-2) 15%, transparent);
  color: var(--accent);
}
.fb-status.is-done {
  background: var(--ok-soft);
  color: var(--ok);
}
.fb-status.is-declined {
  color: var(--text-3);
}
.fb-reply {
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface-2);
}
.fb-reply strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.fb-reply p {
  margin: 4px 0 0;
  white-space: pre-wrap;
}
.fb-empty {
  padding: 14px;
  border-radius: var(--radius-l);
  border: 1px dashed var(--line-2);
  color: var(--text-2);
}
