/* Appily Fortynine — Signal Desk help center (unique layout + kinetic UI) */
@keyframes a49-help-orbit {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.04); }
}
@keyframes a49-help-pulse {
  0% { box-shadow: 0 0 0 0 rgba(200, 245, 66, 0.55); }
  70% { box-shadow: 0 0 0 12px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@keyframes a49-help-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes a49-help-scan {
  0% { transform: translateX(-40%); opacity: .2; }
  50% { opacity: .7; }
  100% { transform: translateX(140%); opacity: .2; }
}

.page-help .page-main { background: transparent; }

.a49-help {
  --help-deep: #0B2B33;
  --help-accent: #C8F542;
  --help-coral: #FF5C39;
  --help-mist: #F4F8F7;
  --help-panel: #ffffff;
  --help-line: #D5E1E3;
  --help-muted: #5E757A;
  padding-bottom: 0;
  overflow: clip;
}

/* Hero */
.a49-help-hero {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 2.5rem;
  background:
    linear-gradient(125deg, #0B2B33 0%, #134E4A 48%, #1A3F46 100%);
  color: #F4F8F7;
  isolation: isolate;
}
.a49-help-hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 64px;
  background: var(--help-mist);
  clip-path: polygon(0 55%, 100% 0, 100% 100%, 0 100%);
  z-index: 1;
}
.a49-help-hero-orb {
  position: absolute; width: 260px; height: 260px; border-radius: 42% 58% 50% 50%;
  background: radial-gradient(circle, rgba(200,245,66,.35), transparent 68%);
  top: -40px; right: 8%; z-index: 0; animation: a49-help-orbit 8s ease-in-out infinite;
  pointer-events: none;
}
.a49-help-hero-orb-2 {
  width: 180px; height: 180px; top: auto; bottom: 40px; left: 6%; right: auto;
  background: radial-gradient(circle, rgba(255,92,57,.28), transparent 70%);
  animation-duration: 10s; animation-direction: reverse;
}
.a49-help-hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.35fr .85fr; gap: 28px; align-items: stretch;
}
.a49-help-kicker {
  margin: 0 0 12px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--help-accent); font-weight: 800;
}
.a49-help-hero-copy h1 {
  margin: 0 0 14px; font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
  font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.05; letter-spacing: -0.03em;
  max-width: 16ch;
}
.a49-help-lede {
  margin: 0 0 22px; color: rgba(244,248,247,.78); max-width: 46ch; font-size: 1.02rem;
}
.a49-help-search {
  position: relative; display: block; margin-bottom: 14px;
}
.a49-help-search input {
  width: 100%; border: 0; border-radius: 18px; padding: 16px 18px;
  background: rgba(255,255,255,.96); color: var(--help-deep);
  box-shadow: 0 18px 40px rgba(0,0,0,.18); outline: none;
  font-weight: 600;
}
.a49-help-search input:focus {
  box-shadow: 0 18px 40px rgba(0,0,0,.18), 0 0 0 3px rgba(200,245,66,.55);
}
.a49-help-search-glow {
  position: absolute; inset: 0; border-radius: 18px; overflow: hidden; pointer-events: none;
}
.a49-help-search-glow::before {
  content: ""; position: absolute; top: 0; bottom: 0; width: 35%;
  background: linear-gradient(90deg, transparent, rgba(200,245,66,.35), transparent);
  animation: a49-help-scan 3.8s ease-in-out infinite;
}
.a49-help-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.a49-help-chip {
  border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08);
  color: #fff; border-radius: 999px; padding: 7px 12px; font-size: .78rem; font-weight: 700;
  cursor: pointer; transition: .2s ease;
}
.a49-help-chip:hover { background: var(--help-accent); color: var(--help-deep); border-color: var(--help-accent); }

.a49-help-console {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 28px; padding: 22px;
  backdrop-filter: blur(10px);
  display: flex; flex-direction: column; gap: 14px;
  animation: a49-help-rise .55s ease both;
}
.a49-help-console-head {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800;
  color: var(--help-accent);
}
.a49-help-pulse {
  width: 10px; height: 10px; border-radius: 50%; background: var(--help-accent);
  animation: a49-help-pulse 1.8s ease-out infinite;
}
.a49-help-console dl { margin: 0; display: grid; gap: 12px; }
.a49-help-console dt {
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(244,248,247,.5); margin-bottom: 2px;
}
.a49-help-console dd { margin: 0; font-weight: 600; }
.a49-help-console a { color: #fff; text-decoration: underline; text-decoration-color: rgba(200,245,66,.5); }
.a49-help-console-cta { margin-top: auto; width: 100%; border-radius: 14px; }

/* Bento quick actions */
.a49-help-bento {
  position: relative; z-index: 3; margin-top: -8px; margin-bottom: 28px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; grid-auto-rows: minmax(120px, auto); gap: 14px;
}
.a49-help-bento-card {
  background: var(--help-panel); border: 1px solid var(--help-line); border-radius: 22px;
  padding: 18px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  box-shadow: 0 12px 28px rgba(11,43,51,.07);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, border-color .25s ease;
  animation: a49-help-rise .5s ease both;
}
.a49-help-bento-card:nth-child(2) { animation-delay: .05s; }
.a49-help-bento-card:nth-child(3) { animation-delay: .1s; }
.a49-help-bento-card:nth-child(4) { animation-delay: .15s; }
.a49-help-bento-card:nth-child(5) { animation-delay: .2s; }
.a49-help-bento-card:hover {
  transform: translateY(-5px) rotate(-0.4deg);
  border-color: rgba(200,245,66,.8);
  box-shadow: 0 18px 36px rgba(11,43,51,.12), 0 0 0 3px rgba(200,245,66,.18);
}
.a49-help-bento-wide { grid-row: span 2; background:
  linear-gradient(160deg, #FFFFFF 0%, #EAF8F0 100%);
}
.a49-help-bento-accent {
  background: linear-gradient(145deg, var(--help-coral), #FF8A4C); color: #fff; border-color: transparent;
}
.a49-help-bento-accent .a49-help-bento-code { color: rgba(255,255,255,.8); }
.a49-help-bento-code {
  font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
  font-size: .78rem; font-weight: 800; color: var(--help-muted); letter-spacing: .08em;
}
.a49-help-bento-card strong {
  font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
  font-size: 1.15rem; letter-spacing: -0.02em;
}
.a49-help-bento-card span:last-child { color: var(--help-muted); font-size: .88rem; }
.a49-help-bento-accent span:last-child { color: rgba(255,255,255,.85); }

/* Workspace: orbit + cascade */
.a49-help-workspace {
  display: grid; grid-template-columns: 220px 1fr; gap: 28px;
  padding-bottom: 48px; align-items: start;
}
.a49-help-orbit {
  position: sticky; top: 96px;
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px; border-radius: 24px;
  background: rgba(255,255,255,.75); border: 1px solid var(--help-line);
  backdrop-filter: blur(8px);
}
.a49-help-orbit-item {
  display: grid; grid-template-columns: 42px 1fr; gap: 10px; align-items: center;
  border: 0; background: transparent; text-align: left; padding: 10px; border-radius: 16px;
  cursor: pointer; color: var(--help-muted); font-weight: 700; transition: .2s ease;
}
.a49-help-orbit-item:hover { background: rgba(200,245,66,.18); color: var(--help-deep); }
.a49-help-orbit-item.is-active {
  background: var(--help-deep); color: var(--help-accent);
  box-shadow: 0 10px 22px rgba(11,43,51,.18);
}
.a49-help-orbit-code {
  width: 42px; height: 42px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(11,43,51,.06); font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
  font-size: .78rem; font-weight: 800;
}
.a49-help-orbit-item.is-active .a49-help-orbit-code {
  background: rgba(200,245,66,.18); color: var(--help-accent);
}

.a49-help-cascade { display: grid; gap: 22px; }
.a49-help-topic {
  background: var(--help-panel);
  border: 1px solid var(--help-line);
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 14px 30px rgba(11,43,51,.06);
  transform: rotate(calc((var(--topic-i, 0) - 1.5) * 0.25deg));
  animation: a49-help-rise .55s ease both;
  animation-delay: calc(var(--topic-i, 0) * 0.05s);
}
.a49-help-topic:nth-child(even) {
  margin-left: clamp(0px, 3vw, 36px);
}
.a49-help-topic:nth-child(odd) {
  margin-right: clamp(0px, 2vw, 24px);
}
.a49-help-topic-head {
  display: flex; justify-content: space-between; gap: 16px; align-items: end;
  margin-bottom: 14px; padding-bottom: 14px;
  border-bottom: 1px dashed var(--help-line);
}
.a49-help-topic-code {
  margin: 0 0 6px; color: var(--help-coral); font-size: .75rem; font-weight: 800; letter-spacing: .12em;
}
.a49-help-topic-head h2 {
  margin: 0 0 4px; font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
  font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: -0.02em; color: var(--help-deep);
}
.a49-help-topic-head p { margin: 0; color: var(--help-muted); }
.a49-help-topic-count {
  flex: 0 0 auto; border-radius: 999px; padding: 8px 12px;
  background: rgba(200,245,66,.22); color: var(--help-deep);
  font-size: .75rem; font-weight: 800; letter-spacing: .04em;
}

.a49-help-faq-list { display: grid; gap: 10px; }
.a49-help-faq {
  border: 1px solid var(--help-line); border-radius: 18px; background: #FBFEFD;
  overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  animation: a49-help-rise .45s ease both;
  animation-delay: calc(var(--faq-i, 0) * 0.04s);
}
.a49-help-faq[open] {
  border-color: rgba(11,43,51,.35);
  box-shadow: 0 12px 28px rgba(11,43,51,.08);
  transform: translateX(4px);
  background: #fff;
}
.a49-help-faq summary {
  list-style: none; cursor: pointer; display: grid;
  grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 14px 16px; font-weight: 700;
}
.a49-help-faq summary::-webkit-details-marker { display: none; }
.a49-help-faq-num {
  font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
  font-size: .78rem; color: var(--help-muted); letter-spacing: .04em;
}
.a49-help-faq-q { color: var(--help-deep); }
.a49-help-faq-plus {
  width: 28px; height: 28px; border-radius: 10px; position: relative;
  background: rgba(11,43,51,.06);
}
.a49-help-faq-plus::before,
.a49-help-faq-plus::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  background: var(--help-deep); border-radius: 2px; transition: .2s ease;
}
.a49-help-faq-plus::before { width: 12px; height: 2px; transform: translate(-50%, -50%); }
.a49-help-faq-plus::after { width: 2px; height: 12px; transform: translate(-50%, -50%); }
.a49-help-faq[open] .a49-help-faq-plus { background: var(--help-accent); }
.a49-help-faq[open] .a49-help-faq-plus::after { transform: translate(-50%, -50%) scaleY(0); }
.a49-help-faq-a {
  padding: 0 16px 16px 16px; color: var(--help-muted); line-height: 1.65;
  border-top: 1px dashed transparent;
}
.a49-help-faq[open] .a49-help-faq-a { border-top-color: var(--help-line); padding-top: 12px; }
.a49-help-faq-a a { color: var(--help-coral); font-weight: 700; text-decoration: underline; }
.a49-help-empty {
  text-align: center; padding: 36px 18px; color: var(--help-muted);
  background: #fff; border: 1px dashed var(--help-line); border-radius: 22px;
}

/* Bottom band */
.a49-help-band {
  background: var(--help-deep); color: #F4F8F7; padding: 42px 0;
  position: relative; overflow: hidden;
}
.a49-help-band::before {
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,245,66,.18), transparent 65%);
  right: -60px; top: -80px;
}
.a49-help-band-inner {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; gap: 24px; align-items: center; flex-wrap: wrap;
}
.a49-help-band h2 {
  margin: 0 0 8px; font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -0.02em;
}
.a49-help-band p { margin: 0; color: rgba(244,248,247,.72); max-width: 42ch; }
.a49-help-band-links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.a49-help-band-links a:not(.gg-btn) {
  color: rgba(244,248,247,.8); border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px; padding: 10px 14px; font-weight: 700; font-size: .85rem;
  transition: .2s ease;
}
.a49-help-band-links a:not(.gg-btn):hover {
  background: var(--help-accent); color: var(--help-deep); border-color: var(--help-accent);
}

@media (max-width: 980px) {
  .a49-help-hero-grid { grid-template-columns: 1fr; }
  .a49-help-bento { grid-template-columns: 1fr 1fr; }
  .a49-help-bento-wide { grid-row: auto; }
  .a49-help-workspace { grid-template-columns: 1fr; }
  .a49-help-orbit {
    position: static; flex-direction: row; overflow-x: auto; gap: 8px;
    padding: 10px; scrollbar-width: thin;
  }
  .a49-help-orbit-item { min-width: max-content; grid-template-columns: auto auto; }
  .a49-help-topic:nth-child(even),
  .a49-help-topic:nth-child(odd) { margin-left: 0; margin-right: 0; transform: none; }
}
@media (max-width: 640px) {
  .a49-help-bento { grid-template-columns: 1fr; }
  .a49-help-faq summary { grid-template-columns: 1fr auto; }
  .a49-help-faq-num { grid-column: 1 / -1; }
  .a49-help-band-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .a49-help * { animation: none !important; transition: none !important; }
}
