.up-help-page {
  --help-ink: #171719;
  --help-muted: rgba(23, 23, 25, 0.62);
  --help-line: rgba(23, 23, 25, 0.11);
  background: #f7f8f5;
  color: var(--help-ink);
  font-family: "Inter Tight", sans-serif;
}

.up-help-page *,
.up-help-page *::before,
.up-help-page *::after {
  box-sizing: border-box;
}

.up-help-container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.up-help-hero {
  position: relative;
  padding: 190px 0 100px;
  overflow: hidden;
  border-bottom: 1px solid var(--help-line);
  background:
    radial-gradient(circle at 12% 16%, rgba(183, 232, 91, 0.24), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(142, 190, 255, 0.2), transparent 28%),
    #f7f8f5;
}

.up-help-hero::after {
  position: absolute;
  right: -110px;
  bottom: -170px;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(23, 23, 25, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 46px rgba(255, 255, 255, 0.32), 0 0 0 92px rgba(255, 255, 255, 0.18);
  content: "";
}

.up-help-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.up-help-eyebrow {
  margin: 0 0 14px;
  color: rgba(23, 23, 25, 0.52);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.up-help-hero h1 {
  margin: 0;
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.up-help-hero-copy {
  max-width: 610px;
  margin: 20px auto 0;
  color: var(--help-muted);
  font-size: 18px;
  line-height: 1.6;
}

.up-help-search {
  position: relative;
  display: flex;
  width: min(760px, 100%);
  min-height: 70px;
  margin: 42px auto 0;
  padding: 8px 12px 8px 24px;
  align-items: center;
  gap: 15px;
  border: 1px solid rgba(23, 23, 25, 0.14);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(30, 34, 27, 0.1);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.up-help-search:focus-within {
  border-color: rgba(23, 23, 25, 0.48);
  box-shadow: 0 24px 65px rgba(30, 34, 27, 0.15);
  transform: translateY(-2px);
}

.up-help-search svg {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.up-help-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--help-ink);
  font: inherit;
  font-size: 17px;
}

.up-help-search input::placeholder {
  color: rgba(23, 23, 25, 0.42);
}

.up-help-search input::-webkit-search-cancel-button {
  cursor: pointer;
}

.up-help-search kbd {
  display: inline-flex;
  min-width: 48px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(23, 23, 25, 0.1);
  border-radius: 9px;
  background: #f1f3ee;
  color: rgba(23, 23, 25, 0.54);
  font-family: inherit;
  font-size: 12px;
}

.up-popular-searches {
  display: flex;
  margin-top: 22px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.up-popular-searches > span {
  margin-right: 3px;
  color: rgba(23, 23, 25, 0.5);
  font-size: 12px;
  font-weight: 600;
}

.up-popular-searches button {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(23, 23, 25, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: rgba(23, 23, 25, 0.7);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.up-popular-searches button:hover,
.up-popular-searches button:focus-visible {
  border-color: #171719;
  background: #fff;
  color: #171719;
  outline: none;
  transform: translateY(-2px);
}

.up-help-categories {
  padding: 105px 0 120px;
}

.up-help-section-heading {
  display: flex;
  margin-bottom: 44px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.up-help-section-heading h2,
.up-featured-heading h2,
.up-support-banner h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.up-help-section-heading > p {
  max-width: 420px;
  margin: 0;
  color: var(--help-muted);
  font-size: 15px;
  line-height: 1.6;
}

.up-help-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.up-help-category-card {
  position: relative;
  display: flex;
  min-height: 292px;
  padding: 28px;
  flex-direction: column;
  border: 1px solid var(--help-line);
  border-radius: 18px;
  background: #fff;
  color: var(--help-ink);
  text-decoration: none;
  box-shadow: 0 5px 0 rgba(23, 23, 25, 0.025);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.up-help-category-card:hover,
.up-help-category-card:focus-visible {
  z-index: 1;
  border-color: rgba(23, 23, 25, 0.34);
  outline: none;
  box-shadow: 0 22px 45px rgba(23, 23, 25, 0.1);
  transform: translateY(-6px) scale(1.012);
}

.up-category-icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
}

.up-category-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.up-icon-lime { background: #eaf8cc; color: #536b22; }
.up-icon-blue { background: #e4efff; color: #315e9e; }
.up-icon-violet { background: #eee8ff; color: #654aa7; }
.up-icon-peach { background: #ffebe3; color: #9d5138; }
.up-icon-cyan { background: #def5f1; color: #286c62; }
.up-icon-yellow { background: #fff3c9; color: #806319; }

.up-category-body {
  display: block;
  margin-top: 34px;
}

.up-category-body strong {
  display: block;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.up-category-body > span {
  display: block;
  margin-top: 11px;
  color: var(--help-muted);
  font-size: 14px;
  line-height: 1.55;
}

.up-category-meta {
  display: flex;
  margin-top: auto;
  padding-top: 25px;
  align-items: center;
  justify-content: space-between;
  color: rgba(23, 23, 25, 0.48);
  font-size: 12px;
  font-weight: 600;
}

.up-category-meta > span:last-child {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f0f2ed;
  color: #171719;
  font-size: 16px;
  transition: background-color 180ms ease, transform 180ms ease;
}

.up-help-category-card:hover .up-category-meta > span:last-child,
.up-help-category-card:focus-visible .up-category-meta > span:last-child {
  background: #b7e85b;
  transform: translateX(3px);
}

.up-help-empty {
  margin: 36px 0 0;
  padding: 22px;
  border: 1px dashed rgba(23, 23, 25, 0.22);
  border-radius: 14px;
  color: var(--help-muted);
  text-align: center;
}

.up-featured-help {
  padding: 100px 0;
  background: #171719;
  color: #fff;
}

.up-featured-inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.6fr);
  gap: 80px;
}

.up-featured-heading {
  position: sticky;
  top: 130px;
  align-self: start;
}

.up-featured-heading .up-help-eyebrow {
  color: #b7e85b;
}

.up-featured-heading h2 {
  color: #fff;
}

.up-featured-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: article;
}

.up-featured-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  counter-increment: article;
}

.up-featured-list li:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.up-featured-list a {
  display: flex;
  min-height: 118px;
  padding: 24px 4px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: padding 180ms ease, color 180ms ease;
}

.up-featured-list a:hover,
.up-featured-list a:focus-visible {
  padding-right: 10px;
  padding-left: 10px;
  color: #c8f078;
  outline: none;
}

.up-featured-list a > span:first-child {
  display: grid;
  gap: 7px;
}

.up-featured-list small {
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.up-featured-list a > span:last-child {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  font-size: 20px;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.up-featured-list a:hover > span:last-child,
.up-featured-list a:focus-visible > span:last-child {
  border-color: #b7e85b;
  background: #b7e85b;
  color: #171719;
  transform: translateX(4px);
}

.up-help-support {
  padding: 110px 0;
}

.up-support-banner {
  display: flex;
  padding: 54px 58px;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  border: 1px solid rgba(23, 23, 25, 0.1);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(23, 23, 25, 0.07);
}

.up-support-banner > div:first-child {
  max-width: 620px;
}

.up-support-banner > div:first-child > p:last-child {
  max-width: 570px;
  margin: 18px 0 0;
  color: var(--help-muted);
  font-size: 16px;
  line-height: 1.6;
}

.up-support-actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 10px;
}

.up-support-primary,
.up-support-secondary {
  display: inline-flex;
  min-height: 50px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-radius: 13px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.up-support-primary {
  border: 1px solid #171719;
  background: #171719;
  color: #fff;
  box-shadow: 0 12px 28px rgba(23, 23, 25, 0.18);
}

.up-support-secondary {
  border: 1px solid rgba(23, 23, 25, 0.18);
  background: #fff;
  color: #171719;
}

.up-support-primary:hover,
.up-support-primary:focus-visible,
.up-support-secondary:hover,
.up-support-secondary:focus-visible {
  outline: none;
  transform: translateY(-2px);
}

.up-support-secondary:hover,
.up-support-secondary:focus-visible {
  background: #eef2e9;
}

.up-help-page + .up-site-footer {
  margin-top: 0;
}

[data-help-item][hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .up-help-hero {
    padding: 160px 0 80px;
  }

  .up-help-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .up-featured-inner {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .up-featured-heading {
    position: static;
    max-width: 550px;
  }

  .up-support-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .up-support-actions {
    width: 100%;
    max-width: 330px;
  }
}

@media (max-width: 640px) {
  .up-help-container {
    width: min(100% - 30px, 1180px);
  }

  .up-help-hero {
    padding: 134px 0 64px;
  }

  .up-help-hero h1 {
    font-size: 41px;
  }

  .up-help-hero-copy {
    margin-top: 16px;
    font-size: 16px;
  }

  .up-help-search {
    min-height: 62px;
    margin-top: 32px;
    padding-left: 18px;
    border-radius: 15px;
  }

  .up-help-search input {
    font-size: 15px;
  }

  .up-help-search kbd {
    display: none;
  }

  .up-popular-searches {
    justify-content: flex-start;
  }

  .up-popular-searches > span {
    width: 100%;
    margin-bottom: 2px;
  }

  .up-help-categories {
    padding: 72px 0 82px;
  }

  .up-help-section-heading {
    margin-bottom: 30px;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .up-help-category-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .up-help-category-card {
    min-height: 250px;
    padding: 23px;
  }

  .up-category-body {
    margin-top: 27px;
  }

  .up-featured-help {
    padding: 72px 0;
  }

  .up-featured-inner {
    gap: 34px;
  }

  .up-featured-list a {
    min-height: 110px;
    font-size: 17px;
  }

  .up-help-support {
    padding: 72px 0;
  }

  .up-support-banner {
    padding: 32px 24px;
    gap: 32px;
    border-radius: 18px;
  }

  .up-support-actions {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .up-help-page * {
    transition-duration: 0.01ms !important;
  }
}
