/* Appily Twelve — Help Switchboard */
.page-help-switchboard {
  --hs-ink: #17140f;
  --hs-forest: #12382c;
  --hs-leaf: #2f6b4f;
  --hs-clay: #b85a32;
  --hs-ochre: #d9a441;
  --hs-paper: #f4efe4;
  --hs-cream: #fbf7ef;
  --hs-display: 'Syne', Georgia, sans-serif;
  --hs-body: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  --hs-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hs-line: rgba(23, 20, 15, 0.12);
}

.page-help-switchboard .page-main {
  background:
    radial-gradient(700px 280px at 100% 0%, rgba(184, 90, 50, 0.1), transparent 55%),
    linear-gradient(180deg, var(--hs-cream), var(--hs-paper) 40%, #efe7d8 100%);
  font-family: var(--hs-body);
  color: var(--hs-ink);
  overflow-x: clip;
}

.page-help-switchboard .hs-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--hs-clay);
}

/* Hero */
.page-help-switchboard .hs-hero {
  position: relative;
  padding: clamp(2.75rem, 7vw, 4.5rem) 0 clamp(2.25rem, 5vw, 3.25rem);
  color: #fbf7ef;
  overflow: hidden;
}

.page-help-switchboard .hs-hero-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, #12382c 0%, #1b4a3a 48%, #2a241c 100%),
    repeating-linear-gradient(
      -22deg,
      transparent 0 14px,
      rgba(255, 255, 255, 0.02) 14px 15px
    );
}

.page-help-switchboard .hs-hero-wash::after {
  content: 'HELP';
  position: absolute;
  right: -2%;
  bottom: -18%;
  font-family: var(--hs-display);
  font-size: clamp(6rem, 18vw, 14rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.8;
  color: rgba(251, 247, 239, 0.05);
  pointer-events: none;
}

.page-help-switchboard .hs-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  align-items: end;
  animation: hsRise 0.8s var(--hs-ease) both;
}

.page-help-switchboard .hs-hero-copy h1 {
  margin: 0 0 0.85rem;
  font-family: var(--hs-display);
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
  max-width: 12ch;
  color: #fff;
}

.page-help-switchboard .hs-hero .hs-kicker {
  color: var(--hs-ochre);
}

.page-help-switchboard .hs-lede {
  margin: 0;
  max-width: 38ch;
  line-height: 1.55;
  color: rgba(251, 247, 239, 0.82);
  font-size: 1.02rem;
}

.page-help-switchboard .hs-hero-dial {
  display: grid;
  gap: 0.45rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(251, 247, 239, 0.22);
  background: rgba(251, 247, 239, 0.06);
  backdrop-filter: blur(6px);
}

.page-help-switchboard .hs-dial-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--hs-ochre);
}

.page-help-switchboard .hs-hero-dial strong {
  font-family: var(--hs-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.page-help-switchboard .hs-hero-dial a {
  color: #fbf7ef;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(251, 247, 239, 0.35);
  width: fit-content;
}

.page-help-switchboard .hs-hero-dial a:hover {
  color: var(--hs-ochre);
  border-color: var(--hs-ochre);
}

/* Topic switchboard */
.page-help-switchboard .hs-board {
  margin-top: -1.25rem;
  position: relative;
  z-index: 2;
  padding-bottom: 0.5rem;
}

.page-help-switchboard .hs-board-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.page-help-switchboard .hs-board-tile {
  display: grid;
  gap: 0.35rem;
  padding: 1.15rem 1.1rem 1.2rem;
  text-decoration: none;
  color: var(--hs-ink);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--hs-line);
  border-radius: 3px;
  box-shadow: 0 10px 28px rgba(23, 20, 15, 0.06);
  transition: transform 0.35s var(--hs-ease), border-color 0.2s ease, background 0.2s ease;
  animation: hsRise 0.65s var(--hs-ease) both;
  animation-delay: calc(0.06s * var(--i, 0));
}

.page-help-switchboard .hs-board-tile:hover {
  transform: translateY(-6px);
  border-color: var(--hs-forest);
  background: #fff;
}

.page-help-switchboard .hs-board-num {
  font-family: var(--hs-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--hs-clay);
}

.page-help-switchboard .hs-board-label {
  font-family: var(--hs-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--hs-forest);
}

.page-help-switchboard .hs-board-blurb {
  font-size: 0.88rem;
  color: rgba(23, 20, 15, 0.6);
  line-height: 1.35;
}

.page-help-switchboard .hs-board-go {
  margin-top: 0.35rem;
  font-weight: 800;
  color: var(--hs-forest);
  transition: transform 0.3s var(--hs-ease);
}

.page-help-switchboard .hs-board-tile:hover .hs-board-go {
  transform: translateY(3px);
}

/* FAQ ledger */
.page-help-switchboard .hs-ledger {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.page-help-switchboard .hs-ledger-wrap {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.75rem);
}

.page-help-switchboard .hs-topic {
  scroll-margin-top: 110px;
  animation: hsRise 0.7s var(--hs-ease) both;
  animation-delay: calc(0.05s * var(--i, 0));
}

.page-help-switchboard .hs-topic-head {
  display: flex;
  gap: 1rem;
  align-items: start;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid rgba(18, 56, 44, 0.15);
}

.page-help-switchboard .hs-topic-num {
  font-family: var(--hs-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--hs-clay);
  line-height: 1;
}

.page-help-switchboard .hs-topic-head h2 {
  margin: 0 0 0.2rem;
  font-family: var(--hs-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--hs-forest);
}

.page-help-switchboard .hs-topic-head p {
  margin: 0;
  color: rgba(23, 20, 15, 0.58);
  font-size: 0.92rem;
}

.page-help-switchboard .hs-faq-stack {
  display: grid;
  gap: 0.45rem;
}

.page-help-switchboard .hs-faq {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--hs-line);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.page-help-switchboard .hs-faq[open] {
  background: #fff;
  border-color: rgba(18, 56, 44, 0.28);
}

.page-help-switchboard .hs-faq summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  font-family: var(--hs-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--hs-ink);
}

.page-help-switchboard .hs-faq summary::-webkit-details-marker {
  display: none;
}

.page-help-switchboard .hs-faq-q {
  line-height: 1.3;
}

.page-help-switchboard .hs-faq-icon {
  width: 1.5rem;
  height: 1.5rem;
  border: 1.5px solid var(--hs-forest);
  border-radius: 2px;
  position: relative;
  flex: 0 0 auto;
  transition: transform 0.3s var(--hs-ease), background 0.2s ease;
}

.page-help-switchboard .hs-faq-icon::before,
.page-help-switchboard .hs-faq-icon::after {
  content: '';
  position: absolute;
  background: var(--hs-forest);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.page-help-switchboard .hs-faq-icon::before {
  width: 10px;
  height: 2px;
}

.page-help-switchboard .hs-faq-icon::after {
  width: 2px;
  height: 10px;
  transition: opacity 0.2s ease, transform 0.3s var(--hs-ease);
}

.page-help-switchboard .hs-faq[open] .hs-faq-icon {
  background: var(--hs-forest);
  transform: rotate(90deg);
}

.page-help-switchboard .hs-faq[open] .hs-faq-icon::before,
.page-help-switchboard .hs-faq[open] .hs-faq-icon::after {
  background: #fbf7ef;
}

.page-help-switchboard .hs-faq[open] .hs-faq-icon::after {
  opacity: 0;
}

.page-help-switchboard .hs-faq-a {
  padding: 0 1.1rem 1.15rem;
  color: rgba(23, 20, 15, 0.78);
  line-height: 1.6;
  border-top: 1px dashed var(--hs-line);
  animation: hsReveal 0.35s var(--hs-ease) both;
}

.page-help-switchboard .hs-faq-a p {
  margin: 0.85rem 0 0;
}

/* Actions */
.page-help-switchboard .hs-actions {
  padding: 0 0 clamp(3.5rem, 8vw, 5rem);
}

.page-help-switchboard .hs-actions-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  align-items: start;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--hs-forest);
  color: #fbf7ef;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.page-help-switchboard .hs-actions-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 20px,
    rgba(255, 255, 255, 0.025) 20px 21px
  );
  pointer-events: none;
}

.page-help-switchboard .hs-actions-copy,
.page-help-switchboard .hs-action-links {
  position: relative;
  z-index: 1;
}

.page-help-switchboard .hs-actions-copy .hs-kicker {
  color: var(--hs-ochre);
}

.page-help-switchboard .hs-actions-copy h2 {
  margin: 0 0 0.65rem;
  font-family: var(--hs-display);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #fff;
}

.page-help-switchboard .hs-actions-copy p {
  margin: 0;
  color: rgba(251, 247, 239, 0.8);
  line-height: 1.55;
  max-width: 34ch;
}

.page-help-switchboard .hs-action-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.page-help-switchboard .hs-action {
  display: grid;
  gap: 0.2rem;
  padding: 0.95rem 1rem;
  text-decoration: none;
  color: #fbf7ef;
  border: 1px solid rgba(251, 247, 239, 0.2);
  background: rgba(251, 247, 239, 0.05);
  border-radius: 3px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.3s var(--hs-ease);
}

.page-help-switchboard .hs-action:hover {
  background: rgba(251, 247, 239, 0.1);
  border-color: var(--hs-ochre);
  transform: translateY(-3px);
}

.page-help-switchboard .hs-action span {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--hs-ochre);
  letter-spacing: 0.08em;
}

.page-help-switchboard .hs-action strong {
  font-family: var(--hs-display);
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.page-help-switchboard .hs-action em {
  font-style: normal;
  font-size: 0.82rem;
  color: rgba(251, 247, 239, 0.65);
}

@keyframes hsRise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hsReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 960px) {
  .page-help-switchboard .hs-hero-grid,
  .page-help-switchboard .hs-actions-grid {
    grid-template-columns: 1fr;
  }

  .page-help-switchboard .hs-board-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .page-help-switchboard .hs-board-grid,
  .page-help-switchboard .hs-action-links {
    grid-template-columns: 1fr;
  }

  .page-help-switchboard .hs-hero-copy h1 {
    max-width: none;
  }

  .page-help-switchboard .hs-topic {
    scroll-margin-top: 90px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-help-switchboard .hs-hero-grid,
  .page-help-switchboard .hs-board-tile,
  .page-help-switchboard .hs-topic,
  .page-help-switchboard .hs-faq-a {
    animation: none !important;
  }
}
