.help-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(250px, 1fr);
  gap: 32px;
  padding: 32px;
  margin-bottom: 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(125deg, var(--accent-soft), var(--surface));
}
.help-hero .tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  letter-spacing: 1px;
}
.help-hero h1 {
  font-size: clamp(26px, 3vw, 40px);
  margin: 14px 0 9px;
}
.help-hero p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.help-search {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 0 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.help-search:focus-within {
  border-color: var(--accent);
  outline: 2px solid var(--accent-soft);
}
.help-search > .icon {
  color: var(--accent);
  flex-shrink: 0;
}
.help-search input {
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0;
  background: transparent;
  border: 0;
  outline: 0;
  box-shadow: none;
  font-size: 14px;
}
.help-search input:focus {
  outline: 0;
  box-shadow: none;
}
.help-contact-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.help-contact-card > .icon {
  color: var(--accent);
  width: 26px;
  height: 26px;
}
.help-contact-card h2 {
  font-size: 20px;
  margin: 12px 0 6px;
}
.help-contact-card .button {
  margin: 18px 0 12px;
}
.help-contact-card small {
  display: block;
  color: var(--muted);
  line-height: 1.6;
  font-size: 11px;
}
.help-layout {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}
.help-topics {
  display: grid;
  gap: 6px;
}
.help-topic {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  text-align: left;
  color: var(--muted);
  font-size: 13px;
}
.help-topic .icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
.help-topic:hover,
.help-topic.active {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--border);
}
.help-topic:focus-visible,
.help-faq summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.help-studio-link {
  margin: 15px 14px;
}
.help-content {
  min-width: 0;
}
.help-content .section-heading h2 {
  font-size: 20px;
}
.help-count {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.help-faq {
  margin-bottom: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.help-faq[open] {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
}
.help-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  font-family: var(--font-pixel, 'Outfit', sans-serif);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.help-faq summary::-webkit-details-marker {
  display: none;
}
.help-faq summary .icon {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  color: var(--muted);
  transition: transform 0.2s ease;
}
.help-faq[open] summary .icon {
  transform: rotate(180deg);
  color: var(--accent);
}
.help-answer {
  padding: 0 20px 20px;
}
.help-answer p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
  margin-bottom: 16px;
}
.help-answer .text-link {
  margin-right: 20px;
  margin-bottom: 4px;
}
.help-tip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.help-tip .icon {
  color: var(--accent);
  flex-shrink: 0;
}
.support-modal {
  max-width: 660px;
}
#support-form fieldset {
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
}
#support-form input,
#support-form select,
#support-form textarea {
  width: 100%;
}
#support-form textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.7;
}
#support-form fieldset:disabled {
  opacity: 0.65;
}
.support-success {
  text-align: center;
  padding: 16px 6px;
}
.support-success > .icon {
  width: 40px;
  height: 40px;
  color: var(--green);
  margin-bottom: 14px;
}
.support-success h3 {
  font-size: 24px;
}
.support-success p {
  color: var(--muted);
  line-height: 1.8;
  margin: 12px 0 24px;
  overflow-wrap: anywhere;
}
@media (max-width: 1000px) {
  .help-hero {
    gap: 20px;
    padding: 24px;
  }
  .help-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .help-topics {
    display: flex;
    flex-wrap: wrap;
  }
  .help-topic {
    padding: 10px 12px;
    font-size: 12px;
  }
  .help-studio-link {
    margin: 10px 12px;
  }
}
@media (max-width: 680px) {
  .help-hero {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 24px;
    margin-bottom: 20px;
  }
  .help-contact-card {
    padding: 18px;
  }
  .help-hero p {
    font-size: 13px;
  }
  .help-content .section-heading {
    flex-wrap: wrap;
  }
  .help-faq summary {
    padding: 16px;
    font-size: 15px;
  }
  .help-answer {
    padding: 0 16px 16px;
  }
  .help-search input,
  #support-form input,
  #support-form select,
  #support-form textarea {
    font-size: 16px;
  }
  .support-modal .modal-actions {
    flex-wrap: wrap;
  }
}

/* ---------- Motion ---------- */
.help-hero {
  --px: 0;
  --py: 0;
  position: relative;
  overflow: hidden;
}
.help-hero::before {
  content: '';
  position: absolute;
  right: -12%;
  top: -40%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 28%, transparent), transparent 65%);
  translate: calc(var(--px) * -18px) calc(var(--py) * -12px);
  transition: translate 1s var(--ease-out-expo);
  animation: help-orb 14s ease-in-out infinite alternate;
  pointer-events: none;
}
.help-hero > :not(.scene-fx) {
  position: relative;
  z-index: 2;
}
.help-hero > div {
  translate: calc(var(--px) * 6px) calc(var(--py) * 4px);
  transition: translate 1s var(--ease-out-expo);
}
.help-hero .tag > .icon {
  animation: twinkle 2.6s ease-in-out infinite;
}
.route-enter .help-hero .tag {
  animation: eyebrow-in 0.9s calc(var(--enter-base) + 100ms) var(--ease-back) backwards;
}
.route-enter .help-hero > div > p {
  animation: rise-in 0.9s calc(var(--enter-base) + 420ms) var(--ease-out-expo) backwards;
}
.route-enter .help-search {
  animation: help-search-in 1s calc(var(--enter-base) + 520ms) var(--ease-out-expo) backwards;
}
.route-enter .help-contact-card {
  animation: rail-in 0.9s calc(var(--enter-base) + 260ms) var(--ease-out-expo) backwards;
}
.route-enter .help-contact-card > .icon {
  animation: icon-pop 0.9s calc(var(--enter-base) + 520ms) var(--ease-spring) backwards,
    help-bob 3.2s calc(var(--enter-base) + 1.4s) ease-in-out infinite;
}
.help-contact-card > .icon {
  animation: help-bob 3.2s ease-in-out infinite;
}
.help-contact-card {
  position: relative;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.help-contact-card.is-tilting {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--accent) 60%, transparent);
}

.help-search {
  transition: border-color 0.3s ease, box-shadow 0.4s ease, transform 0.4s var(--ease-out-expo);
}
.help-search:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -14px color-mix(in srgb, var(--accent) 70%, transparent);
}
.help-search > .icon {
  transition: transform 0.5s var(--ease-spring);
}
.help-search:focus-within > .icon {
  transform: scale(1.18) rotate(-12deg);
}

.route-enter .help-topics > :not(.glider) {
  animation: chrome-slide 0.8s calc(var(--enter-base) + 300ms + var(--i, 0) * 55ms) var(--ease-out-expo) backwards;
}
.help-topics.has-glider {
  position: relative;
}
.help-topics.has-glider .help-topic.active {
  background: transparent;
  border-color: transparent;
}
.help-topic .icon {
  transition: transform 0.45s var(--ease-spring);
}
.help-topic:hover .icon,
.help-topic.active .icon {
  transform: scale(1.15) rotate(-8deg);
}
.help-studio-link .icon:last-child {
  transition: transform 0.35s var(--ease-out-expo);
}
.help-studio-link:hover .icon:last-child {
  transform: translateX(4px);
}

#help-results > * {
  animation: rise-in 0.6s calc(var(--i, 0) * 45ms) var(--ease-out-expo) backwards;
}
.route-enter #help-results > * {
  animation-delay: calc(var(--enter-base) + 380ms + var(--i, 0) * 55ms);
}
.help-faq {
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.35s ease, transform 0.35s var(--ease-out-expo);
}
.help-faq::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 40%, #ff8fd8));
  transform: scaleY(0);
  transition: transform 0.45s var(--ease-out-expo);
}
.help-faq:hover {
  transform: translateX(4px);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
}
.help-faq:hover::before,
.help-faq[open]::before {
  transform: scaleY(1);
}
.help-faq[open] {
  box-shadow: 0 14px 34px -22px color-mix(in srgb, var(--accent) 80%, transparent);
}
.help-faq summary .icon {
  transition: transform 0.45s var(--ease-spring), color 0.3s ease;
}
.help-faq[open] .help-answer {
  animation: help-answer-in 0.5s var(--ease-out-expo);
}
.help-answer .text-link .icon {
  transition: transform 0.35s var(--ease-out-expo);
}
.help-answer .text-link:hover .icon {
  transform: translateX(4px);
}
#help-results .empty-state > .icon {
  animation: help-bob 3s ease-in-out infinite;
}

.help-tip > .icon {
  animation: help-shield 3.6s ease-in-out infinite;
}
.route-enter .help-tip {
  animation: rise-in 0.9s calc(var(--enter-base) + 700ms) var(--ease-out-expo) backwards;
}

.support-success > .icon {
  animation: icon-pop 0.9s var(--ease-spring) backwards, help-success-glow 2.4s 0.6s ease-in-out infinite;
}
.support-success h3,
.support-success p,
.support-success .button {
  animation: rise-in 0.7s calc(0.2s + var(--i, 0) * 90ms) var(--ease-out-expo) backwards;
}
.support-success p {
  --i: 1;
}
.support-success .button {
  --i: 2;
}

@keyframes help-orb {
  to {
    transform: translate(-18%, 22%) scale(1.25);
  }
}
@keyframes help-search-in {
  from {
    opacity: 0;
    transform: translateY(18px) scaleX(0.92);
    filter: blur(6px);
  }
}
@keyframes help-bob {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-5px) rotate(-6deg);
  }
}
@keyframes help-answer-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
    filter: blur(4px);
  }
}
@keyframes help-shield {
  0%,
  100% {
    filter: drop-shadow(0 0 0 transparent);
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 6px var(--accent));
    transform: scale(1.12);
  }
}
@keyframes help-success-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 0 transparent);
  }
  50% {
    filter: drop-shadow(0 0 12px var(--green));
  }
}
