/* =========================================================
   HELP
   ========================================================= */

.help-hero,
.help-workflow,
.quick-answers,
.troubleshooting,
.local-processing,
.help-final {
  position: relative;

  width: min(calc(100% - (var(--page-padding) * 2)), var(--content-width));

  margin: 0 auto;
}

.help-hero::before,
.help-workflow::before,
.quick-answers::before,
.troubleshooting::before,
.local-processing::before,
.help-final::before {
  content: "";

  position: absolute;
  z-index: -1;

  top: 0;
  bottom: 0;
  left: 50%;

  width: 100vw;

  transform: translateX(-50%);
}

.help-hero::before,
.quick-answers::before,
.local-processing::before {
  background: #101010;
}

.help-workflow::before,
.troubleshooting::before,
.help-final::before {
  background: #181818;
}

/* =========================================================
   HERO
   ========================================================= */

.help-hero {
  min-height: 500px;

  padding: 108px 0 105px;

  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;

  gap: 100px;
  align-items: end;
}

.help-hero__content {
  max-width: 650px;
  margin-left: 4%;
}

.help-hero__content h1 {
  margin: 0;

  font-size: clamp(50px, 5.8vw, 66px);
  font-weight: 600;
  line-height: 0.98;

  letter-spacing: -0.058em;
}

.help-hero__content > p:not(.technical-label) {
  max-width: 560px;

  margin: 30px 0 0;

  color: var(--text-secondary);

  font-size: 17px;
  line-height: 1.7;
}

.help-hero__side {
  align-self: end;

  display: flex;
  flex-direction: column;
  gap: 8px;

  padding-bottom: 5px;

  color: var(--text-muted);

  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.help-hero__side strong {
  color: var(--text);

  font-size: 16px;
  font-weight: 500;
}

.help-hero__line {
  width: 48px;
  height: 1px;

  margin: 10px 0;

  background: var(--green);
}

/* =========================================================
   WORKFLOW
   ========================================================= */

.help-workflow {
  padding: 120px 0 135px;
}

.help-workflow__intro {
  max-width: 560px;
  margin-left: 8%;
}

.help-workflow__intro h2 {
  margin: 0;

  font-size: clamp(40px, 4.6vw, 56px);
  font-weight: 600;
  line-height: 1.02;

  letter-spacing: -0.05em;
}

.help-workflow__intro > p:not(.technical-label) {
  max-width: 480px;

  margin: 26px 0 0;

  color: var(--text-secondary);

  font-size: 15px;
  line-height: 1.7;
}

.workflow-list {
  margin-top: 70px;
  margin-left: 4%;
}

.workflow-step {
  min-height: 116px;

  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 34px;

  gap: 24px;
  align-items: center;

  padding: 22px 12px;

  border-top: 1px solid #303030;

  transition:
    background-color var(--transition),
    padding var(--transition);
}

.workflow-step:last-child {
  border-bottom: 1px solid #303030;
}

.workflow-step--offset {
  transform: translateX(7%);
}

.workflow-step--active {
  background: rgba(255, 255, 255, 0.018);
}

.workflow-step:hover {
  padding-left: 20px;
  padding-right: 20px;

  background: rgba(255, 255, 255, 0.025);
}

.workflow-step__number {
  color: var(--green);

  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.workflow-step__content {
  min-width: 0;
}

.workflow-step__heading {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.workflow-step__heading h3 {
  margin: 0;

  color: var(--text);

  font-size: 20px;
  font-weight: 600;

  letter-spacing: -0.025em;
}

.workflow-step__heading span {
  color: var(--text-muted);

  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.workflow-step__content p {
  max-width: 580px;

  margin: 9px 0 0;

  color: var(--text-secondary);

  font-size: 13px;
  line-height: 1.6;
}

.workflow-step__marker {
  color: var(--text-muted);

  font-size: 19px;

  transition:
    color var(--transition),
    transform var(--transition);
}

.workflow-step:hover .workflow-step__marker {
  color: var(--green);
  transform: translateX(3px);
}

.workflow-step--complete .workflow-step__marker {
  color: var(--green);
}

/* =========================================================
   QUICK ANSWERS
   ========================================================= */

.quick-answers {
  padding: 120px 0 135px;

  display: grid;

  grid-template-columns: 0.8fr 1.2fr;

  gap: 100px;
}

.quick-answers__heading {
  margin-left: 6%;
}

.quick-answers__heading h2 {
  margin: 0;

  font-size: clamp(39px, 4.5vw, 54px);
  font-weight: 600;
  line-height: 1.02;

  letter-spacing: -0.052em;
}

.faq-list {
  border-top: 1px solid #303030;
}

.faq-item {
  border-bottom: 1px solid #303030;
}

.faq-item summary {
  min-height: 72px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 24px;

  padding: 17px 0;

  color: var(--text);

  font-size: 14px;
  font-weight: 500;

  cursor: pointer;

  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary span:last-child {
  flex-shrink: 0;

  color: var(--green);

  font-size: 20px;
  font-weight: 400;

  transition:
    transform var(--transition),
    color var(--transition);
}

.faq-item[open] summary span:last-child {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-width: 610px;

  padding: 0 42px 22px 0;

  color: var(--text-secondary);

  font-size: 14px;
  line-height: 1.7;
}

/* =========================================================
   TROUBLESHOOTING
   ========================================================= */

.troubleshooting {
  padding: 120px 0 130px;

  display: grid;

  grid-template-columns: 0.75fr 1.25fr;

  gap: 100px;
}

.troubleshooting__intro {
  margin-left: 8%;
}

.troubleshooting__intro h2 {
  margin: 0;

  font-size: clamp(40px, 4.6vw, 54px);

  font-weight: 600;

  line-height: 1.02;

  letter-spacing: -0.05em;
}

.troubleshooting__intro > p:not(.technical-label) {
  max-width: 390px;

  margin: 26px 0 0;

  color: var(--text-secondary);

  font-size: 14px;

  line-height: 1.7;
}

.troubleshooting__list {
  border-top: 1px solid #303030;
}

.trouble-row {
  min-height: 82px;

  display: grid;

  grid-template-columns: 42px minmax(0, 1fr) 30px;

  gap: 16px;

  align-items: center;

  border-bottom: 1px solid #303030;

  transition:
    background-color var(--transition),
    padding var(--transition);
}

.trouble-row:hover {
  padding-left: 10px;
  padding-right: 10px;

  background: rgba(255, 255, 255, 0.018);
}

.trouble-row__number {
  color: var(--green);

  font-size: 10px;

  font-weight: 600;

  letter-spacing: 0.08em;
}

.trouble-row__content {
  display: flex;

  flex-direction: column;

  gap: 4px;
}

.trouble-row__content strong {
  color: var(--text);

  font-size: 14px;
  font-weight: 500;
}

.trouble-row__content span {
  color: var(--text-muted);

  font-size: 12px;
}

.trouble-row__arrow {
  color: var(--text-muted);

  font-size: 18px;

  transition:
    color var(--transition),
    transform var(--transition);
}

.trouble-row:hover .trouble-row__arrow {
  color: var(--green);
  transform: translateX(3px);
}

/* =========================================================
   LOCAL PROCESSING
   ========================================================= */

.local-processing {
  padding: 120px 0 135px;

  display: grid;

  grid-template-columns: 150px minmax(0, 1fr);

  gap: 70px;
}

.local-processing__number {
  color: var(--green);

  font-size: 10px;

  font-weight: 600;

  letter-spacing: 0.1em;
}

.local-processing__content {
  max-width: 650px;

  margin-left: 5%;
}

.local-processing__content h2 {
  margin: 0;

  font-size: clamp(40px, 4.7vw, 56px);

  font-weight: 600;

  line-height: 1.01;

  letter-spacing: -0.052em;
}

.local-processing__content > p:not(.technical-label) {
  max-width: 580px;

  margin: 27px 0 0;

  color: var(--text-secondary);

  font-size: 15px;

  line-height: 1.72;
}

/* =========================================================
   FINAL
   ========================================================= */

.help-final {
  padding: 115px 0 130px;

  display: flex;

  align-items: end;

  justify-content: space-between;

  gap: 60px;
}

.help-final h2 {
  max-width: 540px;

  margin: 0;

  font-size: clamp(38px, 4.3vw, 52px);

  font-weight: 600;

  line-height: 1;

  letter-spacing: -0.05em;
}

.help-final > div:first-child > p:not(.technical-label) {
  max-width: 450px;

  margin: 24px 0 0;

  color: var(--text-secondary);

  font-size: 14px;

  line-height: 1.7;
}

.help-final__actions {
  display: flex;

  flex-wrap: wrap;

  gap: 12px;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {
  .help-hero {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .help-hero__content {
    margin-left: 4%;
  }

  .help-hero__side {
    margin-left: 12%;
  }

  .workflow-list {
    margin-left: 0;
  }

  .workflow-step--offset {
    transform: translateX(5%);
  }

  .quick-answers,
  .troubleshooting {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .quick-answers__heading,
  .troubleshooting__intro {
    margin-left: 5%;
  }

  .local-processing {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .local-processing__content {
    margin-left: 4%;
  }

  .help-final {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {
  .help-hero {
    min-height: auto;

    padding: 66px 0 82px;

    gap: 38px;
  }

  .help-hero__content,
  .help-hero__side,
  .help-workflow__intro,
  .quick-answers__heading,
  .troubleshooting__intro,
  .local-processing__content {
    margin-left: 0;
  }

  .help-hero__content h1 {
    font-size: 43px;
  }

  .help-hero__content > p:not(.technical-label) {
    font-size: 16px;
  }

  .help-hero__side {
    margin-top: 10px;
  }

  .help-workflow {
    padding: 84px 0 96px;
  }

  .help-workflow__intro h2 {
    font-size: 41px;
  }

  .workflow-list {
    margin-top: 46px;
  }

  .workflow-step {
    grid-template-columns: 32px minmax(0, 1fr) 25px;

    gap: 12px;

    min-height: 106px;

    padding: 22px 4px;
  }

  .workflow-step--offset {
    transform: translateX(4%);
  }

  .workflow-step:hover {
    padding-left: 9px;
    padding-right: 9px;
  }

  .workflow-step__heading {
    flex-direction: column;
    gap: 4px;
  }

  .workflow-step__heading h3 {
    font-size: 17px;
  }

  .workflow-step__content p {
    font-size: 12px;
  }

  .quick-answers {
    padding: 84px 0 96px;
  }

  .quick-answers__heading h2 {
    font-size: 40px;
  }

  .faq-item summary {
    min-height: 66px;

    font-size: 13px;
  }

  .faq-item__answer {
    padding-right: 18px;

    font-size: 13px;
  }

  .troubleshooting {
    padding: 84px 0 96px;
  }

  .troubleshooting__intro h2 {
    font-size: 40px;
  }

  .trouble-row {
    grid-template-columns: 32px minmax(0, 1fr) 24px;

    gap: 11px;
  }

  .trouble-row__content strong {
    font-size: 13px;
  }

  .trouble-row__content span {
    font-size: 11px;
  }

  .local-processing {
    padding: 84px 0 96px;

    grid-template-columns: 1fr;

    gap: 26px;
  }

  .local-processing__content h2 {
    font-size: 41px;
  }

  .help-final {
    padding: 84px 0 102px;
  }

  .help-final h2 {
    font-size: 40px;
  }

  .help-final__actions {
    width: 100%;
    flex-direction: column;
  }

  .help-final__actions .button {
    width: 100%;
  }
}
