/* ==========================================================================
   Flexable — Help page

   Reuses the V3 tokens, .flxb-wrap, nav and footer from base.css, so this
   file only carries the Help layout: hero, the two contact cards and the
   closing note.

   Not shared with the legal pages — Help has no table of contents and its
   hero has no bottom rule, so privacy-policy.css does not apply here.

   Everything stays scoped under .flxb-home for the same reason base.css is —
   the parent theme styles bare h1/h2/h3/p and would otherwise win.
   ========================================================================== */

/* ---------- Hero ---------- */

.flxb-help-hero {
  padding: 88px 0 62px;
}

.flxb-help-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--flxb-brand);
  margin-bottom: 18px;
}

.flxb-home .flxb-help-title {
  font-size: clamp(48px, 7vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.058em;
  margin: 0 0 24px;
  font-weight: 700;
  max-width: 780px;
  color: var(--flxb-ink);
}

.flxb-home .flxb-help-lede {
  max-width: 650px;
  font-size: 18px;
  line-height: 1.65;
  color: #5f6267;
  margin: 0;
}

/* ---------- Contact cards ---------- */

/* minmax(0, …) rather than 1fr: a bare 1fr track is min-width:auto and would
   let a long unbroken string (the support address) widen the page. */
.flxb-help-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  padding: 0 0 92px;
}

/* Each card is one big link, so the whole panel is the hit target. */
.flxb-home .flxb-help-card {
  background: var(--flxb-panel);
  border: 1px solid var(--flxb-line);
  border-radius: 20px;
  padding: 30px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.18s ease;
  color: var(--flxb-ink);
}

.flxb-home .flxb-help-card:hover {
  border-color: #d2d5d7;
  box-shadow: var(--flxb-shadow);
  transform: translateY(-2px);
}

/* Keyboard users get the same affordance as the hover state. */
.flxb-home .flxb-help-card:focus-visible {
  outline: 2px solid var(--flxb-brand);
  outline-offset: 3px;
}

.flxb-help-card-kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #999ca0;
  margin-bottom: 44px;
}

.flxb-home .flxb-help-card h2 {
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0 0 12px;
  font-weight: 700;
  color: var(--flxb-ink);
}

.flxb-home .flxb-help-card p {
  font-size: 15px;
  line-height: 1.7;
  color: #62656a;
  margin: 0;
  max-width: 430px;
}

.flxb-help-card-bottom {
  margin-top: 34px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.flxb-help-contact-value {
  font-size: 14px;
  color: #383a3d;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.flxb-help-card-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--flxb-ink);
  white-space: nowrap;
}

.flxb-home .flxb-help-card:hover .flxb-help-card-link {
  color: #08783d;
}

/* ---------- Founder ---------- */

.flxb-help-founder {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.flxb-help-founder-photo {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  object-fit: cover;
  object-position: center 18%;
  border: 1px solid var(--flxb-line);
  background: var(--flxb-soft);
  flex: 0 0 auto;
  display: block;
}

.flxb-help-founder-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #2a2c2f;
  margin-bottom: 4px;
}

.flxb-help-founder-role {
  font-size: 12px;
  color: #888b90;
  letter-spacing: 0;
}

/* ---------- Closing note ---------- */

.flxb-help-note {
  border-top: 1px solid var(--flxb-line);
  padding: 38px 0 62px;
}

.flxb-help-note-inner {
  max-width: 760px;
}

.flxb-home .flxb-help-note h3 {
  font-size: 20px;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  font-weight: 700;
  color: var(--flxb-ink);
}

.flxb-home .flxb-help-note p {
  font-size: 14px;
  line-height: 1.72;
  color: #6b6e73;
  margin: 0;
}

.flxb-home .flxb-help-note strong {
  color: #313336;
  font-weight: 600;
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .flxb-help-hero {
    padding: 58px 0 42px;
  }

  .flxb-home .flxb-help-title {
    font-size: 52px;
  }

  .flxb-home .flxb-help-lede {
    font-size: 16px;
  }

  .flxb-help-shell {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 64px;
  }

  .flxb-home .flxb-help-card {
    min-height: 250px;
    padding: 24px;
  }

  .flxb-help-card-kicker {
    margin-bottom: 34px;
  }

  .flxb-help-card-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {

  .flxb-home .flxb-help-card,
  .flxb-home .flxb-help-card:hover {
    transition: none;
    transform: none;
  }
}
